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 | 280 | <? if( $externo == 'S') { ?> |
281 | 281 | |
282 | 282 | <table id="tbDocumentoPrincipal" class="infraTable" width="95%" > |
283 | - | |
284 | - <!-- | |
285 | - <caption class="infraCaption">Lista de Documentos principais</caption> | |
286 | - --> | |
287 | 283 | |
288 | 284 | <tr> |
289 | 285 | <th class="infraTh" style="width:30%;"> Nome do arquivo </th> |
... | ... | @@ -475,15 +471,10 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
475 | 471 | <div style="clear: both;"> </div> |
476 | 472 | |
477 | 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 | 475 | <tr> |
483 | - <th style="display:none;">ID</th> | |
484 | 476 | <th class="infraTh" style="width:30%;">Nome</th> |
485 | 477 | <th class="infraTh" style="width: 70px;" align="center">Data</th> |
486 | - <th style="display:none;">Bytes</th> | |
487 | 478 | <th class="infraTh" align="center">Tamanho</th> |
488 | 479 | <th class="infraTh" align="center" style="width:30%;">Documento</th> |
489 | 480 | <th class="infraTh" style="width: 120px;" align="center">Nível de acesso</th> |
... | ... | @@ -663,16 +654,10 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
663 | 654 | <div style="clear: both;"> </div> |
664 | 655 | |
665 | 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 | 658 | <tr> |
672 | - <th style="display:none;">ID</th> | |
673 | 659 | <th class="infraTh" style="width:30%;">Nome</th> |
674 | 660 | <th class="infraTh" style="width: 70px;" align="center">Data</th> |
675 | - <th style="display:none;">Bytes</th> | |
676 | 661 | <th class="infraTh" align="center">Tamanho</th> |
677 | 662 | <th class="infraTh" align="center" style="width:30%;">Documento</th> |
678 | 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 | 959 | |
960 | 960 | //concatenacao de "Tipo" e "Complemento" |
961 | 961 | var cbTpoEssencial = document.getElementById('tipoDocumentoEssencial'); |
962 | + | |
962 | 963 | var strComplemento = document.getElementById('complementoEssencial').value; |
963 | 964 | var documento = getStrTipoDocumento( cbTpoEssencial.value, 'Essencial' ) + ' - ' + strComplemento; |
964 | 965 | |
... | ... | @@ -976,8 +977,9 @@ function carregarCamposDocEssencialUpload(){ |
976 | 977 | |
977 | 978 | //TipoConferenciaPrincipal / TipoConferenciaEssencial |
978 | 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 | 983 | //objTabelaDocEssencial.adicionar([ nomeUpload , nomeUpload, dataHora , '4', '5', '6', '7']); |
982 | 984 | //objTabelaDocEssencial.adicionar([ nomeUpload , dataHora , tamanhoFormatado , documento , nivelAcesso , '']); |
983 | 985 | //objTabelaDocEssencial.adicionar([ '-' , nomeUpload , dataHora , dataHora , tamanhoFormatado, documento, 'nivel de acesso', 'acoes' ]); |
... | ... | @@ -1070,7 +1072,7 @@ function carregarCamposDocComplementarUpload(){ |
1070 | 1072 | var formatoDocumento = $('input[name="formatoDocumentoComplementar"]:checked').val(); |
1071 | 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 | 1076 | //objTabelaDocComplementar.adicionar([ '-' , nomeUpload , dataHora , dataHora , tamanhoFormatado, documento, 'nivel de acesso', 'acoes' ]); |
1075 | 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 | 290 | print_r( $objAnexoDTO ); die(); */ |
291 | 291 | |
292 | 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 | 294 | }else{ |
295 | 295 | |
296 | 296 | $objAnexoDTO->setStrNome(trim($objAnexoDTO->getStrNome())); | ... | ... |
sei/institucional/peticionamento/rn/DocumentoPeticionamentoRN.php
... | ... | @@ -702,7 +702,7 @@ class DocumentoPeticionamentoRN extends InfraRN { |
702 | 702 | private function validarNumIdSerieRN0009(DocumentoDTO $objDocumentoDTO, InfraException $objInfraException){ |
703 | 703 | |
704 | 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 | 706 | }else{ |
707 | 707 | |
708 | 708 | $objSerieDTO = new SerieDTO(); |
... | ... | @@ -722,6 +722,10 @@ class DocumentoPeticionamentoRN extends InfraRN { |
722 | 722 | if ($objDocumentoDTO->getStrStaProtocoloProtocolo()==ProtocoloRN::$TP_DOCUMENTO_GERADO && $objSerieDTO->getStrStaAplicabilidade()==SerieRN::$TA_EXTERNO){ |
723 | 723 | $objInfraException->adicionarValidacao('Tipo do documento não aplicável para documentos internos.'); |
724 | 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 | 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 | 171 | |
172 | 172 | $this->montarArrDocumentos( $arrParametros, $objUnidadeDTO, $objProcedimentoDTO, $arrParticipantesParametro, $reciboDTOBasico ); |
173 | 173 | |
174 | - $this->enviarProcedimentoUnidade($objProcedimentoDTO); | |
174 | + //$this->enviarProcedimentoUnidade($objProcedimentoDTO); | |
175 | 175 | |
176 | 176 | $arrParams = array(); |
177 | 177 | $arrParams[0] = $arrParametros; |
... | ... | @@ -189,9 +189,11 @@ class ProcessoPeticionamentoRN extends InfraRN { |
189 | 189 | //$arrProcessoReciboRetorno[0] = $retornoRecibo; |
190 | 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 | 198 | return $arrProcessoReciboRetorno; |
197 | 199 | |
... | ... | @@ -283,12 +285,16 @@ class ProcessoPeticionamentoRN extends InfraRN { |
283 | 285 | $idNivelAcesso = null; |
284 | 286 | |
285 | 287 | if( $arrLinhasAnexos[ $contador ][4] == "Público" ){ |
288 | + | |
286 | 289 | $idNivelAcesso = ProtocoloRN::$NA_PUBLICO; |
290 | + $idHipoteseLegal = null; | |
291 | + | |
287 | 292 | } else if( $arrLinhasAnexos[ $contador ][4] == "Restrito" ){ |
293 | + | |
288 | 294 | $idNivelAcesso = ProtocoloRN::$NA_RESTRITO; |
295 | + $idHipoteseLegal = $arrLinhasAnexos[ $contador ][5]; | |
289 | 296 | } |
290 | - | |
291 | - $idHipoteseLegal = $arrLinhasAnexos[ $contador ][5]; | |
297 | + | |
292 | 298 | $idGrauSigilo = null; |
293 | 299 | |
294 | 300 | //criando registro em protocolo |
... | ... | @@ -299,9 +305,18 @@ class ProcessoPeticionamentoRN extends InfraRN { |
299 | 305 | $objProtocoloDTO = new ProtocoloDTO(); |
300 | 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 | 320 | $objDocumentoDTO->setDblIdDocumentoEdoc( null ); |
306 | 321 | $objDocumentoDTO->setDblIdDocumentoEdocBase( null ); |
307 | 322 | $objDocumentoDTO->setNumIdUnidadeResponsavel( SessaoSEI::getInstance()->getNumIdUnidadeAtual() ); |
... | ... | @@ -310,8 +325,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
310 | 325 | $objDocumentoDTO->setStrSinFormulario('N'); |
311 | 326 | $objDocumentoDTO->setStrSinBloqueado('N'); |
312 | 327 | |
313 | - $objDocumentoDTO->setStrStaEditor( null ); | |
314 | - | |
328 | + $objDocumentoDTO->setStrStaEditor( null ); | |
315 | 329 | $objDocumentoDTO->setNumVersaoLock(0); |
316 | 330 | |
317 | 331 | $arrObjUnidadeDTOReabertura = array(); |
... | ... | @@ -321,7 +335,15 @@ class ProcessoPeticionamentoRN extends InfraRN { |
321 | 335 | $objDocumentoDTO->setArrObjUnidadeDTO($arrObjUnidadeDTOReabertura); |
322 | 336 | |
323 | 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 | 347 | $objProtocoloDTO->setStrStaGrauSigilo( $idGrauSigilo ); |
326 | 348 | |
327 | 349 | $objProtocoloDTO->setStrDescricao(''); |
... | ... | @@ -359,9 +381,13 @@ class ProcessoPeticionamentoRN extends InfraRN { |
359 | 381 | $objDocumentoDTO->setObjProtocoloDTO($objProtocoloDTO); |
360 | 382 | |
361 | 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 | 392 | //criando registro em anexo |
367 | 393 | //============================= |
... | ... | @@ -376,6 +402,9 @@ class ProcessoPeticionamentoRN extends InfraRN { |
376 | 402 | $itemAnexo->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); |
377 | 403 | $itemAnexo->setStrSinAtivo('S'); |
378 | 404 | $itemAnexo = $anexoRN->cadastrarRN0172( $itemAnexo ); |
405 | + | |
406 | + $this->assinarETravarDocumento( $objUnidadeDTO, $arrParametros, $objDocumentoDTO, $objProcedimentoDTO ); | |
407 | + | |
379 | 408 | $arrAnexoPrincipalVinculacaoProcesso[] = $itemAnexo; |
380 | 409 | $contador = $contador+1; |
381 | 410 | |
... | ... | @@ -409,7 +438,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
409 | 438 | //================================ |
410 | 439 | //PROTOCOLO / DOCUMENTO DO ANEXO |
411 | 440 | //================================= |
412 | - | |
441 | + | |
413 | 442 | $idSerieAnexo = $arrLinhasAnexos[ $contador ][9]; |
414 | 443 | $idTipoConferencia = $arrLinhasAnexos[ $contador ][7]; |
415 | 444 | |
... | ... | @@ -417,11 +446,12 @@ class ProcessoPeticionamentoRN extends InfraRN { |
417 | 446 | |
418 | 447 | if( $arrLinhasAnexos[ $contador ][4] == "Público" ){ |
419 | 448 | $idNivelAcesso = ProtocoloRN::$NA_PUBLICO; |
449 | + $idHipoteseLegal = null; | |
420 | 450 | } else if( $arrLinhasAnexos[ $contador ][4] == "Restrito" ){ |
421 | 451 | $idNivelAcesso = ProtocoloRN::$NA_RESTRITO; |
452 | + $idHipoteseLegal = $arrLinhasAnexos[ $contador ][5]; | |
422 | 453 | } |
423 | - | |
424 | - $idHipoteseLegal = $arrLinhasAnexos[ $contador ][5]; | |
454 | + | |
425 | 455 | $idGrauSigilo = null; |
426 | 456 | |
427 | 457 | //criando registro em protocolo |
... | ... | @@ -493,6 +523,10 @@ class ProcessoPeticionamentoRN extends InfraRN { |
493 | 523 | |
494 | 524 | $objDocumentoDTO->setNumIdTextoPadraoInterno(''); |
495 | 525 | $objDocumentoDTO->setStrProtocoloDocumentoTextoBase(''); |
526 | + | |
527 | + $objDocumentoDTO->setNumIdSerie( $idSerieAnexo ); | |
528 | + $objProtocoloDTO->setNumIdSerieDocumento( $idSerieAnexo ); | |
529 | + | |
496 | 530 | $objDocumentoDTO = $objDocumentoRN->receberRN0991($objDocumentoDTO); |
497 | 531 | |
498 | 532 | //================================== |
... | ... | @@ -501,13 +535,16 @@ class ProcessoPeticionamentoRN extends InfraRN { |
501 | 535 | |
502 | 536 | $strTamanho = str_replace("","Kb", $itemAnexo->getNumTamanho() ); |
503 | 537 | $strTamanho = str_replace("","Mb", $strTamanho ); |
504 | - $itemAnexo->setDblIdProtocolo( $objProcedimentoDTO->getDblIdProcedimento() ); | |
538 | + $itemAnexo->setDblIdProtocolo( $objDocumentoDTO->getDblIdDocumento() ); | |
505 | 539 | $itemAnexo->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); |
506 | 540 | $itemAnexo->setNumTamanho( (int)$strTamanho ); |
507 | 541 | $itemAnexo->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); |
508 | 542 | $itemAnexo->setStrSinAtivo('S'); |
509 | 543 | //print_r( $itemAnexo ); die(); |
510 | 544 | $itemAnexo = $anexoRN->cadastrarRN0172( $itemAnexo ); |
545 | + | |
546 | + $this->assinarETravarDocumento( $objUnidadeDTO, $arrParametros, $objDocumentoDTO, $objProcedimentoDTO ); | |
547 | + | |
511 | 548 | $arrAnexoEssencialVinculacaoProcesso[] = $itemAnexo; |
512 | 549 | $contador = $contador+1; |
513 | 550 | |
... | ... | @@ -539,7 +576,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
539 | 576 | //================================ |
540 | 577 | //PROTOCOLO / DOCUMENTO DO ANEXO |
541 | 578 | //================================= |
542 | - | |
579 | + | |
543 | 580 | $idSerieAnexo = $arrLinhasAnexos[ $contador ][9]; |
544 | 581 | $idTipoConferencia = $arrLinhasAnexos[ $contador ][7]; |
545 | 582 | |
... | ... | @@ -547,11 +584,12 @@ class ProcessoPeticionamentoRN extends InfraRN { |
547 | 584 | |
548 | 585 | if( $arrLinhasAnexos[ $contador ][4] == "Público" ){ |
549 | 586 | $idNivelAcesso = ProtocoloRN::$NA_PUBLICO; |
587 | + $idHipoteseLegal = null; | |
550 | 588 | } else if( $arrLinhasAnexos[ $contador ][4] == "Restrito" ){ |
551 | 589 | $idNivelAcesso = ProtocoloRN::$NA_RESTRITO; |
590 | + $idHipoteseLegal = $arrLinhasAnexos[ $contador ][5]; | |
552 | 591 | } |
553 | - | |
554 | - $idHipoteseLegal = $arrLinhasAnexos[ $contador ][5]; | |
592 | + | |
555 | 593 | $idGrauSigilo = null; |
556 | 594 | |
557 | 595 | //criando registro em protocolo |
... | ... | @@ -561,10 +599,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
561 | 599 | |
562 | 600 | $objProtocoloDTO = new ProtocoloDTO(); |
563 | 601 | $objProtocoloDTO->setDblIdProtocolo(null); |
564 | - | |
565 | - $objDocumentoDTO->setNumIdSerie( $idSerieAnexo ); | |
566 | - $objProtocoloDTO->setNumIdSerieDocumento( $idSerieAnexo ); | |
567 | - | |
602 | + | |
568 | 603 | $objDocumentoDTO->setDblIdDocumentoEdoc( null ); |
569 | 604 | $objDocumentoDTO->setDblIdDocumentoEdocBase( null ); |
570 | 605 | $objDocumentoDTO->setNumIdUnidadeResponsavel( SessaoSEI::getInstance()->getNumIdUnidadeAtual() ); |
... | ... | @@ -623,6 +658,10 @@ class ProcessoPeticionamentoRN extends InfraRN { |
623 | 658 | |
624 | 659 | $objDocumentoDTO->setNumIdTextoPadraoInterno(''); |
625 | 660 | $objDocumentoDTO->setStrProtocoloDocumentoTextoBase(''); |
661 | + | |
662 | + $objDocumentoDTO->setNumIdSerie( $idSerieAnexo ); | |
663 | + $objProtocoloDTO->setNumIdSerieDocumento( $idSerieAnexo ); | |
664 | + | |
626 | 665 | $objDocumentoDTO = $objDocumentoRN->receberRN0991($objDocumentoDTO); |
627 | 666 | |
628 | 667 | //======================== |
... | ... | @@ -637,6 +676,9 @@ class ProcessoPeticionamentoRN extends InfraRN { |
637 | 676 | $itemAnexoComplementar->setStrSinAtivo('S'); |
638 | 677 | $itemAnexoComplementar = $anexoRN->cadastrarRN0172( $itemAnexoComplementar ); |
639 | 678 | $arrAnexoComplementarVinculacaoProcesso[] = $itemAnexoComplementar; |
679 | + | |
680 | + $this->assinarETravarDocumento( $objUnidadeDTO, $arrParametros, $objDocumentoDTO, $objProcedimentoDTO ); | |
681 | + | |
640 | 682 | $contador = $contador+1; |
641 | 683 | } |
642 | 684 | |
... | ... | @@ -1210,48 +1252,24 @@ class ProcessoPeticionamentoRN extends InfraRN { |
1210 | 1252 | public function processarStringAnexos($strDelimitadaAnexos, $idUnidade, $strSiglaUsuario, $bolDocumentoPrincipal, $idProtocolo){ |
1211 | 1253 | |
1212 | 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 | 1273 | return $arrObjAnexoDTO; |
1256 | 1274 | } |
1257 | 1275 | } | ... | ... |
sei/institucional/peticionamento/serie_peticionamento_lista.php
... | ... | @@ -24,8 +24,8 @@ try { |
24 | 24 | SessaoSEI::getInstance()->validarPermissao($_GET['acao']); |
25 | 25 | |
26 | 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 | 29 | }else{ |
30 | 30 | PaginaSEI::getInstance()->salvarCamposPost(array('selGrupoSerie')); |
31 | 31 | } |
... | ... | @@ -357,8 +357,8 @@ PaginaSEI::getInstance()->abrirStyle(); |
357 | 357 | #lblGrupoSerie {position:absolute;left:0%;top:0%;width:20%;} |
358 | 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 | 363 | #lblModeloPesquisa {position:absolute;left:50%;top:0%;width:24%;} |
364 | 364 | #selModeloPesquisa {position:absolute;left:50%;top:40%;width:24%;} |
... | ... | @@ -460,16 +460,16 @@ PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
460 | 460 | PaginaSEI::getInstance()->montarBarraComandosSuperior($arrComandos); |
461 | 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 | 465 | <?=$strItensSelGrupoSerie?> |
466 | 466 | </select> |
467 | 467 | |
468 | 468 | <label id="lblNomeSeriePesquisa" for="txtNomeSeriePesquisa" accesskey="" class="infraLabelOpcional">Nome:</label> |
469 | 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 | 473 | <?=$strItensSelModelo?> |
474 | 474 | </select> |
475 | 475 | ... | ... |
sei/institucional/peticionamento/tipo_processo_peticionamento_cadastro.php
... | ... | @@ -24,11 +24,11 @@ try { |
24 | 24 | $strLinkAjaxNivelAcesso = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=nivel_acesso_auto_completar'); |
25 | 25 | |
26 | 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 | 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 | 33 | //Tipo Processo |
34 | 34 | $strLinkTipoProcessoSelecao = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_procedimento_selecionar&tipo_selecao=1&id_object=objLupaTipoProcesso'); |
... | ... | @@ -1567,7 +1567,9 @@ function carregarComponenteTipoDocumento(){ |
1567 | 1567 | |
1568 | 1568 | objAutoCompletarTipoDocumento.prepararExecucao = function(){ |
1569 | 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 | 1573 | return 'palavras_pesquisa='+document.getElementById('txtSerie').value + '&tipoDoc=' + tipo; |
1572 | 1574 | }; |
1573 | 1575 | |
... | ... | @@ -1615,7 +1617,9 @@ function carregarComponenteTipoDocumentoEssencial(){ |
1615 | 1617 | |
1616 | 1618 | objAutoCompletarTipoDocumentoEssencial.prepararExecucao = function(){ |
1617 | 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 | 1623 | return 'palavras_pesquisa='+document.getElementById('txtSerieEssencial').value + '&tipoDoc=' + tipo; |
1620 | 1624 | }; |
1621 | 1625 | ... | ... |