/** * Action para edicao */ public function editAction() { parent::editAction(); $sqEstado = $this->view->data->getSqMunicipio()->getSqEstado()->getSqEstado(); $this->view->cmb['sqMunicipio'] = $this->getService('VwEndereco')->comboMunicipio($sqEstado); $this->view->enderecoSgdoce = $this->getService('EnderecoSgdoce')->getEnderecoFromCorporativo($this->view->data, $this->_getParam('sqPessoaSgdoce')); }
public function editAction() { parent::editAction(); $sqNaturezaJuridicaPai = $this->view->data->getSqPessoa()->getSqNaturezaJuridica()->getSqNaturezaJuridicaPai()->getSqNaturezaJuridica(); $criteria = array('sqNaturezaJuridicaPai' => $sqNaturezaJuridicaPai); $this->view->cmb['sqNaturezaJuridica'] = $this->getService('NaturezaJuridica')->getComboDefault($criteria, array('noNaturezaJuridica' => 'ASC')); }
public function saveAction() { try { parent::saveAction(); } catch (\Core_Exception_ServiceLayer_Verification $e) { $this->_helper->json(array('error' => true, 'errorType' => 'Alerta', 'msg' => $e->getMessage())); } catch (\Exception $e) { $this->_helper->json(array('error' => true, 'errorType' => 'Erro', 'msg' => $e->getMessage())); } }
/** * Metodo iniciais */ public function init() { parent::init(); $sqPessoa = $this->_getParam('sqPessoa'); $criteria = array('sqTipoVinculo' => array(\Core_Configuration::getCorpTipoVinculoSocio(), \Core_Configuration::getCorpTipoVinculoRepreLegal())); $cmb['sqTipoVinculo'] = $this->getService('TipoVinculo')->getComboDefault($criteria); $this->view->cmb = $cmb; $this->view->sqPessoa = $sqPessoa; $this->_helper->layout()->disableLayout(); }
/** * Metodo iniciais */ public function init() { parent::init(); $sqPessoa = $this->_getParam('sqPessoa'); if ($this->_getParam('id')) { $cmb['sqTipoTelefone'] = $this->getService('TipoTelefone')->getComboDefault(); } else { $cmb['sqTipoTelefone'] = $this->getService('TipoTelefone')->getComboForSqPessoa($sqPessoa); } $this->view->cmb = $cmb; $this->view->sqPessoa = $sqPessoa; $this->_helper->layout()->disableLayout(); }
/** * Metodo iniciais */ public function init() { parent::init(); $sqPessoa = $this->_getParam('sqPessoa'); if ($this->_getParam('id')) { $cmb['sqTipoDocumento'] = $this->getService('TipoDocumento')->getComboDefault(); } else { $cmb['sqTipoDocumento'] = $this->getService('TipoDocumento')->getComboForSqPessoa($sqPessoa); } $cmb['sqEstado'] = $this->getService('Endereco')->comboEstado(NULL, TRUE); $cmb['tpDocumento'] = $this->getService('TipoDocumento')->findAll(); $this->view->cmb = $cmb; $this->view->sqPessoa = $sqPessoa; $this->_helper->layout()->disableLayout(); }
public function saveAction() { try { //$this->_redirect = 'index/id/' . $this->getRequest()->getParam('sqArtefato'); parent::saveAction(); } catch (Exception $e) { $this->_helper->json(array('status' => false, "message" => $e->getMessage())); } }
/** * Edicao da pessoa fisica */ public function editAction() { parent::editAction(); $sqEstado = $this->view->data->getSqMunicipio()->getSqEstado()->getSqEstado(); $this->view->cmb['sqMunicipio'] = $this->getService('Endereco')->comboMunicipio($sqEstado); }
/** * Inicializa operacoes iniciais */ public function init() { parent::init(); }
/** * @return void */ public function listAction() { $params = $this->_getAllParams(); if (isset($params['dtSolicitacao']) && $params['dtSolicitacao'] != '') { $this->getRequest()->setParam('dtInicial', $params['dtSolicitacao']); $this->getRequest()->setParam('dtFinal', $params['dtSolicitacao']); } parent::listAction(); $this->view->params = $params; }
public function saveAction() { if ($this->_getParam('id')) { $dtoSearch = Core_Dto::factoryFromData(array('sqModeloDocumento' => $this->_getParam('id')), 'search'); $this->getService()->deleteModelo($dtoSearch); } parent::saveAction(); }
/** * Inicializa operacoes iniciais */ public function init() { parent::init(); $this->view->sqTipoPessoa = $this->_getParam('sqTipoPessoa'); $this->getCombos(); }
public function listAction() { $dto = Core_Dto::factoryFromData($this->_getAllParams(), 'search'); $sqArtefato = $dto->getSqArtefato(); $this->view->lastVolume = $this->getService()->getLastVolume($sqArtefato); $this->view->hasTramiteEfetivo = $this->getService('Artefato')->hasTramiteEfetivo($dto); $this->view->limitComment = self::T_ARTEFATO_VOLUME_LIMIT_COMMENT_GRID; $this->view->hasPermission = $this->getService()->checkPermisionArtefato($sqArtefato); $this->view->notTheOnlyVolume = $this->getService()->checkIfVolumeCanBeDeleted($sqArtefato); $this->view->hasDemandaVolumeDeProcesso = $this->getServiceLocator()->getService('Solicitacao')->hasDemandaAbertaByAssuntoPessoaResponsavel(\Core_Dto::factoryFromData(array('sqArtefato' => $sqArtefato, 'sqTipoAssuntoSolicitacao' => \Core_Configuration::getSgdoceTipoAssuntoSolicitacaoVolumeDeProcesso()), 'search')); parent::listAction(); $this->getMessaging()->dispatchPackets(); }
/** * @return void */ public function saveAction() { parent::saveAction(); if (!$this->_request->isPost()) { throw new RuntimeException('A requisição deve ser POST'); } $data = $this->_request->getPost(); $this->_save(); $this->getService()->finish(); $this->_addMessageSave(); $isResposta = $data['isReposta']; if ($isResposta) { return $this->_redirectActionDefault('index'); } else { $this->_redirect("/artefato/area-trabalho/index/tipoArtefato/" . \Core_Configuration::getSgdoceTipoArtefatoProcesso()); } }
public function init() { $this->_setTemp(); parent::init(); }
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 postDispatch() { parent::postDispatch(); $this->getMessaging()->dispatchPackets(); }
public function createAction() { parent::createAction(); $this->_helper->layout()->disableLayout(); }