Commit 067a9c11edc1156c136154cd18d73a72147f8349

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

[Feat] Adicionando atributo para verificação se pode ser registrata a anotação

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
rn/MdWsSeiProcedimentoRN.php
... ... @@ -439,10 +439,12 @@ class MdWsSeiProcedimentoRN extends InfraRN
439 439 $retornoAtrasado = 'N';
440 440 $processoAberto = false;
441 441 $acaoReabrirProcesso = SessaoSEI::getInstance()->verificarPermissao('procedimento_reabrir');
  442 + $acaoRegistrarAnotacao = SessaoSEI::getInstance()->verificarPermissao('anotacao_registrar');
442 443 $processoEmTramitacao = false;
443 444 $processoSobrestado = false;
444 445 $processoAnexado = false;
445 446 $podeReabrirProcesso = false;
  447 + $podeRegistrarAnotacao = false;
446 448 $arrDadosAbertura = array();
447 449 $procedimentoDTO = null;
448 450 $resultAnotacao = array();
... ... @@ -655,6 +657,9 @@ class MdWsSeiProcedimentoRN extends InfraRN
655 657 if (!$processoAberto && $acaoReabrirProcesso && $processoEmTramitacao && !$processoSobrestado && !$processoAnexado) {
656 658 $podeReabrirProcesso = true;
657 659 }
  660 + if ($processoEmTramitacao && $acaoRegistrarAnotacao) {
  661 + $podeRegistrarAnotacao = true;
  662 + }
658 663  
659 664 $objInfraParametro = new InfraParametro(BancoSEI::getInstance());
660 665  
... ... @@ -699,6 +704,7 @@ class MdWsSeiProcedimentoRN extends InfraRN
699 704 'processoSobrestado' => $processoSobrestado ? 'S' : 'N',
700 705 'processoAnexado' => $processoAnexado ? 'S' : 'N',
701 706 'podeReabrirProcesso' => $podeReabrirProcesso ? 'S' : 'N',
  707 + 'podeRegistrarAnotacao' => $podeRegistrarAnotacao ? 'S' : 'N',
702 708 )
703 709 )
704 710 );
... ...