Commit 76858fa346c6e420084c55db89a16d5902954328
1 parent
bf7fab32
Exists in
master
and in
21 other branches
AJustes US042: refs #8517
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
rn/ExpedirProcedimentoRN.php
... | ... | @@ -390,12 +390,12 @@ class ExpedirProcedimentoRN extends InfraRN { |
390 | 390 | |
391 | 391 | $objProcesso = new stdClass(); |
392 | 392 | $objProcesso->protocolo = utf8_encode($objProcedimentoDTO->getStrProtocoloProcedimentoFormatado()); |
393 | - $objProcesso->nivelDeSigilo = $this->obterNivelSigiloPEN($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()); | |
393 | + $objProcesso->nivelDeSigilo = $this->obterNivelSigiloPEN($objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo()); | |
394 | 394 | $objProcesso->processoDeNegocio = utf8_encode($objProcedimentoDTO->getStrNomeTipoProcedimento()); |
395 | 395 | $objProcesso->descricao = utf8_encode($objProcedimentoDTO->getStrDescricaoProtocolo()); |
396 | 396 | $objProcesso->dataHoraDeProducao = $this->objProcessoEletronicoRN->converterDataWebService($objProcedimentoDTO->getDtaGeracaoProtocolo()); |
397 | 397 | |
398 | - if($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo() == ProtocoloRN::$NA_RESTRITO){ | |
398 | + if($objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_RESTRITO){ | |
399 | 399 | $objProcesso->hipoteseLegal = new stdClass(); |
400 | 400 | $objProcesso->hipoteseLegal->identificacao = $objPenRelHipoteseLegalRN->getIdHipoteseLegalPEN($objProcedimentoDTO->getNumIdHipoteseLegalProtocolo()); |
401 | 401 | // $objProcesso->hipoteseLegal->nome = 'Nomee'; |
... | ... | @@ -1260,6 +1260,7 @@ class ExpedirProcedimentoRN extends InfraRN { |
1260 | 1260 | $objProcedimentoDTO->setDblIdProcedimento($numIdProcedimento); |
1261 | 1261 | $objProcedimentoDTO->retStrProtocoloProcedimentoFormatado(); |
1262 | 1262 | $objProcedimentoDTO->retStrStaNivelAcessoGlobalProtocolo(); |
1263 | + $objProcedimentoDTO->retStrStaNivelAcessoLocalProtocolo(); | |
1263 | 1264 | $objProcedimentoDTO->retNumIdUnidadeGeradoraProtocolo(); |
1264 | 1265 | $objProcedimentoDTO->retNumIdUsuarioGeradorProtocolo(); |
1265 | 1266 | $objProcedimentoDTO->retStrNomeTipoProcedimento(); |
... | ... | @@ -1614,7 +1615,7 @@ class ExpedirProcedimentoRN extends InfraRN { |
1614 | 1615 | |
1615 | 1616 | // $objProcedimentoDTO = $this->objProcedimentoRN->consultarRN0201($objProcedimentoDTO); |
1616 | 1617 | |
1617 | - if ($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo() == ProtocoloRN::$NA_SIGILOSO) { | |
1618 | + if ($objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_SIGILOSO) { | |
1618 | 1619 | $objInfraException->adicionarValidacao('Não é possível expedir processo com informações sigilosas.', $strAtributoValidacao); |
1619 | 1620 | } |
1620 | 1621 | } |
... | ... | @@ -1626,7 +1627,7 @@ class ExpedirProcedimentoRN extends InfraRN { |
1626 | 1627 | * @param string $strAtributoValidacao |
1627 | 1628 | */ |
1628 | 1629 | private function validarHipoteseLegalEnvio(InfraException $objInfraException, ProcedimentoDTO $objProcedimentoDTO, $strAtributoValidacao = null) { |
1629 | - if ($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo() == ProtocoloRN::$NA_RESTRITO) { | |
1630 | + if ($objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_RESTRITO) { | |
1630 | 1631 | if (empty($objProcedimentoDTO->getNumIdHipoteseLegalProtocolo())) { |
1631 | 1632 | $objInfraException->adicionarValidacao('Não é possível expedir processo de nível restrito sem a hipótese legal mapeada.', $strAtributoValidacao); |
1632 | 1633 | } | ... | ... |