Commit 12f336483720c2f4eb882eff19a7973f19a0cb20
1 parent
ad4451c4
Exists in
master
and in
1 other branch
Correções: Quando o processo estava 100% concluído, decidia a Unidade para Reabe…
…rtura do processo com base em Andamentos equivocados.
Showing
2 changed files
with
10 additions
and
1 deletions
Show diff stats
sei/web/modulos/peticionamento/PeticionamentoIntegracao.php
| @@ -18,7 +18,7 @@ class PeticionamentoIntegracao extends SeiIntegracao { | @@ -18,7 +18,7 @@ class PeticionamentoIntegracao extends SeiIntegracao { | ||
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | public function getVersao() { | 20 | public function getVersao() { |
| 21 | - return '1.1.0'; | 21 | + return '1.1.2'; |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | public function getInstituicao(){ | 24 | public function getInstituicao(){ |
sei/web/modulos/peticionamento/rn/MdPetIntercorrenteReaberturaRN.php
| @@ -118,8 +118,17 @@ class MdPetIntercorrenteReaberturaRN extends InfraRN { | @@ -118,8 +118,17 @@ class MdPetIntercorrenteReaberturaRN extends InfraRN { | ||
| 118 | $objAtividadeDTO->retDthConclusao(); | 118 | $objAtividadeDTO->retDthConclusao(); |
| 119 | $objAtividadeDTO->retNumIdUnidade(); | 119 | $objAtividadeDTO->retNumIdUnidade(); |
| 120 | $objAtividadeDTO->setOrdDthConclusao(InfraDTO::$TIPO_ORDENACAO_DESC); | 120 | $objAtividadeDTO->setOrdDthConclusao(InfraDTO::$TIPO_ORDENACAO_DESC); |
| 121 | + | ||
| 122 | + // apenas considerar para reaburtura SE a tarefa do andamento for 28, 41 ou 63 a saber: | ||
| 123 | + //- 28: Conclusao do processo na unidade | ||
| 124 | + //- 41: Conclusao automtica de processo na unidade | ||
| 125 | + //- 63: Processo concluido | ||
| 126 | + | ||
| 127 | + $objAtividadeDTO->setNumIdTarefa( array( TarefaRN::$TI_CONCLUSAO_PROCESSO_UNIDADE , TarefaRN::$TI_CONCLUSAO_AUTOMATICA_UNIDADE, TarefaRN::$TI_CONCLUSAO_PROCESSO_USUARIO), InfraDTO::$OPER_IN ); | ||
| 128 | + | ||
| 121 | $arrObjAtividadeDTO = $objAtividadeRN->listarRN0036($objAtividadeDTO); | 129 | $arrObjAtividadeDTO = $objAtividadeRN->listarRN0036($objAtividadeDTO); |
| 122 | $objUltimaAtvProcesso = count($arrObjAtividadeDTO) > 0 ? current($arrObjAtividadeDTO) : null; | 130 | $objUltimaAtvProcesso = count($arrObjAtividadeDTO) > 0 ? current($arrObjAtividadeDTO) : null; |
| 131 | + | ||
| 123 | if(!is_null($objUltimaAtvProcesso)) { | 132 | if(!is_null($objUltimaAtvProcesso)) { |
| 124 | $idUnidadeReabrirProcesso = $objUltimaAtvProcesso->getNumIdUnidade(); | 133 | $idUnidadeReabrirProcesso = $objUltimaAtvProcesso->getNumIdUnidade(); |
| 125 | } | 134 | } |