Commit 89ce3d63535405a9e5c85bed55791b7c6054d407
1 parent
e1a76b34
Exists in
master
and in
1 other branch
Com correções efetivadas no dia 9/9. Agora está peticionamento os processos, mas ainda sem o Recibo.
Showing
7 changed files
with
109 additions
and
96 deletions
Show diff stats
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_bloco_documentos.php
@@ -280,10 +280,6 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co | @@ -280,10 +280,6 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co | ||
280 | <? if( $externo == 'S') { ?> | 280 | <? if( $externo == 'S') { ?> |
281 | 281 | ||
282 | <table id="tbDocumentoPrincipal" class="infraTable" width="95%" > | 282 | <table id="tbDocumentoPrincipal" class="infraTable" width="95%" > |
283 | - | ||
284 | - <!-- | ||
285 | - <caption class="infraCaption">Lista de Documentos principais</caption> | ||
286 | - --> | ||
287 | 283 | ||
288 | <tr> | 284 | <tr> |
289 | <th class="infraTh" style="width:30%;"> Nome do arquivo </th> | 285 | <th class="infraTh" style="width:30%;"> Nome do arquivo </th> |
@@ -475,15 +471,10 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co | @@ -475,15 +471,10 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co | ||
475 | <div style="clear: both;"> </div> | 471 | <div style="clear: both;"> </div> |
476 | 472 | ||
477 | <table id="tbDocumentoEssencial" name="tbDocumentoEssencial" class="infraTable" style="width:95%;"> | 473 | <table id="tbDocumentoEssencial" name="tbDocumentoEssencial" class="infraTable" style="width:95%;"> |
478 | - | ||
479 | - <!-- | ||
480 | - <caption class="infraCaption"><?=PaginaSEIExterna::getInstance()->gerarCaptionTabela("Lista de Documentos Essenciais",0)?></caption> | ||
481 | - --> | 474 | + |
482 | <tr> | 475 | <tr> |
483 | - <th style="display:none;">ID</th> | ||
484 | <th class="infraTh" style="width:30%;">Nome</th> | 476 | <th class="infraTh" style="width:30%;">Nome</th> |
485 | <th class="infraTh" style="width: 70px;" align="center">Data</th> | 477 | <th class="infraTh" style="width: 70px;" align="center">Data</th> |
486 | - <th style="display:none;">Bytes</th> | ||
487 | <th class="infraTh" align="center">Tamanho</th> | 478 | <th class="infraTh" align="center">Tamanho</th> |
488 | <th class="infraTh" align="center" style="width:30%;">Documento</th> | 479 | <th class="infraTh" align="center" style="width:30%;">Documento</th> |
489 | <th class="infraTh" style="width: 120px;" align="center">Nível de acesso</th> | 480 | <th class="infraTh" style="width: 120px;" align="center">Nível de acesso</th> |
@@ -663,16 +654,10 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co | @@ -663,16 +654,10 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co | ||
663 | <div style="clear: both;"> </div> | 654 | <div style="clear: both;"> </div> |
664 | 655 | ||
665 | <table id="tbDocumentoComplementar" name="tbDocumentoComplementar" class="infraTable" style="width:95%;"> | 656 | <table id="tbDocumentoComplementar" name="tbDocumentoComplementar" class="infraTable" style="width:95%;"> |
666 | - | ||
667 | - <!-- | ||
668 | - <caption class="infraCaption"><?=PaginaSEIExterna::getInstance()->gerarCaptionTabela("Documentos complementares",0)?></caption> | ||
669 | - --> | ||
670 | 657 | ||
671 | <tr> | 658 | <tr> |
672 | - <th style="display:none;">ID</th> | ||
673 | <th class="infraTh" style="width:30%;">Nome</th> | 659 | <th class="infraTh" style="width:30%;">Nome</th> |
674 | <th class="infraTh" style="width: 70px;" align="center">Data</th> | 660 | <th class="infraTh" style="width: 70px;" align="center">Data</th> |
675 | - <th style="display:none;">Bytes</th> | ||
676 | <th class="infraTh" align="center">Tamanho</th> | 661 | <th class="infraTh" align="center">Tamanho</th> |
677 | <th class="infraTh" align="center" style="width:30%;">Documento</th> | 662 | <th class="infraTh" align="center" style="width:30%;">Documento</th> |
678 | <th class="infraTh" style="width: 120px;" align="center">Nível de acesso</th> | 663 | <th class="infraTh" style="width: 120px;" align="center">Nível de acesso</th> |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_js.php
@@ -959,6 +959,7 @@ function carregarCamposDocEssencialUpload(){ | @@ -959,6 +959,7 @@ function carregarCamposDocEssencialUpload(){ | ||
959 | 959 | ||
960 | //concatenacao de "Tipo" e "Complemento" | 960 | //concatenacao de "Tipo" e "Complemento" |
961 | var cbTpoEssencial = document.getElementById('tipoDocumentoEssencial'); | 961 | var cbTpoEssencial = document.getElementById('tipoDocumentoEssencial'); |
962 | + | ||
962 | var strComplemento = document.getElementById('complementoEssencial').value; | 963 | var strComplemento = document.getElementById('complementoEssencial').value; |
963 | var documento = getStrTipoDocumento( cbTpoEssencial.value, 'Essencial' ) + ' - ' + strComplemento; | 964 | var documento = getStrTipoDocumento( cbTpoEssencial.value, 'Essencial' ) + ' - ' + strComplemento; |
964 | 965 | ||
@@ -976,8 +977,9 @@ function carregarCamposDocEssencialUpload(){ | @@ -976,8 +977,9 @@ function carregarCamposDocEssencialUpload(){ | ||
976 | 977 | ||
977 | //TipoConferenciaPrincipal / TipoConferenciaEssencial | 978 | //TipoConferenciaPrincipal / TipoConferenciaEssencial |
978 | var tipoConferencia = document.getElementById('TipoConferenciaEssencial').value; | 979 | var tipoConferencia = document.getElementById('TipoConferenciaEssencial').value; |
979 | - | ||
980 | - objTabelaDocEssencial.adicionar([ nome , nome , dataHora , '4', tamanhoFormatado , documento , nivelAcesso, hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoEssencial, '' ]); | 980 | + |
981 | + //objTabelaDocPrincipal.adicionar([ nome , dataHora , tamanhoFormatado , documento , nivelAcesso , hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoPrincipal.value, '' ]); | ||
982 | + objTabelaDocEssencial.adicionar([ nome , dataHora , tamanhoFormatado , documento , nivelAcesso, hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoEssencial.value, '' ]); | ||
981 | //objTabelaDocEssencial.adicionar([ nomeUpload , nomeUpload, dataHora , '4', '5', '6', '7']); | 983 | //objTabelaDocEssencial.adicionar([ nomeUpload , nomeUpload, dataHora , '4', '5', '6', '7']); |
982 | //objTabelaDocEssencial.adicionar([ nomeUpload , dataHora , tamanhoFormatado , documento , nivelAcesso , '']); | 984 | //objTabelaDocEssencial.adicionar([ nomeUpload , dataHora , tamanhoFormatado , documento , nivelAcesso , '']); |
983 | //objTabelaDocEssencial.adicionar([ '-' , nomeUpload , dataHora , dataHora , tamanhoFormatado, documento, 'nivel de acesso', 'acoes' ]); | 985 | //objTabelaDocEssencial.adicionar([ '-' , nomeUpload , dataHora , dataHora , tamanhoFormatado, documento, 'nivel de acesso', 'acoes' ]); |
@@ -1070,7 +1072,7 @@ function carregarCamposDocComplementarUpload(){ | @@ -1070,7 +1072,7 @@ function carregarCamposDocComplementarUpload(){ | ||
1070 | var formatoDocumento = $('input[name="formatoDocumentoComplementar"]:checked').val(); | 1072 | var formatoDocumento = $('input[name="formatoDocumentoComplementar"]:checked').val(); |
1071 | var tipoConferencia = document.getElementById('TipoConferenciaComplementar').value; | 1073 | var tipoConferencia = document.getElementById('TipoConferenciaComplementar').value; |
1072 | 1074 | ||
1073 | - objTabelaDocComplementar.adicionar([ nome , nome , dataHora , '4', tamanhoFormatado , documento , nivelAcesso, hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoComplementar.value, '' ]); | 1075 | + objTabelaDocComplementar.adicionar([ nome , dataHora , tamanhoFormatado , documento , nivelAcesso, hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoComplementar.value, '' ]); |
1074 | //objTabelaDocComplementar.adicionar([ '-' , nomeUpload , dataHora , dataHora , tamanhoFormatado, documento, 'nivel de acesso', 'acoes' ]); | 1076 | //objTabelaDocComplementar.adicionar([ '-' , nomeUpload , dataHora , dataHora , tamanhoFormatado, documento, 'nivel de acesso', 'acoes' ]); |
1075 | //objTabelaDocComplementar.adicionar([arr['nome_upload'],arr['nome'],arr['data_hora'],arr['tamanho'],infraFormatarTamanhoBytes(arr['tamanho']),'<?= time() ?>']); | 1077 | //objTabelaDocComplementar.adicionar([arr['nome_upload'],arr['nome'],arr['data_hora'],arr['tamanho'],infraFormatarTamanhoBytes(arr['tamanho']),'<?= time() ?>']); |
1076 | 1078 |
sei/institucional/peticionamento/rn/AnexoPeticionamentoRN.php
@@ -290,7 +290,7 @@ class AnexoPeticionamentoRN extends InfraRN { | @@ -290,7 +290,7 @@ class AnexoPeticionamentoRN extends InfraRN { | ||
290 | print_r( $objAnexoDTO ); die(); */ | 290 | print_r( $objAnexoDTO ); die(); */ |
291 | 291 | ||
292 | if (InfraString::isBolVazia($objAnexoDTO->getStrNome())){ | 292 | if (InfraString::isBolVazia($objAnexoDTO->getStrNome())){ |
293 | - $objInfraException->adicionarValidacao('111 Nome do anexo não informado.'); | 293 | + $objInfraException->adicionarValidacao('Nome do anexo não informado.'); |
294 | }else{ | 294 | }else{ |
295 | 295 | ||
296 | $objAnexoDTO->setStrNome(trim($objAnexoDTO->getStrNome())); | 296 | $objAnexoDTO->setStrNome(trim($objAnexoDTO->getStrNome())); |
sei/institucional/peticionamento/rn/DocumentoPeticionamentoRN.php
@@ -702,7 +702,7 @@ class DocumentoPeticionamentoRN extends InfraRN { | @@ -702,7 +702,7 @@ class DocumentoPeticionamentoRN extends InfraRN { | ||
702 | private function validarNumIdSerieRN0009(DocumentoDTO $objDocumentoDTO, InfraException $objInfraException){ | 702 | private function validarNumIdSerieRN0009(DocumentoDTO $objDocumentoDTO, InfraException $objInfraException){ |
703 | 703 | ||
704 | if (InfraString::isBolVazia($objDocumentoDTO->getNumIdSerie())){ | 704 | if (InfraString::isBolVazia($objDocumentoDTO->getNumIdSerie())){ |
705 | - $objInfraException->lancarValidacao('Tipo do documento não informado.'); | 705 | + $objInfraException->lancarValidacao('ABS Tipo do documento não informado.'); |
706 | }else{ | 706 | }else{ |
707 | 707 | ||
708 | $objSerieDTO = new SerieDTO(); | 708 | $objSerieDTO = new SerieDTO(); |
@@ -722,6 +722,10 @@ class DocumentoPeticionamentoRN extends InfraRN { | @@ -722,6 +722,10 @@ class DocumentoPeticionamentoRN extends InfraRN { | ||
722 | if ($objDocumentoDTO->getStrStaProtocoloProtocolo()==ProtocoloRN::$TP_DOCUMENTO_GERADO && $objSerieDTO->getStrStaAplicabilidade()==SerieRN::$TA_EXTERNO){ | 722 | if ($objDocumentoDTO->getStrStaProtocoloProtocolo()==ProtocoloRN::$TP_DOCUMENTO_GERADO && $objSerieDTO->getStrStaAplicabilidade()==SerieRN::$TA_EXTERNO){ |
723 | $objInfraException->adicionarValidacao('Tipo do documento não aplicável para documentos internos.'); | 723 | $objInfraException->adicionarValidacao('Tipo do documento não aplicável para documentos internos.'); |
724 | }else if ($objDocumentoDTO->getStrStaProtocoloProtocolo()==ProtocoloRN::$TP_DOCUMENTO_RECEBIDO && $objSerieDTO->getStrStaAplicabilidade()==SerieRN::$TA_INTERNO){ | 724 | }else if ($objDocumentoDTO->getStrStaProtocoloProtocolo()==ProtocoloRN::$TP_DOCUMENTO_RECEBIDO && $objSerieDTO->getStrStaAplicabilidade()==SerieRN::$TA_INTERNO){ |
725 | + //echo "<pre>"; | ||
726 | + //debug_print_backtrace(); | ||
727 | + //echo "</pre>"; | ||
728 | + //die(); | ||
725 | $objInfraException->adicionarValidacao('Tipo do documento não aplicável para documentos externos.'); | 729 | $objInfraException->adicionarValidacao('Tipo do documento não aplicável para documentos externos.'); |
726 | } | 730 | } |
727 | } | 731 | } |
sei/institucional/peticionamento/rn/ProcessoPeticionamentoRN.php
@@ -171,7 +171,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -171,7 +171,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
171 | 171 | ||
172 | $this->montarArrDocumentos( $arrParametros, $objUnidadeDTO, $objProcedimentoDTO, $arrParticipantesParametro, $reciboDTOBasico ); | 172 | $this->montarArrDocumentos( $arrParametros, $objUnidadeDTO, $objProcedimentoDTO, $arrParticipantesParametro, $reciboDTOBasico ); |
173 | 173 | ||
174 | - $this->enviarProcedimentoUnidade($objProcedimentoDTO); | 174 | + //$this->enviarProcedimentoUnidade($objProcedimentoDTO); |
175 | 175 | ||
176 | $arrParams = array(); | 176 | $arrParams = array(); |
177 | $arrParams[0] = $arrParametros; | 177 | $arrParams[0] = $arrParametros; |
@@ -189,9 +189,11 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -189,9 +189,11 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
189 | //$arrProcessoReciboRetorno[0] = $retornoRecibo; | 189 | //$arrProcessoReciboRetorno[0] = $retornoRecibo; |
190 | $arrProcessoReciboRetorno[1] = $objProcedimentoDTO; | 190 | $arrProcessoReciboRetorno[1] = $objProcedimentoDTO; |
191 | 191 | ||
192 | - //enviando email de sistema EU 5155 / 5156 | ||
193 | - //$emailNotificacaoPeticionamentoRN = new EmailNotificacaoPeticionamentoRN(); | ||
194 | - //$emailNotificacaoPeticionamentoRN->notificaoPeticionamentoExterno( $arrParams ); | 192 | + //enviando email de sistema EU 5155 / 5156 - try catch por causa que em localhost o envio de email gera erro |
193 | + try { | ||
194 | + $emailNotificacaoPeticionamentoRN = new EmailNotificacaoPeticionamentoRN(); | ||
195 | + $emailNotificacaoPeticionamentoRN->notificaoPeticionamentoExterno( $arrParams ); | ||
196 | + } catch( Exception $exEmail ){} | ||
195 | 197 | ||
196 | return $arrProcessoReciboRetorno; | 198 | return $arrProcessoReciboRetorno; |
197 | 199 | ||
@@ -283,12 +285,16 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -283,12 +285,16 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
283 | $idNivelAcesso = null; | 285 | $idNivelAcesso = null; |
284 | 286 | ||
285 | if( $arrLinhasAnexos[ $contador ][4] == "Público" ){ | 287 | if( $arrLinhasAnexos[ $contador ][4] == "Público" ){ |
288 | + | ||
286 | $idNivelAcesso = ProtocoloRN::$NA_PUBLICO; | 289 | $idNivelAcesso = ProtocoloRN::$NA_PUBLICO; |
290 | + $idHipoteseLegal = null; | ||
291 | + | ||
287 | } else if( $arrLinhasAnexos[ $contador ][4] == "Restrito" ){ | 292 | } else if( $arrLinhasAnexos[ $contador ][4] == "Restrito" ){ |
293 | + | ||
288 | $idNivelAcesso = ProtocoloRN::$NA_RESTRITO; | 294 | $idNivelAcesso = ProtocoloRN::$NA_RESTRITO; |
295 | + $idHipoteseLegal = $arrLinhasAnexos[ $contador ][5]; | ||
289 | } | 296 | } |
290 | - | ||
291 | - $idHipoteseLegal = $arrLinhasAnexos[ $contador ][5]; | 297 | + |
292 | $idGrauSigilo = null; | 298 | $idGrauSigilo = null; |
293 | 299 | ||
294 | //criando registro em protocolo | 300 | //criando registro em protocolo |
@@ -299,9 +305,18 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -299,9 +305,18 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
299 | $objProtocoloDTO = new ProtocoloDTO(); | 305 | $objProtocoloDTO = new ProtocoloDTO(); |
300 | $objProtocoloDTO->setDblIdProtocolo(null); | 306 | $objProtocoloDTO->setDblIdProtocolo(null); |
301 | 307 | ||
302 | - $objDocumentoDTO->setNumIdSerie( $idSerieAnexo ); | ||
303 | - $objProtocoloDTO->setNumIdSerieDocumento( $idSerieAnexo ); | 308 | + $objDocumentoDTO->setStrStaNivelAcessoLocalProtocolo( $idNivelAcesso ); |
309 | + | ||
310 | + if( $idNivelAcesso == ProtocoloRN::$NA_PUBLICO ){ | ||
311 | + | ||
312 | + $objDocumentoDTO->setNumIdHipoteseLegalProtocolo( null ); | ||
313 | + } | ||
304 | 314 | ||
315 | + else if( $idNivelAcesso == ProtocoloRN::$NA_RESTRITO ){ | ||
316 | + | ||
317 | + $objDocumentoDTO->setNumIdHipoteseLegalProtocolo( $idHipoteseLegal ); | ||
318 | + } | ||
319 | + | ||
305 | $objDocumentoDTO->setDblIdDocumentoEdoc( null ); | 320 | $objDocumentoDTO->setDblIdDocumentoEdoc( null ); |
306 | $objDocumentoDTO->setDblIdDocumentoEdocBase( null ); | 321 | $objDocumentoDTO->setDblIdDocumentoEdocBase( null ); |
307 | $objDocumentoDTO->setNumIdUnidadeResponsavel( SessaoSEI::getInstance()->getNumIdUnidadeAtual() ); | 322 | $objDocumentoDTO->setNumIdUnidadeResponsavel( SessaoSEI::getInstance()->getNumIdUnidadeAtual() ); |
@@ -310,8 +325,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -310,8 +325,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
310 | $objDocumentoDTO->setStrSinFormulario('N'); | 325 | $objDocumentoDTO->setStrSinFormulario('N'); |
311 | $objDocumentoDTO->setStrSinBloqueado('N'); | 326 | $objDocumentoDTO->setStrSinBloqueado('N'); |
312 | 327 | ||
313 | - $objDocumentoDTO->setStrStaEditor( null ); | ||
314 | - | 328 | + $objDocumentoDTO->setStrStaEditor( null ); |
315 | $objDocumentoDTO->setNumVersaoLock(0); | 329 | $objDocumentoDTO->setNumVersaoLock(0); |
316 | 330 | ||
317 | $arrObjUnidadeDTOReabertura = array(); | 331 | $arrObjUnidadeDTOReabertura = array(); |
@@ -321,7 +335,15 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -321,7 +335,15 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
321 | $objDocumentoDTO->setArrObjUnidadeDTO($arrObjUnidadeDTOReabertura); | 335 | $objDocumentoDTO->setArrObjUnidadeDTO($arrObjUnidadeDTOReabertura); |
322 | 336 | ||
323 | $objProtocoloDTO->setStrStaNivelAcessoLocal( $idNivelAcesso ); | 337 | $objProtocoloDTO->setStrStaNivelAcessoLocal( $idNivelAcesso ); |
324 | - $objProtocoloDTO->setNumIdHipoteseLegal( $idHipoteseLegal ); | 338 | + |
339 | + if( $idNivelAcesso == ProtocoloRN::$NA_PUBLICO ){ | ||
340 | + $objProtocoloDTO->setNumIdHipoteseLegal( null ); | ||
341 | + } | ||
342 | + | ||
343 | + else if( $idNivelAcesso == ProtocoloRN::$NA_RESTRITO ){ | ||
344 | + $objProtocoloDTO->setNumIdHipoteseLegal( $idHipoteseLegal ); | ||
345 | + } | ||
346 | + | ||
325 | $objProtocoloDTO->setStrStaGrauSigilo( $idGrauSigilo ); | 347 | $objProtocoloDTO->setStrStaGrauSigilo( $idGrauSigilo ); |
326 | 348 | ||
327 | $objProtocoloDTO->setStrDescricao(''); | 349 | $objProtocoloDTO->setStrDescricao(''); |
@@ -359,9 +381,13 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -359,9 +381,13 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
359 | $objDocumentoDTO->setObjProtocoloDTO($objProtocoloDTO); | 381 | $objDocumentoDTO->setObjProtocoloDTO($objProtocoloDTO); |
360 | 382 | ||
361 | $objDocumentoDTO->setNumIdTextoPadraoInterno(''); | 383 | $objDocumentoDTO->setNumIdTextoPadraoInterno(''); |
362 | - $objDocumentoDTO->setStrProtocoloDocumentoTextoBase(''); | ||
363 | - $objDocumentoDTO = $objDocumentoRN->receberRN0991($objDocumentoDTO); | 384 | + $objDocumentoDTO->setStrProtocoloDocumentoTextoBase(''); |
385 | + | ||
386 | + $objDocumentoDTO->setNumIdSerie( $idSerieAnexo ); | ||
387 | + $objProtocoloDTO->setNumIdSerieDocumento( $idSerieAnexo ); | ||
364 | 388 | ||
389 | + $objDocumentoDTO = $objDocumentoRN->receberRN0991($objDocumentoDTO); | ||
390 | + | ||
365 | //============================= | 391 | //============================= |
366 | //criando registro em anexo | 392 | //criando registro em anexo |
367 | //============================= | 393 | //============================= |
@@ -376,6 +402,9 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -376,6 +402,9 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
376 | $itemAnexo->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); | 402 | $itemAnexo->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); |
377 | $itemAnexo->setStrSinAtivo('S'); | 403 | $itemAnexo->setStrSinAtivo('S'); |
378 | $itemAnexo = $anexoRN->cadastrarRN0172( $itemAnexo ); | 404 | $itemAnexo = $anexoRN->cadastrarRN0172( $itemAnexo ); |
405 | + | ||
406 | + $this->assinarETravarDocumento( $objUnidadeDTO, $arrParametros, $objDocumentoDTO, $objProcedimentoDTO ); | ||
407 | + | ||
379 | $arrAnexoPrincipalVinculacaoProcesso[] = $itemAnexo; | 408 | $arrAnexoPrincipalVinculacaoProcesso[] = $itemAnexo; |
380 | $contador = $contador+1; | 409 | $contador = $contador+1; |
381 | 410 | ||
@@ -409,7 +438,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -409,7 +438,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
409 | //================================ | 438 | //================================ |
410 | //PROTOCOLO / DOCUMENTO DO ANEXO | 439 | //PROTOCOLO / DOCUMENTO DO ANEXO |
411 | //================================= | 440 | //================================= |
412 | - | 441 | + |
413 | $idSerieAnexo = $arrLinhasAnexos[ $contador ][9]; | 442 | $idSerieAnexo = $arrLinhasAnexos[ $contador ][9]; |
414 | $idTipoConferencia = $arrLinhasAnexos[ $contador ][7]; | 443 | $idTipoConferencia = $arrLinhasAnexos[ $contador ][7]; |
415 | 444 | ||
@@ -417,11 +446,12 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -417,11 +446,12 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
417 | 446 | ||
418 | if( $arrLinhasAnexos[ $contador ][4] == "Público" ){ | 447 | if( $arrLinhasAnexos[ $contador ][4] == "Público" ){ |
419 | $idNivelAcesso = ProtocoloRN::$NA_PUBLICO; | 448 | $idNivelAcesso = ProtocoloRN::$NA_PUBLICO; |
449 | + $idHipoteseLegal = null; | ||
420 | } else if( $arrLinhasAnexos[ $contador ][4] == "Restrito" ){ | 450 | } else if( $arrLinhasAnexos[ $contador ][4] == "Restrito" ){ |
421 | $idNivelAcesso = ProtocoloRN::$NA_RESTRITO; | 451 | $idNivelAcesso = ProtocoloRN::$NA_RESTRITO; |
452 | + $idHipoteseLegal = $arrLinhasAnexos[ $contador ][5]; | ||
422 | } | 453 | } |
423 | - | ||
424 | - $idHipoteseLegal = $arrLinhasAnexos[ $contador ][5]; | 454 | + |
425 | $idGrauSigilo = null; | 455 | $idGrauSigilo = null; |
426 | 456 | ||
427 | //criando registro em protocolo | 457 | //criando registro em protocolo |
@@ -493,6 +523,10 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -493,6 +523,10 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
493 | 523 | ||
494 | $objDocumentoDTO->setNumIdTextoPadraoInterno(''); | 524 | $objDocumentoDTO->setNumIdTextoPadraoInterno(''); |
495 | $objDocumentoDTO->setStrProtocoloDocumentoTextoBase(''); | 525 | $objDocumentoDTO->setStrProtocoloDocumentoTextoBase(''); |
526 | + | ||
527 | + $objDocumentoDTO->setNumIdSerie( $idSerieAnexo ); | ||
528 | + $objProtocoloDTO->setNumIdSerieDocumento( $idSerieAnexo ); | ||
529 | + | ||
496 | $objDocumentoDTO = $objDocumentoRN->receberRN0991($objDocumentoDTO); | 530 | $objDocumentoDTO = $objDocumentoRN->receberRN0991($objDocumentoDTO); |
497 | 531 | ||
498 | //================================== | 532 | //================================== |
@@ -501,13 +535,16 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -501,13 +535,16 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
501 | 535 | ||
502 | $strTamanho = str_replace("","Kb", $itemAnexo->getNumTamanho() ); | 536 | $strTamanho = str_replace("","Kb", $itemAnexo->getNumTamanho() ); |
503 | $strTamanho = str_replace("","Mb", $strTamanho ); | 537 | $strTamanho = str_replace("","Mb", $strTamanho ); |
504 | - $itemAnexo->setDblIdProtocolo( $objProcedimentoDTO->getDblIdProcedimento() ); | 538 | + $itemAnexo->setDblIdProtocolo( $objDocumentoDTO->getDblIdDocumento() ); |
505 | $itemAnexo->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); | 539 | $itemAnexo->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); |
506 | $itemAnexo->setNumTamanho( (int)$strTamanho ); | 540 | $itemAnexo->setNumTamanho( (int)$strTamanho ); |
507 | $itemAnexo->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); | 541 | $itemAnexo->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); |
508 | $itemAnexo->setStrSinAtivo('S'); | 542 | $itemAnexo->setStrSinAtivo('S'); |
509 | //print_r( $itemAnexo ); die(); | 543 | //print_r( $itemAnexo ); die(); |
510 | $itemAnexo = $anexoRN->cadastrarRN0172( $itemAnexo ); | 544 | $itemAnexo = $anexoRN->cadastrarRN0172( $itemAnexo ); |
545 | + | ||
546 | + $this->assinarETravarDocumento( $objUnidadeDTO, $arrParametros, $objDocumentoDTO, $objProcedimentoDTO ); | ||
547 | + | ||
511 | $arrAnexoEssencialVinculacaoProcesso[] = $itemAnexo; | 548 | $arrAnexoEssencialVinculacaoProcesso[] = $itemAnexo; |
512 | $contador = $contador+1; | 549 | $contador = $contador+1; |
513 | 550 | ||
@@ -539,7 +576,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -539,7 +576,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
539 | //================================ | 576 | //================================ |
540 | //PROTOCOLO / DOCUMENTO DO ANEXO | 577 | //PROTOCOLO / DOCUMENTO DO ANEXO |
541 | //================================= | 578 | //================================= |
542 | - | 579 | + |
543 | $idSerieAnexo = $arrLinhasAnexos[ $contador ][9]; | 580 | $idSerieAnexo = $arrLinhasAnexos[ $contador ][9]; |
544 | $idTipoConferencia = $arrLinhasAnexos[ $contador ][7]; | 581 | $idTipoConferencia = $arrLinhasAnexos[ $contador ][7]; |
545 | 582 | ||
@@ -547,11 +584,12 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -547,11 +584,12 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
547 | 584 | ||
548 | if( $arrLinhasAnexos[ $contador ][4] == "Público" ){ | 585 | if( $arrLinhasAnexos[ $contador ][4] == "Público" ){ |
549 | $idNivelAcesso = ProtocoloRN::$NA_PUBLICO; | 586 | $idNivelAcesso = ProtocoloRN::$NA_PUBLICO; |
587 | + $idHipoteseLegal = null; | ||
550 | } else if( $arrLinhasAnexos[ $contador ][4] == "Restrito" ){ | 588 | } else if( $arrLinhasAnexos[ $contador ][4] == "Restrito" ){ |
551 | $idNivelAcesso = ProtocoloRN::$NA_RESTRITO; | 589 | $idNivelAcesso = ProtocoloRN::$NA_RESTRITO; |
590 | + $idHipoteseLegal = $arrLinhasAnexos[ $contador ][5]; | ||
552 | } | 591 | } |
553 | - | ||
554 | - $idHipoteseLegal = $arrLinhasAnexos[ $contador ][5]; | 592 | + |
555 | $idGrauSigilo = null; | 593 | $idGrauSigilo = null; |
556 | 594 | ||
557 | //criando registro em protocolo | 595 | //criando registro em protocolo |
@@ -561,10 +599,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -561,10 +599,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
561 | 599 | ||
562 | $objProtocoloDTO = new ProtocoloDTO(); | 600 | $objProtocoloDTO = new ProtocoloDTO(); |
563 | $objProtocoloDTO->setDblIdProtocolo(null); | 601 | $objProtocoloDTO->setDblIdProtocolo(null); |
564 | - | ||
565 | - $objDocumentoDTO->setNumIdSerie( $idSerieAnexo ); | ||
566 | - $objProtocoloDTO->setNumIdSerieDocumento( $idSerieAnexo ); | ||
567 | - | 602 | + |
568 | $objDocumentoDTO->setDblIdDocumentoEdoc( null ); | 603 | $objDocumentoDTO->setDblIdDocumentoEdoc( null ); |
569 | $objDocumentoDTO->setDblIdDocumentoEdocBase( null ); | 604 | $objDocumentoDTO->setDblIdDocumentoEdocBase( null ); |
570 | $objDocumentoDTO->setNumIdUnidadeResponsavel( SessaoSEI::getInstance()->getNumIdUnidadeAtual() ); | 605 | $objDocumentoDTO->setNumIdUnidadeResponsavel( SessaoSEI::getInstance()->getNumIdUnidadeAtual() ); |
@@ -623,6 +658,10 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -623,6 +658,10 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
623 | 658 | ||
624 | $objDocumentoDTO->setNumIdTextoPadraoInterno(''); | 659 | $objDocumentoDTO->setNumIdTextoPadraoInterno(''); |
625 | $objDocumentoDTO->setStrProtocoloDocumentoTextoBase(''); | 660 | $objDocumentoDTO->setStrProtocoloDocumentoTextoBase(''); |
661 | + | ||
662 | + $objDocumentoDTO->setNumIdSerie( $idSerieAnexo ); | ||
663 | + $objProtocoloDTO->setNumIdSerieDocumento( $idSerieAnexo ); | ||
664 | + | ||
626 | $objDocumentoDTO = $objDocumentoRN->receberRN0991($objDocumentoDTO); | 665 | $objDocumentoDTO = $objDocumentoRN->receberRN0991($objDocumentoDTO); |
627 | 666 | ||
628 | //======================== | 667 | //======================== |
@@ -637,6 +676,9 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -637,6 +676,9 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
637 | $itemAnexoComplementar->setStrSinAtivo('S'); | 676 | $itemAnexoComplementar->setStrSinAtivo('S'); |
638 | $itemAnexoComplementar = $anexoRN->cadastrarRN0172( $itemAnexoComplementar ); | 677 | $itemAnexoComplementar = $anexoRN->cadastrarRN0172( $itemAnexoComplementar ); |
639 | $arrAnexoComplementarVinculacaoProcesso[] = $itemAnexoComplementar; | 678 | $arrAnexoComplementarVinculacaoProcesso[] = $itemAnexoComplementar; |
679 | + | ||
680 | + $this->assinarETravarDocumento( $objUnidadeDTO, $arrParametros, $objDocumentoDTO, $objProcedimentoDTO ); | ||
681 | + | ||
640 | $contador = $contador+1; | 682 | $contador = $contador+1; |
641 | } | 683 | } |
642 | 684 | ||
@@ -1210,48 +1252,24 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -1210,48 +1252,24 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
1210 | public function processarStringAnexos($strDelimitadaAnexos, $idUnidade, $strSiglaUsuario, $bolDocumentoPrincipal, $idProtocolo){ | 1252 | public function processarStringAnexos($strDelimitadaAnexos, $idUnidade, $strSiglaUsuario, $bolDocumentoPrincipal, $idProtocolo){ |
1211 | 1253 | ||
1212 | $arrAnexos = array(); | 1254 | $arrAnexos = array(); |
1213 | - | ||
1214 | - if( $bolDocumentoPrincipal == true ){ | ||
1215 | - | ||
1216 | - $arrAnexos = PaginaSEI::getInstance()->getArrItensTabelaDinamica($strDelimitadaAnexos); | ||
1217 | - $arrObjAnexoDTO = array(); | ||
1218 | - | ||
1219 | - foreach($arrAnexos as $anexo){ | ||
1220 | 1255 | ||
1221 | - $objAnexoDTO = new AnexoDTO(); | ||
1222 | - $objAnexoDTO->setNumIdAnexo( null ); | ||
1223 | - $objAnexoDTO->setStrSinAtivo('S'); | ||
1224 | - $objAnexoDTO->setStrNome($anexo[8]); | ||
1225 | - $objAnexoDTO->setDthInclusao($anexo[1]); | ||
1226 | - $objAnexoDTO->setNumTamanho($anexo[2]); | ||
1227 | - $objAnexoDTO->setStrSiglaUsuario( $strSiglaUsuario ); | ||
1228 | - $objAnexoDTO->setStrSiglaUnidade( $idUnidade ); | ||
1229 | - $objAnexoDTO->setNumIdUsuario(SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno()); | ||
1230 | - $arrObjAnexoDTO[] = $objAnexoDTO; | ||
1231 | - } | 1256 | + $arrAnexos = PaginaSEI::getInstance()->getArrItensTabelaDinamica($strDelimitadaAnexos); |
1257 | + $arrObjAnexoDTO = array(); | ||
1232 | 1258 | ||
1233 | - } else { | ||
1234 | - | ||
1235 | - $arrAnexos = PaginaSEI::getInstance()->getArrItensTabelaDinamica($strDelimitadaAnexos); | ||
1236 | - $arrObjAnexoDTO = array(); | ||
1237 | - | ||
1238 | - foreach($arrAnexos as $anexo){ | ||
1239 | - | ||
1240 | - //print_r( $anexo );die(); | ||
1241 | - $objAnexoDTO = new AnexoDTO(); | ||
1242 | - $objAnexoDTO->setNumIdAnexo( null ); | ||
1243 | - $objAnexoDTO->setStrSinAtivo('S'); | ||
1244 | - $objAnexoDTO->setStrNome($anexo[10]); | ||
1245 | - $objAnexoDTO->setDthInclusao($anexo[2]); | ||
1246 | - $objAnexoDTO->setNumTamanho($anexo[4]); | ||
1247 | - $objAnexoDTO->setStrSiglaUsuario( $strSiglaUsuario ); | ||
1248 | - $objAnexoDTO->setStrSiglaUnidade( $idUnidade ); | ||
1249 | - $objAnexoDTO->setNumIdUsuario(SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno()); | ||
1250 | - $arrObjAnexoDTO[] = $objAnexoDTO; | ||
1251 | - } | 1259 | + foreach($arrAnexos as $anexo){ |
1260 | + | ||
1261 | + $objAnexoDTO = new AnexoDTO(); | ||
1262 | + $objAnexoDTO->setNumIdAnexo( null ); | ||
1263 | + $objAnexoDTO->setStrSinAtivo('S'); | ||
1264 | + $objAnexoDTO->setStrNome($anexo[8]); | ||
1265 | + $objAnexoDTO->setDthInclusao($anexo[1]); | ||
1266 | + $objAnexoDTO->setNumTamanho($anexo[2]); | ||
1267 | + $objAnexoDTO->setStrSiglaUsuario( $strSiglaUsuario ); | ||
1268 | + $objAnexoDTO->setStrSiglaUnidade( $idUnidade ); | ||
1269 | + $objAnexoDTO->setNumIdUsuario(SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno()); | ||
1270 | + $arrObjAnexoDTO[] = $objAnexoDTO; | ||
1252 | } | 1271 | } |
1253 | 1272 | ||
1254 | - //print_r( $arrObjAnexoDTO ); die(); | ||
1255 | return $arrObjAnexoDTO; | 1273 | return $arrObjAnexoDTO; |
1256 | } | 1274 | } |
1257 | } | 1275 | } |
sei/institucional/peticionamento/serie_peticionamento_lista.php
@@ -24,8 +24,8 @@ try { | @@ -24,8 +24,8 @@ try { | ||
24 | SessaoSEI::getInstance()->validarPermissao($_GET['acao']); | 24 | SessaoSEI::getInstance()->validarPermissao($_GET['acao']); |
25 | 25 | ||
26 | if (isset($_GET['id_grupo_serie'])){ | 26 | if (isset($_GET['id_grupo_serie'])){ |
27 | - PaginaSEI::getInstance()->salvarCampo('selGrupoSerie',$_GET['id_grupo_serie']); | ||
28 | - //$_POST['hdnInfraTotalRegistros'] = 0; | 27 | + PaginaSEI::getInstance()->salvarCampo('selGrupoSerie',$_GET['id_grupo_serie']); |
28 | + //$_POST['hdnInfraTotalRegistros'] = 0; | ||
29 | }else{ | 29 | }else{ |
30 | PaginaSEI::getInstance()->salvarCamposPost(array('selGrupoSerie')); | 30 | PaginaSEI::getInstance()->salvarCamposPost(array('selGrupoSerie')); |
31 | } | 31 | } |
@@ -357,8 +357,8 @@ PaginaSEI::getInstance()->abrirStyle(); | @@ -357,8 +357,8 @@ PaginaSEI::getInstance()->abrirStyle(); | ||
357 | #lblGrupoSerie {position:absolute;left:0%;top:0%;width:20%;} | 357 | #lblGrupoSerie {position:absolute;left:0%;top:0%;width:20%;} |
358 | #selGrupoSerie {position:absolute;left:0%;top:40%;width:20%;} | 358 | #selGrupoSerie {position:absolute;left:0%;top:40%;width:20%;} |
359 | 359 | ||
360 | -#lblNomeSeriePesquisa {position:absolute;left:25%;top:0%;width:20%;} | ||
361 | -#txtNomeSeriePesquisa {position:absolute;left:25%;top:40%;width:20%;} | 360 | +#lblNomeSeriePesquisa {position:absolute;left:0%;top:0%;width:20%;} |
361 | +#txtNomeSeriePesquisa {position:absolute;left:0%;top:40%;width:20%;} | ||
362 | 362 | ||
363 | #lblModeloPesquisa {position:absolute;left:50%;top:0%;width:24%;} | 363 | #lblModeloPesquisa {position:absolute;left:50%;top:0%;width:24%;} |
364 | #selModeloPesquisa {position:absolute;left:50%;top:40%;width:24%;} | 364 | #selModeloPesquisa {position:absolute;left:50%;top:40%;width:24%;} |
@@ -460,16 +460,16 @@ PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | @@ -460,16 +460,16 @@ PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | ||
460 | PaginaSEI::getInstance()->montarBarraComandosSuperior($arrComandos); | 460 | PaginaSEI::getInstance()->montarBarraComandosSuperior($arrComandos); |
461 | PaginaSEI::getInstance()->abrirAreaDados('4.5em'); | 461 | PaginaSEI::getInstance()->abrirAreaDados('4.5em'); |
462 | ?> | 462 | ?> |
463 | - <label id="lblGrupoSerie" for="selGrupoSerie" accesskey="" class="infraLabelOpcional">Grupo:</label> | ||
464 | - <select id="selGrupoSerie" name="selGrupoSerie" onchange="this.form.submit();" class="infraSelect" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" > | 463 | + <label id="lblGrupoSerie" for="selGrupoSerie" accesskey="" class="infraLabelOpcional" style="display:none!important">Grupo:</label> |
464 | + <select id="selGrupoSerie" name="selGrupoSerie" onchange="this.form.submit();" class="infraSelect" style="display:none!important" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" > | ||
465 | <?=$strItensSelGrupoSerie?> | 465 | <?=$strItensSelGrupoSerie?> |
466 | </select> | 466 | </select> |
467 | 467 | ||
468 | <label id="lblNomeSeriePesquisa" for="txtNomeSeriePesquisa" accesskey="" class="infraLabelOpcional">Nome:</label> | 468 | <label id="lblNomeSeriePesquisa" for="txtNomeSeriePesquisa" accesskey="" class="infraLabelOpcional">Nome:</label> |
469 | <input type="text" id="txtNomeSeriePesquisa" name="txtNomeSeriePesquisa" value="<?=$strNomeSeriePesquisa?>" class="infraText" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> | 469 | <input type="text" id="txtNomeSeriePesquisa" name="txtNomeSeriePesquisa" value="<?=$strNomeSeriePesquisa?>" class="infraText" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> |
470 | 470 | ||
471 | - <label id="lblModeloPesquisa" for="selModeloPesquisa" accesskey="" class="infraLabelOpcional">Modelo:</label> | ||
472 | - <select id="selModeloPesquisa" name="selModeloPesquisa" onchange="this.form.submit();" class="infraSelect" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" > | 471 | + <label id="lblModeloPesquisa" for="selModeloPesquisa" accesskey="" class="infraLabelOpcional" style="display:none!important">Modelo:</label> |
472 | + <select id="selModeloPesquisa" name="selModeloPesquisa" onchange="this.form.submit();" class="infraSelect" style="display:none!important" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" > | ||
473 | <?=$strItensSelModelo?> | 473 | <?=$strItensSelModelo?> |
474 | </select> | 474 | </select> |
475 | 475 |
sei/institucional/peticionamento/tipo_processo_peticionamento_cadastro.php
@@ -24,11 +24,11 @@ try { | @@ -24,11 +24,11 @@ try { | ||
24 | $strLinkAjaxNivelAcesso = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=nivel_acesso_auto_completar'); | 24 | $strLinkAjaxNivelAcesso = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=nivel_acesso_auto_completar'); |
25 | 25 | ||
26 | //Tipo Documento Complementar | 26 | //Tipo Documento Complementar |
27 | - $strLinkTipoDocumentoSelecao = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=serie_peticionamento_selecionar&filtro=1&tipo_selecao=2&id_object=objLupaTipoDocumento'); | ||
28 | - $strLinkAjaxTipoDocumento = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=serie_auto_completar'); | 27 | + $strLinkTipoDocumentoSelecao = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=serie_peticionamento_selecionar&filtro=1&tipo_selecao=2&id_object=objLupaTipoDocumento&tipoDoc=E'); |
28 | + $strLinkAjaxTipoDocumento = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=serie_peticionamento_auto_completar'); | ||
29 | 29 | ||
30 | //Tipo de Documento Essencial | 30 | //Tipo de Documento Essencial |
31 | - $strLinkTipoDocumentoEssencialSelecao = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=serie_peticionamento_selecionar&filtro=1&tipo_selecao=2&id_object=objLupaTipoDocumentoEssencial'); | 31 | + $strLinkTipoDocumentoEssencialSelecao = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=serie_peticionamento_selecionar&filtro=1&tipo_selecao=2&id_object=objLupaTipoDocumentoEssencial&tipoDoc=E'); |
32 | 32 | ||
33 | //Tipo Processo | 33 | //Tipo Processo |
34 | $strLinkTipoProcessoSelecao = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_procedimento_selecionar&tipo_selecao=1&id_object=objLupaTipoProcesso'); | 34 | $strLinkTipoProcessoSelecao = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_procedimento_selecionar&tipo_selecao=1&id_object=objLupaTipoProcesso'); |
@@ -1567,7 +1567,9 @@ function carregarComponenteTipoDocumento(){ | @@ -1567,7 +1567,9 @@ function carregarComponenteTipoDocumento(){ | ||
1567 | 1567 | ||
1568 | objAutoCompletarTipoDocumento.prepararExecucao = function(){ | 1568 | objAutoCompletarTipoDocumento.prepararExecucao = function(){ |
1569 | var gerado = document.getElementsByName('rdDocPrincipal[]')[0].checked; | 1569 | var gerado = document.getElementsByName('rdDocPrincipal[]')[0].checked; |
1570 | - var tipo = gerado ? 'G' : 'E'; | 1570 | + //var tipo = gerado ? 'G' : 'E'; |
1571 | + //20160908 - Essencial e Complementar SEMPRE EXTERNO | ||
1572 | + var tipo = 'E'; | ||
1571 | return 'palavras_pesquisa='+document.getElementById('txtSerie').value + '&tipoDoc=' + tipo; | 1573 | return 'palavras_pesquisa='+document.getElementById('txtSerie').value + '&tipoDoc=' + tipo; |
1572 | }; | 1574 | }; |
1573 | 1575 | ||
@@ -1615,7 +1617,9 @@ function carregarComponenteTipoDocumentoEssencial(){ | @@ -1615,7 +1617,9 @@ function carregarComponenteTipoDocumentoEssencial(){ | ||
1615 | 1617 | ||
1616 | objAutoCompletarTipoDocumentoEssencial.prepararExecucao = function(){ | 1618 | objAutoCompletarTipoDocumentoEssencial.prepararExecucao = function(){ |
1617 | var gerado = document.getElementsByName('rdDocPrincipal[]')[0].checked; | 1619 | var gerado = document.getElementsByName('rdDocPrincipal[]')[0].checked; |
1618 | - var tipo = gerado ? 'G' : 'E'; | 1620 | + //var tipo = gerado ? 'G' : 'E'; |
1621 | + //20160908 - Essencial e Complementar SEMPRE EXTERNO | ||
1622 | + var tipo = 'E'; | ||
1619 | return 'palavras_pesquisa='+document.getElementById('txtSerieEssencial').value + '&tipoDoc=' + tipo; | 1623 | return 'palavras_pesquisa='+document.getElementById('txtSerieEssencial').value + '&tipoDoc=' + tipo; |
1620 | }; | 1624 | }; |
1621 | 1625 |