/** * @return void */ public function desmembrarAction() { $this->_helper->layout->disableLayout(); // VERIFICA SE FOI ENVIADO SQ ARTEFATO PARA O DESMEMBRAMENTO. $sqArtefato = $this->_getParam('id', false); $ArtefatoProcesso = $this->getService('ArtefatoProcesso')->isProcesso($sqArtefato); $this->view->ArtefatoProcesso = $ArtefatoProcesso; $this->_formatarNrProcesso($ArtefatoProcesso->getSqArtefato()); parent::createAction(); $this->combos(); }
/** * Ação da criação de Dossies */ public function createAction() { parent::createAction(); if (!$this->_hasParam('nuDigital')) { $this->_redirect('/artefato/dossie/'); } else { $newNuDigital = $this->getService('Artefato')->createNumeroDigital(); $coreDtoSearch = Core_Dto::factoryFromData(array('nuDigital' => $newNuDigital), 'search'); $res = $this->getService('Documento')->saveArtefato($coreDtoSearch); $this->_redirectAction('edit/id/' . $res->getSqArtefato() . '/view/1'); } }