Commit 261d4336a2c1ee2f7e894afb1c97783a8184de1e
1 parent
ed900365
Exists in
master
and in
1 other branch
Atualização de códigos.
Showing
16 changed files
with
1066 additions
and
385 deletions
Show diff stats
sei/institucional/peticionamento/PaginaPeticionamentoExterna.php
0 → 100644
... | ... | @@ -0,0 +1,35 @@ |
1 | +<? | |
2 | +/* | |
3 | + * ANATEL | |
4 | + * | |
5 | + * 22/09/2016 - CAST | |
6 | + * | |
7 | + */ | |
8 | + | |
9 | + require_once dirname(__FILE__).'/../../SEI.php'; | |
10 | + | |
11 | + class PaginaPeticionamentoExterna extends PaginaSEIExterna | |
12 | + { | |
13 | + private static $instance = null; | |
14 | + | |
15 | + public static function getInstance() | |
16 | + { | |
17 | + if (self::$instance == null) { | |
18 | + self::$instance = new PaginaPeticionamentoExterna(); | |
19 | + } | |
20 | + return self::$instance; | |
21 | + } | |
22 | + | |
23 | + public function __construct() | |
24 | + { | |
25 | + SeiINT::validarHttps(); | |
26 | + parent::__construct(); | |
27 | + } | |
28 | + | |
29 | + public function getStrLogoSistema() | |
30 | + { | |
31 | + return '<img src="../../imagens/sei_logo_' . $this->getStrEsquemaCores() . '.jpg" title="Sistema Eletrônico de Informações - Versão ' . SEI_VERSAO . '"/><span class="infraTituloLogoSistema">' . ConfiguracaoSEI::getInstance()->getValor('PaginaSEI', 'NomeSistemaComplemento') . '</span>'; | |
32 | + } | |
33 | + | |
34 | + } | |
35 | +?> | |
0 | 36 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/PeticionamentoIntegracao.php
... | ... | @@ -5,6 +5,9 @@ |
5 | 5 | * 21/06/2016 - criado por marcelo.bezerra@cast.com.br - CAST |
6 | 6 | * |
7 | 7 | */ |
8 | + | |
9 | +require_once dirname(__FILE__).'/util/DataUtils.php'; | |
10 | + | |
8 | 11 | class PeticionamentoIntegracao extends SeiIntegracao { |
9 | 12 | |
10 | 13 | public function __construct(){ |
... | ... | @@ -13,6 +16,7 @@ class PeticionamentoIntegracao extends SeiIntegracao { |
13 | 16 | //EU 7352 - Icone exibido na tela interna do processo (Controle de Processos -> clicar em algum processo da lista) |
14 | 17 | public function montarIconeProcedimento(SeiIntegracaoDTO $objSeiIntegracaoDTO){ |
15 | 18 | |
19 | + $reciboRN = new ReciboPeticionamentoRN(); | |
16 | 20 | $arrSeiNoAcaoDTO = array(); |
17 | 21 | |
18 | 22 | $idProcedimento = null; |
... | ... | @@ -21,30 +25,103 @@ class PeticionamentoIntegracao extends SeiIntegracao { |
21 | 25 | $idProcedimento = $objSeiIntegracaoDTO->getObjProcedimentoDTO()->getDblIdProcedimento(); |
22 | 26 | } |
23 | 27 | |
24 | - /* | |
25 | - $seiAcaoDTO = new SeiNoAcaoDTO(); | |
26 | - $seiAcaoDTO->setStrTipo('"CIENCIAS"'); | |
27 | - $seiAcaoDTO->setStrId('C'); | |
28 | - $seiAcaoDTO->setStrIdPai($idProcedimento); | |
29 | - $seiAcaoDTO->setStrHref('http://www.anatel.gov.br'); | |
30 | - $seiAcaoDTO->setStrTarget('ifrVisualizacao'); | |
31 | - $seiAcaoDTO->setStrTitle('title teste'); | |
32 | - $seiAcaoDTO->setStrIcone('"imagens/sei_ciencia_pequeno.gif"'); | |
33 | - $seiAcaoDTO->setBolHabilitado(true); | |
34 | - $arrSeiNoAcaoDTO[] = $seiAcaoDTO; | |
35 | - */ | |
28 | + //verificar se este processo é de peticionamento | |
29 | + $reciboDTO = new ReciboPeticionamentoDTO(); | |
30 | + $reciboDTO->retNumIdProtocolo(); | |
31 | + $reciboDTO->retDthDataHoraRecebimentoFinal(); | |
32 | + $reciboDTO->setNumIdProtocolo( $idProcedimento ); | |
33 | + $arrRecibos = $reciboRN->listar( $reciboDTO ); | |
34 | + | |
35 | + if( $arrRecibos != null && count( $arrRecibos ) > 0){ | |
36 | + | |
37 | + $recibo = $arrRecibos[0]; | |
38 | + $data = DataUtils::setFormat($recibo->getDthDataHoraRecebimentoFinal(), 'dd/mm/yyyy'); | |
39 | + $title = 'Peticionamento Eletrônico\nProcesso Novo: ' . $data; | |
40 | + | |
41 | + //$link = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=protocolo_ciencia_listar&acao_origem=procedimento_visualizar&id_procedimento='. $idProcedimento . '&arvore=1'); | |
42 | + | |
43 | + $seiAcaoDTO = new SeiNoAcaoDTO(); | |
44 | + $seiAcaoDTO->setStrTipo('PETICIONAMENTO'); | |
45 | + $seiAcaoDTO->setStrId('PET'); | |
46 | + $seiAcaoDTO->setStrIdPai($idProcedimento); | |
47 | + $seiAcaoDTO->setStrHref('javascript:;'); | |
48 | + $seiAcaoDTO->setStrTarget('ifrVisualizacao'); | |
49 | + $seiAcaoDTO->setStrTitle( $title ); | |
50 | + $seiAcaoDTO->setStrIcone('institucional/peticionamento/imagens/peticionamento_processo_novo.png'); | |
51 | + $seiAcaoDTO->setBolHabilitado(true); | |
52 | + $arrSeiNoAcaoDTO[] = $seiAcaoDTO; | |
53 | + | |
54 | + } | |
36 | 55 | |
37 | 56 | return $arrSeiNoAcaoDTO; |
38 | 57 | } |
39 | 58 | |
40 | 59 | //EU 7352 - Icone exibido na tela "Controle de Processos" |
41 | 60 | public function montarIconeControleProcessos($arrObjProcedimentoDTO){ |
42 | - return array("<img src='imagens/retorno_programado.gif' title='teste1' />"); | |
61 | + | |
62 | + $reciboRN = new ReciboPeticionamentoRN(); | |
63 | + $arrParam = array(); | |
64 | + | |
65 | + if( $arrObjProcedimentoDTO != null && count( $arrObjProcedimentoDTO ) > 0 ){ | |
66 | + | |
67 | + foreach( $arrObjProcedimentoDTO as $procDTO ){ | |
68 | + | |
69 | + //verificar se este processo é de peticionamento | |
70 | + $reciboDTO = new ReciboPeticionamentoDTO(); | |
71 | + $reciboDTO->retNumIdProtocolo(); | |
72 | + $reciboDTO->retDthDataHoraRecebimentoFinal(); | |
73 | + $reciboDTO->setNumIdProtocolo($procDTO->getDblIdProcedimento()); | |
74 | + $arrRecibos = $reciboRN->listar( $reciboDTO ); | |
75 | + | |
76 | + if( $arrRecibos != null && count( $arrRecibos ) > 0){ | |
77 | + | |
78 | + $recibo = $arrRecibos[0]; | |
79 | + $data = DataUtils::setFormat($recibo->getDthDataHoraRecebimentoFinal(), 'dd/mm/yyyy'); | |
80 | + $linhaDeCima = '"Peticionamento Eletrônico"'; | |
81 | + $linhaDeBaixo = '"Processo Novo: ' . $data . '"'; | |
82 | + $arrParam[$procDTO->getDblIdProcedimento()] = array("<img src='institucional/peticionamento/imagens/peticionamento_processo_novo.png' onmouseout='return infraTooltipOcultar();' onmouseover='return infraTooltipMostrar(" . $linhaDeBaixo . "," . $linhaDeCima . ");' />"); | |
83 | + } | |
84 | + } | |
85 | + | |
86 | + } | |
87 | + | |
88 | + return $arrParam; | |
43 | 89 | } |
44 | 90 | |
45 | 91 | //EU 7352 - Icone exibido na tela "Acompanhamento Especial" |
46 | 92 | public function montarIconeAcompanhamentoEspecial($arrObjProcedimentoDTO){ |
47 | - return array("<img src='imagens/retorno_programado.gif' title='teste2' />"); | |
93 | + | |
94 | + $reciboRN = new ReciboPeticionamentoRN(); | |
95 | + $arrParam = array(); | |
96 | + | |
97 | + if( $arrObjProcedimentoDTO != null && count( $arrObjProcedimentoDTO ) > 0 ){ | |
98 | + | |
99 | + foreach( $arrObjProcedimentoDTO as $procDTO ){ | |
100 | + | |
101 | + //verificar se este processo é de peticionamento | |
102 | + $reciboDTO = new ReciboPeticionamentoDTO(); | |
103 | + $reciboDTO->retNumIdProtocolo(); | |
104 | + $reciboDTO->retDthDataHoraRecebimentoFinal(); | |
105 | + $reciboDTO->setNumIdProtocolo($procDTO->getDblIdProcedimento()); | |
106 | + $arrRecibos = $reciboRN->listar( $reciboDTO ); | |
107 | + | |
108 | + if( $arrRecibos != null && count( $arrRecibos ) > 0){ | |
109 | + | |
110 | + $recibo = $arrRecibos[0]; | |
111 | + $data = DataUtils::setFormat($recibo->getDthDataHoraRecebimentoFinal(), 'dd/mm/yyyy'); | |
112 | + | |
113 | + $linhaDeCima = '"Peticionamento Eletrônico"'; | |
114 | + $linhaDeBaixo = '"Processo Novo: ' . $data . '"'; | |
115 | + $arrParam[$procDTO->getDblIdProcedimento()] = array("<img src='institucional/peticionamento/imagens/peticionamento_processo_novo.png' onmouseout='return infraTooltipOcultar();' onmouseover='return infraTooltipMostrar(" . $linhaDeBaixo . "," . $linhaDeCima . ");' />"); | |
116 | + | |
117 | + } | |
118 | + | |
119 | + | |
120 | + } | |
121 | + | |
122 | + } | |
123 | + | |
124 | + return $arrParam; | |
48 | 125 | } |
49 | 126 | |
50 | 127 | public function montarMenuUsuarioExterno(){ | ... | ... |
sei/institucional/peticionamento/dto/RelTipoContextoPeticionamentoDTO.php
... | ... | @@ -32,6 +32,11 @@ class RelTipoContextoPeticionamentoDTO extends InfraDTO { |
32 | 32 | 'SinSelecaoInteressado', |
33 | 33 | 'sin_selecao_interessado'); |
34 | 34 | |
35 | + $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, | |
36 | + 'NomeTipoContexto', | |
37 | + 'tp.nome', | |
38 | + 'tipo_contexto_contato tp'); | |
39 | + | |
35 | 40 | $this->configurarPK('IdTipoContextoPeticionamento', InfraDTO::$TIPO_PK_NATIVA ); |
36 | 41 | |
37 | 42 | $this->configurarFK('IdTipoContextoContato', 'tipo_contexto_contato tp', 'tp.id_tipo_contexto_contato'); | ... | ... |
sei/institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_cadastro.php
... | ... | @@ -17,15 +17,18 @@ try { |
17 | 17 | //InfraDebug::getInstance()->setBolDebugInfra(false); |
18 | 18 | //InfraDebug::getInstance()->limpar(); |
19 | 19 | ////////////////////////////////////////////////////////////////////////////// |
20 | - //PaginaSEIExterna::getInstance()->setBolXHTML(false); | |
20 | + //PaginaPeticionamentoExterna::getInstance()->setBolXHTML(false); | |
21 | 21 | //SessaoSEIExterna::getInstance()->validarLink(); |
22 | 22 | |
23 | 23 | //if( isset( $_GET['acao_externa'] ) && $_GET['acao_externa'] != "indisponibilidade_peticionamento_usuario_externo_download" ){ |
24 | - //PaginaSEIExterna::getInstance()->verificarSelecao('indisponibilidade_peticionamento_usuario_externo_alterar'); | |
24 | + //PaginaPeticionamentoExterna::getInstance()->verificarSelecao('indisponibilidade_peticionamento_usuario_externo_alterar'); | |
25 | 25 | //} |
26 | 26 | |
27 | 27 | //SessaoSEIExterna::getInstance()->validarPermissao($_GET['acao_externa']); |
28 | 28 | |
29 | + PaginaPeticionamentoExterna::getInstance()->setTipoPagina(PaginaPeticionamentoExterna::$TIPO_PAGINA_SEM_MENU); | |
30 | + PaginaPeticionamentoExterna::getInstance()->getBolAutoRedimensionar(); | |
31 | + | |
29 | 32 | $objIndisponibilidadePeticionamentoDTO = new IndisponibilidadePeticionamentoDTO(); |
30 | 33 | |
31 | 34 | if( $_GET['acao_externa'] != "indisponibilidade_peticionamento_usuario_externo_download"){ |
... | ... | @@ -98,7 +101,6 @@ try { |
98 | 101 | $strLinkFinal .= '&id_indisponibilidade_peticionamento='.$_GET['id_indisponibilidade_peticionamento']; |
99 | 102 | |
100 | 103 | $strTitulo = 'Indisponibilidade do Sistema'; |
101 | - $arrComandos[] = '<button type="button" accesskey="F" name="btnFechar" value="Fechar" onclick="location.href=\''. $strLinkFinal .'\';" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
102 | 104 | $objIndisponibilidadePeticionamentoDTO->setNumIdIndisponibilidade($_GET['id_indisponibilidade_peticionamento']); |
103 | 105 | $objIndisponibilidadePeticionamentoDTO->setBolExclusaoLogica(false); |
104 | 106 | $objIndisponibilidadePeticionamentoDTO->retTodos(); |
... | ... | @@ -118,7 +120,7 @@ try { |
118 | 120 | } |
119 | 121 | |
120 | 122 | }catch(Exception $e){ |
121 | - PaginaSEIExterna::getInstance()->processarExcecao($e); | |
123 | + PaginaPeticionamentoExterna::getInstance()->processarExcecao($e); | |
122 | 124 | } |
123 | 125 | |
124 | 126 | $hashAnexo = ""; |
... | ... | @@ -159,17 +161,17 @@ if ( isset($_GET['id_indisponibilidade_peticionamento'])){ |
159 | 161 | |
160 | 162 | } |
161 | 163 | |
162 | -PaginaSEIExterna::getInstance()->montarDocType(); | |
163 | -PaginaSEIExterna::getInstance()->abrirHtml(); | |
164 | -PaginaSEIExterna::getInstance()->abrirHead(); | |
165 | -PaginaSEIExterna::getInstance()->montarMeta(); | |
166 | -PaginaSEIExterna::getInstance()->montarTitle(':: '.PaginaSEIExterna::getInstance()->getStrNomeSistema().' - '.$strTitulo.' ::'); | |
167 | -PaginaSEIExterna::getInstance()->montarStyle(); | |
168 | -PaginaSEIExterna::getInstance()->abrirStyle(); | |
169 | -PaginaSEIExterna::getInstance()->fecharStyle(); | |
170 | -PaginaSEIExterna::getInstance()->montarJavaScript(); | |
171 | -PaginaSEIExterna::getInstance()->abrirJavaScript(); | |
172 | -PaginaSEIExterna::getInstance()->fecharJavaScript(); | |
164 | +PaginaPeticionamentoExterna::getInstance()->montarDocType(); | |
165 | +PaginaPeticionamentoExterna::getInstance()->abrirHtml(); | |
166 | +PaginaPeticionamentoExterna::getInstance()->abrirHead(); | |
167 | +PaginaPeticionamentoExterna::getInstance()->montarMeta(); | |
168 | +PaginaPeticionamentoExterna::getInstance()->montarTitle(':: '.PaginaPeticionamentoExterna::getInstance()->getStrNomeSistema().' - '.$strTitulo.' ::'); | |
169 | +PaginaPeticionamentoExterna::getInstance()->montarStyle(); | |
170 | +PaginaPeticionamentoExterna::getInstance()->abrirStyle(); | |
171 | +PaginaPeticionamentoExterna::getInstance()->fecharStyle(); | |
172 | +PaginaPeticionamentoExterna::getInstance()->montarJavaScript(); | |
173 | +PaginaPeticionamentoExterna::getInstance()->abrirJavaScript(); | |
174 | +PaginaPeticionamentoExterna::getInstance()->fecharJavaScript(); | |
173 | 175 | ?> |
174 | 176 | <style type="text/css"> |
175 | 177 | #fldProrrogacao {height: 10%; width: 86%;} |
... | ... | @@ -178,8 +180,8 @@ PaginaSEIExterna::getInstance()->fecharJavaScript(); |
178 | 180 | #divInfraBarraSistemaD { display:none; } |
179 | 181 | </style> |
180 | 182 | <? |
181 | -PaginaSEIExterna::getInstance()->fecharHead(); | |
182 | -PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | |
183 | +PaginaPeticionamentoExterna::getInstance()->fecharHead(); | |
184 | +PaginaPeticionamentoExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | |
183 | 185 | $urlBaseLink = ""; |
184 | 186 | //echo "teste 3"; die(); |
185 | 187 | if (count($arrAcoesRemover)>0 || $_POST['hdnAnexos'] != "" ){ |
... | ... | @@ -193,18 +195,18 @@ if (count($arrAcoesRemover)>0 || $_POST['hdnAnexos'] != "" ){ |
193 | 195 | //$urlBaseLink = ""; |
194 | 196 | $urlBase = ConfiguracaoSEI::getInstance()->getValor('SEI','URL') . "/institucional/peticionamento/"; |
195 | 197 | $urlBaseLink = $urlBase . "indisponibilidade_peticionamento_usuario_externo_cadastro.php?acao_externa=indisponibilidade_peticionamento_usuario_externo_download"; |
196 | - //$urlBaseLink = PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=indisponibilidade_peticionamento_usuario_externo_download')); | |
198 | + //$urlBaseLink = PaginaPeticionamentoExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=indisponibilidade_peticionamento_usuario_externo_download')); | |
197 | 199 | } |
198 | 200 | } |
199 | 201 | ?> |
200 | 202 | <form id="frmIndisponibilidadeCadastro" method="post" onsubmit="return OnSubmitForm();" action=""> |
201 | 203 | <? |
202 | 204 | $arrComandos = array(); |
203 | -$arrComandos[] = '<button type="button" accesskey="I" id="btnImprimir" value="Imprimir" onclick="imprimir();" class="infraButton"><span class="infraTeclaAtalho">I</span>mprimir</button>'; | |
204 | -$arrComandos[] = '<button type="button" accesskey="F" id="btnFechar" value="Fechar" onclick="fechar();" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
205 | +$arrComandos[] = '<button type="button" accesskey="i" id="btnImprimir" value="Imprimir" onclick="imprimir();" class="infraButton"><span class="infraTeclaAtalho">I</span>mprimir</button>'; | |
206 | +$arrComandos[] = '<button type="button" accesskey="c" id="btnFechar" value="Fechar" onclick="fechar();" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
205 | 207 | |
206 | -PaginaSEIExterna::getInstance()->montarBarraComandosSuperior($arrComandos); | |
207 | -PaginaSEIExterna::getInstance()->abrirAreaDados('60em'); | |
208 | +PaginaPeticionamentoExterna::getInstance()->montarBarraComandosSuperior($arrComandos); | |
209 | +PaginaPeticionamentoExterna::getInstance()->abrirAreaDados('60em'); | |
208 | 210 | ?> |
209 | 211 | <fieldset id="fldPeriodoIndisponibilidade" class="infraFieldset sizeFieldset"> |
210 | 212 | |
... | ... | @@ -231,7 +233,7 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('60em'); |
231 | 233 | </label> |
232 | 234 | </fieldset> |
233 | 235 | |
234 | - <label id="fldProrrogacao" class="infraLabelObrigatorio">Indisponibilidade justifica a prorrogação automática dos prazos:</label> | |
236 | + <label id="fldProrrogacao" class="infraLabelObrigatorio">Indisponibilidade justificou prorrogação automática dos prazos:</label> | |
235 | 237 | |
236 | 238 | <label class="infraLabel"> |
237 | 239 | <?php echo isset($objIndisponibilidadePeticionamentoDTO) && ($objIndisponibilidadePeticionamentoDTO->getStrSinProrrogacao() && $objIndisponibilidadePeticionamentoDTO->getStrSinProrrogacao() == 'S') ? 'Sim' : '' ?> |
... | ... | @@ -241,8 +243,7 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('60em'); |
241 | 243 | <div> |
242 | 244 | <label id="lblDescricao" class="infraLabelOpcional"> |
243 | 245 | <ul> |
244 | - Observação: Conforme normativo, algumas indisponibilidades justificam a prorrogação automática dos prazos para a realização de atos processuais em meio eletrônico que | |
245 | - venceriam no dia de sua ocorrência, prorrogando-os para o primeiro dia útil seguinte à resolução do problema. | |
246 | + Observação: Conforme normativo próprio, algumas indisponibilidades justificam a prorrogação automática dos prazos para a realização de atos processuais em meio eletrônico que venceriam no dia de sua ocorrência, prorrogando-os para o primeiro dia útil seguinte à resolução do problema. | |
246 | 247 | </ul> |
247 | 248 | </label> |
248 | 249 | </div> |
... | ... | @@ -278,9 +279,9 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('60em'); |
278 | 279 | <input type="hidden" id="hdnNomeArquivoDownload" name="hdnNomeArquivoDownload" value="" /> |
279 | 280 | <input type="hidden" id="hdnNomeArquivoDownloadReal" name="hdnNomeArquivoDownloadReal" value="" /> |
280 | 281 | <? |
281 | -PaginaSEIExterna::getInstance()->fecharAreaDados(); | |
282 | -PaginaSEIExterna::getInstance()->fecharBody(); | |
283 | -PaginaSEIExterna::getInstance()->fecharHtml(); | |
282 | +PaginaPeticionamentoExterna::getInstance()->fecharAreaDados(); | |
283 | +PaginaPeticionamentoExterna::getInstance()->fecharBody(); | |
284 | +PaginaPeticionamentoExterna::getInstance()->fecharHtml(); | |
284 | 285 | |
285 | 286 | $urlBase = ConfiguracaoSEI::getInstance()->getValor('SEI','URL'); |
286 | 287 | $strLink = $urlBase . '/institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_lista.php?acao_externa=indisponibilidade_peticionamento_usuario_externo_listar&id_orgao_acesso_externo=0&id_indisponibilidade_peticionamento='.$_GET['id_indisponibilidade_peticionamento'].PaginaSEI::getInstance()->montarAncora($_GET['id_indisponibilidade_peticionamento']); |
... | ... | @@ -310,21 +311,12 @@ function inicializar(){ |
310 | 311 | } else{ |
311 | 312 | document.getElementById('btnFechar').focus(); |
312 | 313 | } |
313 | - | |
314 | - infraMenuSistemaEsquema(false,'Ocultar'); | |
315 | - if(window.location.href.indexOf('/sei')>0){ | |
316 | - if (document.getElementById('divInfraBarraSistemaE').childNodes[1]!=undefined){ | |
317 | - if (document.getElementById('divInfraBarraSistemaE').childNodes[1].tagName=='IMG'){ | |
318 | - document.getElementById('divInfraBarraSistemaE').childNodes[1].src=window.location.href.substring(0, window.location.href.indexOf('/sei')+4)+'/imagens/sei_logo_azul_celeste.jpg'; | |
319 | - } | |
320 | - } | |
321 | - } | |
322 | 314 | |
323 | 315 | var strHash = document.getElementById('hdnAnexos').value; |
324 | 316 | var arrHash = strHash.split('±'); |
325 | 317 | |
326 | 318 | //var urlBase = "": |
327 | - var urlBase = "<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=indisponibilidade_peticionamento_usuario_externo_download'))?>"; | |
319 | + var urlBase = "<?=PaginaPeticionamentoExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=indisponibilidade_peticionamento_usuario_externo_download'))?>"; | |
328 | 320 | document.getElementById('hdnNomeArquivoDownload').value = arrHash[0]; |
329 | 321 | document.getElementById('hdnNomeArquivoDownloadReal').value = arrHash[1]; |
330 | 322 | //document.getElementById('spanDownload').innerHTML = arrHash[0]; |
... | ... | @@ -339,7 +331,7 @@ function inicializar(){ |
339 | 331 | |
340 | 332 | foreach(array_keys($arrAcoesRemover) as $id) { |
341 | 333 | |
342 | - $urlBase = PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=indisponibilidade_peticionamento_usuario_externo_download')); | |
334 | + $urlBase = PaginaPeticionamentoExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=indisponibilidade_peticionamento_usuario_externo_download')); | |
343 | 335 | |
344 | 336 | ?> |
345 | 337 | var strHash = document.getElementById('hdnAnexos').value; | ... | ... |
sei/institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_lista.php
... | ... | @@ -6,39 +6,43 @@ |
6 | 6 | * |
7 | 7 | */ |
8 | 8 | |
9 | - | |
10 | 9 | try { |
11 | 10 | |
12 | 11 | require_once dirname(__FILE__).'/../../SEI.php'; |
13 | - | |
12 | + | |
14 | 13 | session_start(); |
14 | + | |
15 | + ////////////////////////////////////////////////////////////////////////////// | |
15 | 16 | //InfraDebug::getInstance()->setBolLigado(false); |
16 | 17 | //InfraDebug::getInstance()->setBolDebugInfra(false); |
17 | 18 | //InfraDebug::getInstance()->limpar(); |
18 | - | |
19 | - //SessaoSEIExterna::getInstance()->validarLink(); | |
19 | + ////////////////////////////////////////////////////////////////////////////// | |
20 | 20 | //PaginaSEIExterna::getInstance()->setBolXHTML(false); |
21 | + //SessaoSEIExterna::getInstance()->validarLink(); | |
21 | 22 | |
22 | - //PaginaSEIExterna::getInstance()->prepararSelecao('indisponibilidade_peticionamento_usuario_externo_selecionar'); | |
23 | + //PaginaPeticionamentoExterna::getInstance()->prepararSelecao('indisponibilidade_peticionamento_usuario_externo_selecionar'); | |
23 | 24 | //SessaoSEIExterna::getInstance()->validarPermissao($_GET['acao']); |
24 | 25 | |
26 | + PaginaPeticionamentoExterna::getInstance()->setTipoPagina(PaginaPeticionamentoExterna::$TIPO_PAGINA_SEM_MENU); | |
27 | + PaginaPeticionamentoExterna::getInstance()->getBolAutoRedimensionar(); | |
28 | + | |
25 | 29 | switch($_GET['acao_externa']){ |
26 | 30 | |
27 | 31 | case 'indisponibilidade_peticionamento_usuario_externo_selecionar': |
28 | 32 | |
29 | - $strTitulo = PaginaSEIExterna::getInstance()->getTituloSelecao('Selecionar Indisponibilidades','Selecionar Indisponibilidades'); | |
33 | + $strTitulo = PaginaPeticionamentoExterna::getInstance()->getTituloSelecao('Selecionar Indisponibilidades','Selecionar Indisponibilidades'); | |
30 | 34 | |
31 | 35 | //Se cadastrou alguem |
32 | 36 | if ($_GET['acao_origem']=='indisponibilidade_peticionamento_usuario_externo_cadastrar'){ |
33 | 37 | if (isset($_GET['id_indisponibilidade_peticionamento'])){ |
34 | - PaginaSEIExterna::getInstance()->adicionarSelecionado($_GET['id_indisponibilidade_peticionamento']); | |
38 | + PaginaPeticionamentoExterna::getInstance()->adicionarSelecionado($_GET['id_indisponibilidade_peticionamento']); | |
35 | 39 | } |
36 | 40 | } |
37 | 41 | break; |
38 | 42 | |
39 | 43 | case 'indisponibilidade_peticionamento_usuario_externo_listar': |
40 | 44 | |
41 | - $strTitulo = 'Indisponibilidade do Sistema'; | |
45 | + $strTitulo = 'Indisponibilidades do Sistema'; | |
42 | 46 | break; |
43 | 47 | |
44 | 48 | default: |
... | ... | @@ -62,17 +66,17 @@ try { |
62 | 66 | $objIndisponibilidadePeticionamentoDTO->setStrSinProrrogacao($_POST['selSinProrrogacao']); |
63 | 67 | } |
64 | 68 | |
65 | - PaginaSEIExterna::getInstance()->prepararOrdenacao($objIndisponibilidadePeticionamentoDTO, 'DataInicio', InfraDTO::$TIPO_ORDENACAO_DESC); | |
66 | - PaginaSEIExterna::getInstance()->prepararPaginacao($objIndisponibilidadePeticionamentoDTO, 200); | |
69 | + PaginaPeticionamentoExterna::getInstance()->prepararOrdenacao($objIndisponibilidadePeticionamentoDTO, 'DataInicio', InfraDTO::$TIPO_ORDENACAO_DESC); | |
70 | + PaginaPeticionamentoExterna::getInstance()->prepararPaginacao($objIndisponibilidadePeticionamentoDTO, 200); | |
67 | 71 | |
68 | 72 | $objIndisponibilidadePeticionamentoRN = new IndisponibilidadePeticionamentoRN(); |
69 | 73 | $arrObjIndisponibilidadePeticionamentoDTO = $objIndisponibilidadePeticionamentoRN->listar($objIndisponibilidadePeticionamentoDTO); |
70 | 74 | |
71 | - PaginaSEIExterna::getInstance()->processarPaginacao($objIndisponibilidadePeticionamentoDTO); | |
75 | + PaginaPeticionamentoExterna::getInstance()->processarPaginacao($objIndisponibilidadePeticionamentoDTO); | |
72 | 76 | $numRegistros = count($arrObjIndisponibilidadePeticionamentoDTO); |
73 | 77 | |
74 | - $strLinkPesquisar = PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('indisponibilidade_peticionamento_usuario_externo_lista.php?acao_externa=indisponibilidade_peticionamento_usuario_externo_listar&id_orgao_acesso_externo=0' ) ); | |
75 | - //$strLinkPesquisar = PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=' . $_GET['acao'] .'&acao_origem='.$_GET['acao'])); | |
78 | + $strLinkPesquisar = PaginaPeticionamentoExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('indisponibilidade_peticionamento_usuario_externo_lista.php?acao_externa=indisponibilidade_peticionamento_usuario_externo_listar&id_orgao_acesso_externo=0' ) ); | |
79 | + //$strLinkPesquisar = PaginaPeticionamentoExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=' . $_GET['acao'] .'&acao_origem='.$_GET['acao'])); | |
76 | 80 | $arrComandos[] = '<button type="button" accesskey="P" id="btnPesquisar" value="Pesquisar" onclick="pesquisar();" class="infraButton"><span class="infraTeclaAtalho">P</span>esquisar</button>'; |
77 | 81 | $arrComandos[] = '<button type="button" accesskey="I" id="btnImprimir" value="Fechar" onclick="infraImprimirTabela();" class="infraButton"><span class="infraTeclaAtalho">I</span>mprimir</button>'; |
78 | 82 | //$arrComandos[] = '<button type="button" accesskey="F" id="btnFechar" value="Fechar" onclick="fechar();" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; |
... | ... | @@ -88,16 +92,16 @@ try { |
88 | 92 | $strCaptionTabela = 'Indisponibilidades'; |
89 | 93 | |
90 | 94 | $strResultado .= '<table width="99%" id="tbIndisponibilidade" class="infraTable" summary="'.$strSumarioTabela.'">'."\n"; |
91 | - $strResultado .= '<caption class="infraCaption">'.PaginaSEIExterna::getInstance()->gerarCaptionTabela($strCaptionTabela,$numRegistros).'</caption>'; | |
95 | + $strResultado .= '<caption class="infraCaption">'.PaginaPeticionamentoExterna::getInstance()->gerarCaptionTabela($strCaptionTabela,$numRegistros).'</caption>'; | |
92 | 96 | $strResultado .= '<tr>'; |
93 | 97 | |
94 | 98 | if ($bolCheck) { |
95 | - $strResultado .= '<th class="infraTh" width="1%">'.PaginaSEIExterna::getInstance()->getThCheck().'</th>'."\n"; | |
99 | + $strResultado .= '<th class="infraTh" width="1%">'.PaginaPeticionamentoExterna::getInstance()->getThCheck().'</th>'."\n"; | |
96 | 100 | } |
97 | 101 | |
98 | - $strResultado .= '<th class="infraTh" width="30%">'.PaginaSEIExterna::getInstance()->getThOrdenacao($objIndisponibilidadePeticionamentoDTO,'Início','DataInicio',$arrObjIndisponibilidadePeticionamentoDTO).'</th>'."\n"; | |
99 | - $strResultado .= '<th class="infraTh">'.PaginaSEIExterna::getInstance()->getThOrdenacao($objIndisponibilidadePeticionamentoDTO,'Fim','DataFim',$arrObjIndisponibilidadePeticionamentoDTO).'</th>'."\n"; | |
100 | - $strResultado .= '<th class="infraTh">'.PaginaSEIExterna::getInstance()->getThOrdenacao($objIndisponibilidadePeticionamentoDTO,'Prorrogação Automática dos Prazos','SinProrrogacao',$arrObjIndisponibilidadePeticionamentoDTO).'</th>'."\n"; | |
102 | + $strResultado .= '<th class="infraTh" width="30%">'.PaginaPeticionamentoExterna::getInstance()->getThOrdenacao($objIndisponibilidadePeticionamentoDTO,'Início','DataInicio',$arrObjIndisponibilidadePeticionamentoDTO).'</th>'."\n"; | |
103 | + $strResultado .= '<th class="infraTh">'.PaginaPeticionamentoExterna::getInstance()->getThOrdenacao($objIndisponibilidadePeticionamentoDTO,'Fim','DataFim',$arrObjIndisponibilidadePeticionamentoDTO).'</th>'."\n"; | |
104 | + $strResultado .= '<th class="infraTh">'.PaginaPeticionamentoExterna::getInstance()->getThOrdenacao($objIndisponibilidadePeticionamentoDTO,'Prorrogação Automática dos Prazos','SinProrrogacao',$arrObjIndisponibilidadePeticionamentoDTO).'</th>'."\n"; | |
101 | 105 | $strResultado .= '<th class="infraTh" width="15%">Ações</th>'."\n"; |
102 | 106 | $strResultado .= '</tr>'."\n"; |
103 | 107 | $strCssTr=''; |
... | ... | @@ -117,7 +121,7 @@ try { |
117 | 121 | $strResultado .= $strCssTr; |
118 | 122 | |
119 | 123 | if ($bolCheck){ |
120 | - $strResultado .= '<td valign="top">'.PaginaSEIExterna::getInstance()->getTrCheck($i,$arrObjIndisponibilidadePeticionamentoDTO[$i]->getNumIdIndisponibilidade(),$arrObjIndisponibilidadePeticionamentoDTO[$i]->getStrSinProrrogacao()).'</td>'; | |
124 | + $strResultado .= '<td valign="top">'.PaginaPeticionamentoExterna::getInstance()->getTrCheck($i,$arrObjIndisponibilidadePeticionamentoDTO[$i]->getNumIdIndisponibilidade(),$arrObjIndisponibilidadePeticionamentoDTO[$i]->getStrSinProrrogacao()).'</td>'; | |
121 | 125 | } |
122 | 126 | |
123 | 127 | $dataInicio = isset($arrObjIndisponibilidadePeticionamentoDTO[$i]) && $arrObjIndisponibilidadePeticionamentoDTO[$i]->getDthDataInicio() != '' ? str_replace(' ', ' - ',substr($arrObjIndisponibilidadePeticionamentoDTO[$i]->getDthDataInicio(), 0, -3)) : ''; |
... | ... | @@ -132,7 +136,7 @@ try { |
132 | 136 | |
133 | 137 | if ($bolAcaoConsultar){ |
134 | 138 | $urlBase = ConfiguracaoSEI::getInstance()->getValor('SEI','URL'); |
135 | - $strResultado .= '<a href="'. $urlBase . '/institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_cadastro.php?id_orgao_acesso_externo=0&acao_externa=indisponibilidade_peticionamento_usuario_externo_consultar&id_indisponibilidade_peticionamento='.$arrObjIndisponibilidadePeticionamentoDTO[$i]->getNumIdIndisponibilidade().'" tabindex="'.PaginaSEIExterna::getInstance()->getProxTabTabela().'"><img src="'.PaginaSEIExterna::getInstance()->getDiretorioImagensGlobal().'/consultar.gif" title="Consultar Indisponibilidade" alt="Consultar Indisponibilidade" class="infraImg" /></a> '; | |
139 | + $strResultado .= '<a href="'. $urlBase . '/institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_cadastro.php?id_orgao_acesso_externo=0&acao_externa=indisponibilidade_peticionamento_usuario_externo_consultar&id_indisponibilidade_peticionamento='.$arrObjIndisponibilidadePeticionamentoDTO[$i]->getNumIdIndisponibilidade().'" tabindex="'.PaginaPeticionamentoExterna::getInstance()->getProxTabTabela().'"><img src="'.PaginaPeticionamentoExterna::getInstance()->getDiretorioImagensGlobal().'/consultar.gif" title="Consultar Indisponibilidade" alt="Consultar Indisponibilidade" class="infraImg" /></a> '; | |
136 | 140 | } |
137 | 141 | |
138 | 142 | $strResultado .= '</td></tr>'."\n"; |
... | ... | @@ -163,47 +167,27 @@ try { |
163 | 167 | $strItensSelSinProrrogacaoAutomatica = IndisponibilidadePeticionamentoINT::montarSelectProrrogacaoAutomaticaPrazos('','Todos',$valorComboProrrogacao); |
164 | 168 | |
165 | 169 | }catch(Exception $e){ |
166 | - PaginaSEIExterna::getInstance()->processarExcecao($e); | |
170 | + PaginaPeticionamentoExterna::getInstance()->processarExcecao($e); | |
167 | 171 | } |
168 | 172 | |
169 | -PaginaSEIExterna::getInstance()->montarDocType(); | |
170 | -PaginaSEIExterna::getInstance()->abrirHtml(); | |
171 | -PaginaSEIExterna::getInstance()->abrirHead(); | |
172 | -PaginaSEIExterna::getInstance()->montarMeta(); | |
173 | -PaginaSEIExterna::getInstance()->montarTitle(':: '.PaginaSEIExterna::getInstance()->getStrNomeSistema().' - '.$strTitulo.' ::'); | |
174 | -PaginaSEIExterna::getInstance()->montarStyle(); | |
175 | -PaginaSEIExterna::getInstance()->abrirStyle(); | |
173 | +PaginaPeticionamentoExterna::getInstance()->montarDocType(); | |
174 | +PaginaPeticionamentoExterna::getInstance()->abrirHtml(); | |
175 | +PaginaPeticionamentoExterna::getInstance()->abrirHead(); | |
176 | +PaginaPeticionamentoExterna::getInstance()->montarMeta(); | |
177 | +PaginaPeticionamentoExterna::getInstance()->montarTitle(':: '.PaginaPeticionamentoExterna::getInstance()->getStrNomeSistema().' - '.$strTitulo.' ::'); | |
178 | +PaginaPeticionamentoExterna::getInstance()->montarStyle(); | |
179 | +PaginaPeticionamentoExterna::getInstance()->abrirStyle(); | |
176 | 180 | ?> |
177 | 181 | <? |
178 | -PaginaSEIExterna::getInstance()->fecharStyle(); | |
179 | -PaginaSEIExterna::getInstance()->montarJavaScript(); | |
180 | -PaginaSEIExterna::getInstance()->abrirJavaScript(); | |
182 | +PaginaPeticionamentoExterna::getInstance()->fecharStyle(); | |
183 | +PaginaPeticionamentoExterna::getInstance()->montarJavaScript(); | |
184 | +PaginaPeticionamentoExterna::getInstance()->abrirJavaScript(); | |
181 | 185 | ?> |
182 | 186 | function inicializar(){ |
183 | 187 | if ('<?=$_GET['acao']?>'=='indisponibilidade_peticionamento_usuario_externo_listar'){ |
184 | 188 | infraReceberSelecao(); |
185 | 189 | document.getElementById('btnFecharSelecao').focus(); |
186 | 190 | } |
187 | - | |
188 | - infraEfeitoTabelas(); | |
189 | - corrigirTela(); | |
190 | - | |
191 | - var menu = document.getElementById('lnkInfraMenuSistema'); | |
192 | - if(menu != null){ | |
193 | - menu.onclick=esconderMenu; | |
194 | - } | |
195 | - | |
196 | - infraMenuSistemaEsquema(false,'Ocultar'); | |
197 | - if(window.location.href.indexOf('/sei')>0){ | |
198 | - if (document.getElementById('divInfraBarraSistemaE').childNodes[1]!=undefined){ | |
199 | - if (document.getElementById('divInfraBarraSistemaE').childNodes[1].tagName=='IMG'){ | |
200 | - document.getElementById('divInfraBarraSistemaE').childNodes[1].src=window.location.href.substring(0, window.location.href.indexOf('/sei')+4)+'/imagens/sei_logo_azul_celeste.jpg'; | |
201 | - } | |
202 | - } | |
203 | - } | |
204 | - | |
205 | - var strHash = document.getElementById('hdnAnexos').value; | |
206 | - | |
207 | 191 | } |
208 | 192 | |
209 | 193 | function validDate(valor) { |
... | ... | @@ -312,12 +296,12 @@ function esconderMenu(){ |
312 | 296 | } |
313 | 297 | |
314 | 298 | <? |
315 | -PaginaSEIExterna::getInstance()->fecharJavaScript(); | |
316 | -PaginaSEIExterna::getInstance()->fecharHead(); | |
299 | +PaginaPeticionamentoExterna::getInstance()->fecharJavaScript(); | |
300 | +PaginaPeticionamentoExterna::getInstance()->fecharHead(); | |
317 | 301 | ?> |
318 | 302 | |
319 | 303 | <style type="text/css"> |
320 | -#lblDescricao {position:absolute;left:0%;top:0%;width:99%;} | |
304 | +#lblDescricaoInvalido {position:absolute;left:0%;top:0%;width:99%;} | |
321 | 305 | |
322 | 306 | #lblDtInicio {position:absolute;left:0%;top:0px;width:10%;} |
323 | 307 | #txtDtInicio {position:absolute;left:0%;top:20px;width:10%;} |
... | ... | @@ -335,20 +319,18 @@ PaginaSEIExterna::getInstance()->fecharHead(); |
335 | 319 | </style> |
336 | 320 | |
337 | 321 | <?php |
338 | -PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | |
322 | +PaginaPeticionamentoExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | |
339 | 323 | $urlForm = 'institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_lista.php?acao_externa=indisponibilidade_peticionamento_usuario_externo_consultar&id_orgao_acesso_externo=0'; |
340 | 324 | ?> |
341 | 325 | <form id="frmIndisponibilidadePeticionamentoLista" method="post" action="<?= $strLinkPesquisar ?>"> |
342 | 326 | |
343 | -<?php PaginaSEIExterna::getInstance()->montarBarraComandosSuperior($arrComandos); ?> | |
327 | +<?php PaginaPeticionamentoExterna::getInstance()->montarBarraComandosSuperior($arrComandos); ?> | |
344 | 328 | |
345 | 329 | <!-- <div style="height:4.5em; margin-top: 11px; overflow: hidden;" class="infraAreaDados" id="divInfraAreaDados"> --> |
346 | 330 | <div style="height:auto; width: 98%;" class="infraAreaDados" id="divInfraAreaDados"> |
347 | 331 | |
348 | 332 | <label id="lblDescricao" class="infraLabelOpcional"> |
349 | - Conforme normativo, algumas indisponibilidades justificam a prorrogação automática dos prazos para a realização de atos processuais em meio eletrônico que | |
350 | - venceriam no dia de sua ocorrência, prorrogando-os para o primeiro dia útil seguinte à resolução do problema. Na coluna "Prorrogação Automática dos Prazos", | |
351 | - as indisponibilidades marcadas com "Sim" justificaram a referida prorrogação. | |
333 | + <br/>Conforme normativo próprio, algumas indisponibilidades justificam a prorrogação automática dos prazos para a realização de atos processuais em meio eletrônico que venceriam no dia de sua ocorrência, prorrogando-os para o primeiro dia útil seguinte à resolução do problema. Na coluna "Prorrogação Automática dos Prazos", as indisponibilidades marcadas com "Sim" justificaram a referida prorrogação.<br/><br/><br/> | |
352 | 334 | </label> |
353 | 335 | |
354 | 336 | </div> |
... | ... | @@ -360,7 +342,7 @@ $urlForm = 'institucional/peticionamento/indisponibilidade_peticionamento_usuari |
360 | 342 | <input type="text" name="txtDtInicio" id="txtDtInicio" onchange="validDate('I');" |
361 | 343 | value="<?= $strDtInicio ?>" |
362 | 344 | onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" class="infraText" /> |
363 | - <img src="<?=PaginaSEIExterna::getInstance()->getDiretorioImagensGlobal()?>/calendario.gif" id="imgDtInicio" | |
345 | + <img src="<?=PaginaPeticionamentoExterna::getInstance()->getDiretorioImagensGlobal()?>/calendario.gif" id="imgDtInicio" | |
364 | 346 | title="Selecionar Data/Hora Inicial" |
365 | 347 | alt="Selecionar Data/Hora Inicial" class="infraImg" |
366 | 348 | onclick="infraCalendario('txtDtInicio',this,true,'<?=InfraData::getStrDataAtual().' 00:00'?>');" /> |
... | ... | @@ -370,7 +352,7 @@ $urlForm = 'institucional/peticionamento/indisponibilidade_peticionamento_usuari |
370 | 352 | <input type="text" name="txtDtFim" onchange="validDate('F');" id="txtDtFim" |
371 | 353 | value="<?= $strDtFim ?>" |
372 | 354 | onchange="validDate('F');" onkeypress="return infraMascara(this, event, '##/##/#### ##:##');" maxlength="16" class="infraText"/> |
373 | - <img src="<?=PaginaSEIExterna::getInstance()->getDiretorioImagensGlobal()?>/calendario.gif" id="imgDtFim" | |
355 | + <img src="<?=PaginaPeticionamentoExterna::getInstance()->getDiretorioImagensGlobal()?>/calendario.gif" id="imgDtFim" | |
374 | 356 | title="Selecionar Data/Hora Final" |
375 | 357 | alt="Selecionar Data/Hora Final" |
376 | 358 | class="infraImg" onclick="infraCalendario('txtDtFim',this,true,'<?=InfraData::getStrDataAtual().' 23:59'?>');" /> |
... | ... | @@ -385,14 +367,14 @@ $urlForm = 'institucional/peticionamento/indisponibilidade_peticionamento_usuari |
385 | 367 | <input type="submit" style="visibility: hidden; display:none;" /> |
386 | 368 | |
387 | 369 | <? |
388 | - PaginaSEIExterna::getInstance()->montarAreaTabela($strResultado,$numRegistros); | |
389 | -// PaginaSEIExterna::getInstance()->montarBarraComandosInferior($arrComandos); | |
370 | + PaginaPeticionamentoExterna::getInstance()->montarAreaTabela($strResultado,$numRegistros); | |
371 | +// PaginaPeticionamentoExterna::getInstance()->montarBarraComandosInferior($arrComandos); | |
390 | 372 | ?> |
391 | 373 | |
392 | 374 | </div> |
393 | 375 | |
394 | 376 | </form> |
395 | 377 | <? |
396 | -PaginaSEIExterna::getInstance()->fecharBody(); | |
397 | -PaginaSEIExterna::getInstance()->fecharHtml(); | |
378 | +PaginaPeticionamentoExterna::getInstance()->fecharBody(); | |
379 | +PaginaPeticionamentoExterna::getInstance()->fecharHtml(); | |
398 | 380 | ?> |
399 | 381 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/int/GerirTipoContextoPeticionamentoINT.php
... | ... | @@ -31,5 +31,31 @@ class GerirTipoContextoPeticionamentoINT extends InfraINT { |
31 | 31 | //return parent::montarSelectArrInfraDTO($strPrimeiroItemValor, $strPrimeiroItemDescricao, $strValorItemSelecionado, $arrObjTipoContextoContatoDTO, 'IdTipoContextoContato', 'Nome'); |
32 | 32 | } |
33 | 33 | |
34 | + public static function montarSelectTipoInteressado($strPrimeiroItemValor, $strPrimeiroItemDescricao, $strValorItemSelecionado, $strTipo){ | |
35 | + | |
36 | + $objTipoContextoContatoDTO = new RelTipoContextoPeticionamentoDTO(); | |
37 | + $objTipoContextoContatoDTO->retNumIdTipoContextoContato(); | |
38 | + $objTipoContextoContatoDTO->retStrNomeTipoContexto(); | |
39 | + $objTipoContextoContatoDTO->setOrdStrNomeTipoContexto(InfraDTO::$TIPO_ORDENACAO_ASC); | |
40 | + | |
41 | + if( $strTipo == 'Cadastro' ){ | |
42 | + $objTipoContextoContatoDTO->setStrSinCadastroInteressado('S'); | |
43 | + } else { | |
44 | + $objTipoContextoContatoDTO->setStrSinSelecaoInteressado('S'); | |
45 | + } | |
46 | + | |
47 | + if ($strValorItemSelecionado!=null){ | |
48 | + | |
49 | + $objTipoContextoContatoDTO->setBolExclusaoLogica(false); | |
50 | + $objTipoContextoContatoDTO->adicionarCriterio(array('NomeTipoContexto'), | |
51 | + array(InfraDTO::$OPER_IGUAL), | |
52 | + array($strValorItemSelecionado), | |
53 | + InfraDTO::$OPER_LOGICO_OR); | |
54 | + } | |
55 | + | |
56 | + $objRelTipoContextoContatoRN = new GerirTipoContextoPeticionamentoRN(); | |
57 | + $arrObjTipoContextoContatoDTO = $objRelTipoContextoContatoRN->listar($objTipoContextoContatoDTO); | |
58 | + return parent::montarSelectArrInfraDTO($strPrimeiroItemValor, $strPrimeiroItemDescricao, $strValorItemSelecionado, $arrObjTipoContextoContatoDTO , 'IdTipoContextoContato', 'NomeTipoContexto'); | |
59 | + } | |
34 | 60 | |
35 | 61 | -} |
62 | +} | |
36 | 63 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/peticionamento_interessado_cadastro.php
... | ... | @@ -17,7 +17,7 @@ try { |
17 | 17 | InfraDebug::getInstance()->setBolDebugInfra(false); |
18 | 18 | InfraDebug::getInstance()->limpar(); |
19 | 19 | ////////////////////////////////////////////////////////////////////////////// |
20 | - | |
20 | + | |
21 | 21 | PaginaSEIExterna::getInstance()->setTipoPagina( InfraPagina::$TIPO_PAGINA_SIMPLES ); |
22 | 22 | //SessaoSEIExterna::getInstance()->validarLink(); |
23 | 23 | |
... | ... | @@ -36,7 +36,120 @@ try { |
36 | 36 | switch($_GET['acao']){ |
37 | 37 | |
38 | 38 | case 'peticionamento_interessado_cadastro': |
39 | + | |
39 | 40 | $strTitulo = 'Cadastro de Interessado'; |
41 | + | |
42 | + if( isset( $_GET['cpf']) ){ | |
43 | + $strTitulo .= ' - Pessoa Física'; | |
44 | + } | |
45 | + | |
46 | + else if( isset( $_GET['cnpj']) ){ | |
47 | + $strTitulo .= ' - Pessoa Jurídica'; | |
48 | + } | |
49 | + | |
50 | + $strPrimeiroItemValor = 'null'; | |
51 | + $strPrimeiroItemDescricao = ' '; | |
52 | + $strValorItemSelecionado = null; | |
53 | + $strTipo = 'Cadastro'; | |
54 | + | |
55 | + $strItensSelTipoInteressado = GerirTipoContextoPeticionamentoINT::montarSelectTipoInteressado($strPrimeiroItemValor, $strPrimeiroItemDescricao, $strValorItemSelecionado, $strTipo); | |
56 | + $strItensSelTratamento = TratamentoINT::montarSelectExpressaoRI0467('null',' ', null ) ; | |
57 | + $strItensSelCargo = CargoINT::montarSelectExpressaoRI0468('null',' ', null ); | |
58 | + $strItensSelVocativo = VocativoINT::montarSelectExpressaoRI0469('null',' ', null ); | |
59 | + | |
60 | + if( isset( $_POST['hdnCadastrar'] ) ){ | |
61 | + | |
62 | + $objContatoDTO = new ContatoDTO(); | |
63 | + $objContatoDTO->retTodos(); | |
64 | + | |
65 | + $objContatoDTO->setNumIdContato(null); | |
66 | + $objContatoDTO->setStrSinContexto($strSinContexto); | |
67 | + | |
68 | + if($strSinContexto=='S'){ | |
69 | + $objContatoDTO->setNumIdTipoContextoContato($numIdTipoContextoContato); | |
70 | + } else{ | |
71 | + $objContatoDTO->setNumIdTipoContextoContato(null); | |
72 | + $objContatoDTO->setNumIdContextoContato($numIdContextoContato); | |
73 | + } | |
74 | + | |
75 | + $objContatoDTO->setNumIdTratamento($_POST['tratamento']); | |
76 | + $objContatoDTO->setNumIdVocativo($_POST['vocativo']); | |
77 | + $objContatoDTO->setNumIdCargo($_POST['cargo']); | |
78 | + $objContatoDTO->setNumIdTitulo(''); | |
79 | + $objContatoDTO->setStrNome($_POST['nome']); | |
80 | + $objContatoDTO->setDtaNascimento(''); | |
81 | + $objContatoDTO->setStrPalavrasChave(''); | |
82 | + $objContatoDTO->setStrSigla(''); | |
83 | + $objContatoDTO->setStrGenero(''); | |
84 | + $objContatoDTO->setStrMatriculaOab($_POST['numeroOab']); | |
85 | + $objContatoDTO->setDblCpf($_POST['cpf']); | |
86 | + $objContatoDTO->setNumMatricula(''); | |
87 | + $objContatoDTO->setDblCnpj($_POST['cnpj']); | |
88 | + $objContatoDTO->setDblRg($_POST['rg']); | |
89 | + $objContatoDTO->setStrOrgaoExpedidor($_POST['orgaoExpedidor']); | |
90 | + $objContatoDTO->setStrTelefone($_POST['telefone']); | |
91 | + $objContatoDTO->setStrFax(''); | |
92 | + $objContatoDTO->setStrEmail($_POST['txtEmail']); | |
93 | + $objContatoDTO->setStrSitioInternet($_POST['txtSitioInternet']); | |
94 | + $objContatoDTO->setStrEndereco($_POST['endereco']); | |
95 | + $objContatoDTO->setStrBairro($_POST['txtBairro']); | |
96 | + $objContatoDTO->setStrSiglaEstado($_POST['estado']); | |
97 | + $objContatoDTO->setStrNomeCidade($_POST['cidade']); | |
98 | + $objContatoDTO->setStrNomePais($_POST['pais']); | |
99 | + $objContatoDTO->setStrCep($_POST['cep']); | |
100 | + $objContatoDTO->setStrObservacao(''); | |
101 | + $objContatoDTO->setStrSinEnderecoContexto('S'); | |
102 | + $objContatoDTO->setDblIdPessoaRh(null); | |
103 | + $objContatoDTO->setStrSinAtivo('S'); | |
104 | + $objContatoDTO->setNumIdCarreira(null); | |
105 | + $objContatoDTO->setNumIdNivelFuncao(null); | |
106 | + | |
107 | + $strUsuario = SessaoSEIExterna::getInstance()->getStrSiglaUsuario(); | |
108 | + $strSiglaUnidade = SessaoSEIExterna::getInstance()->getStrSiglaUnidadeAtual(); | |
109 | + $numIdUsuario = SessaoSEIExterna::getInstance()->getNumIdUsuario(); | |
110 | + $numIdUnidade = SessaoSEIExterna::getInstance()->getNumIdUnidadeAtual(); | |
111 | + | |
112 | + $objUnidadeRN = new UnidadeRN(); | |
113 | + $objUnidadeDTO = new UnidadeDTO(); | |
114 | + $objUnidadeDTO->retTodos(true); | |
115 | + $objUnidadeDTO->setNumIdUnidade( SessaoSEIExterna::getInstance()->getNumIdUnidadeAtual() ); | |
116 | + $objUnidadeDTO = $objUnidadeRN->consultarRN0125( $objUnidadeDTO ); | |
117 | + | |
118 | + SessaoSEI::getInstance(false)->simularLogin(SessaoSEI::$USUARIO_INTERNET,SessaoSEI::$UNIDADE_TESTE); | |
119 | + //SessaoSEI::getInstance()->simularLogin($strUsuario, $strSiglaUnidade, $numIdUsuario); | |
120 | + | |
121 | + //configura sessão | |
122 | + SessaoSEI::getInstance()->setNumIdUnidadeAtual( $numIdUnidade ); | |
123 | + SessaoSEI::getInstance()->setStrSiglaUnidadeAtual( $strSiglaUnidade ); | |
124 | + SessaoSEI::getInstance()->setNumIdOrgaoUnidadeAtual($objUnidadeDTO->getNumIdOrgao()); | |
125 | + SessaoSEI::getInstance()->setStrSiglaOrgaoUnidadeAtual($objUnidadeDTO->getStrSiglaOrgao()); | |
126 | + | |
127 | + $objContatoRN = new ContatoRN(); | |
128 | + $objContatoDTO = $objContatoRN->cadastrarRN0322($objContatoDTO); | |
129 | + $idContatoCadastro = $objContatoDTO->getNumIdContato(); | |
130 | + | |
131 | + //após cadastrar o contato fechar janela modal e preencher campos necessarios | |
132 | + echo "<script>"; | |
133 | + echo " window.close();"; | |
134 | + echo "</script>"; | |
135 | + die; | |
136 | + | |
137 | + } | |
138 | + | |
139 | + /* | |
140 | + $strItensSelTratamento = TratamentoINT::montarSelectExpressaoRI0467('null',' ',$objContatoDTO->getNumIdTratamento()); | |
141 | + $strItensSelCargo = CargoINT::montarSelectExpressaoRI0468('null',' ',$objContatoDTO->getNumIdCargo()); | |
142 | + $strItensSelVocativo = VocativoINT::montarSelectExpressaoRI0469('null',' ',$objContatoDTO->getNumIdVocativo()); | |
143 | + $strItensSelTitulo = TituloINT::montarSelectExpressaoMasculinaRI0470('null',' ',$objContatoDTO->getNumIdTitulo()); | |
144 | + $strItensSelSiglaEstado = UfINT::montarSelectSiglaRI0892('null',' ',null); | |
145 | + $strLinkAjaxNomeCidade = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=cidade_montar_select_nome'); | |
146 | + $strLinkAjaxContatoRI0571 = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=contato_RI0571'); | |
147 | + $strLinkAjaxContatoRI0466 = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=contato_RI0466'); | |
148 | + | |
149 | + $strLinkAjaxContatos = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=contato_auto_completar_contexto_pesquisa'); | |
150 | + $strItensSelCidade = CidadeINT::montarSelectNomeRI0506('null',' ','null',$objContatoDTO->getStrSiglaEstado()); | |
151 | + */ | |
152 | + | |
40 | 153 | break; |
41 | 154 | |
42 | 155 | default: |
... | ... | @@ -63,9 +176,9 @@ PaginaSEIExterna::getInstance()->abrirJavaScript(); |
63 | 176 | PaginaSEIExterna::getInstance()->fecharJavaScript(); |
64 | 177 | ?> |
65 | 178 | <style type="text/css"> |
66 | -#field1 {height: auto; width: 96%; margin-bottom: 11px;} | |
67 | -#field2 {height: auto; width: 96%; margin-bottom: 11px;} | |
68 | -.sizeFieldset {height:auto; width: 86%;} | |
179 | +#field1 {height: auto; width: 97%; margin-bottom: 11px;} | |
180 | +#field2 {height: auto; width: 97%; margin-bottom: 11px;} | |
181 | +.sizeFieldset {height:auto; width: 88%;} | |
69 | 182 | .fieldsetClear {border:none !important;} |
70 | 183 | </style> |
71 | 184 | <?php |
... | ... | @@ -76,7 +189,9 @@ $arrComandos = array(); |
76 | 189 | $arrComandos[] = '<button type="button" accesskey="S" name="Salvar" value="Salvar" onclick="salvar()" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar</button>'; |
77 | 190 | $arrComandos[] = '<button type="button" accesskey="F" name="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador.php?acao='.PaginaSEIExterna::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'].PaginaSEIExterna::getInstance()->montarAncora($_GET['id_indisponibilidade_peticionamento']))).'\';" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; |
78 | 191 | ?> |
79 | -<form id="frmIndisponibilidadeCadastro" method="post" onsubmit="return OnSubmitForm();" action="<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador.php?acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> | |
192 | +<form id="frmCadastro" name="frmCadastro" | |
193 | + method="post" onsubmit="return OnSubmitForm();" | |
194 | + action="<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador.php?acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> | |
80 | 195 | <?php |
81 | 196 | PaginaSEIExterna::getInstance()->montarBarraComandosSuperior($arrComandos); |
82 | 197 | PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
... | ... | @@ -86,21 +201,29 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
86 | 201 | |
87 | 202 | <legend class="infraLegend"> Interessado </legend> |
88 | 203 | |
204 | + <?php if( isset( $_GET['cpf'] )) { ?> | |
205 | + | |
89 | 206 | <input type="radio" name="tipoPessoa" value="pf" id="rdPF" onclick="selecionarPF()" /> |
90 | 207 | <label for="rdPF" class="infraLabelRadio">Pessoa física</label> <br/> |
91 | 208 | |
92 | - <input type="radio" name="tipoPessoaPF" value="0" id="rdPF1" style="display: none;" onclick="selecionarPF1()" /> | |
209 | + <input type="radio" name="tipoPessoaPF" value="0" id="rdPF1" | |
210 | + style="display: none; margin-left: 20px;" onclick="selecionarPF1()" /> | |
93 | 211 | <label for="rdPF1" id="lblrdPF1" class="infraLabelRadio" style="display: none;"> |
94 | 212 | Sem vínculo com qualquer Pessoa Jurídica <br/> |
95 | 213 | </label> |
96 | 214 | |
97 | - <input type="radio" name="tipoPessoaPF" value="1" id="rdPF2" style="display: none;" onclick="selecionarPF2()" /> | |
215 | + <input type="radio" name="tipoPessoaPF" value="1" id="rdPF2" | |
216 | + style="display: none; margin-left: 20px;" onclick="selecionarPF2()" /> | |
98 | 217 | <label for="rdPF2" id="lblrdPF2" class="infraLabelRadio" style="display: none;"> |
99 | 218 | Com vínculo com Pessoa Jurídica <br/> |
100 | 219 | </label> |
101 | 220 | |
102 | - <input type="radio" name="tipoPessoa" value="pj" id="rdPJ" onclick="selecionarPJ()" /> | |
103 | - <label for="rdPJ" class="infraLabelRadio">Pessoa jurídica</label> | |
221 | + <?php } ?> | |
222 | + | |
223 | + <?php if( isset( $_GET['cnpj'] )) { ?> | |
224 | + <input type="radio" name="tipoPessoa" value="pj" id="rdPJ" onclick="selecionarPJ()" /> | |
225 | + <label for="rdPJ" class="infraLabelRadio">Pessoa jurídica</label> | |
226 | + <?php } ?> | |
104 | 227 | |
105 | 228 | </fieldset> |
106 | 229 | |
... | ... | @@ -109,14 +232,24 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
109 | 232 | <legend class="infraLegend"> Formulário de Cadastro </legend> |
110 | 233 | |
111 | 234 | <label class="infraLabelObrigatorio"> Tipo de Interessado:</label><br/> |
112 | - <select class="infraSelect" width="380" id="tipoInteressado" name="tipoInteressado" style="width:380px;" > | |
113 | - <option value=""></option> | |
235 | + <select class="infraSelect" width="380" id="tipoInteressado" | |
236 | + name="tipoInteressado" style="width:380px;" > | |
237 | + <?=$strItensSelTipoInteressado?> | |
114 | 238 | </select> <br/> |
115 | 239 | |
116 | - <label class="infraLabelObrigatorio"> Nome / Razão Social:</label><br/> | |
117 | - <select class="infraSelect" width="380" id="razaoSocial" name="razaoSocial" style="width:380px;" > | |
118 | - <option value=""></option> | |
119 | - </select> <br/> | |
240 | + <label id="lblNome" class="infraLabelObrigatorio" style="display:none;"> Nome:<br/> | |
241 | + <input type="text" id="txtNome" name="txtNome" class="infraText" value="" | |
242 | + onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | |
243 | + tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> | |
244 | + <br/><br/> | |
245 | + </label> | |
246 | + | |
247 | + <label id="lblRazaoSocial" class="infraLabelObrigatorio" style="display:none;"> Razão Social:<br/> | |
248 | + <input type="text" id="txtRazaoSocial" name="txtRazaoSocial" class="infraText" value="" | |
249 | + onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | |
250 | + tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> | |
251 | + <br/><br/> | |
252 | + </label> | |
120 | 253 | |
121 | 254 | <label id="lblPjVinculada" style="display: none;" class="infraLabelObrigatorio"> |
122 | 255 | Pessoa jurídica a qual o interessado é vinculado:<br/> |
... | ... | @@ -124,61 +257,89 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
124 | 257 | <br/><br/> |
125 | 258 | </label> |
126 | 259 | |
127 | - <label class="infraLabelObrigatorio"> CPF/CNPJ:</label><br/> | |
128 | - <input type="text" class="infraText" name="cpfCnpj" id="cpfCnpj" style="width: 540px;" /> | |
260 | + <label id="lblCPF" style="display: none;" class="infraLabelObrigatorio"> CPF:<br/> | |
261 | + <input type="text" class="infraText" name="txtCPF" id="txtCPF" | |
262 | + readonly="readonly" | |
263 | + onkeypress="return infraMascaraCpf(this, event)" | |
264 | + style="width: 540px;" /> | |
129 | 265 | <br/><br/> |
266 | + </label> | |
130 | 267 | |
131 | - <label class="infraLabelObrigatorio"> Tratamento:</label><br/> | |
132 | - <select class="infraSelect" width="380" id="tratamento" name="tratamento" style="width:380px;" > | |
133 | - <option value=""></option> | |
134 | - </select> <br/> | |
135 | - | |
136 | - <label class="infraLabelObrigatorio"> Cargo:</label><br/> | |
137 | - <select class="infraSelect" width="380" id="cargo" name="cargo" style="width:380px;" > | |
138 | - <option value=""></option> | |
139 | - </select> <br/> | |
140 | - | |
141 | - <label class="infraLabelObrigatorio"> Vocativo:</label><br/> | |
142 | - <select class="infraSelect" width="380" id="vocativo" name="vocativo" style="width:380px;" > | |
143 | - <option value=""></option> | |
144 | - </select> <br/> | |
268 | + <label id="lblCNPJ" style="display: none;" class="infraLabelObrigatorio"> CNPJ:<br/> | |
269 | + <input type="text" class="infraText" name="txtCNPJ" id="txtCNPJ" | |
270 | + readonly="readonly" onkeypress="return infraMascaraCnpj(this, event)" | |
271 | + style="width: 540px;" /> | |
272 | + <br/><br/> | |
273 | + </label> | |
145 | 274 | |
146 | - <div class="div1" style="float:left; width: auto;"> | |
147 | - | |
148 | - <div id="div1_1" style="float:left; width: auto;"> | |
149 | - <label class="infraLabel">Número da OAB:</label><br/> | |
150 | - <input type="text" class="infraText" name="numeroOab" id="numeroOab" /> | |
151 | - </div> | |
275 | + <div id="div1" style="float:left; width: auto; display: none;"> | |
152 | 276 | |
153 | - <div id="div1_2" style="float:left; margin-left:20px; width: auto;"> | |
277 | + <div id="div1_2" style="float:left; width: auto;"> | |
154 | 278 | <label class="infraLabelObrigatorio">RG:</label><br/> |
155 | - <input type="text" class="infraText" name="rg" id="rg" /> | |
279 | + <input type="text" class="infraText" | |
280 | + onkeypress="return infraMascaraNumero(this,event, 10);" | |
281 | + name="rg" id="rg" /> | |
156 | 282 | </div> |
157 | 283 | |
158 | 284 | <div id="div1_3" style="float:left; margin-left:20px; width: auto;"> |
159 | 285 | <label class="infraLabelObrigatorio">Órgão Expedidor do RG:</label><br/> |
160 | - <input type="text" class="infraText" name="orgaoExpedidor" id="orgaoExpedidor" /> | |
286 | + <input type="text" class="infraText" name="orgaoExpedidor" | |
287 | + onkeypress="return infraMascaraTexto(this,event, 50);" | |
288 | + id="orgaoExpedidor" /> | |
161 | 289 | </div> |
162 | 290 | |
163 | - <div id="div1_4" style="float:left; margin-left:20px; width: auto;"> | |
164 | - <label class="infraLabelObrigatorio">Telefone:</label><br/> | |
165 | - <input type="text" class="infraText" name="telefone" id="telefone" /> | |
291 | + <div id="div1_1" style="float:left; margin-left:20px; width: auto;"> | |
292 | + <label class="infraLabel">Número da OAB:</label><br/> | |
293 | + <input type="text" class="infraText" | |
294 | + onkeypress="return infraMascaraTexto(this,event,10);" maxlength="10" | |
295 | + name="numeroOab" id="numeroOab" /> | |
166 | 296 | </div> |
167 | - | |
297 | + | |
168 | 298 | </div> |
169 | 299 | |
170 | 300 | <div style="clear: both;"></div> |
171 | 301 | |
172 | - <div class="div2" style="float:left; width: auto;"> | |
302 | + <label class="infraLabelObrigatorio" id="lblTratamento" style="display: none;"> | |
303 | + <br/>Tratamento:<br/> | |
304 | + <select class="infraSelect" width="380" id="tratamento" name="tratamento" style="width:380px;"> | |
305 | + <?=$strItensSelTratamento?> | |
306 | + </select> <br/> | |
307 | + </label> | |
308 | + | |
309 | + <label class="infraLabelObrigatorio" id="lblCargo" style="display: none;"> Cargo:<br/> | |
310 | + <select class="infraSelect" width="380" id="cargo" name="cargo" style="width:380px;" > | |
311 | + <?=$strItensSelCargo?> | |
312 | + </select> <br/> | |
313 | + </label> | |
314 | + | |
315 | + <label class="infraLabelObrigatorio" id="lblVocativo" style="display: none;"> Vocativo:<br/> | |
316 | + <select class="infraSelect" width="380" id="vocativo" name="vocativo" style="width:380px;" > | |
317 | + <?=$strItensSelVocativo?> | |
318 | + </select><br/> | |
319 | + </label> | |
320 | + | |
321 | + <label class="infraLabelObrigatorio">Telefone:</label><br/> | |
322 | + <input type="text" class="infraText" name="telefone" | |
323 | + onkeypress="return infraMascaraTexto(this,event,50);" maxlength="50" | |
324 | + id="telefone" /><br/> | |
325 | + | |
326 | + <div style="clear: both;"></div> | |
173 | 327 | |
328 | + <div class="div2" style="float:left; width: auto;"> | |
329 | + | |
330 | + <br/> | |
174 | 331 | <div id="div2_1" style="float:left; width: 280px;"> |
175 | 332 | <label class="infraLabel">Email:</label><br/> |
176 | - <input type="text" class="infraText" name="email" id="email" style="width: 280px;" /> | |
333 | + <input type="text" class="infraText" | |
334 | + onkeypress="return infraMascaraTexto(this,event,50);" maxlength="50" | |
335 | + name="email" id="email" style="width: 280px;" /> | |
177 | 336 | </div> |
178 | 337 | |
179 | 338 | <div id="div2_2" style="float:left; margin-left:20px; width: 280px;"> |
180 | 339 | <label class="infraLabel">Sítio na Internet:</label><br/> |
181 | - <input type="text" class="infraText" style="width: 280px;" name="sitioInternet" id="sitioInternet" /> | |
340 | + <input type="text" class="infraText" style="width: 280px;" | |
341 | + onkeypress="return infraMascaraTexto(this,event,50);" maxlength="50" | |
342 | + name="sitioInternet" id="sitioInternet" /> | |
182 | 343 | </div> |
183 | 344 | |
184 | 345 | </div> |
... | ... | @@ -186,7 +347,9 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
186 | 347 | <div style="clear: both;"></div> |
187 | 348 | |
188 | 349 | <div class="div3" style="float:left; width: auto;"> |
189 | - | |
350 | + | |
351 | + <br/> | |
352 | + | |
190 | 353 | <div id="div3_1" style="float:left; width: 280px;"> |
191 | 354 | <label class="infraLabelObrigatorio">Endereço:</label><br/> |
192 | 355 | <input type="text" class="infraText" style="width: 280px;" name="endereco" id="endereco" /> |
... | ... | @@ -202,10 +365,15 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
202 | 365 | <div style="clear: both;"></div> |
203 | 366 | |
204 | 367 | <div class="div4" style="float:left; width: auto;"> |
205 | - | |
368 | + | |
369 | + <br/> | |
370 | + | |
206 | 371 | <div id="div4_1" style="float:left; width: auto;"> |
207 | 372 | <label class="infraLabelObrigatorio">País:</label><br/> |
208 | - <input type="text" class="infraText" name="pais" id="pais" /> | |
373 | + <input type="text" class="infraText" | |
374 | + onkeyup="paisEstadoCidade(this);" value="Brasil" | |
375 | + onkeypress="return infraMascaraTexto(this,event,50);" maxlength="50" | |
376 | + name="pais" id="pais" /> | |
209 | 377 | </div> |
210 | 378 | |
211 | 379 | <div id="div4_2" style="float:left; margin-left:20px; width: auto;"> |
... | ... | @@ -213,11 +381,23 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
213 | 381 | <input type="text" class="infraText" name="estado" id="estado" /> |
214 | 382 | </div> |
215 | 383 | |
384 | + <div id="div4_2_combo" style="float:left; margin-left:20px; width: auto; display: none;"> | |
385 | + <label class="infraLabelObrigatorio">Estado:</label><br/> | |
386 | + <select class="infraSelect" name="cbEstado" id="cbEstado"> | |
387 | + </select> | |
388 | + </div> | |
389 | + | |
216 | 390 | <div id="div4_3" style="float:left; margin-left:20px; width: auto;"> |
217 | 391 | <label class="infraLabelObrigatorio">Cidade:</label><br/> |
218 | 392 | <input type="text" class="infraText" name="cidade" id="cidade" /> |
219 | 393 | </div> |
220 | 394 | |
395 | + <div id="div4_3_combo" style="float:left; margin-left:20px; width: auto; display: none;"> | |
396 | + <label class="infraLabelObrigatorio">Cidade:</label><br/> | |
397 | + <select class="infraSelect" name="cbCidade" id="cbCidade"> | |
398 | + </select> | |
399 | + </div> | |
400 | + | |
221 | 401 | <div id="div4_4" style="float:left; margin-left:20px; width: auto;"> |
222 | 402 | <label class="infraLabelObrigatorio">CEP:</label><br/> |
223 | 403 | <input type="text" class="infraText" name="cep" id="cep" /> |
... | ... | @@ -237,119 +417,7 @@ PaginaSEIExterna::getInstance()->montarAreaDebug(); |
237 | 417 | PaginaSEIExterna::getInstance()->fecharAreaDados(); |
238 | 418 | PaginaSEIExterna::getInstance()->fecharBody(); |
239 | 419 | PaginaSEIExterna::getInstance()->fecharHtml(); |
240 | -?> | |
241 | -<script type="text/javascript"> | |
242 | 420 | |
243 | -function selecionarPF(){ | |
244 | - mostrarCamposPF(); | |
245 | -} | |
246 | - | |
247 | -function selecionarPF1(){ | |
248 | - ocultarComboPJVinculada(); | |
249 | -} | |
250 | - | |
251 | -function selecionarPF2(){ | |
252 | - mostrarComboPJVinculada(); | |
253 | -} | |
254 | - | |
255 | -function ocultarComboPJVinculada(){ | |
256 | - document.getElementById('lblPjVinculada').style.display = 'none'; | |
257 | - document.getElementById('txtPjVinculada').style.display = 'none'; | |
258 | - document.getElementById('txtPjVinculada').value = ''; | |
259 | -} | |
260 | - | |
261 | -function mostrarComboPJVinculada(){ | |
262 | - document.getElementById('lblPjVinculada').style.display = ''; | |
263 | - document.getElementById('txtPjVinculada').style.display = ''; | |
264 | -} | |
265 | - | |
266 | -function selecionarPJ(){ | |
267 | - mostrarCamposPJ(); | |
268 | -} | |
269 | - | |
270 | -function mostrarCamposPF(){ | |
271 | - | |
272 | - document.getElementById('rdPF1').style.display = ''; | |
273 | - document.getElementById('rdPF2').style.display = ''; | |
274 | - document.getElementById('lblrdPF1').style.display = ''; | |
275 | - document.getElementById('lblrdPF2').style.display = ''; | |
276 | -} | |
277 | - | |
278 | -function mostrarCamposPJ(){ | |
279 | - | |
280 | - document.getElementById('rdPF1').style.display = 'none'; | |
281 | - document.getElementById('rdPF2').style.display = 'none'; | |
282 | - | |
283 | - document.getElementById('rdPF1').checked = false; | |
284 | - document.getElementById('rdPF2').checked = false; | |
285 | - document.getElementById('rdPF1').checked = ''; | |
286 | - document.getElementById('rdPF2').checked = ''; | |
287 | - | |
288 | - document.getElementById('lblrdPF1').style.display = 'none'; | |
289 | - document.getElementById('lblrdPF2').style.display = 'none'; | |
290 | - | |
291 | - document.getElementById('lblPjVinculada').style.display = 'none'; | |
292 | - document.getElementById('txtPjVinculada').style.display = 'none'; | |
293 | - | |
294 | -} | |
295 | - | |
296 | -function enviarInteressado(){ | |
297 | - | |
298 | - //alert('Enviar interessados - INICIO'); | |
299 | - | |
300 | - var arrDados = ["Banana1", "Orange1", "Apple1", "Mango1"]; | |
301 | - arrDados.push("Kiwi1"); | |
302 | - opener.receberInteressado(arrDados, true); | |
303 | - | |
304 | - var arrDados2 = ["Banana2", "Orange2", "Apple2", "Mango2"]; | |
305 | - arrDados2.push("Kiwi2"); | |
306 | - opener.receberInteressado(arrDados2, false); | |
307 | - | |
308 | - //alert('Enviar interessados - FIM'); | |
309 | - | |
310 | -} | |
311 | - | |
312 | -function validarFormulario(){ | |
313 | - | |
314 | - //valida campo especificação | |
315 | - var textoEspecificacao = document.getElementById("txtEspecificacao").value; | |
316 | - | |
317 | - if( textoEspecificacao == '' ){ | |
318 | - alert('Informe a especificação.'); | |
319 | - document.getElementById("txtEspecificacao").focus(); | |
320 | - return false; | |
321 | - } | |
322 | - | |
323 | - return true; | |
324 | -} | |
325 | - | |
326 | -function inicializar(){ | |
327 | - | |
328 | - infraEfeitoTabelas(); | |
329 | - | |
330 | -} | |
331 | - | |
332 | -function returnDateTime(valor){ | |
333 | - | |
334 | - valorArray = valor != '' ? valor.split(" ") : ''; | |
335 | - | |
336 | - if(Array.isArray(valorArray)){ | |
337 | - var data = valorArray[0] | |
338 | - data = data.split('/'); | |
339 | - var mes = parseInt(data[1]) - 1; | |
340 | - var horas = valorArray[1].split(':'); | |
341 | - | |
342 | - var segundos = typeof horas[2] != 'undefined' ? horas[2] : 00; | |
343 | - var dataCompleta = new Date(data[2], mes ,data[0], horas[0] , horas[1] , segundos); | |
344 | - return dataCompleta; | |
345 | - } | |
346 | - | |
347 | - return false; | |
348 | -} | |
349 | - | |
350 | -function OnSubmitForm() { | |
351 | - | |
352 | - return true; | |
353 | -} | |
354 | - | |
355 | -</script> | |
356 | 421 | \ No newline at end of file |
422 | +//incluindo arquivo com funções JavaScript da página | |
423 | +require_once 'peticionamento_interessado_cadastro_js.php'; | |
424 | +?> | |
357 | 425 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/peticionamento_interessado_cadastro_js.php
0 → 100644
... | ... | @@ -0,0 +1,398 @@ |
1 | +<script type="text/javascript"> | |
2 | +/** | |
3 | +* ANATEL | |
4 | +* | |
5 | +* 23/09/2016 - criado por marcelo.bezerra@cast.com.br - CAST | |
6 | +* | |
7 | +*/ | |
8 | + | |
9 | +function selecionarPF(){ | |
10 | + mostrarCamposPF(); | |
11 | +} | |
12 | + | |
13 | +function selecionarPF1(){ | |
14 | + ocultarComboPJVinculada(); | |
15 | +} | |
16 | + | |
17 | +function selecionarPF2(){ | |
18 | + mostrarComboPJVinculada(); | |
19 | +} | |
20 | + | |
21 | +function ocultarComboPJVinculada(){ | |
22 | + document.getElementById('lblPjVinculada').style.display = 'none'; | |
23 | + document.getElementById('txtPjVinculada').style.display = 'none'; | |
24 | + document.getElementById('txtPjVinculada').value = ''; | |
25 | +} | |
26 | + | |
27 | +function mostrarComboPJVinculada(){ | |
28 | + document.getElementById('lblPjVinculada').style.display = ''; | |
29 | + document.getElementById('txtPjVinculada').style.display = ''; | |
30 | +} | |
31 | + | |
32 | +function selecionarPJ(){ | |
33 | + mostrarCamposPJ(); | |
34 | +} | |
35 | + | |
36 | +function mostrarCamposPF(){ | |
37 | + | |
38 | + document.getElementById('rdPF1').style.display = ''; | |
39 | + document.getElementById('rdPF2').style.display = ''; | |
40 | + document.getElementById('lblrdPF1').style.display = ''; | |
41 | + document.getElementById('lblrdPF2').style.display = ''; | |
42 | + | |
43 | + document.getElementById('lblNome').style.display = ''; | |
44 | + document.getElementById('lblCPF').style.display = ''; | |
45 | + | |
46 | + <?php if( !isset( $_GET['cpf']) ) { ?> | |
47 | + document.getElementById('lblRazaoSocial').style.display = 'none'; | |
48 | + document.getElementById('lblCNPJ').style.display = 'none'; | |
49 | + document.getElementById('txtCNPJ').value=''; | |
50 | + document.getElementById('txtRazaoSocial').value=''; | |
51 | + <?php } ?> | |
52 | + | |
53 | + //mostrar campos Vocativo, Tratamento, Cargo | |
54 | + document.getElementById('lblCargo').style.display = ''; | |
55 | + document.getElementById('lblVocativo').style.display = ''; | |
56 | + document.getElementById('lblTratamento').style.display = ''; | |
57 | + | |
58 | + //mostrar campos RG, orgao expedidor, numero da OAB | |
59 | + document.getElementById('div1').style.display = ''; | |
60 | + | |
61 | +} | |
62 | + | |
63 | +function mostrarCamposPJ(){ | |
64 | + | |
65 | + <?php if( !isset( $_GET['cnpj']) ) { ?> | |
66 | + document.getElementById('rdPF1').style.display = 'none'; | |
67 | + document.getElementById('rdPF2').style.display = 'none'; | |
68 | + | |
69 | + document.getElementById('rdPF1').checked = false; | |
70 | + document.getElementById('rdPF2').checked = false; | |
71 | + document.getElementById('rdPF1').checked = ''; | |
72 | + document.getElementById('rdPF2').checked = ''; | |
73 | + | |
74 | + document.getElementById('lblrdPF1').style.display = 'none'; | |
75 | + document.getElementById('lblrdPF2').style.display = 'none'; | |
76 | + <?php } ?> | |
77 | + | |
78 | + document.getElementById('lblPjVinculada').style.display = 'none'; | |
79 | + document.getElementById('txtPjVinculada').style.display = 'none'; | |
80 | + document.getElementById('txtPjVinculada').value=''; | |
81 | + | |
82 | + <?php if( !isset( $_GET['cnpj']) ) { ?> | |
83 | + document.getElementById('lblNome').style.display = 'none'; | |
84 | + document.getElementById('lblCPF').style.display = 'none'; | |
85 | + document.getElementById('txtNome').value=''; | |
86 | + document.getElementById('txtCPF').value=''; | |
87 | + <?php } ?> | |
88 | + | |
89 | + document.getElementById('lblCNPJ').style.display = ''; | |
90 | + document.getElementById('lblRazaoSocial').style.display = ''; | |
91 | + | |
92 | + //ocultar campos Vocativo, Tratamento, Cargo | |
93 | + document.getElementById('lblCargo').style.display = 'none'; | |
94 | + document.getElementById('cargo').value = ''; | |
95 | + | |
96 | + document.getElementById('lblVocativo').style.display = 'none'; | |
97 | + document.getElementById('vocativo').value = ''; | |
98 | + | |
99 | + document.getElementById('lblTratamento').style.display = 'none'; | |
100 | + document.getElementById('tratamento').value = ''; | |
101 | + | |
102 | + //mostrar campos RG, orgao expedidor, numero da OAB | |
103 | + document.getElementById('div1').style.display = 'none'; | |
104 | + | |
105 | +} | |
106 | + | |
107 | +function enviarInteressado(){ | |
108 | + | |
109 | + //alert('Enviar interessados - INICIO'); | |
110 | + | |
111 | + var arrDados = ["Banana1", "Orange1", "Apple1", "Mango1"]; | |
112 | + arrDados.push("Kiwi1"); | |
113 | + opener.receberInteressado(arrDados, true); | |
114 | + | |
115 | + var arrDados2 = ["Banana2", "Orange2", "Apple2", "Mango2"]; | |
116 | + arrDados2.push("Kiwi2"); | |
117 | + opener.receberInteressado(arrDados2, false); | |
118 | + | |
119 | + //alert('Enviar interessados - FIM'); | |
120 | + | |
121 | +} | |
122 | + | |
123 | +function validarFormulario(){ | |
124 | + | |
125 | + //valida campo especificação | |
126 | + var textoEspecificacao = document.getElementById("txtEspecificacao").value; | |
127 | + | |
128 | + if( textoEspecificacao == '' ){ | |
129 | + alert('Informe a especificação.'); | |
130 | + document.getElementById("txtEspecificacao").focus(); | |
131 | + return false; | |
132 | + } | |
133 | + | |
134 | + return true; | |
135 | +} | |
136 | + | |
137 | +function inicializar(){ | |
138 | + | |
139 | + var txtcpf = window.opener.document.getElementById("txtCPF").value; | |
140 | + var txtcnpj = window.opener.document.getElementById("txtCNPJ").value; | |
141 | + | |
142 | + <?php if( isset( $_GET['cpf'] ) ) { ?> | |
143 | + document.getElementById("rdPF").click(); | |
144 | + document.getElementById("txtCPF").value = txtcpf; | |
145 | + <?php } ?> | |
146 | + | |
147 | + <?php if( isset( $_GET['cnpj'] ) ) { ?> | |
148 | + document.getElementById("rdPJ").click(); | |
149 | + document.getElementById("txtCNPJ").value = txtcnpj; | |
150 | + <?php } ?> | |
151 | + | |
152 | + infraEfeitoTabelas(); | |
153 | + | |
154 | +} | |
155 | + | |
156 | +function returnDateTime(valor){ | |
157 | + | |
158 | + valorArray = valor != '' ? valor.split(" ") : ''; | |
159 | + | |
160 | + if(Array.isArray(valorArray)){ | |
161 | + var data = valorArray[0] | |
162 | + data = data.split('/'); | |
163 | + var mes = parseInt(data[1]) - 1; | |
164 | + var horas = valorArray[1].split(':'); | |
165 | + | |
166 | + var segundos = typeof horas[2] != 'undefined' ? horas[2] : 00; | |
167 | + var dataCompleta = new Date(data[2], mes ,data[0], horas[0] , horas[1] , segundos); | |
168 | + return dataCompleta; | |
169 | + } | |
170 | + | |
171 | + return false; | |
172 | +} | |
173 | + | |
174 | +function OnSubmitForm() { | |
175 | + | |
176 | + return true; | |
177 | +} | |
178 | + | |
179 | +function paisEstadoCidade(objPais, txtPais){ | |
180 | + | |
181 | + /* | |
182 | + var objTxtEstado = document.getElementById('txtSiglaEstado'); | |
183 | + var objSelEstado = document.getElementById('selSiglaEstado'); | |
184 | + var objTxtCidade = document.getElementById('txtNomeCidade'); | |
185 | + var objSelCidade = document.getElementById('selNomeCidade'); | |
186 | + | |
187 | + var flagAlterando = false; | |
188 | + if (txtPais != undefined){ | |
189 | + objPais.value = txtPais; | |
190 | + }else{ | |
191 | + flagAlterando = true; | |
192 | + txtPais = objPais.value; | |
193 | + } | |
194 | + | |
195 | + if (infraTrim(txtPais).toLowerCase() == 'brasil'){ | |
196 | + if (flagAlterando){ | |
197 | + objTxtEstado.value=''; | |
198 | + objTxtCidade.value=''; | |
199 | + } | |
200 | + | |
201 | + infraSelectSelecionarItem(objSelEstado,document.getElementById('txtSiglaEstado').value); | |
202 | + objAjaxNomeCidade.executar(); | |
203 | + | |
204 | + objTxtEstado.style.visibility = 'hidden'; | |
205 | + objTxtCidade.style.visibility = 'hidden'; | |
206 | + objSelEstado.style.visibility = 'visible'; | |
207 | + objSelCidade.style.visibility = 'visible'; | |
208 | + }else{ | |
209 | + infraSelectSelecionarItem(objSelEstado, 'null'); | |
210 | + infraSelectSelecionarItem(objSelCidade, 'null'); | |
211 | + | |
212 | + objTxtEstado.style.visibility = 'visible'; | |
213 | + objTxtCidade.style.visibility = 'visible'; | |
214 | + objSelEstado.style.visibility = 'hidden'; | |
215 | + objSelCidade.style.visibility = 'hidden'; | |
216 | + } | |
217 | + */ | |
218 | +} | |
219 | + | |
220 | +function salvar(){ | |
221 | + | |
222 | + //validar interessado | |
223 | + var interessado1 = document.frmCadastro.tipoPessoa.value; | |
224 | + var interessado2 = document.frmCadastro.tipoPessoaPF.value; | |
225 | + | |
226 | + if( interessado1 == '' ){ | |
227 | + alert('Informe o Interessado.'); | |
228 | + return; | |
229 | + } | |
230 | + | |
231 | + else if( interessado1 == 'pf' && interessado2 == ''){ | |
232 | + alert('Informe se o interessado possui ou não vínculo com Pessoa Jurídica.'); | |
233 | + return; | |
234 | + } | |
235 | + | |
236 | + //validar tipo de interessado | |
237 | + var tipoInteressado = document.getElementById('tipoInteressado').value; | |
238 | + | |
239 | + if( tipoInteressado == '' || tipoInteressado == 'null' ){ | |
240 | + alert('Informe o tipo de interessado.'); | |
241 | + document.getElementById('tipoInteressado').focus(); | |
242 | + return; | |
243 | + } | |
244 | + | |
245 | + //validar nome ou razao social | |
246 | + var nome = document.getElementById('txtNome').value; | |
247 | + var razaoSocial = document.getElementById('txtRazaoSocial').value; | |
248 | + | |
249 | + if( interessado1 == 'pf' && nome == '' ){ | |
250 | + alert('Informe o nome.'); | |
251 | + document.getElementById('txtNome').focus(); | |
252 | + return; | |
253 | + | |
254 | + } else if( interessado1 == 'pj' && razaoSocial == '' ){ | |
255 | + alert('Informe a razão social.'); | |
256 | + document.getElementById('txtRazaoSocial').focus(); | |
257 | + return; | |
258 | + } | |
259 | + | |
260 | + //validar pj vinculada (caso exista) | |
261 | + var pjVinculada = document.getElementById('txtPjVinculada').value; | |
262 | + | |
263 | + if( interessado1 == 'pf' && interessado2 == '1' && pjVinculada == '' ){ | |
264 | + alert('Informe a pessoa jurídica vinculada.'); | |
265 | + document.getElementById('txtPjVinculada').focus(); | |
266 | + return; | |
267 | + } | |
268 | + | |
269 | + //validar cpf ou cnpj | |
270 | + var cpf = document.getElementById('txtCPF').value; | |
271 | + var cnpj = document.getElementById('txtCNPJ').value; | |
272 | + | |
273 | + if( interessado1 == 'pf' && cpf == '' ){ | |
274 | + alert('Informe o CPF.'); | |
275 | + document.getElementById('txtCPF').focus(); | |
276 | + return; | |
277 | + | |
278 | + } else if( interessado1 == 'pj' && cnpj == '' ){ | |
279 | + alert('Informe o CNPJ.'); | |
280 | + document.getElementById('txtCNPJ').focus(); | |
281 | + return; | |
282 | + } | |
283 | + | |
284 | + //rg | |
285 | + var rg = document.getElementById('rg').value; | |
286 | + | |
287 | + if( interessado1 == 'pf' && rg == '' ){ | |
288 | + alert('Informe o RG.'); | |
289 | + document.getElementById('rg').focus(); | |
290 | + return; | |
291 | + } | |
292 | + | |
293 | + //orgao expedidor | |
294 | + var orgaoExpedidor = document.getElementById('orgaoExpedidor').value; | |
295 | + | |
296 | + if( interessado1 == 'pf' && orgaoExpedidor == '' ){ | |
297 | + alert('Informe o órgão expedidor.'); | |
298 | + document.getElementById('orgaoExpedidor').focus(); | |
299 | + return; | |
300 | + } | |
301 | + | |
302 | + //tratamento | |
303 | + var tratamento = document.getElementById('tratamento').value; | |
304 | + | |
305 | + if( interessado1 == 'pf' && ( tratamento == 'null' || tratamento == '') ){ | |
306 | + alert('Informe o tratamento.'); | |
307 | + document.getElementById('tratamento').focus(); | |
308 | + return; | |
309 | + } | |
310 | + | |
311 | + //cargo | |
312 | + var cargo = document.getElementById('cargo').value; | |
313 | + | |
314 | + if( interessado1 == 'pf' && ( cargo == 'null' || cargo == '') ){ | |
315 | + alert('Informe o cargo.'); | |
316 | + document.getElementById('cargo').focus(); | |
317 | + return; | |
318 | + } | |
319 | + | |
320 | + //vocativo | |
321 | + var vocativo = document.getElementById('vocativo').value; | |
322 | + | |
323 | + if( interessado1 == 'pf' && ( vocativo == 'null' || vocativo == '') ){ | |
324 | + alert('Informe o vocativo.'); | |
325 | + document.getElementById('vocativo').focus(); | |
326 | + return; | |
327 | + } | |
328 | + | |
329 | + //telefone | |
330 | + var telefone = document.getElementById('telefone').value; | |
331 | + | |
332 | + if( telefone == ''){ | |
333 | + alert('Informe o telefone.'); | |
334 | + document.getElementById('telefone').focus(); | |
335 | + return; | |
336 | + } | |
337 | + | |
338 | + //endereco | |
339 | + var endereco = document.getElementById('endereco').value; | |
340 | + | |
341 | + if( endereco == ''){ | |
342 | + alert('Informe o endereço.'); | |
343 | + document.getElementById('endereco').focus(); | |
344 | + return; | |
345 | + } | |
346 | + | |
347 | + //bairro | |
348 | + var bairro = document.getElementById('bairro').value; | |
349 | + | |
350 | + if( bairro == ''){ | |
351 | + alert('Informe o bairro.'); | |
352 | + document.getElementById('bairro').focus(); | |
353 | + return; | |
354 | + } | |
355 | + | |
356 | + //pais | |
357 | + var pais = document.getElementById('pais').value; | |
358 | + | |
359 | + if( pais == ''){ | |
360 | + alert('Informe o país.'); | |
361 | + document.getElementById('pais').focus(); | |
362 | + return; | |
363 | + } | |
364 | + | |
365 | + //estado | |
366 | + var estado = document.getElementById('estado').value; | |
367 | + var cbEstado = document.getElementById('cbEstado').value; | |
368 | + | |
369 | + if( estado == '' && cbEstado == ''){ | |
370 | + alert('Informe o estado.'); | |
371 | + document.getElementById('estado').focus(); | |
372 | + return; | |
373 | + } | |
374 | + | |
375 | + //cidade | |
376 | + var cidade = document.getElementById('cidade').value; | |
377 | + var cbCidade = document.getElementById('cbCidade').value; | |
378 | + | |
379 | + if( cidade == '' && cbCidade == ''){ | |
380 | + alert('Informe a cidade.'); | |
381 | + document.getElementById('cidade').focus(); | |
382 | + return; | |
383 | + } | |
384 | + | |
385 | + //cep | |
386 | + var cep = document.getElementById('cep').value; | |
387 | + | |
388 | + if( cep == '' ){ | |
389 | + alert('Informe o CEP.'); | |
390 | + document.getElementById('cep').focus(); | |
391 | + return; | |
392 | + } | |
393 | + | |
394 | + document.frmCadastro.submit(); | |
395 | + | |
396 | +} | |
397 | + | |
398 | +</script> | |
0 | 399 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro.php
... | ... | @@ -199,7 +199,9 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
199 | 199 | <div id="divSel2" style=" float: left; margin-left: 10px; display: none;"> |
200 | 200 | |
201 | 201 | <label id="descNomePessoa" style="font-weight: bold;"> </label> <br/> |
202 | - <input type="text" name="txtNomeRazaoSocial" id="txtNomeRazaoSocial" maxlength="250" width="280" style="width:280px; display: none;"> | |
202 | + <input type="text" name="txtNomeRazaoSocial" id="txtNomeRazaoSocial" | |
203 | + readonly="readonly" maxlength="250" width="280" | |
204 | + style="width:280px; display: none;"> | |
203 | 205 | |
204 | 206 | <input type="text" readonly="readonly" id="btAdicionarInteressado" class="infraText" value=" Adicionar " |
205 | 207 | onclick="adicionarInteressadoValido()" style="width: 60px; margin-left: 2px; display: none;" /> |
... | ... | @@ -215,6 +217,9 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
215 | 217 | <tr> |
216 | 218 | <th class="infraTh" id="tdDescTipoPessoa" > CPF/CNPJ </th> |
217 | 219 | <th class="infraTh" id="tdDescNomePessoa" > Nome/Razão social </th> |
220 | + <th class="infraTh" style="display: none;" > ID Usuario </th> | |
221 | + <th class="infraTh" style="display: none;" > ID Contato </th> | |
222 | + <th class="infraTh" style="display: none;" > ID Contexto </th> | |
218 | 223 | <th align="center" class="infraTh" style="width:70px;"> Ações </th> |
219 | 224 | </tr> |
220 | 225 | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_bloco_documentos.php
... | ... | @@ -48,11 +48,11 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
48 | 48 | $numValorTamanhoMaximoComplementar = $arrTamanhoMaximo[0]->getNumValorDocComplementar(); |
49 | 49 | |
50 | 50 | if( $numValorTamanhoMaximo != null && $numValorTamanhoMaximo > 0 ){ |
51 | - $strTamanhoMaximoPrincipal = $numValorTamanhoMaximo . " mb"; | |
51 | + $strTamanhoMaximoPrincipal = $numValorTamanhoMaximo . " Mb"; | |
52 | 52 | } |
53 | 53 | |
54 | 54 | if( $numValorTamanhoMaximoComplementar != null && $numValorTamanhoMaximoComplementar > 0 ){ |
55 | - $strTamanhoMaximoComplementar = $numValorTamanhoMaximoComplementar . " mb"; | |
55 | + $strTamanhoMaximoComplementar = $numValorTamanhoMaximoComplementar . " Mb"; | |
56 | 56 | } |
57 | 57 | |
58 | 58 | } |
... | ... | @@ -63,7 +63,10 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
63 | 63 | $externo = $ObjTipoProcessoPeticionamentoDTO->getStrSinDocExterno(); |
64 | 64 | |
65 | 65 | if( $externo == 'S' ) { ?> |
66 | - <label style="font-weight: bold;" for="fileArquivoPrincipal"> Documento Principal (<?= $strTamanhoMaximoPrincipal ?>):</label><br/> | |
66 | + <label style="font-weight: bold;" for="fileArquivoPrincipal"> Documento Principal (<? | |
67 | + echo $strTamanhoMaximoPrincipal; | |
68 | + echo "<input type=hidden name=hdnTamArquivoPrincipal id=hdnTamArquivoPrincipal value='" . $strTamanhoMaximoPrincipal . "'>"; | |
69 | + ?>):</label><br/> | |
67 | 70 | <input style="margin-top:0.3%" type="file" name="fileArquivoPrincipal" id="fileArquivoPrincipal" /> <br/><br/> |
68 | 71 | <? }?> |
69 | 72 | |
... | ... | @@ -309,7 +312,10 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
309 | 312 | if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ ?> |
310 | 313 | |
311 | 314 | <br/> |
312 | - <label class="infraLabelObrigatorio" for="fileArquivoEssencial"> Documentos Essenciais (<?= $strTamanhoMaximoComplementar ?>):</label><br/> | |
315 | + <label class="infraLabelObrigatorio" for="fileArquivoEssencial"> Documentos Essenciais (<? | |
316 | + echo $strTamanhoMaximoComplementar; | |
317 | + echo "<input type=hidden name=hdnTamArquivoEssencial id=hdnTamArquivoEssencial value='" . $strTamanhoMaximoComplementar . "'>"; | |
318 | + ?>):</label><br/> | |
313 | 319 | |
314 | 320 | <input style="margin-top:0.3%" type="file" id="fileArquivoEssencial" name="fileArquivoEssencial" size="50" /> <br/><br/> |
315 | 321 | |
... | ... | @@ -502,7 +508,10 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
502 | 508 | if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ ?> |
503 | 509 | |
504 | 510 | <br/> |
505 | - <label class="infraLabel" for="fileArquivoComplementar"> Documentos Complementares (<?= $strTamanhoMaximoComplementar ?>):</label><br/> | |
511 | + <label class="infraLabel" for="fileArquivoComplementar"> Documentos Complementares (<? | |
512 | + echo $strTamanhoMaximoComplementar; | |
513 | + echo "<input type=hidden name=hdnTamArquivoComplementar id=hdnTamArquivoComplementar value='" . $strTamanhoMaximoComplementar . "'>"; | |
514 | + ?>):</label><br/> | |
506 | 515 | |
507 | 516 | <input style="margin-top:0.3%" type="file" id="fileArquivoComplementar" name="fileArquivoComplementar" size="50" /> <br/><br/> |
508 | 517 | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_js.php
... | ... | @@ -127,7 +127,7 @@ function validarUploadArquivo(numero){ |
127 | 127 | var tbDocumentoPrincipal = document.getElementById('tbDocumentoPrincipal'); |
128 | 128 | var hiddenCampoPrincipal = document.getElementById('hdnDocPrincipal'); |
129 | 129 | |
130 | - if( tbDocumentoPrincipal != null && | |
130 | + if( tbDocumentoPrincipal != null && | |
131 | 131 | tbDocumentoPrincipal != undefined ){ |
132 | 132 | |
133 | 133 | if( hiddenCampoPrincipal != null && |
... | ... | @@ -248,7 +248,7 @@ function validarUploadArquivo(numero){ |
248 | 248 | cbTipoConferencia.focus(); |
249 | 249 | return; |
250 | 250 | } |
251 | - | |
251 | + | |
252 | 252 | //validar tamanho do arquivo no lado server side apenas |
253 | 253 | if( isValido ){ |
254 | 254 | |
... | ... | @@ -1028,10 +1028,15 @@ function abrirCadastroInteressado(){ |
1028 | 1028 | //charmar janela para cadastrar um novo interessado |
1029 | 1029 | $('#txtNomeRazaoSocial').val(''); |
1030 | 1030 | |
1031 | - var str = '<?= SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_interessado_cadastro&tipo_selecao=2&cpfcnpj=#conteudo#') ?>'; | |
1032 | - var res = str.replace("#conteudo#", conteudo); | |
1033 | - //alert( str ); | |
1034 | - infraAbrirJanela( str, 'cadastrarInteressado', 900, 900, '', true); //modal | |
1031 | + if( chkTipoPessoaFisica ){ | |
1032 | + var str = '<?= SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_interessado_cadastro&tipo_selecao=2&cpf=true') ?>'; | |
1033 | + } | |
1034 | + | |
1035 | + else if( chkTipoPessoaJuridica ){ | |
1036 | + var str = '<?= SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_interessado_cadastro&tipo_selecao=2&cnpj=true') ?>'; | |
1037 | + } | |
1038 | + | |
1039 | + infraAbrirJanela( str, 'cadastrarInteressado', 900, 900, '', false); //modal | |
1035 | 1040 | return; |
1036 | 1041 | |
1037 | 1042 | } |
... | ... | @@ -1202,6 +1207,14 @@ function carregarCamposDocPrincipalUpload(){ |
1202 | 1207 | var dataHoraFormatada = '<?= time() ?>'; |
1203 | 1208 | var tamanhoFormatado = infraFormatarTamanhoBytes(arr['tamanho']); |
1204 | 1209 | |
1210 | + //Tamanho | |
1211 | + var tamanhoMb = tamanho/1024/1024; | |
1212 | + var tamanhoPermitidoMb = document.getElementById('hdnTamArquivoPrincipal').value.toLowerCase().replace(' mb',''); | |
1213 | + if(tamanhoMb>tamanhoPermitidoMb){ | |
1214 | + alert('Arquivo com tamanho maior que o permitido.'); | |
1215 | + return false; | |
1216 | + } | |
1217 | + | |
1205 | 1218 | //concatenacao de "Tipo" e "Complemento" |
1206 | 1219 | var cbTpoPrincipal = document.getElementById('tipoDocumentoPrincipal'); |
1207 | 1220 | var strComplemento = document.getElementById('complementoPrincipal').value; |
... | ... | @@ -1225,7 +1238,7 @@ function carregarCamposDocPrincipalUpload(){ |
1225 | 1238 | |
1226 | 1239 | //TipoConferenciaPrincipal / TipoConferenciaEssencial |
1227 | 1240 | var tipoConferencia = document.getElementById('TipoConferenciaPrincipal').value; |
1228 | - | |
1241 | + | |
1229 | 1242 | objTabelaDocPrincipal.adicionar([ nome , dataHora , tamanhoFormatado , documento , nivelAcesso , hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoPrincipal.value,strComplemento,formatoDocumentoLbl, '' ]); |
1230 | 1243 | |
1231 | 1244 | var strHashPrincipal = document.getElementById('hdnDocPrincipal').value; |
... | ... | @@ -1260,7 +1273,7 @@ function carregarCamposDocPrincipalUpload(){ |
1260 | 1273 | } |
1261 | 1274 | |
1262 | 1275 | } |
1263 | - | |
1276 | + | |
1264 | 1277 | } |
1265 | 1278 | |
1266 | 1279 | objPrincipalUpload.validar = function(arr){ |
... | ... | @@ -1332,6 +1345,49 @@ function carregarCamposDocEssencialUpload(){ |
1332 | 1345 | var dataHoraFormatada = '<?= time() ?>'; |
1333 | 1346 | var tamanhoFormatado = infraFormatarTamanhoBytes(arr['tamanho']); |
1334 | 1347 | |
1348 | + //Tamanho | |
1349 | + var tamanhoMb = tamanho/1024/1024; | |
1350 | + var tamanhoPermitidoMb = document.getElementById('hdnTamArquivoEssencial').value.toLowerCase().replace(' mb',''); | |
1351 | + if(tamanhoMb>tamanhoPermitidoMb){ | |
1352 | + alert('Arquivo com tamanho maior que o permitido.'); | |
1353 | + return false; | |
1354 | + } | |
1355 | + | |
1356 | + //Nome | |
1357 | + var linhas = document.getElementById('tbDocumentoEssencial').rows; | |
1358 | + var tamanhoInserido = 0; | |
1359 | + var tamanhoVerificar = 0; | |
1360 | + | |
1361 | + for (var i = 1; i < linhas.length; i++) { | |
1362 | + //Nome igual | |
1363 | + if (nome.toLowerCase()==linhas[i].cells[0].innerText.toLowerCase()){ | |
1364 | + /* | |
1365 | + //TAMANHO | |
1366 | + tamanhoInserido = linhas[i].cells[2].innerText.toLowerCase().toLowerCase().replace(' Kb',''); | |
1367 | + //arquivo em Kb | |
1368 | + if (tamanhoInserido != linhas[i].cells[2].innerText){ | |
1369 | + tamanhoVerificar = tamanho/1024; | |
1370 | + tamanhoVerificar = parseFloat(tamanhoVerificar.toFixed(2)); | |
1371 | + //arquivo em Mb | |
1372 | + }else{ | |
1373 | + tamanhoInserido = linhas[i].cells[2].innerText.toLowerCase().toLowerCase().replace(' mb',''); | |
1374 | + if (tamanhoInserido != linhas[i].cells[2].innerText){ | |
1375 | + tamanhoVerificar = tamanho/1024/1024; | |
1376 | + tamanhoVerificar = parseFloat(tamanhoVerificar.toFixed(2)); | |
1377 | + }else{ | |
1378 | + tamanhoInserido=0; | |
1379 | + } | |
1380 | + } | |
1381 | + if (tamanhoVerificar==tamanhoInserido){ | |
1382 | + alert('Arquivo já inserido'); | |
1383 | + return false; | |
1384 | + } | |
1385 | + */ | |
1386 | + alert('Arquivo já inserido'); | |
1387 | + return false; | |
1388 | + } | |
1389 | + } | |
1390 | + | |
1335 | 1391 | //concatenacao de "Tipo" e "Complemento" |
1336 | 1392 | var cbTpoEssencial = document.getElementById('tipoDocumentoEssencial'); |
1337 | 1393 | |
... | ... | @@ -1452,6 +1508,49 @@ function carregarCamposDocComplementarUpload(){ |
1452 | 1508 | var dataHoraFormatada = '<?= time() ?>'; |
1453 | 1509 | var tamanhoFormatado = infraFormatarTamanhoBytes(arr['tamanho']); |
1454 | 1510 | |
1511 | + //Tamanho | |
1512 | + var tamanhoMb = tamanho/1024/1024; | |
1513 | + var tamanhoPermitidoMb = document.getElementById('hdnTamArquivoComplementar').value.toLowerCase().replace(' mb',''); | |
1514 | + if(tamanhoMb>tamanhoPermitidoMb){ | |
1515 | + alert('Arquivo com tamanho maior que o permitido.'); | |
1516 | + return false; | |
1517 | + } | |
1518 | + | |
1519 | + //Nome | |
1520 | + var linhas = document.getElementById('tbDocumentoComplementar').rows; | |
1521 | + var tamanhoInserido = 0; | |
1522 | + var tamanhoVerificar = 0; | |
1523 | + | |
1524 | + for (var i = 1; i < linhas.length; i++) { | |
1525 | + //Nome igual | |
1526 | + if (nome.toLowerCase()==linhas[i].cells[0].innerText.toLowerCase()){ | |
1527 | + /* | |
1528 | + //TAMANHO | |
1529 | + tamanhoInserido = linhas[i].cells[2].innerText.toLowerCase().toLowerCase().replace(' Kb',''); | |
1530 | + //arquivo em Kb | |
1531 | + if (tamanhoInserido != linhas[i].cells[2].innerText){ | |
1532 | + tamanhoVerificar = tamanho/1024; | |
1533 | + tamanhoVerificar = parseFloat(tamanhoVerificar.toFixed(2)); | |
1534 | + //arquivo em Mb | |
1535 | + }else{ | |
1536 | + tamanhoInserido = linhas[i].cells[2].innerText.toLowerCase().toLowerCase().replace(' mb',''); | |
1537 | + if (tamanhoInserido != linhas[i].cells[2].innerText){ | |
1538 | + tamanhoVerificar = tamanho/1024/1024; | |
1539 | + tamanhoVerificar = parseFloat(tamanhoVerificar.toFixed(2)); | |
1540 | + }else{ | |
1541 | + tamanhoInserido=0; | |
1542 | + } | |
1543 | + } | |
1544 | + if (tamanhoVerificar==tamanhoInserido){ | |
1545 | + alert('Arquivo já inserido'); | |
1546 | + return false; | |
1547 | + } | |
1548 | + */ | |
1549 | + alert('Arquivo já inserido'); | |
1550 | + return false; | |
1551 | + } | |
1552 | + } | |
1553 | + | |
1455 | 1554 | //concatenacao de "Tipo" e "Complemento" |
1456 | 1555 | var cbTpoComplementar = document.getElementById('tipoDocumentoComplementar'); |
1457 | 1556 | var strComplemento = document.getElementById('complementoComplementar').value; |
... | ... | @@ -1765,7 +1864,7 @@ function adicionarInteressadoValido(){ |
1765 | 1864 | } |
1766 | 1865 | |
1767 | 1866 | //adicionar o interessado na grid |
1768 | - var arrDadosInteressadoValido = array(); | |
1867 | + var arrDadosInteressadoValido = []; | |
1769 | 1868 | var bolInteressadoCustomizado = false; |
1770 | 1869 | receberInteressado( arrDadosInteressadoValido , bolInteressadoCustomizado ); |
1771 | 1870 | ... | ... |
sei/institucional/peticionamento/recibo_peticionamento_usuario_externo_consulta.php
... | ... | @@ -150,9 +150,10 @@ try { |
150 | 150 | $protocoloDTO->setDblIdProtocolo($objReciboPeticionamentoDTO->getNumIdProtocolo()); |
151 | 151 | $protocoloDTO = $protocoloRN->consultarRN0186($protocoloDTO); |
152 | 152 | |
153 | - //obter interessados | |
153 | + //obter interessados (do tipo interessado, nao os do tipo rementente) | |
154 | 154 | $objParticipanteDTO = new ParticipanteDTO(); |
155 | 155 | $objParticipanteDTO->setDblIdProtocolo($objReciboPeticionamentoDTO->getNumIdProtocolo()); |
156 | + $objParticipanteDTO->setStrStaParticipacao( ParticipanteRN::$TP_INTERESSADO ); | |
156 | 157 | $objParticipanteDTO->retNumIdContato(); |
157 | 158 | $objParticipanteRN = new ParticipanteRN(); |
158 | 159 | $arrObjParticipanteDTO = $objParticipanteRN->listarRN0189($objParticipanteDTO); |
... | ... | @@ -166,12 +167,11 @@ try { |
166 | 167 | } |
167 | 168 | |
168 | 169 | //obtendo descricao do orgao para o rodape do recibo |
169 | - $idOrgao = $protocoloDTO->retNumIdOrgaoUnidadeGeradora(); | |
170 | - $OrgaoDTO = new OrgaoDTO(); | |
171 | - $orgaoRN = new OrgaoRN(); | |
172 | - $OrgaoDTO->retTodos(); | |
173 | - $OrgaoDTO->setNumIdOrgao( $protocoloDTO->getNumIdOrgaoUnidadeGeradora() ); | |
174 | - $OrgaoDTO = $orgaoRN->consultarRN1352( $OrgaoDTO ); | |
170 | + $OrgaoRN = new OrgaoRN(); | |
171 | + $OrgaoDTO = new OrgaoDTO(); | |
172 | + $OrgaoDTO->retTodos(); | |
173 | + $OrgaoDTO->setNumIdOrgao( $protocoloDTO->getNumIdOrgaoUnidadeGeradora() ); | |
174 | + $OrgaoDTO = $OrgaoRN->consultarRN1352( $OrgaoDTO ); | |
175 | 175 | |
176 | 176 | } catch (Exception $e) { |
177 | 177 | PaginaSEIExterna::getInstance()->processarExcecao($e); |
... | ... | @@ -191,14 +191,14 @@ try { |
191 | 191 | function imprimir() { |
192 | 192 | document.getElementById('btnFechar').style.display = 'none'; |
193 | 193 | document.getElementById('btnImprimir').style.display = 'none'; |
194 | - // Botão SALVAR EM PDF desativado temporariamente até resolver a falta de tratamento HTML | |
194 | + // Botão SALVAR EM PDF desativado temporariamente até resolver a falta de tratamento HTML | |
195 | 195 | // document.getElementById('btnSalvarPDF').style.display = 'none'; |
196 | 196 | infraImprimirDiv('divInfraAreaTelaD'); |
197 | 197 | |
198 | 198 | self.setTimeout(function () { |
199 | 199 | document.getElementById('btnFechar').style.display = ''; |
200 | 200 | document.getElementById('btnImprimir').style.display = ''; |
201 | - // Botão SALVAR EM PDF desativado temporariamente até resolver a falta de tratamento HTML | |
201 | + // Botão SALVAR EM PDF desativado temporariamente até resolver a falta de tratamento HTML | |
202 | 202 | // document.getElementById('btnSalvarPDF').style.display = ''; |
203 | 203 | }, 1000); |
204 | 204 | } |
... | ... | @@ -293,11 +293,11 @@ try { |
293 | 293 | |
294 | 294 | <?php if ($arrInteressados != null && is_array($arrInteressados) && count($arrInteressados) > 0) : ?> |
295 | 295 | <tr> |
296 | - <td style="font-weight: bold;"colspan="2">Interessados:</td> | |
296 | + <td style="font-weight: bold;" colspan="2">Interessados:</td> | |
297 | 297 | </tr> |
298 | 298 | <?php foreach ($arrInteressados as $interessado) : ?> |
299 | 299 | <tr> |
300 | - <td colspan="2">    <?= $interessado->getStrNome() ?> </td> | |
300 | + <td colspan="2">    <?= $interessado->getStrNome() ?></td> | |
301 | 301 | </tr> |
302 | 302 | <?php endforeach; ?> |
303 | 303 | <?php endif; ?> |
... | ... | @@ -377,7 +377,7 @@ try { |
377 | 377 | <br/> |
378 | 378 | |
379 | 379 | <label id=divRodape> |
380 | - <p>O Usuário Externo acima identificado foi previamente avisado que o peticionamento importa na aceitação dos termos e condições que regem o processo eletrônico, além do disposto no credenciamento prévio, e na assinatura dos documentos nato-digitais e declaração de que são autênticos os digitalizados, sendo responsável civil, penal e administrativamente pelo uso indevido. Ainda, foi avisado que os níveis de acesso indicados para os documentos estariam condicionados à análise por servidor público, que poderá, motivadamente, alterá-los a qualquer momento sem necessidade de prévio aviso, e de que são de sua exclusiva responsabilidade:</p><ul><li>a conformidade entre os dados informados e os documentos;</li><li>a conservação dos originais em papel de documentos digitalizados até que decaia o direito de revisão dos atos praticados no processo, para que, caso solicitado, sejam apresentados para qualquer tipo de conferência;</li><li>a realização por meio eletrônico de todos os atos e comunicações processuais com o próprio Usuário Externo ou, por seu intermédio, com a entidade porventura representada;</li><li>a observância de que os atos processuais se consideram realizados no dia e hora do recebimento pelo SEI, considerando-se tempestivos os praticados até as 23h59min59s do último dia do prazo, considerado sempre o horário oficial de Brasília, independente do fuso horário em que se encontre;</li><li>a consulta periódica ao SEI, a fim de verificar o recebimento de intimações eletrônicas.</li></ul>A existência deste Recibo, do processo e dos documentos acima indicados pode ser conferida no Portal na Internet do(a) <?= htmlentities( $OrgaoDTO->getStrDescricao() ); ?>. | |
380 | + <p>O Usuário Externo acima identificado foi previamente avisado que o peticionamento importa na aceitação dos termos e condições que regem o processo eletrônico, além do disposto no credenciamento prévio, e na assinatura dos documentos nato-digitais e declaração de que são autênticos os digitalizados, sendo responsável civil, penal e administrativamente pelo uso indevido. Ainda, foi avisado que os níveis de acesso indicados para os documentos estariam condicionados à análise por servidor público, que poderá, motivadamente, alterá-los a qualquer momento sem necessidade de prévio aviso, e de que são de sua exclusiva responsabilidade:</p><ul><li>a conformidade entre os dados informados e os documentos;</li><li>a conservação dos originais em papel de documentos digitalizados até que decaia o direito de revisão dos atos praticados no processo, para que, caso solicitado, sejam apresentados para qualquer tipo de conferência;</li><li>a realização por meio eletrônico de todos os atos e comunicações processuais com o próprio Usuário Externo ou, por seu intermédio, com a entidade porventura representada;</li><li>a observância de que os atos processuais se consideram realizados no dia e hora do recebimento pelo SEI, considerando-se tempestivos os praticados até as 23h59min59s do último dia do prazo, considerado sempre o horário oficial de Brasília, independente do fuso horário em que se encontre;</li><li>a consulta periódica ao SEI, a fim de verificar o recebimento de intimações eletrônicas.</li></ul>A existência deste Recibo, do processo e dos documentos acima indicados pode ser conferida no Portal na Internet do(a) <?= $OrgaoDTO->getStrDescricao() ?>. | |
381 | 381 | </label> |
382 | 382 | |
383 | 383 | </div> | ... | ... |
sei/institucional/peticionamento/rn/AtualizadorModuloPeticionamentoRN.php
... | ... | @@ -313,7 +313,7 @@ class AtualizadorModuloPeticionamentoRN extends InfraRN { |
313 | 313 | |
314 | 314 | O Usuário Externo @nome_usuario_externo@ (@email_usuario_externo@) efetivou o Peticionamento Eletrônico do tipo @tipo_peticionamento@, no âmbito do processo nº @processo@, conforme disposto no Recibo Eletrônico de Protocolo SEI nº @documento_recibo_eletronico_de_protocolo@. |
315 | 315 | |
316 | -O mencionado processo se encontra aberto em sua unidade (@sigla_unidades_abertura_do_processo@). Entre no SEI e confira! Caso não seja de competência de sua Unidade, verifique se já está aberto na Unidade correta e, do contrário, envie-o para a Unidade competente para que seja devidamente tratado. | |
316 | +O mencionado processo se encontra aberto em sua unidade (@sigla_unidade_abertura_do_processo@). Entre no SEI e confira! Caso não seja de competência de sua Unidade, verifique se já está aberto na Unidade correta e, do contrário, envie-o para a Unidade competente para que seja devidamente tratado. | |
317 | 317 | |
318 | 318 | |
319 | 319 | @sigla_orgao@ | ... | ... |
sei/institucional/peticionamento/rn/GerirTipoContextoPeticionamentoRN.php
... | ... | @@ -17,8 +17,7 @@ class GerirTipoContextoPeticionamentoRN extends InfraRN { |
17 | 17 | protected function inicializarObjInfraIBanco() { |
18 | 18 | return BancoSEI::getInstance (); |
19 | 19 | } |
20 | - | |
21 | - | |
20 | + | |
22 | 21 | /** |
23 | 22 | * Short description of method excluirControlado |
24 | 23 | * |
... | ... | @@ -67,8 +66,7 @@ class GerirTipoContextoPeticionamentoRN extends InfraRN { |
67 | 66 | throw new InfraException ('Erro listando Tipo de Interessado.', $e); |
68 | 67 | } |
69 | 68 | } |
70 | - | |
71 | - | |
69 | + | |
72 | 70 | /** |
73 | 71 | * Short description of method consultarConectado |
74 | 72 | * | ... | ... |
sei/institucional/peticionamento/rn/ProcessoPeticionamentoRN.php
... | ... | @@ -120,11 +120,19 @@ class ProcessoPeticionamentoRN extends InfraRN { |
120 | 120 | $arrParticipantesParametro = array(); |
121 | 121 | |
122 | 122 | if( $objTipoProcDTO->getStrSinIIProprioUsuarioExterno() == 'S' ){ |
123 | - $arrParametros['hdnListaInteressados'] = SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno(); | |
123 | + | |
124 | + $contatoDTOUsuarioLogado = $this->getContatoDTOUsuarioLogado(); | |
125 | + $arrParametros['hdnListaInteressados'] = $contatoDTOUsuarioLogado->getNumIdContato(); | |
126 | + $idsContatos = array(); | |
127 | + $idsContatos[] = $arrParametros['hdnListaInteressados']; | |
128 | + $arrParticipantesParametro = $this->atribuirParticipantes($objProtocoloDTO, $this->montarArrContatosInteressados( $idsContatos ) ); | |
129 | + //$arrParametros['hdnListaInteressados'] = SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno(); | |
124 | 130 | } |
125 | 131 | |
126 | 132 | //verificar se esta vindo o array de participantes |
127 | - if( isset( $arrParametros['hdnListaInteressados'] ) && $arrParametros['hdnListaInteressados'] != "" ){ | |
133 | + if( $objTipoProcDTO->getStrSinIIProprioUsuarioExterno() == 'N' && | |
134 | + isset( $arrParametros['hdnListaInteressados'] ) && | |
135 | + $arrParametros['hdnListaInteressados'] != "" ){ | |
128 | 136 | |
129 | 137 | $arrContatosInteressados = array(); |
130 | 138 | |
... | ... | @@ -137,9 +145,6 @@ class ProcessoPeticionamentoRN extends InfraRN { |
137 | 145 | |
138 | 146 | $arrParticipantesParametro = $this->atribuirParticipantes($objProtocoloDTO, $this->montarArrContatosInteressados( $idsContatos ) ); |
139 | 147 | |
140 | - } else { | |
141 | - | |
142 | - $this->atribuirParticipantes($objProtocoloDTO, array() ); | |
143 | 148 | } |
144 | 149 | |
145 | 150 | $objProtocoloDTO->setArrObjObservacaoDTO( array() ); |
... | ... | @@ -173,8 +178,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
173 | 178 | |
174 | 179 | //$reciboDTOBasico = null; |
175 | 180 | $reciboDTOBasico = $reciboPeticionamentoRN->gerarReciboSimplificado( $objProcedimentoDTO->getDblIdProcedimento() ); |
176 | - //print_r( $reciboDTOBasico ); die(); | |
177 | - | |
181 | + | |
178 | 182 | $this->montarArrDocumentos( $arrParametros, $objUnidadeDTO, $objProcedimentoDTO, $arrParticipantesParametro, $reciboDTOBasico ); |
179 | 183 | |
180 | 184 | //$this->enviarProcedimentoUnidade($objProcedimentoDTO); |
... | ... | @@ -403,19 +407,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
403 | 407 | $arrObjParticipantesDTO = array(); |
404 | 408 | |
405 | 409 | //o proprio usuario externo logado é remetente do documento |
406 | - $usuarioRN = new UsuarioRN(); | |
407 | - $usuarioDTO = new UsuarioDTO(); | |
408 | - $usuarioDTO->retNumIdUsuario(); | |
409 | - $usuarioDTO->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); | |
410 | - $usuarioDTO->retNumIdContato(); | |
411 | - $usuarioDTO->retStrNomeContato(); | |
412 | - $usuarioDTO = $usuarioRN->consultarRN0489( $usuarioDTO ); | |
413 | - | |
414 | - $contatoRN = new ContatoRN(); | |
415 | - $contatoDTO = new ContatoDTO(); | |
416 | - $contatoDTO->retTodos(); | |
417 | - $contatoDTO->setNumIdContato( $usuarioDTO->getNumIdContato() ); | |
418 | - $contatoDTO = $contatoRN->consultarRN0324( $contatoDTO ); | |
410 | + $contatoDTO = $this->getContatoDTOUsuarioLogado(); | |
419 | 411 | |
420 | 412 | $remetenteDTO = new ParticipanteDTO(); |
421 | 413 | $remetenteRN = new ParticipanteRN(); |
... | ... | @@ -425,7 +417,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
425 | 417 | $remetenteDTO->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); |
426 | 418 | $remetenteDTO->setNumSequencia(0); |
427 | 419 | |
428 | - $arrObjParticipantesDTO = array(); | |
420 | + $arrObjParticipantesDTO = $arrParticipantesParametro; | |
429 | 421 | $arrObjParticipantesDTO[] = $remetenteDTO; |
430 | 422 | |
431 | 423 | $objProtocoloDTO->setArrObjParticipanteDTO($arrObjParticipantesDTO); |
... | ... | @@ -580,19 +572,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
580 | 572 | $arrObjParticipantesDTO = array(); |
581 | 573 | |
582 | 574 | //o proprio usuario externo logado é remetente do documento |
583 | - $usuarioRN = new UsuarioRN(); | |
584 | - $usuarioDTO = new UsuarioDTO(); | |
585 | - $usuarioDTO->retNumIdUsuario(); | |
586 | - $usuarioDTO->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); | |
587 | - $usuarioDTO->retNumIdContato(); | |
588 | - $usuarioDTO->retStrNomeContato(); | |
589 | - $usuarioDTO = $usuarioRN->consultarRN0489( $usuarioDTO ); | |
590 | - | |
591 | - $contatoRN = new ContatoRN(); | |
592 | - $contatoDTO = new ContatoDTO(); | |
593 | - $contatoDTO->retTodos(); | |
594 | - $contatoDTO->setNumIdContato( $usuarioDTO->getNumIdContato() ); | |
595 | - $contatoDTO = $contatoRN->consultarRN0324( $contatoDTO ); | |
575 | + $contatoDTO = $this->getContatoDTOUsuarioLogado(); | |
596 | 576 | |
597 | 577 | $remetenteDTO = new ParticipanteDTO(); |
598 | 578 | $remetenteRN = new ParticipanteRN(); |
... | ... | @@ -602,7 +582,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
602 | 582 | $remetenteDTO->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); |
603 | 583 | $remetenteDTO->setNumSequencia(0); |
604 | 584 | |
605 | - $arrObjParticipantesDTO = array(); | |
585 | + $arrObjParticipantesDTO = $arrParticipantesParametro; | |
606 | 586 | $arrObjParticipantesDTO[] = $remetenteDTO; |
607 | 587 | |
608 | 588 | $objProtocoloDTO->setArrObjParticipanteDTO($arrObjParticipantesDTO); |
... | ... | @@ -751,19 +731,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
751 | 731 | $arrObjParticipantesDTO = array(); |
752 | 732 | |
753 | 733 | //o proprio usuario externo logado é remetente do documento |
754 | - $usuarioRN = new UsuarioRN(); | |
755 | - $usuarioDTO = new UsuarioDTO(); | |
756 | - $usuarioDTO->retNumIdUsuario(); | |
757 | - $usuarioDTO->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); | |
758 | - $usuarioDTO->retNumIdContato(); | |
759 | - $usuarioDTO->retStrNomeContato(); | |
760 | - $usuarioDTO = $usuarioRN->consultarRN0489( $usuarioDTO ); | |
761 | - | |
762 | - $contatoRN = new ContatoRN(); | |
763 | - $contatoDTO = new ContatoDTO(); | |
764 | - $contatoDTO->retTodos(); | |
765 | - $contatoDTO->setNumIdContato( $usuarioDTO->getNumIdContato() ); | |
766 | - $contatoDTO = $contatoRN->consultarRN0324( $contatoDTO ); | |
734 | + $contatoDTO = $this->getContatoDTOUsuarioLogado(); | |
767 | 735 | |
768 | 736 | $remetenteDTO = new ParticipanteDTO(); |
769 | 737 | $remetenteRN = new ParticipanteRN(); |
... | ... | @@ -773,7 +741,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
773 | 741 | $remetenteDTO->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); |
774 | 742 | $remetenteDTO->setNumSequencia(0); |
775 | 743 | |
776 | - $arrObjParticipantesDTO = array(); | |
744 | + $arrObjParticipantesDTO = $arrParticipantesParametro; | |
777 | 745 | $arrObjParticipantesDTO[] = $remetenteDTO; |
778 | 746 | |
779 | 747 | $objProtocoloDTO->setArrObjParticipanteDTO($arrObjParticipantesDTO); |
... | ... | @@ -869,7 +837,8 @@ class ProcessoPeticionamentoRN extends InfraRN { |
869 | 837 | $objUnidadeDTO, |
870 | 838 | $arrParticipantesParametro, |
871 | 839 | $arrParametros ){ |
872 | - | |
840 | + | |
841 | + //print_r( $arrParticipantesParametro ); die; | |
873 | 842 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
874 | 843 | $numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); |
875 | 844 | |
... | ... | @@ -915,19 +884,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
915 | 884 | $arrObjParticipantesDTO = array(); |
916 | 885 | |
917 | 886 | //o proprio usuario externo logado é remetente do documento |
918 | - $usuarioRN = new UsuarioRN(); | |
919 | - $usuarioDTO = new UsuarioDTO(); | |
920 | - $usuarioDTO->retNumIdUsuario(); | |
921 | - $usuarioDTO->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); | |
922 | - $usuarioDTO->retNumIdContato(); | |
923 | - $usuarioDTO->retStrNomeContato(); | |
924 | - $usuarioDTO = $usuarioRN->consultarRN0489( $usuarioDTO ); | |
925 | - | |
926 | - $contatoRN = new ContatoRN(); | |
927 | - $contatoDTO = new ContatoDTO(); | |
928 | - $contatoDTO->retTodos(); | |
929 | - $contatoDTO->setNumIdContato( $usuarioDTO->getNumIdContato() ); | |
930 | - $contatoDTO = $contatoRN->consultarRN0324( $contatoDTO ); | |
887 | + $contatoDTO = $this->getContatoDTOUsuarioLogado(); | |
931 | 888 | |
932 | 889 | $remetenteDTO = new ParticipanteDTO(); |
933 | 890 | $remetenteRN = new ParticipanteRN(); |
... | ... | @@ -939,8 +896,10 @@ class ProcessoPeticionamentoRN extends InfraRN { |
939 | 896 | |
940 | 897 | $arrObjParticipantesDTO = array(); |
941 | 898 | $arrObjParticipantesDTO[] = $remetenteDTO; |
899 | + $arrParticipantesParametro[] = $remetenteDTO; | |
942 | 900 | |
943 | - $protocoloPrincipalDocumentoDTO->setArrObjParticipanteDTO($arrObjParticipantesDTO); | |
901 | + //$protocoloPrincipalDocumentoDTO->setArrObjParticipanteDTO($arrObjParticipantesDTO); | |
902 | + $protocoloPrincipalDocumentoDTO->setArrObjParticipanteDTO( $arrParticipantesParametro ); | |
944 | 903 | |
945 | 904 | //========================== |
946 | 905 | //ATRIBUTOS |
... | ... | @@ -1422,7 +1381,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
1422 | 1381 | //se vier em Mb compara o tamanho, se vier em Kb é porque é menor do que 1Mb e portanto deixar passar (nao havera limite inferior a 1Mb) |
1423 | 1382 | if (strpos( $tamanhoDoAnexo , 'Mb') !== false) { |
1424 | 1383 | |
1425 | - $tamanhoDoAnexo = str_replace("Mb","", $tamanhoDoAnexo ); | |
1384 | + $tamanhoDoAnexo = str_replace(" Mb","", $tamanhoDoAnexo ); | |
1426 | 1385 | |
1427 | 1386 | //validando tamanho máximo do arquivo |
1428 | 1387 | if( floatval($tamanhoDoAnexo) > floatval($numTamanhoArquivoPermitido) ){ |
... | ... | @@ -1431,16 +1390,24 @@ class ProcessoPeticionamentoRN extends InfraRN { |
1431 | 1390 | $objInfraException->adicionarValidacao('Um dos documentos ' . $strAreaDocumento . ' adicionados excedeu o tamanho máximo permitido (Limite: ' . $numTamanhoArquivoPermitido . ' Mb).'); |
1432 | 1391 | $objInfraException->lancarValidacoes(); |
1433 | 1392 | |
1393 | + } else { | |
1394 | + | |
1395 | + $tamanhoDoAnexo = floatval( ( $tamanhoDoAnexo*1024 ) * 1024 ); | |
1434 | 1396 | } |
1435 | 1397 | |
1398 | + } else { | |
1399 | + | |
1400 | + $tamanhoDoAnexo = str_replace(" Kb","", $tamanhoDoAnexo ); | |
1401 | + $tamanhoDoAnexo = floatval($tamanhoDoAnexo*1024); | |
1436 | 1402 | } |
1437 | - | |
1403 | + | |
1404 | + //echo $tamanhoDoAnexo; die; | |
1438 | 1405 | $objAnexoDTO = new AnexoDTO(); |
1439 | 1406 | $objAnexoDTO->setNumIdAnexo( null ); |
1440 | 1407 | $objAnexoDTO->setStrSinAtivo('S'); |
1441 | 1408 | $objAnexoDTO->setStrNome($anexo[8]); |
1442 | 1409 | $objAnexoDTO->setDthInclusao($anexo[1]); |
1443 | - $objAnexoDTO->setNumTamanho($anexo[2] ); | |
1410 | + $objAnexoDTO->setNumTamanho( $tamanhoDoAnexo ); | |
1444 | 1411 | $objAnexoDTO->setStrSiglaUsuario( $strSiglaUsuario ); |
1445 | 1412 | $objAnexoDTO->setStrSiglaUnidade( $idUnidade ); |
1446 | 1413 | $objAnexoDTO->setNumIdUsuario(SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno()); |
... | ... | @@ -1449,5 +1416,24 @@ class ProcessoPeticionamentoRN extends InfraRN { |
1449 | 1416 | |
1450 | 1417 | return $arrObjAnexoDTO; |
1451 | 1418 | } |
1419 | + | |
1420 | + private function getContatoDTOUsuarioLogado(){ | |
1421 | + | |
1422 | + $usuarioRN = new UsuarioRN(); | |
1423 | + $usuarioDTO = new UsuarioDTO(); | |
1424 | + $usuarioDTO->retNumIdUsuario(); | |
1425 | + $usuarioDTO->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); | |
1426 | + $usuarioDTO->retNumIdContato(); | |
1427 | + $usuarioDTO->retStrNomeContato(); | |
1428 | + $usuarioDTO = $usuarioRN->consultarRN0489( $usuarioDTO ); | |
1429 | + | |
1430 | + $contatoRN = new ContatoRN(); | |
1431 | + $contatoDTO = new ContatoDTO(); | |
1432 | + $contatoDTO->retTodos(); | |
1433 | + $contatoDTO->setNumIdContato( $usuarioDTO->getNumIdContato() ); | |
1434 | + $contatoDTO = $contatoRN->consultarRN0324( $contatoDTO ); | |
1435 | + | |
1436 | + return $contatoDTO; | |
1437 | + } | |
1452 | 1438 | } |
1453 | 1439 | ?> |
1454 | 1440 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/rn/ReciboPeticionamentoRN.php
... | ... | @@ -325,12 +325,13 @@ class ReciboPeticionamentoRN extends InfraRN { |
325 | 325 | $html .= '<td>' . $objProcedimentoDTO->getStrProtocoloProcedimentoFormatado() . '</td>'; |
326 | 326 | $html .= '</tr>'; |
327 | 327 | |
328 | - //obter interessados | |
328 | + //obter interessados (apenas os do tipo interessado, nao os do tipo remetente) | |
329 | 329 | $arrInteressados = array(); |
330 | 330 | $objParticipanteDTO = new ParticipanteDTO(); |
331 | 331 | $objParticipanteDTO->setDblIdProtocolo( $reciboDTO->getNumIdProtocolo() ); |
332 | + $objParticipanteDTO->setStrStaParticipacao( ParticipanteRN::$TP_INTERESSADO ); | |
332 | 333 | $objParticipanteDTO->retNumIdContato(); |
333 | - $objParticipanteRN = new ParticipanteRN(); | |
334 | + $objParticipanteRN = new ParticipanteRN(); | |
334 | 335 | $arrObjParticipanteDTO = $objParticipanteRN->listarRN0189($objParticipanteDTO); |
335 | 336 | |
336 | 337 | foreach ($arrObjParticipanteDTO as $objParticipanteDTO) { | ... | ... |