<?php
namespace Modules\Orders\MiceProjects; class View_Options extends \App\Mvc\View_Window_PaginatedListing_OptionsAbstract { public function populateDefinedOptions(\App\Mvc\View\Utils\RowOptions\Container\Simple $options) { $options ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup\Insert::create("insert") ->setDescription($this->lang['index']['options']['buttons']['insert']) ->setDimensions(800, 700) ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Window::create("showReservation") ->setDescription($this->lang['index']['options']['buttons']['showReservation']) ->setIcon('view') ->setModule('Modules/Orders/OrdersList') ->setAction('index') ->addParam('listing[paramsSlot]', 1) ->resetWindowListing() ->addParamFromJs('filters[idMiceTypeAndProject][id]', '"0|"+MVC.listing.installedHandlers.listing.getItemId(this)') ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup::create("preferences") ->setDescription($this->lang['index']['options']['buttons']['preferences']) ->setAction('preferences') ->setIcon('profile') ->setKeyForCurrentRow('id') ->setDimensions(800, 450) ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup\Update::create("update") ->setDescription($this->lang['index']['options']['buttons']['update']) ->setDimensions(800, 700) ) ->append(\App\Mvc\View\Utils\RowOptions\Container\OptionsMenu::create("mainOptions") ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup::create("reports") ->setLabel($this->lang['index']['options']['buttons']['reports']) ->setAction('reports') ->setIcon('report') ->setDimensions(1000, 500) ->setKeyForCurrentRow('id') ) ->append(\App\Mvc\View\Utils\RowOptions\Container\OptionEmulator::create() ->append(\App\Mvc\View\Utils\RowOptions\Option\Option::create("close") ->setIcon('lock') ->setLabel($this->lang['index']['options']['buttons']['close']) ->setJsCallback("MVC.listing.installedHandlers.listing.closeSelectedItemsWithConfirmation(this)") ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Option::create("open") ->setIcon('unlock') ->setLabel($this->lang['index']['options']['buttons']['open']) ->setJsCallback("MVC.listing.installedHandlers.listing.openSelectedItemsWithConfirmation(this)") ) ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Delete::create("delete") ->setLabel($this->lang['index']['options']['buttons']['delete']) ) ) ->append(\App\Mvc\View\Utils\RowOptions\Option\DeleteSelected::create("delete") ->setDescription($this->lang['index']['options']['buttons']['delete']) ) ; } }