Commit b899b07336a6fec6873109c3cdc32230d352df9d
1 parent
23acc8ef
Exists in
master
and in
1 other branch
[Feat] Ordenando documentos pela data de geração e id do procedimento
Showing
1 changed file
with
6 additions
and
3 deletions
Show diff stats
rn/MdWsSeiDocumentoRN.php
| 1 | <? | 1 | <? |
| 2 | require_once dirname(__FILE__).'/../../../SEI.php'; | 2 | require_once dirname(__FILE__).'/../../../SEI.php'; |
| 3 | 3 | ||
| 4 | -class MdWsSeiDocumentoRN extends InfraRN { | 4 | +class MdWsSeiDocumentoRN extends DocumentoRN { |
| 5 | 5 | ||
| 6 | CONST NOME_ATRIBUTO_ANDAMENTO_DOCUMENTO = 'DOCUMENTO'; | 6 | CONST NOME_ATRIBUTO_ANDAMENTO_DOCUMENTO = 'DOCUMENTO'; |
| 7 | 7 | ||
| @@ -44,8 +44,11 @@ class MdWsSeiDocumentoRN extends InfraRN { | @@ -44,8 +44,11 @@ class MdWsSeiDocumentoRN extends InfraRN { | ||
| 44 | $documentoDTOConsulta->retNumIdUnidadeGeradoraProtocolo(); | 44 | $documentoDTOConsulta->retNumIdUnidadeGeradoraProtocolo(); |
| 45 | $documentoDTOConsulta->retStrCrcAssinatura(); | 45 | $documentoDTOConsulta->retStrCrcAssinatura(); |
| 46 | $documentoDTOConsulta->retStrStaEstadoProtocolo(); | 46 | $documentoDTOConsulta->retStrStaEstadoProtocolo(); |
| 47 | - $documentoRN = new DocumentoRN(); | ||
| 48 | - $ret = $documentoRN->listarRN0008($documentoDTOConsulta); | 47 | + $documentoDTOConsulta->setOrdDtaGeracaoProtocolo(InfraDTO::$TIPO_ORDENACAO_DESC); |
| 48 | + $documentoDTOConsulta->setOrdDblIdProcedimento(InfraDTO::$TIPO_ORDENACAO_DESC); | ||
| 49 | + | ||
| 50 | + $documentoBD = new DocumentoBD($this->getObjInfraIBanco()); | ||
| 51 | + $ret = $documentoBD->listar($documentoDTOConsulta); | ||
| 49 | 52 | ||
| 50 | $anexoRN = new AnexoRN(); | 53 | $anexoRN = new AnexoRN(); |
| 51 | $observacaoRN = new ObservacaoRN(); | 54 | $observacaoRN = new ObservacaoRN(); |