Commit 256ad9aec7f11512ac81a7c9800079275dad8a4d
1 parent
a87a60fe
Exists in
master
and in
1 other branch
[Feat] Adicionando status de cancelado ao retorno da lista de documentos.
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
rn/MdWsSeiDocumentoRN.php
... | ... | @@ -42,6 +42,7 @@ class MdWsSeiDocumentoRN extends InfraRN { |
42 | 42 | $documentoDTOConsulta->retStrSiglaUnidadeGeradoraProtocolo(); |
43 | 43 | $documentoDTOConsulta->retNumIdUnidadeGeradoraProtocolo(); |
44 | 44 | $documentoDTOConsulta->retStrCrcAssinatura(); |
45 | + $documentoDTOConsulta->retStrStaEstadoProtocolo(); | |
45 | 46 | $documentoRN = new DocumentoRN(); |
46 | 47 | $ret = $documentoRN->listarRN0008($documentoDTOConsulta); |
47 | 48 | |
... | ... | @@ -56,6 +57,8 @@ class MdWsSeiDocumentoRN extends InfraRN { |
56 | 57 | $informacao = null; |
57 | 58 | $tamanhoAnexo = null; |
58 | 59 | $ciencia = 'N'; |
60 | + $documentoCancelado = $documentoDTO->getStrStaEstadoProtocolo() == ProtocoloRN::$TE_DOCUMENTO_CANCELADO | |
61 | + ? 'S' : 'N'; | |
59 | 62 | |
60 | 63 | $anexoDTOConsulta = new AnexoDTO(); |
61 | 64 | $anexoDTOConsulta->retStrNome(); |
... | ... | @@ -120,7 +123,8 @@ class MdWsSeiDocumentoRN extends InfraRN { |
120 | 123 | 'documentoRestrito' => $documentoDTO->getStrStaNivelAcessoLocalProtocolo() == 1 ? 'S' : 'N', |
121 | 124 | 'documentoPublicado' => $documentoPublicado, |
122 | 125 | 'documentoAssinado' => $documentoDTO->getStrCrcAssinatura() ? 'S' : 'N', |
123 | - 'ciencia' => $ciencia | |
126 | + 'ciencia' => $ciencia, | |
127 | + 'documentoCancelado' => $documentoCancelado | |
124 | 128 | ) |
125 | 129 | ) |
126 | 130 | ); | ... | ... |