Commit 4a7caf070a965d43fdb9a4c66993a54ba226530e
1 parent
47a42d10
Exists in
master
and in
3 other branches
Correção na exibição da chave de acesso restrito quando existe um processo restr…
…ito e outro processo público anexos. Alterado a linha 438 de $strHipoteseLegalAnexo .= ''; para $strHipoteseLegalAnexo = '' Incluído a linha 439 $strProtocoloRestrito = '';
Showing
1 changed file
with
28 additions
and
28 deletions
Show diff stats
sei/institucional/pesquisa/processo_exibir.php
1 | <? | 1 | <? |
2 | /** | 2 | /** |
3 | - * CONSELHO ADMINISTRATIVO DE DEFESA ECONÔMICA | 3 | + * CONSELHO ADMINISTRATIVO DE DEFESA ECONÔMICA |
4 | * | 4 | * |
5 | * 29/09/2014 - criado por alex braga | 5 | * 29/09/2014 - criado por alex braga |
6 | * | 6 | * |
7 | -* Versão do Gerador de Código: | 7 | +* Versão do Gerador de Código: |
8 | * | 8 | * |
9 | -* Versão no CVS: | 9 | +* Versão no CVS: |
10 | */ | 10 | */ |
11 | 11 | ||
12 | try { | 12 | try { |
@@ -28,7 +28,7 @@ try { | @@ -28,7 +28,7 @@ try { | ||
28 | 28 | ||
29 | } | 29 | } |
30 | 30 | ||
31 | - //carrega configurações pesquisa | 31 | + //carrega configurações pesquisa |
32 | $bolListaDocumentoProcessoPublico = ConfiguracaoPesquisa::getInstance()->getValor('Pesquisa','ListaDocumentoProcessoPublico'); | 32 | $bolListaDocumentoProcessoPublico = ConfiguracaoPesquisa::getInstance()->getValor('Pesquisa','ListaDocumentoProcessoPublico'); |
33 | $bolListaAndamentoProcessoPublico = ConfiguracaoPesquisa::getInstance()->getValor('Pesquisa','ListaAndamentoProcessoPublico'); | 33 | $bolListaAndamentoProcessoPublico = ConfiguracaoPesquisa::getInstance()->getValor('Pesquisa','ListaAndamentoProcessoPublico'); |
34 | $bolCaptchaGerarPdf = ConfiguracaoPesquisa::getInstance()->getValor('Pesquisa','CaptchaPdf'); | 34 | $bolCaptchaGerarPdf = ConfiguracaoPesquisa::getInstance()->getValor('Pesquisa','CaptchaPdf'); |
@@ -69,11 +69,11 @@ try { | @@ -69,11 +69,11 @@ try { | ||
69 | // $objAcessoExternoDTO = $objAcessoExternoRN->consultar($objAcessoExternoDTO); | 69 | // $objAcessoExternoDTO = $objAcessoExternoRN->consultar($objAcessoExternoDTO); |
70 | 70 | ||
71 | // if ($objAcessoExternoDTO==null){ | 71 | // if ($objAcessoExternoDTO==null){ |
72 | -// SessaoSEIExterna::getInstance()->sair(null, 'Registro de acesso externo não encontrado.'); | 72 | +// SessaoSEIExterna::getInstance()->sair(null, 'Registro de acesso externo não encontrado.'); |
73 | // } | 73 | // } |
74 | 74 | ||
75 | // if ($objAcessoExternoDTO->getStrSinProcesso()=='N'){ | 75 | // if ($objAcessoExternoDTO->getStrSinProcesso()=='N'){ |
76 | -// SessaoSEIExterna::getInstance()->sair(null, 'Usuário externo sem acesso ao processo solicitado.'); | 76 | +// SessaoSEIExterna::getInstance()->sair(null, 'Usuário externo sem acesso ao processo solicitado.'); |
77 | // } | 77 | // } |
78 | 78 | ||
79 | // //Carregar id do protocolo | 79 | // //Carregar id do protocolo |
@@ -93,7 +93,7 @@ try { | @@ -93,7 +93,7 @@ try { | ||
93 | 93 | ||
94 | // $objRelProtocoloProtocoloRN = new RelProtocoloProtocoloRN(); | 94 | // $objRelProtocoloProtocoloRN = new RelProtocoloProtocoloRN(); |
95 | // if ($objRelProtocoloProtocoloRN->contarRN0843($objRelProtocoloProtocoloDTO)==0){ | 95 | // if ($objRelProtocoloProtocoloRN->contarRN0843($objRelProtocoloProtocoloDTO)==0){ |
96 | -// SessaoSEIExterna::getInstance()->sair(null, 'Processo solicitado não está anexado ao processo original.'); | 96 | +// SessaoSEIExterna::getInstance()->sair(null, 'Processo solicitado não está anexado ao processo original.'); |
97 | // } | 97 | // } |
98 | 98 | ||
99 | // $dblIdProcedimento = $_GET['id_procedimento_anexado']; | 99 | // $dblIdProcedimento = $_GET['id_procedimento_anexado']; |
@@ -104,7 +104,7 @@ try { | @@ -104,7 +104,7 @@ try { | ||
104 | 104 | ||
105 | $dblIdProcedimento = $_GET['id_procedimento']; | 105 | $dblIdProcedimento = $_GET['id_procedimento']; |
106 | 106 | ||
107 | - //Carregar dados do cabeçalho | 107 | + //Carregar dados do cabeçalho |
108 | $objProcedimentoDTO = new ProcedimentoDTO(); | 108 | $objProcedimentoDTO = new ProcedimentoDTO(); |
109 | $objProcedimentoDTO->retStrNomeTipoProcedimento(); | 109 | $objProcedimentoDTO->retStrNomeTipoProcedimento(); |
110 | $objProcedimentoDTO->retStrProtocoloProcedimentoFormatado(); | 110 | $objProcedimentoDTO->retStrProtocoloProcedimentoFormatado(); |
@@ -123,8 +123,8 @@ try { | @@ -123,8 +123,8 @@ try { | ||
123 | $arr = $objProcedimentoRN->listarCompleto($objProcedimentoDTO); | 123 | $arr = $objProcedimentoRN->listarCompleto($objProcedimentoDTO); |
124 | 124 | ||
125 | if (count($arr)==0){ | 125 | if (count($arr)==0){ |
126 | - //SessaoSEIExterna::getInstance()->sair(null, 'Processo não encontrado.'); | ||
127 | - die('Processo não encontrado.'); | 126 | + //SessaoSEIExterna::getInstance()->sair(null, 'Processo não encontrado.'); |
127 | + die('Processo não encontrado.'); | ||
128 | } | 128 | } |
129 | 129 | ||
130 | $objProcedimentoDTO = $arr[0]; | 130 | $objProcedimentoDTO = $arr[0]; |
@@ -132,7 +132,7 @@ try { | @@ -132,7 +132,7 @@ try { | ||
132 | 132 | ||
133 | if(!$bolLinkMetadadosProcessoRestrito){ | 133 | if(!$bolLinkMetadadosProcessoRestrito){ |
134 | if ($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()!= ProtocoloRN::$NA_PUBLICO){ | 134 | if ($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()!= ProtocoloRN::$NA_PUBLICO){ |
135 | - die('Processo não encontrado.'); | 135 | + die('Processo não encontrado.'); |
136 | } | 136 | } |
137 | } | 137 | } |
138 | 138 | ||
@@ -140,7 +140,7 @@ try { | @@ -140,7 +140,7 @@ try { | ||
140 | 140 | ||
141 | if($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo() == ProtocoloRN::$NA_SIGILOSO ){ | 141 | if($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo() == ProtocoloRN::$NA_SIGILOSO ){ |
142 | 142 | ||
143 | - die('Processo não encontrado.'); | 143 | + die('Processo não encontrado.'); |
144 | 144 | ||
145 | } | 145 | } |
146 | } | 146 | } |
@@ -192,8 +192,8 @@ try { | @@ -192,8 +192,8 @@ try { | ||
192 | 192 | ||
193 | 193 | ||
194 | $strResultadoCabecalho = ''; | 194 | $strResultadoCabecalho = ''; |
195 | - $strResultadoCabecalho .= '<table id="tblCabecalho" width="99.3%" class="infraTable" summary="Cabeçalho de Processo" >'."\n"; | ||
196 | - $strResultadoCabecalho .= '<tr><th class="infraTh" colspan="2">Autuação</th></tr>'."\n"; | 195 | + $strResultadoCabecalho .= '<table id="tblCabecalho" width="99.3%" class="infraTable" summary="Cabeçalho de Processo" >'."\n"; |
196 | + $strResultadoCabecalho .= '<tr><th class="infraTh" colspan="2">Autuação</th></tr>'."\n"; | ||
197 | $strResultadoCabecalho .= '<tr class="infraTrClara"><td width="20%">Processo:</td><td>'.$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado().$strHipoteseLegal.'</td></tr>'."\n"; | 197 | $strResultadoCabecalho .= '<tr class="infraTrClara"><td width="20%">Processo:</td><td>'.$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado().$strHipoteseLegal.'</td></tr>'."\n"; |
198 | $strResultadoCabecalho .= '<tr class="infraTrClara"><td width="20%">Tipo:</td><td>'.PaginaSEIExterna::getInstance()->formatarXHTML($objProcedimentoDTO->getStrNomeTipoProcedimento()).'</td></tr>'."\n"; | 198 | $strResultadoCabecalho .= '<tr class="infraTrClara"><td width="20%">Tipo:</td><td>'.PaginaSEIExterna::getInstance()->formatarXHTML($objProcedimentoDTO->getStrNomeTipoProcedimento()).'</td></tr>'."\n"; |
199 | $strResultadoCabecalho .= '<tr class="infraTrClara"><td width="20%">Data de Registro:</td><td>'.$objProcedimentoDTO->getDtaGeracaoProtocolo().'</td></tr>'."\n"; | 199 | $strResultadoCabecalho .= '<tr class="infraTrClara"><td width="20%">Data de Registro:</td><td>'.$objProcedimentoDTO->getDtaGeracaoProtocolo().'</td></tr>'."\n"; |
@@ -214,7 +214,7 @@ try { | @@ -214,7 +214,7 @@ try { | ||
214 | $arrObjRelProtocoloProtocoloDTO = $objProcedimentoDTO->getArrObjRelProtocoloProtocoloDTO(); | 214 | $arrObjRelProtocoloProtocoloDTO = $objProcedimentoDTO->getArrObjRelProtocoloProtocoloDTO(); |
215 | } | 215 | } |
216 | 216 | ||
217 | - // Objeto Fake para paginação. | 217 | + // Objeto Fake para paginação. |
218 | $objProtocoloPesquisaPublicaPaginacaoDTO = new ProtocoloPesquisaPublicaDTO(); | 218 | $objProtocoloPesquisaPublicaPaginacaoDTO = new ProtocoloPesquisaPublicaDTO(); |
219 | $objProtocoloPesquisaPublicaPaginacaoDTO->retTodos(true); | 219 | $objProtocoloPesquisaPublicaPaginacaoDTO->retTodos(true); |
220 | PaginaSEIExterna::getInstance()->prepararOrdenacao($objProtocoloPesquisaPublicaPaginacaoDTO, 'Registro', InfraDTO::$TIPO_ORDENACAO_ASC); | 220 | PaginaSEIExterna::getInstance()->prepararOrdenacao($objProtocoloPesquisaPublicaPaginacaoDTO, 'Registro', InfraDTO::$TIPO_ORDENACAO_ASC); |
@@ -363,7 +363,7 @@ try { | @@ -363,7 +363,7 @@ try { | ||
363 | 363 | ||
364 | $strResultado .= '<tr class="infraTrClara">'; | 364 | $strResultado .= '<tr class="infraTrClara">'; |
365 | 365 | ||
366 | - //Cria checkbox para gerar PDF, verifica se o Processo é público e o Acesso Local do Protocolo é Público | 366 | + //Cria checkbox para gerar PDF, verifica se o Processo é público e o Acesso Local do Protocolo é Público |
367 | if($objDocumentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO && $objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO){ | 367 | if($objDocumentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO && $objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO){ |
368 | if($objDocumentoRN->verificarSelecaoGeracaoPdf($objDocumentoDTO)){ | 368 | if($objDocumentoRN->verificarSelecaoGeracaoPdf($objDocumentoDTO)){ |
369 | $strResultado .= '<td align="center">'.PaginaSEIExterna::getInstance()->getTrCheck($numDocumentosPdf++, $objDocumentoDTO->getDblIdDocumento(), $objDocumentoDTO->getStrNomeSerie()).'</td>'; | 369 | $strResultado .= '<td align="center">'.PaginaSEIExterna::getInstance()->getTrCheck($numDocumentosPdf++, $objDocumentoDTO->getDblIdDocumento(), $objDocumentoDTO->getStrNomeSerie()).'</td>'; |
@@ -375,7 +375,7 @@ try { | @@ -375,7 +375,7 @@ try { | ||
375 | } | 375 | } |
376 | 376 | ||
377 | 377 | ||
378 | - //Exibe link de documentos com nivel de acesso local Público de processo público | 378 | + //Exibe link de documentos com nivel de acesso local Público de processo público |
379 | if($objDocumentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO && $objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO ){ | 379 | if($objDocumentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO && $objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO ){ |
380 | $strResultado .= '<td align="center" style="padding-right:22px"><a href="javascript:void(0);" onclick="window.open(\''.$strLinkDocumento.'\');" alt="'.PaginaSEIExterna::getInstance()->formatarXHTML($objDocumentoDTO->getStrNomeSerie()).'" title="'.PaginaSEIExterna::getInstance()->formatarXHTML($objDocumentoDTO->getStrNomeSerie()).'" class="ancoraPadraoAzul">'.$objDocumentoDTO->getStrProtocoloDocumentoFormatado().'</a></td>'; | 380 | $strResultado .= '<td align="center" style="padding-right:22px"><a href="javascript:void(0);" onclick="window.open(\''.$strLinkDocumento.'\');" alt="'.PaginaSEIExterna::getInstance()->formatarXHTML($objDocumentoDTO->getStrNomeSerie()).'" title="'.PaginaSEIExterna::getInstance()->formatarXHTML($objDocumentoDTO->getStrNomeSerie()).'" class="ancoraPadraoAzul">'.$objDocumentoDTO->getStrProtocoloDocumentoFormatado().'</a></td>'; |
381 | }else{ | 381 | }else{ |
@@ -434,11 +434,11 @@ try { | @@ -434,11 +434,11 @@ try { | ||
434 | 434 | ||
435 | $strResultado .= '<tr class="infraTrClara">'; | 435 | $strResultado .= '<tr class="infraTrClara">'; |
436 | $strResultado .= '<td> </td>'; | 436 | $strResultado .= '<td> </td>'; |
437 | - $strHipoteseLegalAnexo .= ''; | ||
438 | - | 437 | + $strHipoteseLegalAnexo = ''; |
438 | + $strProtocoloRestrito = ''; | ||
439 | $objProcedimentoDTOAnexado = $objProtocoloPesquisaPublicaDTO->getObjProcedimentoDTO(); | 439 | $objProcedimentoDTOAnexado = $objProtocoloPesquisaPublicaDTO->getObjProcedimentoDTO(); |
440 | 440 | ||
441 | - // cria indicação de acesso restrito com hipotese legal. | 441 | + // cria indicação de acesso restrito com hipotese legal. |
442 | if($objProcedimentoDTOAnexado->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_RESTRITO){ | 442 | if($objProcedimentoDTOAnexado->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_RESTRITO){ |
443 | 443 | ||
444 | $strHipoteseLegalAnexo = ''; | 444 | $strHipoteseLegalAnexo = ''; |
@@ -512,7 +512,7 @@ try { | @@ -512,7 +512,7 @@ try { | ||
512 | 512 | ||
513 | } | 513 | } |
514 | 514 | ||
515 | - //Carregar histórico | 515 | + //Carregar histórico |
516 | 516 | ||
517 | $numRegistrosAtividades = 0; | 517 | $numRegistrosAtividades = 0; |
518 | 518 | ||
@@ -544,12 +544,12 @@ try { | @@ -544,12 +544,12 @@ try { | ||
544 | 544 | ||
545 | $strResultadoAndamentos = ''; | 545 | $strResultadoAndamentos = ''; |
546 | 546 | ||
547 | - $strResultadoAndamentos .= '<table id="tblHistorico" width="99.3%" class="infraTable" summary="Histórico de Andamentos">'."\n"; | 547 | + $strResultadoAndamentos .= '<table id="tblHistorico" width="99.3%" class="infraTable" summary="Histórico de Andamentos">'."\n"; |
548 | $strResultadoAndamentos .= '<caption class="infraCaption">'.PaginaSEIExterna::getInstance()->gerarCaptionTabela('Andamentos',$numRegistrosAtividades).'</caption>'; | 548 | $strResultadoAndamentos .= '<caption class="infraCaption">'.PaginaSEIExterna::getInstance()->gerarCaptionTabela('Andamentos',$numRegistrosAtividades).'</caption>'; |
549 | $strResultadoAndamentos .= '<tr>'; | 549 | $strResultadoAndamentos .= '<tr>'; |
550 | $strResultadoAndamentos .= '<th class="infraTh" width="20%">Data/Hora</th>'; | 550 | $strResultadoAndamentos .= '<th class="infraTh" width="20%">Data/Hora</th>'; |
551 | $strResultadoAndamentos .= '<th class="infraTh" width="10%">Unidade</th>'; | 551 | $strResultadoAndamentos .= '<th class="infraTh" width="10%">Unidade</th>'; |
552 | - $strResultadoAndamentos .= '<th class="infraTh">Descrição</th>'; | 552 | + $strResultadoAndamentos .= '<th class="infraTh">Descrição</th>'; |
553 | $strResultadoAndamentos .= '</tr>'."\n"; | 553 | $strResultadoAndamentos .= '</tr>'."\n"; |
554 | 554 | ||
555 | $strQuebraLinha = '<span style="line-height:.5em"><br /></span>'; | 555 | $strQuebraLinha = '<span style="line-height:.5em"><br /></span>'; |
@@ -597,7 +597,7 @@ try { | @@ -597,7 +597,7 @@ try { | ||
597 | if ($_POST['hdnFlagGerar']=='1'){ | 597 | if ($_POST['hdnFlagGerar']=='1'){ |
598 | 598 | ||
599 | if(md5($_POST['txtCaptcha']) != $_POST['hdnCaptchaMd5'] && $_GET['hash'] != $_POST['hdnCaptchaMd5'] && $bolCaptchaGerarPdf == true){ | 599 | if(md5($_POST['txtCaptcha']) != $_POST['hdnCaptchaMd5'] && $_GET['hash'] != $_POST['hdnCaptchaMd5'] && $bolCaptchaGerarPdf == true){ |
600 | - PaginaSEIExterna::getInstance()->setStrMensagem('Código de confirmação inválido.'); | 600 | + PaginaSEIExterna::getInstance()->setStrMensagem('Código de confirmação inválido.'); |
601 | 601 | ||
602 | }else { | 602 | }else { |
603 | 603 | ||
@@ -615,7 +615,7 @@ try { | @@ -615,7 +615,7 @@ try { | ||
615 | 615 | ||
616 | foreach ($arrObjDocumentoDTO as $objDocumentoDTO){ | 616 | foreach ($arrObjDocumentoDTO as $objDocumentoDTO){ |
617 | 617 | ||
618 | - //Alterardo para atender o pedido da anatel para gerar pdf de documentos de nivel de acesso local = Público e de Procedimentos Públicos mesmo se o nivel global for restrito | 618 | + //Alterardo para atender o pedido da anatel para gerar pdf de documentos de nivel de acesso local = Público e de Procedimentos Públicos mesmo se o nivel global for restrito |
619 | if($bolListaDocumentoProcessoRestrito){ | 619 | if($bolListaDocumentoProcessoRestrito){ |
620 | if($objDocumentoDTO->getDblIdProcedimento() != $dblIdProcedimento || $objDocumentoDTO->getStrStaNivelAcessoLocalProtocolo() != ProtocoloRN::$NA_PUBLICO || $objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() != ProtocoloRN::$NA_PUBLICO){ | 620 | if($objDocumentoDTO->getDblIdProcedimento() != $dblIdProcedimento || $objDocumentoDTO->getStrStaNivelAcessoLocalProtocolo() != ProtocoloRN::$NA_PUBLICO || $objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() != ProtocoloRN::$NA_PUBLICO){ |
621 | die ("Erro ao Gerar Pdf"); | 621 | die ("Erro ao Gerar Pdf"); |
@@ -836,12 +836,12 @@ if($bolCaptchaGerarPdf){ | @@ -836,12 +836,12 @@ if($bolCaptchaGerarPdf){ | ||
836 | <div id="divInfraModal" class="infraFundoTransparente" style="position: fixed; width: 100%; height: 100%; visibility: visible;"> | 836 | <div id="divInfraModal" class="infraFundoTransparente" style="position: fixed; width: 100%; height: 100%; visibility: visible;"> |
837 | <div id="divCaptcha" class="infraAreaDados" style="height: 220px; width: 230px; background-color:white"> | 837 | <div id="divCaptcha" class="infraAreaDados" style="height: 220px; width: 230px; background-color:white"> |
838 | <div class="modal-header"> | 838 | <div class="modal-header"> |
839 | - <span id="spnClose" class="close" onclick="fecharPdfModal();">×</span> | ||
840 | - <h2 style ="color: white;font-size: 1.2em;font-weight: bold;">Digite o Código da Imagem</h2> | 839 | + <span id="spnClose" class="close" onclick="fecharPdfModal();">×</span> |
840 | + <h2 style ="color: white;font-size: 1.2em;font-weight: bold;">Digite o Código da Imagem</h2> | ||
841 | </div> | 841 | </div> |
842 | <div class="modal-body"> | 842 | <div class="modal-body"> |
843 | <label id="lblCaptcha" accesskey="" class="infraLabelObrigatorio"> | 843 | <label id="lblCaptcha" accesskey="" class="infraLabelObrigatorio"> |
844 | - <img src="/infra_js/infra_gerar_captcha.php?codetorandom='.$strCodigoParaGeracaoCaptcha.'" alt="Não foi possível carregar imagem de confirmação" /> </label> | 844 | + <img src="/infra_js/infra_gerar_captcha.php?codetorandom='.$strCodigoParaGeracaoCaptcha.'" alt="Não foi possÃvel carregar imagem de confirmação" /> </label> |
845 | <input type="text" id="txtCaptcha" name="txtCaptcha" class="infraText" maxlength="4" value="" /> | 845 | <input type="text" id="txtCaptcha" name="txtCaptcha" class="infraText" maxlength="4" value="" /> |
846 | <button id="btnEnviarCaptcha" type="submit" accesskey="G" name="btnEnviarCaptcha" value="Enviar" onclick="gerarPdf();" class="infraButton"><span class="infraTeclaAtalho">E</span>nviar</button> | 846 | <button id="btnEnviarCaptcha" type="submit" accesskey="G" name="btnEnviarCaptcha" value="Enviar" onclick="gerarPdf();" class="infraButton"><span class="infraTeclaAtalho">E</span>nviar</button> |
847 | </div> | 847 | </div> |