Commit 42d64c8f1c927b4bf967dad3385f7383c4677580
1 parent
d4b9df24
Exists in
master
and in
7 other branches
Correção na Assinatura DIgital
Showing
2 changed files
with
6 additions
and
5 deletions
Show diff stats
rn/ExpedirProcedimentoRN.php
| @@ -1557,6 +1557,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1557,6 +1557,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1557 | $objDocumentoDTO->setDblIdProcedimento($objProcedimentoDTO->getDblIdProcedimento()); | 1557 | $objDocumentoDTO->setDblIdProcedimento($objProcedimentoDTO->getDblIdProcedimento()); |
| 1558 | // $objDocumentoDTO->setStrStaEditor(array(EditorRN::$TE_EDOC, EditorRN::$TE_INTERNO), InfraDTO::$OPER_IN); | 1558 | // $objDocumentoDTO->setStrStaEditor(array(EditorRN::$TE_EDOC, EditorRN::$TE_INTERNO), InfraDTO::$OPER_IN); |
| 1559 | $objDocumentoDTO->retDblIdDocumento(); | 1559 | $objDocumentoDTO->retDblIdDocumento(); |
| 1560 | + $objDocumentoDTO->retStrStaDocumento(); | ||
| 1560 | $objDocumentoDTO->retStrStaEstadoProtocolo(); | 1561 | $objDocumentoDTO->retStrStaEstadoProtocolo(); |
| 1561 | 1562 | ||
| 1562 | $objDocumentoRN = new DocumentoRN(); | 1563 | $objDocumentoRN = new DocumentoRN(); |
| @@ -1576,9 +1577,9 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1576,9 +1577,9 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1576 | 1577 | ||
| 1577 | // Se o documento não tem assinatura e não foi cancelado então | 1578 | // Se o documento não tem assinatura e não foi cancelado então |
| 1578 | // cai na regra de validação | 1579 | // cai na regra de validação |
| 1579 | - if($objAssinaturaRN->contarRN1324($objAssinaturaDTO) == 0 && $objDocumentoDTO->getStrStaEstadoProtocolo() != ProtocoloRN::$TE_DOCUMENTO_CANCELADO){ | 1580 | + if($objAssinaturaRN->contarRN1324($objAssinaturaDTO) == 0 && $objDocumentoDTO->getStrStaEstadoProtocolo() != ProtocoloRN::$TE_DOCUMENTO_CANCELADO && ($objDocumentoDTO->getStrStaDocumento() != DocumentoRN::$TD_EDITOR_EDOC || $objDocumentoDTO->getStrStaDocumento() != DocumentoRN::$TD_EDITOR_INTERNO) ){ |
| 1580 | 1581 | ||
| 1581 | - //$bolAssinaturaCorretas = false; | 1582 | + $bolAssinaturaCorretas = false; |
| 1582 | } | 1583 | } |
| 1583 | } | 1584 | } |
| 1584 | } | 1585 | } |
rn/ProcedimentoAndamentoRN.php
| @@ -83,7 +83,7 @@ class ProcedimentoAndamentoRN extends InfraRN { | @@ -83,7 +83,7 @@ class ProcedimentoAndamentoRN extends InfraRN { | ||
| 83 | 83 | ||
| 84 | 84 | ||
| 85 | // achou um registro, então atualiza o log | 85 | // achou um registro, então atualiza o log |
| 86 | - if(!empty($objProcedimentoAndamentoDTO)) { | 86 | + /* if(!empty($objProcedimentoAndamentoDTO)) { |
| 87 | 87 | ||
| 88 | $objProcedimentoAndamentoDTO->setStrSituacao($strSituacao); | 88 | $objProcedimentoAndamentoDTO->setStrSituacao($strSituacao); |
| 89 | $objProcedimentoAndamentoDTO->setDthData(date('d/m/Y H:i:s')); | 89 | $objProcedimentoAndamentoDTO->setDthData(date('d/m/Y H:i:s')); |
| @@ -91,7 +91,7 @@ class ProcedimentoAndamentoRN extends InfraRN { | @@ -91,7 +91,7 @@ class ProcedimentoAndamentoRN extends InfraRN { | ||
| 91 | $objProcedimentoAndamentoBD->alterar($objProcedimentoAndamentoDTO); | 91 | $objProcedimentoAndamentoBD->alterar($objProcedimentoAndamentoDTO); |
| 92 | } | 92 | } |
| 93 | // Senão cadastra um novo log | 93 | // Senão cadastra um novo log |
| 94 | - else { | 94 | + else { */ |
| 95 | 95 | ||
| 96 | $objProcedimentoAndamentoDTO = new ProcedimentoAndamentoDTO(); | 96 | $objProcedimentoAndamentoDTO = new ProcedimentoAndamentoDTO(); |
| 97 | $objProcedimentoAndamentoDTO->setStrSituacao($strSituacao); | 97 | $objProcedimentoAndamentoDTO->setStrSituacao($strSituacao); |
| @@ -104,7 +104,7 @@ class ProcedimentoAndamentoRN extends InfraRN { | @@ -104,7 +104,7 @@ class ProcedimentoAndamentoRN extends InfraRN { | ||
| 104 | $objProcedimentoAndamentoDTO->setNumTarefa($this->numTarefa); | 104 | $objProcedimentoAndamentoDTO->setNumTarefa($this->numTarefa); |
| 105 | 105 | ||
| 106 | $objProcedimentoAndamentoBD->cadastrar($objProcedimentoAndamentoDTO); | 106 | $objProcedimentoAndamentoBD->cadastrar($objProcedimentoAndamentoDTO); |
| 107 | - } | 107 | + // } |
| 108 | 108 | ||
| 109 | $objInfraIBanco->confirmarTransacao(); | 109 | $objInfraIBanco->confirmarTransacao(); |
| 110 | } | 110 | } |