Commit ed9003659fdd9d6d2fe371d883a9a9705f5dd242
1 parent
ec48254b
Exists in
master
and in
1 other branch
Atualização da versão preliminar do módulo.
Showing
12 changed files
with
359 additions
and
119 deletions
Show diff stats
sei/institucional/peticionamento/Leia-me.txt
... | ... | @@ -22,7 +22,7 @@ PROCEDIMENTOS PARA INSTALAÇÂO: |
22 | 22 | 3) Editar o arquivo "sei/ConfiguracaoSEI.php", tomando o cuidado de usar editor que não altere o charset do arquivo, para adicionar a referência ao módulo Peticionamento na chave 'Modulos' abaixo da chave 'SEI': |
23 | 23 | |
24 | 24 | 'SEI' => array( |
25 | - 'URL' => 'http://localhost/sei', | |
25 | + 'URL' => 'http://[Servidor_PHP]sei', | |
26 | 26 | 'Producao' => false, |
27 | 27 | 'RepositorioArquivos' => '/var/sei/arquivos', |
28 | 28 | 'Modulos' => array(), |
... | ... | @@ -36,11 +36,11 @@ PROCEDIMENTOS PARA INSTALAÇÂO: |
36 | 36 | |
37 | 37 | 5) Rodar via browser (não via linha de comando) o script: |
38 | 38 | |
39 | - http://[Servidor PHP]/sei/sei_atualizar_versao_modulo_peticionamento.php | |
39 | + http://[Servidor_PHP]/sei/sei_atualizar_versao_modulo_peticionamento.php | |
40 | 40 | |
41 | 41 | 6) Rodar via browser (não via linha de comando) o script: |
42 | 42 | |
43 | - http://[Servidor PHP]/sip/sip_atualizar_versao_modulo_peticionamento.php | |
43 | + http://[Servidor_PHP]/sip/sip_atualizar_versao_modulo_peticionamento.php | |
44 | 44 | |
45 | 45 | --IMPORTANTE 1: Na execução dos dois scripts acima, ao final deve constar o termo "FIM". Do contrário, o script não foi executado até o final e algum dado não foi inserido/atualizado no banco de dados correspondente, devendo recuperar o backup correspondente e repetir o procedimento. |
46 | 46 | |
... | ... | @@ -50,9 +50,12 @@ PROCEDIMENTOS PARA INSTALAÇÂO: |
50 | 50 | |
51 | 51 | 8) Recomenda-se que, após a instalação/atualização do módulo, os scripts "/sei/sei_atualizar_versao_modulo_peticionamento.php" e "/sip/sip_atualizar_versao_modulo_peticionamento.php" sejam removidos do servidor. |
52 | 52 | |
53 | - 9) Imediatamente após a instalação é necessário realizar as parametrizações do módulo em Administração > Peticionamento Eletrônico, para que o módulo seja utilizado adequadamente pelos Usuários Externos na tela de Acesso Externo do SEI (http://[Servidor PHP]/sei/controlador_externo.php?acao=usuario_externo_logar&id_orgao_acesso_externo=0). | |
53 | + 9) Imediatamente após a instalação é necessário realizar as parametrizações do módulo em Administração > Peticionamento Eletrônico, para que o módulo seja utilizado adequadamente pelos Usuários Externos na tela de Acesso Externo do SEI: http://[Servidor_PHP]/sei/controlador_externo.php?acao=usuario_externo_logar&id_orgao_acesso_externo=0 | |
54 | 54 | |
55 | - --IMPORTANTE: É impreterível ativar no SIP, para o Perfil "Administrador" do SEI, os menus "Contextos/Contatos / Cargos / Novo", "Contextos/Contatos / Cargos / Listar" e "Contextos/Contatos / Cargos / Reativar", pois será necessário cadastrar "Cargos" para que os Usuários Externos possam selecionar o Cargo pertinente no momento da assinatura de cada Peticionamento. | |
55 | + --IMPORTANTE: É impreterível ativar no SIP, para o Perfil "Administrador" do SEI, os menus "Contextos/Contatos / Cargos / Novo", "Contextos/Contatos / Cargos / Listar" e "Contextos/Contatos / Cargos / Reativar", pois será necessário cadastrar "Cargos" para que os Usuários Externos possam selecionar o Cargo pertinente no momento da assinatura de cada Peticionamento. | |
56 | + | |
57 | + 10) Não é aconselhável dar publicidade a registros de indisponibilidades do SEI até que o módulo possua funcionalidades afetas a Intimação Eletrônica, prevista para a versão 2.0. De qualquer forma, segue URL da página pública que lista os cadastrados realizados no menu Administração > Peticionamento Eletrônico > Indisponibilidades do SEI: | |
58 | + http://[Servidor_PHP]/sei/institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_lista.php?acao_externa=indisponibilidade_peticionamento_usuario_externo_listar&id_orgao_acesso_externo=0 | |
56 | 59 | |
57 | 60 | Em caso de erro durante a execução do script verificar (lendo as mensagens de erro e os logs no SEI em Infra > Log e no SIP em Infra > Log) se a causa é algum problema na infra-estrutura local. Neste caso, após a correção, restaurar o backup do banco de dados e executar novamente os scripts indicados nos itens 4 e 5 acima. |
58 | 61 | ... | ... |
sei/institucional/peticionamento/PeticionamentoIntegracao.php
... | ... | @@ -9,7 +9,44 @@ class PeticionamentoIntegracao extends SeiIntegracao { |
9 | 9 | |
10 | 10 | public function __construct(){ |
11 | 11 | } |
12 | + | |
13 | + //EU 7352 - Icone exibido na tela interna do processo (Controle de Processos -> clicar em algum processo da lista) | |
14 | + public function montarIconeProcedimento(SeiIntegracaoDTO $objSeiIntegracaoDTO){ | |
15 | + | |
16 | + $arrSeiNoAcaoDTO = array(); | |
17 | + | |
18 | + $idProcedimento = null; | |
19 | + | |
20 | + if( $objSeiIntegracaoDTO != null && $objSeiIntegracaoDTO->isSetObjProcedimentoDTO() ){ | |
21 | + $idProcedimento = $objSeiIntegracaoDTO->getObjProcedimentoDTO()->getDblIdProcedimento(); | |
22 | + } | |
12 | 23 | |
24 | + /* | |
25 | + $seiAcaoDTO = new SeiNoAcaoDTO(); | |
26 | + $seiAcaoDTO->setStrTipo('"CIENCIAS"'); | |
27 | + $seiAcaoDTO->setStrId('C'); | |
28 | + $seiAcaoDTO->setStrIdPai($idProcedimento); | |
29 | + $seiAcaoDTO->setStrHref('http://www.anatel.gov.br'); | |
30 | + $seiAcaoDTO->setStrTarget('ifrVisualizacao'); | |
31 | + $seiAcaoDTO->setStrTitle('title teste'); | |
32 | + $seiAcaoDTO->setStrIcone('"imagens/sei_ciencia_pequeno.gif"'); | |
33 | + $seiAcaoDTO->setBolHabilitado(true); | |
34 | + $arrSeiNoAcaoDTO[] = $seiAcaoDTO; | |
35 | + */ | |
36 | + | |
37 | + return $arrSeiNoAcaoDTO; | |
38 | + } | |
39 | + | |
40 | + //EU 7352 - Icone exibido na tela "Controle de Processos" | |
41 | + public function montarIconeControleProcessos($arrObjProcedimentoDTO){ | |
42 | + return array("<img src='imagens/retorno_programado.gif' title='teste1' />"); | |
43 | + } | |
44 | + | |
45 | + //EU 7352 - Icone exibido na tela "Acompanhamento Especial" | |
46 | + public function montarIconeAcompanhamentoEspecial($arrObjProcedimentoDTO){ | |
47 | + return array("<img src='imagens/retorno_programado.gif' title='teste2' />"); | |
48 | + } | |
49 | + | |
13 | 50 | public function montarMenuUsuarioExterno(){ |
14 | 51 | |
15 | 52 | $menuExternoRN = new MenuPeticionamentoUsuarioExternoRN(); | ... | ... |
sei/institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_cadastro.php
... | ... | @@ -175,6 +175,7 @@ PaginaSEIExterna::getInstance()->fecharJavaScript(); |
175 | 175 | #fldProrrogacao {height: 10%; width: 86%;} |
176 | 176 | .sizeFieldset {height:auto; width: 86%;} |
177 | 177 | .fieldsetClear {border:none !important;} |
178 | +#divInfraBarraSistemaD { display:none; } | |
178 | 179 | </style> |
179 | 180 | <? |
180 | 181 | PaginaSEIExterna::getInstance()->fecharHead(); |
... | ... | @@ -309,7 +310,16 @@ function inicializar(){ |
309 | 310 | } else{ |
310 | 311 | document.getElementById('btnFechar').focus(); |
311 | 312 | } |
312 | - | |
313 | + | |
314 | + infraMenuSistemaEsquema(false,'Ocultar'); | |
315 | + if(window.location.href.indexOf('/sei')>0){ | |
316 | + if (document.getElementById('divInfraBarraSistemaE').childNodes[1]!=undefined){ | |
317 | + if (document.getElementById('divInfraBarraSistemaE').childNodes[1].tagName=='IMG'){ | |
318 | + document.getElementById('divInfraBarraSistemaE').childNodes[1].src=window.location.href.substring(0, window.location.href.indexOf('/sei')+4)+'/imagens/sei_logo_azul_celeste.jpg'; | |
319 | + } | |
320 | + } | |
321 | + } | |
322 | + | |
313 | 323 | var strHash = document.getElementById('hdnAnexos').value; |
314 | 324 | var arrHash = strHash.split('±'); |
315 | 325 | ... | ... |
sei/institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_lista.php
... | ... | @@ -22,8 +22,6 @@ try { |
22 | 22 | //PaginaSEIExterna::getInstance()->prepararSelecao('indisponibilidade_peticionamento_usuario_externo_selecionar'); |
23 | 23 | //SessaoSEIExterna::getInstance()->validarPermissao($_GET['acao']); |
24 | 24 | |
25 | - PaginaSEIExterna::getInstance()->setTipoPagina( InfraPagina::$TIPO_PAGINA_SEM_MENU ); | |
26 | - | |
27 | 25 | switch($_GET['acao_externa']){ |
28 | 26 | |
29 | 27 | case 'indisponibilidade_peticionamento_usuario_externo_selecionar': |
... | ... | @@ -182,9 +180,6 @@ PaginaSEIExterna::getInstance()->montarJavaScript(); |
182 | 180 | PaginaSEIExterna::getInstance()->abrirJavaScript(); |
183 | 181 | ?> |
184 | 182 | function inicializar(){ |
185 | - | |
186 | - document.getElementById('divInfraBarraSistemaD').style.display='none'; | |
187 | - | |
188 | 183 | if ('<?=$_GET['acao']?>'=='indisponibilidade_peticionamento_usuario_externo_listar'){ |
189 | 184 | infraReceberSelecao(); |
190 | 185 | document.getElementById('btnFecharSelecao').focus(); |
... | ... | @@ -195,13 +190,22 @@ function inicializar(){ |
195 | 190 | |
196 | 191 | var menu = document.getElementById('lnkInfraMenuSistema'); |
197 | 192 | if(menu != null){ |
198 | - menu.onclick=esconderMenu; | |
193 | + menu.onclick=esconderMenu; | |
199 | 194 | } |
200 | - | |
201 | - | |
195 | + | |
196 | + infraMenuSistemaEsquema(false,'Ocultar'); | |
197 | + if(window.location.href.indexOf('/sei')>0){ | |
198 | + if (document.getElementById('divInfraBarraSistemaE').childNodes[1]!=undefined){ | |
199 | + if (document.getElementById('divInfraBarraSistemaE').childNodes[1].tagName=='IMG'){ | |
200 | + document.getElementById('divInfraBarraSistemaE').childNodes[1].src=window.location.href.substring(0, window.location.href.indexOf('/sei')+4)+'/imagens/sei_logo_azul_celeste.jpg'; | |
201 | + } | |
202 | + } | |
203 | + } | |
204 | + | |
205 | + var strHash = document.getElementById('hdnAnexos').value; | |
206 | + | |
202 | 207 | } |
203 | 208 | |
204 | - | |
205 | 209 | function validDate(valor) { |
206 | 210 | |
207 | 211 | var campo = (valor === 'I') ? document.getElementById('txtDtInicio') : campo = document.getElementById('txtDtFim'); |
... | ... | @@ -296,16 +300,10 @@ function pesquisar(){ |
296 | 300 | } |
297 | 301 | |
298 | 302 | function corrigirTela(){ |
299 | - | |
300 | - var grid = document.getElementById('tbIndisponibilidade'); | |
301 | - var area = document.getElementById('divInfraAreaTela'); | |
302 | - | |
303 | - if( grid != null && area != null ){ | |
304 | - var tamanhoGrid = document.getElementById('tbIndisponibilidade').offsetHeight; | |
305 | - var tamanhoLinha = document.getElementById('divInfraAreaTela').offsetHeight; | |
306 | - var tamanhoTotal = (tamanhoGrid + tamanhoLinha) - 395; | |
307 | - document.getElementById('divInfraAreaTela').style.height = tamanhoTotal + 'px'; | |
308 | - } | |
303 | + var tamanhoGrid = document.getElementById('tbIndisponibilidade').offsetHeight; | |
304 | + var tamanhoLinha = document.getElementById('divInfraAreaTela').offsetHeight; | |
305 | + var tamanhoTotal = (tamanhoGrid + tamanhoLinha) - 395; | |
306 | + document.getElementById('divInfraAreaTela').style.height = tamanhoTotal + 'px'; | |
309 | 307 | } |
310 | 308 | |
311 | 309 | function esconderMenu(){ |
... | ... | @@ -333,7 +331,7 @@ PaginaSEIExterna::getInstance()->fecharHead(); |
333 | 331 | #selSinProrrogacao {position:absolute;left:29%;top:20px;width:20%;} |
334 | 332 | #divInfraAreaTabela {position:absolute;left:0%;top:50px; } |
335 | 333 | |
336 | -#divInfraBarraSistemaE { display:none; } | |
334 | +#divInfraBarraSistemaD { display:none; } | |
337 | 335 | </style> |
338 | 336 | |
339 | 337 | <?php |
... | ... | @@ -394,7 +392,6 @@ $urlForm = 'institucional/peticionamento/indisponibilidade_peticionamento_usuari |
394 | 392 | </div> |
395 | 393 | |
396 | 394 | </form> |
397 | - | |
398 | 395 | <? |
399 | 396 | PaginaSEIExterna::getInstance()->fecharBody(); |
400 | 397 | PaginaSEIExterna::getInstance()->fecharHtml(); | ... | ... |
sei/institucional/peticionamento/peticionamento_interessado_cadastro.php
1 | -<? | |
1 | +<?php | |
2 | 2 | /** |
3 | 3 | * ANATEL |
4 | 4 | * |
... | ... | @@ -9,17 +9,17 @@ |
9 | 9 | try { |
10 | 10 | |
11 | 11 | require_once dirname(__FILE__).'/../../SEI.php'; |
12 | - | |
12 | + | |
13 | 13 | session_start(); |
14 | 14 | |
15 | 15 | ////////////////////////////////////////////////////////////////////////////// |
16 | - InfraDebug::getInstance()->setBolLigado(true); | |
17 | - InfraDebug::getInstance()->setBolDebugInfra(true); | |
16 | + InfraDebug::getInstance()->setBolLigado(false); | |
17 | + InfraDebug::getInstance()->setBolDebugInfra(false); | |
18 | 18 | InfraDebug::getInstance()->limpar(); |
19 | 19 | ////////////////////////////////////////////////////////////////////////////// |
20 | 20 | |
21 | 21 | PaginaSEIExterna::getInstance()->setTipoPagina( InfraPagina::$TIPO_PAGINA_SIMPLES ); |
22 | - SessaoSEIExterna::getInstance()->validarLink(); | |
22 | + //SessaoSEIExterna::getInstance()->validarLink(); | |
23 | 23 | |
24 | 24 | //SessaoSEI::getInstance(false); |
25 | 25 | //SessaoSEI::getInstance()->simularLogin(null, null, SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() , SessaoSEIExterna::getInstance()->getNumIdUnidadeAtual() ); |
... | ... | @@ -57,8 +57,6 @@ PaginaSEIExterna::getInstance()->montarMeta(); |
57 | 57 | PaginaSEIExterna::getInstance()->montarTitle(':: '.PaginaSEIExterna::getInstance()->getStrNomeSistema().' - '.$strTitulo.' ::'); |
58 | 58 | PaginaSEIExterna::getInstance()->montarStyle(); |
59 | 59 | PaginaSEIExterna::getInstance()->abrirStyle(); |
60 | -$objEditorRN = new EditorRN(); | |
61 | -echo $objEditorRN->montarCssEditor(null); | |
62 | 60 | PaginaSEIExterna::getInstance()->fecharStyle(); |
63 | 61 | PaginaSEIExterna::getInstance()->montarJavaScript(); |
64 | 62 | PaginaSEIExterna::getInstance()->abrirJavaScript(); |
... | ... | @@ -75,37 +73,229 @@ PaginaSEIExterna::getInstance()->fecharHead(); |
75 | 73 | PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
76 | 74 | $urlBaseLink = ""; |
77 | 75 | $arrComandos = array(); |
78 | -$arrComandos[] = '<button type="button" accesskey="P" name="Peticionar" value="Peticionar" onclick="enviarInteressado()" class="infraButton"><span class="infraTeclaAtalho">P</span>eticionar</button>'; | |
79 | -$arrComandos[] = '<button type="button" accesskey="F" name="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador.php?acao='.PaginaSEIExterna::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'].PaginaSEIExterna::getInstance()->montarAncora($_GET['id_indisponibilidade_peticionamento']))).'\';" class="infraButton"><span class="infraTeclaAtalho">V</span>oltar</button>'; | |
76 | +$arrComandos[] = '<button type="button" accesskey="S" name="Salvar" value="Salvar" onclick="salvar()" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar</button>'; | |
77 | +$arrComandos[] = '<button type="button" accesskey="F" name="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador.php?acao='.PaginaSEIExterna::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'].PaginaSEIExterna::getInstance()->montarAncora($_GET['id_indisponibilidade_peticionamento']))).'\';" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
80 | 78 | ?> |
81 | 79 | <form id="frmIndisponibilidadeCadastro" method="post" onsubmit="return OnSubmitForm();" action="<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador.php?acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> |
82 | -<? | |
80 | +<?php | |
83 | 81 | PaginaSEIExterna::getInstance()->montarBarraComandosSuperior($arrComandos); |
84 | 82 | PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
85 | 83 | ?> |
86 | 84 | |
87 | 85 | <fieldset id="field1" class="infraFieldset sizeFieldset"> |
88 | - <legend class="infraLegend"> Interessado </legend> | |
89 | - | |
86 | + | |
87 | + <legend class="infraLegend"> Interessado </legend> | |
88 | + | |
89 | + <input type="radio" name="tipoPessoa" value="pf" id="rdPF" onclick="selecionarPF()" /> | |
90 | + <label for="rdPF" class="infraLabelRadio">Pessoa física</label> <br/> | |
91 | + | |
92 | + <input type="radio" name="tipoPessoaPF" value="0" id="rdPF1" style="display: none;" onclick="selecionarPF1()" /> | |
93 | + <label for="rdPF1" id="lblrdPF1" class="infraLabelRadio" style="display: none;"> | |
94 | + Sem vínculo com qualquer Pessoa Jurídica <br/> | |
95 | + </label> | |
96 | + | |
97 | + <input type="radio" name="tipoPessoaPF" value="1" id="rdPF2" style="display: none;" onclick="selecionarPF2()" /> | |
98 | + <label for="rdPF2" id="lblrdPF2" class="infraLabelRadio" style="display: none;"> | |
99 | + Com vínculo com Pessoa Jurídica <br/> | |
100 | + </label> | |
101 | + | |
102 | + <input type="radio" name="tipoPessoa" value="pj" id="rdPJ" onclick="selecionarPJ()" /> | |
103 | + <label for="rdPJ" class="infraLabelRadio">Pessoa jurídica</label> | |
104 | + | |
90 | 105 | </fieldset> |
91 | 106 | |
92 | 107 | <fieldset id="field2" class="infraFieldset sizeFieldset"> |
93 | - <legend class="infraLegend"> Formulário de Cadastro </legend> | |
108 | + | |
109 | + <legend class="infraLegend"> Formulário de Cadastro </legend> | |
110 | + | |
111 | + <label class="infraLabelObrigatorio"> Tipo de Interessado:</label><br/> | |
112 | + <select class="infraSelect" width="380" id="tipoInteressado" name="tipoInteressado" style="width:380px;" > | |
113 | + <option value=""></option> | |
114 | + </select> <br/> | |
115 | + | |
116 | + <label class="infraLabelObrigatorio"> Nome / Razão Social:</label><br/> | |
117 | + <select class="infraSelect" width="380" id="razaoSocial" name="razaoSocial" style="width:380px;" > | |
118 | + <option value=""></option> | |
119 | + </select> <br/> | |
120 | + | |
121 | + <label id="lblPjVinculada" style="display: none;" class="infraLabelObrigatorio"> | |
122 | + Pessoa jurídica a qual o interessado é vinculado:<br/> | |
123 | + <input type="text" class="infraText" name="txtPjVinculada" id="txtPjVinculada" style="width: 540px; display: none;" /> | |
124 | + <br/><br/> | |
125 | + </label> | |
126 | + | |
127 | + <label class="infraLabelObrigatorio"> CPF/CNPJ:</label><br/> | |
128 | + <input type="text" class="infraText" name="cpfCnpj" id="cpfCnpj" style="width: 540px;" /> | |
129 | + <br/><br/> | |
130 | + | |
131 | + <label class="infraLabelObrigatorio"> Tratamento:</label><br/> | |
132 | + <select class="infraSelect" width="380" id="tratamento" name="tratamento" style="width:380px;" > | |
133 | + <option value=""></option> | |
134 | + </select> <br/> | |
135 | + | |
136 | + <label class="infraLabelObrigatorio"> Cargo:</label><br/> | |
137 | + <select class="infraSelect" width="380" id="cargo" name="cargo" style="width:380px;" > | |
138 | + <option value=""></option> | |
139 | + </select> <br/> | |
140 | + | |
141 | + <label class="infraLabelObrigatorio"> Vocativo:</label><br/> | |
142 | + <select class="infraSelect" width="380" id="vocativo" name="vocativo" style="width:380px;" > | |
143 | + <option value=""></option> | |
144 | + </select> <br/> | |
145 | + | |
146 | + <div class="div1" style="float:left; width: auto;"> | |
147 | + | |
148 | + <div id="div1_1" style="float:left; width: auto;"> | |
149 | + <label class="infraLabel">Número da OAB:</label><br/> | |
150 | + <input type="text" class="infraText" name="numeroOab" id="numeroOab" /> | |
151 | + </div> | |
152 | + | |
153 | + <div id="div1_2" style="float:left; margin-left:20px; width: auto;"> | |
154 | + <label class="infraLabelObrigatorio">RG:</label><br/> | |
155 | + <input type="text" class="infraText" name="rg" id="rg" /> | |
156 | + </div> | |
157 | + | |
158 | + <div id="div1_3" style="float:left; margin-left:20px; width: auto;"> | |
159 | + <label class="infraLabelObrigatorio">Órgão Expedidor do RG:</label><br/> | |
160 | + <input type="text" class="infraText" name="orgaoExpedidor" id="orgaoExpedidor" /> | |
161 | + </div> | |
162 | + | |
163 | + <div id="div1_4" style="float:left; margin-left:20px; width: auto;"> | |
164 | + <label class="infraLabelObrigatorio">Telefone:</label><br/> | |
165 | + <input type="text" class="infraText" name="telefone" id="telefone" /> | |
166 | + </div> | |
167 | + | |
168 | + </div> | |
169 | + | |
170 | + <div style="clear: both;"></div> | |
171 | + | |
172 | + <div class="div2" style="float:left; width: auto;"> | |
173 | + | |
174 | + <div id="div2_1" style="float:left; width: 280px;"> | |
175 | + <label class="infraLabel">Email:</label><br/> | |
176 | + <input type="text" class="infraText" name="email" id="email" style="width: 280px;" /> | |
177 | + </div> | |
178 | + | |
179 | + <div id="div2_2" style="float:left; margin-left:20px; width: 280px;"> | |
180 | + <label class="infraLabel">Sítio na Internet:</label><br/> | |
181 | + <input type="text" class="infraText" style="width: 280px;" name="sitioInternet" id="sitioInternet" /> | |
182 | + </div> | |
183 | + | |
184 | + </div> | |
185 | + | |
186 | + <div style="clear: both;"></div> | |
187 | + | |
188 | + <div class="div3" style="float:left; width: auto;"> | |
189 | + | |
190 | + <div id="div3_1" style="float:left; width: 280px;"> | |
191 | + <label class="infraLabelObrigatorio">Endereço:</label><br/> | |
192 | + <input type="text" class="infraText" style="width: 280px;" name="endereco" id="endereco" /> | |
193 | + </div> | |
194 | + | |
195 | + <div id="div3_2" style="float:left; margin-left:20px; width: 280px;"> | |
196 | + <label class="infraLabelObrigatorio">Bairro:</label><br/> | |
197 | + <input type="text" class="infraText" style="width: 280px;" name="bairro" id="bairro" /> | |
198 | + </div> | |
199 | + | |
200 | + </div> | |
201 | + | |
202 | + <div style="clear: both;"></div> | |
203 | + | |
204 | + <div class="div4" style="float:left; width: auto;"> | |
205 | + | |
206 | + <div id="div4_1" style="float:left; width: auto;"> | |
207 | + <label class="infraLabelObrigatorio">País:</label><br/> | |
208 | + <input type="text" class="infraText" name="pais" id="pais" /> | |
209 | + </div> | |
210 | + | |
211 | + <div id="div4_2" style="float:left; margin-left:20px; width: auto;"> | |
212 | + <label class="infraLabelObrigatorio">Estado:</label><br/> | |
213 | + <input type="text" class="infraText" name="estado" id="estado" /> | |
214 | + </div> | |
215 | + | |
216 | + <div id="div4_3" style="float:left; margin-left:20px; width: auto;"> | |
217 | + <label class="infraLabelObrigatorio">Cidade:</label><br/> | |
218 | + <input type="text" class="infraText" name="cidade" id="cidade" /> | |
219 | + </div> | |
220 | + | |
221 | + <div id="div4_4" style="float:left; margin-left:20px; width: auto;"> | |
222 | + <label class="infraLabelObrigatorio">CEP:</label><br/> | |
223 | + <input type="text" class="infraText" name="cep" id="cep" /> | |
224 | + </div> | |
225 | + | |
226 | + </div> | |
227 | + | |
228 | + <div style="clear: both;"></div> | |
229 | + | |
94 | 230 | </fieldset> |
95 | 231 | |
96 | 232 | </form> |
97 | 233 | |
98 | -<? | |
99 | -PaginaSEIExterna::getInstance()->montarBarraComandosInferior($arrComandos); | |
234 | +<?php | |
235 | +//PaginaSEIExterna::getInstance()->montarBarraComandosInferior($arrComandos); | |
236 | +PaginaSEIExterna::getInstance()->montarAreaDebug(); | |
100 | 237 | PaginaSEIExterna::getInstance()->fecharAreaDados(); |
101 | 238 | PaginaSEIExterna::getInstance()->fecharBody(); |
102 | 239 | PaginaSEIExterna::getInstance()->fecharHtml(); |
103 | 240 | ?> |
104 | 241 | <script type="text/javascript"> |
105 | 242 | |
243 | +function selecionarPF(){ | |
244 | + mostrarCamposPF(); | |
245 | +} | |
246 | + | |
247 | +function selecionarPF1(){ | |
248 | + ocultarComboPJVinculada(); | |
249 | +} | |
250 | + | |
251 | +function selecionarPF2(){ | |
252 | + mostrarComboPJVinculada(); | |
253 | +} | |
254 | + | |
255 | +function ocultarComboPJVinculada(){ | |
256 | + document.getElementById('lblPjVinculada').style.display = 'none'; | |
257 | + document.getElementById('txtPjVinculada').style.display = 'none'; | |
258 | + document.getElementById('txtPjVinculada').value = ''; | |
259 | +} | |
260 | + | |
261 | +function mostrarComboPJVinculada(){ | |
262 | + document.getElementById('lblPjVinculada').style.display = ''; | |
263 | + document.getElementById('txtPjVinculada').style.display = ''; | |
264 | +} | |
265 | + | |
266 | +function selecionarPJ(){ | |
267 | + mostrarCamposPJ(); | |
268 | +} | |
269 | + | |
270 | +function mostrarCamposPF(){ | |
271 | + | |
272 | + document.getElementById('rdPF1').style.display = ''; | |
273 | + document.getElementById('rdPF2').style.display = ''; | |
274 | + document.getElementById('lblrdPF1').style.display = ''; | |
275 | + document.getElementById('lblrdPF2').style.display = ''; | |
276 | +} | |
277 | + | |
278 | +function mostrarCamposPJ(){ | |
279 | + | |
280 | + document.getElementById('rdPF1').style.display = 'none'; | |
281 | + document.getElementById('rdPF2').style.display = 'none'; | |
282 | + | |
283 | + document.getElementById('rdPF1').checked = false; | |
284 | + document.getElementById('rdPF2').checked = false; | |
285 | + document.getElementById('rdPF1').checked = ''; | |
286 | + document.getElementById('rdPF2').checked = ''; | |
287 | + | |
288 | + document.getElementById('lblrdPF1').style.display = 'none'; | |
289 | + document.getElementById('lblrdPF2').style.display = 'none'; | |
290 | + | |
291 | + document.getElementById('lblPjVinculada').style.display = 'none'; | |
292 | + document.getElementById('txtPjVinculada').style.display = 'none'; | |
293 | + | |
294 | +} | |
295 | + | |
106 | 296 | function enviarInteressado(){ |
107 | 297 | |
108 | - alert('Enviar interessados - INICIO'); | |
298 | + //alert('Enviar interessados - INICIO'); | |
109 | 299 | |
110 | 300 | var arrDados = ["Banana1", "Orange1", "Apple1", "Mango1"]; |
111 | 301 | arrDados.push("Kiwi1"); |
... | ... | @@ -115,7 +305,7 @@ function enviarInteressado(){ |
115 | 305 | arrDados2.push("Kiwi2"); |
116 | 306 | opener.receberInteressado(arrDados2, false); |
117 | 307 | |
118 | - alert('Enviar interessados - FIM'); | |
308 | + //alert('Enviar interessados - FIM'); | |
119 | 309 | |
120 | 310 | } |
121 | 311 | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro.php
... | ... | @@ -217,7 +217,10 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
217 | 217 | <th class="infraTh" id="tdDescNomePessoa" > Nome/Razão social </th> |
218 | 218 | <th align="center" class="infraTh" style="width:70px;"> Ações </th> |
219 | 219 | </tr> |
220 | + | |
220 | 221 | <tbody> |
222 | + | |
223 | + <!-- | |
221 | 224 | <tr class="infraTrClara"> |
222 | 225 | <td class="infraTdSetaOrdenacao"> CPF/CNPJ </td> |
223 | 226 | <td class="infraTdSetaOrdenacao"> Razão social </td> |
... | ... | @@ -227,8 +230,10 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
227 | 230 | <img src="/infra_css/imagens/remover.gif" alt="Remover" onclick="deleteRow(this)" title="Remover" class="infraImg"/> |
228 | 231 | </td> |
229 | 232 | </tr> |
233 | + --> | |
230 | 234 | |
231 | 235 | </tbody> |
236 | + | |
232 | 237 | </table> |
233 | 238 | |
234 | 239 | </div> | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_js.php
... | ... | @@ -1028,12 +1028,10 @@ function abrirCadastroInteressado(){ |
1028 | 1028 | //charmar janela para cadastrar um novo interessado |
1029 | 1029 | $('#txtNomeRazaoSocial').val(''); |
1030 | 1030 | |
1031 | - var str = '<?= PaginaSEIExterna::getInstance()->formatarXHTML( | |
1032 | - SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_interessado_cadastro&tipo_selecao=2&cpfcnpj=#conteudo#')) | |
1033 | - ?>'; | |
1034 | - | |
1035 | - var res = str.replace("#conteudo#", conteudo); | |
1036 | - infraAbrirJanela( res, 'cadastrarInteressado', 900, 900, '', true); //modal | |
1031 | + var str = '<?= SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_interessado_cadastro&tipo_selecao=2&cpfcnpj=#conteudo#') ?>'; | |
1032 | + var res = str.replace("#conteudo#", conteudo); | |
1033 | + //alert( str ); | |
1034 | + infraAbrirJanela( str, 'cadastrarInteressado', 900, 900, '', true); //modal | |
1037 | 1035 | return; |
1038 | 1036 | |
1039 | 1037 | } | ... | ... |
sei/institucional/peticionamento/recibo_peticionamento_usuario_externo_consulta.php
... | ... | @@ -104,7 +104,8 @@ try { |
104 | 104 | } |
105 | 105 | |
106 | 106 | $arrComandos = array(); |
107 | - $arrComandos[] = '<button type="button" accesskey="s" id="btnSalvarPDF" value="Salvar em PDF" onclick="salvarPDF();" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar em PDF</button>'; | |
107 | + // Botão SALVAR EM PDF desativado temporariamente até resolver a falta de tratamento HTML | |
108 | + // $arrComandos[] = '<button type="button" accesskey="s" id="btnSalvarPDF" value="Salvar em PDF" onclick="salvarPDF();" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar em PDF</button>'; | |
108 | 109 | $arrComandos[] = '<button type="button" accesskey="i" id="btnImprimir" value="Imprimir" onclick="imprimir();" class="infraButton"><span class="infraTeclaAtalho">I</span>mprimir</button>'; |
109 | 110 | $arrComandos[] = '<button type="button" accesskey="c" id="btnFechar" value="Fechar" onclick="location.href=\'' . PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?id_md_pet_rel_recibo_protoc=' . $_GET['id_md_pet_rel_recibo_protoc'] . '&acao=' . PaginaSEIExterna::getInstance()->getAcaoRetorno() . '&acao_origem=' . $_GET['acao'])) . '\'" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; |
110 | 111 | |
... | ... | @@ -121,6 +122,9 @@ try { |
121 | 122 | if (isset($_GET['id_md_pet_rel_recibo_protoc']) && $_GET['id_md_pet_rel_recibo_protoc'] != "") { |
122 | 123 | $objReciboPeticionamentoDTO->setNumIdReciboPeticionamento($_GET['id_md_pet_rel_recibo_protoc']); |
123 | 124 | } |
125 | + | |
126 | + //usuarios so podem ver peticionamentos feitos por ele mesmo | |
127 | + $objReciboPeticionamentoDTO->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); | |
124 | 128 | |
125 | 129 | $objReciboPeticionamentoRN = new ReciboPeticionamentoRN(); |
126 | 130 | $objReciboDocumentoAnexoPeticionamentoRN = new ReciboDocumentoAnexoPeticionamentoRN(); |
... | ... | @@ -163,11 +167,11 @@ try { |
163 | 167 | |
164 | 168 | //obtendo descricao do orgao para o rodape do recibo |
165 | 169 | $idOrgao = $protocoloDTO->retNumIdOrgaoUnidadeGeradora(); |
166 | - $orgaoDTO = new OrgaoDTO(); | |
170 | + $OrgaoDTO = new OrgaoDTO(); | |
167 | 171 | $orgaoRN = new OrgaoRN(); |
168 | - $orgaoDTO->retTodos(); | |
169 | - $orgaoDTO->setNumIdOrgao( $protocoloDTO->getNumIdOrgaoUnidadeGeradora() ); | |
170 | - $orgaoDTO = $orgaoRN->consultarRN1352( $orgaoDTO ); | |
172 | + $OrgaoDTO->retTodos(); | |
173 | + $OrgaoDTO->setNumIdOrgao( $protocoloDTO->getNumIdOrgaoUnidadeGeradora() ); | |
174 | + $OrgaoDTO = $orgaoRN->consultarRN1352( $OrgaoDTO ); | |
171 | 175 | |
172 | 176 | } catch (Exception $e) { |
173 | 177 | PaginaSEIExterna::getInstance()->processarExcecao($e); |
... | ... | @@ -187,13 +191,15 @@ try { |
187 | 191 | function imprimir() { |
188 | 192 | document.getElementById('btnFechar').style.display = 'none'; |
189 | 193 | document.getElementById('btnImprimir').style.display = 'none'; |
190 | - document.getElementById('btnSalvarPDF').style.display = 'none'; | |
194 | + // Botão SALVAR EM PDF desativado temporariamente até resolver a falta de tratamento HTML | |
195 | + // document.getElementById('btnSalvarPDF').style.display = 'none'; | |
191 | 196 | infraImprimirDiv('divInfraAreaTelaD'); |
192 | 197 | |
193 | 198 | self.setTimeout(function () { |
194 | 199 | document.getElementById('btnFechar').style.display = ''; |
195 | 200 | document.getElementById('btnImprimir').style.display = ''; |
196 | - document.getElementById('btnSalvarPDF').style.display = ''; | |
201 | + // Botão SALVAR EM PDF desativado temporariamente até resolver a falta de tratamento HTML | |
202 | + // document.getElementById('btnSalvarPDF').style.display = ''; | |
197 | 203 | }, 1000); |
198 | 204 | } |
199 | 205 | |
... | ... | @@ -220,23 +226,25 @@ try { |
220 | 226 | //document.getElementById('hdnInfraAreaDados').value = document.getElementById('divInfraAreaDados').innerHTML; |
221 | 227 | var tabela = document.getElementById('divInfraAreaDados').getElementsByTagName('TABLE'); |
222 | 228 | if (tabela.length > 0) { |
223 | - var tabl = tabela[0]; // console.log(tabl); | |
224 | - | |
225 | - var l = tabl.rows.length; //console.log(l); | |
229 | + var tabl = tabela[0]; | |
226 | 230 | var s = ''; |
227 | - var td1maior = 0; | |
228 | - var td2maior = 0; | |
229 | 231 | |
230 | - for (var i = 0; i < l; i++) { | |
232 | + for (var i = 0; i < tabl.rows.length; i++) { | |
233 | + // linha | |
231 | 234 | var tr = tabl.rows[i]; |
232 | - if (tr.childNodes[1].style.fontWeight.indexOf('bold') > -1) { | |
233 | - s += '<b>'; | |
234 | - } | |
235 | - s += tr.childNodes[1].innerHTML + '|' | |
236 | - if (tr.childNodes[3].style.fontWeight.indexOf('bold') > -1) { | |
237 | - s += '<b>'; | |
235 | + | |
236 | + if (tr.cells.length>0){ | |
237 | + for (var j = 0; j < tr.cells.length; j++) { | |
238 | + if (j>0) { | |
239 | + s += '|'; | |
240 | + } | |
241 | + if (tr.cells[j].style.fontWeight.indexOf('bold') > -1) { | |
242 | + s += '<b>'; | |
243 | + } | |
244 | + s += tr.cells[j].innerHTML; | |
245 | + } | |
246 | + s += '±'; | |
238 | 247 | } |
239 | - s += tr.childNodes[3].innerHTML + '±'; | |
240 | 248 | } |
241 | 249 | document.getElementById('hdnInfraAreaDados').value = s; |
242 | 250 | } |
... | ... | @@ -285,13 +293,11 @@ try { |
285 | 293 | |
286 | 294 | <?php if ($arrInteressados != null && is_array($arrInteressados) && count($arrInteressados) > 0) : ?> |
287 | 295 | <tr> |
288 | - <td style="font-weight: bold;">Interessados:</td> | |
289 | - <td></td> | |
296 | + <td style="font-weight: bold;"colspan="2">Interessados:</td> | |
290 | 297 | </tr> |
291 | 298 | <?php foreach ($arrInteressados as $interessado) : ?> |
292 | 299 | <tr> |
293 | - <td>    <?= $interessado->getStrNome() ?> </td> | |
294 | - <td></td> | |
300 | + <td colspan="2">    <?= $interessado->getStrNome() ?> </td> | |
295 | 301 | </tr> |
296 | 302 | <?php endforeach; ?> |
297 | 303 | <?php endif; ?> |
... | ... | @@ -370,9 +376,9 @@ try { |
370 | 376 | <br/> |
371 | 377 | <br/> |
372 | 378 | |
373 | - <label id=divRodape> | |
374 | - <p>O Usuário Externo acima identificado foi previamente avisado que o peticionamento importa na aceitação dos termos e condições que regem o processo eletrônico, além do disposto no credenciamento prévio, e na assinatura dos documentos nato-digitais e declaração de que são autênticos os digitalizados, sendo responsável civil, penal e administrativamente pelo uso indevido. Ainda, foi avisado que os níveis de acesso indicados para os documentos estariam condicionados à análise por servidor público, que poderá, motivadamente, alterá-los a qualquer momento sem necessidade de prévio aviso, e de que são de sua exclusiva responsabilidade:</p><ul><li>a conformidade entre os dados informados e os documentos;</li><li>a conservação dos originais em papel de documentos digitalizados até que decaia o direito de revisão dos atos praticados no processo, para que, caso solicitado, sejam apresentados para qualquer tipo de conferência;</li><li>a realização por meio eletrônico de todos os atos e comunicações processuais com o próprio Usuário Externo ou, por seu intermédio, com a entidade porventura representada;</li><li>a observância de que os atos processuais se consideram realizados no dia e hora do recebimento pelo SEI, considerando-se tempestivos os praticados até as 23h59min59s do último dia do prazo, considerado sempre o horário oficial de Brasília, independente do fuso horário em que se encontre;</li><li>a consulta periódica ao SEI, a fim de verificar o recebimento de intimações eletrônicas.</li></ul><p>A existência deste Recibo, do processo e dos documentos acima indicados pode ser conferida no Portal na Internet do(a) <?= htmlentities( $orgaoDTO->getStrDescricao() ); ?>.</p> | |
375 | - </label> | |
379 | + <label id=divRodape> | |
380 | + <p>O Usuário Externo acima identificado foi previamente avisado que o peticionamento importa na aceitação dos termos e condições que regem o processo eletrônico, além do disposto no credenciamento prévio, e na assinatura dos documentos nato-digitais e declaração de que são autênticos os digitalizados, sendo responsável civil, penal e administrativamente pelo uso indevido. Ainda, foi avisado que os níveis de acesso indicados para os documentos estariam condicionados à análise por servidor público, que poderá, motivadamente, alterá-los a qualquer momento sem necessidade de prévio aviso, e de que são de sua exclusiva responsabilidade:</p><ul><li>a conformidade entre os dados informados e os documentos;</li><li>a conservação dos originais em papel de documentos digitalizados até que decaia o direito de revisão dos atos praticados no processo, para que, caso solicitado, sejam apresentados para qualquer tipo de conferência;</li><li>a realização por meio eletrônico de todos os atos e comunicações processuais com o próprio Usuário Externo ou, por seu intermédio, com a entidade porventura representada;</li><li>a observância de que os atos processuais se consideram realizados no dia e hora do recebimento pelo SEI, considerando-se tempestivos os praticados até as 23h59min59s do último dia do prazo, considerado sempre o horário oficial de Brasília, independente do fuso horário em que se encontre;</li><li>a consulta periódica ao SEI, a fim de verificar o recebimento de intimações eletrônicas.</li></ul>A existência deste Recibo, do processo e dos documentos acima indicados pode ser conferida no Portal na Internet do(a) <?= htmlentities( $OrgaoDTO->getStrDescricao() ); ?>. | |
381 | + </label> | |
376 | 382 | |
377 | 383 | </div> |
378 | 384 | ... | ... |
sei/institucional/peticionamento/recibo_peticionamento_usuario_externo_lista.php
... | ... | @@ -14,6 +14,13 @@ try { |
14 | 14 | require_once dirname(__FILE__).'/util/DataUtils.php'; |
15 | 15 | |
16 | 16 | session_start(); |
17 | + | |
18 | + ////////////////////////////////////////////////////////////////////////////// | |
19 | + InfraDebug::getInstance()->setBolLigado(false); | |
20 | + InfraDebug::getInstance()->setBolDebugInfra(false); | |
21 | + InfraDebug::getInstance()->limpar(); | |
22 | + ////////////////////////////////////////////////////////////////////////////// | |
23 | + | |
17 | 24 | SessaoSEIExterna::getInstance()->validarLink(); |
18 | 25 | PaginaSEIExterna::getInstance()->prepararSelecao('recibo_peticionamento_usuario_externo_selecionar'); |
19 | 26 | SessaoSEIExterna::getInstance()->validarPermissao($_GET['acao']); |
... | ... | @@ -26,6 +33,7 @@ try { |
26 | 33 | |
27 | 34 | //Se cadastrou alguem |
28 | 35 | if ($_GET['acao_origem']=='recibo_peticionamento_usuario_externo_cadastrar'){ |
36 | + | |
29 | 37 | if (isset($_GET['id_md_pet_rel_recibo_protoc'])){ |
30 | 38 | PaginaSEIExterna::getInstance()->adicionarSelecionado($_GET['id_md_pet_rel_recibo_protoc']); |
31 | 39 | } |
... | ... | @@ -44,12 +52,13 @@ try { |
44 | 52 | |
45 | 53 | $arrComandos = array(); |
46 | 54 | $arrComandos[] = '<button type="button" accesskey="p" id="btnPesquisar" value="Pesquisar" onclick="pesquisar();" class="infraButton"><span class="infraTeclaAtalho">P</span>esquisar</button>'; |
47 | - $arrComandos[] = '<button type="button" accesskey="c" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?id_md_pet_rel_recibo_protoc='.$_GET['id_md_pet_rel_recibo_protoc'].'&acao='.'usuario_externo_controle_acessos'/*PaginaSEIExterna::getInstance()->getAcaoRetorno()*/.'&acao_origem='.$_GET['acao'])).'" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
55 | + $arrComandos[] = '<button type="button" accesskey="c" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=usuario_externo_controle_acessos&acao_origem='.$_GET['acao'])).'" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
48 | 56 | |
49 | 57 | $bolAcaoCadastrar = SessaoSEIExterna::getInstance()->verificarPermissao('recibo_peticionamento_usuario_externo_cadastrar'); |
50 | 58 | |
51 | 59 | $objReciboPeticionamentoDTO = new ReciboPeticionamentoDTO(); |
52 | 60 | $objReciboPeticionamentoDTO->retTodos(); |
61 | + $objReciboPeticionamentoDTO->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); | |
53 | 62 | |
54 | 63 | //txtDataInicio |
55 | 64 | if( isset( $_POST['txtDataInicio'] ) && $_POST['txtDataInicio'] != ""){ |
... | ... | @@ -64,12 +73,13 @@ try { |
64 | 73 | if( isset( $_POST['selTipo'] ) && $_POST['selTipo'] != ""){ |
65 | 74 | $objReciboPeticionamentoDTO->setStrStaTipoPeticionamento( $_POST['selTipo'] ); |
66 | 75 | } |
67 | - | |
76 | + | |
77 | + //$objReciboPeticionamentoDTO->setOrd('DataHoraRecebimentoFinal', InfraDTO::$TIPO_ORDENACAO_DESC ); | |
78 | + $objReciboPeticionamentoDTO->setOrdDthDataHoraRecebimentoFinal(InfraDTO::$TIPO_ORDENACAO_DESC); | |
79 | + | |
68 | 80 | $objReciboPeticionamentoRN = new ReciboPeticionamentoRN(); |
69 | - PaginaSEIExterna::getInstance()->prepararOrdenacao($objReciboPeticionamentoDTO, 'DataHoraRecebimentoFinal', InfraDTO::$TIPO_ORDENACAO_ASC); | |
70 | - //print_r( $objReciboPeticionamentoDTO );die(); | |
81 | + //PaginaSEIExterna::getInstance()->prepararOrdenacao($objReciboPeticionamentoDTO, 'DataHoraRecebimentoFinal', InfraDTO::$TIPO_ORDENACAO_DESC); | |
71 | 82 | $arrObjReciboPeticionamentoDTO = $objReciboPeticionamentoRN->listar($objReciboPeticionamentoDTO); |
72 | - //print_r( $arrObjReciboPeticionamentoDTO ); die(); | |
73 | 83 | $numRegistros = count($arrObjReciboPeticionamentoDTO); |
74 | 84 | |
75 | 85 | if ($numRegistros > 0){ |
... | ... | @@ -108,12 +118,12 @@ try { |
108 | 118 | $protocoloDTO->setDblIdProtocolo( $arrObjReciboPeticionamentoDTO[$i]->getNumIdProtocolo() ); |
109 | 119 | $protocoloDTO = $protocoloRN->consultarRN0186( $protocoloDTO ); |
110 | 120 | |
111 | - if( $protocoloDTO == null){ | |
121 | + //if( $protocoloDTO == null){ | |
112 | 122 | //echo $i; die(); |
113 | 123 | //print_r( $arrObjReciboPeticionamentoDTO[$i] ); die(); |
114 | - } | |
124 | + //} | |
115 | 125 | |
116 | - if( $_GET['id_md_pet_rel_recibo_protoc'] == $arrObjReciboPeticionamentoDTO[$i]->getNumIdReciboPeticionamento()){ | |
126 | + if( isset( $_GET['id_md_pet_rel_recibo_protoc'] ) && $_GET['id_md_pet_rel_recibo_protoc'] == $arrObjReciboPeticionamentoDTO[$i]->getNumIdReciboPeticionamento()){ | |
117 | 127 | $strCssTr = '<tr class="infraTrAcessada">'; |
118 | 128 | }else{ |
119 | 129 | if( $arrObjReciboPeticionamentoDTO[$i]->getStrSinAtivo()=='S' ){ |
... | ... | @@ -127,7 +137,7 @@ try { |
127 | 137 | $data = ''; |
128 | 138 | |
129 | 139 | if( $arrObjReciboPeticionamentoDTO[$i] != null && $arrObjReciboPeticionamentoDTO[$i]->getDthDataHoraRecebimentoFinal() != "" ) { |
130 | - $data = DataUtils::setFormat( $arrObjReciboPeticionamentoDTO[$i]->getDthDataHoraRecebimentoFinal(),'dd/mm/yyyy hh:mm'); | |
140 | + $data = $arrObjReciboPeticionamentoDTO[$i]->getDthDataHoraRecebimentoFinal(); | |
131 | 141 | } |
132 | 142 | |
133 | 143 | $strResultado .= '<td>' . $data .'</td>'; |
... | ... | @@ -253,6 +263,7 @@ $strTipo = $_POST['selTipo'];; |
253 | 263 | <? |
254 | 264 | PaginaSEIExterna::getInstance()->montarAreaTabela($strResultado,$numRegistros); |
255 | 265 | PaginaSEIExterna::getInstance()->montarBarraComandosInferior($arrComandos); |
266 | +PaginaSEIExterna::getInstance()->montarAreaDebug(); | |
256 | 267 | ?> |
257 | 268 | |
258 | 269 | </form> | ... | ... |
sei/institucional/peticionamento/rn/AtualizadorModuloPeticionamentoRN.php
... | ... | @@ -309,17 +309,11 @@ class AtualizadorModuloPeticionamentoRN extends InfraRN { |
309 | 309 | $this->logar(' INSERINDO EMAILS 3001 e 3002 em email_sistema'); |
310 | 310 | |
311 | 311 | //Parametrizar Email de Alerta às Unidades |
312 | - $conteudo1 = ":: Este é um e-mail automático :: | |
312 | + $conteudo1 = " :: Este é um e-mail automático :: | |
313 | 313 | |
314 | - O Usuário Externo @nome_usuario_externo@ (@email_usuario_externo@) efetivou o Peticionamento Eletrônico abaixo identificado, conforme Tipo de Peticionamento indicado. O processo nº @processo@ (@tipo_processo@) se encontra aberto nas seguintes Unidades: | |
314 | +O Usuário Externo @nome_usuario_externo@ (@email_usuario_externo@) efetivou o Peticionamento Eletrônico do tipo @tipo_peticionamento@, no âmbito do processo nº @processo@, conforme disposto no Recibo Eletrônico de Protocolo SEI nº @documento_recibo_eletronico_de_protocolo@. | |
315 | 315 | |
316 | - @siglas_unidades_abertura_do_processo@ | |
317 | - | |
318 | - Entre no SEI e confira o mencionado processo. Caso não seja de competência de sua Unidade, verifique se já está aberto na Unidade correta e, do contrário, envie-o para a Unidade competente para que seja devidamente tratado. | |
319 | - | |
320 | - Identificação do Peticionamento: | |
321 | - | |
322 | - @conteudo_recibo_eletronico_de_protocolo@ | |
316 | +O mencionado processo se encontra aberto em sua unidade (@sigla_unidades_abertura_do_processo@). Entre no SEI e confira! Caso não seja de competência de sua Unidade, verifique se já está aberto na Unidade correta e, do contrário, envie-o para a Unidade competente para que seja devidamente tratado. | |
323 | 317 | |
324 | 318 | |
325 | 319 | @sigla_orgao@ |
... | ... | @@ -348,17 +342,13 @@ ATENÇÃO: As informações contidas neste e-mail, incluindo seus anexos, podem ser |
348 | 342 | )"; |
349 | 343 | |
350 | 344 | //Parametrizar Email de Confirmação ao Usuario Externo |
351 | - $conteudo2 = ":: Este é um e-mail automático :: | |
352 | - | |
353 | - Prezado(a) @nome_usuario_externo@, | |
354 | - | |
355 | - Este e-mail confirma a realização do Peticionamento Eletrônico abaixo identificado no SEI-@sigla_orgao@, conforme Tipo de Peticionamento indicado. | |
345 | + $conteudo2 = " :: Este é um e-mail automático :: | |
356 | 346 | |
357 | - Caso no futuro precise realizar novo peticionamento, sempre acesse a área destinada aos Usuários Externos no SEI-@sigla_orgao@ destacada em seu Portal na Internet ou acesse diretamente o link a seguir: @link_login_usuario_externo@ | |
347 | +Prezado(a) @nome_usuario_externo@, | |
358 | 348 | |
359 | - Identificação do Peticionamento: | |
349 | +Este e-mail confirma a realização do Peticionamento Eletrônico do tipo @tipo_peticionamento@ no SEI-@sigla_orgao@, no âmbito do processo nº @processo@, conforme disposto no Recibo Eletrônico de Protocolo SEI nº @documento_recibo_eletronico_de_protocolo@. | |
360 | 350 | |
361 | - @conteudo_recibo_eletronico_de_protocolo@ | |
351 | +Caso no futuro precise realizar novo peticionamento, sempre acesse a área destinada aos Usuários Externos no SEI-@sigla_orgao@ destacada em seu Portal na Internet ou acesse diretamente o link a seguir: @link_login_usuario_externo@ | |
362 | 352 | |
363 | 353 | |
364 | 354 | @sigla_orgao@ | ... | ... |
sei/institucional/peticionamento/rn/ProcessoPeticionamentoRN.php
... | ... | @@ -284,7 +284,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
284 | 284 | $objTipoProcDTO = $objTipoProcRN->consultar( $objTipoProcDTO ); |
285 | 285 | |
286 | 286 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
287 | - $numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); | |
287 | + //$numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); | |
288 | 288 | |
289 | 289 | } |
290 | 290 | ... | ... |
sei/institucional/peticionamento/rn/ReciboPeticionamentoRN.php
... | ... | @@ -8,9 +8,6 @@ |
8 | 8 | |
9 | 9 | require_once dirname(__FILE__).'/../../../SEI.php'; |
10 | 10 | |
11 | -//Data | |
12 | -require_once dirname(__FILE__).'/../util/DataUtils.php'; | |
13 | - | |
14 | 11 | class ReciboPeticionamentoRN extends InfraRN { |
15 | 12 | |
16 | 13 | public function __construct() { |
... | ... | @@ -122,7 +119,6 @@ class ReciboPeticionamentoRN extends InfraRN { |
122 | 119 | |
123 | 120 | protected function gerarReciboSimplificadoControlado( $idProcedimento ) { |
124 | 121 | |
125 | - //echo $idProcedimento; die(); | |
126 | 122 | $reciboDTO = new ReciboPeticionamentoDTO(); |
127 | 123 | |
128 | 124 | $reciboDTO->setNumIdProtocolo( $idProcedimento ); |
... | ... | @@ -171,7 +167,6 @@ class ReciboPeticionamentoRN extends InfraRN { |
171 | 167 | //método utilizado para gerar recibo ao final do cadastramento de um processo de peticionamento de usuario externo |
172 | 168 | protected function montarReciboControlado( $arrParams ){ |
173 | 169 | |
174 | - //$reciboDTO = $this->cadastrar( $arrParams ); | |
175 | 170 | $reciboDTO = $arrParams[4]; |
176 | 171 | |
177 | 172 | //gerando documento recibo (nao assinado) dentro do processo do SEI |
... | ... | @@ -195,7 +190,7 @@ class ReciboPeticionamentoRN extends InfraRN { |
195 | 190 | |
196 | 191 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
197 | 192 | |
198 | - $numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); | |
193 | + //$numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); | |
199 | 194 | $idSerieRecibo = $objInfraParametro->getValor('ID_SERIE_RECIBO_MODULO_PETICIONAMENTO'); |
200 | 195 | |
201 | 196 | //============================================= |
... | ... | @@ -207,8 +202,8 @@ class ReciboPeticionamentoRN extends InfraRN { |
207 | 202 | $protocoloReciboDocumentoDTO->setDblIdProtocolo(null); |
208 | 203 | $protocoloReciboDocumentoDTO->setStrDescricao( null ); |
209 | 204 | $protocoloReciboDocumentoDTO->setStrStaNivelAcessoLocal( ProtocoloRN::$NA_PUBLICO ); |
210 | - $protocoloReciboDocumentoDTO->setStrProtocoloFormatado( $numeroDocumento ); | |
211 | - $protocoloReciboDocumentoDTO->setStrProtocoloFormatadoPesquisa( $numeroDocumento ); | |
205 | + //$protocoloReciboDocumentoDTO->setStrProtocoloFormatado( $numeroDocumento ); | |
206 | + //$protocoloReciboDocumentoDTO->setStrProtocoloFormatadoPesquisa( $numeroDocumento ); | |
212 | 207 | $protocoloReciboDocumentoDTO->setNumIdUnidadeGeradora( $objUnidadeDTO->getNumIdUnidade() ); |
213 | 208 | $protocoloReciboDocumentoDTO->setNumIdUsuarioGerador( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); |
214 | 209 | $protocoloReciboDocumentoDTO->setStrStaProtocolo( ProtocoloRN::$TP_DOCUMENTO_GERADO ); |
... | ... | @@ -317,7 +312,7 @@ class ReciboPeticionamentoRN extends InfraRN { |
317 | 312 | |
318 | 313 | $html .= '<tr>'; |
319 | 314 | $html .= '<td style="font-weight: bold;">Data e Horário:</td>'; |
320 | - $html .= '<td>' . DataUtils::setFormat( $reciboDTO->getDthDataHoraRecebimentoFinal(),'dd/mm/yyyy hh:mm') . '</td>'; | |
315 | + $html .= '<td>' . $reciboDTO->getDthDataHoraRecebimentoFinal() . '</td>'; | |
321 | 316 | $html .= '</tr>'; |
322 | 317 | |
323 | 318 | $html .= '<tr>'; |
... | ... | @@ -347,17 +342,15 @@ class ReciboPeticionamentoRN extends InfraRN { |
347 | 342 | } |
348 | 343 | |
349 | 344 | $html .= '<tr>'; |
350 | - $html .= '<td style="font-weight: bold;">Interessados:</td>'; | |
351 | - $html .= '<td></td>'; | |
345 | + $html .= '<td colspan="2" style="font-weight: bold;">Interessados:</td>'; | |
352 | 346 | $html .= '</tr>'; |
353 | 347 | |
354 | 348 | if( $arrInteressados != null && count( $arrInteressados ) > 0 ){ |
355 | 349 | |
356 | 350 | foreach ($arrInteressados as $interessado) { |
357 | - $html .= '<tr>'; | |
358 | - $html .= '<td>     ' . $interessado->getStrNome() . '</td>'; | |
359 | - $html .= '<td></td>'; | |
360 | - $html .= '</tr>'; | |
351 | + $html .= '<tr>'; | |
352 | + $html .= '<td colspan="2" >     ' . $interessado->getStrNome() . '</td>'; | |
353 | + $html .= '</tr>'; | |
361 | 354 | } |
362 | 355 | |
363 | 356 | } | ... | ... |