Commit 712be7952520e9a8ffdb58f12af877583d655b3c
1 parent
47866ca5
Exists in
master
and in
19 other branches
[Fixed #21] Correção de erro Creating default object from empty value
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
rn/ExpedirProcedimentoRN.php
| ... | ... | @@ -177,6 +177,7 @@ class ExpedirProcedimentoRN extends InfraRN { |
| 177 | 177 | $objProcesso->idProcedimentoSEI, |
| 178 | 178 | $objTramite->NRE, |
| 179 | 179 | $objTramite->IDT, |
| 180 | + //ProcessoEletronicoRN::STA_TIPO_TRAMITE_ENVIO, | |
| 180 | 181 | $objTramite->dataHoraDeRegistroDoTramite, |
| 181 | 182 | $objExpedirProcedimentoDTO->getNumIdRepositorioOrigem(), |
| 182 | 183 | $objExpedirProcedimentoDTO->getNumIdUnidadeOrigem(), |
| ... | ... | @@ -733,12 +734,11 @@ class ExpedirProcedimentoRN extends InfraRN { |
| 733 | 734 | } |
| 734 | 735 | |
| 735 | 736 | $objProcesso->produtor = new stdClass(); |
| 736 | - | |
| 737 | 737 | $objUsuarioProdutor = $this->consultarUsuario($dblIdProcedimento); |
| 738 | 738 | if(isset($objUsuarioProdutor)) { |
| 739 | - //Dados do produtor do processo | |
| 739 | + //Dados do produtor do processo | |
| 740 | 740 | $objProcesso->produtor->nome = utf8_encode($objUsuarioProdutor->getStrNome()); |
| 741 | - //TODO: Obter tipo de pessoa fsica dos contatos do SEI | |
| 741 | + //TODO: Obter tipo de pessoa fsica dos contatos do SEI | |
| 742 | 742 | $objProcesso->produtor->numeroDeIdentificacao = $objUsuarioProdutor->getDblCpfContato(); |
| 743 | 743 | $objProcesso->produtor->tipo = self::STA_TIPO_PESSOA_FISICA; |
| 744 | 744 | //TODO: Informar dados da estrutura organizacional (estruturaOrganizacional) |
| ... | ... | @@ -853,7 +853,7 @@ class ExpedirProcedimentoRN extends InfraRN { |
| 853 | 853 | $documento->produtor->unidade = new stdClass(); |
| 854 | 854 | $documento->produtor->unidade->nome = utf8_encode($unidadeDTO->getStrDescricao()); |
| 855 | 855 | $documento->produtor->unidade->tipo = self::STA_TIPO_PESSOA_ORGAOPUBLICO; |
| 856 | - //TODO: Informar dados da estrutura organizacional (estruturaOrganizacional) | |
| 856 | + //TODO: Informar dados da estrutura organizacional (estruturaOrganizacional) | |
| 857 | 857 | } |
| 858 | 858 | |
| 859 | 859 | $documento->produtor->numeroDeIdentificacao = $documentoDTO->getStrProtocoloDocumentoFormatado(); |
| ... | ... | @@ -1391,6 +1391,7 @@ class ExpedirProcedimentoRN extends InfraRN { |
| 1391 | 1391 | |
| 1392 | 1392 | $objUsuarioDTO = new UsuarioDTO(); |
| 1393 | 1393 | $objUsuarioDTO->setNumIdUsuario($numIdUsuario); |
| 1394 | + $objUsuarioDTO->setBolExclusaoLogica(false); | |
| 1394 | 1395 | $objUsuarioDTO->retStrNome(); |
| 1395 | 1396 | $objUsuarioDTO->retDblCpfContato(); |
| 1396 | 1397 | ... | ... |