Commit 9b06073d0ce851d689c7b02076775417b0ce6757

Authored by Alex Braga
1 parent 5b74e9e8

Correção do erro ao Gerar PDF no navegador Internet Explore 11

Correção Link Externo Inválido quando Usuário Externo está logado na página de Acesso Externo (Contribuição Anatel)
sei/institucional/pesquisa/Leia-me.txt
1   -Roteiro de instalação.
  1 +REQUISITOS PARA INSTALAÇÂO:
  2 + - SEI 2.6.0.A11 instalada (verificar valor da constante de versão do SEI no arquivo sei/SEI.php ou quando para o mouse sobre a logo do SEI depois de efetuado login no sistema).
  3 +
  4 +PROCEDIMENTOS PARA INSTALAÇÂO:
2 5  
3 6 1 - Caso ainda não exista, criar a pasta "institucional" na raiz do SEI (é mandatório a manutenção deste nome de pasta conforme o padrão do SEI para módulos):
4 7  
... ...
sei/institucional/pesquisa/PesquisaIntegracao.php
1 1 <?
2   - class PesquisaIntegracao implements ISeiIntegracao {
  2 + class PesquisaIntegracao extends SeiIntegracao {
3 3  
4 4 public function __construct(){
5 5 }
... ...
sei/institucional/pesquisa/ajuda_exibir_externo.php
... ... @@ -10,7 +10,7 @@
10 10 try {
11 11 require_once dirname(__FILE__).'/../../SEI.php';
12 12  
13   - session_start();
  13 + //session_start();
14 14  
15 15 //////////////////////////////////////////////////////////////////////////////
16 16 InfraDebug::getInstance()->setBolLigado(false);
... ...
sei/institucional/pesquisa/controlador_ajax_externo.php
... ... @@ -32,7 +32,7 @@
32 32 try{
33 33 require_once dirname(__FILE__).'/../../SEI.php';
34 34  
35   - session_start();
  35 + //session_start();
36 36  
37 37 SessaoSEIExterna::getInstance()->validarLink();
38 38  
... ...
sei/institucional/pesquisa/documento_consulta_externa.php
... ... @@ -14,7 +14,7 @@ try {
14 14 require_once ("ConverteURI.php");
15 15  
16 16  
17   - session_start();
  17 + //session_start();
18 18  
19 19 //////////////////////////////////////////////////////////////////////////////
20 20 //InfraDebug::getInstance()->setBolLigado(false);
... ...
sei/institucional/pesquisa/processo_exibe_arquivo.php
... ... @@ -11,7 +11,7 @@
11 11 try {
12 12 require_once dirname(__FILE__).'/../../SEI.php';
13 13  
14   - session_start();
  14 + //session_start();
15 15  
16 16 //////////////////////////////////////////////////////////////////////////////
17 17 InfraDebug::getInstance()->setBolLigado(false);
... ...
sei/institucional/pesquisa/processo_exibir.php
... ... @@ -12,7 +12,7 @@
12 12 try {
13 13 require_once dirname(__FILE__).'/../../SEI.php';
14 14  
15   - session_start();
  15 + //session_start();
16 16  
17 17 //////////////////////////////////////////////////////////////////////////////
18 18 InfraDebug::getInstance()->setBolLigado(false);
... ... @@ -864,6 +864,84 @@ echo $strResultadoAndamentos;
864 864 </form>
865 865 <?
866 866 PaginaSEIExterna::getInstance()->montarAreaDebug();
  867 +
  868 +if($bolGeracaoOK){
  869 + ?>
  870 + <script>
  871 + if (navigator.userAgent.match(/msie/i) || navigator.userAgent.match(/trident/i) ){
  872 +
  873 + window.open('<?=SessaoSEIExterna::getInstance()->assinarLink('processo_exibe_arquivo.php?acao_externa=usuario_externo_exibir_arquivo&acao_origem_externa=protocolo_pesquisar&id_orgao_acesso_externo=0&nome_arquivo='.$objAnexoDTO->getStrNome().'&nome_download=SEI-'.$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado().'.pdf');?>');
  874 + <?
  875 + if($bolCaptchaGerarPdf){
  876 + ?>
  877 +
  878 + $(document).unbind("keyup").keyup(function(e){
  879 + e.preventDefault();
  880 + var code = e.which;
  881 + if(code==13){
  882 + var modal = document.getElementById('divInfraModal');
  883 + if(modal.style.display == "block"){
  884 + fecharPdfModal();
  885 + gerarPdf();
  886 +
  887 + }
  888 + }
  889 + });
  890 +
  891 +
  892 +
  893 + function gerarPdfModal(){
  894 +
  895 + if (document.getElementById('hdnInfraItensSelecionados').value==''){
  896 + alert('Nenhum documento selecionado.');
  897 + return;
  898 + }
  899 + var modal = document.getElementById('divInfraModal');
  900 + modal.style.display = "block";
  901 +
  902 + }
  903 +
  904 + function fecharPdfModal(){
  905 +
  906 + var modal = document.getElementById('divInfraModal');
  907 + modal.style.display = "none";
  908 + }
  909 +
  910 + window.onclick = function(event) {
  911 + var modal = document.getElementById('divInfraModal');
  912 + if (event.target == modal) {
  913 + modal.style.display = "none";
  914 + }
  915 + }
  916 +
  917 + <?
  918 + }
  919 + ?>
  920 +
  921 + function gerarPdf() {
  922 +
  923 + if (document.getElementById('hdnInfraItensSelecionados').value==''){
  924 + alert('Nenhum documento selecionado.');
  925 + return;
  926 + }
  927 +
  928 + <?
  929 + if($bolCaptchaGerarPdf){
  930 + ?>
  931 + fecharPdfModal();
  932 + <?
  933 + }
  934 + ?>
  935 +
  936 + infraExibirAviso(false);
  937 +
  938 + document.getElementById('hdnFlagGerar').value = '1';
  939 + document.getElementById('frmProcessoAcessoExternoConsulta').submit();
  940 + }
  941 + }
  942 + </script>
  943 +<?
  944 +}
867 945 PaginaSEIExterna::getInstance()->fecharBody();
868 946 PaginaSEIExterna::getInstance()->fecharHtml();
869 947 ?>
870 948 \ No newline at end of file
... ...
sei/institucional/pesquisa/processo_pesquisar.php
... ... @@ -33,7 +33,7 @@ try {
33 33 require_once dirname(__FILE__).'/../../SEI.php';
34 34 require_once ("ConverteURI.php");
35 35  
36   - session_start();
  36 + //session_start();
37 37  
38 38 InfraDebug::getInstance()->setBolLigado(false);
39 39 InfraDebug::getInstance()->setBolDebugInfra(false);
... ...
  • 91a46702b2c782cb0e455b06bb1445c5?s=40&d=identicon
    Alex Braga @alexbraga

    Correção da Geração de PDF no Internet Explore Correção Link Externo Inválido quando Usuário Externo está logado na página de Acesso Externo (Contribuição Anatel)

    Choose File ...   File name...
    Cancel