public function _getFailTargetMap()
 {
     return parent::_getFailTargetMap() + array('index' => '/index/blank');
 }
예제 #2
0
 /**
  * (non-PHPdoc)
  * @see Core_Controller_Action_CrudDto::editAction()
  */
 public function editAction()
 {
     parent::editAction();
     $this->view->pageTitle = 'Alterar Menu';
     $menus = $this->getService('Sistema')->findMenuBySystem($this->view->data->getSqSistema()->getSqSistema());
     foreach ($menus as $key => $menu) {
         if ($this->view->data->getSqMenu() == $menu['sqMenu']) {
             unset($menus[$key]);
             break;
         }
     }
     $this->view->menus = $menus;
     $_optionsDtoEntityHierarq = array('entity' => 'Sica\\Model\\Entity\\MenuHierarqManter', 'mapping' => array('sqSistema' => 'Sica\\Model\\Entity\\Sistema', 'sqMenuPai' => array('sqMenu' => 'Sica\\Model\\Entity\\Menu')));
     $menuParam = NULL == $this->view->data->getSqMenuPai() ? NULL : $this->view->data->getSqMenuPai()->getSqMenu();
     $params = array('nuNivel' => NULL == $this->view->data->getSqMenuPai() ? '1' : NULL, 'sqMenuPai' => $menuParam, 'sqSistema' => $this->view->data->getSqSistema()->getSqSistema(), 'sqMenuLista' => $this->_getParam('id'), 'removeDaLista' => true);
     $dto = Core_Dto::factoryFromData($params, 'Entity', $_optionsDtoEntityHierarq);
     $this->view->dependencia = $this->getService()->findMenu($dto);
 }
 public function createAction()
 {
     $session = Core_Integration_Sica_User::has();
     if ($session) {
         Core_Integration_Sica_User::destroy();
         $this->_redirect('usuario-externo/login');
     }
     $this->view->dtCadastro = \Zend_Date::now()->toString('yyyy-MM-dd hh:mm:ss');
     parent::createAction();
 }
 /**
  * Editar funcionalidade
  */
 public function editAction()
 {
     parent::editAction();
     $sqSistema = $this->view->data->getSqMenu()->getSqSistema()->getSqSistema();
     $this->view->arrMenu = $this->getService('Sistema')->findMenuBySystem($sqSistema);
     $this->view->isEdit = true;
 }
예제 #5
0
 /**
  * (non-PHPdoc)
  * @see Core_Controller_Action_CrudDto::editAction()
  */
 public function editAction()
 {
     parent::editAction();
     $this->getCombos();
     $system = $this->view->data->getSqSistema()->getSqSistema();
     $this->view->menu = $this->getService('Sistema')->findMenuBySystem($system);
     $this->view->menuAcesso = $this->getService('PerfilFuncionalidade')->menuAcessoById($this->view->data->getSqPerfil());
 }
예제 #6
0
 protected function _getFailTargetMap()
 {
     return parent::_getFailTargetMap() + array('changePassWithMail' => 'save', 'autenticate' => 'usuario/login');
 }
예제 #7
0
 /**
  * @see    Core_Controller_Action_CrudDto::editAction()
  * @return void
  */
 public function editAction()
 {
     parent::editAction();
     $this->view->architetures = $this->getService()->findAllArchitetures();
     $this->view->layouts = $this->getService()->findAllLayouts();
     if ($this->getHelper('persist')->has('responsavel')) {
         $this->view->responsavel = $this->getHelper('persist')->get('responsavel');
     } else {
         $this->view->responsavel = $this->getService('PessoaFisica')->findDataInstitucional($this->view->data->getSqPessoaResponsavel()->getSqPessoa());
     }
 }
예제 #8
0
 /**
  * Inicializa operacoes iniciais
  */
 public function init()
 {
     parent::init();
 }
예제 #9
0
 /**
  * Inicializa operacoes iniciais
  */
 public function init()
 {
     parent::init();
     $this->view->sqTipoPessoa = $this->_getParam('sqTipoPessoa');
     $this->getCombos();
 }