From 42d64c8f1c927b4bf967dad3385f7383c4677580 Mon Sep 17 00:00:00 2001 From: eduardo.praxedes Date: Thu, 1 Dec 2016 16:32:20 -0200 Subject: [PATCH] Correção na Assinatura DIgital --- rn/ExpedirProcedimentoRN.php | 5 +++-- rn/ProcedimentoAndamentoRN.php | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/rn/ExpedirProcedimentoRN.php b/rn/ExpedirProcedimentoRN.php index 7aa5f79..5e8d6de 100644 --- a/rn/ExpedirProcedimentoRN.php +++ b/rn/ExpedirProcedimentoRN.php @@ -1557,6 +1557,7 @@ class ExpedirProcedimentoRN extends InfraRN { $objDocumentoDTO->setDblIdProcedimento($objProcedimentoDTO->getDblIdProcedimento()); // $objDocumentoDTO->setStrStaEditor(array(EditorRN::$TE_EDOC, EditorRN::$TE_INTERNO), InfraDTO::$OPER_IN); $objDocumentoDTO->retDblIdDocumento(); + $objDocumentoDTO->retStrStaDocumento(); $objDocumentoDTO->retStrStaEstadoProtocolo(); $objDocumentoRN = new DocumentoRN(); @@ -1576,9 +1577,9 @@ class ExpedirProcedimentoRN extends InfraRN { // Se o documento não tem assinatura e não foi cancelado então // cai na regra de validação - if($objAssinaturaRN->contarRN1324($objAssinaturaDTO) == 0 && $objDocumentoDTO->getStrStaEstadoProtocolo() != ProtocoloRN::$TE_DOCUMENTO_CANCELADO){ + if($objAssinaturaRN->contarRN1324($objAssinaturaDTO) == 0 && $objDocumentoDTO->getStrStaEstadoProtocolo() != ProtocoloRN::$TE_DOCUMENTO_CANCELADO && ($objDocumentoDTO->getStrStaDocumento() != DocumentoRN::$TD_EDITOR_EDOC || $objDocumentoDTO->getStrStaDocumento() != DocumentoRN::$TD_EDITOR_INTERNO) ){ - //$bolAssinaturaCorretas = false; + $bolAssinaturaCorretas = false; } } } diff --git a/rn/ProcedimentoAndamentoRN.php b/rn/ProcedimentoAndamentoRN.php index 166a200..b93955c 100644 --- a/rn/ProcedimentoAndamentoRN.php +++ b/rn/ProcedimentoAndamentoRN.php @@ -83,7 +83,7 @@ class ProcedimentoAndamentoRN extends InfraRN { // achou um registro, então atualiza o log - if(!empty($objProcedimentoAndamentoDTO)) { + /* if(!empty($objProcedimentoAndamentoDTO)) { $objProcedimentoAndamentoDTO->setStrSituacao($strSituacao); $objProcedimentoAndamentoDTO->setDthData(date('d/m/Y H:i:s')); @@ -91,7 +91,7 @@ class ProcedimentoAndamentoRN extends InfraRN { $objProcedimentoAndamentoBD->alterar($objProcedimentoAndamentoDTO); } // Senão cadastra um novo log - else { + else { */ $objProcedimentoAndamentoDTO = new ProcedimentoAndamentoDTO(); $objProcedimentoAndamentoDTO->setStrSituacao($strSituacao); @@ -104,7 +104,7 @@ class ProcedimentoAndamentoRN extends InfraRN { $objProcedimentoAndamentoDTO->setNumTarefa($this->numTarefa); $objProcedimentoAndamentoBD->cadastrar($objProcedimentoAndamentoDTO); - } + // } $objInfraIBanco->confirmarTransacao(); } -- libgit2 0.21.2