public function editAction()
 {
     parent::editAction();
     if (!$this->view->data) {
         $urlSica = rtrim(Zend_Controller_Front::getInstance()->getParam('bootstrap')->getOption('urlSica'), '/');
         $this->_redirect($urlSica . '/usuario-externo/login');
     }
     $this->view->dtCadastro = \Zend_Date::now()->toString('yyyy-MM-dd hh:mm:ss');
     $sqEstado = $this->view->data->getDadoComplementar()->getSqEstado()->getSqEstado();
     if ($sqEstado) {
         $this->view->cmb['sqMunicipio'] = $this->getService('Endereco')->comboMunicipio($sqEstado);
     }
     $this->_helper->layout->setLayout('edit-usuario-externo');
 }
예제 #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);
 }
 /**
  * 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;
 }
예제 #4
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());
 }
예제 #5
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());
     }
 }