Commit a2ee5f2eea42b2312178ae2cc390637d5e1cb43c
1 parent
46fa6faa
Exists in
peticionamento_v2.0.2
[CORRECAO] Códigos da versão de correção 2.0.2
Showing
29 changed files
with
161 additions
and
111 deletions
Show diff stats
sei/web/modulos/peticionamento/int/MdPetIntTipoIntimacaoINT.php
| @@ -124,13 +124,13 @@ class MdPetIntTipoIntimacaoINT extends InfraINT | @@ -124,13 +124,13 @@ class MdPetIntTipoIntimacaoINT extends InfraINT | ||
| 124 | $nome = $nomeTpResp . ' ' . $prazo . ' - ' . $resposta; | 124 | $nome = $nomeTpResp . ' ' . $prazo . ' - ' . $resposta; |
| 125 | 125 | ||
| 126 | // TODO: refatorar este trecho, para nao usar este delimitador '-#-', retornar em formato XML usando atributos ou subtags na tags Ids retornada pelo ajax | 126 | // TODO: refatorar este trecho, para nao usar este delimitador '-#-', retornar em formato XML usando atributos ou subtags na tags Ids retornada pelo ajax |
| 127 | - $tipoResposta[$i] = $arrMdPetIntRelIntimRespDTO[$i]->getNumIdMdPetIntTipoResp() . '-#-' . $nome . '-#-' . $arrMdPetIntRelIntimRespDTO[$i]->getStrTipoRespostaAceitaMdPetIntTipoResp(); | 127 | + $tipoResposta[$i] = $arrMdPetIntRelIntimRespDTO[$i]->getNumIdMdPetIntTipoResp() . '±' . $nome . '±' . $arrMdPetIntRelIntimRespDTO[$i]->getStrTipoRespostaAceitaMdPetIntTipoResp(); |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | if($retornaXml){ | 130 | if($retornaXml){ |
| 131 | $xml = '<Documento>'; | 131 | $xml = '<Documento>'; |
| 132 | $xml .= '<TipoRespostaAceita>'. $tipoRespostaAceita .'</TipoRespostaAceita>'; | 132 | $xml .= '<TipoRespostaAceita>'. $tipoRespostaAceita .'</TipoRespostaAceita>'; |
| 133 | - $xml .= '<Ids>'. implode(",", $tipoResposta) .'</Ids>'; | 133 | + $xml .= '<Ids>'. implode("¥", $tipoResposta) .'</Ids>'; |
| 134 | $xml .= '</Documento>'; | 134 | $xml .= '</Documento>'; |
| 135 | }else{ | 135 | }else{ |
| 136 | $xml = $tipoResposta; | 136 | $xml = $tipoResposta; |
sei/web/modulos/peticionamento/md_pet_arquivo_extensao_lista.php
| @@ -229,7 +229,7 @@ try { | @@ -229,7 +229,7 @@ try { | ||
| 229 | 229 | ||
| 230 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir){ | 230 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir){ |
| 231 | $strId = $arrObjArquivoExtensaoDTO[$i]->getNumIdArquivoExtensao(); | 231 | $strId = $arrObjArquivoExtensaoDTO[$i]->getNumIdArquivoExtensao(); |
| 232 | - $strDescricao = PaginaSEI::getInstance()->formatarParametrosJavaScript($arrObjArquivoExtensaoDTO[$i]->getStrExtensao()); | 232 | + $strDescricao = PaginaSEI::getInstance()->formatarParametrosJavaScript(PaginaSEI::tratarHTML($arrObjArquivoExtensaoDTO[$i]->getStrExtensao())); |
| 233 | } | 233 | } |
| 234 | 234 | ||
| 235 | if ($bolAcaoDesativar){ | 235 | if ($bolAcaoDesativar){ |
sei/web/modulos/peticionamento/md_pet_contato_selecionar.php
| @@ -255,7 +255,7 @@ try { | @@ -255,7 +255,7 @@ try { | ||
| 255 | $strResultado .= PaginaSEIExterna::getInstance()->getAcaoTransportarItem($n++,$dto->getNumIdContato()); | 255 | $strResultado .= PaginaSEIExterna::getInstance()->getAcaoTransportarItem($n++,$dto->getNumIdContato()); |
| 256 | 256 | ||
| 257 | $strId = $dto->getNumIdContato(); | 257 | $strId = $dto->getNumIdContato(); |
| 258 | - $strDescricao = PaginaSEIExterna::getInstance()->formatarParametrosJavaScript($strNomeSigla); | 258 | + $strDescricao = PaginaSEIExterna::getInstance()->formatarParametrosJavaScript(PaginaSEIExterna::tratarHTML($strNomeSigla)); |
| 259 | 259 | ||
| 260 | if($_GET['acao']=='contato_selecionar' || $_GET['acao']=='peticionamento_contato_listar'){ | 260 | if($_GET['acao']=='contato_selecionar' || $_GET['acao']=='peticionamento_contato_listar'){ |
| 261 | 261 | ||
| @@ -426,7 +426,7 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"') | @@ -426,7 +426,7 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"') | ||
| 426 | ?> | 426 | ?> |
| 427 | 427 | ||
| 428 | <label id="lblPalavrasPesquisaContatos" for="txtPalavrasPesquisaContatos" class="infraLabelOpcional">Palavras-chave para pesquisa:</label> | 428 | <label id="lblPalavrasPesquisaContatos" for="txtPalavrasPesquisaContatos" class="infraLabelOpcional">Palavras-chave para pesquisa:</label> |
| 429 | - <input type="text" id="txtPalavrasPesquisaContatos" name="txtPalavrasPesquisaContatos" class="infraText" value="<?=$strPalavrasPesquisa;?>" tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" /> | 429 | + <input type="text" id="txtPalavrasPesquisaContatos" name="txtPalavrasPesquisaContatos" class="infraText" value="<?=PaginaSEI::tratarHTML($strPalavrasPesquisa);?>" tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" /> |
| 430 | 430 | ||
| 431 | <label id="lblTipoContextoContato" for="selTipoContextoContato" class="infraLabelOpicional">Tipo de Interessado:</label> | 431 | <label id="lblTipoContextoContato" for="selTipoContextoContato" class="infraLabelOpicional">Tipo de Interessado:</label> |
| 432 | <select id="selTipoContextoContato" name="selTipoContextoContato" class="infraSelect" | 432 | <select id="selTipoContextoContato" name="selTipoContextoContato" class="infraSelect" |
sei/web/modulos/peticionamento/md_pet_editor_usuario_externo_processar.php
| @@ -206,7 +206,7 @@ PaginaSEIExterna::getInstance()->fecharHead(); | @@ -206,7 +206,7 @@ PaginaSEIExterna::getInstance()->fecharHead(); | ||
| 206 | 206 | ||
| 207 | <div id="divEditores" style="overflow: auto;border-top:2px solid;border-bottom:0px;"> | 207 | <div id="divEditores" style="overflow: auto;border-top:2px solid;border-bottom:0px;"> |
| 208 | <textarea id="txaConteudo" name="txaConteudo" rows="10" class="infraTextarea" | 208 | <textarea id="txaConteudo" name="txaConteudo" rows="10" class="infraTextarea" |
| 209 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>"><?=$txtConteudo?></textarea> | 209 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>"><?=PaginaSEI::tratarHTML($txtConteudo)?></textarea> |
| 210 | <script type="text/javascript"> | 210 | <script type="text/javascript"> |
| 211 | CKEDITOR.replace('txaConteudo',{ 'autoGrow_onStartup':'true', "stylesheetParser_validSelectors":/^(p).(<?=$strFormatos?>)$/i, | 211 | CKEDITOR.replace('txaConteudo',{ 'autoGrow_onStartup':'true', "stylesheetParser_validSelectors":/^(p).(<?=$strFormatos?>)$/i, |
| 212 | 'toolbar':[["Save"],["Find","Replace","-","RemoveFormat","Bold","Italic","Underline","Strike","Subscript","Superscript","Maiuscula","Minuscula","TextColor","BGColor"],["Cut","Copy","PasteFromWord","PasteText","-","Undo","Redo","ShowBlocks","Symbol","Scayt"],["NumberedList","BulletedList","-","Outdent","Indent","base64image"],["Table","SpecialChar","SimpleLink","Extenso","Zoom"],["Styles"]]}); | 212 | 'toolbar':[["Save"],["Find","Replace","-","RemoveFormat","Bold","Italic","Underline","Strike","Subscript","Superscript","Maiuscula","Minuscula","TextColor","BGColor"],["Cut","Copy","PasteFromWord","PasteText","-","Undo","Redo","ShowBlocks","Symbol","Scayt"],["NumberedList","BulletedList","-","Outdent","Indent","base64image"],["Table","SpecialChar","SimpleLink","Extenso","Zoom"],["Styles"]]}); |
sei/web/modulos/peticionamento/md_pet_extensoes_arquivo_cadastro.php
| @@ -180,8 +180,8 @@ var objAutoCompletarComplementar = null; | @@ -180,8 +180,8 @@ var objAutoCompletarComplementar = null; | ||
| 180 | document.getElementById('txtComplementar').focus(); | 180 | document.getElementById('txtComplementar').focus(); |
| 181 | }}; | 181 | }}; |
| 182 | 182 | ||
| 183 | - objAutoCompletarPrincipal.selecionar('<?=$strIdUnidade?>','<?=PaginaSEI::getInstance()->formatarParametrosJavascript($strDescricaoUnidade)?>'); | ||
| 184 | - objAutoCompletarComplementar.selecionar('<?=$strIdUnidade?>','<?=PaginaSEI::getInstance()->formatarParametrosJavascript($strDescricaoUnidade)?>'); | 183 | + objAutoCompletarPrincipal.selecionar('<?=$strIdUnidade?>','<?=PaginaSEI::getInstance()->formatarParametrosJavascript(PaginaSEI::tratarHTML($strDescricaoUnidade))?>'); |
| 184 | + objAutoCompletarComplementar.selecionar('<?=$strIdUnidade?>','<?=PaginaSEI::getInstance()->formatarParametrosJavascript(PaginaSEI::tratarHTML($strDescricaoUnidade))?>'); | ||
| 185 | 185 | ||
| 186 | infraEfeitoTabelas(); | 186 | infraEfeitoTabelas(); |
| 187 | } | 187 | } |
sei/web/modulos/peticionamento/md_pet_hipotese_legal_lista.php
| @@ -240,7 +240,7 @@ try { | @@ -240,7 +240,7 @@ try { | ||
| 240 | 240 | ||
| 241 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir){ | 241 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir){ |
| 242 | $strId = $arrObjHipoteseLegalDTO[$i]->getNumIdHipoteseLegal(); | 242 | $strId = $arrObjHipoteseLegalDTO[$i]->getNumIdHipoteseLegal(); |
| 243 | - $strDescricao = PaginaSEI::getInstance()->formatarParametrosJavaScript($arrObjHipoteseLegalDTO[$i]->getStrNome()); | 243 | + $strDescricao = PaginaSEI::getInstance()->formatarParametrosJavaScript(PaginaSEI::tratarHTML($arrObjHipoteseLegalDTO[$i]->getStrNome())); |
| 244 | } | 244 | } |
| 245 | 245 | ||
| 246 | if ($bolAcaoDesativar){ | 246 | if ($bolAcaoDesativar){ |
sei/web/modulos/peticionamento/md_pet_indisponibilidade_cadastro.php
| @@ -338,7 +338,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | @@ -338,7 +338,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | ||
| 338 | <input <?php echo $disabledAlterar ?> type="text" onchange="validDate('I')" | 338 | <input <?php echo $disabledAlterar ?> type="text" onchange="validDate('I')" |
| 339 | onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" | 339 | onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" |
| 340 | name="txtDtInicio" id="txtDtInicio" | 340 | name="txtDtInicio" id="txtDtInicio" |
| 341 | - value="<?= $objMdPetIndisponibilidadeDTO->getDthDataInicioFormatada() ?>" | 341 | + value="<?= PaginaSEI::tratarHTML($objMdPetIndisponibilidadeDTO->getDthDataInicioFormatada()) ?>" |
| 342 | class="infraText"/> | 342 | class="infraText"/> |
| 343 | <img src="<?= PaginaSEI::getInstance()->getDiretorioImagensGlobal() ?>/calendario.gif" id="imgDtInicio" | 343 | <img src="<?= PaginaSEI::getInstance()->getDiretorioImagensGlobal() ?>/calendario.gif" id="imgDtInicio" |
| 344 | title="Selecionar Data/Hora Inicial" alt="Selecionar Data/Hora Inicial" class="infraImg" | 344 | title="Selecionar Data/Hora Inicial" alt="Selecionar Data/Hora Inicial" class="infraImg" |
| @@ -349,7 +349,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | @@ -349,7 +349,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | ||
| 349 | <input <?php echo $disabledAlterar ?> type="text" onchange="validDate('F')" | 349 | <input <?php echo $disabledAlterar ?> type="text" onchange="validDate('F')" |
| 350 | onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" | 350 | onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" |
| 351 | name="txtDtFim" id="txtDtFim" | 351 | name="txtDtFim" id="txtDtFim" |
| 352 | - value="<?= $objMdPetIndisponibilidadeDTO->getDthDataFimFormatada() ?>" | 352 | + value="<?= PaginaSEI::tratarHTML($objMdPetIndisponibilidadeDTO->getDthDataFimFormatada()) ?>" |
| 353 | class="infraText"/> | 353 | class="infraText"/> |
| 354 | <img src="<?= PaginaSEI::getInstance()->getDiretorioImagensGlobal() ?>/calendario.gif" id="imgDtFim" | 354 | <img src="<?= PaginaSEI::getInstance()->getDiretorioImagensGlobal() ?>/calendario.gif" id="imgDtFim" |
| 355 | title="Selecionar Data/Hora Final" | 355 | title="Selecionar Data/Hora Final" |
| @@ -365,7 +365,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | @@ -365,7 +365,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | ||
| 365 | Indisponibilidade:</label> | 365 | Indisponibilidade:</label> |
| 366 | <textarea type="text" maxlength="500" id="txtResumoIndisponibilidade" rows="3" name="txtResumoIndisponibilidade" | 366 | <textarea type="text" maxlength="500" id="txtResumoIndisponibilidade" rows="3" name="txtResumoIndisponibilidade" |
| 367 | class="infraText" onkeypress="return infraMascaraTexto(this,event,500);" | 367 | class="infraText" onkeypress="return infraMascaraTexto(this,event,500);" |
| 368 | - tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>"><?php echo isset($objMdPetIndisponibilidadeDTO) ? $objMdPetIndisponibilidadeDTO->getStrResumoIndisponibilidade() : '' ?></textarea> | 368 | + tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>"><?php echo isset($objMdPetIndisponibilidadeDTO) ? PaginaSEI::tratarHTML($objMdPetIndisponibilidadeDTO->getStrResumoIndisponibilidade()) : '' ?></textarea> |
| 369 | </fieldset> | 369 | </fieldset> |
| 370 | 370 | ||
| 371 | <fieldset id="fldProrrogacao" class="infraFieldset"> | 371 | <fieldset id="fldProrrogacao" class="infraFieldset"> |
| @@ -400,7 +400,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | @@ -400,7 +400,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | ||
| 400 | class="infraText" | 400 | class="infraText" |
| 401 | onkeyup="infraMascaraNumero(this, event, 100);" maxlength="100" | 401 | onkeyup="infraMascaraNumero(this, event, 100);" maxlength="100" |
| 402 | style="width:170px;" | 402 | style="width:170px;" |
| 403 | - tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" value="<?= $txtNumeroSei ?>"/> | 403 | + tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" value="<?= PaginaSEI::tratarHTML($txtNumeroSei) ?>"/> |
| 404 | 404 | ||
| 405 | <button type="button" <?php echo ($isConsultar) ? 'disabled="disabled"' : '' ?> accesskey="V" | 405 | <button type="button" <?php echo ($isConsultar) ? 'disabled="disabled"' : '' ?> accesskey="V" |
| 406 | id="btnValidar" onclick="controlarNumeroSEI();" class="infraButton"> | 406 | id="btnValidar" onclick="controlarNumeroSEI();" class="infraButton"> |
| @@ -416,7 +416,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | @@ -416,7 +416,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | ||
| 416 | <br/> | 416 | <br/> |
| 417 | <input type="text" id="txtTipo" name="txtTipo" class="infraText" | 417 | <input type="text" id="txtTipo" name="txtTipo" class="infraText" |
| 418 | readonly="readonly" | 418 | readonly="readonly" |
| 419 | - tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" value="<?= $txtTipo ?>"/> | 419 | + tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" value="<?= PaginaSEI::tratarHTML($txtTipo) ?>"/> |
| 420 | 420 | ||
| 421 | <button type="button" id="btnAdicionar" style="display: none" accesskey="A" onclick="adicionarDocumento()" | 421 | <button type="button" id="btnAdicionar" style="display: none" accesskey="A" onclick="adicionarDocumento()" |
| 422 | class="infraButton"> | 422 | class="infraButton"> |
sei/web/modulos/peticionamento/md_pet_indisponibilidade_lista.php
| @@ -531,7 +531,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | @@ -531,7 +531,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | ||
| 531 | <!-- Data Inicio --> | 531 | <!-- Data Inicio --> |
| 532 | <label id="lblDtInicio" for="txtDtInicio" class="infraLabelOpcional">Início:</label> | 532 | <label id="lblDtInicio" for="txtDtInicio" class="infraLabelOpcional">Início:</label> |
| 533 | <input type="text" name="txtDtInicio" id="txtDtInicio" onchange="validDate('I');" | 533 | <input type="text" name="txtDtInicio" id="txtDtInicio" onchange="validDate('I');" |
| 534 | - value="<?= $strDtInicio ?>" | 534 | + value="<?= PaginaSEI::tratarHTML($strDtInicio) ?>" |
| 535 | onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" class="infraText" /> | 535 | onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" class="infraText" /> |
| 536 | <img src="<?=PaginaSEI::getInstance()->getDiretorioImagensGlobal()?>/calendario.gif" id="imgDtInicio" | 536 | <img src="<?=PaginaSEI::getInstance()->getDiretorioImagensGlobal()?>/calendario.gif" id="imgDtInicio" |
| 537 | title="Selecionar Data/Hora Inicial" | 537 | title="Selecionar Data/Hora Inicial" |
| @@ -541,7 +541,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | @@ -541,7 +541,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | ||
| 541 | <!-- Data Fim --> | 541 | <!-- Data Fim --> |
| 542 | <label id="lblDtFim" for="txtDtFim" class="infraLabelOpcional">Fim:</label> | 542 | <label id="lblDtFim" for="txtDtFim" class="infraLabelOpcional">Fim:</label> |
| 543 | <input type="text" name="txtDtFim" onchange="validDate('F');" id="txtDtFim" | 543 | <input type="text" name="txtDtFim" onchange="validDate('F');" id="txtDtFim" |
| 544 | - value="<?= $strDtFim ?>" | 544 | + value="<?= PaginaSEI::tratarHTML($strDtFim) ?>" |
| 545 | onchange="validDate('F');" onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" maxlength="16" class="infraText"/> | 545 | onchange="validDate('F');" onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" maxlength="16" class="infraText"/> |
| 546 | <img src="<?=PaginaSEI::getInstance()->getDiretorioImagensGlobal()?>/calendario.gif" id="imgDtFim" | 546 | <img src="<?=PaginaSEI::getInstance()->getDiretorioImagensGlobal()?>/calendario.gif" id="imgDtFim" |
| 547 | title="Selecionar Data/Hora Final" | 547 | title="Selecionar Data/Hora Final" |
sei/web/modulos/peticionamento/md_pet_int_relatorio_filtro.php
| @@ -67,7 +67,7 @@ | @@ -67,7 +67,7 @@ | ||
| 67 | <input class="inputData" style="margin-left: 1%" type="text" name="txtDataInicio" id="txtDataInicio" | 67 | <input class="inputData" style="margin-left: 1%" type="text" name="txtDataInicio" id="txtDataInicio" |
| 68 | onkeypress="return infraMascaraData(this, event);" maxlength="10" | 68 | onkeypress="return infraMascaraData(this, event);" maxlength="10" |
| 69 | tabindex="<?= PaginaSEIExterna::getInstance()->getProxTabDados(); ?>" | 69 | tabindex="<?= PaginaSEIExterna::getInstance()->getProxTabDados(); ?>" |
| 70 | - value="<?php echo array_key_exists('txtDataInicio', $_POST) ? $_POST['txtDataInicio'] : '' ?>"/> | 70 | + value="<?php echo array_key_exists('txtDataInicio', $_POST) ? PaginaSEI::tratarHTML($_POST['txtDataInicio']) : '' ?>"/> |
| 71 | 71 | ||
| 72 | <img class="imgCalendario" src="<?= PaginaSEIExterna::getInstance()->getDiretorioImagensGlobal() ?>/calendario.gif" | 72 | <img class="imgCalendario" src="<?= PaginaSEIExterna::getInstance()->getDiretorioImagensGlobal() ?>/calendario.gif" |
| 73 | id="imgDataInicio" | 73 | id="imgDataInicio" |
| @@ -76,7 +76,7 @@ | @@ -76,7 +76,7 @@ | ||
| 76 | onclick="infraCalendario('txtDataInicio',this,false,'<?= InfraData::getStrDataAtual() ?>');"/> | 76 | onclick="infraCalendario('txtDataInicio',this,false,'<?= InfraData::getStrDataAtual() ?>');"/> |
| 77 | 77 | ||
| 78 | <input class="inputData" style="margin-left: 12%" type="text" id="txtDataFim" name="txtDataFim" | 78 | <input class="inputData" style="margin-left: 12%" type="text" id="txtDataFim" name="txtDataFim" |
| 79 | - value="<?php echo array_key_exists('txtDataFim', $_POST) ? $_POST['txtDataFim'] : '' ?>" | 79 | + value="<?php echo array_key_exists('txtDataFim', $_POST) ? PaginaSEI::tratarHTML($_POST['txtDataFim']) : '' ?>" |
| 80 | onkeypress="return infraMascaraData(this, event);" maxlength="10" | 80 | onkeypress="return infraMascaraData(this, event);" maxlength="10" |
| 81 | tabindex="<?= PaginaSEIExterna::getInstance()->getProxTabDados(); ?>"/> | 81 | tabindex="<?= PaginaSEIExterna::getInstance()->getProxTabDados(); ?>"/> |
| 82 | 82 |
sei/web/modulos/peticionamento/md_pet_int_tipo_intimacao_lista.php
| @@ -320,7 +320,7 @@ try { | @@ -320,7 +320,7 @@ try { | ||
| 320 | 320 | ||
| 321 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir) { | 321 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir) { |
| 322 | $strId = $arrObjMdPetIntTipoIntimacaoDTO[$i]->getNumIdMdPetIntTipoIntimacao(); | 322 | $strId = $arrObjMdPetIntTipoIntimacaoDTO[$i]->getNumIdMdPetIntTipoIntimacao(); |
| 323 | - $strDescricao = PaginaSEI::getInstance()->formatarParametrosJavaScript($arrObjMdPetIntTipoIntimacaoDTO[$i]->getStrNome()); | 323 | + $strDescricao = PaginaSEI::getInstance()->formatarParametrosJavaScript(PaginaSEI::tratarHTML($arrObjMdPetIntTipoIntimacaoDTO[$i]->getStrNome())); |
| 324 | } | 324 | } |
| 325 | 325 | ||
| 326 | if ($bolAcaoDesativar && $arrObjMdPetIntTipoIntimacaoDTO[$i]->getStrSinAtivo() == 'S') { | 326 | if ($bolAcaoDesativar && $arrObjMdPetIntTipoIntimacaoDTO[$i]->getStrSinAtivo() == 'S') { |
| @@ -396,6 +396,7 @@ PaginaSEI::getInstance()->abrirJavaScript(); | @@ -396,6 +396,7 @@ PaginaSEI::getInstance()->abrirJavaScript(); | ||
| 396 | 396 | ||
| 397 | <? if ($bolAcaoDesativar){ ?> | 397 | <? if ($bolAcaoDesativar){ ?> |
| 398 | function acaoDesativar(id, desc) { | 398 | function acaoDesativar(id, desc) { |
| 399 | + desc = $("<pre>").html(desc).text(); | ||
| 399 | if (confirm("Confirma desativação do Tipo de Intimação Eletrônica \"" + desc + "\"?")) { | 400 | if (confirm("Confirma desativação do Tipo de Intimação Eletrônica \"" + desc + "\"?")) { |
| 400 | document.getElementById('hdnInfraItemId').value = id; | 401 | document.getElementById('hdnInfraItemId').value = id; |
| 401 | document.getElementById('frmMdPetIntTipoIntimacaoLista').action = '<?=$strLinkDesativar?>'; | 402 | document.getElementById('frmMdPetIntTipoIntimacaoLista').action = '<?=$strLinkDesativar?>'; |
| @@ -418,6 +419,7 @@ PaginaSEI::getInstance()->abrirJavaScript(); | @@ -418,6 +419,7 @@ PaginaSEI::getInstance()->abrirJavaScript(); | ||
| 418 | 419 | ||
| 419 | <? if ($bolAcaoReativar){ ?> | 420 | <? if ($bolAcaoReativar){ ?> |
| 420 | function acaoReativar(id, desc) { | 421 | function acaoReativar(id, desc) { |
| 422 | + desc = $("<pre>").html(desc).text(); | ||
| 421 | if (confirm("Confirma reativação do Tipo de Intimação Eletrônica \"" + desc + "\"?")) { | 423 | if (confirm("Confirma reativação do Tipo de Intimação Eletrônica \"" + desc + "\"?")) { |
| 422 | document.getElementById('hdnInfraItemId').value = id; | 424 | document.getElementById('hdnInfraItemId').value = id; |
| 423 | document.getElementById('frmMdPetIntTipoIntimacaoLista').action = '<?=$strLinkReativar?>'; | 425 | document.getElementById('frmMdPetIntTipoIntimacaoLista').action = '<?=$strLinkReativar?>'; |
| @@ -440,6 +442,7 @@ PaginaSEI::getInstance()->abrirJavaScript(); | @@ -440,6 +442,7 @@ PaginaSEI::getInstance()->abrirJavaScript(); | ||
| 440 | 442 | ||
| 441 | <? if ($bolAcaoExcluir){ ?> | 443 | <? if ($bolAcaoExcluir){ ?> |
| 442 | function acaoExcluir(id, desc) { | 444 | function acaoExcluir(id, desc) { |
| 445 | + desc = $("<pre>").html(desc).text(); | ||
| 443 | if (confirm("Confirma exclusão do Tipo de Intimação Eletrônica \"" + desc + "\"?")) { | 446 | if (confirm("Confirma exclusão do Tipo de Intimação Eletrônica \"" + desc + "\"?")) { |
| 444 | document.getElementById('hdnInfraItemId').value = id; | 447 | document.getElementById('hdnInfraItemId').value = id; |
| 445 | document.getElementById('frmMdPetIntTipoIntimacaoLista').action = '<?=$strLinkExcluir?>'; | 448 | document.getElementById('frmMdPetIntTipoIntimacaoLista').action = '<?=$strLinkExcluir?>'; |
| @@ -470,7 +473,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | @@ -470,7 +473,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | ||
| 470 | PaginaSEI::getInstance()->abrirAreaDados('6em'); | 473 | PaginaSEI::getInstance()->abrirAreaDados('6em'); |
| 471 | ?> | 474 | ?> |
| 472 | <label id="lblTipoIntimacao" for="txtTipoIntimacao" accesskey="" class="infraLabelOpcional">Tipo de Intimação:</label> | 475 | <label id="lblTipoIntimacao" for="txtTipoIntimacao" accesskey="" class="infraLabelOpcional">Tipo de Intimação:</label> |
| 473 | - <input type="text" id="txtTipoIntimacao" name="txtTipoIntimacao" class="infraText" maxlength="100" value="<? echo ($_POST['txtTipoIntimacao'] != '' ? $_POST['txtTipoIntimacao'] : '' )?>" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>"/> | 476 | + <input type="text" id="txtTipoIntimacao" name="txtTipoIntimacao" class="infraText" maxlength="100" value="<? echo (PaginaSEI::tratarHTML($_POST['txtTipoIntimacao']) != '' ? PaginaSEI::tratarHTML($_POST['txtTipoIntimacao']) : '' )?>" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>"/> |
| 474 | 477 | ||
| 475 | <label id="lblTipodeResposta" for="lblTipodeResposta" accesskey="" class="infraLabelOpcional">Tipo de Resposta:</label> | 478 | <label id="lblTipodeResposta" for="lblTipodeResposta" accesskey="" class="infraLabelOpcional">Tipo de Resposta:</label> |
| 476 | <select id="selTipoResposta" name="selTipoResposta" onchange="this.form.submit()" class="infraSelect" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>"> | 479 | <select id="selTipoResposta" name="selTipoResposta" onchange="this.form.submit()" class="infraSelect" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>"> |
sei/web/modulos/peticionamento/md_pet_int_tipo_resp_lista.php
| @@ -283,7 +283,7 @@ try { | @@ -283,7 +283,7 @@ try { | ||
| 283 | 283 | ||
| 284 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir) { | 284 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir) { |
| 285 | $strId = $arrObjMdPetIntTipoRespDTO[$i]->getNumIdMdPetIntTipoResp(); | 285 | $strId = $arrObjMdPetIntTipoRespDTO[$i]->getNumIdMdPetIntTipoResp(); |
| 286 | - $strDescricao = $arrObjMdPetIntTipoRespDTO[$i]->getStrNome(); | 286 | + $strDescricao = PaginaSEI::tratarHTML($arrObjMdPetIntTipoRespDTO[$i]->getStrNome(), true); |
| 287 | } | 287 | } |
| 288 | 288 | ||
| 289 | if ($bolAcaoDesativar && $arrObjMdPetIntTipoRespDTO[$i]->getStrSinAtivo() == 'S') { | 289 | if ($bolAcaoDesativar && $arrObjMdPetIntTipoRespDTO[$i]->getStrSinAtivo() == 'S') { |
| @@ -352,6 +352,7 @@ PaginaSEI::getInstance()->abrirJavaScript(); | @@ -352,6 +352,7 @@ PaginaSEI::getInstance()->abrirJavaScript(); | ||
| 352 | 352 | ||
| 353 | <? if ($bolAcaoDesativar){ ?> | 353 | <? if ($bolAcaoDesativar){ ?> |
| 354 | function acaoDesativar(id, desc) { | 354 | function acaoDesativar(id, desc) { |
| 355 | + desc = $('<pre>').html(desc).text(); | ||
| 355 | if (confirm("Confirma desativação do Tipo de Resposta \"" + desc + "\"?")) { | 356 | if (confirm("Confirma desativação do Tipo de Resposta \"" + desc + "\"?")) { |
| 356 | document.getElementById('hdnInfraItemId').value = id; | 357 | document.getElementById('hdnInfraItemId').value = id; |
| 357 | document.getElementById('frmMdPetIntTipoRespLista').action = '<?=$strLinkDesativar?>'; | 358 | document.getElementById('frmMdPetIntTipoRespLista').action = '<?=$strLinkDesativar?>'; |
| @@ -374,6 +375,7 @@ PaginaSEI::getInstance()->abrirJavaScript(); | @@ -374,6 +375,7 @@ PaginaSEI::getInstance()->abrirJavaScript(); | ||
| 374 | 375 | ||
| 375 | <? if ($bolAcaoReativar){ ?> | 376 | <? if ($bolAcaoReativar){ ?> |
| 376 | function acaoReativar(id, desc) { | 377 | function acaoReativar(id, desc) { |
| 378 | + desc = $('<pre>').html(desc).text(); | ||
| 377 | if (confirm("Confirma reativação do Tipo de Resposta \"" + desc + "\"?")) { | 379 | if (confirm("Confirma reativação do Tipo de Resposta \"" + desc + "\"?")) { |
| 378 | document.getElementById('hdnInfraItemId').value = id; | 380 | document.getElementById('hdnInfraItemId').value = id; |
| 379 | document.getElementById('frmMdPetIntTipoRespLista').action = '<?=$strLinkReativar?>'; | 381 | document.getElementById('frmMdPetIntTipoRespLista').action = '<?=$strLinkReativar?>'; |
| @@ -393,10 +395,10 @@ PaginaSEI::getInstance()->abrirJavaScript(); | @@ -393,10 +395,10 @@ PaginaSEI::getInstance()->abrirJavaScript(); | ||
| 393 | } | 395 | } |
| 394 | } | 396 | } |
| 395 | <? } ?> | 397 | <? } ?> |
| 396 | - | ||
| 397 | <? if ($bolAcaoExcluir){ ?> | 398 | <? if ($bolAcaoExcluir){ ?> |
| 398 | function acaoExcluir(id, desc) { | 399 | function acaoExcluir(id, desc) { |
| 399 | - if (confirm("Confirma exclusão do Tipo de Resposta \"" + desc + "\"?")) { | 400 | + desc = $('<pre>').html(desc).text(); |
| 401 | + if (confirm("Confirma exclusão do Tipo de Resposta \"'" + desc + "'\"?")) { | ||
| 400 | document.getElementById('hdnInfraItemId').value = id; | 402 | document.getElementById('hdnInfraItemId').value = id; |
| 401 | document.getElementById('frmMdPetIntTipoRespLista').action = '<?=$strLinkExcluir?>'; | 403 | document.getElementById('frmMdPetIntTipoRespLista').action = '<?=$strLinkExcluir?>'; |
| 402 | document.getElementById('frmMdPetIntTipoRespLista').submit(); | 404 | document.getElementById('frmMdPetIntTipoRespLista').submit(); |
| @@ -427,7 +429,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | @@ -427,7 +429,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | ||
| 427 | PaginaSEI::getInstance()->abrirAreaDados('6em'); | 429 | PaginaSEI::getInstance()->abrirAreaDados('6em'); |
| 428 | ?> | 430 | ?> |
| 429 | <label id="lblTipoResposta" class="infraLabel" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>">Tipo de Resposta:</label> | 431 | <label id="lblTipoResposta" class="infraLabel" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>">Tipo de Resposta:</label> |
| 430 | - <input type="text" id="txtTipoResposta" name="txtTipoResposta" class="infraText" value="<? echo ($_POST['txtTipoResposta'] != '' ? $_POST['txtTipoResposta'] : '' )?>" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> | 432 | + <input type="text" id="txtTipoResposta" name="txtTipoResposta" class="infraText" value="<? echo (PaginaSEI::tratarHTML($_POST['txtTipoResposta']) != '' ? PaginaSEI::tratarHTML($_POST['txtTipoResposta']) : '' )?>" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> |
| 431 | <input type="hidden" id="hdnTipoResposta" name="hdnTipoResposta" value="<?=$numIdContatoAssociadoPesquisa?>" /> | 433 | <input type="hidden" id="hdnTipoResposta" name="hdnTipoResposta" value="<?=$numIdContatoAssociadoPesquisa?>" /> |
| 432 | 434 | ||
| 433 | <label id="lblPrazoExterno" for="selPrazoExterno" class="infraLabelOpcional">Prazo Externo:</label> | 435 | <label id="lblPrazoExterno" for="selPrazoExterno" class="infraLabelOpcional">Prazo Externo:</label> |
sei/web/modulos/peticionamento/md_pet_intercorrente_criterio_cadastro.php
| @@ -257,7 +257,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | @@ -257,7 +257,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | ||
| 257 | <!-- Tipo de Processo --> | 257 | <!-- Tipo de Processo --> |
| 258 | <div class="fieldsetClear"> | 258 | <div class="fieldsetClear"> |
| 259 | <label id="lblTipoProcesso" for="txtTipoProcesso" class="infraLabelObrigatorio">Tipos de Processos: </label> | 259 | <label id="lblTipoProcesso" for="txtTipoProcesso" class="infraLabelObrigatorio">Tipos de Processos: </label> |
| 260 | - <input type="text" onchange="removerProcessoAssociado(0);" id="txtTipoProcesso" name="txtTipoProcesso" class="infraText InfraAutoCompletar" value="<?= $nomeTipoProcesso ?>" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>"/> | 260 | + <input type="text" onchange="removerProcessoAssociado(0);" id="txtTipoProcesso" name="txtTipoProcesso" class="infraText InfraAutoCompletar" value="<?= PaginaSEI::tratarHTML($nomeTipoProcesso) ?>" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>"/> |
| 261 | <?php if($_GET['acao'] != 'md_pet_intercorrente_criterio_consultar'){ ?> | 261 | <?php if($_GET['acao'] != 'md_pet_intercorrente_criterio_consultar'){ ?> |
| 262 | <select name="selTipoProcesso" id="selTipoProcesso" size="8" class="infraSelect" multiple="multiple" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>"> | 262 | <select name="selTipoProcesso" id="selTipoProcesso" size="8" class="infraSelect" multiple="multiple" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>"> |
| 263 | <?= $strTipoProcesso; ?> | 263 | <?= $strTipoProcesso; ?> |
| @@ -418,7 +418,7 @@ PaginaSEI::getInstance()->fecharHtml(); | @@ -418,7 +418,7 @@ PaginaSEI::getInstance()->fecharHtml(); | ||
| 418 | document.getElementById('txtTipoProcesso').focus(); | 418 | document.getElementById('txtTipoProcesso').focus(); |
| 419 | } | 419 | } |
| 420 | } | 420 | } |
| 421 | - objAutoCompletarTipoProcesso.selecionar('<?=$strIdTipoProcesso?>', '<?=PaginaSEI::getInstance()->formatarParametrosJavascript($strNomeRemetente);?>'); | 421 | + objAutoCompletarTipoProcesso.selecionar('<?=$strIdTipoProcesso?>', '<?=PaginaSEI::getInstance()->formatarParametrosJavascript(PaginaSEI::tratarHTML($strNomeRemetente));?>'); |
| 422 | } | 422 | } |
| 423 | 423 | ||
| 424 | function carregarComponenteTipoProcessoAlterar() { | 424 | function carregarComponenteTipoProcessoAlterar() { |
| @@ -441,7 +441,7 @@ PaginaSEI::getInstance()->fecharHtml(); | @@ -441,7 +441,7 @@ PaginaSEI::getInstance()->fecharHtml(); | ||
| 441 | document.getElementById('txtTipoProcesso').value = descricao; | 441 | document.getElementById('txtTipoProcesso').value = descricao; |
| 442 | } | 442 | } |
| 443 | } | 443 | } |
| 444 | - objAutoCompletarTipoProcesso.selecionar('<?=$strIdTipoProcesso?>', '<?=PaginaSEI::getInstance()->formatarParametrosJavascript($strNomeRemetente);?>'); | 444 | + objAutoCompletarTipoProcesso.selecionar('<?=$strIdTipoProcesso?>', '<?=PaginaSEI::getInstance()->formatarParametrosJavascript(PaginaSEI::tratarHTML($strNomeRemetente));?>'); |
| 445 | } | 445 | } |
| 446 | 446 | ||
| 447 | function removerProcessoAssociado(remover) { | 447 | function removerProcessoAssociado(remover) { |
sei/web/modulos/peticionamento/md_pet_intercorrente_criterio_lista.php
| @@ -250,7 +250,7 @@ try { | @@ -250,7 +250,7 @@ try { | ||
| 250 | } | 250 | } |
| 251 | 251 | ||
| 252 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir){ | 252 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir){ |
| 253 | - $strDescricao = PaginaSEI::getInstance()->formatarParametrosJavaScript($arrObjMdPetCriterioDTO[$i]->getStrNomeProcesso()); | 253 | + $strDescricao = PaginaSEI::getInstance()->formatarParametrosJavaScript(PaginaSEI::tratarHTML($arrObjMdPetCriterioDTO[$i]->getStrNomeProcesso())); |
| 254 | if ($bolAcaoDesativar && $arrObjMdPetCriterioDTO[$i]->getStrSinAtivo() == 'S'){ | 254 | if ($bolAcaoDesativar && $arrObjMdPetCriterioDTO[$i]->getStrSinAtivo() == 'S'){ |
| 255 | $strResultado .= '<a href="'.PaginaSEI::getInstance()->montarAncora($strId).'" onclick="acaoDesativar(\''.$strId.'\',\''.$strDescricao.'\');" tabindex="'.PaginaSEI::getInstance()->getProxTabTabela().'"><img src="'.PaginaSEI::getInstance()->getDiretorioImagensGlobal().'/desativar.gif" title="Desativar Critério Intercorrente" alt="Desativar Critério Intercorrente" class="infraImg" /></a> '; | 255 | $strResultado .= '<a href="'.PaginaSEI::getInstance()->montarAncora($strId).'" onclick="acaoDesativar(\''.$strId.'\',\''.$strDescricao.'\');" tabindex="'.PaginaSEI::getInstance()->getProxTabTabela().'"><img src="'.PaginaSEI::getInstance()->getDiretorioImagensGlobal().'/desativar.gif" title="Desativar Critério Intercorrente" alt="Desativar Critério Intercorrente" class="infraImg" /></a> '; |
| 256 | } else { | 256 | } else { |
| @@ -400,7 +400,7 @@ $arrNivelAcesso = array( | @@ -400,7 +400,7 @@ $arrNivelAcesso = array( | ||
| 400 | <div style="height:4.5em; margin-top: 11px;" class="infraAreaDados" id="divInfraAreaDados"> | 400 | <div style="height:4.5em; margin-top: 11px;" class="infraAreaDados" id="divInfraAreaDados"> |
| 401 | <!-- Nome do Menu --> | 401 | <!-- Nome do Menu --> |
| 402 | <label id="lblTipoProcesso" for="txtTipoProcesso" class="infraLabelOpcional">Tipo de Processo:</label> | 402 | <label id="lblTipoProcesso" for="txtTipoProcesso" class="infraLabelOpcional">Tipo de Processo:</label> |
| 403 | - <input type="text" name="txtTipoProcesso" id="txtTipoProcesso" value="<?= $txtTipoProcesso ?>" class="infraText" /> | 403 | + <input type="text" name="txtTipoProcesso" id="txtTipoProcesso" value="<?= PaginaSEI::tratarHTML($txtTipoProcesso) ?>" class="infraText" /> |
| 404 | <!-- Tipo do Menu --> | 404 | <!-- Tipo do Menu --> |
| 405 | <label id="lblTipo" for="selTipo" class="infraLabelOpcional">Nível de Acesso dos Documentos:</label> | 405 | <label id="lblTipo" for="selTipo" class="infraLabelOpcional">Nível de Acesso dos Documentos:</label> |
| 406 | <select onchange="pesquisar()" id="selTipo" name="selTipo" class="infraSelect" > | 406 | <select onchange="pesquisar()" id="selTipo" name="selTipo" class="infraSelect" > |
sei/web/modulos/peticionamento/md_pet_intercorrente_criterio_padrao.php
| @@ -50,33 +50,6 @@ try { | @@ -50,33 +50,6 @@ try { | ||
| 50 | $strItensSelNivelAcesso = ''; | 50 | $strItensSelNivelAcesso = ''; |
| 51 | $strItensSelHipoteseLegal = ''; | 51 | $strItensSelHipoteseLegal = ''; |
| 52 | 52 | ||
| 53 | - //Preencher Array de Unidades para buscar posteriormente | ||
| 54 | - $objUnidadeDTO = new UnidadeDTO(); | ||
| 55 | - $objUnidadeDTO->retNumIdContato(); | ||
| 56 | - $objUnidadeDTO->retNumIdUnidade(); | ||
| 57 | - $objUnidadeDTO->retStrSigla(); | ||
| 58 | - $objUnidadeDTO->retStrDescricao(); | ||
| 59 | - | ||
| 60 | - $contatoRN = new ContatoRN(); | ||
| 61 | - $objUnidadeRN = new UnidadeRN(); | ||
| 62 | - | ||
| 63 | - $arrObjUnidadeDTO = $objUnidadeRN->listarTodasComFiltro($objUnidadeDTO); | ||
| 64 | - | ||
| 65 | - foreach ($arrObjUnidadeDTO as $key => $objUnidadeDTO) { | ||
| 66 | - $arrObjUnidadeDTOFormatado[$objUnidadeDTO->getNumIdUnidade()]['sigla'] = $objUnidadeDTO->getStrSigla(); | ||
| 67 | - $arrObjUnidadeDTOFormatado[$objUnidadeDTO->getNumIdUnidade()]['descricao'] = utf8_encode($objUnidadeDTO->getStrDescricao()); | ||
| 68 | - | ||
| 69 | - $contatoDTO = new ContatoDTO(); | ||
| 70 | - $contatoDTO->retNumIdContato(); | ||
| 71 | - $contatoDTO->retStrSiglaUf(); | ||
| 72 | - $contatoDTO->setNumIdContato( $objUnidadeDTO->getNumIdContato() ); | ||
| 73 | - | ||
| 74 | - $contatoDTO = $contatoRN->consultarRN0324( $contatoDTO ); | ||
| 75 | - | ||
| 76 | - //alteracoes seiv3 | ||
| 77 | - $arrObjUnidadeDTOFormatado[$objUnidadeDTO->getNumIdUnidade()]['uf'] = $contatoDTO->getStrSiglaUf(); | ||
| 78 | - } | ||
| 79 | - | ||
| 80 | $objInfraParametroDTO = new InfraParametroDTO(); | 53 | $objInfraParametroDTO = new InfraParametroDTO(); |
| 81 | $objMdPetParametroRN = new MdPetParametroRN(); | 54 | $objMdPetParametroRN = new MdPetParametroRN(); |
| 82 | $objInfraParametroDTO->retTodos(); | 55 | $objInfraParametroDTO->retTodos(); |
| @@ -283,7 +256,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | @@ -283,7 +256,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"'); | ||
| 283 | <!-- Tipo de Processo --> | 256 | <!-- Tipo de Processo --> |
| 284 | <div class="fieldsetClear"> | 257 | <div class="fieldsetClear"> |
| 285 | <label id="lblTipoProcesso" for="txtTipoProcesso" class="infraLabelObrigatorio">Tipo de Processo: </label> | 258 | <label id="lblTipoProcesso" for="txtTipoProcesso" class="infraLabelObrigatorio">Tipo de Processo: </label> |
| 286 | - <input type="text" onchange="removerProcessoAssociado(0);" id="txtTipoProcesso" name="txtTipoProcesso" class="infraText" value="<?php echo $nomeTipoProcesso; ?>" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>"/> | 259 | + <input type="text" onchange="removerProcessoAssociado(0);" id="txtTipoProcesso" name="txtTipoProcesso" class="infraText" value="<?php echo PaginaSEI::tratarHTML($nomeTipoProcesso); ?>" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>"/> |
| 287 | <input type="hidden" id="hdnIdTipoProcesso" name="hdnIdTipoProcesso" value="<?php echo $idTipoProcesso ?>"/> | 260 | <input type="hidden" id="hdnIdTipoProcesso" name="hdnIdTipoProcesso" value="<?php echo $idTipoProcesso ?>"/> |
| 288 | <input type="hidden" id="hdnIdMdPetTipoProcesso" name="hdnIdMdPetTipoProcesso" value="<?php echo $idMdPetTipoProcesso ?>"/> | 261 | <input type="hidden" id="hdnIdMdPetTipoProcesso" name="hdnIdMdPetTipoProcesso" value="<?php echo $idMdPetTipoProcesso ?>"/> |
| 289 | <img id="imgLupaTipoProcesso" onclick="objLupaTipoProcesso.selecionar(700,500);" src="/infra_css/imagens/lupa.gif" alt="Selecionar Tipo de Processo" title="Selecionar Tipo de Processo" class="infraImg"/> | 262 | <img id="imgLupaTipoProcesso" onclick="objLupaTipoProcesso.selecionar(700,500);" src="/infra_css/imagens/lupa.gif" alt="Selecionar Tipo de Processo" title="Selecionar Tipo de Processo" class="infraImg"/> |
| @@ -429,7 +402,7 @@ PaginaSEI::getInstance()->fecharHtml(); | @@ -429,7 +402,7 @@ PaginaSEI::getInstance()->fecharHtml(); | ||
| 429 | changeSelectNivelAcesso(); | 402 | changeSelectNivelAcesso(); |
| 430 | } | 403 | } |
| 431 | } | 404 | } |
| 432 | - objAutoCompletarTipoProcesso.selecionar('<?=$strIdTipoProcesso?>', '<?=PaginaSEI::getInstance()->formatarParametrosJavascript($strNomeRemetente);?>'); | 405 | + objAutoCompletarTipoProcesso.selecionar('<?=$strIdTipoProcesso?>', '<?=PaginaSEI::getInstance()->formatarParametrosJavascript(PaginaSEI::tratarHTML($strNomeRemetente));?>'); |
| 433 | } | 406 | } |
| 434 | 407 | ||
| 435 | function removerProcessoAssociado(remover) { | 408 | function removerProcessoAssociado(remover) { |
sei/web/modulos/peticionamento/md_pet_intercorrente_usu_ext_cadastro_bloco_processos.php
| @@ -6,14 +6,14 @@ | @@ -6,14 +6,14 @@ | ||
| 6 | <!-- INICIO NUMERO DO PROCESSO --> | 6 | <!-- INICIO NUMERO DO PROCESSO --> |
| 7 | <div class="bloco" style="width: 244px;"> | 7 | <div class="bloco" style="width: 244px;"> |
| 8 | <label id="lblNumeroSei" for="txtNumeroProcesso" accesskey="n" class="infraLabelObrigatorio"><span class="infraTeclaAtalho">N</span>úmero:</label> | 8 | <label id="lblNumeroSei" for="txtNumeroProcesso" accesskey="n" class="infraLabelObrigatorio"><span class="infraTeclaAtalho">N</span>úmero:</label> |
| 9 | - <input onchange="controlarChangeNumeroProcesso();" type="text" id="txtNumeroProcesso" name="txtNumeroProcesso" class="infraText" maxlength="100" style="width: 182px;" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" value="<?= $txtNumeroProcesso ?>"/> | 9 | + <input onchange="controlarChangeNumeroProcesso();" type="text" id="txtNumeroProcesso" name="txtNumeroProcesso" class="infraText" maxlength="100" style="width: 182px;" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" value="<?= PaginaSEI::tratarHTML($txtNumeroProcesso) ?>"/> |
| 10 | <button tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" type="button" accesskey="v" id="btnValidar" onclick="validarNumeroProcesso()" class="infraButton"><span class="infraTeclaAtalho">V</span>alidar</button> | 10 | <button tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" type="button" accesskey="v" id="btnValidar" onclick="validarNumeroProcesso()" class="infraButton"><span class="infraTeclaAtalho">V</span>alidar</button> |
| 11 | </div> | 11 | </div> |
| 12 | <!-- FIM NUMERO DO PROCESSO --> | 12 | <!-- FIM NUMERO DO PROCESSO --> |
| 13 | <!-- INICIO TIPO DO PROCESSO VALIDADO --> | 13 | <!-- INICIO TIPO DO PROCESSO VALIDADO --> |
| 14 | <div class="bloco" style="width: 390px;"> | 14 | <div class="bloco" style="width: 390px;"> |
| 15 | <label id="lblTipo" for="txtTipo" class="infraLabelObrigatorio">Tipo:</label> | 15 | <label id="lblTipo" for="txtTipo" class="infraLabelObrigatorio">Tipo:</label> |
| 16 | - <input type="text" id="txtTipo" name="txtTipo" class="infraText" readonly="readonly" style="width: 318px;" value="<?= $txtTipo ?>" disabled/> | 16 | + <input type="text" id="txtTipo" name="txtTipo" class="infraText" readonly="readonly" style="width: 318px;" value="<?= PaginaSEI::tratarHTML($txtTipo) ?>" disabled/> |
| 17 | <button type="button" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" onclick="adicionarProcesso();" id="btnAdicionar" class="infraButton" style="display: none">Adicionar</button> | 17 | <button type="button" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" onclick="adicionarProcesso();" id="btnAdicionar" class="infraButton" style="display: none">Adicionar</button> |
| 18 | </div> | 18 | </div> |
| 19 | <!-- FIM TIPO DO PROCESSO VALIDADO --> | 19 | <!-- FIM TIPO DO PROCESSO VALIDADO --> |
sei/web/modulos/peticionamento/md_pet_intimacao_cadastro_js.php
| @@ -529,11 +529,11 @@ | @@ -529,11 +529,11 @@ | ||
| 529 | selectMultiple.multiple = ''; | 529 | selectMultiple.multiple = ''; |
| 530 | // selectMultiple.style.width = '40%'; | 530 | // selectMultiple.style.width = '40%'; |
| 531 | 531 | ||
| 532 | - var id = ids.split(","); | 532 | + var id = ids.split("¥"); |
| 533 | 533 | ||
| 534 | for (var x=0;x<id.length;x++){ | 534 | for (var x=0;x<id.length;x++){ |
| 535 | // TODO: refatorar este trecho, para nao usar este delimitador '-#-', retornar em formato XML usando atributos ou subtags na tags Ids retornada pelo ajax | 535 | // TODO: refatorar este trecho, para nao usar este delimitador '-#-', retornar em formato XML usando atributos ou subtags na tags Ids retornada pelo ajax |
| 536 | - var montaCheck = id[x].split("-#-"); | 536 | + var montaCheck = id[x].split("±"); |
| 537 | 537 | ||
| 538 | var opt = document.createElement('option'); | 538 | var opt = document.createElement('option'); |
| 539 | opt.value = montaCheck[0]; | 539 | opt.value = montaCheck[0]; |
sei/web/modulos/peticionamento/md_pet_intimacao_usu_ext_lista.php
| @@ -125,17 +125,17 @@ try { | @@ -125,17 +125,17 @@ try { | ||
| 125 | 125 | ||
| 126 | //Documento Principal | 126 | //Documento Principal |
| 127 | $strResultado .= '<td>'; | 127 | $strResultado .= '<td>'; |
| 128 | - $strResultado .= $objRet->getStrDocumentoPrincipal(); | 128 | + $strResultado .= PaginaSEI::tratarHTML($objRet->getStrDocumentoPrincipal()); |
| 129 | $strResultado .= '</td>'; | 129 | $strResultado .= '</td>'; |
| 130 | 130 | ||
| 131 | //Tipo de Intimação | 131 | //Tipo de Intimação |
| 132 | $strResultado .= '<td>'; | 132 | $strResultado .= '<td>'; |
| 133 | - $strResultado .= $objRet->getStrNomeTipoIntimacao(); | 133 | + $strResultado .= PaginaSEI::tratarHTML($objRet->getStrNomeTipoIntimacao()); |
| 134 | $strResultado .= '</td>'; | 134 | $strResultado .= '</td>'; |
| 135 | 135 | ||
| 136 | //Situação | 136 | //Situação |
| 137 | $strResultado .= '<td>'; | 137 | $strResultado .= '<td>'; |
| 138 | - $strResultado .= $objRet->getStrSituacaoIntimacao(); | 138 | + $strResultado .= PaginaSEI::tratarHTML($objRet->getStrSituacaoIntimacao()); |
| 139 | $strResultado .= '</td>'; | 139 | $strResultado .= '</td>'; |
| 140 | 140 | ||
| 141 | $strResultado .= '<td align="center">'; | 141 | $strResultado .= '<td align="center">'; |
| @@ -361,7 +361,7 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"' | @@ -361,7 +361,7 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"' | ||
| 361 | <div class="bloco"> | 361 | <div class="bloco"> |
| 362 | <label class="infraLabelOpcional" for="txtNumeroProcesso">Número do Processo:</label> | 362 | <label class="infraLabelOpcional" for="txtNumeroProcesso">Número do Processo:</label> |
| 363 | <input type="text" name="txtNumeroProcesso" id="txtNumeroProcesso" | 363 | <input type="text" name="txtNumeroProcesso" id="txtNumeroProcesso" |
| 364 | - tabindex="<?= PaginaSEIExterna::getInstance()->getProxTabDados(); ?>" value="<?php echo array_key_exists('txtNumeroProcesso', $_POST) ? $_POST['txtNumeroProcesso'] : '' ?>"/> | 364 | + tabindex="<?= PaginaSEIExterna::getInstance()->getProxTabDados(); ?>" value="<?php echo array_key_exists('txtNumeroProcesso', $_POST) ? PaginaSEIExterna::tratarHTML($_POST['txtNumeroProcesso']) : '' ?>"/> |
| 365 | </div> | 365 | </div> |
| 366 | <!--FIM NUMERO PROCESSO--> | 366 | <!--FIM NUMERO PROCESSO--> |
| 367 | 367 | ||
| @@ -371,7 +371,7 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"' | @@ -371,7 +371,7 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"' | ||
| 371 | <!--DATA INICIAL--> | 371 | <!--DATA INICIAL--> |
| 372 | <input type="text" name="txtDataInicio" id="txtDataInicio" | 372 | <input type="text" name="txtDataInicio" id="txtDataInicio" |
| 373 | onkeypress="return infraMascaraData(this, event);" maxlength="10" | 373 | onkeypress="return infraMascaraData(this, event);" maxlength="10" |
| 374 | - tabindex="<?= PaginaSEIExterna::getInstance()->getProxTabDados(); ?>" value="<?php echo array_key_exists('txtDataInicio', $_POST) ? $_POST['txtDataInicio'] : '' ?>"/> | 374 | + tabindex="<?= PaginaSEIExterna::getInstance()->getProxTabDados(); ?>" value="<?php echo array_key_exists('txtDataInicio', $_POST) ? PaginaSEIExterna::tratarHTML($_POST['txtDataInicio']) : '' ?>"/> |
| 375 | 375 | ||
| 376 | <img src="<?= PaginaSEIExterna::getInstance()->getDiretorioImagensGlobal() ?>/calendario.gif" | 376 | <img src="<?= PaginaSEIExterna::getInstance()->getDiretorioImagensGlobal() ?>/calendario.gif" |
| 377 | id="imgDataInicio" | 377 | id="imgDataInicio" |
| @@ -384,7 +384,7 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"' | @@ -384,7 +384,7 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo, 'onload="inicializar();"' | ||
| 384 | 384 | ||
| 385 | <!--DATA FINAL--> | 385 | <!--DATA FINAL--> |
| 386 | <input type="text" id="txtDataFim" name="txtDataFim" | 386 | <input type="text" id="txtDataFim" name="txtDataFim" |
| 387 | - value="<?php echo array_key_exists('txtDataFim', $_POST) ? $_POST['txtDataFim'] : '' ?>" | 387 | + value="<?php echo array_key_exists('txtDataFim', $_POST) ? PaginaSEIExterna::tratarHTML($_POST['txtDataFim']) : '' ?>" |
| 388 | onkeypress="return infraMascaraData(this, event);" maxlength="10" | 388 | onkeypress="return infraMascaraData(this, event);" maxlength="10" |
| 389 | tabindex="<?= PaginaSEIExterna::getInstance()->getProxTabDados(); ?>"/> | 389 | tabindex="<?= PaginaSEIExterna::getInstance()->getProxTabDados(); ?>"/> |
| 390 | 390 |
sei/web/modulos/peticionamento/md_pet_menu_usu_ext_cadastro.php
| @@ -392,7 +392,7 @@ else if( $tipo == 'H' ){ | @@ -392,7 +392,7 @@ else if( $tipo == 'H' ){ | ||
| 392 | ?> | 392 | ?> |
| 393 | 393 | ||
| 394 | <label id="lblNome" for="txtNome" class="infraLabelObrigatorio">Nome do Menu:</label> | 394 | <label id="lblNome" for="txtNome" class="infraLabelObrigatorio">Nome do Menu:</label> |
| 395 | -<input type="text" id="txtNome" name="txtNome" class="infraText" maxlength="30" <?= $disabled ?> value="<?= $txtNome ?>"> | 395 | +<input type="text" id="txtNome" name="txtNome" class="infraText" maxlength="30" <?= $disabled ?> value="<?= PaginaSEI::tratarHTML($txtNome) ?>"> |
| 396 | 396 | ||
| 397 | <fieldset id="fldPeriodoIndisponibilidade" class="infraFieldset sizeFieldset"> | 397 | <fieldset id="fldPeriodoIndisponibilidade" class="infraFieldset sizeFieldset"> |
| 398 | 398 | ||
| @@ -404,7 +404,7 @@ else if( $tipo == 'H' ){ | @@ -404,7 +404,7 @@ else if( $tipo == 'H' ){ | ||
| 404 | </fieldset> | 404 | </fieldset> |
| 405 | 405 | ||
| 406 | <label id="lblUrl" for="txtUrl" class="infraLabelObrigatorio">URL do Link Externo:</label> | 406 | <label id="lblUrl" for="txtUrl" class="infraLabelObrigatorio">URL do Link Externo:</label> |
| 407 | -<input type="text" id="txtUrl" name="txtUrl" maxlength="2083" class="infraText" <?= $disabled ?> value="<?= $txtUrl ?>"> | 407 | +<input type="text" id="txtUrl" name="txtUrl" maxlength="2083" class="infraText" <?= $disabled ?> value="<?= PaginaSEI::tratarHTML($txtUrl) ?>"> |
| 408 | 408 | ||
| 409 | <label id="lblConteudo" for="txaConteudo" class="infraLabelObrigatorio">Conteúdo HTML:</label> | 409 | <label id="lblConteudo" for="txaConteudo" class="infraLabelObrigatorio">Conteúdo HTML:</label> |
| 410 | 410 | ||
| @@ -415,7 +415,7 @@ PaginaSEI::getInstance()->fecharAreaDados(); | @@ -415,7 +415,7 @@ PaginaSEI::getInstance()->fecharAreaDados(); | ||
| 415 | <table id="tbConteudo" style="width: 100%; display: none;"> | 415 | <table id="tbConteudo" style="width: 100%; display: none;"> |
| 416 | <td style="width: 95%"> | 416 | <td style="width: 95%"> |
| 417 | <div id="divEditores" style=""> | 417 | <div id="divEditores" style=""> |
| 418 | - <textarea id="txaConteudo" name="txaConteudo" <?= $disabled ?> rows="20" class="infraTextarea" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>"><?=$txtConteudo?></textarea> | 418 | + <textarea id="txaConteudo" name="txaConteudo" <?= $disabled ?> rows="20" class="infraTextarea" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>"><?=PaginaSEI::tratarHTML($txtConteudo)?></textarea> |
| 419 | <script type="text/javascript"> | 419 | <script type="text/javascript"> |
| 420 | <?=$retEditor->getStrEditores();?> | 420 | <?=$retEditor->getStrEditores();?> |
| 421 | </script> | 421 | </script> |
sei/web/modulos/peticionamento/md_pet_menu_usu_ext_lista.php
| @@ -401,7 +401,7 @@ $strTipo = $_POST['selTipo'];; | @@ -401,7 +401,7 @@ $strTipo = $_POST['selTipo'];; | ||
| 401 | 401 | ||
| 402 | <!-- Nome do Menu --> | 402 | <!-- Nome do Menu --> |
| 403 | <label id="lblNome" for="txtNome" class="infraLabelOpcional">Nome do Menu:</label> | 403 | <label id="lblNome" for="txtNome" class="infraLabelOpcional">Nome do Menu:</label> |
| 404 | - <input type="text" name="txtNome" id="txtNome" maxlength="30" value="<?= $strNome ?>" class="infraText" /> | 404 | + <input type="text" name="txtNome" id="txtNome" maxlength="30" value="<?= PaginaSEI::tratarHTML($strNome) ?>" class="infraText" /> |
| 405 | 405 | ||
| 406 | <!-- Tipo do Menu --> | 406 | <!-- Tipo do Menu --> |
| 407 | <label id="lblTipo" for="selTipo" class="infraLabelOpcional">Tipo de Menu:</label> | 407 | <label id="lblTipo" for="selTipo" class="infraLabelOpcional">Tipo de Menu:</label> |
sei/web/modulos/peticionamento/md_pet_serie_lista.php
| @@ -282,7 +282,7 @@ try { | @@ -282,7 +282,7 @@ try { | ||
| 282 | 282 | ||
| 283 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir){ | 283 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir){ |
| 284 | $strId = $arrObjSerieDTO[$i]->getNumIdSerie(); | 284 | $strId = $arrObjSerieDTO[$i]->getNumIdSerie(); |
| 285 | - $strDescricao = PaginaSEI::getInstance()->formatarParametrosJavaScript($arrObjSerieDTO[$i]->getStrNome()); | 285 | + $strDescricao = PaginaSEI::getInstance()->formatarParametrosJavaScript(PaginaSEI::tratarHTML($arrObjSerieDTO[$i]->getStrNome())); |
| 286 | } | 286 | } |
| 287 | 287 | ||
| 288 | if ($bolAcaoDesativar){ | 288 | if ($bolAcaoDesativar){ |
| @@ -440,7 +440,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | @@ -440,7 +440,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | ||
| 440 | </select> | 440 | </select> |
| 441 | 441 | ||
| 442 | <label id="lblNomeSeriePesquisa" for="txtNomeSeriePesquisa" accesskey="" class="infraLabelOpcional">Nome:</label> | 442 | <label id="lblNomeSeriePesquisa" for="txtNomeSeriePesquisa" accesskey="" class="infraLabelOpcional">Nome:</label> |
| 443 | - <input type="text" id="txtNomeSeriePesquisa" name="txtNomeSeriePesquisa" value="<?=$strNomeSeriePesquisa?>" class="infraText" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> | 443 | + <input type="text" id="txtNomeSeriePesquisa" name="txtNomeSeriePesquisa" value="<?=PaginaSEI::tratarHTML($strNomeSeriePesquisa)?>" class="infraText" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> |
| 444 | 444 | ||
| 445 | <label id="lblModeloPesquisa" for="selModeloPesquisa" accesskey="" class="infraLabelOpcional" style="display:none!important">Modelo:</label> | 445 | <label id="lblModeloPesquisa" for="selModeloPesquisa" accesskey="" class="infraLabelOpcional" style="display:none!important">Modelo:</label> |
| 446 | <select id="selModeloPesquisa" name="selModeloPesquisa" onchange="this.form.submit();" class="infraSelect" style="display:none!important" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" > | 446 | <select id="selModeloPesquisa" name="selModeloPesquisa" onchange="this.form.submit();" class="infraSelect" style="display:none!important" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" > |
sei/web/modulos/peticionamento/md_pet_tamanho_arquivo_cadastro.php
| @@ -101,9 +101,9 @@ PaginaSEI::getInstance()->abrirAreaDados('30em'); | @@ -101,9 +101,9 @@ PaginaSEI::getInstance()->abrirAreaDados('30em'); | ||
| 101 | <fieldset id="fieldsetTamanhoArquivo" class="infraFieldset"> | 101 | <fieldset id="fieldsetTamanhoArquivo" class="infraFieldset"> |
| 102 | <legend class="infraLegend"> Limite em Mb para carregamento de Arquivos </legend> | 102 | <legend class="infraLegend"> Limite em Mb para carregamento de Arquivos </legend> |
| 103 | <label id="lblValorDocPrincipal" for="txtValorDocPrincipal" class="infraLabelObrigatorio">Documento Principal (Processo Novo):</label> | 103 | <label id="lblValorDocPrincipal" for="txtValorDocPrincipal" class="infraLabelObrigatorio">Documento Principal (Processo Novo):</label> |
| 104 | - <input type="text" id="txtValorDocPrincipal" name="txtValorDocPrincipal" class="infraText" value="<?php echo isset($objMdPetTamanhoArquivoDTO) ? $objMdPetTamanhoArquivoDTO->getNumValorDocPrincipal() : '' ?>" onkeypress="return validarCampo(this, event, 11)" maxlength="11" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> | 104 | + <input type="text" id="txtValorDocPrincipal" name="txtValorDocPrincipal" class="infraText" value="<?php echo isset($objMdPetTamanhoArquivoDTO) ? PaginaSEI::tratarHTML($objMdPetTamanhoArquivoDTO->getNumValorDocPrincipal()) : '' ?>" onkeypress="return validarCampo(this, event, 11)" maxlength="11" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> |
| 105 | <label id="lblValorDocComplementar" for="txtValorDocComplementar" class="infraLabelObrigatorio">Documentos Essenciais/Complementares (Processo Novo) e Intercorrente:</label> | 105 | <label id="lblValorDocComplementar" for="txtValorDocComplementar" class="infraLabelObrigatorio">Documentos Essenciais/Complementares (Processo Novo) e Intercorrente:</label> |
| 106 | - <input type="text" id="txtValorDocComplementar" name="txtValorDocComplementar" class="infraText" value="<?php echo isset($objMdPetTamanhoArquivoDTO) ? $objMdPetTamanhoArquivoDTO->getNumValorDocComplementar() : '' ?>" onkeypress="return validarCampo(this, event, 11);" onkeydown="somenteNumeros(event)" maxlength="11" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> | 106 | + <input type="text" id="txtValorDocComplementar" name="txtValorDocComplementar" class="infraText" value="<?php echo isset($objMdPetTamanhoArquivoDTO) ? PaginaSEI::tratarHTML($objMdPetTamanhoArquivoDTO->getNumValorDocComplementar()) : '' ?>" onkeypress="return validarCampo(this, event, 11);" onkeydown="somenteNumeros(event)" maxlength="11" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> |
| 107 | </fieldset> | 107 | </fieldset> |
| 108 | 108 | ||
| 109 | <input type="hidden" id="hdnIdTamanhoArquivoPeticionamento" name="hdnIdTamanhoArquivoPeticionamento" value="<?=$_GET['id_tamanho_arquivo_peticionamento'];?>" /> | 109 | <input type="hidden" id="hdnIdTamanhoArquivoPeticionamento" name="hdnIdTamanhoArquivoPeticionamento" value="<?=$_GET['id_tamanho_arquivo_peticionamento'];?>" /> |
sei/web/modulos/peticionamento/md_pet_tipo_processo_cadastro.php
| @@ -761,7 +761,7 @@ PaginaSEI::getInstance()->abrirAreaDados('98%'); | @@ -761,7 +761,7 @@ PaginaSEI::getInstance()->abrirAreaDados('98%'); | ||
| 761 | <label id="lblTipoProcesso" for="txtTipoProcesso" class="infraLabelObrigatorio"> | 761 | <label id="lblTipoProcesso" for="txtTipoProcesso" class="infraLabelObrigatorio"> |
| 762 | Tipo de Processo: | 762 | Tipo de Processo: |
| 763 | </label> | 763 | </label> |
| 764 | - <input type="text" onchange="removerProcessoAssociado(0);" id="txtTipoProcesso" name="txtTipoProcesso" class="infraText" value="<?php echo $nomeTipoProcesso; ?>" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> | 764 | + <input type="text" onchange="removerProcessoAssociado(0);" id="txtTipoProcesso" name="txtTipoProcesso" class="infraText" value="<?php echo PaginaSEI::tratarHTML($nomeTipoProcesso); ?>" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> |
| 765 | <input type="hidden" id="hdnIdTipoProcesso" name="hdnIdTipoProcesso" value="<?php echo $idTipoProcesso ?>" /> | 765 | <input type="hidden" id="hdnIdTipoProcesso" name="hdnIdTipoProcesso" value="<?php echo $idTipoProcesso ?>" /> |
| 766 | <input type="hidden" id="hdnIdMdPetTipoProcesso" name="hdnIdMdPetTipoProcesso" value="<?php echo $idMdPetTipoProcesso ?>" /> | 766 | <input type="hidden" id="hdnIdMdPetTipoProcesso" name="hdnIdMdPetTipoProcesso" value="<?php echo $idMdPetTipoProcesso ?>" /> |
| 767 | <img id="imgLupaTipoProcesso" onclick="objLupaTipoProcesso.selecionar(700,500);" src="/infra_css/imagens/lupa.gif" alt="Selecionar Tipo de Processo" title="Selecionar Tipo de Processo" class="infraImg" /> | 767 | <img id="imgLupaTipoProcesso" onclick="objLupaTipoProcesso.selecionar(700,500);" src="/infra_css/imagens/lupa.gif" alt="Selecionar Tipo de Processo" title="Selecionar Tipo de Processo" class="infraImg" /> |
| @@ -777,7 +777,7 @@ PaginaSEI::getInstance()->abrirAreaDados('98%'); | @@ -777,7 +777,7 @@ PaginaSEI::getInstance()->abrirAreaDados('98%'); | ||
| 777 | <label id="lblOrientacoes" for="txtOrientacoes" class="infraLabelObrigatorio"> | 777 | <label id="lblOrientacoes" for="txtOrientacoes" class="infraLabelObrigatorio"> |
| 778 | Orientações: | 778 | Orientações: |
| 779 | </label> | 779 | </label> |
| 780 | - <textarea type="text" id="txtOrientacoes" rows="3" name="txtOrientacoes" class="infraText" onkeypress="return infraMascaraTexto(this,event,500);" maxlength="500" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>"><?php echo $orientacoes;?></textarea> | 780 | + <textarea type="text" id="txtOrientacoes" rows="3" name="txtOrientacoes" class="infraText" onkeypress="return infraMascaraTexto(this,event,500);" maxlength="500" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>"><?php echo PaginaSEI::tratarHTML($orientacoes);?></textarea> |
| 781 | </div> | 781 | </div> |
| 782 | <!-- Fim das Orientações --> | 782 | <!-- Fim das Orientações --> |
| 783 | 783 | ||
| @@ -797,7 +797,7 @@ PaginaSEI::getInstance()->abrirAreaDados('98%'); | @@ -797,7 +797,7 @@ PaginaSEI::getInstance()->abrirAreaDados('98%'); | ||
| 797 | <br/> | 797 | <br/> |
| 798 | 798 | ||
| 799 | <div id="divCpUnidadeUnica" <?php echo $divUnidadeUnica;?>> | 799 | <div id="divCpUnidadeUnica" <?php echo $divUnidadeUnica;?>> |
| 800 | - <input type="text" id="txtUnidade" name="txtUnidade" class="infraText" value="<?=$nomeUnidade?>" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> | 800 | + <input type="text" id="txtUnidade" name="txtUnidade" class="infraText" value="<?=PaginaSEI::tratarHTML($nomeUnidade)?>" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> |
| 801 | <input type="hidden" id="hdnIdUnidade" name="hdnIdUnidade" value="<?=$idUnidade?>" /> | 801 | <input type="hidden" id="hdnIdUnidade" name="hdnIdUnidade" value="<?=$idUnidade?>" /> |
| 802 | <img id="imgLupaUnidade" onclick="objLupaUnidade.selecionar(700,500);" src="/infra_css/imagens/lupa.gif" alt="Selecionar Unidade" title="Selecionar Unidade" class="infraImg" /> | 802 | <img id="imgLupaUnidade" onclick="objLupaUnidade.selecionar(700,500);" src="/infra_css/imagens/lupa.gif" alt="Selecionar Unidade" title="Selecionar Unidade" class="infraImg" /> |
| 803 | <img id="imgExcluirUnidade" onclick="objLupaUnidade.remover();" src="/infra_css/imagens/remover.gif" alt="Remover Unidade" title="Remover Unidade" class="infraImg" /> | 803 | <img id="imgExcluirUnidade" onclick="objLupaUnidade.remover();" src="/infra_css/imagens/remover.gif" alt="Remover Unidade" title="Remover Unidade" class="infraImg" /> |
| @@ -816,7 +816,7 @@ PaginaSEI::getInstance()->abrirAreaDados('98%'); | @@ -816,7 +816,7 @@ PaginaSEI::getInstance()->abrirAreaDados('98%'); | ||
| 816 | </label> | 816 | </label> |
| 817 | 817 | ||
| 818 | <div id="divCpUnidadeMultipla" <?php echo $divUnidadeMultipla; ?>> | 818 | <div id="divCpUnidadeMultipla" <?php echo $divUnidadeMultipla; ?>> |
| 819 | - <input type="text" id="txtUnidadeMultipla" name="txtUnidadeMultipla" class="infraText" value="<?=$nomeUnidadeMultipla?>" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> | 819 | + <input type="text" id="txtUnidadeMultipla" name="txtUnidadeMultipla" class="infraText" value="<?=PaginaSEI::tratarHTML($nomeUnidadeMultipla)?>" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> |
| 820 | <input type="hidden" id="hdnIdUnidadeMultipla" name="hdnIdUnidadeMultipla" value="<?=$idUnidadeMultipla?>" /> | 820 | <input type="hidden" id="hdnIdUnidadeMultipla" name="hdnIdUnidadeMultipla" value="<?=$idUnidadeMultipla?>" /> |
| 821 | <input type="hidden" id="hdnUfUnidadeMultipla" name="hdnUfUnidadeMultipla" value="" /> | 821 | <input type="hidden" id="hdnUfUnidadeMultipla" name="hdnUfUnidadeMultipla" value="" /> |
| 822 | 822 | ||
| @@ -1004,7 +1004,7 @@ echo $contatoAssociadoDTO->getStrSiglaUf(); | @@ -1004,7 +1004,7 @@ echo $contatoAssociadoDTO->getStrSiglaUf(); | ||
| 1004 | Tipo do Documento Principal: | 1004 | Tipo do Documento Principal: |
| 1005 | </label> | 1005 | </label> |
| 1006 | </div> | 1006 | </div> |
| 1007 | - <input type="text" id="txtTipoDocPrinc" name="txtTipoDocPrinc" class="infraText" value="<?=$nomeSerie?>" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> | 1007 | + <input type="text" id="txtTipoDocPrinc" name="txtTipoDocPrinc" class="infraText" value="<?=PaginaSEI::tratarHTML($nomeSerie)?>" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> |
| 1008 | 1008 | ||
| 1009 | <input type="hidden" id="hdnIdTipoDocPrinc" name="hdnIdTipoDocPrinc" value="<?=$idSerie?>" /> | 1009 | <input type="hidden" id="hdnIdTipoDocPrinc" name="hdnIdTipoDocPrinc" value="<?=$idSerie?>" /> |
| 1010 | <img id="imgLupaTipoDocPrinc" onclick="carregarComponenteLupaTpDocPrinc('S');" src="/infra_css/imagens/lupa.gif" alt="Selecionar Tipo de Documento" title="Selecionar Tipo de Documento" class="infraImg" /> | 1010 | <img id="imgLupaTipoDocPrinc" onclick="carregarComponenteLupaTpDocPrinc('S');" src="/infra_css/imagens/lupa.gif" alt="Selecionar Tipo de Documento" title="Selecionar Tipo de Documento" class="infraImg" /> |
| @@ -1409,7 +1409,7 @@ function carregarComponenteUnidadeMultipla(){ | @@ -1409,7 +1409,7 @@ function carregarComponenteUnidadeMultipla(){ | ||
| 1409 | document.getElementById('hdnUfUnidadeMultipla').value = uf; | 1409 | document.getElementById('hdnUfUnidadeMultipla').value = uf; |
| 1410 | } | 1410 | } |
| 1411 | } | 1411 | } |
| 1412 | - objAutoCompletarUnidadeMultipla.selecionar('<?=$strIdUnidade?>','<?=PaginaSEI::getInstance()->formatarParametrosJavascript($nomeUnidadeMultipla);?>'); | 1412 | + objAutoCompletarUnidadeMultipla.selecionar('<?=$strIdUnidade?>','<?=PaginaSEI::getInstance()->formatarParametrosJavascript(PaginaSEI::tratarHTML($nomeUnidadeMultipla));?>'); |
| 1413 | } | 1413 | } |
| 1414 | 1414 | ||
| 1415 | 1415 | ||
| @@ -1434,7 +1434,7 @@ function carregarComponenteUnidade(){ | @@ -1434,7 +1434,7 @@ function carregarComponenteUnidade(){ | ||
| 1434 | document.getElementById('txtUnidade').value = descricao; | 1434 | document.getElementById('txtUnidade').value = descricao; |
| 1435 | } | 1435 | } |
| 1436 | } | 1436 | } |
| 1437 | - objAutoCompletarUnidade.selecionar('<?=$strIdUnidade?>','<?=PaginaSEI::getInstance()->formatarParametrosJavascript($strNomeRemetente);?>'); | 1437 | + objAutoCompletarUnidade.selecionar('<?=$strIdUnidade?>','<?=PaginaSEI::getInstance()->formatarParametrosJavascript(PaginaSEI::tratarHTML($strNomeRemetente));?>'); |
| 1438 | } | 1438 | } |
| 1439 | 1439 | ||
| 1440 | function carregarComponenteLupaTpDocPrinc(acaoComponente){ | 1440 | function carregarComponenteLupaTpDocPrinc(acaoComponente){ |
| @@ -1489,7 +1489,7 @@ function carregarComponenteAutoCompleteTpDocPrinc(tipo){ | @@ -1489,7 +1489,7 @@ function carregarComponenteAutoCompleteTpDocPrinc(tipo){ | ||
| 1489 | document.getElementById('txtTipoDocPrinc').value = descricao; | 1489 | document.getElementById('txtTipoDocPrinc').value = descricao; |
| 1490 | } | 1490 | } |
| 1491 | } | 1491 | } |
| 1492 | - objAutoCompletarTipoDocPrinc.selecionar('<?=$strIdTipoDocPrinc?>','<?=PaginaSEI::getInstance()->formatarParametrosJavascript($strNomeRemetente);?>'); | 1492 | + objAutoCompletarTipoDocPrinc.selecionar('<?=$strIdTipoDocPrinc?>','<?=PaginaSEI::getInstance()->formatarParametrosJavascript(PaginaSEI::tratarHTML($strNomeRemetente));?>'); |
| 1493 | } | 1493 | } |
| 1494 | 1494 | ||
| 1495 | 1495 | ||
| @@ -1516,7 +1516,7 @@ function carregarComponenteTipoProcesso(){ | @@ -1516,7 +1516,7 @@ function carregarComponenteTipoProcesso(){ | ||
| 1516 | objAjaxIdNivelAcesso.executar(); | 1516 | objAjaxIdNivelAcesso.executar(); |
| 1517 | } | 1517 | } |
| 1518 | } | 1518 | } |
| 1519 | - objAutoCompletarTipoProcesso.selecionar('<?=$strIdTipoProcesso?>','<?=PaginaSEI::getInstance()->formatarParametrosJavascript($strNomeRemetente);?>'); | 1519 | + objAutoCompletarTipoProcesso.selecionar('<?=$strIdTipoProcesso?>','<?=PaginaSEI::getInstance()->formatarParametrosJavascript(PaginaSEI::tratarHTML($strNomeRemetente));?>'); |
| 1520 | 1520 | ||
| 1521 | } | 1521 | } |
| 1522 | 1522 |
sei/web/modulos/peticionamento/md_pet_tipo_processo_cadastro_orientacoes.php
| @@ -55,9 +55,9 @@ | @@ -55,9 +55,9 @@ | ||
| 55 | 55 | ||
| 56 | if (isset($_POST['sbmCadastrarOrientacoesPetIndisp'])) { | 56 | if (isset($_POST['sbmCadastrarOrientacoesPetIndisp'])) { |
| 57 | try{ | 57 | try{ |
| 58 | - | 58 | + $objEditorRN->validarTagsCriticas(array('jpg','png'), $_POST['txaConteudo']); |
| 59 | $objMdPetTpProcessoOrientacoesDTO2->setStrOrientacoesGerais($_POST['txaConteudo']); | 59 | $objMdPetTpProcessoOrientacoesDTO2->setStrOrientacoesGerais($_POST['txaConteudo']); |
| 60 | - | 60 | + |
| 61 | //Estilo | 61 | //Estilo |
| 62 | $conjuntoEstilosRN = new ConjuntoEstilosRN(); | 62 | $conjuntoEstilosRN = new ConjuntoEstilosRN(); |
| 63 | $conjuntoEstilosDTO = new ConjuntoEstilosDTO(); | 63 | $conjuntoEstilosDTO = new ConjuntoEstilosDTO(); |
| @@ -133,7 +133,7 @@ PaginaSEI::getInstance()->fecharAreaDados(); | @@ -133,7 +133,7 @@ PaginaSEI::getInstance()->fecharAreaDados(); | ||
| 133 | <table style="width: 100%"> | 133 | <table style="width: 100%"> |
| 134 | <td style="width: 95%"> | 134 | <td style="width: 95%"> |
| 135 | <div id="divEditores" style="overflow: auto;"> | 135 | <div id="divEditores" style="overflow: auto;"> |
| 136 | - <textarea id="txaConteudo" name="txaConteudo" rows="10" class="infraTextarea" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>"><?=$txtConteudo?></textarea> | 136 | + <textarea id="txaConteudo" name="txaConteudo" rows="10" class="infraTextarea" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>"><?=PaginaSEI::tratarHTML($txtConteudo)?></textarea> |
| 137 | <script type="text/javascript"> | 137 | <script type="text/javascript"> |
| 138 | <?=$retEditor->getStrEditores();?> | 138 | <?=$retEditor->getStrEditores();?> |
| 139 | </script> | 139 | </script> |
sei/web/modulos/peticionamento/md_pet_tipo_processo_lista.php
| @@ -295,7 +295,7 @@ try { | @@ -295,7 +295,7 @@ try { | ||
| 295 | 295 | ||
| 296 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir){ | 296 | if ($bolAcaoDesativar || $bolAcaoReativar || $bolAcaoExcluir){ |
| 297 | $strId = $arrObjMdPetTipoProcessoDTO[$i]->getNumIdTipoProcessoPeticionamento(); | 297 | $strId = $arrObjMdPetTipoProcessoDTO[$i]->getNumIdTipoProcessoPeticionamento(); |
| 298 | - $strDescricao = PaginaSEI::getInstance()->formatarParametrosJavaScript($arrObjMdPetTipoProcessoDTO[$i]->getStrNomeProcesso()); | 298 | + $strDescricao = PaginaSEI::getInstance()->formatarParametrosJavaScript(PaginaSEI::tratarHTML($arrObjMdPetTipoProcessoDTO[$i]->getStrNomeProcesso())); |
| 299 | } | 299 | } |
| 300 | 300 | ||
| 301 | if ($bolAcaoDesativar && $arrObjMdPetTipoProcessoDTO[$i]->getStrSinAtivo() == 'S'){ | 301 | if ($bolAcaoDesativar && $arrObjMdPetTipoProcessoDTO[$i]->getStrSinAtivo() == 'S'){ |
| @@ -454,7 +454,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | @@ -454,7 +454,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | ||
| 454 | 454 | ||
| 455 | <!-- Tipo de Processo --> | 455 | <!-- Tipo de Processo --> |
| 456 | <label id="lblTipoProcesso" for="txtTipoProcesso" class="infraLabelOpcional">Tipo de Processo:</label> | 456 | <label id="lblTipoProcesso" for="txtTipoProcesso" class="infraLabelOpcional">Tipo de Processo:</label> |
| 457 | - <input type="text" name="txtTipoProcesso" id="txtTipoProcesso" value="<?php echo isset($_POST['txtTipoProcesso']) ? $_POST['txtTipoProcesso'] : ''?>" class="infraText" /> | 457 | + <input type="text" name="txtTipoProcesso" id="txtTipoProcesso" value="<?php echo isset($_POST['txtTipoProcesso']) ? PaginaSEI::tratarHTML($_POST['txtTipoProcesso']) : ''?>" class="infraText" /> |
| 458 | 458 | ||
| 459 | <!-- Indicação de Interessado --> | 459 | <!-- Indicação de Interessado --> |
| 460 | <label id="lblIndicacaoInteressado" for="selIndicacaoInteressado" class="infraLabelOpcional">Indicação de Interessado:</label> | 460 | <label id="lblIndicacaoInteressado" for="selIndicacaoInteressado" class="infraLabelOpcional">Indicação de Interessado:</label> |
sei/web/modulos/peticionamento/md_pet_usu_ext_cadastro.php
| @@ -190,7 +190,7 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); | @@ -190,7 +190,7 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); | ||
| 190 | 190 | ||
| 191 | <input type="text" id="txtCPF" class="infraText" name="txtCPF" onkeyup="return alterandoCPF(this, event)" style="width:120px; display:none;" maxlength="14"/> | 191 | <input type="text" id="txtCPF" class="infraText" name="txtCPF" onkeyup="return alterandoCPF(this, event)" style="width:120px; display:none;" maxlength="14"/> |
| 192 | 192 | ||
| 193 | - <input type="text" id="txtCNPJ" class="infraText" name="txtCNPJ" onkeyup="return alterandoCNPJ(this, event)" style="width:120px; display:none;"/ maxlength="18"/> | 193 | + <input type="text" id="txtCNPJ" class="infraText" name="txtCNPJ" onkeyup="return alterandoCNPJ(this, event)" style="width:120px; display:none;" maxlength="18"/> |
| 194 | 194 | ||
| 195 | <input type="button" id="btValidarCPFCNPJ" class="infraText" value="Validar" style="visibility: hidden; margin-left: 2px;" onclick="abrirCadastroInteressado()"/> | 195 | <input type="button" id="btValidarCPFCNPJ" class="infraText" value="Validar" style="visibility: hidden; margin-left: 2px;" onclick="abrirCadastroInteressado()"/> |
| 196 | 196 |
sei/web/modulos/peticionamento/rn/MdPetAtualizadorSeiRN.php
| @@ -11,10 +11,10 @@ require_once dirname(__FILE__) . '/../../../SEI.php'; | @@ -11,10 +11,10 @@ require_once dirname(__FILE__) . '/../../../SEI.php'; | ||
| 11 | class MdPetAtualizadorSeiRN extends InfraRN { | 11 | class MdPetAtualizadorSeiRN extends InfraRN { |
| 12 | 12 | ||
| 13 | private $numSeg = 0; | 13 | private $numSeg = 0; |
| 14 | - private $versaoAtualDesteModulo = '2.0.1'; | 14 | + private $versaoAtualDesteModulo = '2.0.2'; |
| 15 | private $nomeDesteModulo = 'MÓDULO DE PETICIONAMENTO E INTIMAÇÃO ELETRÔNICOS'; | 15 | private $nomeDesteModulo = 'MÓDULO DE PETICIONAMENTO E INTIMAÇÃO ELETRÔNICOS'; |
| 16 | private $nomeParametroModulo = 'VERSAO_MODULO_PETICIONAMENTO'; | 16 | private $nomeParametroModulo = 'VERSAO_MODULO_PETICIONAMENTO'; |
| 17 | - private $historicoVersoes = array('0.0.1', '0.0.2', '1.0.3', '1.0.4', '1.1.0', '2.0.0', '2.0.1'); | 17 | + private $historicoVersoes = array('0.0.1', '0.0.2', '1.0.3', '1.0.4', '1.1.0', '2.0.0', '2.0.1', '2.0.2'); |
| 18 | 18 | ||
| 19 | public static $MD_PET_ID_SERIE_RECIBO = 'MODULO_PETICIONAMENTO_ID_SERIE_RECIBO_PETICIONAMENTO'; | 19 | public static $MD_PET_ID_SERIE_RECIBO = 'MODULO_PETICIONAMENTO_ID_SERIE_RECIBO_PETICIONAMENTO'; |
| 20 | 20 | ||
| @@ -115,6 +115,7 @@ class MdPetAtualizadorSeiRN extends InfraRN { | @@ -115,6 +115,7 @@ class MdPetAtualizadorSeiRN extends InfraRN { | ||
| 115 | $this->instalarv110(); | 115 | $this->instalarv110(); |
| 116 | $this->instalarv200(); | 116 | $this->instalarv200(); |
| 117 | $this->instalarv201(); | 117 | $this->instalarv201(); |
| 118 | + $this->instalarv202(); | ||
| 118 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); | 119 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
| 119 | $this->finalizar('FIM', false); | 120 | $this->finalizar('FIM', false); |
| 120 | } elseif ($strVersaoModuloPeticionamento == '0.0.1') { | 121 | } elseif ($strVersaoModuloPeticionamento == '0.0.1') { |
| @@ -124,6 +125,7 @@ class MdPetAtualizadorSeiRN extends InfraRN { | @@ -124,6 +125,7 @@ class MdPetAtualizadorSeiRN extends InfraRN { | ||
| 124 | $this->instalarv110(); | 125 | $this->instalarv110(); |
| 125 | $this->instalarv200(); | 126 | $this->instalarv200(); |
| 126 | $this->instalarv201(); | 127 | $this->instalarv201(); |
| 128 | + $this->instalarv202(); | ||
| 127 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); | 129 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
| 128 | $this->finalizar('FIM', false); | 130 | $this->finalizar('FIM', false); |
| 129 | } elseif ($strVersaoModuloPeticionamento == '0.0.2') { | 131 | } elseif ($strVersaoModuloPeticionamento == '0.0.2') { |
| @@ -132,6 +134,7 @@ class MdPetAtualizadorSeiRN extends InfraRN { | @@ -132,6 +134,7 @@ class MdPetAtualizadorSeiRN extends InfraRN { | ||
| 132 | $this->instalarv110(); | 134 | $this->instalarv110(); |
| 133 | $this->instalarv200(); | 135 | $this->instalarv200(); |
| 134 | $this->instalarv201(); | 136 | $this->instalarv201(); |
| 137 | + $this->instalarv202(); | ||
| 135 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); | 138 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
| 136 | $this->finalizar('FIM', false); | 139 | $this->finalizar('FIM', false); |
| 137 | } elseif (in_array($strVersaoModuloPeticionamento, array('1.0.0', '1.0.3'))) { | 140 | } elseif (in_array($strVersaoModuloPeticionamento, array('1.0.0', '1.0.3'))) { |
| @@ -139,24 +142,32 @@ class MdPetAtualizadorSeiRN extends InfraRN { | @@ -139,24 +142,32 @@ class MdPetAtualizadorSeiRN extends InfraRN { | ||
| 139 | $this->instalarv110(); | 142 | $this->instalarv110(); |
| 140 | $this->instalarv200(); | 143 | $this->instalarv200(); |
| 141 | $this->instalarv201(); | 144 | $this->instalarv201(); |
| 145 | + $this->instalarv202(); | ||
| 142 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); | 146 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
| 143 | $this->finalizar('FIM', false); | 147 | $this->finalizar('FIM', false); |
| 144 | } elseif ($strVersaoModuloPeticionamento == '1.0.4') { | 148 | } elseif ($strVersaoModuloPeticionamento == '1.0.4') { |
| 145 | $this->instalarv110(); | 149 | $this->instalarv110(); |
| 146 | $this->instalarv200(); | 150 | $this->instalarv200(); |
| 147 | $this->instalarv201(); | 151 | $this->instalarv201(); |
| 152 | + $this->instalarv202(); | ||
| 148 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); | 153 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
| 149 | $this->finalizar('FIM', false); | 154 | $this->finalizar('FIM', false); |
| 150 | } elseif ($strVersaoModuloPeticionamento == '1.1.0') { | 155 | } elseif ($strVersaoModuloPeticionamento == '1.1.0') { |
| 151 | $this->instalarv200(); | 156 | $this->instalarv200(); |
| 152 | $this->instalarv201(); | 157 | $this->instalarv201(); |
| 158 | + $this->instalarv202(); | ||
| 153 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); | 159 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
| 154 | $this->finalizar('FIM', false); | 160 | $this->finalizar('FIM', false); |
| 155 | } elseif ($strVersaoModuloPeticionamento == '2.0.0') { | 161 | } elseif ($strVersaoModuloPeticionamento == '2.0.0') { |
| 156 | $this->instalarv201(); | 162 | $this->instalarv201(); |
| 163 | + $this->instalarv202(); | ||
| 157 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); | 164 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
| 158 | $this->finalizar('FIM', false); | 165 | $this->finalizar('FIM', false); |
| 159 | } elseif ($strVersaoModuloPeticionamento == '2.0.1') { | 166 | } elseif ($strVersaoModuloPeticionamento == '2.0.1') { |
| 167 | + $this->instalarv202(); | ||
| 168 | + $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); | ||
| 169 | + $this->finalizar('FIM', false); | ||
| 170 | + } elseif ($strVersaoModuloPeticionamento == '2.0.2') { | ||
| 160 | $this->logar('A VERSÃO MAIS ATUAL DO '.$this->nomeDesteModulo.' (v'.$this->versaoAtualDesteModulo.') JÁ ESTÁ INSTALADA.'); | 171 | $this->logar('A VERSÃO MAIS ATUAL DO '.$this->nomeDesteModulo.' (v'.$this->versaoAtualDesteModulo.') JÁ ESTÁ INSTALADA.'); |
| 161 | $this->finalizar('FIM', false); | 172 | $this->finalizar('FIM', false); |
| 162 | } | 173 | } |
| @@ -1638,6 +1649,55 @@ ATENÇÃO: As informações contidas neste e-mail, incluindo seus anexos, podem ser | @@ -1638,6 +1649,55 @@ ATENÇÃO: As informações contidas neste e-mail, incluindo seus anexos, podem ser | ||
| 1638 | 1649 | ||
| 1639 | } | 1650 | } |
| 1640 | 1651 | ||
| 1652 | + //Contem atualizações da versao 2.0.2 | ||
| 1653 | + protected function instalarv202(){ | ||
| 1654 | + | ||
| 1655 | + $this->logar('EXECUTANDO A INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO 2.0.2 DO '.$this->nomeDesteModulo.' NA BASE DO SEI'); | ||
| 1656 | + | ||
| 1657 | + //checando permissoes na base de dados | ||
| 1658 | + $objInfraMetaBD = new InfraMetaBD(BancoSEI::getInstance()); | ||
| 1659 | + | ||
| 1660 | + if (count($objInfraMetaBD->obterTabelas('md_pet_indisp_anexo')) > 0) { | ||
| 1661 | + $this->logar('DELETANDO A TABELA md_pet_indisp_anexo'); | ||
| 1662 | + BancoSEI::getInstance()->executarSql('DROP TABLE md_pet_indisp_anexo'); | ||
| 1663 | + } | ||
| 1664 | + if (count($objInfraMetaBD->obterTabelas('seq_md_pet_indisp_anexo')) > 0) { | ||
| 1665 | + $this->logar('DELETANDO A TABELA seq_md_pet_indisp_anexo'); | ||
| 1666 | + BancoSEI::getInstance()->executarSql('DROP TABLE seq_md_pet_indisp_anexo'); | ||
| 1667 | + } | ||
| 1668 | + | ||
| 1669 | + if (count($objInfraMetaBD->obterTabelas('md_pet_indisp_doc')) == 0) { | ||
| 1670 | + $this->logar('CRIANDO A TABELA md_pet_indisp_doc'); | ||
| 1671 | + | ||
| 1672 | + BancoSEI::getInstance()->executarSql('CREATE TABLE md_pet_indisp_doc ( | ||
| 1673 | + id_md_pet_indisp_doc ' . $objInfraMetaBD->tipoNumero() . ' NOT NULL, | ||
| 1674 | + id_md_pet_indisponibilidade ' . $objInfraMetaBD->tipoNumero() . ' NOT NULL, | ||
| 1675 | + id_unidade ' . $objInfraMetaBD->tipoNumero() . ' NOT NULL, | ||
| 1676 | + id_usuario ' . $objInfraMetaBD->tipoNumero() . ' NOT NULL, | ||
| 1677 | + id_documento ' . $objInfraMetaBD->tipoNumeroGrande() . ' NULL, | ||
| 1678 | + id_acesso_externo ' . $objInfraMetaBD->tipoNumero() . ' NULL, | ||
| 1679 | + dth_inclusao ' . $objInfraMetaBD->tipoDataHora() . ' NOT NULL, | ||
| 1680 | + sin_ativo ' . $objInfraMetaBD->tipoTextoFixo(1) . ' NOT NULL | ||
| 1681 | + )' | ||
| 1682 | + ); | ||
| 1683 | + | ||
| 1684 | + $objInfraMetaBD->adicionarChavePrimaria('md_pet_indisp_doc', 'pk_md_pet_indisp_doc', array('id_md_pet_indisp_doc')); | ||
| 1685 | + $objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_indisp_doc_01', 'md_pet_indisp_doc', array('id_md_pet_indisponibilidade'), 'md_pet_indisponibilidade', array('id_md_pet_indisponibilidade')); | ||
| 1686 | + $objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_indisp_doc_02', 'md_pet_indisp_doc', array('id_unidade'), 'unidade', array('id_unidade')); | ||
| 1687 | + $objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_indisp_doc_03', 'md_pet_indisp_doc', array('id_usuario'), 'usuario', array('id_usuario')); | ||
| 1688 | + $objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_indisp_doc_04', 'md_pet_indisp_doc', array('id_documento'), 'documento', array('id_documento')); | ||
| 1689 | + $objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_indisp_doc_05', 'md_pet_indisp_doc', array('id_acesso_externo'), 'acesso_externo', array('id_acesso_externo')); | ||
| 1690 | + } | ||
| 1691 | + if (count($objInfraMetaBD->obterTabelas('seq_md_pet_indisp_doc')) == 0) { | ||
| 1692 | + $this->logar('CRIANDO A SEQUENCE seq_md_pet_indisp_doc'); | ||
| 1693 | + BancoSEI::getInstance()->criarSequencialNativa('seq_md_pet_indisp_doc', 1); | ||
| 1694 | + } | ||
| 1695 | + | ||
| 1696 | + $this->logar('ATUALIZANDO PARÂMETRO '.$this->nomeParametroModulo.' NA TABELA infra_parametro PARA CONTROLAR A VERSÃO DO MÓDULO'); | ||
| 1697 | + BancoSEI::getInstance()->executarSql('UPDATE infra_parametro SET valor = \'2.0.2\' WHERE nome = \'' . $this->nomeParametroModulo . '\' '); | ||
| 1698 | + | ||
| 1699 | + } | ||
| 1700 | + | ||
| 1641 | private function existeIdEmailSistemaPecitionamento(){ | 1701 | private function existeIdEmailSistemaPecitionamento(){ |
| 1642 | $this->logar('VERIFICANDO A EXISTENCIA DE MODELOS DE EMAIL PARA PETICIONAMENTO'); | 1702 | $this->logar('VERIFICANDO A EXISTENCIA DE MODELOS DE EMAIL PARA PETICIONAMENTO'); |
| 1643 | $sql = "select | 1703 | $sql = "select |
sei/web/modulos/peticionamento/rn/MdPetEditorUsuarioExternoRN.php
| @@ -301,7 +301,7 @@ class MdPetEditorUsuarioExternoRN extends InfraRN | @@ -301,7 +301,7 @@ class MdPetEditorUsuarioExternoRN extends InfraRN | ||
| 301 | $strFormatos = rtrim($strFormatos, '|'); | 301 | $strFormatos = rtrim($strFormatos, '|'); |
| 302 | 302 | ||
| 303 | $strTextareas .= '<textarea name="txaEditor_' . $objVersaoSecaoDocumentoDTO->getNumIdSecaoModeloSecaoDocumento() . '" style="display:none;">'; | 303 | $strTextareas .= '<textarea name="txaEditor_' . $objVersaoSecaoDocumentoDTO->getNumIdSecaoModeloSecaoDocumento() . '" style="display:none;">'; |
| 304 | - $strTextareas .= InfraString::formatarXML($this->filtrarTags($objVersaoSecaoDocumentoDTO->getStrConteudo())); | 304 | + $strTextareas .= InfraString::formatarXML($this->filtrarTags(PaginaSEI::tratarHTML($objVersaoSecaoDocumentoDTO->getStrConteudo()))); |
| 305 | $strTextareas .= '</textarea>'; | 305 | $strTextareas .= '</textarea>'; |
| 306 | 306 | ||
| 307 | 307 | ||
| @@ -1482,9 +1482,9 @@ class MdPetEditorUsuarioExternoRN extends InfraRN | @@ -1482,9 +1482,9 @@ class MdPetEditorUsuarioExternoRN extends InfraRN | ||
| 1482 | 1482 | ||
| 1483 | $html = '<hr style="border:1px solid #c0c0c0;" />'; | 1483 | $html = '<hr style="border:1px solid #c0c0c0;" />'; |
| 1484 | $html .= 'Criado por '; | 1484 | $html .= 'Criado por '; |
| 1485 | - $html .= '<a onclick="alert(\'' . PaginaSEIExterna::getInstance()->formatarParametrosJavascript($strNomeUsuarioGerador) . ')" alt="' . $strNomeUsuarioGerador . '" title="' . $strNomeUsuarioGerador . '" style="color:#0066cc;text-decoration:none;cursor:pointer;">' . $strSiglaUsuarioGerador . '</a>'; | 1485 | + $html .= '<a onclick="alert(\'' . PaginaSEIExterna::getInstance()->formatarParametrosJavascript(PaginaSEIExterna::tratarHTML($strNomeUsuarioGerador)) . ')" alt="' . $strNomeUsuarioGerador . '" title="' . $strNomeUsuarioGerador . '" style="color:#0066cc;text-decoration:none;cursor:pointer;">' . $strSiglaUsuarioGerador . '</a>'; |
| 1486 | $html .= ', versão ' . $numVersao . ' por '; | 1486 | $html .= ', versão ' . $numVersao . ' por '; |
| 1487 | - $html .= '<a onclick="alert(\'' . PaginaSEIExterna::getInstance()->formatarParametrosJavascript($strNomeUsuarioVersao) . ')" alt="' . $strNomeUsuarioVersao . '" title="' . $strNomeUsuarioVersao . '" style="color:#0066cc;text-decoration:none;cursor:pointer;">' . $strSiglaUsuarioVersao . '</a>'; | 1487 | + $html .= '<a onclick="alert(\'' . PaginaSEIExterna::getInstance()->formatarParametrosJavascript(PaginaSEIExterna::tratarHTML($strNomeUsuarioVersao)) . ')" alt="' . $strNomeUsuarioVersao . '" title="' . $strNomeUsuarioVersao . '" style="color:#0066cc;text-decoration:none;cursor:pointer;">' . $strSiglaUsuarioVersao . '</a>'; |
| 1488 | $html .= ' em ' . $dthVersao . '.' . "\n"; | 1488 | $html .= ' em ' . $dthVersao . '.' . "\n"; |
| 1489 | 1489 | ||
| 1490 | return $html; | 1490 | return $html; |
sei/web/modulos/peticionamento/rn/MdPetIntercorrenteReaberturaRN.php
| @@ -70,19 +70,28 @@ class MdPetIntercorrenteReaberturaRN extends InfraRN { | @@ -70,19 +70,28 @@ class MdPetIntercorrenteReaberturaRN extends InfraRN { | ||
| 70 | $unidadeDTO->setNumIdUnidade($idUnidadeReabrirProcesso); | 70 | $unidadeDTO->setNumIdUnidade($idUnidadeReabrirProcesso); |
| 71 | $unidadeRN = new UnidadeRN(); | 71 | $unidadeRN = new UnidadeRN(); |
| 72 | $objUnidadeDTO = $unidadeRN->consultarRN0125($unidadeDTO); | 72 | $objUnidadeDTO = $unidadeRN->consultarRN0125($unidadeDTO); |
| 73 | - | 73 | + |
| 74 | if($objUnidadeDTO->getStrSinAtivo() == 'N'){ | 74 | if($objUnidadeDTO->getStrSinAtivo() == 'N'){ |
| 75 | $idUnidadeReabrirProcesso = null; | 75 | $idUnidadeReabrirProcesso = null; |
| 76 | - $objAtividadeRN = new AtividadeRN(); | ||
| 77 | - $arrObjUnidadeDTO = $objAtividadeRN->listarUnidadesTramitacao($objProcedimentoDTO); | ||
| 78 | - foreach ($arrObjUnidadeDTO as $itemObjUnidadeDTO) { | ||
| 79 | - if ($itemObjUnidadeDTO->getStrSinAtivo() == 'S') { | ||
| 80 | - $idUnidadeReabrirProcesso = $itemObjUnidadeDTO->getNumIdUnidade(); | ||
| 81 | - break; | 76 | + |
| 77 | + $objMdPetAtividadeRN = new MdPetAtividadeRN(); | ||
| 78 | + | ||
| 79 | + $arrObjMdPetAtividadeDTO = $objMdPetAtividadeRN->listarUnidadesTramitacao($objProcedimentoDTO); | ||
| 80 | + | ||
| 81 | + foreach ($arrObjMdPetAtividadeDTO as $itemObjMdPetAtividadeDTO) { | ||
| 82 | + $unidadeDTO = new UnidadeDTO(); | ||
| 83 | + $unidadeDTO->retNumIdUnidade(); | ||
| 84 | + $unidadeDTO->retStrSinAtivo(); | ||
| 85 | + $unidadeDTO->setBolExclusaoLogica(false); | ||
| 86 | + $unidadeDTO->setNumIdUnidade($itemObjMdPetAtividadeDTO->getNumIdUnidade()); | ||
| 87 | + $unidadeRN = new UnidadeRN(); | ||
| 88 | + $objUnidadeDTO = $unidadeRN->consultarRN0125($unidadeDTO); | ||
| 89 | + if (count($objUnidadeDTO)==1 && $objUnidadeDTO->getStrSinAtivo() == 'S') { | ||
| 90 | + $idUnidadeReabrirProcesso = $objUnidadeDTO->getNumIdUnidade(); | ||
| 82 | } | 91 | } |
| 83 | } | 92 | } |
| 84 | } | 93 | } |
| 85 | - | 94 | + |
| 86 | if (!$idUnidadeReabrirProcesso) { | 95 | if (!$idUnidadeReabrirProcesso) { |
| 87 | return false; | 96 | return false; |
| 88 | } | 97 | } |
sei/web/modulos/peticionamento/rn/MdPetIntimacaoRN.php
| @@ -276,7 +276,7 @@ class MdPetIntimacaoRN extends InfraRN { | @@ -276,7 +276,7 @@ class MdPetIntimacaoRN extends InfraRN { | ||
| 276 | $tiposResposta = MdPetIntTipoIntimacaoINT::montaSelectTipoRespostaIntimacao($objMdPetIntimacaoDTO->getNumIdMdPetIntTipoIntimacao(), false); | 276 | $tiposResposta = MdPetIntTipoIntimacaoINT::montaSelectTipoRespostaIntimacao($objMdPetIntimacaoDTO->getNumIdMdPetIntTipoIntimacao(), false); |
| 277 | $strSelect = ''; | 277 | $strSelect = ''; |
| 278 | foreach($tiposResposta as $id => $tipoResposta){ | 278 | foreach($tiposResposta as $id => $tipoResposta){ |
| 279 | - $tipoResposta = explode('-#-', $tipoResposta); | 279 | + $tipoResposta = explode('±', $tipoResposta); |
| 280 | $checked = ''; | 280 | $checked = ''; |
| 281 | foreach($objMdPetIntRelTipoRespDTO as $objTipoResposta){ | 281 | foreach($objMdPetIntRelTipoRespDTO as $objTipoResposta){ |
| 282 | if($tipoResposta[0] == $objTipoResposta->getNumIdMdPetIntTipoResp()){ | 282 | if($tipoResposta[0] == $objTipoResposta->getNumIdMdPetIntTipoResp()){ |
| @@ -1643,17 +1643,20 @@ class MdPetIntimacaoRN extends InfraRN { | @@ -1643,17 +1643,20 @@ class MdPetIntimacaoRN extends InfraRN { | ||
| 1643 | $objUnidadeDTO = $unidadeRN->consultarRN0125($unidadeDTO); | 1643 | $objUnidadeDTO = $unidadeRN->consultarRN0125($unidadeDTO); |
| 1644 | 1644 | ||
| 1645 | if($objUnidadeDTO->getStrSinAtivo() == 'N'){ | 1645 | if($objUnidadeDTO->getStrSinAtivo() == 'N'){ |
| 1646 | - $objAtividadeRN = new AtividadeRN(); | ||
| 1647 | - //VERIFICAR SE RETORNA ÚLTIMA OU QUALQUER UMA | ||
| 1648 | - $arrObjUnidadeDTO = $objAtividadeRN->listarUnidadesTramitacao($objProcedimentoDTO); | ||
| 1649 | - foreach ($arrObjUnidadeDTO as $itemObjUnidadeDTO) { | 1646 | + |
| 1647 | + $objMdPetAtividadeRN = new MdPetAtividadeRN(); | ||
| 1648 | + $arrObjMdPetAtividadeDTO = $objMdPetAtividadeRN->listarUnidadesTramitacao($objProcedimentoDTO); | ||
| 1649 | + | ||
| 1650 | + foreach ($arrObjMdPetAtividadeDTO as $itemObjMdPetAtividadeDTO) { | ||
| 1650 | $unidadeDTO = new UnidadeDTO(); | 1651 | $unidadeDTO = new UnidadeDTO(); |
| 1652 | + $unidadeDTO->retNumIdUnidade(); | ||
| 1651 | $unidadeDTO->retStrSinAtivo(); | 1653 | $unidadeDTO->retStrSinAtivo(); |
| 1652 | - $unidadeDTO->setNumIdUnidade($itemObjUnidadeDTO->getNumIdUnidade()); | 1654 | + $unidadeDTO->setBolExclusaoLogica(false); |
| 1655 | + $unidadeDTO->setNumIdUnidade($itemObjMdPetAtividadeDTO->getNumIdUnidade()); | ||
| 1653 | $unidadeRN = new UnidadeRN(); | 1656 | $unidadeRN = new UnidadeRN(); |
| 1654 | $objUnidadeDTO = $unidadeRN->consultarRN0125($unidadeDTO); | 1657 | $objUnidadeDTO = $unidadeRN->consultarRN0125($unidadeDTO); |
| 1655 | if (count($objUnidadeDTO)==1 && $objUnidadeDTO->getStrSinAtivo() == 'S') { | 1658 | if (count($objUnidadeDTO)==1 && $objUnidadeDTO->getStrSinAtivo() == 'S') { |
| 1656 | - $idUnidadeAberta = $itemObjUnidadeDTO->getNumIdUnidade(); | 1659 | + $idUnidadeAberta = $objUnidadeDTO->getNumIdUnidade(); |
| 1657 | break; | 1660 | break; |
| 1658 | } | 1661 | } |
| 1659 | } | 1662 | } |