Commit de79edc4b2fe5152d46634093839a7fdbea5f1a3
1 parent
db239ad3
Exists in
master
and in
1 other branch
[Feat] Adicionando atributo numeroDocumentos
Showing
1 changed file
with
12 additions
and
1 deletions
Show diff stats
rn/MdWsSeiBlocoRN.php
... | ... | @@ -105,6 +105,16 @@ class MdWsSeiBlocoRN extends InfraRN { |
105 | 105 | |
106 | 106 | /** @var BlocoDTO $blocoDTO */ |
107 | 107 | foreach($ret as $blocoDTO){ |
108 | + $relBlocoProtocoloRN = new RelBlocoProtocoloRN(); | |
109 | + $relBlocoProtocoloDTOConsulta = new RelBlocoProtocoloDTO(); | |
110 | + $relBlocoProtocoloDTOConsulta->setNumMaxRegistrosRetorno(1); | |
111 | + $relBlocoProtocoloDTOConsulta->setNumPaginaAtual(0); | |
112 | + $relBlocoProtocoloDTOConsulta->setNumIdBloco($blocoDTO->getNumIdBloco()); | |
113 | + $relBlocoProtocoloDTOConsulta->setOrdNumIdBloco(InfraDTO::$TIPO_ORDENACAO_DESC); | |
114 | + $relBlocoProtocoloDTOConsulta->retDblIdProtocolo(); | |
115 | + $relBlocoProtocoloRN->listarRN1291($relBlocoProtocoloDTOConsulta); | |
116 | + $numeroDocumentos = $relBlocoProtocoloDTOConsulta->getNumTotalRegistros(); | |
117 | + | |
108 | 118 | $arrUnidades = array(); |
109 | 119 | /** @var RelBlocoUnidadeDTO $relBlocoUnidadeDTO */ |
110 | 120 | foreach($blocoDTO->getArrObjRelBlocoUnidadeDTO() as $relBlocoUnidadeDTO){ |
... | ... | @@ -121,7 +131,8 @@ class MdWsSeiBlocoRN extends InfraRN { |
121 | 131 | 'siglaUnidade' => $blocoDTO->getStrSiglaUnidade(), |
122 | 132 | 'estado' => $blocoDTO->getStrStaEstado(), |
123 | 133 | 'descricao' => $blocoDTO->getStrDescricao(), |
124 | - 'unidades' => $arrUnidades | |
134 | + 'unidades' => $arrUnidades, | |
135 | + 'numeroDocumentos' => $numeroDocumentos | |
125 | 136 | ) |
126 | 137 | ); |
127 | 138 | } | ... | ... |