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 439 $retornoAtrasado = 'N';
440 440 $arrDadosAbertura = array();
441 441 $procedimentoDTO = null;
  442 + $resultAnotacao = array();
442 443 $protocoloDTO = new MdWsSeiProtocoloDTO();
443 444 if ($dto instanceof ProcedimentoDTO) {
444 445 $protocoloDTO = new MdWsSeiProtocoloDTO();
... ... @@ -512,6 +513,18 @@ class MdWsSeiProcedimentoRN extends InfraRN
512 513 }
513 514 }
514 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 528 $atividadePendenciaDTO = $arrAtividadePendenciaDTO[0];
516 529 if ($atividadePendenciaDTO->getNumTipoVisualizacao() & AtividadeRN::$TV_REMOCAO_SOBRESTAMENTO) {
517 530 $processoRemocaoSobrestamento = 'S';
... ... @@ -593,8 +606,8 @@ class MdWsSeiProcedimentoRN extends InfraRN
593 606 break;
594 607 }
595 608 }
596   - $resultAnotacao = array();
597 609 /** @var AnotacaoDTO $anotacaoDTO */
  610 + /**
598 611 foreach ($arrAnotacao as $anotacaoDTO) {
599 612 $resultAnotacao[] = array(
600 613 'idAnotacao' => $anotacaoDTO->getNumIdAnotacao(),
... ... @@ -607,6 +620,7 @@ class MdWsSeiProcedimentoRN extends InfraRN
607 620 'staAnotacao' => $anotacaoDTO->getStrStaAnotacao()
608 621 );
609 622 }
  623 + **/
610 624 if ($protocoloDTO->getStrStaEstado() != ProtocoloRN::$TE_PROCEDIMENTO_ANEXADO) {
611 625 $procedimentoDTOParam = new ProcedimentoDTO();
612 626 $procedimentoDTOParam->setDblIdProcedimento($protocoloDTO->getDblIdProtocolo());
... ...