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()));
     }
 }
 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()));
     }
 }
 public function saveAction()
 {
     if ($this->_getParam('id')) {
         $dtoSearch = Core_Dto::factoryFromData(array('sqModeloDocumento' => $this->_getParam('id')), 'search');
         $this->getService()->deleteModelo($dtoSearch);
     }
     parent::saveAction();
 }
 /**
  * @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());
     }
 }