Commit ac8d7cb7aba554c490716af4c654095263c85812
1 parent
8ddca059
Exists in
master
and in
7 other branches
Ajustes de encode de palavras acentuadas
Showing
4 changed files
with
114 additions
and
673 deletions
Show diff stats
bd/PenParametroBD.php
| @@ -21,7 +21,7 @@ class PenParametroBD extends InfraBD { | @@ -21,7 +21,7 @@ class PenParametroBD extends InfraBD { | ||
| 21 | if ($rs[0]['existe'] == 0) { | 21 | if ($rs[0]['existe'] == 0) { |
| 22 | 22 | ||
| 23 | if (strlen($strNome) > 100) { | 23 | if (strlen($strNome) > 100) { |
| 24 | - throw new InfraException('Nome do parmetro possui tamanho superior a 100 caracteres.'); | 24 | + throw new InfraException('Nome do parâmetro possui tamanho superior a 100 caracteres.'); |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | $sql = ''; | 27 | $sql = ''; |
rn/ExpedirProcedimentoRN.php
| @@ -122,20 +122,20 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -122,20 +122,20 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 122 | $numIdTramite = 0; | 122 | $numIdTramite = 0; |
| 123 | 123 | ||
| 124 | try { | 124 | try { |
| 125 | - //Valida Permissao | 125 | + //Valida Permissão |
| 126 | SessaoSEI::getInstance()->validarAuditarPermissao('pen_procedimento_expedir',__METHOD__, $objExpedirProcedimentoDTO); | 126 | SessaoSEI::getInstance()->validarAuditarPermissao('pen_procedimento_expedir',__METHOD__, $objExpedirProcedimentoDTO); |
| 127 | 127 | ||
| 128 | $dblIdProcedimento = $objExpedirProcedimentoDTO->getDblIdProcedimento(); | 128 | $dblIdProcedimento = $objExpedirProcedimentoDTO->getDblIdProcedimento(); |
| 129 | 129 | ||
| 130 | $this->barraProgresso->exibir(); | 130 | $this->barraProgresso->exibir(); |
| 131 | 131 | ||
| 132 | - //Valida regras de negcio | 132 | + //Valida regras de negócio |
| 133 | $this->barraProgresso->mover(ProcessoEletronicoINT::NEE_EXPEDICAO_ETAPA_VALIDACAO); | 133 | $this->barraProgresso->mover(ProcessoEletronicoINT::NEE_EXPEDICAO_ETAPA_VALIDACAO); |
| 134 | $this->barraProgresso->setStrRotulo(ProcessoEletronicoINT::TEE_EXPEDICAO_ETAPA_VALIDACAO); | 134 | $this->barraProgresso->setStrRotulo(ProcessoEletronicoINT::TEE_EXPEDICAO_ETAPA_VALIDACAO); |
| 135 | 135 | ||
| 136 | $objInfraException = new InfraException(); | 136 | $objInfraException = new InfraException(); |
| 137 | 137 | ||
| 138 | - //Carregamento dos dados de processo e documento para validao e expedio | 138 | + //Carregamento dos dados de processo e documento para validação e expedição |
| 139 | $objProcedimentoDTO = $this->consultarProcedimento($dblIdProcedimento); | 139 | $objProcedimentoDTO = $this->consultarProcedimento($dblIdProcedimento); |
| 140 | $objProcedimentoDTO->setArrObjDocumentoDTO($this->listarDocumentos($dblIdProcedimento)); | 140 | $objProcedimentoDTO->setArrObjDocumentoDTO($this->listarDocumentos($dblIdProcedimento)); |
| 141 | $objProcedimentoDTO->setArrObjParticipanteDTO($this->listarInteressados($dblIdProcedimento)); | 141 | $objProcedimentoDTO->setArrObjParticipanteDTO($this->listarInteressados($dblIdProcedimento)); |
| @@ -146,7 +146,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -146,7 +146,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 146 | //Apresentao da mensagens de validao na janela da barra de progresso | 146 | //Apresentao da mensagens de validao na janela da barra de progresso |
| 147 | if($objInfraException->contemValidacoes()){ | 147 | if($objInfraException->contemValidacoes()){ |
| 148 | $this->barraProgresso->mover(0); | 148 | $this->barraProgresso->mover(0); |
| 149 | - $this->barraProgresso->setStrRotulo('Erro durante validao dos dados do processo.'); | 149 | + $this->barraProgresso->setStrRotulo('Erro durante validação dos dados do processo.'); |
| 150 | $objInfraException->lancarValidacoes(); | 150 | $objInfraException->lancarValidacoes(); |
| 151 | } | 151 | } |
| 152 | 152 | ||
| @@ -203,7 +203,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -203,7 +203,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 203 | 203 | ||
| 204 | //TODO: Erro no BARRAMENTO: Processo no pode ser enviado se possuir 2 documentos iguais(mesmo hash) | 204 | //TODO: Erro no BARRAMENTO: Processo no pode ser enviado se possuir 2 documentos iguais(mesmo hash) |
| 205 | //TODO: Melhoria no barramento de servios. O mtodo solicitar metadados no deixa claro quais os componentes digitais que | 205 | //TODO: Melhoria no barramento de servios. O mtodo solicitar metadados no deixa claro quais os componentes digitais que |
| 206 | - //precisam ser baixados. No cenrio de retorno de um processo existente, a nica forma consultar o status do trmite para | 206 | + //precisam ser baixados. No cenrio de retorno de um processo existente, a nica forma consultar o status do trâmite para |
| 207 | //saber quais precisam ser baixados. O processo poderia ser mais otimizado se o retorno nos metadados j informasse quais os | 207 | //saber quais precisam ser baixados. O processo poderia ser mais otimizado se o retorno nos metadados j informasse quais os |
| 208 | //componentes precisam ser baixados, semelhante ao que ocorre no enviarProcesso onde o barramento informa quais os componentes | 208 | //componentes precisam ser baixados, semelhante ao que ocorre no enviarProcesso onde o barramento informa quais os componentes |
| 209 | //que precisam ser enviados | 209 | //que precisam ser enviados |
| @@ -228,12 +228,12 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -228,12 +228,12 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 228 | #$this->enviarDocProdimentoTramite(); | 228 | #$this->enviarDocProdimentoTramite(); |
| 229 | //return array('mensagem' => 'Processo em expedio!', 'retorno' => 1); | 229 | //return array('mensagem' => 'Processo em expedio!', 'retorno' => 1); |
| 230 | 230 | ||
| 231 | - //TODO: Alterar atualizao para somente apresentar ao final de todo o trmite | 231 | + //TODO: Alterar atualizao para somente apresentar ao final de todo o trâmite |
| 232 | $this->barraProgresso->mover(ProcessoEletronicoINT::NEE_EXPEDICAO_ETAPA_CONCLUSAO); | 232 | $this->barraProgresso->mover(ProcessoEletronicoINT::NEE_EXPEDICAO_ETAPA_CONCLUSAO); |
| 233 | $this->barraProgresso->setStrRotulo(ProcessoEletronicoINT::TEE_EXPEDICAO_ETAPA_CONCLUSAO); | 233 | $this->barraProgresso->setStrRotulo(ProcessoEletronicoINT::TEE_EXPEDICAO_ETAPA_CONCLUSAO); |
| 234 | 234 | ||
| 235 | // @join_tec US008.06 (#23092) | 235 | // @join_tec US008.06 (#23092) |
| 236 | - $this->objProcedimentoAndamentoRN->cadastrar('Concludo envio dos componentes do processo', 'S'); | 236 | + $this->objProcedimentoAndamentoRN->cadastrar('Concluído envio dos componentes do processo', 'S'); |
| 237 | 237 | ||
| 238 | 238 | ||
| 239 | $this->receberReciboDeEnvio($objTramite->IDT); | 239 | $this->receberReciboDeEnvio($objTramite->IDT); |
| @@ -256,13 +256,13 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -256,13 +256,13 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 256 | $this->registrarAndamentoExpedicaoAbortada($objProcesso->idProcedimentoSEI); | 256 | $this->registrarAndamentoExpedicaoAbortada($objProcesso->idProcedimentoSEI); |
| 257 | 257 | ||
| 258 | // @join_tec US008.06 (#23092) | 258 | // @join_tec US008.06 (#23092) |
| 259 | - $this->objProcedimentoAndamentoRN->cadastrar('Concludo envio dos componentes do processo', 'N'); | 259 | + $this->objProcedimentoAndamentoRN->cadastrar('Concluído envio dos componentes do processo', 'N'); |
| 260 | throw $e; | 260 | throw $e; |
| 261 | } | 261 | } |
| 262 | } | 262 | } |
| 263 | 263 | ||
| 264 | } catch (\Exception $e) { | 264 | } catch (\Exception $e) { |
| 265 | - throw new InfraException('Falha de comunicao com o Barramento de Servios. Por favor, tente novamente mais tarde.', $e); | 265 | + throw new InfraException('Falha de comunicação com o serviços de integração. Por favor, tente novamente mais tarde.', $e); |
| 266 | } | 266 | } |
| 267 | } | 267 | } |
| 268 | 268 | ||
| @@ -333,10 +333,10 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -333,10 +333,10 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 333 | private function construirCabecalho(ExpedirProcedimentoDTO $objExpedirProcedimentoDTO) | 333 | private function construirCabecalho(ExpedirProcedimentoDTO $objExpedirProcedimentoDTO) |
| 334 | { | 334 | { |
| 335 | if(!isset($objExpedirProcedimentoDTO)){ | 335 | if(!isset($objExpedirProcedimentoDTO)){ |
| 336 | - throw new InfraException('Parmetro $objExpedirProcedimentoDTO no informado.'); | 336 | + throw new InfraException('Parâmetro $objExpedirProcedimentoDTO não informado.'); |
| 337 | } | 337 | } |
| 338 | 338 | ||
| 339 | - //Obteno do nmero de registro eletrnico do processo | 339 | + //Obtenção do nmero de registro eletrônico do processo |
| 340 | $strNumeroRegistro = null; | 340 | $strNumeroRegistro = null; |
| 341 | $objProcessoEletronicoBD = new ProcessoEletronicoBD($this->getObjInfraIBanco()); | 341 | $objProcessoEletronicoBD = new ProcessoEletronicoBD($this->getObjInfraIBanco()); |
| 342 | $objProcessoEletronicoDTO = new ProcessoEletronicoDTO(); | 342 | $objProcessoEletronicoDTO = new ProcessoEletronicoDTO(); |
| @@ -351,7 +351,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -351,7 +351,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 351 | $strNumeroRegistro = $objProcessoEletronicoDTO->getStrNumeroRegistro(); | 351 | $strNumeroRegistro = $objProcessoEletronicoDTO->getStrNumeroRegistro(); |
| 352 | } | 352 | } |
| 353 | 353 | ||
| 354 | - // Consultar se processo eletrnico existe no PEN algum trmite CANCELADO, caso | 354 | + // Consultar se processo eletrônico existe no PEN algum trâmite CANCELADO, caso |
| 355 | // sim deve ser gerada uma nova NRE, pois a atual ser recusada pelo PEN quando | 355 | // sim deve ser gerada uma nova NRE, pois a atual ser recusada pelo PEN quando |
| 356 | // for enviado | 356 | // for enviado |
| 357 | /* if(!InfraString::isBolVazia($strNumeroRegistro)) { | 357 | /* if(!InfraString::isBolVazia($strNumeroRegistro)) { |
| @@ -381,10 +381,10 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -381,10 +381,10 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 381 | private function construirProcesso($dblIdProcedimento, $arrIdProcessoApensado = null) | 381 | private function construirProcesso($dblIdProcedimento, $arrIdProcessoApensado = null) |
| 382 | { | 382 | { |
| 383 | if(!isset($dblIdProcedimento)){ | 383 | if(!isset($dblIdProcedimento)){ |
| 384 | - throw new InfraException('Parmetro $dblIdProcedimento no informado.'); | 384 | + throw new InfraException('Parâmetro $dblIdProcedimento não informado.'); |
| 385 | } | 385 | } |
| 386 | 386 | ||
| 387 | - //TODO: Passar dados do ProcedimentoDTO via parmetro j carregado anteriormente | 387 | + //TODO: Passar dados do ProcedimentoDTO via parâmetro j carregado anteriormente |
| 388 | $objProcedimentoDTO = $this->consultarProcedimento($dblIdProcedimento); | 388 | $objProcedimentoDTO = $this->consultarProcedimento($dblIdProcedimento); |
| 389 | $objPenRelHipoteseLegalRN = new PenRelHipoteseLegalEnvioRN(); | 389 | $objPenRelHipoteseLegalRN = new PenRelHipoteseLegalEnvioRN(); |
| 390 | 390 | ||
| @@ -398,9 +398,6 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -398,9 +398,6 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 398 | if($objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_RESTRITO){ | 398 | if($objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_RESTRITO){ |
| 399 | $objProcesso->hipoteseLegal = new stdClass(); | 399 | $objProcesso->hipoteseLegal = new stdClass(); |
| 400 | $objProcesso->hipoteseLegal->identificacao = $objPenRelHipoteseLegalRN->getIdHipoteseLegalPEN($objProcedimentoDTO->getNumIdHipoteseLegalProtocolo()); | 400 | $objProcesso->hipoteseLegal->identificacao = $objPenRelHipoteseLegalRN->getIdHipoteseLegalPEN($objProcedimentoDTO->getNumIdHipoteseLegalProtocolo()); |
| 401 | - // $objProcesso->hipoteseLegal->nome = 'Nomee'; | ||
| 402 | - // $objProcesso->hipoteseLegal->baseLegal = 'Base Legall'; | ||
| 403 | - | ||
| 404 | } | 401 | } |
| 405 | 402 | ||
| 406 | $this->atribuirProdutorProcesso($objProcesso, | 403 | $this->atribuirProdutorProcesso($objProcesso, |
| @@ -413,11 +410,6 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -413,11 +410,6 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 413 | $this->atribuirDadosInteressados($objProcesso, $dblIdProcedimento); | 410 | $this->atribuirDadosInteressados($objProcesso, $dblIdProcedimento); |
| 414 | $this->adicionarProcessosApensados($objProcesso, $arrIdProcessoApensado); | 411 | $this->adicionarProcessosApensados($objProcesso, $arrIdProcessoApensado); |
| 415 | 412 | ||
| 416 | - //TODO:Adicionar demais informaes do processo | ||
| 417 | - //<protocoloAnterior> | ||
| 418 | - | ||
| 419 | - // $this->atribuirDadosHistorico($objProcesso, $dblIdProcedimento); | ||
| 420 | - | ||
| 421 | $objProcesso->idProcedimentoSEI = $dblIdProcedimento; | 413 | $objProcesso->idProcedimentoSEI = $dblIdProcedimento; |
| 422 | return $objProcesso; | 414 | return $objProcesso; |
| 423 | } | 415 | } |
| @@ -434,7 +426,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -434,7 +426,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 434 | $arrObjAtividadeDTO = $objProcedimentoDTO->getArrObjAtividadeDTO(); | 426 | $arrObjAtividadeDTO = $objProcedimentoDTO->getArrObjAtividadeDTO(); |
| 435 | 427 | ||
| 436 | if($arrObjAtividadeDTO == null || count($arrObjAtividadeDTO) == 0) { | 428 | if($arrObjAtividadeDTO == null || count($arrObjAtividadeDTO) == 0) { |
| 437 | - throw new InfraException("No foi possvel obter andamentos do processo {$objProcesso->protocolo}"); | 429 | + throw new InfraException("Não foi possível obter andamentos do processo {$objProcesso->protocolo}"); |
| 438 | } | 430 | } |
| 439 | 431 | ||
| 440 | $arrObjOperacao = array(); | 432 | $arrObjOperacao = array(); |
| @@ -443,7 +435,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -443,7 +435,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 443 | //TODO: Avaliar necessidade de repassar dados da pessoa que realizou a operao | 435 | //TODO: Avaliar necessidade de repassar dados da pessoa que realizou a operao |
| 444 | $objOperacao = new stdClass(); | 436 | $objOperacao = new stdClass(); |
| 445 | 437 | ||
| 446 | - //TODO: Adicionar demais informaes da pessoa e sua unidade | 438 | + //TODO: Adicionar demais informações da pessoa e sua unidade |
| 447 | $objOperacao->pessoa = new stdClass(); | 439 | $objOperacao->pessoa = new stdClass(); |
| 448 | $objOperacao->pessoa->nome = utf8_encode($objAtividadeDTO->getStrNomeUsuarioOrigem()); | 440 | $objOperacao->pessoa->nome = utf8_encode($objAtividadeDTO->getStrNomeUsuarioOrigem()); |
| 449 | $objOperacao->codigo = $this->objProcessoEletronicoRN->obterCodigoOperacaoPENMapeado($objAtividadeDTO->getNumIdTarefa()); | 441 | $objOperacao->codigo = $this->objProcessoEletronicoRN->obterCodigoOperacaoPENMapeado($objAtividadeDTO->getNumIdTarefa()); |
| @@ -469,7 +461,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -469,7 +461,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 469 | public static function mudarEstadoProcedimento($objProcesso, $strStaEstado){ | 461 | public static function mudarEstadoProcedimento($objProcesso, $strStaEstado){ |
| 470 | 462 | ||
| 471 | if(!isset($objProcesso)) { | 463 | if(!isset($objProcesso)) { |
| 472 | - throw new InfraException('Parmetro $objProcesso no informado.'); | 464 | + throw new InfraException('Parâmetro $objProcesso não informado.'); |
| 473 | } | 465 | } |
| 474 | 466 | ||
| 475 | try { | 467 | try { |
| @@ -490,7 +482,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -490,7 +482,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 490 | $objAtributoAndamentoDTO = new AtributoAndamentoDTO(); | 482 | $objAtributoAndamentoDTO = new AtributoAndamentoDTO(); |
| 491 | $objAtributoAndamentoDTO->setStrNome('MOTIVO'); | 483 | $objAtributoAndamentoDTO->setStrNome('MOTIVO'); |
| 492 | $objAtributoAndamentoDTO->setStrIdOrigem(null); | 484 | $objAtributoAndamentoDTO->setStrIdOrigem(null); |
| 493 | - $objAtributoAndamentoDTO->setStrValor('Processo esta em processamento devido sua expedio para outra entidade.'); | 485 | + $objAtributoAndamentoDTO->setStrValor('Processo está em processamento devido sua expedição para outra entidade.'); |
| 494 | $objAtividadeDTO->setArrObjAtributoAndamentoDTO(array($objAtributoAndamentoDTO)); | 486 | $objAtividadeDTO->setArrObjAtributoAndamentoDTO(array($objAtributoAndamentoDTO)); |
| 495 | 487 | ||
| 496 | $objAtividadeRN = new AtividadeRN(); | 488 | $objAtividadeRN = new AtividadeRN(); |
| @@ -691,7 +683,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -691,7 +683,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 691 | private function bloquearProcedimento($objProcesso) | 683 | private function bloquearProcedimento($objProcesso) |
| 692 | { | 684 | { |
| 693 | if(!isset($objProcesso)) { | 685 | if(!isset($objProcesso)) { |
| 694 | - throw new InfraException('Parmetro $objProcesso no informado.'); | 686 | + throw new InfraException('Parâmetro $objProcesso não informado.'); |
| 695 | } | 687 | } |
| 696 | 688 | ||
| 697 | //TODO: Solicitar ao TRF4 um meio de bloquear o processo, indicando que ele encontra-se em | 689 | //TODO: Solicitar ao TRF4 um meio de bloquear o processo, indicando que ele encontra-se em |
| @@ -701,7 +693,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -701,7 +693,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 701 | //$objRelProtocoloProtocoloDTO->setDblIdProtocolo1($dblIdProcedimentoApensado); | 693 | //$objRelProtocoloProtocoloDTO->setDblIdProtocolo1($dblIdProcedimentoApensado); |
| 702 | $objRelProtocoloProtocoloDTO->setDblIdProtocolo1(null); | 694 | $objRelProtocoloProtocoloDTO->setDblIdProtocolo1(null); |
| 703 | $objRelProtocoloProtocoloDTO->setDblIdProtocolo2($objProcesso->idProcedimentoSEI); | 695 | $objRelProtocoloProtocoloDTO->setDblIdProtocolo2($objProcesso->idProcedimentoSEI); |
| 704 | - $objRelProtocoloProtocoloDTO->setStrMotivo("Processo sobrestado devido sua expedio para outra entidade."); | 696 | + $objRelProtocoloProtocoloDTO->setStrMotivo("Processo sobrestado devido sua expedição para outra entidade."); |
| 705 | $this->objProcedimentoRN->sobrestarRN1014(array($objRelProtocoloProtocoloDTO)); | 697 | $this->objProcedimentoRN->sobrestarRN1014(array($objRelProtocoloProtocoloDTO)); |
| 706 | 698 | ||
| 707 | if(isset($objProcesso->processoApensado) && is_array($objProcesso->processoApensado)) { | 699 | if(isset($objProcesso->processoApensado) && is_array($objProcesso->processoApensado)) { |
| @@ -714,14 +706,14 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -714,14 +706,14 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 714 | 706 | ||
| 715 | private function atribuirDataHoraDeRegistro($objContexto, $dblIdProcedimento, $dblIdDocumento = null) | 707 | private function atribuirDataHoraDeRegistro($objContexto, $dblIdProcedimento, $dblIdDocumento = null) |
| 716 | { | 708 | { |
| 717 | - //Validar parmetro $objContexto | 709 | + //Validar parâmetro $objContexto |
| 718 | if(!isset($objContexto)) { | 710 | if(!isset($objContexto)) { |
| 719 | - throw new InfraException('Parmetro $objContexto no informado.'); | 711 | + throw new InfraException('Parâmetro $objContexto não informado.'); |
| 720 | } | 712 | } |
| 721 | 713 | ||
| 722 | - //Validar parmetro $dbIdProcedimento | 714 | + //Validar parâmetro $dbIdProcedimento |
| 723 | if(!isset($dblIdProcedimento)) { | 715 | if(!isset($dblIdProcedimento)) { |
| 724 | - throw new InfraException('Parmetro $dbIdProcedimento no informado.'); | 716 | + throw new InfraException('Parâmetro $dbIdProcedimento não informado.'); |
| 725 | } | 717 | } |
| 726 | 718 | ||
| 727 | $objProcedimentoHistoricoDTO = new ProcedimentoHistoricoDTO(); | 719 | $objProcedimentoHistoricoDTO = new ProcedimentoHistoricoDTO(); |
| @@ -748,7 +740,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -748,7 +740,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 748 | private function atribuirProdutorProcesso($objProcesso, $dblIdProcedimento, $numIdUnidadeGeradora) | 740 | private function atribuirProdutorProcesso($objProcesso, $dblIdProcedimento, $numIdUnidadeGeradora) |
| 749 | { | 741 | { |
| 750 | if(!isset($objProcesso)){ | 742 | if(!isset($objProcesso)){ |
| 751 | - throw new InfraException('Parmetro $objProcesso no informado.'); | 743 | + throw new InfraException('Parâmetro $objProcesso não informado.'); |
| 752 | } | 744 | } |
| 753 | 745 | ||
| 754 | $objProcesso->produtor = new stdClass(); | 746 | $objProcesso->produtor = new stdClass(); |
| @@ -776,7 +768,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -776,7 +768,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 776 | private function atribuirDadosInteressados($objProcesso, $dblIdProcedimento) | 768 | private function atribuirDadosInteressados($objProcesso, $dblIdProcedimento) |
| 777 | { | 769 | { |
| 778 | if(!isset($objProcesso)){ | 770 | if(!isset($objProcesso)){ |
| 779 | - throw new InfraException('Parmetro $objProcesso no informado.'); | 771 | + throw new InfraException('Parâmetro $objProcesso não informado.'); |
| 780 | } | 772 | } |
| 781 | 773 | ||
| 782 | $arrParticipantesDTO = $this->listarInteressados($dblIdProcedimento); | 774 | $arrParticipantesDTO = $this->listarInteressados($dblIdProcedimento); |
| @@ -797,14 +789,14 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -797,14 +789,14 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 797 | private function atribuirDocumentos($objProcesso, $dblIdProcedimento) | 789 | private function atribuirDocumentos($objProcesso, $dblIdProcedimento) |
| 798 | { | 790 | { |
| 799 | if(!isset($objProcesso)) { | 791 | if(!isset($objProcesso)) { |
| 800 | - throw new InfraException('Parmetro $objProcesso no informado.'); | 792 | + throw new InfraException('Parâmetro $objProcesso não informado.'); |
| 801 | } | 793 | } |
| 802 | 794 | ||
| 803 | - //TODO: Passar dados do ProcedimentoDTO via parmetro j carregado anteriormente | 795 | + //TODO: Passar dados do ProcedimentoDTO via parâmetro j carregado anteriormente |
| 804 | $arrDocumentosDTO = $this->listarDocumentos($dblIdProcedimento); | 796 | $arrDocumentosDTO = $this->listarDocumentos($dblIdProcedimento); |
| 805 | 797 | ||
| 806 | if(!isset($arrDocumentosDTO)) { | 798 | if(!isset($arrDocumentosDTO)) { |
| 807 | - throw new InfraException('Documentos no encontrados.'); | 799 | + throw new InfraException('Documentos não encontrados.'); |
| 808 | } | 800 | } |
| 809 | 801 | ||
| 810 | $ordemDocumento = 1; | 802 | $ordemDocumento = 1; |
| @@ -818,7 +810,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -818,7 +810,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 818 | 810 | ||
| 819 | $documento = new stdClass(); | 811 | $documento = new stdClass(); |
| 820 | $objPenRelHipoteseLegalRN = new PenRelHipoteseLegalEnvioRN(); | 812 | $objPenRelHipoteseLegalRN = new PenRelHipoteseLegalEnvioRN(); |
| 821 | - //TODO: Atribuir das informaes abaixo ao documento | 813 | + //TODO: Atribuir das informações abaixo ao documento |
| 822 | //<protocoloDoDocumentoAnexado>123</protocoloDoDocumentoAnexado> | 814 | //<protocoloDoDocumentoAnexado>123</protocoloDoDocumentoAnexado> |
| 823 | //<protocoloDoProcessoAnexado>456</protocoloDoProcessoAnexado> | 815 | //<protocoloDoProcessoAnexado>456</protocoloDoProcessoAnexado> |
| 824 | //Retirado | 816 | //Retirado |
| @@ -831,7 +823,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -831,7 +823,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 831 | $strDescricaoDocumento = "***"; | 823 | $strDescricaoDocumento = "***"; |
| 832 | } | 824 | } |
| 833 | 825 | ||
| 834 | - // No um documento externo | 826 | + // Não é um documento externo |
| 835 | /*elseif($documentoDTO->isSetNumIdTipoConferencia()){ | 827 | /*elseif($documentoDTO->isSetNumIdTipoConferencia()){ |
| 836 | 828 | ||
| 837 | $objTipoProcedimentoDTO = new PenTipoProcedimentoDTO(true); | 829 | $objTipoProcedimentoDTO = new PenTipoProcedimentoDTO(true); |
| @@ -883,7 +875,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -883,7 +875,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 883 | 875 | ||
| 884 | $this->atribuirDataHoraDeRegistro($documento, $documentoDTO->getDblIdProcedimento(), $documentoDTO->getDblIdDocumento()); | 876 | $this->atribuirDataHoraDeRegistro($documento, $documentoDTO->getDblIdProcedimento(), $documentoDTO->getDblIdDocumento()); |
| 885 | 877 | ||
| 886 | - //TODO: Implementar mapeamento de espcies documentais | 878 | + //TODO: Implementar mapeamento de espécies documentais |
| 887 | $documento->especie = new stdClass(); | 879 | $documento->especie = new stdClass(); |
| 888 | $documento->especie->codigo = $this->obterEspecieMapeada($documentoDTO->getNumIdSerie()); | 880 | $documento->especie->codigo = $this->obterEspecieMapeada($documentoDTO->getNumIdSerie()); |
| 889 | $documento->especie->nomeNoProdutor = utf8_encode($documentoDTO->getStrNomeSerie()); | 881 | $documento->especie->nomeNoProdutor = utf8_encode($documentoDTO->getStrNomeSerie()); |
| @@ -935,7 +927,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -935,7 +927,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 935 | $this->atribuirComponentesDigitais($documento, $documentoDTO); | 927 | $this->atribuirComponentesDigitais($documento, $documentoDTO); |
| 936 | } | 928 | } |
| 937 | 929 | ||
| 938 | - //TODO: Necessrio tratar informaes abaixo | 930 | + //TODO: Necessrio tratar informações abaixo |
| 939 | //protocoloDoDocumentoAnexado | 931 | //protocoloDoDocumentoAnexado |
| 940 | //protocoloDoProcessoAnexado | 932 | //protocoloDoProcessoAnexado |
| 941 | //retirado | 933 | //retirado |
| @@ -954,7 +946,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -954,7 +946,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 954 | private function obterEspecieMapeada($parNumIdSerie) | 946 | private function obterEspecieMapeada($parNumIdSerie) |
| 955 | { | 947 | { |
| 956 | if(!isset($parNumIdSerie) || $parNumIdSerie == 0) { | 948 | if(!isset($parNumIdSerie) || $parNumIdSerie == 0) { |
| 957 | - throw new InfraException('Parmetro $parNumIdSerie no informado.'); | 949 | + throw new InfraException('Parâmetro $parNumIdSerie não informado.'); |
| 958 | } | 950 | } |
| 959 | 951 | ||
| 960 | $objPenRelTipoDocMapEnviadoDTO = new PenRelTipoDocMapEnviadoDTO(); | 952 | $objPenRelTipoDocMapEnviadoDTO = new PenRelTipoDocMapEnviadoDTO(); |
| @@ -973,7 +965,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -973,7 +965,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 973 | } | 965 | } |
| 974 | 966 | ||
| 975 | if($objPenRelTipoDocMapEnviadoDTO == null) { | 967 | if($objPenRelTipoDocMapEnviadoDTO == null) { |
| 976 | - throw new InfraException("Cdigo de identificao da espcie documental no pode ser localizada para o tipo de documento {$parNumIdSerie}."); | 968 | + throw new InfraException("Código de identificação da espécie documental não pode ser localizada para o tipo de documento {$parNumIdSerie}."); |
| 977 | } | 969 | } |
| 978 | 970 | ||
| 979 | return $objPenRelTipoDocMapEnviadoDTO->getNumCodigoEspecie(); | 971 | return $objPenRelTipoDocMapEnviadoDTO->getNumCodigoEspecie(); |
| @@ -983,12 +975,12 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -983,12 +975,12 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 983 | private function atribuirAssinaturaEletronica($objComponenteDigital, AssinaturaDTO $objAssinaturaDTO) | 975 | private function atribuirAssinaturaEletronica($objComponenteDigital, AssinaturaDTO $objAssinaturaDTO) |
| 984 | { | 976 | { |
| 985 | if(!isset($objComponenteDigital)){ | 977 | if(!isset($objComponenteDigital)){ |
| 986 | - throw new InfraException('Parmetro $objComponenteDigital no informado.'); | 978 | + throw new InfraException('Parâmetro $objComponenteDigital não informado.'); |
| 987 | } | 979 | } |
| 988 | 980 | ||
| 989 | if(isset($objAssinaturaDTO)) { | 981 | if(isset($objAssinaturaDTO)) { |
| 990 | $objComponenteDigital->assinaturaDigital = new stdClass(); | 982 | $objComponenteDigital->assinaturaDigital = new stdClass(); |
| 991 | - //TODO: Obter as informaes corretas dos metadados da assinatura digital | 983 | + //TODO: Obter as informações corretas dos metadados da assinatura digital |
| 992 | $objComponenteDigital->assinaturaDigital->dataHora = $this->objProcessoEletronicoRN->converterDataWebService($objComponenteDigital->getDthAberturaAtividade()); | 984 | $objComponenteDigital->assinaturaDigital->dataHora = $this->objProcessoEletronicoRN->converterDataWebService($objComponenteDigital->getDthAberturaAtividade()); |
| 993 | $objComponenteDigital->assinaturaDigital->cadeiaDoCertificado = new SoapVar('<cadeiaDoCertificado formato="PKCS7"></cadeiaDoCertificado>', XSD_ANYXML); | 985 | $objComponenteDigital->assinaturaDigital->cadeiaDoCertificado = new SoapVar('<cadeiaDoCertificado formato="PKCS7"></cadeiaDoCertificado>', XSD_ANYXML); |
| 994 | $objComponenteDigital->assinaturaDigital->hash = new SoapVar("<hash algoritmo='{self::ALGORITMO_HASH_ASSINATURA}'>{$objAssinaturaDTO->getStrP7sBase64()}</hash>", XSD_ANYXML); | 986 | $objComponenteDigital->assinaturaDigital->hash = new SoapVar("<hash algoritmo='{self::ALGORITMO_HASH_ASSINATURA}'>{$objAssinaturaDTO->getStrP7sBase64()}</hash>", XSD_ANYXML); |
| @@ -999,17 +991,17 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -999,17 +991,17 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 999 | { | 991 | { |
| 1000 | 992 | ||
| 1001 | if(!isset($objDocumento)){ | 993 | if(!isset($objDocumento)){ |
| 1002 | - throw new InfraException('Parmetro $objDocumento no informado.'); | 994 | + throw new InfraException('Parâmetro $objDocumento não informado.'); |
| 1003 | } | 995 | } |
| 1004 | 996 | ||
| 1005 | if(!isset($objDocumentoDTO)){ | 997 | if(!isset($objDocumentoDTO)){ |
| 1006 | - throw new InfraException('Parmetro $objDocumentoDTO no informado.'); | 998 | + throw new InfraException('Parâmetro $objDocumentoDTO não informado.'); |
| 1007 | } | 999 | } |
| 1008 | 1000 | ||
| 1009 | $arrInformacaoArquivo = $this->obterDadosArquivo($objDocumentoDTO); | 1001 | $arrInformacaoArquivo = $this->obterDadosArquivo($objDocumentoDTO); |
| 1010 | 1002 | ||
| 1011 | if(!isset($arrInformacaoArquivo) || count($arrInformacaoArquivo) == 0){ | 1003 | if(!isset($arrInformacaoArquivo) || count($arrInformacaoArquivo) == 0){ |
| 1012 | - throw new InfraException('Erro durante obteno de informaes sobre o componente digital do documento {$objDocumentoDTO->getStrProtocoloDocumentoFormatado()}.'); | 1004 | + throw new InfraException('Erro durante obtenção de informações sobre o componente digital do documento {$objDocumentoDTO->getStrProtocoloDocumentoFormatado()}.'); |
| 1013 | } | 1005 | } |
| 1014 | 1006 | ||
| 1015 | //TODO: Revisar tal implementao para atender a gerao de hash de arquivos grandes | 1007 | //TODO: Revisar tal implementao para atender a gerao de hash de arquivos grandes |
| @@ -1043,7 +1035,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1043,7 +1035,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1043 | //$objDocumento->componenteDigital->dadosComplementaresDoTipoDeArquivo = ''; | 1035 | //$objDocumento->componenteDigital->dadosComplementaresDoTipoDeArquivo = ''; |
| 1044 | 1036 | ||
| 1045 | 1037 | ||
| 1046 | - //TODO: Carregar informaes da assinatura digital | 1038 | + //TODO: Carregar informações da assinatura digital |
| 1047 | //$this->atribuirAssinaturaEletronica($objDocumento->componenteDigital, $objDocumentoDTO); | 1039 | //$this->atribuirAssinaturaEletronica($objDocumento->componenteDigital, $objDocumentoDTO); |
| 1048 | 1040 | ||
| 1049 | $objDocumento->componenteDigital->idAnexo = $arrInformacaoArquivo['ID_ANEXO']; | 1041 | $objDocumento->componenteDigital->idAnexo = $arrInformacaoArquivo['ID_ANEXO']; |
| @@ -1128,7 +1120,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1128,7 +1120,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1128 | { | 1120 | { |
| 1129 | 1121 | ||
| 1130 | if(!isset($objDocumentoDTO)){ | 1122 | if(!isset($objDocumentoDTO)){ |
| 1131 | - throw new InfraException('Parmetro $objDocumentoDTO no informado.'); | 1123 | + throw new InfraException('Parâmetro $objDocumentoDTO não informado.'); |
| 1132 | } | 1124 | } |
| 1133 | 1125 | ||
| 1134 | $arrInformacaoArquivo = array(); | 1126 | $arrInformacaoArquivo = array(); |
| @@ -1169,17 +1161,17 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1169,17 +1161,17 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1169 | $objAnexoDTO = $this->consultarAnexo($objDocumentoDTO->getDblIdDocumento()); | 1161 | $objAnexoDTO = $this->consultarAnexo($objDocumentoDTO->getDblIdDocumento()); |
| 1170 | 1162 | ||
| 1171 | if(!isset($objAnexoDTO)){ | 1163 | if(!isset($objAnexoDTO)){ |
| 1172 | - throw new InfraException("Componente digital do documento {$strProtocoloDocumentoFormatado} no pode ser localizado."); | 1164 | + throw new InfraException("Componente digital do documento {$strProtocoloDocumentoFormatado} não pode ser localizado."); |
| 1173 | } | 1165 | } |
| 1174 | 1166 | ||
| 1175 | //VALIDAO DE TAMANHO DE DOCUMENTOS EXTERNOS PARA A EXPEDIO | 1167 | //VALIDAO DE TAMANHO DE DOCUMENTOS EXTERNOS PARA A EXPEDIO |
| 1176 | $objPenParametroRN = new PenParametroRN(); | 1168 | $objPenParametroRN = new PenParametroRN(); |
| 1177 | if($objAnexoDTO->getNumTamanho() > ($objPenParametroRN->getParametro('PEN_TAMANHO_MAXIMO_DOCUMENTO_EXPEDIDO') * 1024 * 1024) && $objDocumentoDTO->getStrStaEstadoProtocolo() != ProtocoloRN::$TE_DOCUMENTO_CANCELADO){ | 1169 | if($objAnexoDTO->getNumTamanho() > ($objPenParametroRN->getParametro('PEN_TAMANHO_MAXIMO_DOCUMENTO_EXPEDIDO') * 1024 * 1024) && $objDocumentoDTO->getStrStaEstadoProtocolo() != ProtocoloRN::$TE_DOCUMENTO_CANCELADO){ |
| 1178 | $strTamanhoFormatado = round(($objAnexoDTO->getNumTamanho() / 1024) / 1024,2); | 1170 | $strTamanhoFormatado = round(($objAnexoDTO->getNumTamanho() / 1024) / 1024,2); |
| 1179 | - throw new InfraException("O tamanho do documento {$strTamanhoFormatado} MB é maior que os {$objPenParametroRN->getParametro('PEN_TAMANHO_MAXIMO_DOCUMENTO_EXPEDIDO')} MB permitidos para a expedio de documentos externos."); | 1171 | + throw new InfraException("O tamanho do documento {$strTamanhoFormatado} MB é maior que os {$objPenParametroRN->getParametro('PEN_TAMANHO_MAXIMO_DOCUMENTO_EXPEDIDO')} MB permitidos para a expedição de documentos externos."); |
| 1180 | } | 1172 | } |
| 1181 | 1173 | ||
| 1182 | - //Obteno do conteudo do documento externo | 1174 | + //Obtenção do conteúdo do documento externo |
| 1183 | //TODO: Particionar o documento em tamanho menor caso ultrapasse XX megabytes | 1175 | //TODO: Particionar o documento em tamanho menor caso ultrapasse XX megabytes |
| 1184 | $strCaminhoAnexo = $this->objAnexoRN->obterLocalizacao($objAnexoDTO); | 1176 | $strCaminhoAnexo = $this->objAnexoRN->obterLocalizacao($objAnexoDTO); |
| 1185 | 1177 | ||
| @@ -1189,7 +1181,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1189,7 +1181,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1189 | fclose($fp); | 1181 | fclose($fp); |
| 1190 | } catch(Exception $e) { | 1182 | } catch(Exception $e) { |
| 1191 | fclose($fp); | 1183 | fclose($fp); |
| 1192 | - throw new InfraException("Erro obtendo conteudo do anexo do documento {$strProtocoloDocumentoFormatado}", $e); | 1184 | + throw new InfraException("Erro obtendo conteúdo do anexo do documento {$strProtocoloDocumentoFormatado}", $e); |
| 1193 | } | 1185 | } |
| 1194 | 1186 | ||
| 1195 | $finfo = finfo_open(FILEINFO_MIME_TYPE); | 1187 | $finfo = finfo_open(FILEINFO_MIME_TYPE); |
| @@ -1206,7 +1198,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1206,7 +1198,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1206 | finfo_close($finfo); | 1198 | finfo_close($finfo); |
| 1207 | } catch(Exception $e) { | 1199 | } catch(Exception $e) { |
| 1208 | finfo_close($finfo); | 1200 | finfo_close($finfo); |
| 1209 | - throw new InfraException("Erro obtendo informaes do anexo do documento {$strProtocoloDocumentoFormatado}", $e); | 1201 | + throw new InfraException("Erro obtendo informações do anexo do documento {$strProtocoloDocumentoFormatado}", $e); |
| 1210 | } | 1202 | } |
| 1211 | 1203 | ||
| 1212 | $arrInformacaoArquivo['NOME'] = $objAnexoDTO->getStrNome(); | 1204 | $arrInformacaoArquivo['NOME'] = $objAnexoDTO->getStrNome(); |
| @@ -1241,7 +1233,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1241,7 +1233,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1241 | private function obterTipoDeConteudo($strMimeType) | 1233 | private function obterTipoDeConteudo($strMimeType) |
| 1242 | { | 1234 | { |
| 1243 | if(!isset($strMimeType)){ | 1235 | if(!isset($strMimeType)){ |
| 1244 | - throw new InfraException('Parmetro $strMimeType no informado.'); | 1236 | + throw new InfraException('Parâmetro $strMimeType não informado.'); |
| 1245 | } | 1237 | } |
| 1246 | 1238 | ||
| 1247 | $resultado = self::TC_TIPO_CONTEUDO_OUTROS; | 1239 | $resultado = self::TC_TIPO_CONTEUDO_OUTROS; |
| @@ -1304,7 +1296,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1304,7 +1296,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1304 | private function consultarUnidade($numIdUnidade) | 1296 | private function consultarUnidade($numIdUnidade) |
| 1305 | { | 1297 | { |
| 1306 | if(!isset($numIdUnidade)){ | 1298 | if(!isset($numIdUnidade)){ |
| 1307 | - throw new InfraException('Parmetro $numIdUnidade no informado.'); | 1299 | + throw new InfraException('Parâmetro $numIdUnidade não informado.'); |
| 1308 | } | 1300 | } |
| 1309 | 1301 | ||
| 1310 | $objUnidadeDTO = new UnidadeDTO(); | 1302 | $objUnidadeDTO = new UnidadeDTO(); |
| @@ -1317,7 +1309,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1317,7 +1309,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1317 | private function consultarSerie($numIdSerie) | 1309 | private function consultarSerie($numIdSerie) |
| 1318 | { | 1310 | { |
| 1319 | if(!isset($numIdSerie)){ | 1311 | if(!isset($numIdSerie)){ |
| 1320 | - throw new InfraException('Parmetro $numIdSerie no informado.'); | 1312 | + throw new InfraException('Parâmetro $numIdSerie não informado.'); |
| 1321 | } | 1313 | } |
| 1322 | 1314 | ||
| 1323 | $objSerieDTO = new SerieDTO(); | 1315 | $objSerieDTO = new SerieDTO(); |
| @@ -1340,7 +1332,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1340,7 +1332,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1340 | public function consultarProcedimento($numIdProcedimento) | 1332 | public function consultarProcedimento($numIdProcedimento) |
| 1341 | { | 1333 | { |
| 1342 | if(!isset($numIdProcedimento)){ | 1334 | if(!isset($numIdProcedimento)){ |
| 1343 | - throw new InfraException('Parmetro $numIdProcedimento no informado.'); | 1335 | + throw new InfraException('Parâmetro $numIdProcedimento não informado.'); |
| 1344 | } | 1336 | } |
| 1345 | 1337 | ||
| 1346 | $objProcedimentoDTO = new ProcedimentoDTO(); | 1338 | $objProcedimentoDTO = new ProcedimentoDTO(); |
| @@ -1363,7 +1355,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1363,7 +1355,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1363 | public function listarInteressados($numIdProtocolo) | 1355 | public function listarInteressados($numIdProtocolo) |
| 1364 | { | 1356 | { |
| 1365 | if(!isset($numIdProtocolo)){ | 1357 | if(!isset($numIdProtocolo)){ |
| 1366 | - throw new InfraException('Parmetro $numIdProtocolo no informado.'); | 1358 | + throw new InfraException('Parâmetro $numIdProtocolo não informado.'); |
| 1367 | } | 1359 | } |
| 1368 | 1360 | ||
| 1369 | $objParticipanteDTO = new ParticipanteDTO(); | 1361 | $objParticipanteDTO = new ParticipanteDTO(); |
| @@ -1391,7 +1383,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1391,7 +1383,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1391 | private function consultarAnexo($dblIdDocumento) | 1383 | private function consultarAnexo($dblIdDocumento) |
| 1392 | { | 1384 | { |
| 1393 | if(!isset($dblIdDocumento)){ | 1385 | if(!isset($dblIdDocumento)){ |
| 1394 | - throw new InfraException('Parmetro $dblIdDocumento no informado.'); | 1386 | + throw new InfraException('Parâmetro $dblIdDocumento não informado.'); |
| 1395 | } | 1387 | } |
| 1396 | 1388 | ||
| 1397 | $objAnexoDTO = new AnexoDTO(); | 1389 | $objAnexoDTO = new AnexoDTO(); |
| @@ -1409,7 +1401,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1409,7 +1401,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1409 | private function consultarUsuario($numIdUsuario) | 1401 | private function consultarUsuario($numIdUsuario) |
| 1410 | { | 1402 | { |
| 1411 | if(!isset($numIdUsuario)){ | 1403 | if(!isset($numIdUsuario)){ |
| 1412 | - throw new InfraException('Parmetro $numIdUsuario no informado.'); | 1404 | + throw new InfraException('Parâmetro $numIdUsuario não informado.'); |
| 1413 | } | 1405 | } |
| 1414 | 1406 | ||
| 1415 | $objUsuarioDTO = new UsuarioDTO(); | 1407 | $objUsuarioDTO = new UsuarioDTO(); |
| @@ -1423,7 +1415,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1423,7 +1415,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1423 | public function listarDocumentos($idProcedimento) | 1415 | public function listarDocumentos($idProcedimento) |
| 1424 | { | 1416 | { |
| 1425 | if(!isset($idProcedimento)){ | 1417 | if(!isset($idProcedimento)){ |
| 1426 | - throw new InfraException('Parmetro $idProcedimento no informado.'); | 1418 | + throw new InfraException('Parâmetro $idProcedimento não informado.'); |
| 1427 | } | 1419 | } |
| 1428 | 1420 | ||
| 1429 | $documentoDTO = new DocumentoDTO(); | 1421 | $documentoDTO = new DocumentoDTO(); |
| @@ -1483,7 +1475,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1483,7 +1475,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1483 | private function consultarDocumento($dblIdDocumento) | 1475 | private function consultarDocumento($dblIdDocumento) |
| 1484 | { | 1476 | { |
| 1485 | if(!isset($dblIdDocumento)){ | 1477 | if(!isset($dblIdDocumento)){ |
| 1486 | - throw new InfraException('Parmetro $dblIdDocumento no informado.'); | 1478 | + throw new InfraException('Parâmetro $dblIdDocumento não informado.'); |
| 1487 | } | 1479 | } |
| 1488 | 1480 | ||
| 1489 | $documentoDTO = new DocumentoDTO(); | 1481 | $documentoDTO = new DocumentoDTO(); |
| @@ -1513,15 +1505,15 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1513,15 +1505,15 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1513 | 1505 | ||
| 1514 | private function enviarComponentesDigitais($strNumeroRegistro, $numIdTramite, $strProtocolo) { | 1506 | private function enviarComponentesDigitais($strNumeroRegistro, $numIdTramite, $strProtocolo) { |
| 1515 | if (!isset($strNumeroRegistro)) { | 1507 | if (!isset($strNumeroRegistro)) { |
| 1516 | - throw new InfraException('Parmetro $strNumeroRegistro no informado.'); | 1508 | + throw new InfraException('Parâmetro $strNumeroRegistro não informado.'); |
| 1517 | } | 1509 | } |
| 1518 | 1510 | ||
| 1519 | if (!isset($numIdTramite)) { | 1511 | if (!isset($numIdTramite)) { |
| 1520 | - throw new InfraException('Parmetro $numIdTramite no informado.'); | 1512 | + throw new InfraException('Parâmetro $numIdTramite não informado.'); |
| 1521 | } | 1513 | } |
| 1522 | 1514 | ||
| 1523 | if (!isset($strProtocolo)) { | 1515 | if (!isset($strProtocolo)) { |
| 1524 | - throw new InfraException('Parmetro $strProtocolo no informado.'); | 1516 | + throw new InfraException('Parâmetro $strProtocolo não informado.'); |
| 1525 | } | 1517 | } |
| 1526 | 1518 | ||
| 1527 | //Obter dados dos componetes digitais | 1519 | //Obter dados dos componetes digitais |
| @@ -1595,32 +1587,32 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1595,32 +1587,32 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1595 | private function validarParametrosExpedicao(InfraException $objInfraException, ExpedirProcedimentoDTO $objExpedirProcedimentoDTO) | 1587 | private function validarParametrosExpedicao(InfraException $objInfraException, ExpedirProcedimentoDTO $objExpedirProcedimentoDTO) |
| 1596 | { | 1588 | { |
| 1597 | if(!isset($objExpedirProcedimentoDTO)){ | 1589 | if(!isset($objExpedirProcedimentoDTO)){ |
| 1598 | - $objInfraException->adicionarValidacao('Parmetro $objExpedirProcedimentoDTO no informado.'); | 1590 | + $objInfraException->adicionarValidacao('Parâmetro $objExpedirProcedimentoDTO não informado.'); |
| 1599 | } | 1591 | } |
| 1600 | 1592 | ||
| 1601 | //TODO: Validar se repositrio de origem foi informado | 1593 | //TODO: Validar se repositrio de origem foi informado |
| 1602 | if (InfraString::isBolVazia($objExpedirProcedimentoDTO->getNumIdRepositorioOrigem())){ | 1594 | if (InfraString::isBolVazia($objExpedirProcedimentoDTO->getNumIdRepositorioOrigem())){ |
| 1603 | - $objInfraException->adicionarValidacao('Identificao do Repositrio de Estruturas da unidade atual no informado.'); | 1595 | + $objInfraException->adicionarValidacao('Identificação do repositório de estruturas da unidade atual não informado.'); |
| 1604 | } | 1596 | } |
| 1605 | 1597 | ||
| 1606 | //TODO: Validar se unidade de origem foi informado | 1598 | //TODO: Validar se unidade de origem foi informado |
| 1607 | if (InfraString::isBolVazia($objExpedirProcedimentoDTO->getNumIdUnidadeOrigem())){ | 1599 | if (InfraString::isBolVazia($objExpedirProcedimentoDTO->getNumIdUnidadeOrigem())){ |
| 1608 | - $objInfraException->adicionarValidacao('Identificao da unidade atual no Repositrio de Estruturas Organizacionais no informado.'); | 1600 | + $objInfraException->adicionarValidacao('Identificação da unidade atual no repositório de estruturas organizacionais não informado.'); |
| 1609 | } | 1601 | } |
| 1610 | 1602 | ||
| 1611 | //TODO: Validar se repositrio foi devidamente informado | 1603 | //TODO: Validar se repositrio foi devidamente informado |
| 1612 | if (InfraString::isBolVazia($objExpedirProcedimentoDTO->getNumIdRepositorioDestino())){ | 1604 | if (InfraString::isBolVazia($objExpedirProcedimentoDTO->getNumIdRepositorioDestino())){ |
| 1613 | - $objInfraException->adicionarValidacao('Repositrio de Estruturas Organizacionais no informado.'); | 1605 | + $objInfraException->adicionarValidacao('Repositório de estruturas organizacionais não informado.'); |
| 1614 | } | 1606 | } |
| 1615 | 1607 | ||
| 1616 | //TODO: Validar se unidade foi devidamente informada | 1608 | //TODO: Validar se unidade foi devidamente informada |
| 1617 | if (InfraString::isBolVazia($objExpedirProcedimentoDTO->getNumIdUnidadeDestino())){ | 1609 | if (InfraString::isBolVazia($objExpedirProcedimentoDTO->getNumIdUnidadeDestino())){ |
| 1618 | - $objInfraException->adicionarValidacao('Unidade de destino no informado.'); | 1610 | + $objInfraException->adicionarValidacao('Unidade de destino não informado.'); |
| 1619 | } | 1611 | } |
| 1620 | 1612 | ||
| 1621 | //TODO: Validar se motivo de urgncia foi devidamente informado, caso expedio urgente | 1613 | //TODO: Validar se motivo de urgncia foi devidamente informado, caso expedio urgente |
| 1622 | if ($objExpedirProcedimentoDTO->getBolSinUrgente() && InfraString::isBolVazia($objExpedirProcedimentoDTO->getNumIdMotivoUrgencia())){ | 1614 | if ($objExpedirProcedimentoDTO->getBolSinUrgente() && InfraString::isBolVazia($objExpedirProcedimentoDTO->getNumIdMotivoUrgencia())){ |
| 1623 | - $objInfraException->adicionarValidacao('Motivo de urgncia da expedio do processo no informado .'); | 1615 | + $objInfraException->adicionarValidacao('Motivo de urgência da expedição do processo não informado.'); |
| 1624 | } | 1616 | } |
| 1625 | } | 1617 | } |
| 1626 | 1618 | ||
| @@ -1628,18 +1620,18 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1628,18 +1620,18 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1628 | { | 1620 | { |
| 1629 | $arrObjDocumentoDTO = $objProcedimentoDTO->getArrObjDocumentoDTO(); | 1621 | $arrObjDocumentoDTO = $objProcedimentoDTO->getArrObjDocumentoDTO(); |
| 1630 | if(!isset($arrObjDocumentoDTO) || count($arrObjDocumentoDTO) == 0) { | 1622 | if(!isset($arrObjDocumentoDTO) || count($arrObjDocumentoDTO) == 0) { |
| 1631 | - $objInfraException->adicionarValidacao('No possvel expedir um processo sem documentos!', $strAtributoValidacao); | 1623 | + $objInfraException->adicionarValidacao('Não é possvel expedir um processo sem documentos', $strAtributoValidacao); |
| 1632 | } | 1624 | } |
| 1633 | } | 1625 | } |
| 1634 | 1626 | ||
| 1635 | private function validarDadosProcedimento(InfraException $objInfraException, ProcedimentoDTO $objProcedimentoDTO, $strAtributoValidacao = null) | 1627 | private function validarDadosProcedimento(InfraException $objInfraException, ProcedimentoDTO $objProcedimentoDTO, $strAtributoValidacao = null) |
| 1636 | { | 1628 | { |
| 1637 | if($objProcedimentoDTO->isSetStrDescricaoProtocolo() && InfraString::isBolVazia($objProcedimentoDTO->getStrDescricaoProtocolo())) { | 1629 | if($objProcedimentoDTO->isSetStrDescricaoProtocolo() && InfraString::isBolVazia($objProcedimentoDTO->getStrDescricaoProtocolo())) { |
| 1638 | - $objInfraException->adicionarValidacao("Descrio do processo {$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado()} no informado.", $strAtributoValidacao); | 1630 | + $objInfraException->adicionarValidacao("Descrição do processo {$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado()} não informado.", $strAtributoValidacao); |
| 1639 | } | 1631 | } |
| 1640 | 1632 | ||
| 1641 | if(!$objProcedimentoDTO->isSetArrObjParticipanteDTO() || count($objProcedimentoDTO->getArrObjParticipanteDTO()) == 0) { | 1633 | if(!$objProcedimentoDTO->isSetArrObjParticipanteDTO() || count($objProcedimentoDTO->getArrObjParticipanteDTO()) == 0) { |
| 1642 | - $objInfraException->adicionarValidacao("Interessados do processo {$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado()} no informados.", $strAtributoValidacao); | 1634 | + $objInfraException->adicionarValidacao("Interessados do processo {$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado()} não informados.", $strAtributoValidacao); |
| 1643 | } | 1635 | } |
| 1644 | } | 1636 | } |
| 1645 | 1637 | ||
| @@ -1675,7 +1667,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1675,7 +1667,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1675 | $objHipoteseLegalRN = new HipoteseLegalRN(); | 1667 | $objHipoteseLegalRN = new HipoteseLegalRN(); |
| 1676 | $dados = $objHipoteseLegalRN->consultar($objHipoteseLegalDTO); | 1668 | $dados = $objHipoteseLegalRN->consultar($objHipoteseLegalDTO); |
| 1677 | 1669 | ||
| 1678 | - $objInfraException->adicionarValidacao('Hiptese legal "'.$dados->getStrNome().'" do documento '.$objDocumentoDTO->getStrNomeSerie(). ' ' . $objDocumentoDTO->getStrProtocoloDocumentoFormatado() .' não foi mapeada', $strAtributoValidacao); | 1670 | + $objInfraException->adicionarValidacao('Hipótese legal "'.$dados->getStrNome().'" do documento '.$objDocumentoDTO->getStrNomeSerie(). ' ' . $objDocumentoDTO->getStrProtocoloDocumentoFormatado() .' não mapeada', $strAtributoValidacao); |
| 1679 | } | 1671 | } |
| 1680 | } | 1672 | } |
| 1681 | } | 1673 | } |
| @@ -1694,7 +1686,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1694,7 +1686,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1694 | 1686 | ||
| 1695 | if(isset($arrObjAtividadeDTO) && count($arrObjAtividadeDTO) > 1) { | 1687 | if(isset($arrObjAtividadeDTO) && count($arrObjAtividadeDTO) > 1) { |
| 1696 | $strSiglaUnidade = implode(', ', InfraArray::converterArrInfraDTO($arrObjAtividadeDTO, 'SiglaUnidade')); | 1688 | $strSiglaUnidade = implode(', ', InfraArray::converterArrInfraDTO($arrObjAtividadeDTO, 'SiglaUnidade')); |
| 1697 | - $objInfraException->adicionarValidacao("No possvel expedir processo aberto em mais de uma unidades. ($strSiglaUnidade)", $strAtributoValidacao); | 1689 | + $objInfraException->adicionarValidacao("Não é possível expedir processo aberto em mais de uma unidade. ($strSiglaUnidade)", $strAtributoValidacao); |
| 1698 | } | 1690 | } |
| 1699 | } | 1691 | } |
| 1700 | 1692 | ||
| @@ -1708,7 +1700,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1708,7 +1700,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1708 | // $objProcedimentoDTO = $this->objProcedimentoRN->consultarRN0201($objProcedimentoDTO); | 1700 | // $objProcedimentoDTO = $this->objProcedimentoRN->consultarRN0201($objProcedimentoDTO); |
| 1709 | 1701 | ||
| 1710 | if ($objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_SIGILOSO) { | 1702 | if ($objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_SIGILOSO) { |
| 1711 | - $objInfraException->adicionarValidacao('No possvel expedir processo com informaes sigilosas.', $strAtributoValidacao); | 1703 | + $objInfraException->adicionarValidacao('Não é possível expedir processo com informações sigilosas.', $strAtributoValidacao); |
| 1712 | } | 1704 | } |
| 1713 | } | 1705 | } |
| 1714 | 1706 | ||
| @@ -1721,7 +1713,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1721,7 +1713,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1721 | private function validarHipoteseLegalEnvio(InfraException $objInfraException, ProcedimentoDTO $objProcedimentoDTO, $strAtributoValidacao = null) { | 1713 | private function validarHipoteseLegalEnvio(InfraException $objInfraException, ProcedimentoDTO $objProcedimentoDTO, $strAtributoValidacao = null) { |
| 1722 | if ($objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_RESTRITO) { | 1714 | if ($objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_RESTRITO) { |
| 1723 | if (empty($objProcedimentoDTO->getNumIdHipoteseLegalProtocolo())) { | 1715 | if (empty($objProcedimentoDTO->getNumIdHipoteseLegalProtocolo())) { |
| 1724 | - $objInfraException->adicionarValidacao('No possvel expedir processo de nvel restrito sem a hiptese legal mapeada.', $strAtributoValidacao); | 1716 | + $objInfraException->adicionarValidacao('Não é possível expedir processo de nível restrito sem a hipótese legal mapeada.', $strAtributoValidacao); |
| 1725 | } | 1717 | } |
| 1726 | } | 1718 | } |
| 1727 | } | 1719 | } |
| @@ -1752,7 +1744,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1752,7 +1744,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1752 | 1744 | ||
| 1753 | $objAssinaturaDTO->setDblIdDocumento($objDocumentoDTO->getDblIdDocumento()); | 1745 | $objAssinaturaDTO->setDblIdDocumento($objDocumentoDTO->getDblIdDocumento()); |
| 1754 | 1746 | ||
| 1755 | - // Se o documento no tem assinatura e no foi cancelado ento | 1747 | + // Se o documento no tem assinatura e não foi cancelado ento |
| 1756 | // cai na regra de validao | 1748 | // cai na regra de validao |
| 1757 | if($objAssinaturaRN->contarRN1324($objAssinaturaDTO) == 0 && $objDocumentoDTO->getStrStaEstadoProtocolo() != ProtocoloRN::$TE_DOCUMENTO_CANCELADO && ($objDocumentoDTO->getStrStaDocumento() == DocumentoRN::$TD_EDITOR_EDOC || $objDocumentoDTO->getStrStaDocumento() == DocumentoRN::$TD_EDITOR_INTERNO) ){ | 1749 | if($objAssinaturaRN->contarRN1324($objAssinaturaDTO) == 0 && $objDocumentoDTO->getStrStaEstadoProtocolo() != ProtocoloRN::$TE_DOCUMENTO_CANCELADO && ($objDocumentoDTO->getStrStaDocumento() == DocumentoRN::$TD_EDITOR_EDOC || $objDocumentoDTO->getStrStaDocumento() == DocumentoRN::$TD_EDITOR_INTERNO) ){ |
| 1758 | 1750 | ||
| @@ -1762,14 +1754,14 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1762,14 +1754,14 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1762 | } | 1754 | } |
| 1763 | 1755 | ||
| 1764 | if($bolAssinaturaCorretas !== true) { | 1756 | if($bolAssinaturaCorretas !== true) { |
| 1765 | - $objInfraException->adicionarValidacao('No possvel expedir processos com documentos gerados e no assinados!', $strAtributoValidacao); | 1757 | + $objInfraException->adicionarValidacao('Não é possível expedir processos com documentos gerados e não assinados', $strAtributoValidacao); |
| 1766 | } | 1758 | } |
| 1767 | } | 1759 | } |
| 1768 | 1760 | ||
| 1769 | /** | 1761 | /** |
| 1770 | * Validao das pr-conidies necessrias para que um processo e seus documentos possam ser expedidos para outra entidade | 1762 | * Validao das pr-conidies necessrias para que um processo e seus documentos possam ser expedidos para outra entidade |
| 1771 | * @param InfraException $objInfraException Instncia da classe de exceo para registro dos erros | 1763 | * @param InfraException $objInfraException Instncia da classe de exceo para registro dos erros |
| 1772 | - * @param ProcedimentoDTO $objProcedimentoDTO Informaes sobre o procedimento a ser expedido | 1764 | + * @param ProcedimentoDTO $objProcedimentoDTO Informações sobre o procedimento a ser expedido |
| 1773 | * @param string $strAtributoValidacao indice para o InfraException separar os processos | 1765 | * @param string $strAtributoValidacao indice para o InfraException separar os processos |
| 1774 | */ | 1766 | */ |
| 1775 | public function validarPreCondicoesExpedirProcedimento(InfraException $objInfraException, ProcedimentoDTO $objProcedimentoDTO, $strAtributoValidacao = null) | 1767 | public function validarPreCondicoesExpedirProcedimento(InfraException $objInfraException, ProcedimentoDTO $objProcedimentoDTO, $strAtributoValidacao = null) |
| @@ -1809,7 +1801,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1809,7 +1801,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1809 | $idUnidadeAtual = filter_var($idUnidadeAtual, FILTER_SANITIZE_NUMBER_INT); | 1801 | $idUnidadeAtual = filter_var($idUnidadeAtual, FILTER_SANITIZE_NUMBER_INT); |
| 1810 | 1802 | ||
| 1811 | if(!$idUnidadeAtual){ | 1803 | if(!$idUnidadeAtual){ |
| 1812 | - $objInfraException->adicionarValidacao('Processo invlido.'); | 1804 | + $objInfraException->adicionarValidacao('Processo inválido.'); |
| 1813 | } | 1805 | } |
| 1814 | 1806 | ||
| 1815 | $objInfraException->lancarValidacoes(); | 1807 | $objInfraException->lancarValidacoes(); |
| @@ -1892,7 +1884,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1892,7 +1884,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1892 | $idUnidadeAtual = filter_var($idUnidadeAtual, FILTER_SANITIZE_NUMBER_INT); | 1884 | $idUnidadeAtual = filter_var($idUnidadeAtual, FILTER_SANITIZE_NUMBER_INT); |
| 1893 | 1885 | ||
| 1894 | if(!$idUnidadeAtual){ | 1886 | if(!$idUnidadeAtual){ |
| 1895 | - $objInfraException->adicionarValidacao('Processo invlido.'); | 1887 | + $objInfraException->adicionarValidacao('Processo inválido.'); |
| 1896 | } | 1888 | } |
| 1897 | 1889 | ||
| 1898 | $objInfraException->lancarValidacoes(); | 1890 | $objInfraException->lancarValidacoes(); |
| @@ -1926,7 +1918,6 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -1926,7 +1918,6 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 1926 | 1918 | ||
| 1927 | $arrResultado = array(); | 1919 | $arrResultado = array(); |
| 1928 | $arrObjAtividadeDTO = $this->objAtividadeRN->listarRN0036($objAtividadeDTO); | 1920 | $arrObjAtividadeDTO = $this->objAtividadeRN->listarRN0036($objAtividadeDTO); |
| 1929 | - //$arrObjAtividadeDTOIndexado = $arrObjAtividadeDTO; | ||
| 1930 | $arrObjAtividadeDTOIndexado = InfraArray::indexarArrInfraDTO($arrObjAtividadeDTO, 'ProtocoloFormatadoProtocolo', true); | 1921 | $arrObjAtividadeDTOIndexado = InfraArray::indexarArrInfraDTO($arrObjAtividadeDTO, 'ProtocoloFormatadoProtocolo', true); |
| 1931 | 1922 | ||
| 1932 | foreach ($arrObjAtividadeDTOIndexado as $key => $value) { | 1923 | foreach ($arrObjAtividadeDTOIndexado as $key => $value) { |
| @@ -2031,152 +2022,6 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -2031,152 +2022,6 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 2031 | } | 2022 | } |
| 2032 | 2023 | ||
| 2033 | 2024 | ||
| 2034 | - | ||
| 2035 | - | ||
| 2036 | - | ||
| 2037 | - | ||
| 2038 | -// //---------------------------------------------------------------------------------------------// | ||
| 2039 | -// // IMPLEMENTAO SOFTMAIS // | ||
| 2040 | -// //---------------------------------------------------------------------------------------------// | ||
| 2041 | -// public function consultarUnidadesHierarquia() { | ||
| 2042 | -// $selRepositorioEstruturas = (int) $_POST['selRepositorioEstruturas']; | ||
| 2043 | - | ||
| 2044 | -// $i = 0; | ||
| 2045 | -// $dadosArray = array(); | ||
| 2046 | -// $dadosArrayHierarquia = array(); | ||
| 2047 | - | ||
| 2048 | - | ||
| 2049 | -// $result = $this->objProcessoEletronicoRN->serviceConsultarEstruturas($selRepositorioEstruturas); | ||
| 2050 | - | ||
| 2051 | -// if (is_object($result->estruturasEncontradas->estrutura)) | ||
| 2052 | -// $result->estruturasEncontradas->estrutura = array($result->estruturasEncontradas->estrutura); | ||
| 2053 | - | ||
| 2054 | -// foreach ($result->estruturasEncontradas->estrutura as $estrutura) { | ||
| 2055 | - | ||
| 2056 | -// $j = 0; | ||
| 2057 | - | ||
| 2058 | -// if (isset($estrutura->nome)) | ||
| 2059 | -// $dadosArray[$i]['estrutura'] = array('nome' => $estrutura->nome, 'numeroDeIdentificacaoDaEstrutura' => $estrutura->numeroDeIdentificacaoDaEstrutura); | ||
| 2060 | - | ||
| 2061 | -// if (isset($estrutura->hierarquia)) { | ||
| 2062 | -// if (is_object($estrutura->hierarquia->nivel)) | ||
| 2063 | -// $estrutura->hierarquia->nivel = array($estrutura->hierarquia->nivel); | ||
| 2064 | -// foreach ($estrutura->hierarquia->nivel as $key => $nivel) { | ||
| 2065 | -// $dadosArrayHierarquia[$j] = array('nome' => $nivel->nome, 'numeroDeIdentificacaoDaEstrutura' => $nivel->numeroDeIdentificacaoDaEstrutura); | ||
| 2066 | -// $j++; | ||
| 2067 | -// } | ||
| 2068 | -// } | ||
| 2069 | - | ||
| 2070 | -// $dadosArray[$i]['hierarquia'] = $dadosArrayHierarquia; | ||
| 2071 | - | ||
| 2072 | - | ||
| 2073 | -// $i++; | ||
| 2074 | -// } | ||
| 2075 | - | ||
| 2076 | -// echo json_encode($dadosArray); | ||
| 2077 | -// } | ||
| 2078 | - | ||
| 2079 | - | ||
| 2080 | -// /** | ||
| 2081 | -// * @author Fabio.braga@softimais.com.br | ||
| 2082 | -// * @deprecated enviar docTramites | ||
| 2083 | -// * data : 28/05/2015 | ||
| 2084 | -// * @return 1 | ||
| 2085 | -// */ | ||
| 2086 | -// public function enviarDocProdimentoTramite() | ||
| 2087 | -// { | ||
| 2088 | - | ||
| 2089 | -// $resultListaPendencia = $this->consultarListarPendencias(); | ||
| 2090 | -// // echo "<pre>"; | ||
| 2091 | -// // var_dump($resultListaPendencia); | ||
| 2092 | -// // exit; | ||
| 2093 | - | ||
| 2094 | -// foreach ($resultListaPendencia->listaDePendencias->IDT as $listaPendencia) | ||
| 2095 | -// { | ||
| 2096 | - | ||
| 2097 | -// if($listaPendencia->status == 1 ) | ||
| 2098 | -// { | ||
| 2099 | - | ||
| 2100 | -// $resultTramite = $this->objProcessoEletronicoRN->serviceConsultarTramitesComFiltros( $listaPendencia->_ ); | ||
| 2101 | - | ||
| 2102 | -// $resultDocumentos = $this->consultarProtocoloNumeroProtocolo($resultTramite->tramitesEncontrados->tramite->protocolo); | ||
| 2103 | - | ||
| 2104 | -// foreach ($resultDocumentos->Documentos as $key => $documentos) | ||
| 2105 | -// { | ||
| 2106 | - | ||
| 2107 | -// $fp = fopen( 'modulos/pen/binario1.txt', "w+"); | ||
| 2108 | -// fwrite($fp, $documentos->getStrConteudo() ); | ||
| 2109 | -// fclose($fp); | ||
| 2110 | - | ||
| 2111 | -// $caminhoRelativoArquivo = 'modulos/pen/binario1.txt'; | ||
| 2112 | -// $conteudoComponenteDigital = file_get_contents($caminhoRelativoArquivo); | ||
| 2113 | - | ||
| 2114 | - | ||
| 2115 | -// $hashDoComponenteDigitalEmBytes = hash('sha256', $conteudoComponenteDigital, true); | ||
| 2116 | -// $hashDoComponenteDigital = base64_encode($hashDoComponenteDigitalEmBytes); | ||
| 2117 | - | ||
| 2118 | -// $param = new stdClass(); | ||
| 2119 | -// $param->dadosDoComponenteDigital = new stdClass(); | ||
| 2120 | -// $param->dadosDoComponenteDigital->ticketParaEnvioDeComponentesDigitais = $listaPendencia->_ ; | ||
| 2121 | -// $param->dadosDoComponenteDigital->protocolo = $resultTramite->tramitesEncontrados->tramite->protocolo; | ||
| 2122 | - | ||
| 2123 | -// $param->dadosDoComponenteDigital->hashDoComponenteDigital = $hashDoComponenteDigital; | ||
| 2124 | -// $param->dadosDoComponenteDigital->conteudoDoComponenteDigital = new SoapVar($conteudoComponenteDigital, XSD_BASE64BINARY); | ||
| 2125 | -// $this->objProcessoEletronicoRN->serviceEnviarComponenteDigital($param); | ||
| 2126 | - | ||
| 2127 | - | ||
| 2128 | -// $param = new stdClass(); | ||
| 2129 | -// $param->IDT =$listaPendencia->_ ; | ||
| 2130 | - | ||
| 2131 | -// $metadados = $this->objProcessoEletronicoRN->serviceSolicitarMetadados($param); | ||
| 2132 | - | ||
| 2133 | -// } | ||
| 2134 | - | ||
| 2135 | - | ||
| 2136 | -// } | ||
| 2137 | - | ||
| 2138 | - | ||
| 2139 | -// } | ||
| 2140 | - | ||
| 2141 | - | ||
| 2142 | - | ||
| 2143 | - | ||
| 2144 | - | ||
| 2145 | -// } | ||
| 2146 | - | ||
| 2147 | - | ||
| 2148 | - | ||
| 2149 | -// /** | ||
| 2150 | -// * @author Fabio.braga@softimais.com.br | ||
| 2151 | -// * @deprecated consulta processo | ||
| 2152 | -// * data : 28/05/2015 | ||
| 2153 | -// * @return objet | ||
| 2154 | -// */ | ||
| 2155 | - | ||
| 2156 | -// public function consultarListarPendencias() | ||
| 2157 | -// { | ||
| 2158 | - | ||
| 2159 | -// $result = $this->objProcessoEletronicoRN->serviceListarTodasPendencias( ); | ||
| 2160 | - | ||
| 2161 | -// return $result; | ||
| 2162 | -// } | ||
| 2163 | - | ||
| 2164 | - | ||
| 2165 | -// /** | ||
| 2166 | -// * @author Fabio.braga@softimais.com.br | ||
| 2167 | -// * @deprecated consulta processo | ||
| 2168 | -// * data : 28/05/2015 | ||
| 2169 | -// * @return objet | ||
| 2170 | -// */ | ||
| 2171 | - | ||
| 2172 | -// public function consultarListaPendenciasFiltro( $IDT ) | ||
| 2173 | -// { | ||
| 2174 | - | ||
| 2175 | -// $result = $this->objProcessoEletronicoRN->serviceListarTodasPendencias( ); | ||
| 2176 | - | ||
| 2177 | -// return $result; | ||
| 2178 | -// } | ||
| 2179 | - | ||
| 2180 | /** | 2025 | /** |
| 2181 | * @author Fabio.braga@softimais.com.br | 2026 | * @author Fabio.braga@softimais.com.br |
| 2182 | * @deprecated consulta processo | 2027 | * @deprecated consulta processo |
| @@ -2194,26 +2039,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -2194,26 +2039,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 2194 | $result = $this->objProcessoEletronicoRN->serviceConsultarTramitesProtocolo( $objProtocoloDTO->getStrProtocoloFormatado( ) ); | 2039 | $result = $this->objProcessoEletronicoRN->serviceConsultarTramitesProtocolo( $objProtocoloDTO->getStrProtocoloFormatado( ) ); |
| 2195 | return $result; | 2040 | return $result; |
| 2196 | } | 2041 | } |
| 2197 | - | ||
| 2198 | - | ||
| 2199 | - | ||
| 2200 | -// /** | ||
| 2201 | -// * @author Fabio.braga@softimais.com.br | ||
| 2202 | -// * @deprecated consulta processo | ||
| 2203 | -// * data : 28/05/2015 | ||
| 2204 | -// * @return objet | ||
| 2205 | -// */ | ||
| 2206 | -// public function listarTramiteIDT($iIDT) { | ||
| 2207 | - | ||
| 2208 | - | ||
| 2209 | - | ||
| 2210 | -// $result = $this->objProcessoEletronicoRN->serviceConsultarTramitesIDT( $iIDT ); | ||
| 2211 | - | ||
| 2212 | -// return $result; | ||
| 2213 | - | ||
| 2214 | -// } | ||
| 2215 | - | ||
| 2216 | - | 2042 | + |
| 2217 | 2043 | ||
| 2218 | /** | 2044 | /** |
| 2219 | * Cancela uma expedio de um Procedimento para outra unidade | 2045 | * Cancela uma expedio de um Procedimento para outra unidade |
| @@ -2261,7 +2087,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -2261,7 +2087,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 2261 | $arrObjTramiteDTO = $objTramiteBD->listar($objTramiteDTO); | 2087 | $arrObjTramiteDTO = $objTramiteBD->listar($objTramiteDTO); |
| 2262 | 2088 | ||
| 2263 | if(!$arrObjTramiteDTO){ | 2089 | if(!$arrObjTramiteDTO){ |
| 2264 | - throw new InfraException('Trmite no encontrado para esse processo. '); | 2090 | + throw new InfraException('Trâmite não encontrado para esse processo. '); |
| 2265 | } | 2091 | } |
| 2266 | 2092 | ||
| 2267 | $objTramiteDTO = $arrObjTramiteDTO[0]; | 2093 | $objTramiteDTO = $arrObjTramiteDTO[0]; |
| @@ -2273,17 +2099,17 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -2273,17 +2099,17 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 2273 | $tramite = $tramites ? $tramites[0] : null; | 2099 | $tramite = $tramites ? $tramites[0] : null; |
| 2274 | 2100 | ||
| 2275 | if (!$tramite) { | 2101 | if (!$tramite) { |
| 2276 | - throw new InfraException('Trmite no encontrado para esse processo. '); | 2102 | + throw new InfraException('Trâmite não encontrado para esse processo. '); |
| 2277 | } | 2103 | } |
| 2278 | 2104 | ||
| 2279 | - //Verifica se o trmite est com o status de iniciado | 2105 | + //Verifica se o trâmite est com o status de iniciado |
| 2280 | if ($tramite->situacaoAtual == ProcessoEletronicoRN::$STA_SITUACAO_TRAMITE_INICIADO) { | 2106 | if ($tramite->situacaoAtual == ProcessoEletronicoRN::$STA_SITUACAO_TRAMITE_INICIADO) { |
| 2281 | $this->objProcessoEletronicoRN->cancelarTramite($tramite->IDT); | 2107 | $this->objProcessoEletronicoRN->cancelarTramite($tramite->IDT); |
| 2282 | 2108 | ||
| 2283 | return true; | 2109 | return true; |
| 2284 | } | 2110 | } |
| 2285 | 2111 | ||
| 2286 | - //Busca o processo eletrnico | 2112 | + //Busca o processo eletrônico |
| 2287 | $objDTOFiltro = new ProcessoEletronicoDTO(); | 2113 | $objDTOFiltro = new ProcessoEletronicoDTO(); |
| 2288 | $objDTOFiltro->setDblIdProcedimento($dblIdProcedimento); | 2114 | $objDTOFiltro->setDblIdProcedimento($dblIdProcedimento); |
| 2289 | $objDTOFiltro->retStrNumeroRegistro(); | 2115 | $objDTOFiltro->retStrNumeroRegistro(); |
| @@ -2293,7 +2119,7 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -2293,7 +2119,7 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 2293 | $objProcessoEletronicoDTO = $objBD->consultar($objDTOFiltro); | 2119 | $objProcessoEletronicoDTO = $objBD->consultar($objDTOFiltro); |
| 2294 | 2120 | ||
| 2295 | if (empty($objProcessoEletronicoDTO)) { | 2121 | if (empty($objProcessoEletronicoDTO)) { |
| 2296 | - throw new InfraException('No foi Encontrado o Processo pelo ID ' . $dblIdProcedimento); | 2122 | + throw new InfraException('Não foi encontrado o processo pelo ID ' . $dblIdProcedimento); |
| 2297 | } | 2123 | } |
| 2298 | 2124 | ||
| 2299 | //Armazena a situao atual | 2125 | //Armazena a situao atual |
| @@ -2302,16 +2128,16 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -2302,16 +2128,16 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 2302 | //Valida os status | 2128 | //Valida os status |
| 2303 | switch ($numSituacaoAtual) { | 2129 | switch ($numSituacaoAtual) { |
| 2304 | case ProcessoEletronicoRN::$STA_SITUACAO_TRAMITE_RECIBO_ENVIADO_DESTINATARIO: | 2130 | case ProcessoEletronicoRN::$STA_SITUACAO_TRAMITE_RECIBO_ENVIADO_DESTINATARIO: |
| 2305 | - throw new InfraException("O sistema destinatrio j iniciou o recebimento desse processo, portanto no possivel realizar o cancelamento"); | 2131 | + throw new InfraException("O sistema destinatário já iniciou o recebimento desse processo, portanto não é possível realizar o cancelamento"); |
| 2306 | break; | 2132 | break; |
| 2307 | case ProcessoEletronicoRN::$STA_SITUACAO_TRAMITE_RECIBO_RECEBIDO_REMETENTE: | 2133 | case ProcessoEletronicoRN::$STA_SITUACAO_TRAMITE_RECIBO_RECEBIDO_REMETENTE: |
| 2308 | - throw new InfraException("O sistema destinatrio j recebeu esse processo, portanto no possivel realizar o cancelamento"); | 2134 | + throw new InfraException("O sistema destinatário já recebeu esse processo, portanto não é possivel realizar o cancelamento"); |
| 2309 | break; | 2135 | break; |
| 2310 | case ProcessoEletronicoRN::$STA_SITUACAO_TRAMITE_CANCELADO: | 2136 | case ProcessoEletronicoRN::$STA_SITUACAO_TRAMITE_CANCELADO: |
| 2311 | - throw new InfraException("O trmite externo para esse processo j se encontra cancelado."); | 2137 | + throw new InfraException("O trâmite externo para esse processo já se encontra cancelado."); |
| 2312 | break; | 2138 | break; |
| 2313 | case ProcessoEletronicoRN::$STA_SITUACAO_TRAMITE_RECUSADO: | 2139 | case ProcessoEletronicoRN::$STA_SITUACAO_TRAMITE_RECUSADO: |
| 2314 | - throw new InfraException("O trmite externo para esse processo se encontra recusado."); | 2140 | + throw new InfraException("O trâmite externo para esse processo encontra-se recusado."); |
| 2315 | break; | 2141 | break; |
| 2316 | } | 2142 | } |
| 2317 | 2143 | ||
| @@ -2407,60 +2233,10 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -2407,60 +2233,10 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 2407 | 2233 | ||
| 2408 | }else{ | 2234 | }else{ |
| 2409 | return false; | 2235 | return false; |
| 2410 | - } | ||
| 2411 | - | 2236 | + } |
| 2412 | } | 2237 | } |
| 2413 | 2238 | ||
| 2414 | 2239 | ||
| 2415 | -// // private function validarStrSinGerarPendenciaRN0901(ProcedimentoDTO $objProcedimentoDTO, InfraException $objInfraException){ | ||
| 2416 | -// // if (InfraString::isBolVazia($objProcedimentoDTO->getStrSinGerarPendencia())){ | ||
| 2417 | -// // $objInfraException->adicionarValidacao('Sinalizador de gerao de andamento automtico no informado.'); | ||
| 2418 | -// // }else{ | ||
| 2419 | -// // if (!InfraUtil::isBolSinalizadorValido($objProcedimentoDTO->getStrSinGerarPendencia())){ | ||
| 2420 | -// // $objInfraException->adicionarValidacao('Sinalizador de gerao de andamento automtico invlido.'); | ||
| 2421 | -// // } | ||
| 2422 | -// // } | ||
| 2423 | -// // } | ||
| 2424 | - | ||
| 2425 | - | ||
| 2426 | -// // public function consultarProcessosApensados($idProcedimento) { | ||
| 2427 | - | ||
| 2428 | -// // $protocolosArray = array(); | ||
| 2429 | -// // $idProcedimento = filter_var($idProcedimento, FILTER_SANITIZE_NUMBER_INT); | ||
| 2430 | - | ||
| 2431 | -// // $objExpedirProcedimenroBD = new ExpedirProcedimentoBD($this->inicializarObjInfraIBanco()); | ||
| 2432 | -// // $valoresProtocolo = $objExpedirProcedimenroBD->buscarProcessosAnexados($idProcedimento); | ||
| 2433 | - | ||
| 2434 | -// // foreach ($valoresProtocolo as $protocolos) { | ||
| 2435 | -// // $resultProtocolo = $this->validarProcessoAbertoUnidade($protocolos->id_protocolo); | ||
| 2436 | -// // if ($resultProtocolo['retorno'] == 1) | ||
| 2437 | -// // $protocolosArray[] = $protocolos; | ||
| 2438 | -// // } | ||
| 2439 | - | ||
| 2440 | - | ||
| 2441 | -// // return $protocolosArray; | ||
| 2442 | -// // } | ||
| 2443 | - | ||
| 2444 | - | ||
| 2445 | - | ||
| 2446 | -// public function consultarProcessosApensadosDetalahar($idPrtocedimento) { | ||
| 2447 | - | ||
| 2448 | -// $idPrtocedimento = (int) $idPrtocedimento[0]; | ||
| 2449 | - | ||
| 2450 | -// $objProtocoloDTO = new ProtocoloDTO(); | ||
| 2451 | - | ||
| 2452 | -// $objProtocoloDTO->setDblIdProtocolo($idPrtocedimento); | ||
| 2453 | -// $objProtocoloDTO->retTodos(); | ||
| 2454 | -// $objProtocoloDTO = $this->objProtocoloRN->consultarRN0186($objProtocoloDTO); | ||
| 2455 | - | ||
| 2456 | - | ||
| 2457 | -// $objProtocoloDTO->UnidadeGeradora = $this->consultaUnidadePk($objProtocoloDTO->getNumIdUnidadeGeradora()); | ||
| 2458 | -// $objProtocoloDTO->UsuarioCriador = $this->consultaUsuarioPk($objProtocoloDTO->getNumIdUsuarioGerador()); | ||
| 2459 | - | ||
| 2460 | - | ||
| 2461 | -// return $objProtocoloDTO; | ||
| 2462 | -// } | ||
| 2463 | - | ||
| 2464 | public function consultaUnidadePk($idUnidade) { | 2240 | public function consultaUnidadePk($idUnidade) { |
| 2465 | 2241 | ||
| 2466 | $objUnidadeDTO = new UnidadeDTO(); | 2242 | $objUnidadeDTO = new UnidadeDTO(); |
| @@ -2483,21 +2259,6 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -2483,21 +2259,6 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 2483 | return $objUsuarioDTO; | 2259 | return $objUsuarioDTO; |
| 2484 | } | 2260 | } |
| 2485 | 2261 | ||
| 2486 | -// public function setValoresModal() { | ||
| 2487 | -// session_start(); | ||
| 2488 | -// $this->limparValoresModal(); | ||
| 2489 | -// $_SESSION['param'] = (array) $_POST['param']; | ||
| 2490 | -// } | ||
| 2491 | - | ||
| 2492 | -// public function getValoresModal() { | ||
| 2493 | -// if (isset($_SESSION['param'])) | ||
| 2494 | -// return $_SESSION['param']; | ||
| 2495 | -// } | ||
| 2496 | - | ||
| 2497 | -// public function limparValoresModal() { | ||
| 2498 | -// unset($_SESSION["param"]); | ||
| 2499 | -// } | ||
| 2500 | - | ||
| 2501 | public function consultarProtocoloPk($idPrtocedimento) { | 2262 | public function consultarProtocoloPk($idPrtocedimento) { |
| 2502 | 2263 | ||
| 2503 | $idPrtocedimento = (int)$idPrtocedimento; | 2264 | $idPrtocedimento = (int)$idPrtocedimento; |
| @@ -2507,7 +2268,6 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -2507,7 +2268,6 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 2507 | $objProtocoloDTO->retTodos(); | 2268 | $objProtocoloDTO->retTodos(); |
| 2508 | 2269 | ||
| 2509 | 2270 | ||
| 2510 | - | ||
| 2511 | $objProtocoloDTO = $this->objProtocoloRN->consultarRN0186($objProtocoloDTO); | 2271 | $objProtocoloDTO = $this->objProtocoloRN->consultarRN0186($objProtocoloDTO); |
| 2512 | 2272 | ||
| 2513 | 2273 | ||
| @@ -2521,29 +2281,6 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -2521,29 +2281,6 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 2521 | } | 2281 | } |
| 2522 | 2282 | ||
| 2523 | 2283 | ||
| 2524 | -// /** | ||
| 2525 | -// * @author Fabio.braga@softimais.com.br | ||
| 2526 | -// * @deprecated consulta processo | ||
| 2527 | -// * data : 28/05/2015 | ||
| 2528 | -// * @return objet | ||
| 2529 | -// */ | ||
| 2530 | -// public function consultarProtocoloNumeroProtocolo($protocolo) | ||
| 2531 | -// { | ||
| 2532 | -// $objProtocoloDTO = new ProtocoloDTO(); | ||
| 2533 | -// $objProtocoloDTO->setStrProtocoloFormatado($protocolo); | ||
| 2534 | -// $objProtocoloDTO->retTodos(); | ||
| 2535 | -// $objProtocoloDTO = $this->objProtocoloRN->consultarRN0186($objProtocoloDTO); | ||
| 2536 | - | ||
| 2537 | - | ||
| 2538 | -// $objProtocoloDTO->UnidadeGeradora = $this->consultaUnidadePk($objProtocoloDTO->getNumIdUnidadeGeradora()); | ||
| 2539 | -// $objProtocoloDTO->UsuarioCriador = $this->consultaUsuarioPk($objProtocoloDTO->getNumIdUsuarioGerador()); | ||
| 2540 | - | ||
| 2541 | -// $objProtocoloDTO->Documentos = $this->consultaDocumentosProcesso($objProtocoloDTO->getDblIdProtocolo()); | ||
| 2542 | - | ||
| 2543 | -// return $objProtocoloDTO; | ||
| 2544 | -// } | ||
| 2545 | - | ||
| 2546 | - | ||
| 2547 | public function consultaDocumentosProcesso($idPrtocedimento) { | 2284 | public function consultaDocumentosProcesso($idPrtocedimento) { |
| 2548 | 2285 | ||
| 2549 | $documentoRespArray = array(); | 2286 | $documentoRespArray = array(); |
| @@ -2555,301 +2292,5 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -2555,301 +2292,5 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
| 2555 | $documentoDTO = $this->objDocumentoRN->listarRN0008($documentoDTO); | 2292 | $documentoDTO = $this->objDocumentoRN->listarRN0008($documentoDTO); |
| 2556 | 2293 | ||
| 2557 | return $documentoDTO; | 2294 | return $documentoDTO; |
| 2558 | - } | ||
| 2559 | - | ||
| 2560 | - | ||
| 2561 | - | ||
| 2562 | -// // public function consultaProcessoStatus($idProcedimento) { | ||
| 2563 | - | ||
| 2564 | -// // $objProtocoloDTO = new ProtocoloDTO(); | ||
| 2565 | -// // $objProtocoloDTO->setDblIdProtocolo($idProcedimento); | ||
| 2566 | -// // $objProtocoloDTO->retTodos(); | ||
| 2567 | - | ||
| 2568 | -// // $objProtocoloDTO = $this->objProtocoloRN->consultarRN0186($objProtocoloDTO); | ||
| 2569 | - | ||
| 2570 | -// // if($objProtocoloDTO->getStrStaNivelAcessoLocal( ) != 0 ) | ||
| 2571 | -// // { | ||
| 2572 | -// // return array('retorno'=>0); | ||
| 2573 | -// // } | ||
| 2574 | -// // return array('retorno'=>1); | ||
| 2575 | -// // } | ||
| 2576 | - | ||
| 2577 | -// public function converterDataWebService($dataHora) | ||
| 2578 | -// { | ||
| 2579 | -// $resultado = ''; | ||
| 2580 | -// if(isset($dataHora)){ | ||
| 2581 | -// $resultado = InfraData::getTimestamp($dataHora); | ||
| 2582 | -// $resultado = date(DateTime::W3C, $resultado); | ||
| 2583 | -// } | ||
| 2584 | - | ||
| 2585 | -// return $resultado; | ||
| 2586 | -// } | ||
| 2587 | - | ||
| 2588 | -// public function converterDataSEI($dataHoraWebService) | ||
| 2589 | -// { | ||
| 2590 | -// $resultado = ''; | ||
| 2591 | -// if(isset($dataHoraWebService)){ | ||
| 2592 | -// $resultado = strtotime($dataHoraWebService); | ||
| 2593 | -// $resultado = date('d/m/Y H:i:s', $resultado); | ||
| 2594 | -// } | ||
| 2595 | - | ||
| 2596 | -// return $resultado; | ||
| 2597 | -// } | ||
| 2598 | - | ||
| 2599 | -// /** | ||
| 2600 | -// * @deprecated Processo deve ser bloqueado aps expedio | ||
| 2601 | -// * data 28/05/2015 | ||
| 2602 | -// * @author Fabiol Braga <fabio.braga@softimais.com.br> | ||
| 2603 | -// * | ||
| 2604 | -// */ | ||
| 2605 | -// public function bloquearProcesso($idProcedimento) { | ||
| 2606 | -// $idProcedimento = filter_var($idProcedimento, FILTER_SANITIZE_NUMBER_INT); | ||
| 2607 | - | ||
| 2608 | -// $objExpedirProcedimenroBD = new ExpedirProcedimentoBD($this->inicializarObjInfraIBanco()); | ||
| 2609 | -// $resultProtocolo = $objExpedirProcedimenroBD->alterarProcesso(" sta_estado = 1 ", $idProcedimento); | ||
| 2610 | - | ||
| 2611 | -// return $resultProtocolo; | ||
| 2612 | -// } | ||
| 2613 | - | ||
| 2614 | -// /** | ||
| 2615 | -// * @deprecated valida se o processo se encontra em expedio | ||
| 2616 | -// * @author Fabio Braga <fabio.braga@softimais.com.bt> | ||
| 2617 | -// * data 01/06/2015 | ||
| 2618 | -// * | ||
| 2619 | -// */ | ||
| 2620 | - | ||
| 2621 | -// public function validarSeProcessoExpedicao($idPrtocedimento) | ||
| 2622 | -// { | ||
| 2623 | -// $menssagem = ' '; | ||
| 2624 | -// $retorno = 1; | ||
| 2625 | - | ||
| 2626 | -// $resultListaTramiter = $this->listarTramiteParaCancelar($idPrtocedimento); | ||
| 2627 | - | ||
| 2628 | - | ||
| 2629 | -// if(is_object($resultListaTramiter->tramitesEncontrados->tramite)) | ||
| 2630 | -// $resultListaTramiter->tramitesEncontrados->tramite = array($resultListaTramiter->tramitesEncontrados->tramite); | ||
| 2631 | - | ||
| 2632 | -// $resultTodasPendencias = $this->objProcessoEletronicoRN->serviceListarTodasPendencias(); | ||
| 2633 | - | ||
| 2634 | - | ||
| 2635 | - | ||
| 2636 | - | ||
| 2637 | -// foreach ($resultListaTramiter->tramitesEncontrados->tramite as $tramite) | ||
| 2638 | -// { | ||
| 2639 | - | ||
| 2640 | - | ||
| 2641 | -// foreach ($resultTodasPendencias->listaDePendencias as $lista) | ||
| 2642 | -// { | ||
| 2643 | -// if( $lista->IDT == $tramite->IDT) | ||
| 2644 | -// { | ||
| 2645 | -// $menssagem = 'Esse processo ja foi expedido ! '; | ||
| 2646 | -// $retorno = 0; | ||
| 2647 | -// break; | ||
| 2648 | -// } | ||
| 2649 | -// } | ||
| 2650 | - | ||
| 2651 | -// if($retorno === 0) | ||
| 2652 | -// break; | ||
| 2653 | - | ||
| 2654 | -// } | ||
| 2655 | - | ||
| 2656 | -// return array ('mensagem'=>$menssagem,'retorno'=>$retorno) ; | ||
| 2657 | -// } | ||
| 2658 | - | ||
| 2659 | -// public function gravarAuditoria($metodo, $idPrtocedimento) { | ||
| 2660 | -// $objExpedirProcedimentoBD = new ExpedirProcedimentoBD($this->inicializarObjInfraIBanco()); | ||
| 2661 | -// $result = $this->consultarProtocoloPk($idPrtocedimento); | ||
| 2662 | - | ||
| 2663 | -// $resultUltimaAuditoria = $objExpedirProcedimentoBD->consultaUltmaAuditoria(); | ||
| 2664 | - | ||
| 2665 | -// $dados = array | ||
| 2666 | -// ( | ||
| 2667 | -// 'id_infra_auditoria' => $resultUltimaAuditoria->id_infra_auditoria + 1, | ||
| 2668 | -// 'recurso' => 'pen_procedimento_expedir', | ||
| 2669 | -// 'dth_acesso' => date('Y-m-d H:m:i'), | ||
| 2670 | -// 'ip' => $_SERVER['REMOTE_ADDR'], | ||
| 2671 | -// 'id_usuario' => SessaoSEI::getInstance()->getNumIdUsuario(), | ||
| 2672 | -// 'sigla_usuario' => SessaoSEI::getInstance()->getStrSiglaUsuario(), | ||
| 2673 | -// 'nome_usuario' => SessaoSEI::getInstance()->getStrNomeUsuario(), | ||
| 2674 | -// 'id_orgao_usuario' => SessaoSEI::getInstance()->getNumIdOrgaoUsuario(), | ||
| 2675 | -// 'sigla_orgao_usuario' => SessaoSEI::getInstance()->getStrSiglaOrgaoUsuario(), | ||
| 2676 | -// 'id_unidade' => SessaoSEI::getInstance()->getNumIdUnidadeAtual(), | ||
| 2677 | -// 'sigla_unidade' => SessaoSEI::getInstance()->getStrSiglaUnidadeAtual(), | ||
| 2678 | -// 'servidor' => $_SERVER['REMOTE_ADDR'], | ||
| 2679 | -// 'user_agent' => $_SERVER['HTTP_USER_AGENT'], | ||
| 2680 | -// 'requisicao' => $metodo, | ||
| 2681 | -// 'operacao' => 'Expedir Processo', | ||
| 2682 | -// ); | ||
| 2683 | - | ||
| 2684 | - | ||
| 2685 | -// $objExpedirProcedimentoBD->gravarAuditoria($dados); | ||
| 2686 | -// } | ||
| 2687 | - | ||
| 2688 | -// public function cadeiaDoCertificado() { | ||
| 2689 | -// return $cadeiaDoCertificadoPEM = "-----BEGIN CERTIFICATE----- | ||
| 2690 | -// MIIHZTCCBU2gAwIBAgIQMjAxMjA5MDQxODEzNTI1MTANBgkqhkiG9w0BAQsFADCB | ||
| 2691 | -// pjELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxOzA5BgNVBAsTMlNl | ||
| 2692 | -// cnZpY28gRmVkZXJhbCBkZSBQcm9jZXNzYW1lbnRvIGRlIERhZG9zIC0gU0VSUFJP | ||
| 2693 | -// MQ8wDQYDVQQLEwZDU1BCLTExNDAyBgNVBAMTK0F1dG9yaWRhZGUgQ2VydGlmaWNh | ||
| 2694 | -// ZG9yYSBkbyBTRVJQUk8gRmluYWwgdjMwHhcNMTIwOTA0MTgyNTIzWhcNMTUwOTA0 | ||
| 2695 | -// MTgxNzIzWjCBnjELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxKzAp | ||
| 2696 | -// BgNVBAsTIkF1dG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBTRVJQUk9BQ0YxETAPBgNV | ||
| 2697 | -// BAsTCE1QLVNJQVBFMRkwFwYDVQQLExBQZXNzb2EgRmlzaWNhIEEzMR8wHQYDVQQD | ||
| 2698 | -// ExZXQUdORUwgQUxWRVMgUk9EUklHVUVTMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A | ||
| 2699 | -// MIIBCgKCAQEAu9ixyMUZZDbZ27js6bv2PgRr+XFgMYgzIJOnX7X3bx/5h3niBD5s | ||
| 2700 | -// YUiCFrGwO+DxonhNRFHwp6YLZfEIZC7xaC94SXqYijeJxlPfCzLWwh87AqFv+qmc | ||
| 2701 | -// HvyK0j5g3EeiDnWDk3M/PMQmKiI2qehhP0P+f8J75QqGvZHUfIUy18QCsi47+6zJ | ||
| 2702 | -// 04AbzJPPSCJohlrLgSTs49ju6HIbpxojCn0Je3oIVRumn7Gl3eTJuxGdjUwn9wQB | ||
| 2703 | -// fUV4D7AuD6eKdRfpoqZwiEDvga9/OtCd9Nk/4kCt+3+C7xNDt2gH0Uq79dibGbjv | ||
| 2704 | -// xKsfSjTE0WM/xcyNEHGuLFxPfpt0QMuK2QIDAQABo4ICkzCCAo8wDAYDVR0TAQH/ | ||
| 2705 | -// BAIwADAfBgNVHSMEGDAWgBTafg+Cizblsgaq9mtG4adzriNffTAOBgNVHQ8BAf8E | ||
| 2706 | -// BAMCBeAwXAYDVR0gBFUwUzBRBgZgTAECAw0wRzBFBggrBgEFBQcCARY5aHR0cHM6 | ||
| 2707 | -// Ly9jY2Quc2VycHJvLmdvdi5ici9zZXJwcm9hY2YvZG9jcy9kcGNzZXJwcm9hY2Yu | ||
| 2708 | -// cGRmMIG2BgNVHREEga4wgaugPQYFYEwBAwGgNAQyMTAwODE5NzQ2NDYwNzc2MzE4 | ||
| 2709 | -// NzEyMzQ4NTUyOTc1MDAwMDAwMDAxNTM2NjcwU1NQREagNAYFYEwBAwWgKwQpMDEx | ||
| 2710 | -// MDI5MzQyMDAzMDI4MDE0MkFHVUFTIExJTkRBUyBERSBHT0lBR0+gFwYFYEwBAwag | ||
| 2711 | -// DgQMMDAwMDAwMDAwMDAwgRt3YWduZWwucm9kcmlndWVzQGFndS5nb3YuYnIwLAYD | ||
| 2712 | -// VR0lAQH/BCIwIAYIKwYBBQUHAwIGCCsGAQUFBwMEBgorBgEEAYI3FAICMIG6BgNV | ||
| 2713 | -// HR8EgbIwga8wMqAwoC6GLGh0dHA6Ly9jY2Quc2VycHJvLmdvdi5ici9sY3Ivc2Vy | ||
| 2714 | -// cHJvYWNmdjMuY3JsMDOgMaAvhi1odHRwOi8vY2NkMi5zZXJwcm8uZ292LmJyL2xj | ||
| 2715 | -// ci9zZXJwcm9hY2Z2My5jcmwwRKBCoECGPmh0dHA6Ly9yZXBvc2l0b3Jpby5pY3Bi | ||
| 2716 | -// cmFzaWwuZ292LmJyL2xjci9zZXJwcm8vc2VycHJvYWNmdjMuY3JsMEwGCCsGAQUF | ||
| 2717 | -// BwEBBEAwPjA8BggrBgEFBQcwAoYwaHR0cDovL2NjZC5zZXJwcm8uZ292LmJyL2Nh | ||
| 2718 | -// ZGVpYXMvc2VycHJvYWNmdjMucDdiMA0GCSqGSIb3DQEBCwUAA4ICAQAYReCBluZ2 | ||
| 2719 | -// Nb9kALBGGIZMlefk2s1G0q/MBoMnp58xjLf9qQneHWww/fNeXhVAJPvbDJgZB+Fx | ||
| 2720 | -// mJTINU1Fk7NvqUZqEkL5rmTIyPcORcNHQ70ityDdlx/xCGXtFpPQGo8JlAPNOj2S | ||
| 2721 | -// /nnn6wovElwGzLUTliejSdo4VadfBrJ7T0ZomcX5Mag7VBuoAfWo5QH9CrUZ/ryC | ||
| 2722 | -// XlAmPEUqfAqt4IrT4phTybVozsPm3FoJgD52p2FN127gKmZBugt5wUvx6ulDTd/s | ||
| 2723 | -// 1zqTRL/c135SKt1e2kSR0K4zmCNpXRJmYd8kWTHbj9MP4NhAmfMSKJaqDVrGU3pH | ||
| 2724 | -// ei899F15H+Q/Nr3jECfn81XvwRupVq9INWB8Y55Ev6nrh7/oLtI5sjhl71IEP5aw | ||
| 2725 | -// AFGOq0M6+R6iFMi26SfccalgmhQ92+7Vh04j64SsycOPl+ryiVUZbkpf6QCm8cmT | ||
| 2726 | -// vLn6GTezCafazuTn3mEIIJSZ8kNqh3j3uT70fvPAnBSCbhceo6NLkVFDYvJ4sS/I | ||
| 2727 | -// BOuAozQzb+pZfKKAyIyIpAKxxXNWArYLzam905xyFKy7tacDZDb1nkRodoENJxIY | ||
| 2728 | -// V93cG4m1xG4ihstkquxG4R7aUdPxAuZsWp5evFdTJU4JSawZGsKzuD1jxQwz9zPD | ||
| 2729 | -// eZhzZfrZ5dG0GvQcM8XCJ6u1TXYRrZakUg== | ||
| 2730 | -// -----END CERTIFICATE----- | ||
| 2731 | -// -----BEGIN CERTIFICATE----- | ||
| 2732 | -// MIIIdjCCBl6gAwIBAgIBATANBgkqhkiG9w0BAQ0FADCBhTELMAkGA1UEBhMCQlIx | ||
| 2733 | -// EzARBgNVBAoTCklDUC1CcmFzaWwxNDAyBgNVBAsTK0F1dG9yaWRhZGUgQ2VydGlm | ||
| 2734 | -// aWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjIxKzApBgNVBAMTIkF1dG9yaWRhZGUg | ||
| 2735 | -// Q2VydGlmaWNhZG9yYSBTRVJQUk8gdjMwHhcNMTExMTE2MTMzNzI3WhcNMTkxMTE2 | ||
| 2736 | -// MTMzNzI3WjCBpjELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxOzA5 | ||
| 2737 | -// BgNVBAsTMlNlcnZpY28gRmVkZXJhbCBkZSBQcm9jZXNzYW1lbnRvIGRlIERhZG9z | ||
| 2738 | -// IC0gU0VSUFJPMQ8wDQYDVQQLEwZDU1BCLTExNDAyBgNVBAMTK0F1dG9yaWRhZGUg | ||
| 2739 | -// Q2VydGlmaWNhZG9yYSBkbyBTRVJQUk8gRmluYWwgdjMwggIiMA0GCSqGSIb3DQEB | ||
| 2740 | -// AQUAA4ICDwAwggIKAoICAQDm66/6/+CW5eKxXP0KUXdRBpKzcOY0MF4O4bV2bi+N | ||
| 2741 | -// a7dcCRSJW7AZ9Vt3+iqRokfFa55mvNvZobWXrybvbY9nj1GJ//nGFaqRQLUFqOuj | ||
| 2742 | -// l9gH4QTQPWLfiUGg229KYWAwzjEZs/kC87RNZPGlz5Wf1B4KpUo3YpN2VSJgj3h/ | ||
| 2743 | -// qDDKp0ONBQGtZZLcf2BP+f0xpbLUIJJ+/RAEuAyiCK9Xs/lx87wWa6lOrunh/PIY | ||
| 2744 | -// EH5XP4ai7oB/JUtnEs0Q3Ud66ygRrpHo7QozEVzwE7Ujib9vKFWteCpYgavgemPU | ||
| 2745 | -// btLvUtk6lMMvFCxEjNyqq5tZHACw71ppOv4jvkPBvS4Rm2Fn01glCAZau3EO44N+ | ||
| 2746 | -// G6oSkx2C22+VPPQsTvYfzz/CHw6f8C5Mkx6bnysC+KoY0NhZgIlsZVgr/fLtgETs | ||
| 2747 | -// 8Z56tUU2/U6o+5pIKfhjHgbFN5Cy9jk5I3tW/Dvj6wFYNLBZ7YMMPMNCBufPVobP | ||
| 2748 | -// 7TOGVRI9UNMvbgD3fFHgLKRWjs+oXxzs51FufhwM9yDmFUe2U1xh2WLNDROSJaaK | ||
| 2749 | -// chbk9cLfmukEvjwllwXWwd9NVd3s8+WpOG/s0dOsJHVOMOJh+Jq2SeNrfcizfEyF | ||
| 2750 | -// 4wfZ8dflOHra2Rrc4FBl2kyF84Y9gLRxv6RaEgE6mtfoubppxyZ/z8ZiRrH0q5AF | ||
| 2751 | -// dQIDAQABo4ICzDCCAsgwDgYDVR0PAQH/BAQDAgEGMIIB7gYDVR0gBIIB5TCCAeEw | ||
| 2752 | -// TgYGYEwBAgEQMEQwQgYIKwYBBQUHAgEWNmh0dHA6Ly9jY2Quc2VycHJvLmdvdi5i | ||
| 2753 | -// ci9hY3NlcnByby9kb2NzL2RwY2Fjc2VycHJvLnBkZjBOBgZgTAECAw0wRDBCBggr | ||
| 2754 | -// BgEFBQcCARY2aHR0cDovL2NjZC5zZXJwcm8uZ292LmJyL2Fjc2VycHJvL2RvY3Mv | ||
| 2755 | -// ZHBjYWNzZXJwcm8ucGRmME4GBmBMAQIBETBEMEIGCCsGAQUFBwIBFjZodHRwOi8v | ||
| 2756 | -// Y2NkLnNlcnByby5nb3YuYnIvYWNzZXJwcm8vZG9jcy9kcGNhY3NlcnByby5wZGYw | ||
| 2757 | -// TgYGYEwBAmUMMEQwQgYIKwYBBQUHAgEWNmh0dHA6Ly9jY2Quc2VycHJvLmdvdi5i | ||
| 2758 | -// ci9hY3NlcnByby9kb2NzL2RwY2Fjc2VycHJvLnBkZjBOBgZgTAECZwowRDBCBggr | ||
| 2759 | -// BgEFBQcCARY2aHR0cDovL2NjZC5zZXJwcm8uZ292LmJyL2Fjc2VycHJvL2RvY3Mv | ||
| 2760 | -// ZHBjYWNzZXJwcm8ucGRmME8GB2BMAQKCLwMwRDBCBggrBgEFBQcCARY2aHR0cDov | ||
| 2761 | -// L2NjZC5zZXJwcm8uZ292LmJyL2Fjc2VycHJvL2RvY3MvZHBjYWNzZXJwcm8ucGRm | ||
| 2762 | -// MHAGA1UdHwRpMGcwMaAvoC2GK2h0dHA6Ly9jY2Quc2VycHJvLmdvdi5ici9sY3Iv | ||
| 2763 | -// YWNzZXJwcm92My5jcmwwMqAwoC6GLGh0dHA6Ly9jY2QyLnNlcnByby5nb3YuYnIv | ||
| 2764 | -// bGNyL2Fjc2VycHJvdjMuY3JsMB8GA1UdIwQYMBaAFMjW6vmDj0xYOxzZi5uZd2Wv | ||
| 2765 | -// yVjaMB0GA1UdDgQWBBTafg+Cizblsgaq9mtG4adzriNffTASBgNVHRMBAf8ECDAG | ||
| 2766 | -// AQH/AgEAMA0GCSqGSIb3DQEBDQUAA4ICAQBdidAAyIUZigjF5ohrws487tcL6a6H | ||
| 2767 | -// h/nMOoY/bKjxHu4vkcfinfkvN1kIxV5mDqjQvVWG5TOZeazcit7UcbySvwH+eErm | ||
| 2768 | -// gmh1WlId2hCjfkRFRiQMzjN1zuLZkYY02hr0TtFvi604ZS6AGecOuMZBRJIgfDv6 | ||
| 2769 | -// lWHMxaH+3VFy7GGgW4DdHvqjNWKLVU95weqpdOWBY5gkVB4NaxOXd4l0652y3Znw | ||
| 2770 | -// mIf0QP2ZsAG9OBzdexBDOzSbH8460X1ueIQ5SpK3CPCo3H1qn9Z9PM9X0HPoopKh | ||
| 2771 | -// iSPSxAa7tYGO3i/2YW0/Y+oLdtGjyZo4/tuQtrWmmvHw3ckr4V/uOHbdGV6f+etX | ||
| 2772 | -// lQeXOvhKDEZUhdjRCtPZLlASrsSWSk9BIWDcBEdNVww19RX9QsOFOyS06syqb8DF | ||
| 2773 | -// j3jn5envTgrTBloeuby2/nm62gqGSgszpqaNYeEc3oQsMdTdZgy/k4OqYMQbUShs | ||
| 2774 | -// ogJOOw4i3dY7cz+Ub22XVM65c5DrjOmXpQTUqw+i4QpK008weXRmLE3W0ujDulDO | ||
| 2775 | -// QkGSwk4q1JNibx2zbgfjzqTG9mj0XfIIMSnnhsg0Xl0IZjIIEPGSqmShV5zmIyrC | ||
| 2776 | -// rH/+BkKPFZa4AZFu+QNhZGFJlTkM27nJG4/6gjIgXveLKs4boE2KuMIK5L9M75pF | ||
| 2777 | -// xn7r9ET0CLYOZg== | ||
| 2778 | -// -----END CERTIFICATE----- | ||
| 2779 | -// -----BEGIN CERTIFICATE----- | ||
| 2780 | -// MIIGVTCCBD2gAwIBAgIBBzANBgkqhkiG9w0BAQ0FADCBlzELMAkGA1UEBhMCQlIx | ||
| 2781 | -// EzARBgNVBAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25h | ||
| 2782 | -// bCBkZSBUZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMTK0F1 | ||
| 2783 | -// dG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjIwHhcNMTEx | ||
| 2784 | -// MDIxMTIwMjQ3WhcNMjExMDIxMTIwMjQ3WjCBhTELMAkGA1UEBhMCQlIxEzARBgNV | ||
| 2785 | -// BAoTCklDUC1CcmFzaWwxNDAyBgNVBAsTK0F1dG9yaWRhZGUgQ2VydGlmaWNhZG9y | ||
| 2786 | -// YSBSYWl6IEJyYXNpbGVpcmEgdjIxKzApBgNVBAMTIkF1dG9yaWRhZGUgQ2VydGlm | ||
| 2787 | -// aWNhZG9yYSBTRVJQUk8gdjMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC | ||
| 2788 | -// AQDxb+z1eCFkAqtiDxv/Qyh/kyuyjnAWQKG47bumr+CvI6XYU9i3rgJCrsh3qh1Q | ||
| 2789 | -// aANDTxMi2IjUOsGop5rd1hvMS20KaBNgz8JKmsoaeJxtk2lQNX5jQMeJPXbW+qHg | ||
| 2790 | -// LpIHBe5UWAmkhNSg01RejukOndR13KpKXBRjfD1EuT8YrbVHItUKFacGUQdP3ud7 | ||
| 2791 | -// ds6jGeDdVMywmKUIMbREnZQukMtN0COFiHMI+DeEhwupp1+8xRyCbOtD/yw7/Xea | ||
| 2792 | -// hGpDnpQPqpbkb9hT7cjAtjVsZZt/CwlqAUSgO2/fsFb4NWd5s76edq0qvfLv4AKj | ||
| 2793 | -// hzzB8LHAb0R+DMEDSfseJ/BDFkg9+EqWMDROSnVakQegUmx8sfOMF7aF66uNf7r6 | ||
| 2794 | -// 8rwVpch01UGPQqVFvJTLLUpOKPAHYMZ1zT9V39+X2NwmAFfjw5yjDQZ5rBYkm3V9 | ||
| 2795 | -// /i65/nI4XKAEL6+a3kcEbZjTmX2EwCzvpTKWt6dE2L5LvdMHkp8jPpC72/25zPSM | ||
| 2796 | -// 3xGQAGnQ9wkL3wQLu+ya2xHi4xDkP6T7ELTBZEN2Kqfk2/2ZKhjrs6ImjbI5KOqs | ||
| 2797 | -// //qqLQLkf9ij0AUiOIozbrWbHQmpOXI6SZzm32C8ES5+4HebILB9d6GVJva09hyG | ||
| 2798 | -// gesuaIWZe4tGnXm7QIqHBDu+iHOgVA7hWG9/K/meA+MqvQIDAQABo4G7MIG4MB0G | ||
| 2799 | -// A1UdDgQWBBTI1ur5g49MWDsc2YubmXdlr8lY2jAPBgNVHRMBAf8EBTADAQH/MA4G | ||
| 2800 | -// A1UdDwEB/wQEAwIBBjAUBgNVHSAEDTALMAkGBWBMAQECMAAwPwYDVR0fBDgwNjA0 | ||
| 2801 | -// oDKgMIYuaHR0cDovL2FjcmFpei5pY3BicmFzaWwuZ292LmJyL0xDUmFjcmFpenYy | ||
| 2802 | -// LmNybDAfBgNVHSMEGDAWgBQMOSA6twEfy9cofUGgx/pKrTIkvjANBgkqhkiG9w0B | ||
| 2803 | -// AQ0FAAOCAgEAIybRY3G1KgJb33HvcDnNPEdFpC1J88C+hTWZuQyqamb85Eaiwl3Q | ||
| 2804 | -// tiw59W+7u4LMrZdJJuur4NYHUNzeHfs3Ce/sVULf2Ord1d7VvQPKSwrOdPIDuMbB | ||
| 2805 | -// vQRyZgSPy9kpPSQZ+h60+kqG8er39eNnqcCj1J17TpQZpWjKJn8hocqGCGeY7Tu8 | ||
| 2806 | -// XaPKhzshDqPCwWEvQB0uj8Mt/OSKcarvzBpmPlcotH7dcdKP0Ur0UNfQLqD7Yu/E | ||
| 2807 | -// DSGQ/WqQ2nS3vIxeRL2ULn3Lq27EWaWmRD2mfQHyE5yCUUoWwDrJJrkE5u8dGG61 | ||
| 2808 | -// VcNaKtZYwaHHTQuf8LiV7pK4NqcjCNXX9SvKvz1DydFAJheBlPaJ1xnzSbD4tPeR | ||
| 2809 | -// VqkXC6WlJBGXcREYt1EUpJ+LESkQy1j9ooerXUcNnZKipBYxFyB3WTKaGjrJ1JDx | ||
| 2810 | -// zHe7x402F3jQKDIILRekN0UrRjygDUaMmH/RikTVPFt2+f2c4FqdvVTdXJ7zjAgO | ||
| 2811 | -// 92z0QzjSEZBSLaVvQSr2kEV9C2n0CsCuztHu6PycpwZeZS/eH/yk8LMZAH76TG0l | ||
| 2812 | -// Et+CKwNUUPgjK+fIedCs87sxU2QQ09pDptAkKQWm3fPotWaVD4NrHivZj4tX8W/I | ||
| 2813 | -// soDk7v6OV+H2B9eJ2Rsdszr0abUOIrf8cMtPG2wvDZ5wXAxy5jL73VM= | ||
| 2814 | -// -----END CERTIFICATE----- | ||
| 2815 | -// -----BEGIN CERTIFICATE----- | ||
| 2816 | -// MIIGoTCCBImgAwIBAgIBATANBgkqhkiG9w0BAQ0FADCBlzELMAkGA1UEBhMCQlIx | ||
| 2817 | -// EzARBgNVBAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25h | ||
| 2818 | -// bCBkZSBUZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMTK0F1 | ||
| 2819 | -// dG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjIwHhcNMTAw | ||
| 2820 | -// NjIxMTkwNDU3WhcNMjMwNjIxMTkwNDU3WjCBlzELMAkGA1UEBhMCQlIxEzARBgNV | ||
| 2821 | -// BAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25hbCBkZSBU | ||
| 2822 | -// ZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMTK0F1dG9yaWRh | ||
| 2823 | -// ZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjIwggIiMA0GCSqGSIb3 | ||
| 2824 | -// DQEBAQUAA4ICDwAwggIKAoICAQC6RqQO3edA8rWgfFKVV0X8bYTzhgHJhQOtmKvS | ||
| 2825 | -// 8l4Fmcm7b2Jn/XdEuQMHPNIbAGLUcCxCg3lmq5lWroG8akm983QPYrfrWwdmlEIk | ||
| 2826 | -// nUasmkIYMPAkqFFB6quV8agrAnhptSknXpwuc8b+I6Xjps79bBtrAFTrAK1POkw8 | ||
| 2827 | -// 5wqIW9pemgtW5LVUOB3yCpNkTsNBklMgKs/8dG7U2zM4YuT+jkxYHPePKk3/xZLZ | ||
| 2828 | -// CVK9z3AAnWmaM2qIh0UhmRZRDTTfgr20aah8fNTd0/IVXEvFWBDqhRnLNiJYKnIM | ||
| 2829 | -// mpbeys8IUWG/tAUpBiuGkP7pTcMEBUfLz3bZf3Gmh3sVQOQzgHgHHaTyjptAO8ly | ||
| 2830 | -// UN9pvvAslh+QtdWudONltIwa6Wob+3JcxYJU6uBTB8TMEun33tcv1EgvRz8mYQSx | ||
| 2831 | -// Epoza7WGSxMr0IadR+1p+/yEEmb4VuUOimx2xGsaesKgWhLRI4lYAXwIWNoVjhXZ | ||
| 2832 | -// fn03tqRF9QOFzEf6i3lFuGZiM9MmSt4c6dR/5m0muTx9zQ8oCikPm91jq7mmRxqE | ||
| 2833 | -// 14WkA2UGBEtSjYM0Qn8xjhEu5rNnlUB+l3pAAPkRbIM4WK0DM1umxMHFsKwNqQbw | ||
| 2834 | -// pmkBNLbp+JRITz6mdQnsSsU74MlesDL/n2lZzzwwbw3OJ1fsWhto/+xPb3gyPnnF | ||
| 2835 | -// tF2VfwIDAQABo4H1MIHyME4GA1UdIARHMEUwQwYFYEwBAQAwOjA4BggrBgEFBQcC | ||
| 2836 | -// ARYsaHR0cDovL2FjcmFpei5pY3BicmFzaWwuZ292LmJyL0RQQ2FjcmFpei5wZGYw | ||
| 2837 | -// PwYDVR0fBDgwNjA0oDKgMIYuaHR0cDovL2FjcmFpei5pY3BicmFzaWwuZ292LmJy | ||
| 2838 | -// L0xDUmFjcmFpenYyLmNybDAfBgNVHSMEGDAWgBQMOSA6twEfy9cofUGgx/pKrTIk | ||
| 2839 | -// vjAdBgNVHQ4EFgQUDDkgOrcBH8vXKH1BoMf6Sq0yJL4wDwYDVR0TAQH/BAUwAwEB | ||
| 2840 | -// /zAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQENBQADggIBAFmaFGkYbX0pQ3B9 | ||
| 2841 | -// dpth33eOGnbkqdbLdqQWDEyUEsaQ0YEDxa0G2S1EvLIJdgmAOWcAGDRtBgrmtRBZ | ||
| 2842 | -// SLp1YPw/jh0YVXArnkuVrImrCncke2HEx5EmjkYTUTe2jCcK0w3wmisig4OzvYM1 | ||
| 2843 | -// rZs8vHiDKTVhNvgRcTMgVGNTRQHYE1qEO9dmEyS3xEbFIthzJO4cExeWyCXoGx7P | ||
| 2844 | -// 34VQbTzq91CeG5fep2vb1nPSz3xQwLCM5VMSeoY5rDVbZ8fq1PvRwl3qDpdzmK4p | ||
| 2845 | -// v+Q68wQ2UCzt3h7bhegdhAnu86aDM1tvR3lPSLX8uCYTq6qz9GER+0Vn8x0+bv4q | ||
| 2846 | -// SyZEGp+xouA82uDkBTp4rPuooU2/XSx3KZDNEx3vBijYtxTzW8jJnqd+MRKKeGLE | ||
| 2847 | -// 0QW8BgJjBCsNid3kXFsygETUQuwq8/JAhzHVPuIKMgwUjdVybQvm/Y3kqPMFjXUX | ||
| 2848 | -// d5sKufqQkplliDJnQwWOLQsVuzXxYejZZ3ftFuXoAS1rND+Og7P36g9KHj41hJ2M | ||
| 2849 | -// gDQ/qZXow63EzZ7KFBYsGZ7kNou5uaNCJQc+w+XVaE+gZhyms7ZzHJAaP0C5GlZC | ||
| 2850 | -// cIf/by0PEf0e//eFMBUO4xcx7ieVzMnpmR6Xx21bB7UFaj3yRd+6gnkkcC6bgh9m | ||
| 2851 | -// qaVtJ8z2KqLRX4Vv4EadqtKlTlUO | ||
| 2852 | -// -----END CERTIFICATE-----"; | ||
| 2853 | -// } | ||
| 2854 | - | ||
| 2855 | - } | 2295 | + } |
| 2296 | +} | ||
| 2856 | \ No newline at end of file | 2297 | \ No newline at end of file |
rn/PendenciasTramiteRN.php
| @@ -29,19 +29,19 @@ class PendenciasTramiteRN extends InfraRN { | @@ -29,19 +29,19 @@ class PendenciasTramiteRN extends InfraRN { | ||
| 29 | 29 | ||
| 30 | $this->strLocalizacaoCertificadoDigital = $objPenParametroRN->getParametro('PEN_LOCALIZACAO_CERTIFICADO_DIGITAL'); | 30 | $this->strLocalizacaoCertificadoDigital = $objPenParametroRN->getParametro('PEN_LOCALIZACAO_CERTIFICADO_DIGITAL'); |
| 31 | $this->strEnderecoServicoPendencias = $objPenParametroRN->getParametro('PEN_ENDERECO_WEBSERVICE_PENDENCIAS'); | 31 | $this->strEnderecoServicoPendencias = $objPenParametroRN->getParametro('PEN_ENDERECO_WEBSERVICE_PENDENCIAS'); |
| 32 | - //TODO: Urgente - Remover senha do certificado de autenticao dos servios do PEN da tabela de parmetros | 32 | + //TODO: Urgente - Remover senha do certificado de autenticao dos servios do PEN da tabela de parâmetros |
| 33 | $this->strSenhaCertificadoDigital = $objPenParametroRN->getParametro('PEN_SENHA_CERTIFICADO_DIGITAL'); | 33 | $this->strSenhaCertificadoDigital = $objPenParametroRN->getParametro('PEN_SENHA_CERTIFICADO_DIGITAL'); |
| 34 | 34 | ||
| 35 | if (InfraString::isBolVazia($this->strEnderecoServicoPendencias)) { | 35 | if (InfraString::isBolVazia($this->strEnderecoServicoPendencias)) { |
| 36 | - throw new InfraException('Endereo do servio de pendncias de trmite do Processo Eletrnico Nacional (PEN) no informado.'); | 36 | + throw new InfraException('Endereço do serviço de pendências de trâmite do Processo Eletrônico Nacional (PEN) não informado.'); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | if (!@file_get_contents($this->strLocalizacaoCertificadoDigital)) { | 39 | if (!@file_get_contents($this->strLocalizacaoCertificadoDigital)) { |
| 40 | - throw new InfraException("Certificado digital de autenticao do servio de integrao do Processo Eletrnico Nacional(PEN) no encontrado."); | 40 | + throw new InfraException("Certificado digital de autenticação do serviço de integração do Processo Eletrônico Nacional(PEN) não encontrado."); |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | if (InfraString::isBolVazia($this->strSenhaCertificadoDigital)) { | 43 | if (InfraString::isBolVazia($this->strSenhaCertificadoDigital)) { |
| 44 | - throw new InfraException('Dados de autenticao do servio de integrao do Processo Eletrnico Nacional(PEN) no informados.'); | 44 | + throw new InfraException('Dados de autenticação do serviço de integração do Processo Eletrónico Nacional(PEN) não informados.'); |
| 45 | } | 45 | } |
| 46 | } | 46 | } |
| 47 | 47 | ||
| @@ -59,13 +59,13 @@ class PendenciasTramiteRN extends InfraRN { | @@ -59,13 +59,13 @@ class PendenciasTramiteRN extends InfraRN { | ||
| 59 | SessaoSEI::getInstance(false)->simularLogin('SEI', null, null, $objPenParametroRN->getParametro('PEN_UNIDADE_GERADORA_DOCUMENTO_RECEBIDO')); | 59 | SessaoSEI::getInstance(false)->simularLogin('SEI', null, null, $objPenParametroRN->getParametro('PEN_UNIDADE_GERADORA_DOCUMENTO_RECEBIDO')); |
| 60 | 60 | ||
| 61 | $numSeg = InfraUtil::verificarTempoProcessamento(); | 61 | $numSeg = InfraUtil::verificarTempoProcessamento(); |
| 62 | - InfraDebug::getInstance()->gravar('MONITORANDO OS TRMITES PENDENTES ENVIADOS PARA O RGO (PEN)'); | ||
| 63 | - echo "[".date("d/m/Y H:i:s")."] Iniciando servio de monitoramento de pendncias de trmites de processos...\n"; | 62 | + InfraDebug::getInstance()->gravar('MONITORANDO OS TRÂMITES PENDENTES ENVIADOS PARA O RGO (PEN)'); |
| 63 | + echo "[".date("d/m/Y H:i:s")."] Iniciando serviço de monitoramento de pendências de trâmites de processos...\n"; | ||
| 64 | 64 | ||
| 65 | try{ | 65 | try{ |
| 66 | $numIdTramiteRecebido = 0; | 66 | $numIdTramiteRecebido = 0; |
| 67 | $strStatusTramiteRecebido = ''; | 67 | $strStatusTramiteRecebido = ''; |
| 68 | - $numQuantidadeErroTrmite = 0; | 68 | + $numQuantidadeErroTramite = 0; |
| 69 | $arrQuantidadeErrosTramite = array(); | 69 | $arrQuantidadeErrosTramite = array(); |
| 70 | 70 | ||
| 71 | //TODO: Tratar quantidade de erros o sistema consecutivos para um tramite de processo | 71 | //TODO: Tratar quantidade de erros o sistema consecutivos para um tramite de processo |
| @@ -85,7 +85,7 @@ class PendenciasTramiteRN extends InfraRN { | @@ -85,7 +85,7 @@ class PendenciasTramiteRN extends InfraRN { | ||
| 85 | } | 85 | } |
| 86 | //TODO: Urgente: Tratar erro especfico de timeout e refazer a requisio | 86 | //TODO: Urgente: Tratar erro especfico de timeout e refazer a requisio |
| 87 | catch(Exception $e) { | 87 | catch(Exception $e) { |
| 88 | - $strAssunto = 'Erro monitorando pendncias.'; | 88 | + $strAssunto = 'Erro monitorando pendências.'; |
| 89 | $strErro = InfraException::inspecionar($e); | 89 | $strErro = InfraException::inspecionar($e); |
| 90 | LogSEI::getInstance()->gravar($strAssunto."\n\n".$strErro); | 90 | LogSEI::getInstance()->gravar($strAssunto."\n\n".$strErro); |
| 91 | } | 91 | } |
| @@ -100,7 +100,7 @@ class PendenciasTramiteRN extends InfraRN { | @@ -100,7 +100,7 @@ class PendenciasTramiteRN extends InfraRN { | ||
| 100 | InfraDebug::getInstance()->setBolLigado(false); | 100 | InfraDebug::getInstance()->setBolLigado(false); |
| 101 | InfraDebug::getInstance()->setBolDebugInfra(false); | 101 | InfraDebug::getInstance()->setBolDebugInfra(false); |
| 102 | InfraDebug::getInstance()->setBolEcho(false); | 102 | InfraDebug::getInstance()->setBolEcho(false); |
| 103 | - throw new InfraException('Erro processando pendncias de integrao com o PEN - Processo Eletrnico Nacional.',$e); | 103 | + throw new InfraException('Erro processando pendências de integração com o PEN - Processo Eletrônico Nacional.',$e); |
| 104 | } | 104 | } |
| 105 | } | 105 | } |
| 106 | 106 | ||
| @@ -136,7 +136,7 @@ class PendenciasTramiteRN extends InfraRN { | @@ -136,7 +136,7 @@ class PendenciasTramiteRN extends InfraRN { | ||
| 136 | 136 | ||
| 137 | if(curl_errno($curl)) { | 137 | if(curl_errno($curl)) { |
| 138 | if (curl_errno($curl) != 28) | 138 | if (curl_errno($curl) != 28) |
| 139 | - throw new InfraException("Erro na requisio do servio de monitoramento de pendncias. Curl: " . curl_errno($curl)); | 139 | + throw new InfraException("Erro na requisição do serviço de monitoramento de pendências. Curl: " . curl_errno($curl)); |
| 140 | } | 140 | } |
| 141 | 141 | ||
| 142 | if(!InfraString::isBolVazia($strResultadoJSON)) { | 142 | if(!InfraString::isBolVazia($strResultadoJSON)) { |
| @@ -185,7 +185,7 @@ class PendenciasTramiteRN extends InfraRN { | @@ -185,7 +185,7 @@ class PendenciasTramiteRN extends InfraRN { | ||
| 185 | $objPenParametroRN = new PenParametroRN(); | 185 | $objPenParametroRN = new PenParametroRN(); |
| 186 | $numTentativas = $objPenParametroRN->getParametro(PenTramiteProcessadoRN::PARAM_NUMERO_TENTATIVAS, false); | 186 | $numTentativas = $objPenParametroRN->getParametro(PenTramiteProcessadoRN::PARAM_NUMERO_TENTATIVAS, false); |
| 187 | $numCont = 0; | 187 | $numCont = 0; |
| 188 | - // Executa sempre + 1 alm do configurado no parmetro para executar a recusa | 188 | + // Executa sempre + 1 alm do configurado no parâmetro para executar a recusa |
| 189 | while($numCont <= $numTentativas) { | 189 | while($numCont <= $numTentativas) { |
| 190 | $client->addTaskBackground('receberProcedimento', $strWorkload, null); | 190 | $client->addTaskBackground('receberProcedimento', $strWorkload, null); |
| 191 | $numCont++; | 191 | $numCont++; |
| @@ -215,7 +215,7 @@ class PendenciasTramiteRN extends InfraRN { | @@ -215,7 +215,7 @@ class PendenciasTramiteRN extends InfraRN { | ||
| 215 | 215 | ||
| 216 | default: | 216 | default: |
| 217 | //TODO: Alterar lgica para no deixar de processar demais pendncias retornadas pelo PEN | 217 | //TODO: Alterar lgica para no deixar de processar demais pendncias retornadas pelo PEN |
| 218 | - throw new Exception('Situao do trmite no pode ser identificada.'); | 218 | + throw new Exception('Situação do trâmite não pode ser identificada.'); |
| 219 | break; | 219 | break; |
| 220 | } | 220 | } |
| 221 | 221 |
sip_atualizar_versao_modulo_pen.php
| @@ -999,18 +999,18 @@ class PenAtualizarSipRN extends PenAtualizadorRN { | @@ -999,18 +999,18 @@ class PenAtualizarSipRN extends PenAtualizadorRN { | ||
| 999 | throw new InfraException('Menu "Processo Eletrônico Nacional" não foi localizado'); | 999 | throw new InfraException('Menu "Processo Eletrônico Nacional" não foi localizado'); |
| 1000 | } | 1000 | } |
| 1001 | 1001 | ||
| 1002 | - // Administrao > Mapeamento de Hipteses Legais de Envio | 1002 | + // Administrao > Mapeamento de Hipóteses Legais de Envio |
| 1003 | $numIdItemMenu = $this->criarMenu('Mapeamento de Hipóteses Legais', 20, $objItemMenuDTO->getNumIdItemMenu(), $numIdMenu, null, $numIdSistema); | 1003 | $numIdItemMenu = $this->criarMenu('Mapeamento de Hipóteses Legais', 20, $objItemMenuDTO->getNumIdItemMenu(), $numIdMenu, null, $numIdSistema); |
| 1004 | 1004 | ||
| 1005 | - // Administrao > Mapeamento de Hipteses Legais de Envio > Envio | 1005 | + // Administrao > Mapeamento de Hipóteses Legais de Envio > Envio |
| 1006 | $numIdItemMenu = $this->criarMenu('Envio', 10, $numIdItemMenu, $numIdMenu, null, $numIdSistema); | 1006 | $numIdItemMenu = $this->criarMenu('Envio', 10, $numIdItemMenu, $numIdMenu, null, $numIdSistema); |
| 1007 | 1007 | ||
| 1008 | - // Administrao > Mapeamento de Hipteses Legais de Envio > Envio > Cadastrar | 1008 | + // Administrao > Mapeamento de Hipóteses Legais de Envio > Envio > Cadastrar |
| 1009 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_enviado_alterar', 'Alterar de mapeamento de Hipóteses Legais de Envio', $numIdSistema); | 1009 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_enviado_alterar', 'Alterar de mapeamento de Hipóteses Legais de Envio', $numIdSistema); |
| 1010 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_enviado_cadastrar', 'Cadastro de mapeamento de Hipóteses Legais de Envio', $numIdSistema); | 1010 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_enviado_cadastrar', 'Cadastro de mapeamento de Hipóteses Legais de Envio', $numIdSistema); |
| 1011 | $this->criarMenu('Cadastrar', 10, $numIdItemMenu, $numIdMenu, $numIdRecurso, $numIdSistema); | 1011 | $this->criarMenu('Cadastrar', 10, $numIdItemMenu, $numIdMenu, $numIdRecurso, $numIdSistema); |
| 1012 | 1012 | ||
| 1013 | - // Administrao > Mapeamento de Hipteses Legais de Envio > Envio > Listar | 1013 | + // Administrao > Mapeamento de Hipóteses Legais de Envio > Envio > Listar |
| 1014 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_enviado_excluir', 'Excluir mapeamento de Hipóteses Legais de Envio', $numIdSistema); | 1014 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_enviado_excluir', 'Excluir mapeamento de Hipóteses Legais de Envio', $numIdSistema); |
| 1015 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_enviado_listar', 'Listagem de mapeamento de Hipóteses Legais de Envio', $numIdSistema); | 1015 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_enviado_listar', 'Listagem de mapeamento de Hipóteses Legais de Envio', $numIdSistema); |
| 1016 | $this->criarMenu('Listar', 20, $numIdItemMenu, $numIdMenu, $numIdRecurso, $numIdSistema); | 1016 | $this->criarMenu('Listar', 20, $numIdItemMenu, $numIdMenu, $numIdRecurso, $numIdSistema); |
| @@ -1038,18 +1038,18 @@ class PenAtualizarSipRN extends PenAtualizadorRN { | @@ -1038,18 +1038,18 @@ class PenAtualizarSipRN extends PenAtualizadorRN { | ||
| 1038 | $objDTO = $objBD->consultar($objDTO); | 1038 | $objDTO = $objBD->consultar($objDTO); |
| 1039 | 1039 | ||
| 1040 | if(empty($objDTO)) { | 1040 | if(empty($objDTO)) { |
| 1041 | - throw new InfraException('Menu "Processo Eletrônico Nacional" no foi localizado'); | 1041 | + throw new InfraException('Menu "Processo Eletrônico Nacional" não foi localizado'); |
| 1042 | } | 1042 | } |
| 1043 | 1043 | ||
| 1044 | - // Administrao > Mapeamento de Hipteses Legais de Envio > Envio | 1044 | + // Administrao > Mapeamento de Hipóteses Legais de Envio > Envio |
| 1045 | $numIdItemMenu = $this->criarMenu('Recebimento', 20, $objDTO->getNumIdItemMenu(), $numIdMenu, null, $numIdSistema); | 1045 | $numIdItemMenu = $this->criarMenu('Recebimento', 20, $objDTO->getNumIdItemMenu(), $numIdMenu, null, $numIdSistema); |
| 1046 | 1046 | ||
| 1047 | - // Administrao > Mapeamento de Hipteses Legais de Envio > Envio > Cadastrar | 1047 | + // Administrao > Mapeamento de Hipóteses Legais de Envio > Envio > Cadastrar |
| 1048 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_recebido_alterar', 'Alteração de mapeamento de Hipóteses Legais de Recebimento', $numIdSistema); | 1048 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_recebido_alterar', 'Alteração de mapeamento de Hipóteses Legais de Recebimento', $numIdSistema); |
| 1049 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_recebido_cadastrar', 'Cadastro de mapeamento de Hipóteses Legais de Recebimento', $numIdSistema); | 1049 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_recebido_cadastrar', 'Cadastro de mapeamento de Hipóteses Legais de Recebimento', $numIdSistema); |
| 1050 | $this->criarMenu('Cadastrar', 10, $numIdItemMenu, $numIdMenu, $numIdRecurso, $numIdSistema); | 1050 | $this->criarMenu('Cadastrar', 10, $numIdItemMenu, $numIdMenu, $numIdRecurso, $numIdSistema); |
| 1051 | 1051 | ||
| 1052 | - // Administrao > Mapeamento de Hipteses Legais de Envio > Envio > Listar | 1052 | + // Administrao > Mapeamento de Hipóteses Legais de Envio > Envio > Listar |
| 1053 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_recebido_excluir', 'Exclusão de mapeamento de Hipóteses Legais de Recebimento', $numIdSistema); | 1053 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_recebido_excluir', 'Exclusão de mapeamento de Hipóteses Legais de Recebimento', $numIdSistema); |
| 1054 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_recebido_listar', 'Listagem de mapeamento de Hipóteses Legais de Recebimento', $numIdSistema); | 1054 | $numIdRecurso = $this->criarRecurso('pen_map_hipotese_legal_recebido_listar', 'Listagem de mapeamento de Hipóteses Legais de Recebimento', $numIdSistema); |
| 1055 | $this->criarMenu('Listar', 20, $numIdItemMenu, $numIdMenu, $numIdRecurso, $numIdSistema); | 1055 | $this->criarMenu('Listar', 20, $numIdItemMenu, $numIdMenu, $numIdRecurso, $numIdSistema); |
| @@ -1119,19 +1119,19 @@ class PenAtualizarSipRN extends PenAtualizadorRN { | @@ -1119,19 +1119,19 @@ class PenAtualizarSipRN extends PenAtualizadorRN { | ||
| 1119 | throw new InfraException('Menu "Processo Eletrônico Nacional" não foi localizado'); | 1119 | throw new InfraException('Menu "Processo Eletrônico Nacional" não foi localizado'); |
| 1120 | } | 1120 | } |
| 1121 | 1121 | ||
| 1122 | - // Administrao > Mapeamento de Hipteses Legais de Envio > Envio | 1122 | + // Administrao > Mapeamento de Hipóteses Legais de Envio > Envio |
| 1123 | $numIdItemMenu = $this->criarMenu('Mapeamento de Unidades', 20, $objDTO->getNumIdItemMenu(), $numIdMenu, null, $numIdSistema); | 1123 | $numIdItemMenu = $this->criarMenu('Mapeamento de Unidades', 20, $objDTO->getNumIdItemMenu(), $numIdMenu, null, $numIdSistema); |
| 1124 | 1124 | ||
| 1125 | // Cadastro do menu de administração parâmetros | 1125 | // Cadastro do menu de administração parâmetros |
| 1126 | $numIdRecurso = $this->criarRecurso('pen_parametros_configuracao', 'Parametros de Configuração', $numIdSistema); | 1126 | $numIdRecurso = $this->criarRecurso('pen_parametros_configuracao', 'Parametros de Configuração', $numIdSistema); |
| 1127 | $this->criarMenu('Parâmetros de Configuração', 20, $objDTO->getNumIdItemMenu(), $numIdMenu, $numIdRecurso, $numIdSistema); | 1127 | $this->criarMenu('Parâmetros de Configuração', 20, $objDTO->getNumIdItemMenu(), $numIdMenu, $numIdRecurso, $numIdSistema); |
| 1128 | 1128 | ||
| 1129 | - // Administrao > Mapeamento de Hipteses Legais de Envio > Envio > Cadastrar | 1129 | + // Administrao > Mapeamento de Hipóteses Legais de Envio > Envio > Cadastrar |
| 1130 | $this->criarRecurso('pen_map_unidade_alterar', 'Alteração de mapeamento de Unidades', $numIdSistema); | 1130 | $this->criarRecurso('pen_map_unidade_alterar', 'Alteração de mapeamento de Unidades', $numIdSistema); |
| 1131 | $numIdRecurso = $this->criarRecurso('pen_map_unidade_cadastrar', 'Cadastro de mapeamento de Unidades', $numIdSistema); | 1131 | $numIdRecurso = $this->criarRecurso('pen_map_unidade_cadastrar', 'Cadastro de mapeamento de Unidades', $numIdSistema); |
| 1132 | $this->criarMenu('Cadastrar', 10, $numIdItemMenu, $numIdMenu, $numIdRecurso, $numIdSistema); | 1132 | $this->criarMenu('Cadastrar', 10, $numIdItemMenu, $numIdMenu, $numIdRecurso, $numIdSistema); |
| 1133 | 1133 | ||
| 1134 | - // Administrao > Mapeamento de Hipteses Legais de Envio > Envio > Listar | 1134 | + // Administrao > Mapeamento de Hipóteses Legais de Envio > Envio > Listar |
| 1135 | $this->criarRecurso('pen_map_unidade_excluir', 'Exclusão de mapeamento de Unidades', $numIdSistema); | 1135 | $this->criarRecurso('pen_map_unidade_excluir', 'Exclusão de mapeamento de Unidades', $numIdSistema); |
| 1136 | $numIdRecurso = $this->criarRecurso('pen_map_unidade_listar', 'Listagem de mapeamento de Unidades', $numIdSistema); | 1136 | $numIdRecurso = $this->criarRecurso('pen_map_unidade_listar', 'Listagem de mapeamento de Unidades', $numIdSistema); |
| 1137 | $this->criarMenu('Listar', 20, $numIdItemMenu, $numIdMenu, $numIdRecurso, $numIdSistema); | 1137 | $this->criarMenu('Listar', 20, $numIdItemMenu, $numIdMenu, $numIdRecurso, $numIdSistema); |