public function createAction()
 {
     $this->_helper->layout->setLayout('modal');
     parent::createAction();
     $this->view->campoPessoa = $this->_getParam('campoPessoa');
     $this->view->campoCnpj = $this->_getParam('campoCnpj');
     $this->view->form = $this->_getParam('form');
 }
 public function createAction()
 {
     $this->getHelper('layout')->disableLayout();
     $allParams = $this->_getAllParams();
     if (!isset($allParams['id'])) {
         $this->_redirect('/artefato/area-trabalho');
     }
     if (false === $this->_checkPermissaoArtefato($allParams['id'])) {
         $this->_forward('index', null, null, array('id' => $allParams['id']));
     }
     $helper = new Sgdoce_View_Helper_NuArtefato();
     $entArtefato = $this->getService('Artefato')->find($allParams['id']);
     parent::createAction();
     $this->view->arrCargo = $this->getService('Cargo')->comboCargo();
     $this->view->arrFuncao = $this->getService('Funcao')->comboFuncao();
     $this->view->sqArtefato = $allParams['id'];
     $this->view->nuArtefato = $helper->nuArtefato($entArtefato);
     $this->view->sqUnidadeAssinatura = \Core_Integration_Sica_User::getUserUnit();
 }
 /**
  * @return void
  */
 public function createAction()
 {
     parent::createAction();
     $dto = \Core_Dto::factoryFromData(array('inTipoParaArtefato' => TRUE, 'query' => ''), 'search');
     $this->view->comboTipoAssuntoSolicitacao = $this->getService()->comboTipoAssuntoSolicitacao($dto);
 }
 /**
  * Ação da criação do Modelos de Minutas
  */
 public function createAction()
 {
     parent::createAction();
     $sqPadraoModeloDocumento = $this->_getParam('sqPadraoModeloDocumento');
     if ($this->_getParam('sqTipoDocumento')) {
         $this->view->sqTipoDocumento = $this->getService('TipoDocumento')->find($this->_getParam('sqTipoDocumento'));
     }
     if ($this->_getParam('sqAssunto')) {
         $this->view->sqAssunto = $this->getService('Assunto')->find($this->_getParam('sqAssunto'));
     }
     $sqModeloDocumento = $this->_getParam('id');
     $dtoSearch = Core_Dto::factoryFromData(array('sqPadraoModeloDocumento' => $sqPadraoModeloDocumento, 'sqModeloDocumento' => $sqModeloDocumento), 'search');
     $this->view->sqPadraoModeloDocumento = $sqPadraoModeloDocumento;
     $this->view->itens = $this->getService('PadraoModeloDocumento')->listItensPadraoModeloDoc();
     $this->view->itensGrauAcesso = $this->getService('GrauAcesso')->listItensGrauAcesso();
     $this->view->itensPosicaoTipoDoc = $this->getService('PosicaoTipoDocumento')->listItensPosicaoTipoDoc();
     $this->view->itensPosicaoData = $this->getService('PosicaoData')->listItensPosicaoData();
     $this->view->campos = $this->getService('PadraoModeloDocumentoCampo')->listItensPadraoModeloDocCampos($dtoSearch);
 }
 public function createAction()
 {
     parent::createAction();
     $this->_helper->layout()->disableLayout();
 }