Commit 648e864458358e1a0e2762deca35a945979b72c7
1 parent
774a6a5f
Exists in
master
and in
1 other branch
[Feat] Adicionando lista de unidades em que o processo esta aberto.
Showing
1 changed file
with
16 additions
and
0 deletions
Show diff stats
rn/MdWsSeiProcedimentoRN.php
... | ... | @@ -653,12 +653,20 @@ class MdWsSeiProcedimentoRN extends InfraRN |
653 | 653 | $atividadeDTO = $arrAtividadeDTO[0]; |
654 | 654 | if ($strStaNivelAcessoGlobal != ProtocoloRN::$NA_SIGILOSO) { |
655 | 655 | $result['info'] = 'Processo aberto somente na unidade:'; |
656 | + $result['unidades'][] = array( | |
657 | + 'id' => $atividadeDTO->getNumIdUnidade(), | |
658 | + 'nome' => $atividadeDTO->getStrSiglaUnidade() | |
659 | + ); | |
656 | 660 | $result['lista'][] = array( |
657 | 661 | 'sigla' => $atividadeDTO->getStrSiglaUnidade() |
658 | 662 | ); |
659 | 663 | } else { |
660 | 664 | $result['info'] = 'Processo aberto com o usuário:'; |
661 | 665 | $atividadeDTO = $arrAtividadeDTO[0]; |
666 | + $result['unidades'][] = array( | |
667 | + 'id' => $atividadeDTO->getNumIdUnidade(), | |
668 | + 'nome' => $atividadeDTO->getStrSiglaUnidade() | |
669 | + ); | |
662 | 670 | $result['lista'][] = array( |
663 | 671 | 'sigla' => $atividadeDTO->getStrNomeUsuario() |
664 | 672 | ); |
... | ... | @@ -667,6 +675,10 @@ class MdWsSeiProcedimentoRN extends InfraRN |
667 | 675 | if ($strStaNivelAcessoGlobal != ProtocoloRN::$NA_SIGILOSO) { |
668 | 676 | $result['info'] = 'Processo aberto nas unidades:'; |
669 | 677 | foreach ($arrAtividadeDTO as $atividadeDTO) { |
678 | + $result['unidades'][] = array( | |
679 | + 'id' => $atividadeDTO->getNumIdUnidade(), | |
680 | + 'nome' => $atividadeDTO->getStrSiglaUnidade() | |
681 | + ); | |
670 | 682 | $sigla = $atividadeDTO->getStrSiglaUnidade(); |
671 | 683 | if ($atividadeDTO->getNumIdUsuarioAtribuicao() != null) { |
672 | 684 | $sigla .= ' (atribuído a ' . $atividadeDTO->getStrNomeUsuarioAtribuicao() . ')'; |
... | ... | @@ -678,6 +690,10 @@ class MdWsSeiProcedimentoRN extends InfraRN |
678 | 690 | } else { |
679 | 691 | $result['info'] = 'Processo aberto com os usuários:'; |
680 | 692 | foreach ($arrAtividadeDTO as $atividadeDTO) { |
693 | + $result['unidades'][] = array( | |
694 | + 'id' => $atividadeDTO->getNumIdUnidade(), | |
695 | + 'nome' => $atividadeDTO->getStrSiglaUnidade() | |
696 | + ); | |
681 | 697 | $sigla = $atividadeDTO->getStrNomeUsuario() . ' na unidade ' . $atividadeDTO->getStrSiglaUnidade(); |
682 | 698 | $result['lista'][] = array( |
683 | 699 | 'sigla' => $sigla | ... | ... |