Commit 827e59f0cd4f47bc2a2867968c16ac17c6509a08

Authored by Nei Jobson da Costa Carneiro
1 parent 395143fc

Versão 1.0.0 finalizada para publicação.

sei/institucional/peticionamento/controlador_ajax_externo.php
@@ -48,45 +48,46 @@ try{ @@ -48,45 +48,46 @@ try{
48 break; 48 break;
49 49
50 case 'contato_auto_completar_contexto_pesquisa': 50 case 'contato_auto_completar_contexto_pesquisa':
  51 +
51 //alterado para atender anatel exibir apenas nome contato 52 //alterado para atender anatel exibir apenas nome contato
52 $objContatoDTO = new ContatoDTO(); 53 $objContatoDTO = new ContatoDTO();
53 $objContatoDTO->retNumIdContato(); 54 $objContatoDTO->retNumIdContato();
54 $objContatoDTO->retStrSigla(); 55 $objContatoDTO->retStrSigla();
55 - $objContatoDTO->retStrNome();  
56 - 56 + $objContatoDTO->retStrNome();
57 $objContatoDTO->setStrPalavrasPesquisa($_POST['extensao']); 57 $objContatoDTO->setStrPalavrasPesquisa($_POST['extensao']);
58 - $objContatoDTO->setStrNome("%".$_POST['extensao']."%", InfraDTO::$OPER_LIKE);  
59 58
60 - $objContatoDTO->adicionarCriterio(array('SinAtivo','Nome'),  
61 - array(InfraDTO::$OPER_IGUAL,InfraDTO::$OPER_LIKE),  
62 - array('S', "%".$_POST['extensao']."%" ),  
63 - InfraDTO::$OPER_LOGICO_OR); 59 + $objContatoDTO->adicionarCriterio(
  60 + array('SinAtivo','Nome'),
  61 + array(InfraDTO::$OPER_IGUAL, InfraDTO::$OPER_LIKE ),
  62 + array('S', '%'.$_POST["extensao"]. '%' ),
  63 + array( InfraDTO::$OPER_LOGICO_AND )
  64 + );
64 65
65 - $objContatoDTO->setStrSinContexto('S');  
66 $objContatoDTO->setNumMaxRegistrosRetorno(50); 66 $objContatoDTO->setNumMaxRegistrosRetorno(50);
67 $objContatoDTO->setOrdStrNome(InfraDTO::$TIPO_ORDENACAO_ASC); 67 $objContatoDTO->setOrdStrNome(InfraDTO::$TIPO_ORDENACAO_ASC);
68 68
69 $objRelTipoContextoPeticionamentoDTO = new RelTipoContextoPeticionamentoDTO(); 69 $objRelTipoContextoPeticionamentoDTO = new RelTipoContextoPeticionamentoDTO();
70 $objRelTipoContextoPeticionamentoRN = new GerirTipoContextoPeticionamentoRN(); 70 $objRelTipoContextoPeticionamentoRN = new GerirTipoContextoPeticionamentoRN();
71 $objRelTipoContextoPeticionamentoDTO->retTodos(); 71 $objRelTipoContextoPeticionamentoDTO->retTodos();
72 - $objRelTipoContextoPeticionamentoDTO->setStrSinSelecaoInteressado('S'); 72 + //$objRelTipoContextoPeticionamentoDTO->setStrSinSelecaoInteressado('S');
73 $arrobjRelTipoContextoPeticionamentoDTO = $objRelTipoContextoPeticionamentoRN->listar( $objRelTipoContextoPeticionamentoDTO ); 73 $arrobjRelTipoContextoPeticionamentoDTO = $objRelTipoContextoPeticionamentoRN->listar( $objRelTipoContextoPeticionamentoDTO );
  74 +
74 if(!empty($arrobjRelTipoContextoPeticionamentoDTO)){ 75 if(!empty($arrobjRelTipoContextoPeticionamentoDTO)){
75 - $arrId = array(); 76 +
  77 + $arrId = array();
  78 +
76 foreach($arrobjRelTipoContextoPeticionamentoDTO as $item){ 79 foreach($arrobjRelTipoContextoPeticionamentoDTO as $item){
77 array_push($arrId, $item->getNumIdTipoContextoContato()); 80 array_push($arrId, $item->getNumIdTipoContextoContato());
78 } 81 }
79 - $objContatoDTO->adicionarCriterio(array('IdTipoContextoContato'),  
80 - array(InfraDTO::$OPER_IN),  
81 - array($arrId)); 82 +
  83 + $objContatoDTO->adicionarCriterio(array('IdTipoContextoContato', 'IdTipoContextoContato'),
  84 + array(InfraDTO::$OPER_IN, InfraDTO::$OPER_IGUAL),
  85 + array($arrId, null),
  86 + array( InfraDTO::$OPER_LOGICO_OR));
82 } 87 }
83 88
84 $objContatoRN = new ContatoRN(); 89 $objContatoRN = new ContatoRN();
85 $arrObjContatoDTO = $objContatoRN->pesquisarRN0471($objContatoDTO); 90 $arrObjContatoDTO = $objContatoRN->pesquisarRN0471($objContatoDTO);
86 -  
87 - //$objContatoRN = new ContatoRN();  
88 - //$arrObjContatoDTO = $objContatoRN->listarRN0325($objContatoDTO);  
89 - //$arrObjContatoDTO = $objContatoRN->pesquisarRN0471($objContatoDTO);  
90 91
91 $xml = InfraAjax::gerarXMLItensArrInfraDTO($arrObjContatoDTO,'IdContato', 'Nome'); 92 $xml = InfraAjax::gerarXMLItensArrInfraDTO($arrObjContatoDTO,'IdContato', 'Nome');
92 InfraAjax::enviarXML($xml); 93 InfraAjax::enviarXML($xml);
sei/institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_lista.php
@@ -326,7 +326,6 @@ $urlForm = 'institucional/peticionamento/indisponibilidade_peticionamento_usuari @@ -326,7 +326,6 @@ $urlForm = 'institucional/peticionamento/indisponibilidade_peticionamento_usuari
326 326
327 <?php PaginaPeticionamentoExterna::getInstance()->montarBarraComandosSuperior($arrComandos); ?> 327 <?php PaginaPeticionamentoExterna::getInstance()->montarBarraComandosSuperior($arrComandos); ?>
328 328
329 - <!-- <div style="height:4.5em; margin-top: 11px; overflow: hidden;" class="infraAreaDados" id="divInfraAreaDados"> -->  
330 <div style="height:auto; width: 98%;" class="infraAreaDados" id="divInfraAreaDados"> 329 <div style="height:auto; width: 98%;" class="infraAreaDados" id="divInfraAreaDados">
331 330
332 <label id="lblDescricao" class="infraLabelOpcional"> 331 <label id="lblDescricao" class="infraLabelOpcional">
@@ -340,7 +339,7 @@ $urlForm = &#39;institucional/peticionamento/indisponibilidade_peticionamento_usuari @@ -340,7 +339,7 @@ $urlForm = &#39;institucional/peticionamento/indisponibilidade_peticionamento_usuari
340 <!-- Data Inicio --> 339 <!-- Data Inicio -->
341 <label id="lblDtInicio" for="txtDtInicio" class="infraLabelOpcional">Início:</label> 340 <label id="lblDtInicio" for="txtDtInicio" class="infraLabelOpcional">Início:</label>
342 <input type="text" name="txtDtInicio" id="txtDtInicio" onchange="validDate('I');" 341 <input type="text" name="txtDtInicio" id="txtDtInicio" onchange="validDate('I');"
343 - value="<?= $strDtInicio ?>" 342 + value="<?= PaginaSEIExterna::tratarHTML( $strDtInicio ) ?>"
344 onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" class="infraText" /> 343 onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" class="infraText" />
345 <img src="<?=PaginaPeticionamentoExterna::getInstance()->getDiretorioImagensGlobal()?>/calendario.gif" id="imgDtInicio" 344 <img src="<?=PaginaPeticionamentoExterna::getInstance()->getDiretorioImagensGlobal()?>/calendario.gif" id="imgDtInicio"
346 title="Selecionar Data/Hora Inicial" 345 title="Selecionar Data/Hora Inicial"
@@ -350,7 +349,7 @@ $urlForm = &#39;institucional/peticionamento/indisponibilidade_peticionamento_usuari @@ -350,7 +349,7 @@ $urlForm = &#39;institucional/peticionamento/indisponibilidade_peticionamento_usuari
350 <!-- Data Fim --> 349 <!-- Data Fim -->
351 <label id="lblDtFim" for="txtDtFim" class="infraLabelOpcional">Fim:</label> 350 <label id="lblDtFim" for="txtDtFim" class="infraLabelOpcional">Fim:</label>
352 <input type="text" name="txtDtFim" onchange="validDate('F');" id="txtDtFim" 351 <input type="text" name="txtDtFim" onchange="validDate('F');" id="txtDtFim"
353 - value="<?= $strDtFim ?>" 352 + value="<?= PaginaSEIExterna::tratarHTML( $strDtFim ) ?>"
354 onchange="validDate('F');" onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" maxlength="16" class="infraText"/> 353 onchange="validDate('F');" onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" maxlength="16" class="infraText"/>
355 <img src="<?=PaginaPeticionamentoExterna::getInstance()->getDiretorioImagensGlobal()?>/calendario.gif" id="imgDtFim" 354 <img src="<?=PaginaPeticionamentoExterna::getInstance()->getDiretorioImagensGlobal()?>/calendario.gif" id="imgDtFim"
356 title="Selecionar Data/Hora Final" 355 title="Selecionar Data/Hora Final"
@@ -368,7 +367,6 @@ $urlForm = &#39;institucional/peticionamento/indisponibilidade_peticionamento_usuari @@ -368,7 +367,6 @@ $urlForm = &#39;institucional/peticionamento/indisponibilidade_peticionamento_usuari
368 367
369 <? 368 <?
370 PaginaPeticionamentoExterna::getInstance()->montarAreaTabela($strResultado,$numRegistros); 369 PaginaPeticionamentoExterna::getInstance()->montarAreaTabela($strResultado,$numRegistros);
371 -// PaginaPeticionamentoExterna::getInstance()->montarBarraComandosInferior($arrComandos);  
372 ?> 370 ?>
373 371
374 </div> 372 </div>
sei/institucional/peticionamento/peticionamento_contato_selecionar.php
@@ -460,6 +460,10 @@ function selecionarTipoContato(){ @@ -460,6 +460,10 @@ function selecionarTipoContato(){
460 document.getElementById('frmContatoLista').submit(); 460 document.getElementById('frmContatoLista').submit();
461 } 461 }
462 462
  463 +function pesquisar(){
  464 + document.getElementById('frmContatoLista').submit();
  465 +}
  466 +
463 <? 467 <?
464 PaginaSEIExterna::getInstance()->fecharJavaScript(); 468 PaginaSEIExterna::getInstance()->fecharJavaScript();
465 PaginaSEIExterna::getInstance()->fecharHead(); 469 PaginaSEIExterna::getInstance()->fecharHead();
sei/institucional/peticionamento/peticionamento_interessado_cadastro.php
@@ -31,11 +31,12 @@ try { @@ -31,11 +31,12 @@ try {
31 $strTitulo = 'Alterar Interessado'; 31 $strTitulo = 'Alterar Interessado';
32 } 32 }
33 33
34 - if( isset( $_GET['cpf']) ){ 34 + $janelaSelecaoPorNome = SessaoSEIExterna::getInstance()->getAtributo('janelaSelecaoPorNome');
  35 + if( $janelaSelecaoPorNome != null && $janelaSelecaoPorNome != "" ) {
  36 +
  37 + } else if( isset( $_GET['cpf']) ){
35 $strTitulo .= ' - Pessoa Física'; 38 $strTitulo .= ' - Pessoa Física';
36 - }  
37 -  
38 - else if( isset( $_GET['cnpj']) ){ 39 + } else if( isset( $_GET['cnpj']) ){
39 $strTitulo .= ' - Pessoa Jurídica'; 40 $strTitulo .= ' - Pessoa Jurídica';
40 } 41 }
41 42
@@ -257,20 +258,20 @@ try { @@ -257,20 +258,20 @@ try {
257 $_POST['txtRazaoSocial'] = $objContatoDTO->getStrNome(); 258 $_POST['txtRazaoSocial'] = $objContatoDTO->getStrNome();
258 } 259 }
259 260
260 - $_POST['numeroOab'] = $objContatoDTO->getStrMatriculaOab();  
261 - $_POST['txtCPF'] = $objContatoDTO->getDblCpf();  
262 - $_POST['txtCNPJ'] = $objContatoDTO->getDblCnpj();  
263 - $_POST['rg'] = $objContatoDTO->getDblRg();  
264 - $_POST['orgaoExpedidor'] = $objContatoDTO->getStrOrgaoExpedidor();  
265 - $_POST['telefone'] = $objContatoDTO->getStrTelefone();  
266 - $_POST['email'] = $objContatoDTO->getStrEmail();  
267 - $_POST['sitioInternet'] = $objContatoDTO->getStrSitioInternet();  
268 - $_POST['endereco'] = $objContatoDTO->getStrEndereco();  
269 - $_POST['bairro'] = $objContatoDTO->getStrBairro();  
270 - $_POST['estado'] = $objContatoDTO->getStrSiglaEstado();  
271 - $_POST['cidade'] = $objContatoDTO->getStrNomeCidade();  
272 - $_POST['pais'] = $objContatoDTO->getStrNomePais();  
273 - $_POST['cep'] = $objContatoDTO->getStrCep(); 261 + $_POST['numeroOab'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getStrMatriculaOab() );
  262 + $_POST['txtCPF'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getDblCpf() );
  263 + $_POST['txtCNPJ'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getDblCnpj() );
  264 + $_POST['rg'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getDblRg() );
  265 + $_POST['orgaoExpedidor'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getStrOrgaoExpedidor() );
  266 + $_POST['telefone'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getStrTelefone() );
  267 + $_POST['email'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getStrEmail() );
  268 + $_POST['sitioInternet'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getStrSitioInternet() );
  269 + $_POST['endereco'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getStrEndereco() );
  270 + $_POST['bairro'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getStrBairro() );
  271 + $_POST['estado'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getStrSiglaEstado() );
  272 + $_POST['cidade'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getStrNomeCidade() );
  273 + $_POST['pais'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getStrNomePais() );
  274 + $_POST['cep'] = PaginaSEIExterna::tratarHTML( $objContatoDTO->getStrCep() );
274 275
275 $_POST['tratamento'] = $objContatoDTO->getNumIdTratamento(); 276 $_POST['tratamento'] = $objContatoDTO->getNumIdTratamento();
276 $_POST['vocativo'] = $objContatoDTO->getNumIdVocativo(); 277 $_POST['vocativo'] = $objContatoDTO->getNumIdVocativo();
sei/institucional/peticionamento/peticionamento_interessado_cadastro_js.php
@@ -273,8 +273,9 @@ function inicializar(){ @@ -273,8 +273,9 @@ function inicializar(){
273 273
274 <?php 274 <?php
275 $janelaSelecaoPorNome = SessaoSEIExterna::getInstance()->getAtributo('janelaSelecaoPorNome'); 275 $janelaSelecaoPorNome = SessaoSEIExterna::getInstance()->getAtributo('janelaSelecaoPorNome');
276 - if( $janelaSelecaoPorNome != null && $janelaSelecaoPorNome != "" ) { ?> 276 + if( $janelaSelecaoPorNome != null && $janelaSelecaoPorNome != "" && !isset( $_GET['cadastro'] ) ) { ?>
277 277
  278 + //alert('aqui <?= $janelaSelecaoPorNome ?>');
278 document.getElementById("rdPF").checked = false; 279 document.getElementById("rdPF").checked = false;
279 document.getElementById("rdPF").checked = ''; 280 document.getElementById("rdPF").checked = '';
280 281
@@ -332,12 +333,12 @@ function salvar(){ @@ -332,12 +333,12 @@ function salvar(){
332 } 333 }
333 334
334 if( interessado1 == '' ){ 335 if( interessado1 == '' ){
335 - alert('Informe o Interessado.');  
336 - return; 336 + alert('Informe se o Interessado é Pessoa Física ou Pessoa Jurídica.');
  337 + return;
337 } 338 }
338 339
339 else if( interessado1 == 'pf' && interessado2 == ''){ 340 else if( interessado1 == 'pf' && interessado2 == ''){
340 - alert('Informe se o interessado possui ou não vínculo com Pessoa Jurídica.'); 341 + alert('Informe se o Interessado Pessoa Física a ser cadastrado possui ou não vínculo com Pessoa Jurídica.');
341 return; 342 return;
342 } 343 }
343 344
@@ -345,7 +346,7 @@ function salvar(){ @@ -345,7 +346,7 @@ function salvar(){
345 var tipoInteressado = document.getElementById('tipoInteressado').value; 346 var tipoInteressado = document.getElementById('tipoInteressado').value;
346 347
347 if( tipoInteressado == '' || tipoInteressado == 'null' ){ 348 if( tipoInteressado == '' || tipoInteressado == 'null' ){
348 - alert('Informe o tipo de interessado.'); 349 + alert('Informe o Tipo de Interessado.');
349 document.getElementById('tipoInteressado').focus(); 350 document.getElementById('tipoInteressado').focus();
350 return; 351 return;
351 } 352 }
@@ -355,12 +356,12 @@ function salvar(){ @@ -355,12 +356,12 @@ function salvar(){
355 var razaoSocial = document.getElementById('txtRazaoSocial').value; 356 var razaoSocial = document.getElementById('txtRazaoSocial').value;
356 357
357 if( interessado1 == 'pf' && nome == '' ){ 358 if( interessado1 == 'pf' && nome == '' ){
358 - alert('Informe o nome.'); 359 + alert('Informe o Nome Completo.');
359 document.getElementById('txtNome').focus(); 360 document.getElementById('txtNome').focus();
360 return; 361 return;
361 362
362 } else if( interessado1 == 'pj' && razaoSocial == '' ){ 363 } else if( interessado1 == 'pj' && razaoSocial == '' ){
363 - alert('Informe a razão social.'); 364 + alert('Informe a Razão Social.');
364 document.getElementById('txtRazaoSocial').focus(); 365 document.getElementById('txtRazaoSocial').focus();
365 return; 366 return;
366 } 367 }
@@ -370,12 +371,12 @@ function salvar(){ @@ -370,12 +371,12 @@ function salvar(){
370 var idContextoAjax = document.getElementById('hdnIdContextoContato'); 371 var idContextoAjax = document.getElementById('hdnIdContextoContato');
371 372
372 if( interessado1 == 'pf' && interessado2 == '1' && ( pjVinculada == '' || idContextoAjax == null || idContextoAjax.value=='' ) ){ 373 if( interessado1 == 'pf' && interessado2 == '1' && ( pjVinculada == '' || idContextoAjax == null || idContextoAjax.value=='' ) ){
373 - alert('Informe a pessoa jurídica vinculada.'); 374 + alert('Informe a Razão Social da Pessoa Jurídica vinculada.');
374 document.getElementById('txtPjVinculada').focus(); 375 document.getElementById('txtPjVinculada').focus();
375 return; 376 return;
376 } 377 }
377 378
378 - //validar cpf ou cnpj 379 + //validar se o cpf ou o cnpj foram preenchidos
379 var cpf = document.getElementById('txtCPF').value; 380 var cpf = document.getElementById('txtCPF').value;
380 var cnpj = document.getElementById('txtCNPJ').value; 381 var cnpj = document.getElementById('txtCNPJ').value;
381 382
@@ -389,7 +390,22 @@ function salvar(){ @@ -389,7 +390,22 @@ function salvar(){
389 document.getElementById('txtCNPJ').focus(); 390 document.getElementById('txtCNPJ').focus();
390 return; 391 return;
391 } 392 }
392 - 393 +
  394 + //validar se o CPF ou o CNPJ preenchidos são válidos
  395 + if ( document.getElementById('txtCNPJ').value != "" && !infraValidarCnpj(infraTrim(document.getElementById('txtCNPJ').value))){
  396 +
  397 + alert('CNPJ inválido.');
  398 + document.getElementById('txtCNPJ').focus();
  399 + return;
  400 + }
  401 +
  402 + if ( document.getElementById('txtCPF').value != "" && !infraValidarCpf(infraTrim(document.getElementById('txtCPF').value))){
  403 +
  404 + alert('CPF inválido.');
  405 + document.getElementById('txtCPF').focus();
  406 + return;
  407 + }
  408 +
393 //rg 409 //rg
394 var rg = document.getElementById('rg').value; 410 var rg = document.getElementById('rg').value;
395 411
@@ -403,7 +419,7 @@ function salvar(){ @@ -403,7 +419,7 @@ function salvar(){
403 var orgaoExpedidor = document.getElementById('orgaoExpedidor').value; 419 var orgaoExpedidor = document.getElementById('orgaoExpedidor').value;
404 420
405 if( interessado1 == 'pf' && orgaoExpedidor == '' ){ 421 if( interessado1 == 'pf' && orgaoExpedidor == '' ){
406 - alert('Informe o órgão expedidor.'); 422 + alert('Informe o Órgão Expedidor do RG.');
407 document.getElementById('orgaoExpedidor').focus(); 423 document.getElementById('orgaoExpedidor').focus();
408 return; 424 return;
409 } 425 }
@@ -412,7 +428,7 @@ function salvar(){ @@ -412,7 +428,7 @@ function salvar(){
412 var tratamento = document.getElementById('tratamento').value; 428 var tratamento = document.getElementById('tratamento').value;
413 429
414 if( interessado1 == 'pf' && ( tratamento == 'null' || tratamento == '') ){ 430 if( interessado1 == 'pf' && ( tratamento == 'null' || tratamento == '') ){
415 - alert('Informe o tratamento.'); 431 + alert('Informe o Tratamento.');
416 document.getElementById('tratamento').focus(); 432 document.getElementById('tratamento').focus();
417 return; 433 return;
418 } 434 }
@@ -421,7 +437,7 @@ function salvar(){ @@ -421,7 +437,7 @@ function salvar(){
421 var cargo = document.getElementById('cargo').value; 437 var cargo = document.getElementById('cargo').value;
422 438
423 if( interessado1 == 'pf' && ( cargo == 'null' || cargo == '') ){ 439 if( interessado1 == 'pf' && ( cargo == 'null' || cargo == '') ){
424 - alert('Informe o cargo.'); 440 + alert('Informe o Cargo.');
425 document.getElementById('cargo').focus(); 441 document.getElementById('cargo').focus();
426 return; 442 return;
427 } 443 }
@@ -430,7 +446,7 @@ function salvar(){ @@ -430,7 +446,7 @@ function salvar(){
430 var vocativo = document.getElementById('vocativo').value; 446 var vocativo = document.getElementById('vocativo').value;
431 447
432 if( interessado1 == 'pf' && ( vocativo == 'null' || vocativo == '') ){ 448 if( interessado1 == 'pf' && ( vocativo == 'null' || vocativo == '') ){
433 - alert('Informe o vocativo.'); 449 + alert('Informe o Vocativo.');
434 document.getElementById('vocativo').focus(); 450 document.getElementById('vocativo').focus();
435 return; 451 return;
436 } 452 }
@@ -439,7 +455,7 @@ function salvar(){ @@ -439,7 +455,7 @@ function salvar(){
439 var telefone = document.getElementById('telefone').value; 455 var telefone = document.getElementById('telefone').value;
440 456
441 if( telefone == ''){ 457 if( telefone == ''){
442 - alert('Informe o telefone.'); 458 + alert('Informe o Telefone.');
443 document.getElementById('telefone').focus(); 459 document.getElementById('telefone').focus();
444 return; 460 return;
445 } 461 }
@@ -447,7 +463,7 @@ function salvar(){ @@ -447,7 +463,7 @@ function salvar(){
447 //email 463 //email
448 if ( document.getElementById('email').value != "" && !infraValidarEmail(infraTrim(document.getElementById('email').value))){ 464 if ( document.getElementById('email').value != "" && !infraValidarEmail(infraTrim(document.getElementById('email').value))){
449 465
450 - alert('E-mail Inválido.'); 466 + alert('E-mail inválido.');
451 document.getElementById('email').focus(); 467 document.getElementById('email').focus();
452 return false; 468 return false;
453 469
@@ -457,7 +473,7 @@ function salvar(){ @@ -457,7 +473,7 @@ function salvar(){
457 var endereco = document.getElementById('endereco').value; 473 var endereco = document.getElementById('endereco').value;
458 474
459 if( endereco == ''){ 475 if( endereco == ''){
460 - alert('Informe o endereço.'); 476 + alert('Informe o Endereço.');
461 document.getElementById('endereco').focus(); 477 document.getElementById('endereco').focus();
462 return; 478 return;
463 } 479 }
@@ -466,7 +482,7 @@ function salvar(){ @@ -466,7 +482,7 @@ function salvar(){
466 var bairro = document.getElementById('bairro').value; 482 var bairro = document.getElementById('bairro').value;
467 483
468 if( bairro == ''){ 484 if( bairro == ''){
469 - alert('Informe o bairro.'); 485 + alert('Informe o Bairro.');
470 document.getElementById('bairro').focus(); 486 document.getElementById('bairro').focus();
471 return; 487 return;
472 } 488 }
@@ -474,18 +490,18 @@ function salvar(){ @@ -474,18 +490,18 @@ function salvar(){
474 //estado 490 //estado
475 var estado = document.getElementById('selEstado').value; 491 var estado = document.getElementById('selEstado').value;
476 492
477 - if( estado == ''){  
478 - alert('Informe o estado.');  
479 - document.getElementById('estado').focus(); 493 + if( estado == '' || estado == 'null'){
  494 + alert('Informe o Estado.');
  495 + document.getElementById('selEstado').focus();
480 return; 496 return;
481 } 497 }
482 498
483 //cidade 499 //cidade
484 var cidade = document.getElementById('selCidade').value; 500 var cidade = document.getElementById('selCidade').value;
485 501
486 - if( cidade == ''){  
487 - alert('Informe a cidade.');  
488 - document.getElementById('cidade').focus(); 502 + if( cidade == '' || cidade == 'null'){
  503 + alert('Informe a Cidade.');
  504 + document.getElementById('selCidade').focus();
489 return; 505 return;
490 } 506 }
491 507
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro.php
@@ -168,10 +168,12 @@ PaginaSEIExterna::getInstance()-&gt;abrirAreaDados(&#39;auto&#39;); @@ -168,10 +168,12 @@ PaginaSEIExterna::getInstance()-&gt;abrirAreaDados(&#39;auto&#39;);
168 168
169 <label id="descTipoPessoa" class="infraLabelObrigatorio"> </label> <br/> 169 <label id="descTipoPessoa" class="infraLabelObrigatorio"> </label> <br/>
170 170
171 - <input type="text" id="txtCPF" class="infraText" name="txtCPF" onkeydown="return alterandoCPF(this, event)" 171 + <input type="text" id="txtCPF" class="infraText"
  172 + name="txtCPF"
  173 + onkeypress="return alterandoCPF(this, event)"
172 style="width:140px; display:none;"/> 174 style="width:140px; display:none;"/>
173 175
174 - <input type="text" id="txtCNPJ" class="infraText" name="txtCNPJ" onkeydown="return alterandoCNPJ(this, event)" 176 + <input type="text" id="txtCNPJ" class="infraText" name="txtCNPJ" onkeypress="return alterandoCNPJ(this, event)"
175 style="width:140px; display:none;"/> 177 style="width:140px; display:none;"/>
176 178
177 <input type="button" id="btValidarCPFCNPJ" class="infraText" value="Validar" style="visibility: hidden; margin-left: 2px;" onclick="abrirCadastroInteressado()" /> 179 <input type="button" id="btValidarCPFCNPJ" class="infraText" value="Validar" style="visibility: hidden; margin-left: 2px;" onclick="abrirCadastroInteressado()" />
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_bloco_documentos.php
@@ -308,11 +308,11 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()-&gt;assinarLink(&#39;co @@ -308,11 +308,11 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()-&gt;assinarLink(&#39;co
308 308
309 if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ ?> 309 if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ ?>
310 310
311 - <br/>  
312 - <label class="infraLabelObrigatorio" for="fileArquivoEssencial">Documentos Essenciais (<?  
313 - echo $strTamanhoMaximoComplementar;  
314 - echo "<input type=hidden name=hdnTamArquivoEssencial id=hdnTamArquivoEssencial value='" . $strTamanhoMaximoComplementar . "'>";  
315 - ?>):</label><br/> 311 + <hr style="border:none; padding:0; margin:5px 6px 12px 6px; border-top:medium double #333" />
  312 + <label class="infraLabelObrigatorio" for="fileArquivoEssencial">Documentos Essenciais (<?
  313 + echo $strTamanhoMaximoComplementar;
  314 + echo "<input type=hidden name=hdnTamArquivoEssencial id=hdnTamArquivoEssencial value='" . $strTamanhoMaximoComplementar . "'>";
  315 + ?>):</label><br/>
316 316
317 <input style="margin-top:0.3%" type="file" id="fileArquivoEssencial" name="fileArquivoEssencial" size="50" /> <br/><br/> 317 <input style="margin-top:0.3%" type="file" id="fileArquivoEssencial" name="fileArquivoEssencial" size="50" /> <br/><br/>
318 318
@@ -480,7 +480,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()-&gt;assinarLink(&#39;co @@ -480,7 +480,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()-&gt;assinarLink(&#39;co
480 <th align="center" class="infraTh" style="width:50px;">Ações</th> 480 <th align="center" class="infraTh" style="width:50px;">Ações</th>
481 </tr> 481 </tr>
482 482
483 - </table> <br/><br/> 483 + </table> <br/>
484 484
485 <? } ?> 485 <? } ?>
486 </form> 486 </form>
@@ -505,11 +505,11 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()-&gt;assinarLink(&#39;co @@ -505,11 +505,11 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()-&gt;assinarLink(&#39;co
505 505
506 if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ ?> 506 if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ ?>
507 507
508 - <br/>  
509 - <label class="infraLabel" for="fileArquivoComplementar">Documentos Complementares (<? 508 + <hr style="border:none; padding:0; margin:5px 6px 12px 6px; border-top:medium double #333" />
  509 + <label class="infraLabel" for="fileArquivoComplementar">Documentos Complementares (<?
510 echo $strTamanhoMaximoComplementar; 510 echo $strTamanhoMaximoComplementar;
511 echo "<input type=hidden name=hdnTamArquivoComplementar id=hdnTamArquivoComplementar value='" . $strTamanhoMaximoComplementar . "'>"; 511 echo "<input type=hidden name=hdnTamArquivoComplementar id=hdnTamArquivoComplementar value='" . $strTamanhoMaximoComplementar . "'>";
512 - ?>):</label><br/> 512 + ?>):</label><br/>
513 513
514 <input style="margin-top:0.3%" type="file" id="fileArquivoComplementar" name="fileArquivoComplementar" size="50" /> <br/><br/> 514 <input style="margin-top:0.3%" type="file" id="fileArquivoComplementar" name="fileArquivoComplementar" size="50" /> <br/><br/>
515 515
@@ -672,7 +672,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()-&gt;assinarLink(&#39;co @@ -672,7 +672,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()-&gt;assinarLink(&#39;co
672 <th align="center" class="infraTh" style="width:50px;">Ações</th> 672 <th align="center" class="infraTh" style="width:50px;">Ações</th>
673 </tr> 673 </tr>
674 674
675 - </table> <br/><br/> 675 + </table> <br/>
676 676
677 <? } ?> 677 <? } ?>
678 </form> 678 </form>
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_inicializacao.php
@@ -282,6 +282,10 @@ $arrTipoConferencia = $tipoConferenciaRN-&gt;listar( $tipoConferenciaDTO ); @@ -282,6 +282,10 @@ $arrTipoConferencia = $tipoConferenciaRN-&gt;listar( $tipoConferenciaDTO );
282 $numSeiTamMbDocExterno = $objInfraParametro->getValor('SEI_TAM_MB_DOC_EXTERNO'); 282 $numSeiTamMbDocExterno = $objInfraParametro->getValor('SEI_TAM_MB_DOC_EXTERNO');
283 $numSeiTamMbDocExterno = ($numSeiTamMbDocExterno < 1024 ? $numSeiTamMbDocExterno." MB" : (round($numSeiTamMbDocExterno/1024,2))." GB"); 283 $numSeiTamMbDocExterno = ($numSeiTamMbDocExterno < 1024 ? $numSeiTamMbDocExterno." MB" : (round($numSeiTamMbDocExterno/1024,2))." GB");
284 284
  285 +//limpando variavel de sessao que controla detalhes de exibicao internos
  286 +//da janela de cadastro de interessado (quando é indicacao por nome)
  287 +SessaoSEIExterna::getInstance()->removerAtributo('janelaSelecaoPorNome');
  288 +
285 //$arrTipoConferencia = ; 289 //$arrTipoConferencia = ;
286 $urlBaseLink = ""; 290 $urlBaseLink = "";
287 $arrComandos = array(); 291 $arrComandos = array();
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_js.php
@@ -310,7 +310,8 @@ function validarUploadArquivoEssencial(){ @@ -310,7 +310,8 @@ function validarUploadArquivoEssencial(){
310 310
311 //verificar se algum arquivo foi selecionado para o upload 311 //verificar se algum arquivo foi selecionado para o upload
312 if( fileArquivo.value == '' ){ 312 if( fileArquivo.value == '' ){
313 - alert('Informe o arquivo para upload.'); 313 + //alert('Informe o arquivo para upload.');
  314 + alert('Deve adicionar pelo menos um Documento Essencial para cada Tipo.');
314 isValido = false; 315 isValido = false;
315 fileArquivo.focus(); 316 fileArquivo.focus();
316 return; 317 return;
@@ -532,7 +533,7 @@ function receberInteressado( arrDadosInteressado, InteressadoCustomizado ){ @@ -532,7 +533,7 @@ function receberInteressado( arrDadosInteressado, InteressadoCustomizado ){
532 533
533 objTabelaInteressado.adicionarAcoes( 534 objTabelaInteressado.adicionarAcoes(
534 arrDadosInteressado[0] , 535 arrDadosInteressado[0] ,
535 - "<a href='javascript:;' onclick=\"abrirCadastroInteressadoAlterar('" + arrDadosInteressado[0] +"', '" + arrDadosInteressado[1] +"', '"+ arrDadosInteressado[2] +"')\"><img title='Alterar interessado' alt='Alterar interessado' src='/infra_css/imagens/alterar.gif' class='infraImg' /></a>", 536 + "<a href='javascript:;' onclick=\"abrirCadastroInteressadoAlterar('" + arrDadosInteressado[0] +"', '" + arrDadosInteressado[1] +"', '"+ arrDadosInteressado[2] +"')\"><img title='Alterar Interessado' alt='Alterar Interessado' src='/infra_css/imagens/alterar.gif' class='infraImg' /></a>",
536 false, 537 false,
537 true); 538 true);
538 539
@@ -792,6 +793,19 @@ function validarFormulario(){ @@ -792,6 +793,19 @@ function validarFormulario(){
792 tbDocumentoPrincipal != undefined ){ 793 tbDocumentoPrincipal != undefined ){
793 794
794 var hdnDocPrincipal = document.getElementById('hdnDocPrincipal').value; 795 var hdnDocPrincipal = document.getElementById('hdnDocPrincipal').value;
  796 +
  797 + var strFormatoDocumento = '';
  798 + var cbTipoConferencia = document.getElementById('TipoConferenciaPrincipal');
  799 + var strTipoConferencia = document.getElementById('TipoConferenciaPrincipal').value;
  800 +
  801 + var radios = document.getElementsByName('formatoDocumentoPrincipal');
  802 + for (var i = 0, length = radios.length; i < length; i++) {
  803 +
  804 + if (radios[i].checked) {
  805 + strFormatoDocumento = radios[i].value;
  806 + break;
  807 + }
  808 + }
795 809
796 if( hdnDocPrincipal == "" && fileArquivoPrincipal.value == ''){ 810 if( hdnDocPrincipal == "" && fileArquivoPrincipal.value == ''){
797 alert('Informe o Documento Principal.'); 811 alert('Informe o Documento Principal.');
@@ -812,8 +826,14 @@ function validarFormulario(){ @@ -812,8 +826,14 @@ function validarFormulario(){
812 alert('Informe a Hipótese Legal.'); 826 alert('Informe a Hipótese Legal.');
813 hipoteseLegalPrincipal.focus(); 827 hipoteseLegalPrincipal.focus();
814 return false; 828 return false;
  829 + } else if( hdnDocPrincipal == "" && strFormatoDocumento == ''){
  830 + alert('Informe o Formato do Documento.');
  831 + return false;
  832 + } else if( hdnDocPrincipal == "" && strFormatoDocumento == 'digitalizado' && strTipoConferencia == '' ){
  833 + alert('Informe a Conferência com o documento digitalizado.');
  834 + return false;
815 } 835 }
816 - 836 +
817 } 837 }
818 838
819 //se for documento gerado sempre valida complemento, nivel de acesso e hipotese legal 839 //se for documento gerado sempre valida complemento, nivel de acesso e hipotese legal
@@ -1096,11 +1116,11 @@ function abrirCadastroInteressado(){ @@ -1096,11 +1116,11 @@ function abrirCadastroInteressado(){
1096 $('#hdnCustomizado').val(''); 1116 $('#hdnCustomizado').val('');
1097 1117
1098 if( chkTipoPessoaFisica ){ 1118 if( chkTipoPessoaFisica ){
1099 - var str = '<?= SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_interessado_cadastro&tipo_selecao=2&cpf=true') ?>'; 1119 + var str = '<?= SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_interessado_cadastro&tipo_selecao=2&cpf=true&cadastro=true') ?>';
1100 } 1120 }
1101 1121
1102 else if( chkTipoPessoaJuridica ){ 1122 else if( chkTipoPessoaJuridica ){
1103 - var str = '<?= SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_interessado_cadastro&tipo_selecao=2&cnpj=true') ?>'; 1123 + var str = '<?= SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_interessado_cadastro&tipo_selecao=2&cnpj=true&cadastro=true') ?>';
1104 } 1124 }
1105 1125
1106 infraAbrirJanela( str, 'cadastrarInteressado', 900, 900, '', false); //modal 1126 infraAbrirJanela( str, 'cadastrarInteressado', 900, 900, '', false); //modal
@@ -1266,7 +1286,13 @@ function carregarCamposDocPrincipalUpload(){ @@ -1266,7 +1286,13 @@ function carregarCamposDocPrincipalUpload(){
1266 1286
1267 //concatenacao de "Tipo" e "Complemento" 1287 //concatenacao de "Tipo" e "Complemento"
1268 var cbTpoPrincipal = document.getElementById('tipoDocumentoPrincipal'); 1288 var cbTpoPrincipal = document.getElementById('tipoDocumentoPrincipal');
1269 - var strComplemento = document.getElementById('complementoPrincipal').value; 1289 +
  1290 + //abordagem anti-XSS client side
  1291 + var htmlComplemento = document.getElementById('complementoPrincipal').value;
  1292 + var escaped = $("<pre>").text(htmlComplemento).html();
  1293 + var strComplemento = escaped;
  1294 +
  1295 + //var strComplemento = document.getElementById('complementoPrincipal').value;
1270 var documento = getStrTipoDocumento( cbTpoPrincipal.value, 'Principal' ) + ' ' + strComplemento; 1296 var documento = getStrTipoDocumento( cbTpoPrincipal.value, 'Principal' ) + ' ' + strComplemento;
1271 1297
1272 var nivelAcesso = getStrNivelAcesso( document.getElementById('nivelAcesso1').value ); 1298 var nivelAcesso = getStrNivelAcesso( document.getElementById('nivelAcesso1').value );
@@ -1407,8 +1433,13 @@ function carregarCamposDocEssencialUpload(){ @@ -1407,8 +1433,13 @@ function carregarCamposDocEssencialUpload(){
1407 1433
1408 //concatenacao de "Tipo" e "Complemento" 1434 //concatenacao de "Tipo" e "Complemento"
1409 var cbTpoEssencial = document.getElementById('tipoDocumentoEssencial'); 1435 var cbTpoEssencial = document.getElementById('tipoDocumentoEssencial');
  1436 +
  1437 + //abordagem anti-XSS client side
  1438 + var htmlComplemento = document.getElementById('complementoEssencial').value;
  1439 + var escaped = $("<pre>").text(htmlComplemento).html();
  1440 + var strComplemento = escaped;
1410 1441
1411 - var strComplemento = document.getElementById('complementoEssencial').value; 1442 + //var strComplemento = document.getElementById('complementoEssencial').value;
1412 var documento = getStrTipoDocumento( cbTpoEssencial.value, 'Essencial' ) + ' ' + strComplemento; 1443 var documento = getStrTipoDocumento( cbTpoEssencial.value, 'Essencial' ) + ' ' + strComplemento;
1413 1444
1414 var nivelAcesso = getStrNivelAcesso( document.getElementById('nivelAcesso2').value ); 1445 var nivelAcesso = getStrNivelAcesso( document.getElementById('nivelAcesso2').value );
@@ -1548,7 +1579,12 @@ function carregarCamposDocComplementarUpload(){ @@ -1548,7 +1579,12 @@ function carregarCamposDocComplementarUpload(){
1548 1579
1549 //concatenacao de "Tipo" e "Complemento" 1580 //concatenacao de "Tipo" e "Complemento"
1550 var cbTpoComplementar = document.getElementById('tipoDocumentoComplementar'); 1581 var cbTpoComplementar = document.getElementById('tipoDocumentoComplementar');
1551 - var strComplemento = document.getElementById('complementoComplementar').value; 1582 +
  1583 + //abordagem anti-XSS client side
  1584 + var htmlComplemento = document.getElementById('complementoComplementar').value;
  1585 + var escaped = $("<pre>").text(htmlComplemento).html();
  1586 + var strComplemento = escaped;
  1587 +
1552 var documento = getStrTipoDocumento( cbTpoComplementar.value, 'Complementar' ) + ' ' + strComplemento; 1588 var documento = getStrTipoDocumento( cbTpoComplementar.value, 'Complementar' ) + ' ' + strComplemento;
1553 1589
1554 var nivelAcesso = getStrNivelAcesso( document.getElementById('nivelAcesso3').value ); 1590 var nivelAcesso = getStrNivelAcesso( document.getElementById('nivelAcesso3').value );
@@ -1777,11 +1813,11 @@ function exibirAjudaCaso1(){ @@ -1777,11 +1813,11 @@ function exibirAjudaCaso1(){
1777 } 1813 }
1778 1814
1779 function exibirAjudaCaso2(){ 1815 function exibirAjudaCaso2(){
1780 - alert('Para o Tipo de Processo escolhido é possível adicionar os Interessados no processo a ser aberto por meio da indicação de CPF ou CNPJ válidos, devendo complementar seus cadastros caso necessário.'); 1816 + alert('Para o Tipo de Processo escolhido é possível adicionar os Interessados do processo a ser aberto por meio da indicação de CPF ou CNPJ válidos, devendo complementar seus cadastros caso necessário.');
1781 } 1817 }
1782 1818
1783 function exibirAjudaCaso3(){ 1819 function exibirAjudaCaso3(){
1784 - alert('Para o Tipo de Processo escolhido é possível adicionar os Interessados no processo a partir da base de Interessados já existente do órgão, devendo complementar seus cadastros caso necessário.'); 1820 + alert('Para o Tipo de Processo escolhido é possível adicionar os Interessados do processo a ser aberto a partir da base de Interessados já existente do órgão. Caso necessário, clique na Lupa "Localizar Interessados" para uma pesquisa mais detalhada ou, na janela aberta, acessar o botão "Cadastrar Novo Interessado" e em seguida selecionar o Interessado cadastrado.');
1785 } 1821 }
1786 1822
1787 function exibirAjudaFormatoDocumento(){ 1823 function exibirAjudaFormatoDocumento(){
sei/institucional/peticionamento/peticionamento_usuario_externo_concluir.php
@@ -131,9 +131,9 @@ try { @@ -131,9 +131,9 @@ try {
131 }catch(Exception $e){ 131 }catch(Exception $e){
132 132
133 //removendo atributos da sessao 133 //removendo atributos da sessao
134 - if( SessaoSEIExterna::getInstance()->isSetAtributo('docPrincipalConteudoHTML') ){  
135 - SessaoSEIExterna::getInstance()->removerAtributo('docPrincipalConteudoHTML');  
136 - } 134 + //if( SessaoSEIExterna::getInstance()->isSetAtributo('docPrincipalConteudoHTML') ){
  135 + //SessaoSEIExterna::getInstance()->removerAtributo('docPrincipalConteudoHTML');
  136 + //}
137 137
138 if( SessaoSEIExterna::getInstance()->isSetAtributo('arrIdAnexoPrincipal') ){ 138 if( SessaoSEIExterna::getInstance()->isSetAtributo('arrIdAnexoPrincipal') ){
139 SessaoSEIExterna::getInstance()->removerAtributo('arrIdAnexoPrincipal'); 139 SessaoSEIExterna::getInstance()->removerAtributo('arrIdAnexoPrincipal');
@@ -189,7 +189,7 @@ PaginaSEIExterna::getInstance()-&gt;abrirAreaDados(&#39;auto&#39;); @@ -189,7 +189,7 @@ PaginaSEIExterna::getInstance()-&gt;abrirAreaDados(&#39;auto&#39;);
189 <p> 189 <p>
190 <label class="infraLabelObrigatorio">Usuário Externo:</label> <br/> 190 <label class="infraLabelObrigatorio">Usuário Externo:</label> <br/>
191 <input type="text" name="loginUsuarioExterno" style="width:60%;" 191 <input type="text" name="loginUsuarioExterno" style="width:60%;"
192 - value="<?= SessaoSEIExterna::getInstance()->getStrNomeUsuarioExterno() ?> " 192 + value="<?= PaginaSEIExterna::tratarHTML( SessaoSEIExterna::getInstance()->getStrNomeUsuarioExterno() ) ?> "
193 readonly="readonly" 193 readonly="readonly"
194 id="loginUsuarioExterno" class="infraText" autocomplete="off" /> 194 id="loginUsuarioExterno" class="infraText" autocomplete="off" />
195 </p> 195 </p>
sei/institucional/peticionamento/recibo_peticionamento_usuario_externo_consulta.php
@@ -376,9 +376,15 @@ try { @@ -376,9 +376,15 @@ try {
376 <br/> 376 <br/>
377 <br/> 377 <br/>
378 378
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) <?= $OrgaoDTO->getStrDescricao() ?>.  
381 - </label> 379 + <p><label>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:</label></p>
  380 + <ul><label>
  381 + <li>a conformidade entre os dados informados e os documentos;</li>
  382 + <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>
  383 + <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>
  384 + <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>
  385 + <li>a consulta periódica ao SEI, a fim de verificar o recebimento de intimações eletrônicas.</li>
  386 + </label></ul>
  387 + <p><label>A existência deste Recibo, do processo e dos documentos acima indicados pode ser conferida no Portal na Internet do(a) <?= $OrgaoDTO->getStrDescricao() ?>.</label></p>
382 388
383 </div> 389 </div>
384 390
sei/institucional/peticionamento/recibo_peticionamento_usuario_externo_lista.php
@@ -212,7 +212,7 @@ function pesquisar(){ @@ -212,7 +212,7 @@ function pesquisar(){
212 PaginaSEIExterna::getInstance()->fecharJavaScript(); 212 PaginaSEIExterna::getInstance()->fecharJavaScript();
213 PaginaSEIExterna::getInstance()->fecharHead(); 213 PaginaSEIExterna::getInstance()->fecharHead();
214 PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); 214 PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"');
215 -$strTipo = $_POST['selTipo'];; 215 +$strTipo = $_POST['selTipo'];
216 ?> 216 ?>
217 <form id="frmLista" method="post" action="<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao='.$_GET['acao']))?>"> 217 <form id="frmLista" method="post" action="<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao='.$_GET['acao']))?>">
218 218
@@ -222,7 +222,9 @@ $strTipo = $_POST[&#39;selTipo&#39;];; @@ -222,7 +222,9 @@ $strTipo = $_POST[&#39;selTipo&#39;];;
222 222
223 <!-- Inicio --> 223 <!-- Inicio -->
224 <label id="lblDataInicio" for="txtDataInicio" class="infraLabelOpcional">Início:</label> 224 <label id="lblDataInicio" for="txtDataInicio" class="infraLabelOpcional">Início:</label>
225 -<input type="text" name="txtDataInicio" id="txtDataInicio" maxlength="16" value="<?= $_POST['txtDataInicio'] ?>" class="infraText" 225 +<input type="text" name="txtDataInicio" id="txtDataInicio" maxlength="16"
  226 + value="<?= PaginaSEIExterna::tratarHTML( $_POST['txtDataInicio'] ) ?>"
  227 + class="infraText"
226 onchange="validDate('F');" onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" maxlength="16" 228 onchange="validDate('F');" onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" maxlength="16"
227 /> 229 />
228 230
@@ -234,7 +236,9 @@ $strTipo = $_POST[&#39;selTipo&#39;];; @@ -234,7 +236,9 @@ $strTipo = $_POST[&#39;selTipo&#39;];;
234 236
235 <!-- Fim --> 237 <!-- Fim -->
236 <label id="lblDataFim" for="txtDataFim" class="infraLabelOpcional">Fim:</label> 238 <label id="lblDataFim" for="txtDataFim" class="infraLabelOpcional">Fim:</label>
237 -<input type="text" name="txtDataFim" id="txtDataFim" value="<?= $_POST['txtDataFim'] ?>" class="infraText" 239 +<input type="text" name="txtDataFim" id="txtDataFim"
  240 + value="<?= PaginaSEIExterna::tratarHTML( $_POST['txtDataFim'] ) ?>"
  241 + class="infraText"
238 onchange="validDate('F');" onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" maxlength="16" 242 onchange="validDate('F');" onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" maxlength="16"
239 /> 243 />
240 244