Commit 44fb0236835149136124c55cf3cafb32371b55dc
1 parent
b6b78bf9
Exists in
master
and in
1 other branch
Ajuste item 10999 - [WorkItem][Incluir / Alterar Processo] - Validação de permis…
…são de um único interessado para o processo
Showing
1 changed file
with
20 additions
and
2 deletions
Show diff stats
rn/MdWsSeiProcedimentoRN.php
| @@ -558,7 +558,22 @@ class MdWsSeiProcedimentoRN extends InfraRN | @@ -558,7 +558,22 @@ class MdWsSeiProcedimentoRN extends InfraRN | ||
| 558 | // $hipoteseLegal = 2; | 558 | // $hipoteseLegal = 2; |
| 559 | // $grauSigilo = ''; | 559 | // $grauSigilo = ''; |
| 560 | 560 | ||
| 561 | + | ||
| 562 | + $objTipoProcedimentoDTO = new TipoProcedimentoDTO(); | ||
| 563 | + $objTipoProcedimentoDTO->setBolExclusaoLogica(false); | ||
| 564 | + $objTipoProcedimentoDTO->retStrNome(); | ||
| 565 | + $objTipoProcedimentoDTO->retStrSinIndividual(); | ||
| 566 | + $objTipoProcedimentoDTO->setNumIdTipoProcedimento($tipoProcesso); | ||
| 567 | + | ||
| 568 | + $objTipoProcedimentoRN = new TipoProcedimentoRN(); | ||
| 569 | + $objTipoProcedimentoDTO = $objTipoProcedimentoRN->consultarRN0267($objTipoProcedimentoDTO); | ||
| 570 | + | ||
| 561 | 571 | ||
| 572 | + if ($objTipoProcedimentoDTO->getStrSinIndividual() == 'S') { | ||
| 573 | + if (count($arrInteressados) > 1) { | ||
| 574 | + throw new InfraException('Mais de um Interessado informado.'); | ||
| 575 | + } | ||
| 576 | + } | ||
| 562 | // PREENCHE OS ASSUNTOS | 577 | // PREENCHE OS ASSUNTOS |
| 563 | $arrayAssuntos = array(); | 578 | $arrayAssuntos = array(); |
| 564 | 579 | ||
| @@ -610,9 +625,12 @@ class MdWsSeiProcedimentoRN extends InfraRN | @@ -610,9 +625,12 @@ class MdWsSeiProcedimentoRN extends InfraRN | ||
| 610 | 625 | ||
| 611 | // REALIZA A ALTERAÇÃO DOS DADOS DO PROCESSO | 626 | // REALIZA A ALTERAÇÃO DOS DADOS DO PROCESSO |
| 612 | $objProcedimentoRN = new ProcedimentoRN(); | 627 | $objProcedimentoRN = new ProcedimentoRN(); |
| 613 | - $objProcedimentoRN->alterarRN0202($objProcedimentoDTO); | ||
| 614 | - | 628 | + $retorno = $objProcedimentoRN->alterarRN0202($objProcedimentoDTO); |
| 629 | + | ||
| 615 | return MdWsSeiRest::formataRetornoSucessoREST(null); | 630 | return MdWsSeiRest::formataRetornoSucessoREST(null); |
| 631 | + | ||
| 632 | + | ||
| 633 | + //return MdWsSeiRest::formataRetornoSucessoREST(null); | ||
| 616 | 634 | ||
| 617 | } catch (InfraException $e) { | 635 | } catch (InfraException $e) { |
| 618 | // die($e->getStrDescricao()); | 636 | // die($e->getStrDescricao()); |