Commit 033fd7d97de5f674567105a697c0015ea363a152

Authored by eduardo.batista
1 parent d3d88575
Exists in master and in 1 other branch desenv

[REFACT] Alterando anotação da lista de processos para igual ao SEI WEB.

Showing 1 changed file with 15 additions and 1 deletions   Show diff stats
rn/MdWsSeiProcedimentoRN.php
@@ -439,6 +439,7 @@ class MdWsSeiProcedimentoRN extends InfraRN @@ -439,6 +439,7 @@ class MdWsSeiProcedimentoRN extends InfraRN
439 $retornoAtrasado = 'N'; 439 $retornoAtrasado = 'N';
440 $arrDadosAbertura = array(); 440 $arrDadosAbertura = array();
441 $procedimentoDTO = null; 441 $procedimentoDTO = null;
  442 + $resultAnotacao = array();
442 $protocoloDTO = new MdWsSeiProtocoloDTO(); 443 $protocoloDTO = new MdWsSeiProtocoloDTO();
443 if ($dto instanceof ProcedimentoDTO) { 444 if ($dto instanceof ProcedimentoDTO) {
444 $protocoloDTO = new MdWsSeiProtocoloDTO(); 445 $protocoloDTO = new MdWsSeiProtocoloDTO();
@@ -512,6 +513,18 @@ class MdWsSeiProcedimentoRN extends InfraRN @@ -512,6 +513,18 @@ class MdWsSeiProcedimentoRN extends InfraRN
512 } 513 }
513 } 514 }
514 if ($arrAtividadePendenciaDTO) { 515 if ($arrAtividadePendenciaDTO) {
  516 + $anotacaoDTO = $procedimentoDTO->getObjAnotacaoDTO();
  517 + if($anotacaoDTO){
  518 + $resultAnotacao[] = array(
  519 + 'idProtocolo' => $anotacaoDTO->getDblIdProtocolo(),
  520 + 'descricao' => $anotacaoDTO->getStrDescricao(),
  521 + 'idUnidade' => SessaoSEI::getInstance()->getNumIdUnidadeAtual(),
  522 + 'idUsuario' => $anotacaoDTO->getNumIdUsuario(),
  523 + 'sinPrioridade' => $anotacaoDTO->getStrSinPrioridade(),
  524 + 'staAnotacao' => $anotacaoDTO->getStrStaAnotacao()
  525 + );
  526 + }
  527 +
515 $atividadePendenciaDTO = $arrAtividadePendenciaDTO[0]; 528 $atividadePendenciaDTO = $arrAtividadePendenciaDTO[0];
516 if ($atividadePendenciaDTO->getNumTipoVisualizacao() & AtividadeRN::$TV_REMOCAO_SOBRESTAMENTO) { 529 if ($atividadePendenciaDTO->getNumTipoVisualizacao() & AtividadeRN::$TV_REMOCAO_SOBRESTAMENTO) {
517 $processoRemocaoSobrestamento = 'S'; 530 $processoRemocaoSobrestamento = 'S';
@@ -593,8 +606,8 @@ class MdWsSeiProcedimentoRN extends InfraRN @@ -593,8 +606,8 @@ class MdWsSeiProcedimentoRN extends InfraRN
593 break; 606 break;
594 } 607 }
595 } 608 }
596 - $resultAnotacao = array();  
597 /** @var AnotacaoDTO $anotacaoDTO */ 609 /** @var AnotacaoDTO $anotacaoDTO */
  610 + /**
598 foreach ($arrAnotacao as $anotacaoDTO) { 611 foreach ($arrAnotacao as $anotacaoDTO) {
599 $resultAnotacao[] = array( 612 $resultAnotacao[] = array(
600 'idAnotacao' => $anotacaoDTO->getNumIdAnotacao(), 613 'idAnotacao' => $anotacaoDTO->getNumIdAnotacao(),
@@ -607,6 +620,7 @@ class MdWsSeiProcedimentoRN extends InfraRN @@ -607,6 +620,7 @@ class MdWsSeiProcedimentoRN extends InfraRN
607 'staAnotacao' => $anotacaoDTO->getStrStaAnotacao() 620 'staAnotacao' => $anotacaoDTO->getStrStaAnotacao()
608 ); 621 );
609 } 622 }
  623 + **/
610 if ($protocoloDTO->getStrStaEstado() != ProtocoloRN::$TE_PROCEDIMENTO_ANEXADO) { 624 if ($protocoloDTO->getStrStaEstado() != ProtocoloRN::$TE_PROCEDIMENTO_ANEXADO) {
611 $procedimentoDTOParam = new ProcedimentoDTO(); 625 $procedimentoDTOParam = new ProcedimentoDTO();
612 $procedimentoDTOParam->setDblIdProcedimento($protocoloDTO->getDblIdProtocolo()); 626 $procedimentoDTOParam->setDblIdProcedimento($protocoloDTO->getDblIdProtocolo());