Commit ec48254bbb3d7ddc47e3a019b4d25ad0b6e51e0a
1 parent
7ecc18e4
Exists in
master
and in
1 other branch
Atualização dos códigos do módulo, ainda pré versão 1.0.0.
Showing
37 changed files
with
1671 additions
and
824 deletions
Show diff stats
sei/institucional/peticionamento/PeticionamentoControladorExterno.php
... | ... | @@ -100,6 +100,17 @@ |
100 | 100 | require_once dirname ( __FILE__ ) . '/editor_peticionamento_processar.php'; |
101 | 101 | return true; |
102 | 102 | |
103 | + case 'validar_documento_principal': | |
104 | + | |
105 | + $conteudo = ""; | |
106 | + | |
107 | + if( SessaoSEIExterna::getInstance()->isSetAtributo('docPrincipalConteudoHTML') ){ | |
108 | + $conteudo = SessaoSEIExterna::getInstance()->getAtributo('docPrincipalConteudoHTML'); | |
109 | + } | |
110 | + | |
111 | + echo $conteudo; | |
112 | + return true; | |
113 | + | |
103 | 114 | case 'contato_cpf_cnpj': |
104 | 115 | |
105 | 116 | $objContatoDTO = ContatoPeticionamentoINT::getContatoByCPFCNPJ( $_POST['cpfcnpj'] ); | ... | ... |
sei/institucional/peticionamento/PeticionamentoIntegracao.php
... | ... | @@ -25,7 +25,10 @@ class PeticionamentoIntegracao extends SeiIntegracao { |
25 | 25 | //utilizado para ordenação |
26 | 26 | $urlBase = ConfiguracaoSEI::getInstance()->getValor('SEI','URL'); |
27 | 27 | $arrMenusNomes = array(); |
28 | - $arrMenusNomes["Peticionar Processo Inicio"] = $urlBase .'/controlador_externo.php?acao=peticionamento_usuario_externo_iniciar'; | |
28 | + | |
29 | + //$arrMenusNomes["Peticionar Processo Inicio"] = $urlBase .'/controlador_externo.php?acao=peticionamento_usuario_externo_iniciar'; | |
30 | + $arrMenusNomes["Peticionamento"] = $urlBase .'/controlador_externo.php?acao=peticionamento_usuario_externo_iniciar'; | |
31 | + | |
29 | 32 | $arrMenusNomes["Recibos Eletrônicos de Protocolo"] = $urlBase .'/controlador_externo.php?acao=recibo_peticionamento_usuario_externo_listar'; |
30 | 33 | |
31 | 34 | if( is_array( $objLista ) && $numRegistros > 0 ){ |
... | ... | @@ -63,10 +66,16 @@ class PeticionamentoIntegracao extends SeiIntegracao { |
63 | 66 | foreach ( $arrMenusNomes as $key => $value) { |
64 | 67 | $urlLink = $arrMenusNomes[ $key ]; |
65 | 68 | $nomeMenu = $key; |
66 | - $arrLink[] = '-^' . $urlLink .'^^' . $nomeMenu .'^'; | |
69 | + if($nomeMenu=='Peticionamento'){ | |
70 | + $arrLink[] = '-^^^' . $nomeMenu .'^'; | |
71 | + $arrLink[] = '--^' . $urlLink .'^^' . 'Processo Novo' .'^'; | |
72 | + }else{ | |
73 | + $arrLink[] = '-^' . $urlLink .'^^' . $nomeMenu .'^'; | |
74 | + } | |
75 | + | |
67 | 76 | } |
68 | 77 | } |
69 | - | |
78 | + | |
70 | 79 | return $arrLink; |
71 | 80 | } |
72 | 81 | } | ... | ... |
sei/institucional/peticionamento/controlador_ajax_externo.php
... | ... | @@ -15,7 +15,6 @@ try{ |
15 | 15 | switch($_GET['acao_ajax_externo']){ |
16 | 16 | |
17 | 17 | case 'contato_auto_completar_contexto_pesquisa': |
18 | - | |
19 | 18 | //alterado para atender anatel exibir apenas nome contato |
20 | 19 | $objContatoDTO = new ContatoDTO(); |
21 | 20 | $objContatoDTO->retNumIdContato(); |
... | ... | @@ -33,7 +32,25 @@ try{ |
33 | 32 | $objContatoDTO->setStrSinContexto('S'); |
34 | 33 | $objContatoDTO->setNumMaxRegistrosRetorno(50); |
35 | 34 | $objContatoDTO->setOrdStrNome(InfraDTO::$TIPO_ORDENACAO_ASC); |
36 | - | |
35 | + | |
36 | + $objRelTipoContextoPeticionamentoDTO = new RelTipoContextoPeticionamentoDTO(); | |
37 | + $objRelTipoContextoPeticionamentoRN = new GerirTipoContextoPeticionamentoRN(); | |
38 | + $objRelTipoContextoPeticionamentoDTO->retTodos(); | |
39 | + $objRelTipoContextoPeticionamentoDTO->setStrSinSelecaoInteressado('S'); | |
40 | + $arrobjRelTipoContextoPeticionamentoDTO = $objRelTipoContextoPeticionamentoRN->listar( $objRelTipoContextoPeticionamentoDTO ); | |
41 | + if(!empty($arrobjRelTipoContextoPeticionamentoDTO)){ | |
42 | + $arrId = array(); | |
43 | + foreach($arrobjRelTipoContextoPeticionamentoDTO as $item){ | |
44 | + array_push($arrId, $item->getNumIdTipoContextoContato()); | |
45 | + } | |
46 | + $objContatoDTO->adicionarCriterio(array('IdTipoContextoContato'), | |
47 | + array(InfraDTO::$OPER_IN), | |
48 | + array($arrId)); | |
49 | + } | |
50 | + | |
51 | + $objContatoRN = new ContatoRN(); | |
52 | + $arrObjContatoDTO = $objContatoRN->pesquisarRN0471($objContatoDTO); | |
53 | + | |
37 | 54 | $objContatoRN = new ContatoRN(); |
38 | 55 | //$arrObjContatoDTO = $objContatoRN->listarRN0325($objContatoDTO); |
39 | 56 | $arrObjContatoDTO = $objContatoRN->pesquisarRN0471($objContatoDTO); | ... | ... |
sei/institucional/peticionamento/dto/MenuPeticionamentoUsuarioExternoDTO.php
... | ... | @@ -19,7 +19,11 @@ class MenuPeticionamentoUsuarioExternoDTO extends InfraDTO { |
19 | 19 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, |
20 | 20 | 'IdMenuPeticionamentoUsuarioExterno', |
21 | 21 | 'id_md_pet_usu_externo_menu'); |
22 | - | |
22 | + | |
23 | + $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, | |
24 | + 'IdConjuntoEstilos', | |
25 | + 'id_conjunto_estilos'); | |
26 | + | |
23 | 27 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, |
24 | 28 | 'Nome', |
25 | 29 | 'nome'); | ... | ... |
sei/institucional/peticionamento/dto/ReciboDocumentoAnexoPeticionamentoDTO.php
... | ... | @@ -36,10 +36,19 @@ class ReciboDocumentoAnexoPeticionamentoDTO extends InfraDTO { |
36 | 36 | 'ClassificacaoDocumento', |
37 | 37 | 'classificacao_documento'); |
38 | 38 | |
39 | + $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, | |
40 | + 'FormatoDocumento', | |
41 | + 'formato_documento'); | |
42 | + | |
39 | 43 | $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, |
40 | 44 | 'IdSerie', |
41 | 45 | 'doc.id_serie', |
42 | 46 | 'documento doc'); |
47 | + | |
48 | + $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, | |
49 | + 'NumeroDocumento', | |
50 | + 'doc.numero', | |
51 | + 'documento doc'); | |
43 | 52 | |
44 | 53 | $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, |
45 | 54 | 'NomeSerie', | ... | ... |
sei/institucional/peticionamento/dto/ReciboPeticionamentoDTO.php
... | ... | @@ -14,6 +14,17 @@ class ReciboPeticionamentoDTO extends InfraDTO { |
14 | 14 | return 'md_pet_rel_recibo_protoc'; |
15 | 15 | } |
16 | 16 | |
17 | + public function getStrStaTipoPeticionamentoFormatado(){ | |
18 | + | |
19 | + if( $this->isSetStrStaTipoPeticionamento() && $this->getStrStaTipoPeticionamento() == "N" ){ | |
20 | + return "Processo Novo"; | |
21 | + } else if( $this->isSetStrStaTipoPeticionamento() && $this->getStrStaTipoPeticionamento() == "I" ){ | |
22 | + return "Intercorrente"; | |
23 | + } else { | |
24 | + return ""; | |
25 | + } | |
26 | + } | |
27 | + | |
17 | 28 | public function montar() { |
18 | 29 | |
19 | 30 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, |
... | ... | @@ -41,8 +52,8 @@ class ReciboPeticionamentoDTO extends InfraDTO { |
41 | 52 | 'sin_ativo'); |
42 | 53 | |
43 | 54 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, |
44 | - 'TipoPeticionamento', | |
45 | - 'tipo_peticionamento'); | |
55 | + 'StaTipoPeticionamento', | |
56 | + 'sta_tipo_peticionamento'); | |
46 | 57 | |
47 | 58 | $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, |
48 | 59 | 'NomeTipoPeticionamento', | ... | ... |
sei/institucional/peticionamento/dto/TipoProcessoOrientacoesPeticionamentoDTO.php
... | ... | @@ -25,6 +25,10 @@ class TipoProcessoOrientacoesPeticionamentoDTO extends InfraDTO { |
25 | 25 | 'OrientacoesGerais', |
26 | 26 | 'orientacoes_gerais'); |
27 | 27 | |
28 | + $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, | |
29 | + 'IdConjuntoEstilos', | |
30 | + 'id_conjunto_estilos'); | |
31 | + | |
28 | 32 | $this->configurarPK('IdTipoProcessoOrientacoesPeticionamento', InfraDTO::$TIPO_PK_INFORMADO); |
29 | 33 | |
30 | 34 | }} | ... | ... |
sei/institucional/peticionamento/dto/TipoProcessoPeticionamentoDTO.php
... | ... | @@ -89,6 +89,7 @@ class TipoProcessoPeticionamentoDTO extends InfraDTO { |
89 | 89 | |
90 | 90 | $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'NomeProcesso', 'tipo.nome', 'tipo_procedimento tipo'); |
91 | 91 | $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'NomeHipoteseLegal', 'hl.nome', 'hipotese_legal hl'); |
92 | + $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'BaseLegalHipoteseLegal', 'hl.base_legal', 'hipotese_legal hl'); | |
92 | 93 | $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'NomeSerie', 's.nome', 'serie s'); |
93 | 94 | |
94 | 95 | $this->configurarPK('IdTipoProcessoPeticionamento',InfraDTO::$TIPO_PK_NATIVA); | ... | ... |
sei/institucional/peticionamento/gerir_extensoes_arquivo_peticionamento_cadastro.php
... | ... | @@ -67,8 +67,8 @@ $strSelExtensoesComp = GerirExtensoesArquivoPeticionamentoINT::montarSelectExten |
67 | 67 | |
68 | 68 | $strTitulo = "Peticionamento - Extensões de Arquivos Permitidas"; |
69 | 69 | |
70 | -$arrComandos[] = '<button type="submit" accesskey="S" name="sbmCadastrarGrupoUnidade" value="Salvar" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar</button>'; | |
71 | -$arrComandos[] = '<button type="button" accesskey="C" name="btnFechar" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSei::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'])).'\';" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
70 | +$arrComandos[] = '<button type="submit" accesskey="s" name="sbmCadastrarGrupoUnidade" value="Salvar" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar</button>'; | |
71 | +$arrComandos[] = '<button type="button" accesskey="c" name="btnFechar" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSei::getInstance()->assinarLink('controlador.php?acao=procedimento_controlar&acao_origem='.$_GET['acao'])).'\';" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
72 | 72 | |
73 | 73 | PaginaSEI::getInstance()->montarDocType(); |
74 | 74 | PaginaSEI::getInstance()->abrirHtml(); |
... | ... | @@ -223,7 +223,7 @@ PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
223 | 223 | <img id="imgLupaPrincipal" onclick="objLupaPrincipal.selecionar(700,500);" src="/infra_css/imagens/lupa.gif" alt="Selecionar Extensões" title="Selecionar Extensões" class="infraImg" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> |
224 | 224 | <img id="imgExcluirPrincipal" onclick="objLupaPrincipal.remover();" src="/infra_css/imagens/remover.gif" alt="Remover Extensões Selecionadas" title="Remover Extensões Selecionadas" class="infraImg" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> |
225 | 225 | |
226 | - <label id="lblComplementar" for="txtComplementar" accesskey="C" class="infraLabelObrigatorio">Extensões permitidas para Documentos Essenciais e Complementares:</label> | |
226 | + <label id="lblComplementar" for="txtComplementar" class="infraLabelObrigatorio">Extensões permitidas para Documentos Essenciais e Complementares:</label> | |
227 | 227 | <input type="text" id="txtComplementar" name="txtComplementar" class="infraText" onkeypress="return infraMascaraTexto(this,event,50);" maxlength="50" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>"/> |
228 | 228 | <select id="selComplementar" name="selComplementar" size="12" multiple="multiple" class="infraSelect" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>"> |
229 | 229 | <?=$strSelExtensoesComp; ?> | ... | ... |
sei/institucional/peticionamento/gerir_tamanho_arquivo_peticionamento_cadastro.php
... | ... | @@ -52,7 +52,7 @@ try { |
52 | 52 | $objTamanhoArquivoDTO = $objTamanhoArquivoRN->alterar($objTamanhoArquivoDTO); |
53 | 53 | } |
54 | 54 | PaginaSEI::getInstance()->adicionarMensagem('Os dados cadastrados foram salvos com sucesso.'); |
55 | - header('Location: '.SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'].PaginaSEI::getInstance()->montarAncora(TamanhoArquivoPermitidoPeticionamentoRN::$ID_FIXO_TAMANHO_ARQUIVO))); | |
55 | + header('Location: '.SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.$_GET['acao'].PaginaSEI::getInstance()->montarAncora(TamanhoArquivoPermitidoPeticionamentoRN::$ID_FIXO_TAMANHO_ARQUIVO))); | |
56 | 56 | die; |
57 | 57 | }catch(Exception $e){ |
58 | 58 | PaginaSEI::getInstance()->processarExcecao($e); |
... | ... | @@ -70,7 +70,7 @@ try { |
70 | 70 | PaginaSEI::getInstance()->processarExcecao($e); |
71 | 71 | } |
72 | 72 | |
73 | -$arrComandos[] = '<button type="button" accesskey="C" name="btnFechar" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'].PaginaSEI::getInstance()->montarAncora('1'))).'\';" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
73 | +$arrComandos[] = '<button type="button" accesskey="c" name="btnFechar" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao=procedimento_controlar&acao_origem='.$_GET['acao'])).'\';" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
74 | 74 | |
75 | 75 | PaginaSEI::getInstance()->montarDocType(); |
76 | 76 | PaginaSEI::getInstance()->abrirHtml(); | ... | ... |
sei/institucional/peticionamento/gerir_tipo_contexto_peticionamento_cadastro.php
... | ... | @@ -135,8 +135,8 @@ if( $numero2 > 0){ |
135 | 135 | |
136 | 136 | $strTitulo = "Peticionamento - Tipos de Contatos Permitidos"; |
137 | 137 | |
138 | -$arrComandos[] = '<button type="submit" accesskey="S" name="sbmCadastrarGrupoUnidade" value="Salvar" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar</button>'; | |
139 | -$arrComandos[] = '<button type="button" accesskey="C" name="btnFechar" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSei::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'])).'\';" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
138 | +$arrComandos[] = '<button type="submit" accesskey="s" name="sbmCadastrarGrupoUnidade" value="Salvar" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar</button>'; | |
139 | +$arrComandos[] = '<button type="button" accesskey="c" name="btnFechar" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSei::getInstance()->assinarLink('controlador.php?acao=procedimento_controlar&acao_origem='.$_GET['acao'])).'\';" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
140 | 140 | |
141 | 141 | PaginaSEI::getInstance()->montarDocType(); |
142 | 142 | PaginaSEI::getInstance()->abrirHtml(); | ... | ... |
sei/institucional/peticionamento/hipotese_legal_nl_acesso_peticionamento_cadastro.php
... | ... | @@ -24,14 +24,14 @@ try { |
24 | 24 | $arrComandos = array(); |
25 | 25 | $strLinkHipoteseLglSelecao = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=hipotese_legal_peticionamento_selecionar&tipo_selecao=2&id_object=objLupaHipLegal&nvl_acesso='.ProtocoloRN::$NA_RESTRITO); |
26 | 26 | $strLinkAjaxHipLegal = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=hipotese_legal_rest_peticionamento_auto_completar'); |
27 | - | |
27 | + | |
28 | 28 | switch($_GET['acao']){ |
29 | 29 | case 'hipotese_legal_nl_acesso_peticionamento_cadastrar': |
30 | 30 | |
31 | 31 | $strTitulo = 'Peticionamento - Hipóteses Legais Permitidas'; |
32 | 32 | |
33 | - $arrComandos[] = '<button type="submit" accesskey="S" name="sbmCadastrarHipoteseLegalRI" id="sbmCadastrarHipoteseLegalRI" value="Salvar" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar</button>'; | |
34 | - $arrComandos[] = '<button type="button" accesskey="C" name="btnFechar" id="btnFechar" value="Cancelar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'])).'\';" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
33 | + $arrComandos[] = '<button type="submit" accesskey="s" name="sbmCadastrarHipoteseLegalRI" id="sbmCadastrarHipoteseLegalRI" value="Salvar" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar</button>'; | |
34 | + $arrComandos[] = '<button type="button" accesskey="c" name="btnFechar" id="btnFechar" value="Cancelar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao=procedimento_controlar&acao_origem='.$_GET['acao'])).'\';" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
35 | 35 | |
36 | 36 | $objHipoteseLegalPeticionamentoRN = new HipoteseLegalPeticionamentoRN(); |
37 | 37 | $objHipoteseLegalPeticionamentoDTOAll = new HipoteseLegalPeticionamentoDTO(); |
... | ... | @@ -41,11 +41,11 @@ try { |
41 | 41 | $objHipoteseLegalPeticionamentoDTOAll->retStrSinAtivo(); |
42 | 42 | $objHipoteseLegalPeticionamentoDTOAll->setStrSinAtivo('S'); |
43 | 43 | $qtdHipLgl = $objHipoteseLegalPeticionamentoRN->contar($objHipoteseLegalPeticionamentoDTOAll); |
44 | - | |
44 | + | |
45 | 45 | $strItensSelHipLegal = ""; |
46 | 46 | $alterar = false; |
47 | 47 | $alterar = $qtdHipLgl > 0 ? true : false; |
48 | - | |
48 | + | |
49 | 49 | if($alterar){ |
50 | 50 | $arrHipotesesLegais = $objHipoteseLegalPeticionamentoRN->listar($objHipoteseLegalPeticionamentoDTOAll); |
51 | 51 | for($x = 0;$x<count($arrHipotesesLegais);$x++){ |
... | ... | @@ -57,30 +57,30 @@ try { |
57 | 57 | try{ |
58 | 58 | $arrObjHipoteseLegalDTOCad = array(); |
59 | 59 | $arrHipotesesLegais = PaginaSEI::getInstance()->getArrValuesSelect($_POST['hdnHipoteseLgl']); |
60 | - | |
60 | + | |
61 | 61 | for($x = 0;$x<count($arrHipotesesLegais);$x++){ |
62 | 62 | $objHipoteseLegalPeticionamentoDTO = new HipoteseLegalPeticionamentoDTO(); |
63 | 63 | $objHipoteseLegalPeticionamentoDTO->setNumIdHipoteseLegalPeticionamento($arrHipotesesLegais[$x]); |
64 | 64 | array_push( $arrObjHipoteseLegalDTOCad, $objHipoteseLegalPeticionamentoDTO ); |
65 | 65 | } |
66 | - | |
66 | + | |
67 | 67 | if($alterar){ |
68 | 68 | $objHipoteseLegalPeticionamentoDTO = new HipoteseLegalPeticionamentoDTO(); |
69 | 69 | $objHipoteseLegalPeticionamentoDTO->retTodos(); |
70 | - | |
70 | + | |
71 | 71 | $objHipoteseLegalPeticionamentoDTO->setStrSinAtivo('S'); |
72 | - | |
72 | + | |
73 | 73 | $arrObjHipoteseLegalDTOExcluir = array(); |
74 | 74 | $arrObjHipoteseLegalDTOExcluir = $objHipoteseLegalPeticionamentoRN->listar($objHipoteseLegalPeticionamentoDTO); |
75 | - | |
75 | + | |
76 | 76 | if(count($arrObjHipoteseLegalDTOExcluir) > 0){ |
77 | 77 | $objHipoteseLegalPeticionamentoRN->excluir($arrObjHipoteseLegalDTOExcluir); |
78 | 78 | } |
79 | - } | |
80 | - | |
79 | + } | |
80 | + | |
81 | 81 | $objHipoteseLegalPeticionamentoRN->cadastrar($arrObjHipoteseLegalDTOCad); |
82 | - | |
83 | - header('Location: '.SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'])); | |
82 | + | |
83 | + header('Location: '.SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.$_GET['acao'])); | |
84 | 84 | die; |
85 | 85 | }catch(Exception $e){ |
86 | 86 | PaginaSEI::getInstance()->processarExcecao($e); |
... | ... | @@ -120,8 +120,8 @@ $firefox = strpos($browser, 'Firefox') ? true : false; |
120 | 120 | #lblHipoteseLgl{} |
121 | 121 | <?php }else{?> |
122 | 122 | #selDescricaoHpLegalNvAcesso {width:75%;margin-top:2.6%} |
123 | -#imgLupaHipoteseLgl {position:absolute;left:75.5%;top:40.2%;} | |
124 | -#imgExcluirHipoteseLgl {position:absolute;left:75.2%;top:58%;} | |
123 | +#imgLupaHipoteseLgl {position:absolute;left:75.5%;top:25.2%;} | |
124 | +#imgExcluirHipoteseLgl {position:absolute;left:75.2%;top:40%;} | |
125 | 125 | #txtHipoteseLgl {position:absolute;left:0%;width:50%;margin-top:1.6%} |
126 | 126 | #lblHipoteseLgl{} |
127 | 127 | <?php } ?> |
... | ... | @@ -138,35 +138,35 @@ PaginaSEI::getInstance()->fecharJavaScript(); |
138 | 138 | PaginaSEI::getInstance()->fecharHead(); |
139 | 139 | PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
140 | 140 | ?> |
141 | -<form id="frmHipLglNlAccPermCadastro" method="post" onsubmit="return OnSubmitForm();" | |
141 | +<form id="frmHipLglNlAccPermCadastro" method="post" onsubmit="return OnSubmitForm();" | |
142 | 142 | action="<?=PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> |
143 | 143 | <? |
144 | 144 | PaginaSEI::getInstance()->montarBarraComandosSuperior($arrComandos); |
145 | 145 | PaginaSEI::getInstance()->abrirAreaDados('30em'); |
146 | 146 | ?> |
147 | 147 | |
148 | - | |
148 | + | |
149 | 149 | <div style="clear: both"></div> |
150 | - | |
151 | - <div id="hipLegalNvlAcessoAssociada" class="infraAreaDados"> | |
152 | - | |
150 | + | |
151 | + <div id="hipLegalNvlAcessoAssociada" class="infraAreaDados"> | |
152 | + | |
153 | 153 | <label id="lblHipoteseLgl" for="txtHipoteseLgl" accesskey="n" class="infraLabelObrigatorio">Hipóteses Legais:</label> |
154 | 154 | <input type="text" id="txtHipoteseLgl" name="txtHipoteseLgl" class="infraText" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>" /> |
155 | - | |
155 | + | |
156 | 156 | <br/> |
157 | - | |
158 | - <select id="selDescricaoHpLegalNvAcesso" name="selDescricaoHpLegalNvAcesso" size="4" multiple="multiple" class="infraSelect"> | |
157 | + | |
158 | + <select id="selDescricaoHpLegalNvAcesso" name="selDescricaoHpLegalNvAcesso" size="8" multiple="multiple" class="infraSelect"> | |
159 | 159 | <?=$strItensSelHipLegal?> |
160 | 160 | </select> |
161 | - | |
162 | - <img id="imgLupaHipoteseLgl" onclick="objLupaHipLegal.selecionar(700,500);" src="/infra_css/imagens/lupa.gif" | |
163 | - alt="Selecionar Hipóteses Legais" | |
164 | - title="Selecionar Hipóteses Legais" class="infraImg" /> | |
165 | - | |
166 | - <img id="imgExcluirHipoteseLgl" onclick="objLupaHipLegal.remover();" src="/infra_css/imagens/remover.gif" | |
167 | - alt="Remover Hipóteses Legais Selecionadas" | |
168 | - title="Remover Hipóteses Legais Selecionados" class="infraImg" /> | |
169 | - | |
161 | + | |
162 | + <img id="imgLupaHipoteseLgl" onclick="objLupaHipLegal.selecionar(700,500);" src="/infra_css/imagens/lupa.gif" | |
163 | + alt="Selecionar Hipóteses Legais" | |
164 | + title="Selecionar Hipóteses Legais" class="infraImg" /> | |
165 | + | |
166 | + <img id="imgExcluirHipoteseLgl" onclick="objLupaHipLegal.remover();" src="/infra_css/imagens/remover.gif" | |
167 | + alt="Remover Hipóteses Legais Selecionadas" | |
168 | + title="Remover Hipóteses Legais Selecionados" class="infraImg" /> | |
169 | + | |
170 | 170 | <input type="hidden" id="hdnHipoteseLgl" name="hdnHipoteseLgl" value="<?=$_POST['hdnHipoteseLgl']?>" /> |
171 | 171 | <input type="hidden" id="hdnIdHipoteseLgl" name="hdnIdHipoteseLgl" value="<?=$_POST['hdnIdHipoteseLgl']?>" /> |
172 | 172 | </div> |
... | ... | @@ -199,13 +199,13 @@ if ('<?=$_GET['acao']?>'!='hipotese_legal_nl_acesso_peticionamento_consultar'){ |
199 | 199 | function validarCadastro() { |
200 | 200 | |
201 | 201 | var optionsSub = document.getElementById('selDescricaoHpLegalNvAcesso').options; |
202 | - | |
202 | + | |
203 | 203 | if( optionsSub.length == 0 ){ |
204 | 204 | alert('Informe ao menos uma Hipótese Legal.'); |
205 | 205 | document.getElementById('selDescricaoHpLegalNvAcesso').focus(); |
206 | 206 | return false; |
207 | - } | |
208 | - | |
207 | + } | |
208 | + | |
209 | 209 | return true; |
210 | 210 | } |
211 | 211 | |
... | ... | @@ -215,16 +215,16 @@ function OnSubmitForm() { |
215 | 215 | } |
216 | 216 | |
217 | 217 | function carregarComponenteHipoteseLegal(){ |
218 | - | |
218 | + | |
219 | 219 | objAutoCompletarHipLegal = new infraAjaxAutoCompletar('hdnIdHipoteseLgl', 'txtHipoteseLgl', '<?=$strLinkAjaxHipLegal?>'); |
220 | 220 | objAutoCompletarHipLegal.limparCampo = true; |
221 | - | |
221 | + | |
222 | 222 | objAutoCompletarHipLegal.prepararExecucao = function(){ |
223 | 223 | return 'palavras_pesquisa='+document.getElementById('txtHipoteseLgl').value; |
224 | 224 | }; |
225 | - | |
225 | + | |
226 | 226 | objAutoCompletarHipLegal.processarResultado = function(id,nome,complemento){ |
227 | - | |
227 | + | |
228 | 228 | if (id!=''){ |
229 | 229 | var options = document.getElementById('selDescricaoHpLegalNvAcesso').options; |
230 | 230 | |
... | ... | @@ -236,28 +236,28 @@ function carregarComponenteHipoteseLegal(){ |
236 | 236 | } |
237 | 237 | } |
238 | 238 | } |
239 | - | |
239 | + | |
240 | 240 | if (i==options.length){ |
241 | - | |
241 | + | |
242 | 242 | for(i=0;i < options.length;i++){ |
243 | - options[i].selected = false; | |
243 | + options[i].selected = false; | |
244 | 244 | } |
245 | - | |
245 | + | |
246 | 246 | opt = infraSelectAdicionarOption(document.getElementById('selDescricaoHpLegalNvAcesso'),nome,id); |
247 | - | |
247 | + | |
248 | 248 | objLupaHipLegal.atualizar(); |
249 | - | |
249 | + | |
250 | 250 | opt.selected = true; |
251 | 251 | } |
252 | - | |
252 | + | |
253 | 253 | document.getElementById('txtHipoteseLgl').value = ''; |
254 | 254 | document.getElementById('txtHipoteseLgl').focus(); |
255 | - | |
255 | + | |
256 | 256 | } |
257 | 257 | }; |
258 | - | |
259 | - objLupaHipLegal = new infraLupaSelect('selDescricaoHpLegalNvAcesso' , 'hdnHipoteseLgl', '<?=$strLinkHipoteseLglSelecao?>'); | |
260 | - | |
261 | -} | |
258 | + | |
259 | + objLupaHipLegal = new infraLupaSelect('selDescricaoHpLegalNvAcesso' , 'hdnHipoteseLgl', '<?=$strLinkHipoteseLglSelecao?>'); | |
260 | + | |
261 | +} | |
262 | 262 | |
263 | 263 | </script> |
264 | 264 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/indisponibilidade_peticionamento_cadastro.php
... | ... | @@ -175,12 +175,14 @@ try { |
175 | 175 | case 'indisponibilidade_peticionamento_download': |
176 | 176 | |
177 | 177 | if( $_POST['hdnIdIndisponibilidadePeticionamento'] != "" ) { |
178 | - | |
178 | + | |
179 | + | |
179 | 180 | $objIndisponibilidadeAnexoPeticionamentoDTO = new IndisponibilidadeAnexoPeticionamentoDTO(); |
180 | 181 | $objIndisponibilidadeAnexoPeticionamentoDTO->retTodos(); |
181 | - $objIndisponibilidadeAnexoPeticionamentoDTO->setNumIdAnexoPeticionamento( $_POST['hdnIdIndisponibilidadePeticionamento'] ); | |
182 | + $objIndisponibilidadeAnexoPeticionamentoDTO->setNumIdIndisponibilidade( $_POST['hdnIdIndisponibilidadePeticionamento'] ); | |
182 | 183 | $objIndisponibilidadePeticionamentoRN = new IndisponibilidadeAnexoPeticionamentoRN(); //hdnIdIndisponibilidadePeticionamento |
183 | 184 | $objIndisponibilidadeAnexoPeticionamentoDTO = $objIndisponibilidadePeticionamentoRN->consultar( $objIndisponibilidadeAnexoPeticionamentoDTO ); |
185 | + | |
184 | 186 | $strDiretorio = $objIndisponibilidadePeticionamentoRN->obterDiretorio( $objIndisponibilidadeAnexoPeticionamentoDTO ); |
185 | 187 | $file = $strDiretorio.'/'.$objIndisponibilidadeAnexoPeticionamentoDTO->getNumIdAnexoPeticionamento(); |
186 | 188 | |
... | ... | @@ -189,19 +191,18 @@ try { |
189 | 191 | $file = DIR_SEI_TEMP . '/' . $_POST['hdnNomeArquivoDownload']; |
190 | 192 | |
191 | 193 | } |
192 | - | |
193 | - if (file_exists($file)) { | |
194 | - | |
195 | - header('Pragma: public'); | |
196 | - header("Cache-Control: private, no-cache, no-store, post-check=0, pre-check=0"); | |
197 | - header('Expires: 0'); | |
198 | - header('Content-Description: File Transfer'); | |
199 | - header('Content-Type: application/octet-stream'); | |
200 | - header('Content-Disposition: attachment; filename="'. $_POST['hdnNomeArquivoDownloadReal'] .'"'); | |
201 | - header('Content-Length: ' . filesize($file)); | |
202 | - readfile($file, true); | |
203 | - exit; | |
204 | - } | |
194 | + | |
195 | + if (file_exists($file)) { | |
196 | + header('Pragma: public'); | |
197 | + header("Cache-Control: no-cache, no-store, post-check=0, pre-check=0, must-revalidate"); | |
198 | + header('Pragma: no-cache'); | |
199 | + header('Expires: 0'); | |
200 | + header('Content-Description: File Transfer'); | |
201 | + header('Content-Disposition: attachment; filename="' . $_POST['hdnNomeArquivoDownloadReal'] . '"'); | |
202 | + header('Content-Length: ' . filesize($file)); | |
203 | + readfile($file, true); | |
204 | + exit; | |
205 | + } | |
205 | 206 | |
206 | 207 | die; |
207 | 208 | ... | ... |
sei/institucional/peticionamento/indisponibilidade_peticionamento_lista.php
... | ... | @@ -283,8 +283,8 @@ try { |
283 | 283 | |
284 | 284 | if ($_GET['acao'] == 'indisponibilidade_peticionamento_reativar'){ |
285 | 285 | $arrComandos[] = '<button type="button" accesskey="c" id="btnFecharSelecao" value="Fechar" onclick="window.close();" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; |
286 | - }else{ | |
287 | - $arrComandos[] = '<button type="button" accesskey="c" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'])).'\'" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
286 | + }else{ | |
287 | + $arrComandos[] = '<button type="button" accesskey="c" name="btnFechar" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSei::getInstance()->assinarLink('controlador.php?acao=procedimento_controlar&acao_origem='.$_GET['acao'])).'\';" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
288 | 288 | } |
289 | 289 | |
290 | 290 | //txtDtInicio | ... | ... |
sei/institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_lista.php
... | ... | @@ -22,6 +22,8 @@ try { |
22 | 22 | //PaginaSEIExterna::getInstance()->prepararSelecao('indisponibilidade_peticionamento_usuario_externo_selecionar'); |
23 | 23 | //SessaoSEIExterna::getInstance()->validarPermissao($_GET['acao']); |
24 | 24 | |
25 | + PaginaSEIExterna::getInstance()->setTipoPagina( InfraPagina::$TIPO_PAGINA_SEM_MENU ); | |
26 | + | |
25 | 27 | switch($_GET['acao_externa']){ |
26 | 28 | |
27 | 29 | case 'indisponibilidade_peticionamento_usuario_externo_selecionar': |
... | ... | @@ -180,6 +182,9 @@ PaginaSEIExterna::getInstance()->montarJavaScript(); |
180 | 182 | PaginaSEIExterna::getInstance()->abrirJavaScript(); |
181 | 183 | ?> |
182 | 184 | function inicializar(){ |
185 | + | |
186 | + document.getElementById('divInfraBarraSistemaD').style.display='none'; | |
187 | + | |
183 | 188 | if ('<?=$_GET['acao']?>'=='indisponibilidade_peticionamento_usuario_externo_listar'){ |
184 | 189 | infraReceberSelecao(); |
185 | 190 | document.getElementById('btnFecharSelecao').focus(); |
... | ... | @@ -188,10 +193,12 @@ function inicializar(){ |
188 | 193 | infraEfeitoTabelas(); |
189 | 194 | corrigirTela(); |
190 | 195 | |
191 | - var menu = document.getElementById('lnkInfraMenuSistema'); | |
192 | - if(menu != null){ | |
193 | - menu.onclick=esconderMenu; | |
194 | - } | |
196 | + var menu = document.getElementById('lnkInfraMenuSistema'); | |
197 | + if(menu != null){ | |
198 | + menu.onclick=esconderMenu; | |
199 | + } | |
200 | + | |
201 | + | |
195 | 202 | } |
196 | 203 | |
197 | 204 | |
... | ... | @@ -289,10 +296,16 @@ function pesquisar(){ |
289 | 296 | } |
290 | 297 | |
291 | 298 | function corrigirTela(){ |
292 | - var tamanhoGrid = document.getElementById('tbIndisponibilidade').offsetHeight; | |
293 | - var tamanhoLinha = document.getElementById('divInfraAreaTela').offsetHeight; | |
294 | - var tamanhoTotal = (tamanhoGrid + tamanhoLinha) - 395; | |
295 | - document.getElementById('divInfraAreaTela').style.height = tamanhoTotal + 'px'; | |
299 | + | |
300 | + var grid = document.getElementById('tbIndisponibilidade'); | |
301 | + var area = document.getElementById('divInfraAreaTela'); | |
302 | + | |
303 | + if( grid != null && area != null ){ | |
304 | + var tamanhoGrid = document.getElementById('tbIndisponibilidade').offsetHeight; | |
305 | + var tamanhoLinha = document.getElementById('divInfraAreaTela').offsetHeight; | |
306 | + var tamanhoTotal = (tamanhoGrid + tamanhoLinha) - 395; | |
307 | + document.getElementById('divInfraAreaTela').style.height = tamanhoTotal + 'px'; | |
308 | + } | |
296 | 309 | } |
297 | 310 | |
298 | 311 | function esconderMenu(){ |
... | ... | @@ -319,6 +332,8 @@ PaginaSEIExterna::getInstance()->fecharHead(); |
319 | 332 | #lblSinProrrogacao {position:absolute;left:29%;top:0px;width:30%;} |
320 | 333 | #selSinProrrogacao {position:absolute;left:29%;top:20px;width:20%;} |
321 | 334 | #divInfraAreaTabela {position:absolute;left:0%;top:50px; } |
335 | + | |
336 | +#divInfraBarraSistemaE { display:none; } | |
322 | 337 | </style> |
323 | 338 | |
324 | 339 | <?php |
... | ... | @@ -379,6 +394,7 @@ $urlForm = 'institucional/peticionamento/indisponibilidade_peticionamento_usuari |
379 | 394 | </div> |
380 | 395 | |
381 | 396 | </form> |
397 | + | |
382 | 398 | <? |
383 | 399 | PaginaSEIExterna::getInstance()->fecharBody(); |
384 | 400 | PaginaSEIExterna::getInstance()->fecharHtml(); | ... | ... |
sei/institucional/peticionamento/int/GerirExtensoesArquivoPeticionamentoINT.php
... | ... | @@ -24,5 +24,26 @@ public static function montarSelectExtensoes($strPrimeiroItemValor, $strPrimeiro |
24 | 24 | |
25 | 25 | return parent::montarSelectArrInfraDTO($strPrimeiroItemValor, $strPrimeiroItemDescricao, $strValorItemSelecionado, $arrExtArqPermDTO, 'IdArquivoExtensao', 'Extensao'); |
26 | 26 | } |
27 | + | |
28 | + public static function recuperaExtensoes($strPrimeiroItemValor, $strPrimeiroItemDescricao, $strValorItemSelecionado, $strSinPrincipal){ | |
29 | + $objExtArqPermDTO = new GerirExtensoesArquivoPeticionamentoDTO(); | |
30 | + $objExtArqPermDTO->retNumIdArquivoExtensao(); | |
31 | + $objExtArqPermDTO->retStrExtensao(); | |
32 | + $objExtArqPermDTO->setStrSinPrincipal($strSinPrincipal); | |
33 | + $objExtArqPermDTO->setOrdStrExtensao(InfraDTO::$TIPO_ORDENACAO_ASC); | |
34 | + | |
35 | + $objExtArqPermRN = new GerirExtensoesArquivoPeticionamentoRN(); | |
36 | + $arrExtArqPermDTO = $objExtArqPermRN->listar($objExtArqPermDTO); | |
37 | + $tamanho = count($arrExtArqPermDTO); | |
38 | + $arrExtPerm = ""; | |
39 | + for($i=0;$i<$tamanho;$i++){ | |
40 | + if($i<$tamanho-1){ | |
41 | + $arrExtPerm .= "'".$arrExtArqPermDTO[$i]->get('Extensao')."'".","; | |
42 | + }else{ | |
43 | + $arrExtPerm .= "'".$arrExtArqPermDTO[$i]->get('Extensao')."'"; | |
44 | + } | |
45 | + } | |
46 | + return $arrExtPerm; | |
47 | + } | |
27 | 48 | |
28 | 49 | } | ... | ... |
sei/institucional/peticionamento/menu_peticionamento_usuario_externo_cadastro.php
... | ... | @@ -65,6 +65,15 @@ try { |
65 | 65 | } |
66 | 66 | |
67 | 67 | $objMenuPeticionamentoUsuarioExternoDTO->setStrConteudoHtml($_POST['txaConteudo']); |
68 | + | |
69 | + //Estilo | |
70 | + $conjuntoEstilosRN = new ConjuntoEstilosRN(); | |
71 | + $conjuntoEstilosDTO = new ConjuntoEstilosDTO(); | |
72 | + $conjuntoEstilosDTO->setStrSinUltimo('S'); | |
73 | + $conjuntoEstilosDTO->retNumIdConjuntoEstilos(); | |
74 | + $conjuntoEstilosDTO = $conjuntoEstilosRN->consultar( $conjuntoEstilosDTO ); | |
75 | + $objMenuPeticionamentoUsuarioExternoDTO->setNumIdConjuntoEstilos( $conjuntoEstilosDTO->getNumIdConjuntoEstilos() ); | |
76 | + | |
68 | 77 | $objMenuPeticionamentoUsuarioExternoDTO->setStrUrl($_POST['txtUrl']); |
69 | 78 | $objMenuPeticionamentoUsuarioExternoDTO->setStrNome($_POST['txtNome']); |
70 | 79 | $objMenuPeticionamentoUsuarioExternoDTO->setStrTipo($_POST['tipo']); |
... | ... | @@ -79,27 +88,98 @@ try { |
79 | 88 | } |
80 | 89 | break; |
81 | 90 | |
82 | - case 'menu_peticionamento_usuario_externo_alterar': | |
83 | 91 | case 'menu_peticionamento_usuario_externo_consultar': |
84 | 92 | |
85 | 93 | $disabled = ''; |
94 | + $strTitulo = 'Consultar Menu'; | |
95 | + $disabled = " disabled='disabled' "; | |
96 | + | |
97 | + //TODO: Marcelo ou Herley, a construção dos Cases Alterar e Consultar desta funcionalidade ficou muito diferente da forma que foi construído para Tipos de Processos para Peticionamento e para Indisponibilidades do SEI. Tem que padronizar, para ficar igual as outras duas funcionalidades. Ainda, Consultar tem o botão "Fechar", enquanto que Novo e Alterar tem o botão "Cancelar". | |
98 | + $arrComandos[] = '<button type="button" accesskey="c" name="btnFechar" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'].PaginaSEI::getInstance()->montarAncora($_GET['id_menu_peticionamento_usuario_externo']))).'\';" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
86 | 99 | |
87 | - if( $_GET['acao'] == "menu_peticionamento_usuario_externo_alterar" ){ | |
88 | - $strTitulo = 'Alterar Menu'; | |
89 | - $disabled = ''; | |
90 | - } | |
100 | + $objEditorRN=new EditorRN(); | |
101 | + $objEditorDTO=new EditorDTO(); | |
102 | + | |
103 | + $objEditorDTO->setStrNomeCampo('txaConteudo'); | |
104 | + $objEditorDTO->setStrSinSomenteLeitura('N'); | |
105 | + $objEditorDTO->setNumTamanhoEditor(220); | |
106 | + $retEditor = $objEditorRN->montarSimples($objEditorDTO); | |
107 | + | |
108 | + $objMenuPeticionamentoUsuarioExternoDTO2 = new MenuPeticionamentoUsuarioExternoDTO(); | |
109 | + //$objMenuPeticionamentoUsuarioExternoDTO2->setNumIdTipoProcessoOrientacoesPeticionamento(MenuPeticionamentoUsuarioExternoRN::$ID_FIXO_TP_PROCESSO); | |
110 | + $objMenuPeticionamentoUsuarioExternoDTO2->retTodos(); | |
91 | 111 | |
92 | - else if( $_GET['acao'] == "menu_peticionamento_usuario_externo_consultar" ){ | |
93 | - $strTitulo = 'Consultar Menu'; | |
94 | - $disabled = " disabled='disabled' "; | |
112 | + $objMenuPeticionamentoUsuarioExternoRN = new MenuPeticionamentoUsuarioExternoRN(); | |
113 | + | |
114 | + if ( !isset($_POST['hdnIdMenuPeticionamentoUsuarioExterno'])) { | |
115 | + $objMenuPeticionamentoUsuarioExternoDTO2->setNumIdMenuPeticionamentoUsuarioExterno( $_GET['id_menu_peticionamento_usuario_externo'] ); | |
116 | + $objLista = $objMenuPeticionamentoUsuarioExternoRN->consultar($objMenuPeticionamentoUsuarioExternoDTO2); | |
117 | + | |
118 | + $txtNome = $objLista->getStrNome(); | |
119 | + $tipo = $objLista->getStrTipo(); | |
120 | + $txtConteudo = $objLista->getStrConteudoHtml(); | |
121 | + $txtUrl = $objLista->getStrUrl(); | |
122 | + $sinAtivo = $objLista->getStrSinAtivo(); | |
123 | + } else { | |
124 | + try{ | |
125 | + | |
126 | + $objMenuPeticionamentoUsuarioExternoDTO2->setNumIdMenuPeticionamentoUsuarioExterno( $_POST['hdnIdMenuPeticionamentoUsuarioExterno'] ); | |
127 | + $objMenuPeticionamentoUsuarioExternoDTO2 = $objMenuPeticionamentoUsuarioExternoRN->consultar($objMenuPeticionamentoUsuarioExternoDTO2); | |
128 | + | |
129 | + $txtNome = $_POST['txtNome']; | |
130 | + $tipo = $_POST['tipo']; | |
131 | + $txtConteudo = $_POST['txaConteudo']; | |
132 | + $txtUrl = $_POST['txtUrl']; | |
133 | + | |
134 | + if( $_POST['tipo'] == MenuPeticionamentoUsuarioExternoRN::$TP_EXTERNO ){ | |
135 | + $_POST['txaConteudo'] = ''; | |
136 | + } | |
137 | + | |
138 | + if( $_POST['tipo'] == MenuPeticionamentoUsuarioExternoRN::$TP_CONTEUDO_HTML ){ | |
139 | + $_POST['txtUrl'] = ''; | |
140 | + } | |
141 | + | |
142 | + //$sinAtivo = $objMenuPeticionamentoUsuarioExternoDTO2->getStrSinAtivo(); | |
143 | + | |
144 | + $objMenuPeticionamentoUsuarioExternoDTO2->setNumIdMenuPeticionamentoUsuarioExterno( $_POST['hdnIdMenuPeticionamentoUsuarioExterno'] ); | |
145 | + $objMenuPeticionamentoUsuarioExternoDTO2->setStrConteudoHtml($_POST['txaConteudo']); | |
146 | + | |
147 | + //Estilo | |
148 | + $conjuntoEstilosRN = new ConjuntoEstilosRN(); | |
149 | + $conjuntoEstilosDTO = new ConjuntoEstilosDTO(); | |
150 | + $conjuntoEstilosDTO->setStrSinUltimo('S'); | |
151 | + $conjuntoEstilosDTO->retNumIdConjuntoEstilos(); | |
152 | + $conjuntoEstilosDTO = $conjuntoEstilosRN->consultar( $conjuntoEstilosDTO ); | |
153 | + $objMenuPeticionamentoUsuarioExternoDTO2->setNumIdConjuntoEstilos( $conjuntoEstilosDTO->getNumIdConjuntoEstilos() ); | |
154 | + | |
155 | + $objMenuPeticionamentoUsuarioExternoDTO2->setStrUrl($_POST['txtUrl']); | |
156 | + $objMenuPeticionamentoUsuarioExternoDTO2->setStrNome($_POST['txtNome']); | |
157 | + $objMenuPeticionamentoUsuarioExternoDTO2->setStrTipo($_POST['tipo']); | |
158 | + | |
159 | + $objMenuPeticionamentoUsuarioExternoDTO = $objMenuPeticionamentoUsuarioExternoRN->alterar($objMenuPeticionamentoUsuarioExternoDTO2); | |
160 | + | |
161 | + //PaginaSEI::getInstance()->setStrMensagem('Assunto "'.$objAssuntoDTO->getStrCodigoEstruturado().'" alterado com sucesso.'); | |
162 | + header('Location: '.SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'] . '&id_menu_peticionamento_usuario_externo=' . $_POST['hdnIdMenuPeticionamentoUsuarioExterno'])); | |
163 | + | |
164 | + die; | |
165 | + | |
166 | + } catch(Exception $e){ | |
167 | + PaginaSEI::getInstance()->processarExcecao($e); | |
168 | + } | |
95 | 169 | } |
170 | + | |
171 | + break; | |
172 | + | |
173 | + case 'menu_peticionamento_usuario_externo_alterar': | |
174 | + | |
175 | + $disabled = ''; | |
176 | + $strTitulo = 'Alterar Menu'; | |
177 | + $disabled = ''; | |
96 | 178 | |
97 | - if ($_GET['acao']=='menu_peticionamento_usuario_externo_alterar'){ | |
98 | - $arrComandos[] = '<button type="submit" accesskey="s" name="sbmCadastrarOrientacoesPetIndisp" value="Salvar" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar</button>'; | |
99 | - } | |
179 | + $arrComandos[] = '<button type="submit" accesskey="s" name="sbmCadastrarOrientacoesPetIndisp" value="Salvar" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar</button>'; | |
100 | 180 | |
101 | 181 | //TODO: Marcelo ou Herley, a construção dos Cases Alterar e Consultar desta funcionalidade ficou muito diferente da forma que foi construído para Tipos de Processos para Peticionamento e para Indisponibilidades do SEI. Tem que padronizar, para ficar igual as outras duas funcionalidades. Ainda, Consultar tem o botão "Fechar", enquanto que Novo e Alterar tem o botão "Cancelar". |
102 | - $arrComandos[] = '<button type="button" accesskey="c" name="btnCancelar" id="btnCancelar" value="Cancelar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'].PaginaSEI::getInstance()->montarAncora($_GET['id_menu_peticionamento_usuario_externo']))).'\';" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
182 | + $arrComandos[] = '<button type="button" accesskey="c" name="btnCancelar" id="btnCancelar" value="Cancelar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'].PaginaSEI::getInstance()->montarAncora($_GET['id_menu_peticionamento_usuario_externo']))).'\';" class="infraButton"><span class="infraTeclaAtalho">C</span>ancelar</button>'; | |
103 | 183 | |
104 | 184 | $objEditorRN=new EditorRN(); |
105 | 185 | $objEditorDTO=new EditorDTO(); |
... | ... | @@ -147,6 +227,15 @@ try { |
147 | 227 | |
148 | 228 | $objMenuPeticionamentoUsuarioExternoDTO2->setNumIdMenuPeticionamentoUsuarioExterno( $_POST['hdnIdMenuPeticionamentoUsuarioExterno'] ); |
149 | 229 | $objMenuPeticionamentoUsuarioExternoDTO2->setStrConteudoHtml($_POST['txaConteudo']); |
230 | + | |
231 | + //Estilo | |
232 | + $conjuntoEstilosRN = new ConjuntoEstilosRN(); | |
233 | + $conjuntoEstilosDTO = new ConjuntoEstilosDTO(); | |
234 | + $conjuntoEstilosDTO->setStrSinUltimo('S'); | |
235 | + $conjuntoEstilosDTO->retNumIdConjuntoEstilos(); | |
236 | + $conjuntoEstilosDTO = $conjuntoEstilosRN->consultar( $conjuntoEstilosDTO ); | |
237 | + $objMenuPeticionamentoUsuarioExternoDTO2->setNumIdConjuntoEstilos( $conjuntoEstilosDTO->getNumIdConjuntoEstilos() ); | |
238 | + | |
150 | 239 | $objMenuPeticionamentoUsuarioExternoDTO2->setStrUrl($_POST['txtUrl']); |
151 | 240 | $objMenuPeticionamentoUsuarioExternoDTO2->setStrNome($_POST['txtNome']); |
152 | 241 | $objMenuPeticionamentoUsuarioExternoDTO2->setStrTipo($_POST['tipo']); |
... | ... | @@ -164,7 +253,7 @@ try { |
164 | 253 | } |
165 | 254 | |
166 | 255 | break; |
167 | - | |
256 | + | |
168 | 257 | default: |
169 | 258 | throw new InfraException("Ação '".$_GET['acao']."' não reconhecida."); |
170 | 259 | break; |
... | ... | @@ -194,10 +283,12 @@ PaginaSEI::getInstance()->abrirStyle(); |
194 | 283 | |
195 | 284 | #lblConteudo {position:absolute;left:0%;top:125px;width:95%; display:none;} |
196 | 285 | #containerEditor {position:absolute;top:290px;width:870px; display:none;} |
197 | - | |
286 | + | |
287 | +.cke_contents#cke_1_contents {height:490px !important;} | |
288 | + | |
198 | 289 | /* |
199 | -#txaConteudo { display:none; } | |
200 | -.cke_contents#cke_1_contents {left:0%; height:290px !important; display:none;} | |
290 | +#txaConteudo { display:none; } | |
291 | +.cke_contents#cke_1_contents {left:0%; height:490px !important; display:none;} | |
201 | 292 | */ |
202 | 293 | |
203 | 294 | <? |
... | ... | @@ -222,7 +313,7 @@ function rdTipo(){ |
222 | 313 | |
223 | 314 | //document.getElementById("txaConteudo").style.display = 'none'; |
224 | 315 | document.getElementById("lblConteudo").style.display = 'none'; |
225 | - document.getElementById("containerEditor").style.display = 'none'; | |
316 | + document.getElementById("tbConteudo").style.display = 'none'; | |
226 | 317 | |
227 | 318 | } else if( html ){ |
228 | 319 | |
... | ... | @@ -234,10 +325,10 @@ function rdTipo(){ |
234 | 325 | |
235 | 326 | //document.getElementById("txaConteudo").style.display = 'block'; |
236 | 327 | document.getElementById("lblConteudo").style.display = 'block'; |
237 | - document.getElementById("containerEditor").style.display = 'block'; | |
328 | + document.getElementById("tbConteudo").style.display = 'block'; | |
238 | 329 | |
239 | 330 | //limpa campo |
240 | - $("#containerEditor iframe").contents().find("body").html('') | |
331 | + $("#tbConteudo iframe").contents().find("body").html('') | |
241 | 332 | } |
242 | 333 | |
243 | 334 | } |
... | ... | @@ -329,8 +420,8 @@ else if( $tipo == 'H' ){ |
329 | 420 | |
330 | 421 | <legend class="infraLegend"> Tipo de Menu </legend> |
331 | 422 | |
332 | - <input type="radio" id="tipoExterno" <?= $disabled ?> name="tipo" value="E" onclick="rdTipo()" <?php if( $tipo == 'E' ){ echo " checked='checked' "; } ?> > <label for="tipoExterno" class="infraLabelRadio"> Link externo </label> <br/> | |
333 | - <input type="radio" id="tipoHTML" name="tipo" <?= $disabled ?> value="H" onclick="rdTipo()" <?php if( $tipo == 'H' ){ echo " checked='checked' "; } ?> > <label for="tipoHTML" class="infraLabelRadio"> Conteúdo HTML </label> <br/> | |
423 | + <input type="radio" id="tipoExterno" <?= $disabled ?> name="tipo" value="E" onclick="rdTipo()" <?php if( $tipo == 'E' ){ echo " checked='checked' "; } ?> > <label for="tipoExterno" class="infraLabelRadio"> Link externo</label> <br/> | |
424 | + <input type="radio" id="tipoHTML" name="tipo" <?= $disabled ?> value="H" onclick="rdTipo()" <?php if( $tipo == 'H' ){ echo " checked='checked' "; } ?> > <label for="tipoHTML" class="infraLabelRadio"> Conteúdo HTML</label> <br/> | |
334 | 425 | |
335 | 426 | </fieldset> |
336 | 427 | |
... | ... | @@ -339,23 +430,21 @@ else if( $tipo == 'H' ){ |
339 | 430 | |
340 | 431 | <label id="lblConteudo" for="txaConteudo" class="infraLabelObrigatorio">Conteúdo HTML:</label> |
341 | 432 | |
342 | -<?php | |
433 | +<?php | |
343 | 434 | PaginaSEI::getInstance()->fecharAreaDados(); |
344 | 435 | ?> |
345 | 436 | |
346 | - <div id="containerEditor"> | |
347 | - <table id="tbConteudo" style="width: 95%;"> | |
437 | + <table id="tbConteudo" style="width: 100%; display: none;"> | |
348 | 438 | <td style="width: 95%"> |
349 | - <div id="divEditores" style="overflow: auto;"> | |
350 | - <textarea id="txaConteudo" name="txaConteudo" <?= $disabled ?> rows="4" class="infraTextarea" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>"><?=$txtConteudo?></textarea> | |
439 | + <div id="divEditores" style=""> | |
440 | + <textarea id="txaConteudo" name="txaConteudo" <?= $disabled ?> rows="20" class="infraTextarea" tabindex="<?=PaginaSEI::getInstance()->getProxTabDados()?>"><?=$txtConteudo?></textarea> | |
351 | 441 | <script type="text/javascript"> |
352 | 442 | <?=$retEditor->getStrEditores();?> |
353 | 443 | </script> |
354 | 444 | </div> |
355 | 445 | </td> |
356 | 446 | </table> |
357 | - </div> | |
358 | - | |
447 | + | |
359 | 448 | <input type="hidden" id="hdnIdMenuPeticionamentoUsuarioExterno" name="hdnIdMenuPeticionamentoUsuarioExterno" |
360 | 449 | value="<?php echo isset($_GET['id_menu_peticionamento_usuario_externo']) ? $_GET['id_menu_peticionamento_usuario_externo'] : '' ?>" /> |
361 | 450 | ... | ... |
sei/institucional/peticionamento/pagina_conteudo_externo_peticionamento.php
... | ... | @@ -33,7 +33,12 @@ try { |
33 | 33 | $objMenuPeticionamentoUsuarioExternoRN = new MenuPeticionamentoUsuarioExternoRN(); |
34 | 34 | $objMenuConsulta = $objMenuPeticionamentoUsuarioExternoRN->consultar( $objMenuPeticionamentoUsuarioExternoDTO ); |
35 | 35 | |
36 | + $objEditorRN = new EditorRN(); | |
37 | + | |
36 | 38 | if ($_GET['iframe']!=''){ |
39 | + PaginaSEIExterna::getInstance()->abrirStyle(); | |
40 | + echo $objEditorRN->montarCssEditor($objMenuConsulta->retNumIdConjuntoEstilos); | |
41 | + PaginaSEIExterna::getInstance()->fecharStyle(); | |
37 | 42 | echo $objMenuConsulta->getStrConteudoHtml(); |
38 | 43 | die(); |
39 | 44 | } |
... | ... | @@ -46,33 +51,62 @@ PaginaSEIExterna::getInstance()->montarMeta(); |
46 | 51 | PaginaSEIExterna::getInstance()->montarTitle(':: '.PaginaSEIExterna::getInstance()->getStrNomeSistema().' - '. $objMenuConsulta->getStrNome() .' ::'); |
47 | 52 | PaginaSEIExterna::getInstance()->montarStyle(); |
48 | 53 | PaginaSEIExterna::getInstance()->abrirStyle(); |
49 | - | |
50 | -$objEditorRN = new EditorRN(); | |
51 | 54 | echo $objEditorRN->montarCssEditor(null); |
52 | - | |
53 | 55 | PaginaSEIExterna::getInstance()->fecharStyle(); |
54 | 56 | PaginaSEIExterna::getInstance()->montarJavaScript(); |
55 | 57 | PaginaSEIExterna::getInstance()->abrirJavaScript(); |
56 | 58 | ?> |
57 | -function inicializar(){ | |
58 | - //document.getElementById('pwdSenhaAtual').focus(); | |
59 | - //infraEfeitoTabelas(); | |
60 | - resizeIFrameToFitContent(document.getElementById('ifrConteudoHMTL')); | |
61 | -} | |
62 | -function resizeIFrameToFitContent( iFrame ) { | |
63 | - //iFrame.width = iFrame.contentWindow.document.body.scrollWidth; | |
64 | - iFrame.width = document.getElementById("divInfraAreaTelaD").scrollWidth*.98; | |
65 | - | |
66 | - //document.getElementById("divInfraAreaTelaD").scrollHeight = 0; | |
67 | - iFrame.height = iFrame.contentWindow.document.body.scrollHeight*1.02; | |
68 | - //iFrame.height = document.getElementById("divInfraAreaTelaD").scrollHeight; | |
69 | -} | |
70 | 59 | <? |
71 | 60 | PaginaSEIExterna::getInstance()->fecharJavaScript(); |
72 | 61 | PaginaSEIExterna::getInstance()->fecharHead(); |
73 | 62 | PaginaSEIExterna::getInstance()->abrirBody( '' ,'onload="inicializar();"'); |
74 | -echo '<iframe id=ifrConteudoHMTL name=ifrConteudoHMTL frameborder="0" marginheight="0" marginwidth="0" src="' . SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=pagina_conteudo_externo_peticionamento&iframe=S&id_md_pet_usu_externo_menu='. $_GET['id_md_pet_usu_externo_menu']) . '"></iframe>'; | |
63 | +echo '<iframe id=ifrConteudoHTML name=ifrConteudoHTML style="height:100%;width:100%" frameborder="0" marginheight="0" marginwidth="0" src="' . SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=pagina_conteudo_externo_peticionamento&iframe=S&id_md_pet_usu_externo_menu='. $_GET['id_md_pet_usu_externo_menu']) . '"></iframe>'; | |
75 | 64 | PaginaSEIExterna::getInstance()->fecharBody(); |
65 | +?> | |
66 | +<script type="text/javascript"> | |
67 | +function inicializar(){ | |
68 | + //infraEfeitoTabelas(); | |
69 | + document.getElementsByTagName("BODY")[0].onresize = function() {resizeIFramePorConteudo()}; | |
70 | + } | |
71 | + | |
72 | +function resizeIFramePorConteudo(){ | |
73 | + var id = 'ifrConteudoHTML'; | |
74 | + var ifrm = document.getElementById(id); | |
75 | + ifrm.style.visibility = 'hidden'; | |
76 | + ifrm.style.height = "10px"; | |
77 | + | |
78 | + var doc = ifrm.contentDocument? ifrm.contentDocument : ifrm.contentWindow.document; | |
79 | + doc = doc || document; | |
80 | + var body = doc.body, html = doc.documentElement; | |
81 | + | |
82 | + ///console.clear(); | |
83 | + | |
84 | + ///var fieldset = document.getElementById('field1'); | |
85 | + ///console.log('field1'); | |
86 | + ///console.log(field1.scrollWidth+'-'+field1.offsetWidth+'-'+field1.clientWidth+'-'+field1.scrollWidth+'-'+field1.offsetWidth); | |
87 | + | |
88 | + ///console.log('body.scrollWidth-body.offsetWidth-html.clientWidth-html.scrollWidth-html.offsetWidth'); | |
89 | + ///console.log(body.scrollWidth+'-'+body.offsetWidth+'-'+html.clientWidth+'-'+html.scrollWidth+'-'+html.offsetWidth); | |
90 | + var width = Math.max( body.scrollWidth, body.offsetWidth, | |
91 | + html.clientWidth, html.scrollWidth, html.offsetWidth ); | |
92 | + ///ifrm.style.width=width+'px'; | |
93 | + ifrm.style.width='100%'; | |
94 | + | |
95 | + ///console.log('body.scrollHeight-body.offsetHeight-html.clientHeight-html.scrollHeight-html.offsetHeight'); | |
96 | + ///console.log(body.scrollHeight+'-'+body.offsetHeight+'-'+html.clientHeight+'-'+html.scrollHeight+'-'+html.offsetHeight); | |
97 | + var height = Math.max( body.scrollHeight, body.offsetHeight, | |
98 | + html.clientHeight, html.scrollHeight, html.offsetHeight ); | |
99 | + ifrm.style.height=height+'px'; | |
100 | + | |
101 | + ifrm.style.visibility = 'visible'; | |
102 | +} | |
103 | + | |
104 | +document.getElementById('ifrConteudoHTML').onload = function() { | |
105 | + resizeIFramePorConteudo(); | |
106 | +} | |
107 | + | |
108 | +</script> | |
109 | +<? | |
76 | 110 | PaginaSEIExterna::getInstance()->fecharHtml(); |
77 | 111 | |
78 | 112 | }catch(Exception $e){ | ... | ... |
sei/institucional/peticionamento/peticionamento_contato_selecionar.php
... | ... | @@ -56,14 +56,14 @@ try { |
56 | 56 | case 'peticionamento_contato_selecionar': |
57 | 57 | |
58 | 58 | if ($_GET['acao']=='peticionamento_contato_selecionar'){ |
59 | - $strTitulo = PaginaSEIExterna::getInstance()->getTituloSelecao('Selecionar Contato','Selecionar Contatos'); | |
59 | + $strTitulo = PaginaSEIExterna::getInstance()->getTituloSelecao('Selecionar Interessado','Selecionar Interessados'); | |
60 | 60 | } |
61 | 61 | |
62 | 62 | break; |
63 | 63 | |
64 | 64 | case 'peticionamento_contato_listar': |
65 | 65 | |
66 | - $strTitulo = 'Contatos'; | |
66 | + $strTitulo = 'Interessados'; | |
67 | 67 | break; |
68 | 68 | |
69 | 69 | default: |
... | ... | @@ -139,6 +139,14 @@ try { |
139 | 139 | $numTipoContextoContato = PaginaSEIExterna::getInstance()->recuperarCampo('selTipoContextoContato'); |
140 | 140 | if ($numTipoContextoContato!='' && $numTipoContextoContato!='null'){ |
141 | 141 | $objContatoDTO->setNumIdTipoContextoContatoContato($numTipoContextoContato); |
142 | + }else if(!empty($arrobjRelTipoContextoPeticionamentoDTO)){ | |
143 | + $arrId = array(); | |
144 | + foreach($arrobjRelTipoContextoPeticionamentoDTO as $item){ | |
145 | + array_push($arrId, $item->getNumIdTipoContextoContato()); | |
146 | + } | |
147 | + $objContatoDTO->adicionarCriterio(array('IdTipoContextoContato'), | |
148 | + array(InfraDTO::$OPER_IN), | |
149 | + array($arrId)); | |
142 | 150 | } |
143 | 151 | |
144 | 152 | $objContatoDTO->setStrMaisOpcoes(PaginaSEIExterna::getInstance()->recuperarCampo('chkMaisOpcoesContatos')); |
... | ... | @@ -195,11 +203,11 @@ try { |
195 | 203 | |
196 | 204 | $strCaptionTabela = ''; |
197 | 205 | if ($_GET['acao'] == 'peticionamento_contato_listar'){ |
198 | - $strSumarioTabela = 'Tabela de Contatos.'; | |
199 | - $strCaptionTabela .= 'Contatos'; | |
206 | + $strSumarioTabela = 'Tabela de Interessados.'; | |
207 | + $strCaptionTabela .= 'Interessadis'; | |
200 | 208 | }else{ |
201 | - $strSumarioTabela = 'Tabela de Contatos.'; | |
202 | - $strCaptionTabela .= 'Contatos'; | |
209 | + $strSumarioTabela = 'Tabela de Interessados.'; | |
210 | + $strCaptionTabela .= 'Interessados'; | |
203 | 211 | } |
204 | 212 | |
205 | 213 | $strResultado = ''; |
... | ... | @@ -255,11 +263,7 @@ try { |
255 | 263 | } |
256 | 264 | } |
257 | 265 | } |
258 | - | |
259 | - if ($bolAcaoConsultarContexto){ | |
260 | - $strResultado .= '<a href="'.PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao_externa=contexto_consultar&acao_origem='.$_GET['acao'].'&acao_retorno='.$_GET['acao'].'&id_tipo_contexto_contato='.$dto->getNumIdTipoContextoContatoContato().'&id_contato='.$dto->getNumIdContextoContato().'&sin_contexto=S')).'" tabindex="'.PaginaSEIExterna::getInstance()->getProxTabTabela().'"><img src="imagens/consultar.gif" title="Consultar Contexto" alt="Consultar Contexto" class="infraImg" /></a> '; | |
261 | - } | |
262 | - | |
266 | + | |
263 | 267 | $strResultado .= '</td></tr>'."\n"; |
264 | 268 | } |
265 | 269 | } |
... | ... | @@ -357,10 +361,6 @@ try { |
357 | 361 | } |
358 | 362 | } |
359 | 363 | |
360 | - if ($bolAcaoConsultar){ | |
361 | - $strResultado .= '<a href="'.PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao_externa=contato_consultar&acao_origem='.$_GET['acao'].'&acao_retorno='.$_GET['acao'].'&id_tipo_contexto_contato='.$dto->getNumIdTipoContextoContatoContato().'&id_contexto_contato='.$dto->getNumIdContextoContato().'&id_contato='.$dto->getNumIdContato().'&sin_contexto=N')).'" tabindex="'.PaginaSEIExterna::getInstance()->getProxTabTabela().'"><img src="imagens/consultar.gif" title="Consultar Contato" alt="Consultar Contato" class="infraImg" /></a> '; | |
362 | - } | |
363 | - | |
364 | 364 | } |
365 | 365 | $strResultado .= '</td></tr>'."\n"; |
366 | 366 | } |
... | ... | @@ -470,7 +470,7 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"') |
470 | 470 | <label id="lblPalavrasPesquisaContatos" for="txtPalavrasPesquisaContatos" accesskey="" class="infraLabelOpcional">Palavras-chave para pesquisa:</label> |
471 | 471 | <input type="text" id="txtPalavrasPesquisaContatos" name="txtPalavrasPesquisaContatos" class="infraText" value="<?=$strPalavrasPesquisa;?>" tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" /> |
472 | 472 | |
473 | - <label id="lblTipoContextoContato" for="selTipoContextoContato" accesskey="" class="infraLabelOpicional">Tipo de Contato:</label> | |
473 | + <label id="lblTipoContextoContato" for="selTipoContextoContato" accesskey="" class="infraLabelOpicional">Tipo de Interessado:</label> | |
474 | 474 | <select id="selTipoContextoContato" name="selTipoContextoContato" class="infraSelect" |
475 | 475 | onchange="selecionarTipoContato()" |
476 | 476 | tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" > | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro.php
... | ... | @@ -137,9 +137,6 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
137 | 137 | <? if( $objTipoProcDTO->getStrSinIIProprioUsuarioExterno() == 'S') { ?> |
138 | 138 | |
139 | 139 | <!-- CASO 1 --> |
140 | - <!-- <label style="font-weight: bold;">Interessado: </label> --> | |
141 | - <!-- <img src="/infra_css/imagens/ajuda.gif" class="infraImg" onclick="exibirAjudaCaso1()"/> --> | |
142 | - | |
143 | 140 | <div id="divOptPublico" class="infraDivRadio"> |
144 | 141 | |
145 | 142 | <span id="spnPublico0"> |
... | ... | @@ -159,7 +156,6 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
159 | 156 | <? } else if( $objTipoProcDTO->getStrSinIIIndicacaoDiretaCpfCnpj() == 'S') { ?> |
160 | 157 | |
161 | 158 | <!-- CASO 2 --> |
162 | - | |
163 | 159 | <div id="divOptPublico" class="infraDivRadio"> |
164 | 160 | |
165 | 161 | <span id="spnPublico0"> | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_bloco_documentos.php
... | ... | @@ -28,21 +28,11 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
28 | 28 | |
29 | 29 | <fieldset id="field3" class="infraFieldset sizeFieldset"> |
30 | 30 | <legend class="infraLegend"> Documentos </legend> |
31 | - <br/> | |
31 | + <br/> | |
32 | + <label>Os documentos devem ser carregados abaixo, sendo de sua exclusiva responsabilidade a conformidade entre os dados informados e os documentos. Os Níveis de Acesso abaixo indicados estão condicionados à análise por servidor público, que poderá, motivadamente, alterá-los a qualquer momento sem necessidade de prévio aviso.</label> | |
33 | + <br/><br/> | |
32 | 34 | |
33 | - <label> | |
34 | - Os documentos que constarão da petição devem ser anexados abaixo, sendo responsabilidade do Usuário Externo a integridade de seu conteúdo e correspondência com o preenchimento deste formulário. Ainda, os Níveis de Acesso abaixo indicados estão condicionados à análise por servidor público, que poderá, motivadamente, alterá-los a qualquer momento sem necessidade de prévio aviso. | |
35 | - </label> | |
36 | - | |
37 | - <br/><br/> | |
38 | - | |
39 | - <? | |
40 | - //[RN8] O sistema deve verificar na funcionalidade “Gerir Tipos de Processo para Peticionamento” | |
41 | - // se o documento principal selecionado foi “Externo (Anexação de Arquivo)”. | |
42 | - // Caso tenha sido selecionado ao preencher os dados do novo peticionamento, o sistema permitirá | |
43 | - // anexar o arquivo conforme o tipo informado. O sistema deve recuperar o tamanho e tipo de arquivo | |
44 | - // permitidos das funcionalidades “Gerir Tamanho Arquivo Permitido” e “Gerir Extensões Arquivo”. | |
45 | - //- obter tamanho maximo de arquivo da configuraçao do modulo | |
35 | + <? | |
46 | 36 | $objTamanhoMaximoDTO = new TamanhoArquivoPermitidoPeticionamentoDTO(); |
47 | 37 | $objTamanhoMaximoDTO->setStrSinAtivo('S'); |
48 | 38 | $objTamanhoMaximoDTO->retTodos(); |
... | ... | @@ -66,16 +56,14 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
66 | 56 | } |
67 | 57 | |
68 | 58 | } |
59 | + | |
69 | 60 | |
70 | 61 | //checando se Documento Principal está parametrizado para "Externo (Anexação de Arquivo) ou Gerador (editor do SEI) |
71 | 62 | $gerado = $ObjTipoProcessoPeticionamentoDTO->getStrSinDocGerado(); |
72 | 63 | $externo = $ObjTipoProcessoPeticionamentoDTO->getStrSinDocExterno(); |
73 | 64 | |
74 | - //[RN7] O sistema deve verificar na funcionalidade “Gerir Tipos de Processo para Peticionamento” se o | |
75 | - // documento principal selecionado foi “Gerado (Editor e Modelo do SEI)”. Caso tenha sido selecionado ao preencher os | |
76 | - // dados do novo peticionamento, o usuário irá editar o conteúdo do documento principal diretamente no editor HTML do SEI. | |
77 | 65 | if( $externo == 'S' ) { ?> |
78 | - <label style="font-weight: bold;" for="fileArquivoPrincipal"> Documento principal (<?= $strTamanhoMaximoPrincipal ?>):</label><br/> | |
66 | + <label style="font-weight: bold;" for="fileArquivoPrincipal"> Documento Principal (<?= $strTamanhoMaximoPrincipal ?>):</label><br/> | |
79 | 67 | <input style="margin-top:0.3%" type="file" name="fileArquivoPrincipal" id="fileArquivoPrincipal" /> <br/><br/> |
80 | 68 | <? }?> |
81 | 69 | |
... | ... | @@ -96,7 +84,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
96 | 84 | </div> |
97 | 85 | |
98 | 86 | <div style=" float: left; width: 250px;"> |
99 | - <label style="font-weight: bold;" class="infraLabel"> Complemento (limitado a 30 caracteres): </label> <br/> | |
87 | + <label style="font-weight: bold;" class="infraLabel"> Complemento:</label> <br/> | |
100 | 88 | <input type="text" class="infraText" name="complementoPrincipal" id="complementoPrincipal" style="width:220px;" maxlength="30" /> |
101 | 89 | </div> |
102 | 90 | |
... | ... | @@ -109,17 +97,11 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
109 | 97 | <label style="font-weight: bold;"> Documento Principal:</label> |
110 | 98 | <label class="infraLabelRadio" onclick="abrirJanelaDocumento()"><?= $strTipoDocumentoPrincipal ?> (clique aqui para editar conteúdo) </label> |
111 | 99 | </div> |
112 | - | |
113 | - <!-- | |
114 | - Quando o Documento Principal é do tipo "Gerado", colocar as combos de Nível de Acesso e Hipótese Legal na linha de baixo, | |
115 | - para que não fique truncado a identificação do nome do Tipo do Documento e o parenteses existente. | |
116 | - [PENDENTE!!!!!!!!!] | |
117 | - --> | |
118 | 100 | |
119 | 101 | <div style="clear: both;"> </div> |
120 | 102 | |
121 | 103 | <div style=" float: left; width: 15%;"> |
122 | - <label style="font-weight: bold;" class="infraLabel"> Nível de Acesso: </label> <br/> | |
104 | + <label style="font-weight: bold;" class="infraLabel"> Nível de Acesso:</label> <br/> | |
123 | 105 | |
124 | 106 | <? if( $isUsuarioExternoPodeIndicarNivelAcesso == 'S') { ?> |
125 | 107 | <select class="infraSelect" width="140" id="nivelAcesso1" name="nivelAcesso1" onchange="selectNivelAcesso('nivelAcesso1', 'hipoteseLegal1')" style="width:140px;" > |
... | ... | @@ -154,7 +136,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
154 | 136 | ?> |
155 | 137 | <option value="<?= $itemObj->getNumIdHipoteseLegal() ?>"> |
156 | 138 | <?= $itemObj->getStrNome() ?> |
157 | - ( <?= $itemObj->getStrBaseLegal() ?> ) </option> | |
139 | + (<?= $itemObj->getStrBaseLegal() ?>) </option> | |
158 | 140 | <? } |
159 | 141 | } ?> |
160 | 142 | </select> |
... | ... | @@ -181,18 +163,25 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
181 | 163 | |
182 | 164 | <div style=" float: left; width: 15%;"> |
183 | 165 | |
184 | - <label style="font-weight: bold;" class="infraLabel"> Nível de Acesso: </label> <br/> | |
185 | - <select class="infraSelect" width="140" id="nivelAcesso1" name="nivelAcesso1" style="width:140px;" | |
186 | - onchange="selectNivelAcesso('nivelAcesso1', 'hipoteseLegal1')" > | |
166 | + <label style="font-weight: bold;" class="infraLabel"> Nível de Acesso:</label> <br/> | |
167 | + | |
187 | 168 | <? if( $isUsuarioExternoPodeIndicarNivelAcesso == 'S') { ?> |
188 | - <option value=""></option> | |
189 | - <option value="0">Público</option> | |
190 | - <option value="1">Restrito</option> | |
169 | + | |
170 | + <select class="infraSelect" width="140" id="nivelAcesso1" | |
171 | + name="nivelAcesso1" style="width:140px;" | |
172 | + onchange="selectNivelAcesso('nivelAcesso1', 'hipoteseLegal1')" > | |
173 | + | |
174 | + <option value=""></option> | |
175 | + <option value="0">Público</option> | |
176 | + <option value="1">Restrito</option> | |
177 | + | |
178 | + </select> | |
179 | + | |
191 | 180 | <? } else if( $isNivelAcessoPadrao == 'S' ) { ?> |
192 | - <option selected="selected" value="<?= $nivelAcessoPadrao ?>"><?= $strNomeNivelAcessoPadrao ?></option> | |
181 | + <label class="infraLabel"><?= $strNomeNivelAcessoPadrao ?></label> | |
182 | + <input type="hidden" name="nivelAcesso1" id="nivelAcesso1" value="<?= $nivelAcessoPadrao ?>" /> | |
193 | 183 | <? } ?> |
194 | - </select> | |
195 | - | |
184 | + | |
196 | 185 | </div> |
197 | 186 | |
198 | 187 | <? if( $isNivelAcessoPadrao == 'S' && $nivelAcessoPadrao == "1" ) { ?> |
... | ... | @@ -201,7 +190,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
201 | 190 | <div id="divhipoteseLegal1" style=" float: left; width: 38% ; display:none;"> |
202 | 191 | <? } ?> |
203 | 192 | |
204 | - <?if($isConfigHipoteseLegal) { ?> | |
193 | + <?if($isConfigHipoteseLegal && $isNivelAcessoPadrao != 'S' ) { ?> | |
205 | 194 | |
206 | 195 | <label style="font-weight: bold;" class="infraLabel"> Hipótese Legal: </label> <br/> |
207 | 196 | <select class="infraSelect" id="hipoteseLegal1" name="hipoteseLegal1" width="285" style="width:285px; float: left; margin-right: 5px;"> |
... | ... | @@ -212,46 +201,41 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
212 | 201 | ?> |
213 | 202 | <option value="<?= $itemObj->getNumIdHipoteseLegal() ?>"> |
214 | 203 | <?= $itemObj->getStrNome() ?> |
215 | - ( <?= $itemObj->getStrBaseLegal() ?> ) </option> | |
204 | + (<?= $itemObj->getStrBaseLegal() ?>) </option> | |
216 | 205 | <? } |
217 | 206 | } ?> |
218 | 207 | </select> |
219 | 208 | |
220 | - <? } else { ?> | |
221 | - <label class="infraLabel"> </label> <br/> | |
209 | + <? } else if($isConfigHipoteseLegal && $isNivelAcessoPadrao == 'S' && $nivelAcessoPadrao == "1" ) { ?> | |
210 | + | |
211 | + <label style="font-weight: bold;" class="infraLabel"> Hipótese Legal: </label> <br/> | |
212 | + <label class="infraLabel"> <?= $strHipoteseLegalPadrao ?> </label> | |
213 | + <input type="hidden" name="hipoteseLegal1" id="hipoteseLegal1" value="<?= $idHipoteseLegalPadrao ?>" /> | |
214 | + | |
222 | 215 | <? } ?> |
223 | 216 | |
224 | 217 | </div> |
225 | 218 | |
226 | 219 | <div style="clear: both;"> </div> |
227 | 220 | |
228 | - <div style=" float: left; margin-right: 20px;"> | |
229 | - | |
230 | - <label style="font-weight: bold;" class="infraLabel"> Formato de Documento:</label> | |
231 | - | |
232 | - <span id="spnPublico"> | |
233 | - <label id="lblPublico" class="infraLabelRadio"> | |
234 | - <img src="/infra_css/imagens/ajuda.gif" title="Ajuda" alt="Ajuda" class="infraImg" onclick="exibirAjudaFormatoDocumento()"/> | |
235 | - </label> | |
236 | - </span> | |
237 | - | |
238 | - <input type="radio" name="formatoDocumentoPrincipal" value="nato" id="rdNato1_1" onclick="selecionarFormatoNatoDigitalPrincipal()" /> | |
239 | - <label for="rdNato1_1" class="infraLabelRadio"> | |
240 | - Nato-digital | |
241 | - </label> | |
242 | - | |
243 | - <input type="radio" name="formatoDocumentoPrincipal" value="digitalizado" id="rdDigitalizado1_2" onclick="selecionarFormatoDigitalizadoPrincipal()" /> | |
244 | - <label for="rdDigitalizado1_2" class="infraLabelRadio"> | |
245 | - Digitalizado | |
246 | - </label> | |
247 | - | |
248 | - </div> | |
221 | + <div style=" float: left; margin-right: 20px;"> | |
222 | + <label style="font-weight: bold;" class="infraLabel">Formato:</label> | |
223 | + <span id="spnPublico"> | |
224 | + <label id="lblPublico" class="infraLabelRadio"> | |
225 | + <img src="/infra_css/imagens/ajuda.gif" title="Ajuda" alt="Ajuda" class="infraImg" onclick="exibirAjudaFormatoDocumento()"/> | |
226 | + </label> | |
227 | + </span> | |
228 | + <input type="radio" name="formatoDocumentoPrincipal" value="nato" id="rdNato1_1" onclick="selecionarFormatoNatoDigitalPrincipal()" /> | |
229 | + <label for="rdNato1_1" class="infraLabelRadio">Nato-digital</label> | |
230 | + <input type="radio" name="formatoDocumentoPrincipal" value="digitalizado" id="rdDigitalizado1_2" onclick="selecionarFormatoDigitalizadoPrincipal()" /> | |
231 | + <label for="rdDigitalizado1_2" class="infraLabelRadio">Digitalizado</label> | |
232 | + </div> | |
249 | 233 | |
250 | 234 | <div id="camposDigitalizadoPrincipal" style=" float: left; width: 50%; display: none;"> |
251 | 235 | |
252 | 236 | <div style="float: left; width: 100%;"> |
253 | 237 | |
254 | - <label style="font-weight: bold;" class="infraLabel"> Documento Objeto da Digitalização era: </label> <br/> | |
238 | + <label style="font-weight: bold;" class="infraLabel"> Conferência com o documento digitalizado:</label> <br/> | |
255 | 239 | |
256 | 240 | <select class="infraSelect" id="TipoConferenciaPrincipal" name="TipoConferenciaPrincipal" width="285" |
257 | 241 | style="width: 285px; float:left; margin-right: 5px;"> |
... | ... | @@ -269,7 +253,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
269 | 253 | |
270 | 254 | </div> |
271 | 255 | |
272 | - <div id="camposDigitalizadoPrincipalBotao" style=" float: left; width: 50%; display: none;"> | |
256 | + <div id="camposDigitalizadoPrincipalBotao" style=" float: left; width: 50%;"> | |
273 | 257 | <input type="button" class="infraButton" value="Adicionar" onclick="validarUploadArquivo('1')"> |
274 | 258 | </div> |
275 | 259 | |
... | ... | @@ -279,32 +263,33 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
279 | 263 | |
280 | 264 | <? if( $externo == 'S') { ?> |
281 | 265 | |
282 | - <table id="tbDocumentoPrincipal" class="infraTable" width="95%" > | |
266 | + <table id="tbDocumentoPrincipal" name="tbDocumentoPrincipal" class="infraTable" style="width:95%;"> | |
283 | 267 | |
284 | - <tr> | |
285 | - <th class="infraTh" style="width:30%;"> Nome do arquivo </th> | |
286 | - <th class="infraTh" style="width:70px;"> Data </th> | |
287 | - <th class="infraTh"> Tamanho </th> | |
288 | - <th class="infraTh" style="width:30%;"> Documento </th> | |
289 | - <th class="infraTh" style="width:120px;"> Nível de acesso </th> | |
290 | - | |
291 | - <!-- colunas nao exibidas na tela, usadas apenas para guardar valor na grid (note que estao com display:none) --> | |
292 | - <th class="infraTh" style="display: none;"> Hipotese legal </th> | |
293 | - <th class="infraTh" style="display: none;"> Formato de documento </th> | |
294 | - <th class="infraTh" style="display: none;"> Tipo de Conferencia </th> | |
295 | - <th class="infraTh" style="display: none;"> Nome Upload servidor </th> | |
296 | - <th class="infraTh" style="display: none;"> ID Tipo de Documento </th> | |
268 | + <tr> | |
269 | + <th class="infraTh" style="width:25%;">Nome do Arquivo</th> | |
270 | + <th class="infraTh" style="width:80px;" align="center">Data</th> | |
271 | + <th class="infraTh" style="width:80px;" align="center">Tamanho</th> | |
272 | + <th class="infraTh" style="width:25%;" align="center">Documento</th> | |
273 | + <th class="infraTh" style="width:120px;" align="center">Nível de Acesso</th> | |
274 | + | |
275 | + <!-- colunas nao exibidas na tela, usadas apenas para guardar valor na grid (note que estao com display:none) --> | |
276 | + <th class="infraTh" style="display: none;">Hipótese Legal</th> | |
277 | + <th class="infraTh" style="display: none;">Formato</th> | |
278 | + <th class="infraTh" style="display: none;">Tipo de Conferência</th> | |
279 | + <th class="infraTh" style="display: none;">Nome Upload servidor</th> | |
280 | + <th class="infraTh" style="display: none;">ID Tipo de Documento</th> | |
281 | + <th class="infraTh" style="display: none;">Complemento</th> | |
282 | + <th class="infraTh" style="width: 120px;" align="center">Formato</th> | |
297 | 283 | |
298 | - <!-- Coluna de ações (Baixar, remover) da grid --> | |
299 | - <th align="center" class="infraTh" style="width:70px;"> Ações </th> | |
300 | - </tr> | |
301 | - | |
302 | - </table> | |
303 | - | |
304 | - <br/><br/> | |
305 | - | |
306 | - <? } ?> | |
307 | - </form> | |
284 | + <!-- Coluna de ações (Baixar, remover) da grid --> | |
285 | + <th align="center" class="infraTh" style="width:50px;">Ações</th> | |
286 | + </tr> | |
287 | + | |
288 | + </table> <br/><br/> | |
289 | + | |
290 | + <? } ?> | |
291 | + </form> | |
292 | + <!-- ================================== FIM DOCUMENTO PRINCIPAL =============================================== --> | |
308 | 293 | |
309 | 294 | <form method="post" id="frmDocumentosEssenciais" enctype="multipart/form-data" action="<?= $strLinkUploadDocEssencial ?>"> |
310 | 295 | |
... | ... | @@ -323,7 +308,8 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
323 | 308 | |
324 | 309 | if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ ?> |
325 | 310 | |
326 | - <label class="infraLabelObrigatorio" for="fileArquivoEssencial"> Documentos essenciais (<?= $strTamanhoMaximoComplementar ?>):</label><br/> | |
311 | + <br/> | |
312 | + <label class="infraLabelObrigatorio" for="fileArquivoEssencial"> Documentos Essenciais (<?= $strTamanhoMaximoComplementar ?>):</label><br/> | |
327 | 313 | |
328 | 314 | <input style="margin-top:0.3%" type="file" id="fileArquivoEssencial" name="fileArquivoEssencial" size="50" /> <br/><br/> |
329 | 315 | |
... | ... | @@ -361,7 +347,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
361 | 347 | </div> |
362 | 348 | |
363 | 349 | <div style=" float: left; width: 250px;"> |
364 | - <label style="font-weight: bold;" class="infraLabel"> Complemento (limitado a 30 caracteres): </label> <br/> | |
350 | + <label style="font-weight: bold;" class="infraLabel"> Complemento:</label> <br/> | |
365 | 351 | <input type="text" class="infraText" name="complementoEssencial" id="complementoEssencial" style="width: 220px;" maxlength="30" /> |
366 | 352 | </div> |
367 | 353 | |
... | ... | @@ -369,17 +355,21 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
369 | 355 | |
370 | 356 | <div style=" float: left; width: 15%;"> |
371 | 357 | |
372 | - <label style="font-weight: bold;" class="infraLabel"> Nível de Acesso: </label> <br/> | |
358 | + <label style="font-weight: bold;" class="infraLabel"> Nível de Acesso:</label> <br/> | |
373 | 359 | |
374 | - <select class="infraSelect" name="nivelAcesso2" id="nivelAcesso2" onchange="selectNivelAcesso('nivelAcesso2', 'hipoteseLegal2')" width="140" style="width:140px;" > | |
375 | 360 | <? if( $isUsuarioExternoPodeIndicarNivelAcesso == 'S') { ?> |
361 | + <select class="infraSelect" name="nivelAcesso2" id="nivelAcesso2" onchange="selectNivelAcesso('nivelAcesso2', 'hipoteseLegal2')" width="140" style="width:140px;"> | |
376 | 362 | <option value=""></option> |
377 | 363 | <option value="0">Público</option> |
378 | 364 | <option value="1">Restrito</option> |
379 | - <? } else if( $isNivelAcessoPadrao == 'S' ) { ?> | |
380 | - <option selected="selected" value="<?= $nivelAcessoPadrao ?>"><?= $strNomeNivelAcessoPadrao ?></option> | |
381 | - <? } ?> | |
382 | 365 | </select> |
366 | + <? } else {?> | |
367 | + <label class="infraLabelRadio"> | |
368 | + <?= $strNomeNivelAcessoPadrao ?> | |
369 | + </label> | |
370 | + <input type="hidden" value="<?= $nivelAcessoPadrao ?>" id="nivelAcesso2" name="nivelAcesso2" /> | |
371 | + <?} ?> | |
372 | + | |
383 | 373 | |
384 | 374 | </div> |
385 | 375 | |
... | ... | @@ -389,7 +379,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
389 | 379 | <div id="divhipoteseLegal2" style=" float: left; width: 38%; display:none;"> |
390 | 380 | <? } ?> |
391 | 381 | |
392 | - <? if($isConfigHipoteseLegal) { ?> | |
382 | + <? if($isConfigHipoteseLegal && $isNivelAcessoPadrao != 'S') { ?> | |
393 | 383 | |
394 | 384 | <label style="font-weight: bold;" class="infraLabel"> Hipótese Legal: </label> <br/> |
395 | 385 | |
... | ... | @@ -401,14 +391,16 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
401 | 391 | ?> |
402 | 392 | <option value="<?= $itemObj->getNumIdHipoteseLegal() ?>"> |
403 | 393 | <?= $itemObj->getStrNome() ?> |
404 | - ( <?= $itemObj->getStrBaseLegal() ?> ) </option> | |
394 | + (<?= $itemObj->getStrBaseLegal() ?>) </option> | |
405 | 395 | <? } |
406 | 396 | } ?> |
407 | 397 | </select> |
408 | 398 | |
409 | - <? } else { ?> | |
399 | + <? } else if($isConfigHipoteseLegal && $isNivelAcessoPadrao == 'S' && $nivelAcessoPadrao == "1" ){ ?> | |
410 | 400 | |
411 | - <label class="infraLabel"> </label> <br/> | |
401 | + <label style="font-weight: bold;" class="infraLabel"> Hipótese Legal: </label> <br/> | |
402 | + <label class="infraLabel"> <?= $strHipoteseLegalPadrao ?> </label> | |
403 | + <input type="hidden" name="hipoteseLegal2" id="hipoteseLegal2" value="<?= $idHipoteseLegalPadrao ?>" /> | |
412 | 404 | |
413 | 405 | <? } ?> |
414 | 406 | |
... | ... | @@ -420,33 +412,24 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
420 | 412 | |
421 | 413 | <div style="clear: both;"> </div> |
422 | 414 | |
423 | - <div style=" float: left; margin-right: 20px;"> | |
424 | - | |
425 | - <label style="font-weight: bold;" class="infraLabel"> Formato de Documento:</label> | |
426 | - | |
427 | - <span id="spnPublico"> | |
428 | - <label id="lblPublico" class="infraLabelRadio"> | |
429 | - <img src="/infra_css/imagens/ajuda.gif" title="Ajuda" alt="Ajuda" class="infraImg" onclick="exibirAjudaFormatoDocumento()"/> | |
430 | - </label> | |
431 | - </span> | |
432 | - | |
433 | - <input type="radio" name="formatoDocumentoEssencial" value="nato" id="rdNato2_1" onclick="selecionarFormatoNatoDigitalEssencial()" /> | |
434 | - <label for="rdNato2_1" class="infraLabelRadio"> | |
435 | - Nato-digital | |
436 | - </label> | |
437 | - | |
438 | - <input type="radio" name="formatoDocumentoEssencial" value="digitalizado" id="rdDigitalizado2_2" onclick="selecionarFormatoDigitalizadoEssencial()" /> | |
439 | - <label for="rdDigitalizado2_2" class="infraLabelRadio"> | |
440 | - Digitalizado | |
441 | - </label> | |
442 | - | |
443 | - </div> | |
415 | + <div style=" float: left; margin-right: 20px;"> | |
416 | + <label style="font-weight: bold;" class="infraLabel">Formato:</label> | |
417 | + <span id="spnPublico"> | |
418 | + <label id="lblPublico" class="infraLabelRadio"> | |
419 | + <img src="/infra_css/imagens/ajuda.gif" title="Ajuda" alt="Ajuda" class="infraImg" onclick="exibirAjudaFormatoDocumento()"/> | |
420 | + </label> | |
421 | + </span> | |
422 | + <input type="radio" name="formatoDocumentoEssencial" value="nato" id="rdNato2_1" onclick="selecionarFormatoNatoDigitalEssencial()" /> | |
423 | + <label for="rdNato2_1" class="infraLabelRadio">Nato-digital</label> | |
424 | + <input type="radio" name="formatoDocumentoEssencial" value="digitalizado" id="rdDigitalizado2_2" onclick="selecionarFormatoDigitalizadoEssencial()" /> | |
425 | + <label for="rdDigitalizado2_2" class="infraLabelRadio">Digitalizado</label> | |
426 | + </div> | |
444 | 427 | |
445 | 428 | <div id="camposDigitalizadoEssencial" style=" float: left; width: 50%; display: none;"> |
446 | 429 | |
447 | 430 | <div style="float: left; width: 100%;"> |
448 | 431 | |
449 | - <label style="font-weight: bold;" class="infraLabel"> Documento Objeto da Digitalização era: </label> <br/> | |
432 | + <label style="font-weight: bold;" class="infraLabel"> Conferência com o documento digitalizado:</label> <br/> | |
450 | 433 | |
451 | 434 | <select class="infraSelect" id="TipoConferenciaEssencial" name="TipoConferenciaEssencial" width="285" |
452 | 435 | style="width: 285px; float:left; margin-right: 5px;"> |
... | ... | @@ -464,45 +447,47 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
464 | 447 | |
465 | 448 | </div> |
466 | 449 | |
467 | - <div id="camposDigitalizadoEssencialBotao" style=" float: left; width: 50%; display: none;"> | |
450 | + <div id="camposDigitalizadoEssencialBotao" style=" float: left; width: 50%;"> | |
468 | 451 | <input type="button" class="infraButton" value="Adicionar" onclick="validarUploadArquivo('2')"> |
469 | 452 | </div> |
470 | 453 | |
471 | 454 | <div style="clear: both;"> </div> |
472 | 455 | |
473 | - <table id="tbDocumentoEssencial" name="tbDocumentoEssencial" class="infraTable" style="width:95%;"> | |
456 | + <table id="tbDocumentoEssencial" name="tbDocumentoEssencial" class="infraTable" style="width:95%;"> | |
474 | 457 | |
475 | 458 | <tr> |
476 | - <th class="infraTh" style="width:30%;">Nome</th> | |
477 | - <th class="infraTh" style="width: 70px;" align="center">Data</th> | |
478 | - <th class="infraTh" align="center">Tamanho</th> | |
479 | - <th class="infraTh" align="center" style="width:30%;">Documento</th> | |
480 | - <th class="infraTh" style="width: 120px;" align="center">Nível de acesso</th> | |
481 | - | |
482 | - <!-- colunas nao exibidas na tela, usadas apenas para guardar valor na grid (note que estao com display:none) --> | |
483 | - <th class="infraTh" style="display: none;"> Hipotese legal </th> | |
484 | - <th class="infraTh" style="display: none;"> Formato de documento </th> | |
485 | - <th class="infraTh" style="display: none;"> Tipo de Conferencia </th> | |
486 | - <th class="infraTh" style="display: none;"> Nome Upload servidor </th> | |
487 | - <th class="infraTh" style="display: none;"> ID Tipo de Documento </th> | |
459 | + <th class="infraTh" style="width:25%;">Nome do Arquivo</th> | |
460 | + <th class="infraTh" style="width:80px;" align="center">Data</th> | |
461 | + <th class="infraTh" style="width:80px;" align="center">Tamanho</th> | |
462 | + <th class="infraTh" style="width:25%;" align="center">Documento</th> | |
463 | + <th class="infraTh" style="width:120px;" align="center">Nível de Acesso</th> | |
464 | + | |
465 | + <!-- colunas nao exibidas na tela, usadas apenas para guardar valor na grid (note que estao com display:none) --> | |
466 | + <th class="infraTh" style="display: none;">Hipótese Legal</th> | |
467 | + <th class="infraTh" style="display: none;">Formato</th> | |
468 | + <th class="infraTh" style="display: none;">Tipo de Conferência</th> | |
469 | + <th class="infraTh" style="display: none;">Nome Upload servidor</th> | |
470 | + <th class="infraTh" style="display: none;">ID Tipo de Documento</th> | |
471 | + <th class="infraTh" style="display: none;">Complemento</th> | |
472 | + <th class="infraTh" style="width: 120px;" align="center">Formato</th> | |
488 | 473 | |
489 | - <!-- Coluna de ações (Baixar, remover) da grid --> | |
490 | - <th class="infraTh" style="width: 70px;">Ações</th> | |
491 | - | |
474 | + <!-- Coluna de ações (Baixar, remover) da grid --> | |
475 | + <th align="center" class="infraTh" style="width:50px;">Ações</th> | |
492 | 476 | </tr> |
493 | 477 | |
494 | - </table> <br/><br/> | |
495 | - | |
496 | - <!-- =================================== FIM DOCUMENTOS ESSENCIAIS ===================================================== --> | |
497 | - </form> | |
478 | + </table> <br/><br/> | |
498 | 479 | |
480 | + <? } ?> | |
481 | + </form> | |
482 | + <!-- ================================== FIM DOCUMENTOS ESSENCIAIS =============================================== --> | |
483 | + | |
499 | 484 | <form method="post" id="frmDocumentosComplementares" enctype="multipart/form-data" action="<?= $strLinkUploadDocComplementar ?>"> |
500 | 485 | |
501 | 486 | <input type="hidden" id="hdnDocComplementar" name="hdnDocComplementar" value="<?=$_POST['hdnDocComplementar']?>"/> |
502 | 487 | <input type="hidden" id="hdnDocComplementarInicial" name="hdnDocComplementarInicial" value="<?=$_POST['hdnDocComplementarInicial']?>"/> |
503 | 488 | |
504 | 489 | <!-- ================================== INICIO DOCUMENTOS COMPLEMENTARES =============================================== --> |
505 | - <? | |
490 | + <?php | |
506 | 491 | // TODO o bloco de seleçao de documento essencial pode sumir da tela |
507 | 492 | // conforme parametrizaçao da Administraçao do modulo |
508 | 493 | $objRelTipoProcessoSeriePeticionamentoDTO = new RelTipoProcessoSeriePeticionamentoDTO(); |
... | ... | @@ -516,7 +501,8 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
516 | 501 | |
517 | 502 | if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ ?> |
518 | 503 | |
519 | - <label class="infraLabel" for="fileArquivoComplementar"> Documentos complementares (<?= $strTamanhoMaximoComplementar ?>):</label><br/> | |
504 | + <br/> | |
505 | + <label class="infraLabel" for="fileArquivoComplementar"> Documentos Complementares (<?= $strTamanhoMaximoComplementar ?>):</label><br/> | |
520 | 506 | |
521 | 507 | <input style="margin-top:0.3%" type="file" id="fileArquivoComplementar" name="fileArquivoComplementar" size="50" /> <br/><br/> |
522 | 508 | |
... | ... | @@ -548,7 +534,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
548 | 534 | </div> |
549 | 535 | |
550 | 536 | <div style=" float: left; width: 250px;"> |
551 | - <label style="font-weight: bold;" class="infraLabel"> Complemento (limitado a 30 caracteres): </label> <br/> | |
537 | + <label style="font-weight: bold;" class="infraLabel"> Complemento:</label> <br/> | |
552 | 538 | <input type="text" class="infraText" name="complementoComplementar" id="complementoComplementar" style="width: 220px;" maxlength="30" /> |
553 | 539 | </div> |
554 | 540 | |
... | ... | @@ -556,17 +542,20 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
556 | 542 | |
557 | 543 | <div style=" float: left; width: 15%;"> |
558 | 544 | |
559 | - <label style="font-weight: bold;" class="infraLabel"> Nível de Acesso: </label> <br/> | |
545 | + <label style="font-weight: bold;" class="infraLabel"> Nível de Acesso:</label> <br/> | |
560 | 546 | |
561 | - <select class="infraSelect" name="nivelAcesso3" id="nivelAcesso3" onchange="selectNivelAcesso('nivelAcesso3', 'hipoteseLegal3')" width="140" style="width:140px;" > | |
562 | 547 | <? if( $isUsuarioExternoPodeIndicarNivelAcesso == 'S') { ?> |
548 | + <select class="infraSelect" name="nivelAcesso3" id="nivelAcesso3" onchange="selectNivelAcesso('nivelAcesso3', 'hipoteseLegal3')" width="140" style="width:140px;" > | |
563 | 549 | <option value=""></option> |
564 | 550 | <option value="0">Público</option> |
565 | 551 | <option value="1">Restrito</option> |
566 | - <? } else if( $isNivelAcessoPadrao == 'S' ) { ?> | |
567 | - <option selected="selected" value="<?= $nivelAcessoPadrao ?>"><?= $strNomeNivelAcessoPadrao ?></option> | |
568 | - <? } ?> | |
569 | 552 | </select> |
553 | + <? } else {?> | |
554 | + <label class="infraLabelRadio"> | |
555 | + <?= $strNomeNivelAcessoPadrao ?> | |
556 | + </label> | |
557 | + <input type="hidden" value="<?= $nivelAcessoPadrao ?>" id="nivelAcesso3" name="nivelAcesso3" /> | |
558 | + <?} ?> | |
570 | 559 | |
571 | 560 | </div> |
572 | 561 | |
... | ... | @@ -576,7 +565,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
576 | 565 | <div id="divhipoteseLegal3" style=" float: left; width: 38%; display:none;"> |
577 | 566 | <? } ?> |
578 | 567 | |
579 | - <? if($isConfigHipoteseLegal) { ?> | |
568 | + <? if($isConfigHipoteseLegal && $isNivelAcessoPadrao != 'S') { ?> | |
580 | 569 | |
581 | 570 | <label style="font-weight: bold;" class="infraLabel"> Hipótese Legal: </label> <br/> |
582 | 571 | |
... | ... | @@ -588,14 +577,16 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
588 | 577 | ?> |
589 | 578 | <option value="<?= $itemObj->getNumIdHipoteseLegal() ?>"> |
590 | 579 | <?= $itemObj->getStrNome() ?> |
591 | - ( <?= $itemObj->getStrBaseLegal() ?> ) </option> | |
580 | + (<?= $itemObj->getStrBaseLegal() ?>) </option> | |
592 | 581 | <? } |
593 | 582 | } ?> |
594 | 583 | </select> |
595 | 584 | |
596 | - <? } else { ?> | |
585 | + <? } else if($isConfigHipoteseLegal && $isNivelAcessoPadrao == 'S' && $nivelAcessoPadrao == "1" ){ ?> | |
597 | 586 | |
598 | - <label class="infraLabel"> </label> <br/> | |
587 | + <label style="font-weight: bold;" class="infraLabel"> Hipótese Legal: </label> <br/> | |
588 | + <label class="infraLabel"> <?= $strHipoteseLegalPadrao ?> </label> | |
589 | + <input type="hidden" name="hipoteseLegal3" id="hipoteseLegal3" value="<?= $idHipoteseLegalPadrao ?>" /> | |
599 | 590 | |
600 | 591 | <? } ?> |
601 | 592 | |
... | ... | @@ -603,33 +594,24 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
603 | 594 | |
604 | 595 | <div style="clear: both;"> </div> |
605 | 596 | |
606 | - <div style=" float: left; margin-right: 20px;"> | |
607 | - | |
608 | - <label style="font-weight: bold;" class="infraLabel"> Formato de Documento:</label> | |
609 | - | |
610 | - <span id="spnPublico"> | |
611 | - <label id="lblPublico" class="infraLabelRadio"> | |
612 | - <img src="/infra_css/imagens/ajuda.gif" title="Ajuda" alt="Ajuda" class="infraImg" onclick="exibirAjudaFormatoDocumento()"/> | |
597 | + <div style=" float: left; margin-right: 20px;"> | |
598 | + <label style="font-weight: bold;" class="infraLabel">Formato:</label> | |
599 | + <span id="spnPublico"> | |
600 | + <label id="lblPublico" class="infraLabelRadio"> | |
601 | + <img src="/infra_css/imagens/ajuda.gif" title="Ajuda" alt="Ajuda" class="infraImg" onclick="exibirAjudaFormatoDocumento()"/> | |
613 | 602 | </label> |
614 | - </span> | |
615 | - | |
616 | - <input type="radio" name="formatoDocumentoComplementar" value="nato" id="rdNato3_1" onclick="selecionarFormatoNatoDigitalComplementar()" /> | |
617 | - <label for="rdNato3_1" class="infraLabelRadio"> | |
618 | - Nato-digital | |
619 | - </label> | |
620 | - | |
621 | - <input type="radio" name="formatoDocumentoComplementar" value="digitalizado" id="rdDigitalizado3_2" onclick="selecionarFormatoDigitalizadoComplementar()" /> | |
622 | - <label for="rdDigitalizado3_2" class="infraLabelRadio"> | |
623 | - Digitalizado | |
624 | - </label> | |
625 | - | |
626 | - </div> | |
603 | + </span> | |
604 | + <input type="radio" name="formatoDocumentoComplementar" value="nato" id="rdNato3_1" onclick="selecionarFormatoNatoDigitalComplementar()" /> | |
605 | + <label for="rdNato3_1" class="infraLabelRadio">Nato-digital</label> | |
606 | + <input type="radio" name="formatoDocumentoComplementar" value="digitalizado" id="rdDigitalizado3_2" onclick="selecionarFormatoDigitalizadoComplementar()" /> | |
607 | + <label for="rdDigitalizado3_2" class="infraLabelRadio">Digitalizado</label> | |
608 | + </div> | |
627 | 609 | |
628 | 610 | <div id="camposDigitalizadoComplementar" style=" float: left; width: 50%; display: none;"> |
629 | 611 | |
630 | 612 | <div style="float: left; width: 100%;"> |
631 | 613 | |
632 | - <label style="font-weight: bold;" class="infraLabel"> Documento Objeto da Digitalização era: </label> <br/> | |
614 | + <label style="font-weight: bold;" class="infraLabel"> Conferência com o documento digitalizado:</label> <br/> | |
633 | 615 | |
634 | 616 | <select class="infraSelect" id="TipoConferenciaComplementar" name="TipoConferenciaComplementar" width="285" |
635 | 617 | style="width: 285px; float:left; margin-right: 5px;"> |
... | ... | @@ -647,40 +629,40 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
647 | 629 | |
648 | 630 | </div> |
649 | 631 | |
650 | - <div id="camposDigitalizadoComplementarBotao" style=" float: left; width: 50%; display: none;"> | |
632 | + <div id="camposDigitalizadoComplementarBotao" style=" float: left; width: 50%;"> | |
651 | 633 | <input type="button" class="infraButton" value="Adicionar" onclick="validarUploadArquivo('3')"> |
652 | 634 | </div> |
653 | 635 | |
654 | 636 | <div style="clear: both;"> </div> |
655 | 637 | |
656 | - <table id="tbDocumentoComplementar" name="tbDocumentoComplementar" class="infraTable" style="width:95%;"> | |
638 | + <table id="tbDocumentoComplementar" name="tbDocumentoComplementar" class="infraTable" style="width:95%;"> | |
657 | 639 | |
658 | 640 | <tr> |
659 | - <th class="infraTh" style="width:30%;">Nome</th> | |
660 | - <th class="infraTh" style="width: 70px;" align="center">Data</th> | |
661 | - <th class="infraTh" align="center">Tamanho</th> | |
662 | - <th class="infraTh" align="center" style="width:30%;">Documento</th> | |
663 | - <th class="infraTh" style="width: 120px;" align="center">Nível de acesso</th> | |
641 | + <th class="infraTh" style="width:25%;">Nome do Arquivo</th> | |
642 | + <th class="infraTh" style="width:80px;" align="center">Data</th> | |
643 | + <th class="infraTh" style="width:80px;" align="center">Tamanho</th> | |
644 | + <th class="infraTh" style="width:25%;" align="center">Documento</th> | |
645 | + <th class="infraTh" style="width:120px;" align="center">Nível de Acesso</th> | |
664 | 646 | |
665 | 647 | <!-- colunas nao exibidas na tela, usadas apenas para guardar valor na grid (note que estao com display:none) --> |
666 | - <th class="infraTh" style="display: none;"> Hipotese legal </th> | |
667 | - <th class="infraTh" style="display: none;"> Formato de documento </th> | |
668 | - <th class="infraTh" style="display: none;"> Tipo de Conferencia </th> | |
669 | - <th class="infraTh" style="display: none;"> Nome Upload servidor </th> | |
670 | - <th class="infraTh" style="display: none;"> ID Tipo de Documento </th> | |
648 | + <th class="infraTh" style="display: none;">Hipótese Legal</th> | |
649 | + <th class="infraTh" style="display: none;">Formato</th> | |
650 | + <th class="infraTh" style="display: none;">Tipo de Conferência</th> | |
651 | + <th class="infraTh" style="display: none;">Nome Upload servidor</th> | |
652 | + <th class="infraTh" style="display: none;">ID Tipo de Documento</th> | |
653 | + <th class="infraTh" style="display: none;">Complemento</th> | |
654 | + <th class="infraTh" style="width: 120px;" align="center">Formato</th> | |
671 | 655 | |
672 | 656 | <!-- Coluna de ações (Baixar, remover) da grid --> |
673 | - <th class="infraTh" style="width: 70px;">Ações</th> | |
657 | + <th align="center" class="infraTh" style="width:50px;">Ações</th> | |
674 | 658 | </tr> |
675 | 659 | |
676 | - </table> <br/><br/> | |
660 | + </table> <br/><br/> | |
677 | 661 | |
678 | - <? } ?> | |
679 | - | |
680 | - <!-- ================================== FIM DOCUMENTOS COMPLEMENTARES =============================================== --> | |
681 | - </form> | |
682 | - | |
683 | -<? } ?> | |
662 | + <? } ?> | |
663 | + </form> | |
664 | + <!-- ================================== FIM DOCUMENTOS COMPLEMENTARES =============================================== --> | |
665 | + | |
684 | 666 | </fieldset> |
685 | 667 | |
686 | 668 | <!-- =========================== --> | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_inicializacao.php
... | ... | @@ -96,6 +96,9 @@ $objTipoProcDTO->setNumIdTipoProcessoPeticionamento( $idTipoProc ); |
96 | 96 | $objTipoProcRN = new TipoProcessoPeticionamentoRN(); |
97 | 97 | $objTipoProcDTO = $objTipoProcRN->consultar( $objTipoProcDTO ); |
98 | 98 | |
99 | +//texto de orientacoes | |
100 | +$txtOrientacoes = $objTipoProcDTO->getStrOrientacoes(); | |
101 | + | |
99 | 102 | //obtendo a unidade do tipo de processo selecionado - Pac 10 - pode ser uma ou MULTIPLAS unidades selecionadas |
100 | 103 | $relTipoProcUnidadeDTO = new RelTipoProcessoUnidadePeticionamentoDTO(); |
101 | 104 | $relTipoProcUnidadeDTO->retTodos(); |
... | ... | @@ -141,7 +144,7 @@ else if( $arrRelTipoProcUnidadeDTO != null && count( $arrRelTipoProcUnidadeDTO ) |
141 | 144 | $ObjRelTipoProcessoSeriePeticionamentoRN = new RelTipoProcessoSeriePeticionamentoRN(); |
142 | 145 | $ObjRelTipoProcessoSeriePeticionamentoDTO = new RelTipoProcessoSeriePeticionamentoDTO(); |
143 | 146 | $ObjRelTipoProcessoSeriePeticionamentoDTO->retTodos(); |
144 | -$ObjRelTipoProcessoSeriePeticionamentoDTO->setNumIdTipoProcessoPeticionamento( 2 ); | |
147 | +$ObjRelTipoProcessoSeriePeticionamentoDTO->setNumIdTipoProcessoPeticionamento( $idTipoProc ); | |
145 | 148 | $arrTiposDocumentosComplementares = $ObjRelTipoProcessoSeriePeticionamentoRN->listar( $ObjRelTipoProcessoSeriePeticionamentoDTO ); |
146 | 149 | //print_r( $arrTiposDocumentosComplementares ); die(); |
147 | 150 | |
... | ... | @@ -182,6 +185,7 @@ if( $isNivelAcessoPadrao == 'S' && $nivelAcessoPadrao == "1"){ |
182 | 185 | $objTipoProcDTO = $objTipoProcRN->consultar( $objTipoProcDTO ); |
183 | 186 | $idHipoteseLegalPadrao = $objTipoProcDTO->getNumIdHipoteseLegal(); |
184 | 187 | $strHipoteseLegalPadrao = $objTipoProcDTO->getStrNomeHipoteseLegal(); |
188 | + $strHipoteseLegalPadrao .= " (".$objTipoProcDTO->getStrBaseLegalHipoteseLegal().")"; | |
185 | 189 | } |
186 | 190 | |
187 | 191 | $isUsuarioExternoPodeIndicarNivelAcesso = $objTipoProcDTO->getStrSinNaUsuarioExterno(); |
... | ... | @@ -206,20 +210,6 @@ $ObjTipoProcessoPeticionamentoDTO = $objTipoProcessoPeticionamentoRN->consultar( |
206 | 210 | |
207 | 211 | $txtTipoProcessoEscolhido = $objTipoProcDTO->getStrNomeProcesso(); |
208 | 212 | |
209 | -//texto de orientacoes | |
210 | -$objTipoProcessoOrientacoesPeticionamentoDTO2 = new TipoProcessoOrientacoesPeticionamentoDTO(); | |
211 | -$objTipoProcessoOrientacoesPeticionamentoDTO2->setNumIdTipoProcessoOrientacoesPeticionamento(TipoProcessoOrientacoesPeticionamentoRN::$ID_FIXO_TP_PROCESSO_ORIENTACOES); | |
212 | -$objTipoProcessoOrientacoesPeticionamentoDTO2->retTodos(); | |
213 | - | |
214 | -$objTipoProcessoOrientacoesPeticionamentoRN = new TipoProcessoOrientacoesPeticionamentoRN(); | |
215 | -$objLista = $objTipoProcessoOrientacoesPeticionamentoRN->listar($objTipoProcessoOrientacoesPeticionamentoDTO2); | |
216 | -$alterar = count($objLista) > 0; | |
217 | - | |
218 | -$txtOrientacoes =''; | |
219 | -if($alterar){ | |
220 | - $txtOrientacoes = $objLista[0]->getStrOrientacoesGerais(); | |
221 | -} | |
222 | - | |
223 | 213 | //preeche a lista de interessados PF/PJ CASO 2 |
224 | 214 | $arrPFPJInteressados = array(); |
225 | 215 | |
... | ... | @@ -304,8 +294,6 @@ $numSeiTamMbDocExterno = ($numSeiTamMbDocExterno < 1024 ? $numSeiTamMbDocExterno |
304 | 294 | //$arrTipoConferencia = ; |
305 | 295 | $urlBaseLink = ""; |
306 | 296 | $arrComandos = array(); |
307 | -$arrComandos[] = '<button type="button" accesskey="P" name="Peticionar" value="Peticionar" onclick="abrirPeticionar()" class="infraButton"><span class="infraTeclaAtalho">P</span>eticionar</button>'; | |
308 | -$arrComandos[] = '<button type="button" accesskey="F" name="btnFechar" value="Fechar" onclick="location.href=\''. | |
309 | - | |
310 | -PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_usuario_externo_iniciar&id_orgao_acesso_externo=0')).'\';" class="infraButton"><span class="infraTeclaAtalho">V</span>oltar</button>'; | |
297 | +$arrComandos[] = '<button type="button" accesskey="p" name="Peticionar" id="Peticionar" value="Peticionar" onclick="abrirPeticionar()" class="infraButton"><span class="infraTeclaAtalho">P</span>eticionar</button>'; | |
298 | +$arrComandos[] = '<button type="button" accesskey="v" name="btnVoltar" id="btnVoltar" value="Voltar" onclick="location.href=\''.PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_usuario_externo_iniciar&id_orgao_acesso_externo=0')).'\';" class="infraButton"><span class="infraTeclaAtalho">V</span>oltar</button>'; | |
311 | 299 | ?> |
312 | 300 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_js.php
... | ... | @@ -7,6 +7,8 @@ |
7 | 7 | * Funções de JS para cadastro de peticionamento de usuario externo |
8 | 8 | * Essa página é incluida na página principal do cadastro de peticionamento |
9 | 9 | * |
10 | +* Documento com este mesmo nome de arquivo já foi adicionado. | |
11 | +* | |
10 | 12 | */ |
11 | 13 | |
12 | 14 | $strLinkAnexos = SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_usuario_externo_upload_anexo&id_tipo_procedimento=' |
... | ... | @@ -76,6 +78,13 @@ if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoP |
76 | 78 | |
77 | 79 | //TODO refatorar para utilizar controlador_ajax |
78 | 80 | $strLinkAjaxContato = SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=contato_cpf_cnpj'); |
81 | + | |
82 | +//Validacao de tipo de arquivos | |
83 | +$strSelExtensoesPrin = GerirExtensoesArquivoPeticionamentoINT::recuperaExtensoes(null,null,null,'S'); | |
84 | +$strSelExtensoesComp = GerirExtensoesArquivoPeticionamentoINT::recuperaExtensoes(null,null,null,'N'); | |
85 | + | |
86 | +$strLinkAjaxChecarConteudoDocumento = SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=validar_documento_principal'); | |
87 | + | |
79 | 88 | ?> |
80 | 89 | <script type="text/javascript"> |
81 | 90 | |
... | ... | @@ -92,6 +101,8 @@ var objTabelaDocComplementar = null; |
92 | 101 | var objAutoCompletarInteressado = null; |
93 | 102 | var objLupaInteressados = null; |
94 | 103 | |
104 | +var docTipoEssencial = Array(); | |
105 | + | |
95 | 106 | function validarQtdArquivosPrincipal(){ |
96 | 107 | |
97 | 108 | try { |
... | ... | @@ -108,6 +119,30 @@ function validarUploadArquivo(numero){ |
108 | 119 | try { |
109 | 120 | |
110 | 121 | var isValido = true; |
122 | + | |
123 | + if( numero == '1'){ | |
124 | + | |
125 | + //se a tabela existir na tela (ou seja se for doc principal do tipo externo) | |
126 | + //nao permitir adicionar mais do que 1 documento na grid | |
127 | + var tbDocumentoPrincipal = document.getElementById('tbDocumentoPrincipal'); | |
128 | + var hiddenCampoPrincipal = document.getElementById('hdnDocPrincipal'); | |
129 | + | |
130 | + if( tbDocumentoPrincipal != null && | |
131 | + tbDocumentoPrincipal != undefined ){ | |
132 | + | |
133 | + if( hiddenCampoPrincipal != null && | |
134 | + hiddenCampoPrincipal != undefined && | |
135 | + hiddenCampoPrincipal.value != '' ){ | |
136 | + | |
137 | + alert('Somente pode ter um Documento Principal.'); | |
138 | + isValido = false; | |
139 | + return; | |
140 | + | |
141 | + } | |
142 | + | |
143 | + } | |
144 | + | |
145 | + } | |
111 | 146 | |
112 | 147 | //validar se selecionou nivel de acesso |
113 | 148 | var cbHipoteseLegal = document.getElementById('hipoteseLegal'+numero); |
... | ... | @@ -149,55 +184,76 @@ function validarUploadArquivo(numero){ |
149 | 184 | alert('Informe o arquivo para upload.'); |
150 | 185 | isValido = false; |
151 | 186 | fileArquivo.focus(); |
187 | + return; | |
152 | 188 | } |
153 | 189 | |
154 | 190 | //validar campo/combo Tipo (apenas para Essencial ou Complementar) |
155 | 191 | else if( ( numero == '2' || numero == '3' ) && ( cbTipo == undefined || cbTipo == null || cbTipo.value == '') ){ |
156 | 192 | alert('Informe o Tipo.'); |
157 | 193 | isValido = false; |
158 | - cbTipo.focus(); | |
194 | + cbTipo.focus(); | |
195 | + return; | |
196 | + } | |
197 | + | |
198 | + if(numero == '2'){ | |
199 | + | |
200 | + docTipoEssencial.push(cbTipo.value); | |
201 | + | |
202 | + //validar campo Complemento | |
203 | + if( strTxtComplemento == ""){ | |
204 | + alert('Informe o Complemento.'); | |
205 | + isValido = false; | |
206 | + document.getElementById('complemento' + complemento).focus(); | |
207 | + return; | |
208 | + } | |
209 | + | |
159 | 210 | } |
160 | 211 | |
161 | 212 | //validar campo Complemento |
162 | - else if( strTxtComplemento == ""){ | |
213 | + if( strTxtComplemento == ""){ | |
163 | 214 | alert('Informe o Complemento.'); |
164 | 215 | isValido = false; |
165 | 216 | document.getElementById('complemento' + complemento).focus(); |
217 | + return; | |
166 | 218 | } |
167 | 219 | |
168 | 220 | //validar campo nivel de acesso |
169 | 221 | else if( strNivelAcesso == ""){ |
170 | - alert('Informe o nível de acesso.'); | |
222 | + alert('Informe o Nível de Acesso.'); | |
171 | 223 | isValido = false; |
172 | 224 | cbNivelAcesso.focus(); |
225 | + return; | |
173 | 226 | } |
174 | 227 | |
175 | 228 | //se informou Nivel de Acesso restrito, entao precisa informar tambem a hipotese legal |
176 | 229 | else if( ( cbHipoteseLegal != null && cbHipoteseLegal != undefined ) && strNivelAcesso == '1' && strHipoteseLegal == ''){ |
177 | 230 | |
178 | - alert('Informe a hipótese legal.'); | |
231 | + alert('Informe a Hipótese Legal.'); | |
179 | 232 | isValido = false; |
180 | 233 | cbHipoteseLegal.focus(); |
234 | + return; | |
181 | 235 | |
182 | 236 | } |
183 | 237 | |
184 | 238 | else if( strFormatoDocumento == ''){ |
185 | - alert('Informe o formato do documento.'); | |
239 | + alert('Informe o Formato do Documento.'); | |
186 | 240 | isValido = false; |
241 | + return; | |
187 | 242 | } |
188 | 243 | |
189 | 244 | //se marcou formato de documento Digitalizado, verificar se selecione o tipo de conferencia |
190 | 245 | else if( strFormatoDocumento == 'digitalizado' && strTipoConferencia == '' ){ |
191 | - alert('Informe o Documento Objeto da Digitalização.'); | |
246 | + alert('Informe a Conferência com o documento digitalizado.'); | |
192 | 247 | isValido = false; |
193 | 248 | cbTipoConferencia.focus(); |
249 | + return; | |
194 | 250 | } |
195 | 251 | |
196 | 252 | //validar tamanho do arquivo no lado server side apenas |
197 | 253 | if( isValido ){ |
198 | 254 | |
199 | 255 | if(numero == '1'){ objPrincipalUpload.executar(); } |
200 | - else if(numero == '2'){ objEssencialUpload.executar(); } | |
256 | + else if(numero == '2'){ objEssencialUpload.executar(); return true; } | |
201 | 257 | else if(numero == '3'){ objComplementarUpload.executar(); } |
202 | 258 | |
203 | 259 | } |
... | ... | @@ -209,6 +265,119 @@ function validarUploadArquivo(numero){ |
209 | 265 | |
210 | 266 | } |
211 | 267 | |
268 | +//para uso em um caso excepcional do tipo essencial | |
269 | +function validarUploadArquivoEssencial(){ | |
270 | + | |
271 | + try { | |
272 | + | |
273 | + var numero = '2'; | |
274 | + var isValido = true; | |
275 | + | |
276 | + //validar se selecionou nivel de acesso | |
277 | + var cbHipoteseLegal = document.getElementById('hipoteseLegal'+numero); | |
278 | + var cbNivelAcesso = document.getElementById('nivelAcesso'+numero); | |
279 | + var strNivelAcesso = cbNivelAcesso.value; | |
280 | + var strHipoteseLegal = ''; | |
281 | + | |
282 | + if( cbHipoteseLegal != null && cbHipoteseLegal != undefined ){ | |
283 | + strHipoteseLegal = cbHipoteseLegal.value; | |
284 | + } | |
285 | + | |
286 | + //verificar se marcou o formato de documento | |
287 | + var complemento = 'Essencial'; | |
288 | + var fileArquivo = document.getElementById('fileArquivo' + complemento); | |
289 | + var cbTipo = document.getElementById('tipoDocumento' + complemento); | |
290 | + var strFormatoDocumento = ''; | |
291 | + var cbTipoConferencia = document.getElementById('TipoConferencia' + complemento); | |
292 | + var strTipoConferencia = document.getElementById('TipoConferencia' + complemento).value; | |
293 | + | |
294 | + var radios = document.getElementsByName('formatoDocumento'+complemento); | |
295 | + for (var i = 0, length = radios.length; i < length; i++) { | |
296 | + | |
297 | + if (radios[i].checked) { | |
298 | + strFormatoDocumento = radios[i].value; | |
299 | + break; | |
300 | + } | |
301 | + } | |
302 | + | |
303 | + //validar campo Complemento | |
304 | + var strTxtComplemento = document.getElementById('complemento' + complemento).value; | |
305 | + | |
306 | + //verificar se algum arquivo foi selecionado para o upload | |
307 | + if( fileArquivo.value == '' ){ | |
308 | + alert('Informe o arquivo para upload.'); | |
309 | + isValido = false; | |
310 | + fileArquivo.focus(); | |
311 | + return; | |
312 | + } | |
313 | + | |
314 | + //validar campo/combo Tipo (apenas para Essencial ou Complementar) | |
315 | + else if( cbTipo == undefined || cbTipo == null || cbTipo.value == '' ){ | |
316 | + alert('Informe o Tipo.'); | |
317 | + isValido = false; | |
318 | + cbTipo.focus(); | |
319 | + return; | |
320 | + } | |
321 | + | |
322 | + docTipoEssencial.push(cbTipo.value); | |
323 | + | |
324 | + //validar campo Complemento | |
325 | + if( strTxtComplemento == ""){ | |
326 | + alert('Informe o Complemento.'); | |
327 | + isValido = false; | |
328 | + document.getElementById('complemento' + complemento).focus(); | |
329 | + return; | |
330 | + } | |
331 | + | |
332 | + //validar campo Complemento | |
333 | + if( strTxtComplemento == ""){ | |
334 | + alert('Informe o Complemento.'); | |
335 | + isValido = false; | |
336 | + document.getElementById('complemento' + complemento).focus(); | |
337 | + return; | |
338 | + } | |
339 | + | |
340 | + //validar campo nivel de acesso | |
341 | + else if( strNivelAcesso == ""){ | |
342 | + alert('Informe o Nível de Acesso.'); | |
343 | + isValido = false; | |
344 | + cbNivelAcesso.focus(); | |
345 | + return; | |
346 | + } | |
347 | + | |
348 | + //se informou Nivel de Acesso restrito, entao precisa informar tambem a hipotese legal | |
349 | + else if( ( cbHipoteseLegal != null && cbHipoteseLegal != undefined ) && strNivelAcesso == '1' && strHipoteseLegal == ''){ | |
350 | + | |
351 | + alert('Informe a Hipótese Legal.'); | |
352 | + isValido = false; | |
353 | + cbHipoteseLegal.focus(); | |
354 | + return; | |
355 | + | |
356 | + } | |
357 | + | |
358 | + else if( strFormatoDocumento == ''){ | |
359 | + alert('Informe o Formato do Documento.'); | |
360 | + isValido = false; | |
361 | + return; | |
362 | + } | |
363 | + | |
364 | + //se marcou formato de documento Digitalizado, verificar se selecione o tipo de conferencia | |
365 | + else if( strFormatoDocumento == 'digitalizado' && strTipoConferencia == '' ){ | |
366 | + alert('Informe a Conferência com o documento digitalizado.'); | |
367 | + isValido = false; | |
368 | + cbTipoConferencia.focus(); | |
369 | + return; | |
370 | + } | |
371 | + | |
372 | + return isValido; | |
373 | + | |
374 | + } catch(err) { | |
375 | + alert(" Erro: " + err); | |
376 | + console.log(err.stack); | |
377 | + } | |
378 | + | |
379 | +} | |
380 | + | |
212 | 381 | function getStrTipoDocumento( idItem, complemento ){ |
213 | 382 | |
214 | 383 | var options = document.getElementById('tipoDocumento'+complemento).options; |
... | ... | @@ -269,21 +438,29 @@ function limparCampoUpload( numero ){ |
269 | 438 | |
270 | 439 | } |
271 | 440 | |
272 | - document.getElementById('camposDigitalizado'+complemento).style.display = 'none'; | |
441 | + //document.getElementById('camposDigitalizado'+complemento).style.display = 'none'; | |
273 | 442 | |
274 | 443 | //limpar e ocultar hipotese legal ( divhipoteseLegal1 ) |
275 | - document.getElementById('divhipoteseLegal'+numero).style.display = 'none'; | |
444 | + if(cbNivelAcesso.getAttribute("type")!= 'hidden'){ | |
445 | + document.getElementById('divhipoteseLegal'+numero).style.display = 'none'; | |
446 | + } | |
276 | 447 | |
277 | 448 | //limpar o campo Complemento |
278 | 449 | document.getElementById('complemento'+complemento).value = ''; |
279 | 450 | |
280 | 451 | //retornar a combo "Nivel de Acesso" para a primeira opçao selecionada |
281 | - cbNivelAcesso.options[0].selected='selected'; | |
452 | + if(cbNivelAcesso.getAttribute("type")!= 'hidden'){ | |
453 | + cbNivelAcesso.options[0].selected='selected'; | |
454 | + } | |
282 | 455 | |
283 | 456 | //se nao for o "Principal", resetar a seleçao da combo "Tipo" |
284 | 457 | if(numero != '1'){ |
285 | 458 | document.getElementById('tipoDocumento'+complemento).options[0].selected='selected'; |
286 | 459 | } |
460 | + | |
461 | + cbTipoConferencia.options[0].selected='selected'; | |
462 | + document.getElementById('camposDigitalizado'+complemento).style.display = 'none'; | |
463 | + document.getElementById('camposDigitalizado'+complemento+'Botao').style.display = 'block'; | |
287 | 464 | |
288 | 465 | } |
289 | 466 | |
... | ... | @@ -537,8 +714,21 @@ function addFormatoDocumento(){ |
537 | 714 | alert('Formato documento'); |
538 | 715 | } |
539 | 716 | |
540 | -function validarFormulario(){ | |
717 | +//função de apoio para debug | |
718 | +function dump(obj) { | |
719 | + | |
720 | + var out = ''; | |
721 | + | |
722 | + for (var i in obj) { | |
723 | + out += i + ": " + obj[i] + "\n"; | |
724 | + } | |
725 | + | |
726 | + alert(out); | |
727 | + | |
728 | +} | |
541 | 729 | |
730 | +function validarFormulario(){ | |
731 | + | |
542 | 732 | //valida campo especificação |
543 | 733 | var textoEspecificacao = document.getElementById("txtEspecificacao").value; |
544 | 734 | var cbUF = document.getElementById("selUFAberturaProcesso"); |
... | ... | @@ -551,7 +741,7 @@ function validarFormulario(){ |
551 | 741 | } |
552 | 742 | |
553 | 743 | if( textoEspecificacao == '' ){ |
554 | - alert('Informe a especificação.'); | |
744 | + alert('Informe a Especificação.'); | |
555 | 745 | document.getElementById("txtEspecificacao").focus(); |
556 | 746 | return false; |
557 | 747 | } |
... | ... | @@ -563,12 +753,182 @@ function validarFormulario(){ |
563 | 753 | } |
564 | 754 | |
565 | 755 | if( selInteressados != undefined && selInteressados != null && selInteressados.value == '' ){ |
566 | - alert('Informe o(s) interessado(s).'); | |
756 | + alert('Informe o(s) Interessado(s).'); | |
567 | 757 | selInteressados.focus(); |
568 | 758 | return false; |
569 | 759 | } |
570 | 760 | |
761 | + //aplicando validações relacionadas ao documento principal | |
762 | + var fileArquivoPrincipal = document.getElementById('fileArquivoPrincipal'); | |
763 | + var complementoPrincipal = document.getElementById('complementoPrincipal'); | |
764 | + var nivelAcessoPrincipal = document.getElementById('nivelAcesso1'); | |
765 | + var hipoteseLegalPrincipal = document.getElementById('hipoteseLegal1'); | |
766 | + | |
767 | + //validando seleçao de nivel de acesso principal e hipotese legal principal | |
768 | + var tbDocumentoPrincipal = document.getElementById('tbDocumentoPrincipal'); | |
769 | + | |
770 | + //se for documento principao do tipo externo, só validar complemento, | |
771 | + // nivel de acesso e hipotese legal SE a grid estiver ainda sem nenhum documento | |
772 | + if( tbDocumentoPrincipal != null && | |
773 | + tbDocumentoPrincipal != undefined ){ | |
774 | + | |
775 | + var hdnDocPrincipal = document.getElementById('hdnDocPrincipal').value; | |
776 | + | |
777 | + if( hdnDocPrincipal == "" && fileArquivoPrincipal.value == ''){ | |
778 | + alert('Informe o Documento Principal.'); | |
779 | + fileArquivoPrincipal.focus(); | |
780 | + return false; | |
781 | + | |
782 | + } else if( hdnDocPrincipal == "" && complementoPrincipal.value == ''){ | |
783 | + alert('Informe o Complemento.'); | |
784 | + complementoPrincipal.focus(); | |
785 | + return false; | |
786 | + | |
787 | + } else if( hdnDocPrincipal == "" && nivelAcessoPrincipal.value == ''){ | |
788 | + alert('Informe o Nível de Acesso.'); | |
789 | + nivelAcessoPrincipal.focus(); | |
790 | + return false; | |
791 | + | |
792 | + } else if( hdnDocPrincipal == "" && nivelAcessoPrincipal.value == '1' && hipoteseLegalPrincipal.value == ''){ | |
793 | + alert('Informe a Hipótese Legal.'); | |
794 | + hipoteseLegalPrincipal.focus(); | |
795 | + return false; | |
796 | + } | |
797 | + | |
798 | + } | |
799 | + | |
800 | + //se for documento gerado sempre valida complemento, nivel de acesso e hipotese legal | |
801 | + else { | |
802 | + | |
803 | + if( nivelAcessoPrincipal.value == ''){ | |
804 | + alert('Informe o Nível de Acesso.'); | |
805 | + nivelAcessoPrincipal.focus(); | |
806 | + return false; | |
807 | + | |
808 | + } else if( nivelAcessoPrincipal.value == '1' && hipoteseLegalPrincipal.value == ''){ | |
809 | + alert('Informe a Hipótese Legal.'); | |
810 | + hipoteseLegalPrincipal.focus(); | |
811 | + return false; | |
812 | + } | |
813 | + | |
814 | + } | |
815 | + | |
816 | + //validar se pelo menos um doc principal foi adicionado CASO | |
817 | + //a grid de doc principal exista na tela (ou seja, quando a parametrização) | |
818 | + //informar doc principal do tipo Externo | |
819 | + | |
820 | + if( tbDocumentoPrincipal != null && | |
821 | + tbDocumentoPrincipal != undefined ){ | |
822 | + | |
823 | + var strHashPrincipal = document.getElementById('hdnDocPrincipal').value; | |
824 | + //alert( strHashPrincipal ); | |
825 | + | |
826 | + if( strHashPrincipal == ''){ | |
827 | + alert('Informe o Documento Principal.'); | |
828 | + document.getElementById('fileArquivoPrincipal').focus(); | |
829 | + return false; | |
830 | + } | |
831 | + } | |
832 | + | |
833 | + //caso doc principal seja do tipo "Gerado", fazer requisição AJAX | |
834 | + //para validar se usuário salvou na sessao algum conteudo para o documento | |
835 | + //caso nao tenha conteudo obrigar usuario a informar | |
836 | + else { | |
837 | + | |
838 | + /* | |
839 | + var conteudoDocumento = ""; | |
840 | + | |
841 | + $( document ).ready(function() { | |
842 | + | |
843 | + var formData = ""; | |
844 | + | |
845 | + $.ajax({ | |
846 | + url : "", | |
847 | + type: "POST", | |
848 | + data : formData, | |
849 | + success: function(data, textStatus, jqXHR) | |
850 | + { | |
851 | + | |
852 | + conteudoDocumento = data; | |
853 | + | |
854 | + }, | |
855 | + | |
856 | + error: function (jqXHR, textStatus, errorThrown) | |
857 | + { | |
858 | + alert('Erro ao validar documento principal.'); | |
859 | + console.log('Erro' + textStatus); | |
860 | + return; | |
861 | + } | |
862 | + }); | |
863 | + }); | |
864 | + | |
865 | + alert( conteudoDocumento ); | |
866 | + */ | |
867 | + | |
868 | + } | |
869 | + | |
870 | + //valida se todos os tipos essenciais contem na lista | |
871 | + | |
872 | + var comboTipoEssencial = document.getElementById('tipoDocumentoEssencial'); | |
873 | + | |
874 | + if(comboTipoEssencial!=null){ | |
875 | + var retornoUploadEssencial = false; | |
876 | + var validarTipoEssenc = true; | |
877 | + var strHashEssencial = document.getElementById('hdnDocEssencial').value; | |
878 | + | |
879 | + //caractere de quebra de linha/registro | |
880 | + var arrHashEssencial = strHashEssencial.split('¥'); | |
881 | + var qtdX = arrHashEssencial.length; | |
882 | + | |
883 | + if( qtdX == 1 && arrHashEssencial[0] == "" ){ | |
884 | + | |
885 | + arrHashEssencial = Array(); | |
886 | + arrHashEssencial[0] = strHashEssencial; | |
887 | + | |
888 | + } | |
889 | + | |
890 | + var local = 9; | |
891 | + var tiposIncluidos = Array(); | |
892 | + | |
893 | + //so vai adicionar no array dos incluidos quando tem registros na grid | |
894 | + if( strHashEssencial != "") { | |
895 | + | |
896 | + for(var i = 0; i < qtdX ; i++ ){ | |
897 | + | |
898 | + //caractere de quebra de coluna/campo | |
899 | + var arrLocal = arrHashEssencial[i].split('±'); | |
900 | + var tipo = arrLocal[local]; | |
901 | + | |
902 | + if(tiposIncluidos.indexOf(tipo) <= -1){ | |
903 | + tiposIncluidos.push(arrLocal[local]); | |
904 | + } | |
905 | + | |
906 | + } | |
907 | + | |
908 | + } else { | |
909 | + //grid vazia e campos de upload de essencial nao preenchidos | |
910 | + retornoUploadEssencial = validarUploadArquivoEssencial(); | |
911 | + | |
912 | + if( retornoUploadEssencial != true ){ | |
913 | + return false; | |
914 | + } | |
915 | + } | |
916 | + | |
917 | + var tamnhoOptions = comboTipoEssencial.options.length-1; | |
918 | + | |
919 | + if(tiposIncluidos.length == 0 || tamnhoOptions != tiposIncluidos.length){ | |
920 | + validarTipoEssenc = false; | |
921 | + } | |
922 | + | |
923 | + if(!validarTipoEssenc){ | |
924 | + alert('Deve adicionar pelo menos um Documento Essencial para cada Tipo.'); | |
925 | + document.getElementById('fileArquivoEssencial').focus(); | |
926 | + return false; | |
927 | + } | |
928 | + } | |
929 | + | |
571 | 930 | return true; |
931 | + | |
572 | 932 | } |
573 | 933 | |
574 | 934 | function abrirPeticionar(){ |
... | ... | @@ -577,8 +937,8 @@ function abrirPeticionar(){ |
577 | 937 | |
578 | 938 | infraAbrirJanela('<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?id_tipo_procedimento=' . $_GET['id_tipo_procedimento'] .'&acao=peticionamento_usuario_externo_concluir&tipo_selecao=2'))?>', |
579 | 939 | 'concluirPeticionamento', |
580 | - 750, | |
581 | - 415, | |
940 | + 770, | |
941 | + 464, | |
582 | 942 | '', //options |
583 | 943 | false); //modal |
584 | 944 | } |
... | ... | @@ -698,7 +1058,7 @@ function inicializar(){ |
698 | 1058 | |
699 | 1059 | <? if( $objTipoProcDTO->getStrSinIIIndicacaoDiretaContato() == 'S') { ?> |
700 | 1060 | objLupaInteressados = new infraLupaSelect('selInteressados','hdnInteressados','<?=$strLinkInteressadosSelecao?>'); |
701 | - | |
1061 | + | |
702 | 1062 | objAutoCompletarInteressado = new infraAjaxAutoCompletar('hdnIdInteressado','txtInteressado','<?=$strLinkAjaxInteressado?>'); |
703 | 1063 | objAutoCompletarInteressado.limparCampo = true; |
704 | 1064 | //objAutoCompletarInteressado.tamanhoMinimo = 3; |
... | ... | @@ -847,7 +1207,7 @@ function carregarCamposDocPrincipalUpload(){ |
847 | 1207 | //concatenacao de "Tipo" e "Complemento" |
848 | 1208 | var cbTpoPrincipal = document.getElementById('tipoDocumentoPrincipal'); |
849 | 1209 | var strComplemento = document.getElementById('complementoPrincipal').value; |
850 | - var documento = getStrTipoDocumento( cbTpoPrincipal.value, 'Principal' ) + ' - ' + strComplemento; | |
1210 | + var documento = getStrTipoDocumento( cbTpoPrincipal.value, 'Principal' ) + ' ' + strComplemento; | |
851 | 1211 | |
852 | 1212 | var nivelAcesso = getStrNivelAcesso( document.getElementById('nivelAcesso1').value ); |
853 | 1213 | |
... | ... | @@ -860,11 +1220,15 @@ function carregarCamposDocPrincipalUpload(){ |
860 | 1220 | } |
861 | 1221 | |
862 | 1222 | var formatoDocumento = $('input[name="formatoDocumentoPrincipal"]:checked').val(); |
1223 | + var formatoDocumentoLbl = 'Nato-digital'; | |
1224 | + if(formatoDocumento != 'nato'){ | |
1225 | + formatoDocumentoLbl = 'Digitalizado'; | |
1226 | + } | |
863 | 1227 | |
864 | 1228 | //TipoConferenciaPrincipal / TipoConferenciaEssencial |
865 | 1229 | var tipoConferencia = document.getElementById('TipoConferenciaPrincipal').value; |
866 | 1230 | |
867 | - objTabelaDocPrincipal.adicionar([ nome , dataHora , tamanhoFormatado , documento , nivelAcesso , hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoPrincipal.value, '' ]); | |
1231 | + objTabelaDocPrincipal.adicionar([ nome , dataHora , tamanhoFormatado , documento , nivelAcesso , hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoPrincipal.value,strComplemento,formatoDocumentoLbl, '' ]); | |
868 | 1232 | |
869 | 1233 | var strHashPrincipal = document.getElementById('hdnDocPrincipal').value; |
870 | 1234 | var arrHashPrincipal = strHashPrincipal.split('±'); |
... | ... | @@ -887,16 +1251,29 @@ function carregarCamposDocPrincipalUpload(){ |
887 | 1251 | |
888 | 1252 | limparCampoUpload('1'); |
889 | 1253 | |
890 | - //limpar campo do nivel de acesso | |
891 | - //limpar campo da hipotese legal | |
892 | - //limpar campo do formato de documento | |
893 | - //limpar campo do tipo de conferencia | |
1254 | + //aplicando valign='middle' nas colunas da tabela | |
1255 | + //(necessário especificamente para alinhar coluna ações) | |
1256 | + var table = document.getElementById("tbDocumentoPrincipal"); | |
1257 | + | |
1258 | + for (var i = 0, row; row = table.rows[i]; i++) { | |
1259 | + | |
1260 | + for (var j = 0, col; col = row.cells[j]; j++) { | |
1261 | + col.setAttribute("valign","middle"); | |
1262 | + } | |
1263 | + | |
1264 | + } | |
894 | 1265 | |
895 | 1266 | } |
896 | 1267 | |
897 | 1268 | objPrincipalUpload.validar = function(arr){ |
898 | 1269 | |
899 | - console.log(arr); | |
1270 | + //INICIO VALIDACAO EXTENSOES | |
1271 | + var arrExtensoesPermitidas = [<?=$strSelExtensoesPrin?>]; | |
1272 | + if ( $("#fileArquivoPrincipal").val().replace(/^.*\./, '')!='' && $.inArray( $("#fileArquivoPrincipal").val().replace(/^.*\./, '') , arrExtensoesPermitidas ) == -1 ) { | |
1273 | + alert("O arquivo selecionado não é permitido.\nSomente são permitidos arquivos com as extensões:\n<?=preg_replace("%'%"," ",$strSelExtensoesPrin)?> ."); | |
1274 | + return false; | |
1275 | + } | |
1276 | + //FIM VALIDACAO EXTENSOES | |
900 | 1277 | |
901 | 1278 | var arquivoPrincipal = document.getElementById('fileArquivoPrincipal').value; |
902 | 1279 | var ext = (arquivoPrincipal.substring(arquivoPrincipal.lastIndexOf(".")).toLowerCase()).split('.')[1]; |
... | ... | @@ -961,7 +1338,7 @@ function carregarCamposDocEssencialUpload(){ |
961 | 1338 | var cbTpoEssencial = document.getElementById('tipoDocumentoEssencial'); |
962 | 1339 | |
963 | 1340 | var strComplemento = document.getElementById('complementoEssencial').value; |
964 | - var documento = getStrTipoDocumento( cbTpoEssencial.value, 'Essencial' ) + ' - ' + strComplemento; | |
1341 | + var documento = getStrTipoDocumento( cbTpoEssencial.value, 'Essencial' ) + ' ' + strComplemento; | |
965 | 1342 | |
966 | 1343 | var nivelAcesso = getStrNivelAcesso( document.getElementById('nivelAcesso2').value ); |
967 | 1344 | |
... | ... | @@ -974,12 +1351,16 @@ function carregarCamposDocEssencialUpload(){ |
974 | 1351 | |
975 | 1352 | //var hipoteseLegal= ' hip legal essencial'; |
976 | 1353 | var formatoDocumento = $('input[name="formatoDocumentoEssencial"]:checked').val(); |
1354 | + var formatoDocumentoLbl = 'Nato-digital'; | |
1355 | + if(formatoDocumento != 'nato'){ | |
1356 | + formatoDocumentoLbl = 'Digitalizado'; | |
1357 | + } | |
977 | 1358 | |
978 | 1359 | //TipoConferenciaPrincipal / TipoConferenciaEssencial |
979 | 1360 | var tipoConferencia = document.getElementById('TipoConferenciaEssencial').value; |
980 | 1361 | |
981 | 1362 | //objTabelaDocPrincipal.adicionar([ nome , dataHora , tamanhoFormatado , documento , nivelAcesso , hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoPrincipal.value, '' ]); |
982 | - objTabelaDocEssencial.adicionar([ nome , dataHora , tamanhoFormatado , documento , nivelAcesso, hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoEssencial.value, '' ]); | |
1363 | + objTabelaDocEssencial.adicionar([ nome , dataHora , tamanhoFormatado , documento , nivelAcesso, hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoEssencial.value,strComplemento, formatoDocumentoLbl, '' ]); | |
983 | 1364 | //objTabelaDocEssencial.adicionar([ nomeUpload , nomeUpload, dataHora , '4', '5', '6', '7']); |
984 | 1365 | //objTabelaDocEssencial.adicionar([ nomeUpload , dataHora , tamanhoFormatado , documento , nivelAcesso , '']); |
985 | 1366 | //objTabelaDocEssencial.adicionar([ '-' , nomeUpload , dataHora , dataHora , tamanhoFormatado, documento, 'nivel de acesso', 'acoes' ]); |
... | ... | @@ -1006,11 +1387,29 @@ function carregarCamposDocEssencialUpload(){ |
1006 | 1387 | |
1007 | 1388 | limparCampoUpload('2'); |
1008 | 1389 | |
1390 | + var table = document.getElementById("tbDocumentoEssencial"); | |
1391 | + | |
1392 | + for (var i = 0, row; row = table.rows[i]; i++) { | |
1393 | + | |
1394 | + for (var j = 0, col; col = row.cells[j]; j++) { | |
1395 | + col.setAttribute("valign","middle"); | |
1396 | + } | |
1397 | + | |
1398 | + } | |
1399 | + | |
1009 | 1400 | |
1010 | 1401 | } |
1011 | 1402 | |
1012 | 1403 | objEssencialUpload.validar = function(arr){ |
1013 | 1404 | |
1405 | + //INICIO VALIDACAO EXTENSOES | |
1406 | + var arrExtensoesPermitidas = [<?=$strSelExtensoesComp?>]; | |
1407 | + if ( $("#fileArquivoEssencial").val().replace(/^.*\./, '')!='' && $.inArray( $("#fileArquivoEssencial").val().replace(/^.*\./, '') , arrExtensoesPermitidas ) == -1 ) { | |
1408 | + alert("O arquivo selecionado não é permitido.\nSomente são permitidos arquivos com as extensões:\n<?=preg_replace("%'%"," ",$strSelExtensoesComp)?> ."); | |
1409 | + return false; | |
1410 | + } | |
1411 | + //FIM VALIDACAO EXTENSOES | |
1412 | + | |
1014 | 1413 | var arquivoEssencial = document.getElementById('fileArquivoEssencial').value; |
1015 | 1414 | var ext = (arquivoEssencial.substring(arquivoEssencial.lastIndexOf(".")).toLowerCase()).split('.')[1]; |
1016 | 1415 | |
... | ... | @@ -1058,7 +1457,7 @@ function carregarCamposDocComplementarUpload(){ |
1058 | 1457 | //concatenacao de "Tipo" e "Complemento" |
1059 | 1458 | var cbTpoComplementar = document.getElementById('tipoDocumentoComplementar'); |
1060 | 1459 | var strComplemento = document.getElementById('complementoComplementar').value; |
1061 | - var documento = getStrTipoDocumento( cbTpoComplementar.value, 'Complementar' ) + ' - ' + strComplemento; | |
1460 | + var documento = getStrTipoDocumento( cbTpoComplementar.value, 'Complementar' ) + ' ' + strComplemento; | |
1062 | 1461 | |
1063 | 1462 | var nivelAcesso = getStrNivelAcesso( document.getElementById('nivelAcesso3').value ); |
1064 | 1463 | |
... | ... | @@ -1070,9 +1469,14 @@ function carregarCamposDocComplementarUpload(){ |
1070 | 1469 | } |
1071 | 1470 | |
1072 | 1471 | var formatoDocumento = $('input[name="formatoDocumentoComplementar"]:checked').val(); |
1472 | + var formatoDocumentoLbl = 'Nato-digital'; | |
1473 | + if(formatoDocumento != 'nato'){ | |
1474 | + formatoDocumentoLbl = 'Digitalizado'; | |
1475 | + } | |
1476 | + | |
1073 | 1477 | var tipoConferencia = document.getElementById('TipoConferenciaComplementar').value; |
1074 | 1478 | |
1075 | - objTabelaDocComplementar.adicionar([ nome , dataHora , tamanhoFormatado , documento , nivelAcesso, hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoComplementar.value, '' ]); | |
1479 | + objTabelaDocComplementar.adicionar([ nome , dataHora , tamanhoFormatado , documento , nivelAcesso, hipoteseLegal, formatoDocumento, tipoConferencia, nomeUpload, cbTpoComplementar.value, strComplemento,formatoDocumentoLbl, '' ]); | |
1076 | 1480 | //objTabelaDocComplementar.adicionar([ '-' , nomeUpload , dataHora , dataHora , tamanhoFormatado, documento, 'nivel de acesso', 'acoes' ]); |
1077 | 1481 | //objTabelaDocComplementar.adicionar([arr['nome_upload'],arr['nome'],arr['data_hora'],arr['tamanho'],infraFormatarTamanhoBytes(arr['tamanho']),'<?= time() ?>']); |
1078 | 1482 | |
... | ... | @@ -1095,11 +1499,28 @@ function carregarCamposDocComplementarUpload(){ |
1095 | 1499 | document.getElementById("fileArquivoComplementar").value = ''; |
1096 | 1500 | |
1097 | 1501 | limparCampoUpload('3'); |
1098 | - //document.getElementById('divArquivo').style.display = 'none'; | |
1502 | + | |
1503 | + var table = document.getElementById("tbDocumentoComplementar"); | |
1504 | + | |
1505 | + for (var i = 0, row; row = table.rows[i]; i++) { | |
1506 | + | |
1507 | + for (var j = 0, col; col = row.cells[j]; j++) { | |
1508 | + col.setAttribute("valign","middle"); | |
1509 | + } | |
1510 | + | |
1511 | + } | |
1099 | 1512 | } |
1100 | 1513 | |
1101 | 1514 | objComplementarUpload.validar = function(arr){ |
1102 | 1515 | |
1516 | + //INICIO VALIDACAO EXTENSOES | |
1517 | + var arrExtensoesPermitidas = [<?=$strSelExtensoesComp?>]; | |
1518 | + if ( $("#fileArquivoComplementar").val().replace(/^.*\./, '')!='' && $.inArray( $("#fileArquivoComplementar").val().replace(/^.*\./, '') , arrExtensoesPermitidas ) == -1 ) { | |
1519 | + alert("O arquivo selecionado não é permitido.\nSomente são permitidos arquivos com as extensões:\n<?=preg_replace("%'%"," ",$strSelExtensoesComp)?> ."); | |
1520 | + return false; | |
1521 | + } | |
1522 | + //FIM VALIDACAO EXTENSOES | |
1523 | + | |
1103 | 1524 | var arquivoComplementar = document.getElementById('fileArquivoComplementar').value; |
1104 | 1525 | var ext = (arquivoComplementar.substring(arquivoComplementar.lastIndexOf(".")).toLowerCase()).split('.')[1]; |
1105 | 1526 | |
... | ... | @@ -1144,7 +1565,7 @@ function carregarComponenteLupaInteressados( tipoAcao ){ |
1144 | 1565 | |
1145 | 1566 | function mascaraTexto( elem, evento ){ |
1146 | 1567 | |
1147 | - alert('entrou aqui'); | |
1568 | + //alert('entrou aqui'); | |
1148 | 1569 | var formPeticionamento = document.getElementById('frmPeticionamentoCadastro'); |
1149 | 1570 | //alert(formPeticionamento.tipoPessoa.value); |
1150 | 1571 | |
... | ... | @@ -1275,7 +1696,7 @@ function exibirAjudaCaso3(){ |
1275 | 1696 | } |
1276 | 1697 | |
1277 | 1698 | function exibirAjudaFormatoDocumento(){ |
1278 | - alert('Selecione a opção Nato-Digital se o arquivo a ser carregado foi criado originalmente em meio eletrônico.\n\n' + | |
1699 | + alert('Selecione a opção Nato-digital se o arquivo a ser carregado foi criado originalmente em meio eletrônico.\n\n' + | |
1279 | 1700 | 'Selecione a opção Digitalizado somente se o arquivo a ser carregado foi produzido da digitalização de um documento em papel.'); |
1280 | 1701 | } |
1281 | 1702 | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_concluir.php
... | ... | @@ -93,6 +93,27 @@ try { |
93 | 93 | $url = "controlador_externo.php?id_md_pet_rel_recibo_protoc=" . $idRecibo . "&acao=recibo_peticionamento_usuario_externo_consultar&acao_origem=recibo_peticionamento_usuario_externo_listar&acao_retorno=recibo_peticionamento_usuario_externo_listar&id_orgao_acesso_externo=0"; |
94 | 94 | $urlAssinada = SessaoSEIExterna::getInstance()->assinarLink( $url ); |
95 | 95 | |
96 | + //removendo atributos da sessao | |
97 | + if( SessaoSEIExterna::getInstance()->isSetAtributo('docPrincipalConteudoHTML') ){ | |
98 | + SessaoSEIExterna::getInstance()->removerAtributo('docPrincipalConteudoHTML'); | |
99 | + } | |
100 | + | |
101 | + if( SessaoSEIExterna::getInstance()->isSetAtributo('arrIdAnexoPrincipal') ){ | |
102 | + SessaoSEIExterna::getInstance()->removerAtributo('arrIdAnexoPrincipal'); | |
103 | + } | |
104 | + | |
105 | + if( SessaoSEIExterna::getInstance()->isSetAtributo('arrIdAnexoEssencial') ){ | |
106 | + SessaoSEIExterna::getInstance()->removerAtributo('arrIdAnexoEssencial'); | |
107 | + } | |
108 | + | |
109 | + if( SessaoSEIExterna::getInstance()->isSetAtributo('arrIdAnexoComplementar') ){ | |
110 | + SessaoSEIExterna::getInstance()->removerAtributo('arrIdAnexoComplementar'); | |
111 | + } | |
112 | + | |
113 | + if( SessaoSEIExterna::getInstance()->isSetAtributo('idDocPrincipalGerado') ){ | |
114 | + SessaoSEIExterna::getInstance()->removerAtributo('idDocPrincipalGerado'); | |
115 | + } | |
116 | + | |
96 | 117 | echo "<script>"; |
97 | 118 | echo "window.opener.location = '" . $urlAssinada . "';"; |
98 | 119 | echo " window.opener.focus();"; |
... | ... | @@ -108,7 +129,29 @@ try { |
108 | 129 | } |
109 | 130 | |
110 | 131 | }catch(Exception $e){ |
111 | - PaginaSEIExterna::getInstance()->processarExcecao($e); | |
132 | + | |
133 | + //removendo atributos da sessao | |
134 | + if( SessaoSEIExterna::getInstance()->isSetAtributo('docPrincipalConteudoHTML') ){ | |
135 | + SessaoSEIExterna::getInstance()->removerAtributo('docPrincipalConteudoHTML'); | |
136 | + } | |
137 | + | |
138 | + if( SessaoSEIExterna::getInstance()->isSetAtributo('arrIdAnexoPrincipal') ){ | |
139 | + SessaoSEIExterna::getInstance()->removerAtributo('arrIdAnexoPrincipal'); | |
140 | + } | |
141 | + | |
142 | + if( SessaoSEIExterna::getInstance()->isSetAtributo('arrIdAnexoEssencial') ){ | |
143 | + SessaoSEIExterna::getInstance()->removerAtributo('arrIdAnexoEssencial'); | |
144 | + } | |
145 | + | |
146 | + if( SessaoSEIExterna::getInstance()->isSetAtributo('arrIdAnexoComplementar') ){ | |
147 | + SessaoSEIExterna::getInstance()->removerAtributo('arrIdAnexoComplementar'); | |
148 | + } | |
149 | + | |
150 | + if( SessaoSEIExterna::getInstance()->isSetAtributo('idDocPrincipalGerado') ){ | |
151 | + SessaoSEIExterna::getInstance()->removerAtributo('idDocPrincipalGerado'); | |
152 | + } | |
153 | + | |
154 | + PaginaSEIExterna::getInstance()->processarExcecao($e); | |
112 | 155 | } |
113 | 156 | |
114 | 157 | $hashAnexo = ""; |
... | ... | @@ -129,22 +172,19 @@ PaginaSEIExterna::getInstance()->fecharHead(); |
129 | 172 | PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
130 | 173 | |
131 | 174 | $arrComandos = array(); |
132 | -$arrComandos[] = '<button type="button" accesskey="A" name="Assinar" value="Assinar" onclick="assinar()" class="infraButton"><span class="infraTeclaAtalho">A</span>ssinar</button>'; | |
133 | -$arrComandos[] = '<button type="button" accesskey="F" name="btnFechar" value="Fechar" onclick="fecharJanela()" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
175 | +$arrComandos[] = '<button type="button" accesskey="a" name="Assinar" value="Assinar" onclick="assinar()" class="infraButton"><span class="infraTeclaAtalho">A</span>ssinar</button>'; | |
176 | +$arrComandos[] = '<button type="button" accesskey="c" name="btnFechar" value="Fechar" onclick="fecharJanela()" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
134 | 177 | ?> |
135 | -<form id="frmConcluir" method="post" onsubmit="return OnSubmitForm();" | |
178 | +<form id="frmConcluir" method="post" onsubmit="return assinar();" | |
136 | 179 | action="<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?id_tipo_procedimento=' . $_GET['id_tipo_procedimento'] .'&acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> |
137 | 180 | <? |
138 | 181 | PaginaSEIExterna::getInstance()->montarBarraComandosSuperior($arrComandos); |
139 | 182 | PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
140 | 183 | ?> |
141 | 184 | |
142 | - <p> | |
143 | - <label> | |
144 | - Para concluir o peticionamento é necessário efetivar sua assinatura eletrônica. A confirmação de sua senha de acesso, abaixo, iniciará o efetivo peticionamento e importa na assinatura dos documentos nato-digitais e declaração de que são autênticos os digitalizados porventura anexados (neste segundo caso, é seu dever exclusivo conservar os originais em papel até que decaia o direito da Administração de rever os atos praticados no processo, para que, caso solicitado, sejam apresentados para qualquer tipo de conferência). | |
145 | - </label> | |
185 | + <p> | |
186 | + <label>A confirmação de sua senha de acesso iniciará o peticionamento e 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, são de sua exclusiva responsabilidade: a conformidade entre os dados informados e os documentos; 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; 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; 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; a consulta periódica ao SEI, a fim de verificar o recebimento de intimações eletrônicas.</label> | |
146 | 187 | </p> |
147 | - <br/> | |
148 | 188 | |
149 | 189 | <p> |
150 | 190 | <label class="infraLabelObrigatorio">Usuário Externo:</label> <br/> |
... | ... | @@ -155,9 +195,9 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
155 | 195 | </p> |
156 | 196 | |
157 | 197 | <p> |
158 | - <label class="infraLabelObrigatorio">Função:</label><br/> | |
198 | + <label class="infraLabelObrigatorio">Cargo/Função:</label><br/> | |
159 | 199 | <select id="selCargo" name="selCargo" class="infraSelect" style="width:60%;"> |
160 | - <option value="">Selecione um cargo</option> | |
200 | + <option value="">Selecione Cargo/Função</option> | |
161 | 201 | <? foreach( $arrObjCargoDTO as $cargo ){ |
162 | 202 | |
163 | 203 | if( $_POST['selCargo'] != $cargo->getNumIdCargo() ){ |
... | ... | @@ -174,13 +214,14 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
174 | 214 | </select> |
175 | 215 | </p> |
176 | 216 | |
177 | - <p> | |
178 | - <label class="infraLabelObrigatorio"> Senha de acesso ao SEI: </label> <br/> | |
217 | + <p> | |
218 | + <label class="infraLabelObrigatorio"> Senha de Acesso ao SEI: </label> <br/> | |
179 | 219 | <input type="password" name="senhaSEI" id="senhaSEI" class="infraText" autocomplete="off" style="width:60%;" /> |
180 | 220 | </p> |
181 | 221 | |
182 | 222 | <!-- Campos Hidden para preencher com valores da janela pai --> |
183 | 223 | <input type="hidden" id="txtEspecificacaoDocPrincipal" name="txtEspecificacaoDocPrincipal" /> |
224 | + <input type="hidden" id="nivelAcessoDocPrincipal" name="nivelAcessoDocPrincipal" /> | |
184 | 225 | <input type="hidden" id="grauSigiloDocPrincipal" name="grauSigiloDocPrincipal" /> |
185 | 226 | <input type="hidden" id="hdnListaInteressados" name="hdnListaInteressados" /> |
186 | 227 | |
... | ... | @@ -229,7 +270,7 @@ function isValido(){ |
229 | 270 | } |
230 | 271 | |
231 | 272 | function assinar(){ |
232 | - | |
273 | + | |
233 | 274 | if( isValido() ){ |
234 | 275 | |
235 | 276 | var textoEspecificacao = window.opener.document.getElementById('txtEspecificacao').value; |
... | ... | @@ -265,6 +306,7 @@ function assinar(){ |
265 | 306 | } |
266 | 307 | |
267 | 308 | document.getElementById('txtEspecificacaoDocPrincipal').value = textoEspecificacao; |
309 | + document.getElementById('nivelAcessoDocPrincipal').value = nivelAcesso; | |
268 | 310 | document.getElementById('grauSigiloDocPrincipal').value = nivelAcesso; |
269 | 311 | document.getElementById('hipoteseLegalDocPrincipal').value = hipoteseLegal; |
270 | 312 | |
... | ... | @@ -305,10 +347,6 @@ function assinar(){ |
305 | 347 | var hdnDocPrincipal = window.opener.document.getElementById('hdnDocPrincipal'); |
306 | 348 | var hdnDocEssencial = window.opener.document.getElementById('hdnDocEssencial'); |
307 | 349 | var hdnDocComplementar = window.opener.document.getElementById('hdnDocComplementar'); |
308 | - | |
309 | - //alert( hdnDocPrincipal.value ); | |
310 | - //alert( hdnDocEssencial.value ); | |
311 | - //alert( hdnDocComplementar.value ); | |
312 | 350 | |
313 | 351 | if( hdnDocPrincipal != null && hdnDocPrincipal != undefined){ |
314 | 352 | document.getElementById('hdnDocPrincipal').value = hdnDocPrincipal.value; |
... | ... | @@ -323,7 +361,8 @@ function assinar(){ |
323 | 361 | } |
324 | 362 | |
325 | 363 | document.getElementById('frmConcluir').submit(); |
326 | - } | |
364 | + | |
365 | + } | |
327 | 366 | |
328 | 367 | } |
329 | 368 | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_inicio.php
... | ... | @@ -38,8 +38,10 @@ try { |
38 | 38 | $alterar = count($objLista) > 0; |
39 | 39 | |
40 | 40 | $txtOrientacoes =''; |
41 | + $id_conjunto_estilos = null; | |
41 | 42 | if($alterar){ |
42 | 43 | $txtOrientacoes = $objLista[0]->getStrOrientacoesGerais(); |
44 | + $id_conjunto_estilos = $objLista[0]->getNumIdConjuntoEstilos(); | |
43 | 45 | } |
44 | 46 | |
45 | 47 | |
... | ... | @@ -62,6 +64,17 @@ try { |
62 | 64 | //DTO basico de Processo Peticionamento Novo |
63 | 65 | //$objIndisponibilidadePeticionamentoDTO = new IndisponibilidadePeticionamentoDTO(); |
64 | 66 | |
67 | + $objEditorRN = new EditorRN(); | |
68 | + | |
69 | + if ($_GET['iframe']!=''){ | |
70 | + PaginaSEIExterna::getInstance()->abrirStyle(); | |
71 | + echo $objEditorRN->montarCssEditor($id_conjunto_estilos); | |
72 | + PaginaSEIExterna::getInstance()->fecharStyle(); | |
73 | + echo $txtOrientacoes; | |
74 | + die(); | |
75 | + } | |
76 | + | |
77 | + | |
65 | 78 | //===================================================== |
66 | 79 | //FIM - VARIAVEIS PRINCIPAIS E LISTAS DA PAGINA |
67 | 80 | //===================================================== |
... | ... | @@ -113,11 +126,12 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
113 | 126 | ?> |
114 | 127 | <br /> |
115 | 128 | <br /> |
116 | - <fieldset id="field1" class="infraFieldset sizeFieldset"> | |
129 | + <fieldset id="field1" class="infraFieldset sizeFieldset" style="width:auto"> | |
117 | 130 | <legend class="infraLegend"> Orientações Gerais </legend> |
118 | - <label> | |
119 | - <?= $txtOrientacoes ?> | |
120 | - </label> | |
131 | + <? | |
132 | + echo '<iframe id=ifrConteudoHTML name=ifrConteudoHTML style="height:100%;width:100%" frameborder="0" marginheight="0" marginwidth="0" src="' . SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao=peticionamento_usuario_externo_iniciar&iframe=S') . '"></iframe>'; | |
133 | + ?> | |
134 | + | |
121 | 135 | </fieldset> |
122 | 136 | |
123 | 137 | <div id="divInfraAreaDadosDinamica" class="infraAreaDadosDinamica" style="width:50%"> |
... | ... | @@ -164,12 +178,48 @@ PaginaSEIExterna::getInstance()->fecharHtml(); |
164 | 178 | <script type="text/javascript"> |
165 | 179 | |
166 | 180 | function inicializar(){ |
167 | - | |
168 | 181 | infraEfeitoTabelas(); |
169 | - | |
182 | + document.getElementsByTagName("BODY")[0].onresize = function() {resizeIFramePorConteudo()}; | |
170 | 183 | } |
171 | 184 | |
172 | 185 | function OnSubmitForm() { |
173 | 186 | return true; |
174 | -} | |
187 | +} | |
188 | + | |
189 | +function resizeIFramePorConteudo(){ | |
190 | + var id = 'ifrConteudoHTML'; | |
191 | + var ifrm = document.getElementById(id); | |
192 | + ifrm.style.visibility = 'hidden'; | |
193 | + ifrm.style.height = "10px"; | |
194 | + | |
195 | + var doc = ifrm.contentDocument? ifrm.contentDocument : ifrm.contentWindow.document; | |
196 | + doc = doc || document; | |
197 | + var body = doc.body, html = doc.documentElement; | |
198 | + | |
199 | + ///console.clear(); | |
200 | + | |
201 | + ///var fieldset = document.getElementById('field1'); | |
202 | + ///console.log('field1'); | |
203 | + ///console.log(field1.scrollWidth+'-'+field1.offsetWidth+'-'+field1.clientWidth+'-'+field1.scrollWidth+'-'+field1.offsetWidth); | |
204 | + | |
205 | + ///console.log('body.scrollWidth-body.offsetWidth-html.clientWidth-html.scrollWidth-html.offsetWidth'); | |
206 | + ///console.log(body.scrollWidth+'-'+body.offsetWidth+'-'+html.clientWidth+'-'+html.scrollWidth+'-'+html.offsetWidth); | |
207 | + var width = Math.max( body.scrollWidth, body.offsetWidth, | |
208 | + html.clientWidth, html.scrollWidth, html.offsetWidth ); | |
209 | + ///ifrm.style.width=width+'px'; | |
210 | + ifrm.style.width='100%'; | |
211 | + | |
212 | + ///console.log('body.scrollHeight-body.offsetHeight-html.clientHeight-html.scrollHeight-html.offsetHeight'); | |
213 | + ///console.log(body.scrollHeight+'-'+body.offsetHeight+'-'+html.clientHeight+'-'+html.scrollHeight+'-'+html.offsetHeight); | |
214 | + var height = Math.max( body.scrollHeight, body.offsetHeight, | |
215 | + html.clientHeight, html.scrollHeight, html.offsetHeight ); | |
216 | + ifrm.style.height=height+'px'; | |
217 | + | |
218 | + ifrm.style.visibility = 'visible'; | |
219 | +} | |
220 | + | |
221 | +document.getElementById('ifrConteudoHTML').onload = function() { | |
222 | + resizeIFramePorConteudo(); | |
223 | +} | |
224 | + | |
175 | 225 | </script> |
176 | 226 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/recibo_peticionamento_usuario_externo_consulta.php
1 | 1 | <? |
2 | - /** | |
2 | +/** | |
3 | 3 | * ANATEL |
4 | 4 | * |
5 | 5 | * 28/06/2016 - criado por marcelo.bezerra - CAST |
6 | 6 | * |
7 | - */ | |
7 | +*/ | |
8 | 8 | |
9 | - try { | |
10 | - require_once dirname(__FILE__) . '/../../SEI.php'; | |
9 | +try { | |
10 | + | |
11 | + require_once dirname(__FILE__) . '/../../SEI.php'; | |
11 | 12 | |
12 | 13 | session_start(); |
13 | 14 | SessaoSEIExterna::getInstance()->validarLink(); |
... | ... | @@ -20,15 +21,11 @@ |
20 | 21 | // PDF - Gerando |
21 | 22 | if ($_POST['hdnInfraBarraLocalizacao'] != '' || $_POST['hdnInfraAreaDados'] != '') { |
22 | 23 | |
23 | - //$arr = PaginaSEI::getInstance()->getArrItensTabelaDinamica($_POST['hdnInfraBarraLocalizacao']); | |
24 | 24 | $arr = PaginaSEI::getInstance()->getArrItensTabelaDinamica($_POST['hdnInfraAreaDados']); |
25 | 25 | |
26 | - //$pdf = new InfraEtiquetasPDF('contato', 'mm', $_POST['txtColuna'], $_POST['txtLinha']); | |
27 | - //$pdf = new InfraEtiquetasPDF('contato', 'mm', 1, 1); | |
28 | 26 | require_once dirname(__FILE__) . '/util/InfraReciboPDF.php'; |
29 | 27 | $pdf = new InfraReciboPDF('contato', 'mm', 1, 1); |
30 | 28 | |
31 | - | |
32 | 29 | $pdf->Open(); |
33 | 30 | |
34 | 31 | $pdf->SetFont("arial", "B", "13"); |
... | ... | @@ -42,13 +39,12 @@ |
42 | 39 | $pdf->Add_PDF_Row(' ', '', 'J', 'V', 0); |
43 | 40 | $pdf->Add_PDF_Row(' ', '', 'J', 'V', 1); |
44 | 41 | |
45 | - | |
46 | 42 | for ($i = 0; $i < count($arr); $i++) { |
47 | 43 | $recibo = $arr[$i]; |
48 | - //$recibolinhas = ''; | |
44 | + | |
49 | 45 | for ($j = 0; $j < count($recibo); $j++) { |
50 | - //$recibolinhas = $recibolinhas . $recibo[$j] . "\n"; | |
51 | - $recibolinha = explode("|", $recibo[$j]); | |
46 | + | |
47 | + $recibolinha = explode("|", $recibo[$j]); | |
52 | 48 | //TD - primeira |
53 | 49 | $pdf->SetFont("", (strrpos($recibolinha[1], "<b>") > -1 ? "b" : ""), "8"); |
54 | 50 | $pdf->Set_Font_Size(8); |
... | ... | @@ -60,8 +56,7 @@ |
60 | 56 | $pdf->Set_Font_Size(8); |
61 | 57 | $pdf->Add_PDF_Row(str_replace('<b>', '', $recibolinha[0]), '', 'J', 'V', 1); |
62 | 58 | } |
63 | - //$pdf->Add_PDF_Row($recibolinhas, 'T', 'J', 'V'); | |
64 | - | |
59 | + | |
65 | 60 | } |
66 | 61 | $pdf->Set_Font_Size(8); |
67 | 62 | $pdf->Add_PDF_Row(' ', '', 'J', 'V', 0); |
... | ... | @@ -72,7 +67,6 @@ |
72 | 67 | } |
73 | 68 | // PDF - Gerando - FIM |
74 | 69 | |
75 | - | |
76 | 70 | //Titulo do Protocolo |
77 | 71 | $objReciboPeticionamentoDTO = new ReciboPeticionamentoDTO(); |
78 | 72 | $objReciboPeticionamentoDTO->setNumIdReciboPeticionamento($_GET['id_md_pet_rel_recibo_protoc']); |
... | ... | @@ -90,34 +84,29 @@ |
90 | 84 | $objInfraParametro = new InfraParametro(BancoSEI::getInstance()); |
91 | 85 | $idSerieParam = $objInfraParametro->getValor('ID_SERIE_RECIBO_MODULO_PETICIONAMENTO'); |
92 | 86 | |
93 | - //agora vamos obter o documento recibo que estará vinculado ao processo em questão | |
94 | - $docReciboDTO = new DocumentoDTO(); | |
95 | - $docRN = new DocumentoRN(); | |
96 | - $docReciboDTO->retTodos(); | |
97 | - $docReciboDTO->setDblIdProcedimento( $objProtocoloDTO->getDblIdProtocolo() ); | |
98 | - $docReciboDTO->setNumIdSerie( $idSerieParam ); | |
99 | - $docReciboDTO = $docRN->consultarRN0005( $docReciboDTO ); | |
100 | - //print_r( $docReciboDTO ); die(); | |
87 | + $documentoRN = new DocumentoRN(); | |
88 | + $documentoReciboDTO = new DocumentoDTO(); | |
89 | + $documentoReciboDTO->retStrProtocoloDocumentoFormatado(); | |
90 | + $documentoReciboDTO->setDblIdProcedimento( $objReciboPeticionamentoDTO->getNumIdProtocolo() ); | |
91 | + $documentoReciboDTO->setNumIdSerie( $idSerieParam ); | |
92 | + $documentoReciboDTO = $documentoRN->consultarRN0005( $documentoReciboDTO ); | |
101 | 93 | |
102 | - if( $docReciboDTO != null ){ | |
103 | - $strTitulo = 'Recibo Eletrônico de Protocolo - SEI n° ' . $docReciboDTO->getStrNumero(); | |
94 | + if( $documentoReciboDTO != null ){ | |
95 | + $strTitulo = 'Recibo Eletrônico de Protocolo - SEI n° ' . $documentoReciboDTO->getStrProtocoloDocumentoFormatado(); | |
104 | 96 | } else { |
105 | 97 | $strTitulo = 'Recibo Eletrônico de Protocolo'; |
106 | 98 | } |
99 | + | |
107 | 100 | break; |
108 | 101 | |
109 | - | |
110 | - break; | |
111 | - | |
112 | - | |
113 | 102 | default: |
114 | 103 | throw new InfraException("Ação '" . $_GET['acao'] . "' não reconhecida."); |
115 | 104 | } |
116 | 105 | |
117 | 106 | $arrComandos = array(); |
118 | - $arrComandos[] = '<button type="button" id="btnSalvarPDF" value="Salvar em PDF" onclick="salvarPDF();" class="infraButton">Salvar em PDF</button>'; | |
119 | - $arrComandos[] = '<button type="button" id="btnImprimir" value="Imprimir" onclick="imprimir();" class="infraButton">Imprimir</button>'; | |
120 | - $arrComandos[] = '<button type="button" accesskey="F" id="btnFechar" value="Fechar" onclick="location.href=\'' . PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?id_md_pet_rel_recibo_protoc=' . $_GET['id_md_pet_rel_recibo_protoc'] . '&acao=' . PaginaSEIExterna::getInstance()->getAcaoRetorno() . '&acao_origem=' . $_GET['acao'])) . '\'" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
107 | + $arrComandos[] = '<button type="button" accesskey="s" id="btnSalvarPDF" value="Salvar em PDF" onclick="salvarPDF();" class="infraButton"><span class="infraTeclaAtalho">S</span>alvar em PDF</button>'; | |
108 | + $arrComandos[] = '<button type="button" accesskey="i" id="btnImprimir" value="Imprimir" onclick="imprimir();" class="infraButton"><span class="infraTeclaAtalho">I</span>mprimir</button>'; | |
109 | + $arrComandos[] = '<button type="button" accesskey="c" id="btnFechar" value="Fechar" onclick="location.href=\'' . PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?id_md_pet_rel_recibo_protoc=' . $_GET['id_md_pet_rel_recibo_protoc'] . '&acao=' . PaginaSEIExterna::getInstance()->getAcaoRetorno() . '&acao_origem=' . $_GET['acao'])) . '\'" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
121 | 110 | |
122 | 111 | $objReciboPeticionamentoDTO = new ReciboPeticionamentoDTO(); |
123 | 112 | $objReciboPeticionamentoDTO->retTodos(); |
... | ... | @@ -125,6 +114,7 @@ |
125 | 114 | |
126 | 115 | $objReciboDocumentoAnexoPeticionamentoDTO = new ReciboDocumentoAnexoPeticionamentoDTO(); |
127 | 116 | $objReciboDocumentoAnexoPeticionamentoDTO->retTodos(); |
117 | + $objReciboDocumentoAnexoPeticionamentoDTO->retStrNumeroDocumento(); | |
128 | 118 | $objReciboDocumentoAnexoPeticionamentoDTO->retStrNomeSerie(); |
129 | 119 | $objReciboDocumentoAnexoPeticionamentoDTO->retStrProtocoloFormatado(); |
130 | 120 | |
... | ... | @@ -152,14 +142,10 @@ |
152 | 142 | $protocoloDTO = new ProtocoloDTO(); |
153 | 143 | $protocoloDTO->retDblIdProtocolo(); |
154 | 144 | $protocoloDTO->retStrProtocoloFormatado(); |
145 | + $protocoloDTO->retNumIdOrgaoUnidadeGeradora(); | |
155 | 146 | $protocoloDTO->setDblIdProtocolo($objReciboPeticionamentoDTO->getNumIdProtocolo()); |
156 | 147 | $protocoloDTO = $protocoloRN->consultarRN0186($protocoloDTO); |
157 | 148 | |
158 | - //obter documentos principais | |
159 | - | |
160 | - //obter documentos essenciais e complementares | |
161 | - | |
162 | - | |
163 | 149 | //obter interessados |
164 | 150 | $objParticipanteDTO = new ParticipanteDTO(); |
165 | 151 | $objParticipanteDTO->setDblIdProtocolo($objReciboPeticionamentoDTO->getNumIdProtocolo()); |
... | ... | @@ -174,8 +160,15 @@ |
174 | 160 | $objContatoRN = new ContatoRN(); |
175 | 161 | $arrInteressados[] = $objContatoRN->consultarRN0324($objContatoDTO); |
176 | 162 | } |
177 | - | |
178 | - | |
163 | + | |
164 | + //obtendo descricao do orgao para o rodape do recibo | |
165 | + $idOrgao = $protocoloDTO->retNumIdOrgaoUnidadeGeradora(); | |
166 | + $orgaoDTO = new OrgaoDTO(); | |
167 | + $orgaoRN = new OrgaoRN(); | |
168 | + $orgaoDTO->retTodos(); | |
169 | + $orgaoDTO->setNumIdOrgao( $protocoloDTO->getNumIdOrgaoUnidadeGeradora() ); | |
170 | + $orgaoDTO = $orgaoRN->consultarRN1352( $orgaoDTO ); | |
171 | + | |
179 | 172 | } catch (Exception $e) { |
180 | 173 | PaginaSEIExterna::getInstance()->processarExcecao($e); |
181 | 174 | } |
... | ... | @@ -224,7 +217,7 @@ |
224 | 217 | document.getElementById('hdnInfraBarraLocalizacao').value = document.getElementById('divInfraBarraLocalizacao').innerHTML; |
225 | 218 | document.getElementById('hdnRodape').value = document.getElementById('divRodape').innerHTML.trim(); |
226 | 219 | |
227 | -//document.getElementById('hdnInfraAreaDados').value = document.getElementById('divInfraAreaDados').innerHTML; | |
220 | + //document.getElementById('hdnInfraAreaDados').value = document.getElementById('divInfraAreaDados').innerHTML; | |
228 | 221 | var tabela = document.getElementById('divInfraAreaDados').getElementsByTagName('TABLE'); |
229 | 222 | if (tabela.length > 0) { |
230 | 223 | var tabl = tabela[0]; // console.log(tabl); |
... | ... | @@ -263,10 +256,10 @@ |
263 | 256 | |
264 | 257 | <div style="height:auto; margin-top: 11px;" class="infraAreaDados" id="divInfraAreaDados"> |
265 | 258 | |
266 | - <table width="80%" style="width: 80%" border="0"> | |
259 | + <table align="center" style="width: 90%" border="0"> | |
267 | 260 | |
268 | 261 | <tr> |
269 | - <td style="font-weight: bold; width: 280px;" width="280">Usuário Externo (signatário):</td> | |
262 | + <td style="font-weight: bold; width: 300px;">Usuário Externo (signatário):</td> | |
270 | 263 | <td><?= $usuarioDTO->getStrNome() ?></td> |
271 | 264 | </tr> |
272 | 265 | |
... | ... | @@ -276,17 +269,17 @@ |
276 | 269 | </tr> |
277 | 270 | |
278 | 271 | <tr> |
279 | - <td style="font-weight: bold;">Tipo de Peticionamento:</td> | |
280 | - <td><?= $objReciboPeticionamentoDTO->getStrTipoPeticionamento() ?></td> | |
272 | + <td style="font-weight: bold;">Data e Horário:</td> | |
273 | + <td><?= $objReciboPeticionamentoDTO->getDthDataHoraRecebimentoFinal() ?></td> | |
281 | 274 | </tr> |
282 | - | |
275 | + | |
283 | 276 | <tr> |
284 | - <td style="font-weight: bold;">Data e horário (recebimento final pelo SEI):</td> | |
285 | - <td><?= $objReciboPeticionamentoDTO->getDthDataHoraRecebimentoFinal() ?></td> | |
277 | + <td style="font-weight: bold;">Tipo de Peticionamento:</td> | |
278 | + <td><?= $objReciboPeticionamentoDTO->getStrStaTipoPeticionamentoFormatado() ?></td> | |
286 | 279 | </tr> |
287 | 280 | |
288 | 281 | <tr> |
289 | - <td style="font-weight: bold;">Número do processo:</td> | |
282 | + <td style="font-weight: bold;">Número do Processo:</td> | |
290 | 283 | <td><?= $protocoloDTO->getStrProtocoloFormatado() ?></td> |
291 | 284 | </tr> |
292 | 285 | |
... | ... | @@ -319,7 +312,7 @@ |
319 | 312 | |
320 | 313 | <?php if ($documento->getStrClassificacaoDocumento() == "P"): ?> |
321 | 314 | <tr> |
322 | - <td>    - <?= $documento->getStrNomeSerie() ?> </td> | |
315 | + <td>    - <?= $documento->getStrNomeSerie() ?> <?= $documento->getStrNumeroDocumento() ?> </td> | |
323 | 316 | <td> <?= $documento->getStrProtocoloFormatado() ?></td> |
324 | 317 | </tr> |
325 | 318 | <?php endif; ?> |
... | ... | @@ -328,46 +321,58 @@ |
328 | 321 | <?php endif; ?> |
329 | 322 | |
330 | 323 | <!-- lista DOC ESSENCIAL --> |
331 | - <?php if ($arrDocumentos != null && is_array($arrDocumentos) && count($arrDocumentos) > 0): ?> | |
332 | - <tr> | |
333 | - <td style="font-weight: bold;">- Documentos Essenciais:</td> | |
334 | - <td></td> | |
335 | - </tr> | |
336 | - | |
337 | - <?php foreach ($arrDocumentos as $documento) : ?> | |
338 | - <!-- E-ESSENCIAL--> | |
339 | - <?php if ($documento->getStrClassificacaoDocumento() == "E") : ?> | |
340 | - <tr> | |
341 | - <td>    - <?= $documento->getStrNomeSerie() ?> </td> | |
342 | - <td> <?= $documento->getStrProtocoloFormatado() ?></td> | |
343 | - </tr> | |
344 | - <?php endif ?> | |
345 | - <?php endforeach; ?> | |
346 | - <?php endif; ?> | |
324 | + <?php | |
325 | + if ($arrDocumentos != null && is_array($arrDocumentos) && count($arrDocumentos) > 0){ | |
326 | + $documentoExiste=false; | |
327 | + foreach ($arrDocumentos as $documento) { | |
328 | + // E-ESSENCIAL | |
329 | + if ($documento->getStrClassificacaoDocumento() == "E") { | |
330 | + if ($documentoExiste==false){ | |
331 | + echo " <tr>"; | |
332 | + echo " <td style='font-weight: bold;'>- Documentos Essenciais:</td>"; | |
333 | + echo " <td></td>"; | |
334 | + echo " </tr>"; | |
335 | + $documentoExiste=true; | |
336 | + } | |
337 | + echo " <tr>"; | |
338 | + echo " <td>    - " . $documento->getStrNomeSerie() . " " . $documento->getStrNumeroDocumento() . "</td>"; | |
339 | + echo " <td> " . $documento->getStrProtocoloFormatado() . "</td>"; | |
340 | + echo " </tr>"; | |
341 | + } | |
342 | + } | |
343 | + } | |
344 | + ?> | |
347 | 345 | |
348 | 346 | <!-- lista DOC COMPLEMENTAR --> |
349 | - <?php if ($arrDocumentos != null && is_array($arrDocumentos) && count($arrDocumentos) > 0): ?> | |
350 | - <tr> | |
351 | - <td style="font-weight: bold;">- Documentos Complementares:</td> | |
352 | - <td></td> | |
353 | - </tr> | |
354 | - <?php foreach ($arrDocumentos as $documento) : ?> | |
355 | - <!--C = COMPLEMENTAR--> | |
356 | - <?php if ($documento->getStrClassificacaoDocumento() == "C") : ?> | |
357 | - <tr> | |
358 | - <td>    - <?= $documento->getStrNomeSerie() ?> </td> | |
359 | - <td> <?= $documento->getStrProtocoloFormatado() ?></td> | |
360 | - </tr> | |
361 | - <?php endif; ?> | |
362 | - <?php endforeach; ?> | |
363 | - <?php endif; ?> | |
347 | + <?php | |
348 | + if ($arrDocumentos != null && is_array($arrDocumentos) && count($arrDocumentos) > 0){ | |
349 | + $documentoExiste=false; | |
350 | + foreach ($arrDocumentos as $documento) { | |
351 | + // C-COMPLEMENTAR | |
352 | + if ($documento->getStrClassificacaoDocumento() == "C") { | |
353 | + if ($documentoExiste==false){ | |
354 | + echo " <tr>"; | |
355 | + echo " <td style='font-weight: bold;'>- Documentos Complementares:</td>"; | |
356 | + echo " <td></td>"; | |
357 | + echo " </tr>"; | |
358 | + $documentoExiste=true; | |
359 | + } | |
360 | + echo " <tr>"; | |
361 | + echo " <td>    - " . $documento->getStrNomeSerie() . " " . $documento->getStrNumeroDocumento() . "</td>"; | |
362 | + echo " <td> " . $documento->getStrProtocoloFormatado() . "</td>"; | |
363 | + echo " </tr>"; | |
364 | + } | |
365 | + } | |
366 | + } | |
367 | + ?> | |
364 | 368 | |
365 | 369 | </table> |
366 | 370 | <br/> |
367 | 371 | <br/> |
368 | - <label> | |
369 | - A existência deste Recibo, do processo e dos documentos acima indicados pode ser conferida na Página Eletrônica do(a) <?= htmlentities($objReciboPeticionamentoDTO->getStrDscUnidadeGeradora()); ?> | |
370 | - </label> | |
372 | + | |
373 | + <label id=divRodape> | |
374 | + <p>O Usuário Externo acima identificado foi previamente avisado que o peticionamento importa na aceitação dos termos e condições que regem o processo eletrônico, além do disposto no credenciamento prévio, e na assinatura dos documentos nato-digitais e declaração de que são autênticos os digitalizados, sendo responsável civil, penal e administrativamente pelo uso indevido. Ainda, foi avisado que os níveis de acesso indicados para os documentos estariam condicionados à análise por servidor público, que poderá, motivadamente, alterá-los a qualquer momento sem necessidade de prévio aviso, e de que são de sua exclusiva responsabilidade:</p><ul><li>a conformidade entre os dados informados e os documentos;</li><li>a conservação dos originais em papel de documentos digitalizados até que decaia o direito de revisão dos atos praticados no processo, para que, caso solicitado, sejam apresentados para qualquer tipo de conferência;</li><li>a realização por meio eletrônico de todos os atos e comunicações processuais com o próprio Usuário Externo ou, por seu intermédio, com a entidade porventura representada;</li><li>a observância de que os atos processuais se consideram realizados no dia e hora do recebimento pelo SEI, considerando-se tempestivos os praticados até as 23h59min59s do último dia do prazo, considerado sempre o horário oficial de Brasília, independente do fuso horário em que se encontre;</li><li>a consulta periódica ao SEI, a fim de verificar o recebimento de intimações eletrônicas.</li></ul><p>A existência deste Recibo, do processo e dos documentos acima indicados pode ser conferida no Portal na Internet do(a) <?= htmlentities( $orgaoDTO->getStrDescricao() ); ?>.</p> | |
375 | + </label> | |
371 | 376 | |
372 | 377 | </div> |
373 | 378 | |
... | ... | @@ -379,4 +384,4 @@ |
379 | 384 | <? |
380 | 385 | PaginaSEIExterna::getInstance()->fecharBody(); |
381 | 386 | PaginaSEIExterna::getInstance()->fecharHtml(); |
382 | 387 | -?> |
388 | +?> | |
383 | 389 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/recibo_peticionamento_usuario_externo_lista.php
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 | */ |
8 | 8 | |
9 | 9 | try { |
10 | + | |
10 | 11 | require_once dirname(__FILE__).'/../../SEI.php'; |
11 | 12 | |
12 | 13 | //Data |
... | ... | @@ -42,26 +43,10 @@ try { |
42 | 43 | } |
43 | 44 | |
44 | 45 | $arrComandos = array(); |
45 | - $arrComandos[] = '<button type="button" accesskey="P" id="btnPesquisar" value="Pesquisar" onclick="pesquisar();" class="infraButton"><span class="infraTeclaAtalho">P</span>esquisar</button>'; | |
46 | - | |
47 | - //if ($_GET['acao'] == 'recibo_peticionamento_usuario_externo_selecionar'){ | |
48 | - // $arrComandos[] = '<button type="button" accesskey="F" id="btnFecharSelecao" value="Fechar" onclick="window.close();" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
49 | - //}else{ | |
50 | - // $arrComandos[] = '<button type="button" accesskey="F" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?id_md_pet_rel_recibo_protoc='.$_GET['id_md_pet_rel_recibo_protoc'].'&acao='.PaginaSEIExterna::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'])).'\'" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
51 | - //} | |
52 | - //$arrComandos[] = '<button type="button" accesskey="F" id="btnFechar" value="Fechar" onclick="history.go(-1);" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
53 | - $arrComandos[] = '<button type="button" accesskey="F" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?id_md_pet_rel_recibo_protoc='.$_GET['id_md_pet_rel_recibo_protoc'].'&acao='.'usuario_externo_controle_acessos'/*PaginaSEIExterna::getInstance()->getAcaoRetorno()*/.'&acao_origem='.$_GET['acao'])).'\'" class="infraButton"><span class="infraTeclaAtalho">F</span>echar</button>'; | |
54 | - | |
55 | - // VERIFICAR SE ROTINA ABAIXO É NECESSÁRIA | |
56 | - //if ($_GET['acao'] == 'recibo_peticionamento_usuario_externo_selecionar'){ | |
57 | - // $arrComandos[] = '<button type="button" accesskey="T" id="btnTransportarSelecao" value="Transportar" onclick="infraTransportarSelecao();" class="infraButton"><span class="infraTeclaAtalho">T</span>ransportar</button>'; | |
58 | - //} | |
46 | + $arrComandos[] = '<button type="button" accesskey="p" id="btnPesquisar" value="Pesquisar" onclick="pesquisar();" class="infraButton"><span class="infraTeclaAtalho">P</span>esquisar</button>'; | |
47 | + $arrComandos[] = '<button type="button" accesskey="c" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?id_md_pet_rel_recibo_protoc='.$_GET['id_md_pet_rel_recibo_protoc'].'&acao='.'usuario_externo_controle_acessos'/*PaginaSEIExterna::getInstance()->getAcaoRetorno()*/.'&acao_origem='.$_GET['acao'])).'\'" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
59 | 48 | |
60 | 49 | $bolAcaoCadastrar = SessaoSEIExterna::getInstance()->verificarPermissao('recibo_peticionamento_usuario_externo_cadastrar'); |
61 | - | |
62 | - //if ($bolAcaoCadastrar){ | |
63 | - // $arrComandos[] = '<button type="button" accesskey="N" id="btnNovo" value="Nova" onclick="location.href=\''.PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador.php?acao=recibo_peticionamento_usuario_externo_cadastrar&acao_origem='.$_GET['acao'].'&acao_retorno='.$_GET['acao'])).'\'" class="infraButton"><span class="infraTeclaAtalho">N</span>ova</button>'; | |
64 | - //} | |
65 | 50 | |
66 | 51 | $objReciboPeticionamentoDTO = new ReciboPeticionamentoDTO(); |
67 | 52 | $objReciboPeticionamentoDTO->retTodos(); |
... | ... | @@ -77,7 +62,7 @@ try { |
77 | 62 | } |
78 | 63 | |
79 | 64 | if( isset( $_POST['selTipo'] ) && $_POST['selTipo'] != ""){ |
80 | - $objReciboPeticionamentoDTO->setStrTipoPeticionamento( $_POST['selTipo'] ); | |
65 | + $objReciboPeticionamentoDTO->setStrStaTipoPeticionamento( $_POST['selTipo'] ); | |
81 | 66 | } |
82 | 67 | |
83 | 68 | $objReciboPeticionamentoRN = new ReciboPeticionamentoRN(); |
... | ... | @@ -106,7 +91,7 @@ try { |
106 | 91 | $strResultado .= '<caption class="infraCaption">'.PaginaSEIExterna::getInstance()->gerarCaptionTabela($strCaptionTabela,$numRegistros).'</caption>'; |
107 | 92 | $strResultado .= '<tr>'; |
108 | 93 | |
109 | - $strResultado .= '<th class="infraTh" width="30%">'.PaginaSEIExterna::getInstance()->getThOrdenacao($objReciboPeticionamentoDTO,'Data e Horário','DataHoraRecebimentoFinal',$arrObjReciboPeticionamentoDTO).'</th>'."\n"; | |
94 | + $strResultado .= '<th class="infraTh" width="20%">'.PaginaSEIExterna::getInstance()->getThOrdenacao($objReciboPeticionamentoDTO,'Data e Horário','DataHoraRecebimentoFinal',$arrObjReciboPeticionamentoDTO).'</th>'."\n"; | |
110 | 95 | $strResultado .= '<th class="infraTh" width="30%">'.PaginaSEIExterna::getInstance()->getThOrdenacao($objReciboPeticionamentoDTO,'Número do Processo','NumeroProcessoFormatado',$arrObjReciboPeticionamentoDTO).'</th>'."\n"; |
111 | 96 | $strResultado .= '<th class="infraTh" width="30%">'.PaginaSEIExterna::getInstance()->getThOrdenacao($objReciboPeticionamentoDTO,'Tipo de Peticionamento','TipoPeticionamento',$arrObjReciboPeticionamentoDTO).'</th>'."\n"; |
112 | 97 | $strResultado .= '<th class="infraTh" width="15%">Ações</th>'."\n"; |
... | ... | @@ -122,9 +107,13 @@ try { |
122 | 107 | $protocoloDTO->retStrProtocoloFormatado(); |
123 | 108 | $protocoloDTO->setDblIdProtocolo( $arrObjReciboPeticionamentoDTO[$i]->getNumIdProtocolo() ); |
124 | 109 | $protocoloDTO = $protocoloRN->consultarRN0186( $protocoloDTO ); |
125 | - | |
126 | - | |
127 | - if(/*$_GET['acao_origem'] == 'recibo_peticionamento_usuario_externo_reativar' &&*/ $_GET['id_md_pet_rel_recibo_protoc'] == $arrObjReciboPeticionamentoDTO[$i]->getNumIdReciboPeticionamento()){ | |
110 | + | |
111 | + if( $protocoloDTO == null){ | |
112 | + //echo $i; die(); | |
113 | + //print_r( $arrObjReciboPeticionamentoDTO[$i] ); die(); | |
114 | + } | |
115 | + | |
116 | + if( $_GET['id_md_pet_rel_recibo_protoc'] == $arrObjReciboPeticionamentoDTO[$i]->getNumIdReciboPeticionamento()){ | |
128 | 117 | $strCssTr = '<tr class="infraTrAcessada">'; |
129 | 118 | }else{ |
130 | 119 | if( $arrObjReciboPeticionamentoDTO[$i]->getStrSinAtivo()=='S' ){ |
... | ... | @@ -135,10 +124,21 @@ try { |
135 | 124 | } |
136 | 125 | |
137 | 126 | $strResultado .= $strCssTr; |
138 | - | |
139 | - $strResultado .= '<td>' . DataUtils::setFormat( $arrObjReciboPeticionamentoDTO[$i]->getDthDataHoraRecebimentoFinal(),'dd/mm/yyyy hh:mm') .'</td>'; | |
140 | - $strResultado .= '<td>'. $protocoloDTO->getStrProtocoloFormatado() .'</td>'; | |
141 | - $strResultado .= '<td>Processo ' . $arrObjReciboPeticionamentoDTO[$i]->getStrTipoPeticionamento() .'</td>'; | |
127 | + $data = ''; | |
128 | + | |
129 | + if( $arrObjReciboPeticionamentoDTO[$i] != null && $arrObjReciboPeticionamentoDTO[$i]->getDthDataHoraRecebimentoFinal() != "" ) { | |
130 | + $data = DataUtils::setFormat( $arrObjReciboPeticionamentoDTO[$i]->getDthDataHoraRecebimentoFinal(),'dd/mm/yyyy hh:mm'); | |
131 | + } | |
132 | + | |
133 | + $strResultado .= '<td>' . $data .'</td>'; | |
134 | + | |
135 | + if( $protocoloDTO != null && $protocoloDTO->isSetStrProtocoloFormatado() ){ | |
136 | + $strResultado .= '<td>'. $protocoloDTO->getStrProtocoloFormatado() .'</td>'; | |
137 | + } else { | |
138 | + $strResultado .= '<td></td>'; | |
139 | + } | |
140 | + | |
141 | + $strResultado .= '<td>' . $arrObjReciboPeticionamentoDTO[$i]->getStrStaTipoPeticionamentoFormatado() .'</td>'; | |
142 | 142 | |
143 | 143 | $strResultado .= '<td align="center">'; |
144 | 144 | |
... | ... | @@ -243,8 +243,7 @@ $strTipo = $_POST['selTipo'];; |
243 | 243 | <label id="lblTipo" for="selTipo" class="infraLabelOpcional">Tipo de Peticionamento:</label> |
244 | 244 | <select onchange="pesquisar()" id="selTipo" name="selTipo" class="infraSelect" > |
245 | 245 | <option <? if( $_POST['selTipo'] == ""){ ?> selected="selected" <? } ?> value="">Todos</option> |
246 | - <option <? if( $_POST['selTipo'] == "Novo"){ ?> selected="selected" <? } ?> value="Novo">Processo Novo</option> | |
247 | - <option <? if( $_POST['selTipo'] == "Intercorrente"){ ?> selected="selected" <? } ?> value="Intercorrente">Processo Intercorrente</option> | |
246 | + <option <? if( $_POST['selTipo'] == "Novo"){ ?> selected="selected" <? } ?> value="N">Processo Novo</option> | |
248 | 247 | </select> |
249 | 248 | |
250 | 249 | <input type="submit" style="visibility: hidden;" /> | ... | ... |
sei/institucional/peticionamento/rn/AtualizadorModuloPeticionamentoRN.php
... | ... | @@ -283,14 +283,20 @@ class AtualizadorModuloPeticionamentoRN extends InfraRN { |
283 | 283 | $this->logar(' CRIANDO A TABELA md_pet_usu_externo_menu E SUA sequence'); |
284 | 284 | |
285 | 285 | BancoSEI::getInstance()->executarSql(' CREATE TABLE md_pet_usu_externo_menu( id_md_pet_usu_externo_menu ' . $objInfraMetaBD->tipoNumero() .' NOT NULL, |
286 | - nome ' . $objInfraMetaBD->tipoTextoVariavel(30) . ' NOT NULL , | |
286 | + id_conjunto_estilos ' . $objInfraMetaBD->tipoNumero() . ' NULL , | |
287 | + nome ' . $objInfraMetaBD->tipoTextoVariavel(30) . ' NOT NULL , | |
287 | 288 | tipo ' . $objInfraMetaBD->tipoTextoFixo(1) . ' NOT NULL , |
288 | 289 | url ' . $objInfraMetaBD->tipoTextoVariavel(2083) .' DEFAULT NULL , |
289 | 290 | conteudo_html ' . $objInfraMetaBD->tipoTextoGrande() .' DEFAULT NULL, |
290 | 291 | sin_ativo ' . $objInfraMetaBD->tipoTextoFixo(1) . ' NOT NULL ) '); |
291 | 292 | |
292 | 293 | $objInfraMetaBD->adicionarChavePrimaria('md_pet_usu_externo_menu','pk_md_pet_usu_externo_menu',array('id_md_pet_usu_externo_menu')); |
293 | - | |
294 | + | |
295 | + $objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_menu_cj_est_01', | |
296 | + 'md_pet_usu_externo_menu', | |
297 | + array('id_conjunto_estilos'), | |
298 | + 'conjunto_estilos',array('id_conjunto_estilos')); | |
299 | + | |
294 | 300 | if (BancoSEI::getInstance() instanceof InfraMySql){ |
295 | 301 | BancoSEI::getInstance()->executarSql('create table seq_md_pet_usu_externo_menu (id bigint not null primary key AUTO_INCREMENT, campo char(1) null) AUTO_INCREMENT = 1'); |
296 | 302 | } else if (BancoSEI::getInstance() instanceof InfraSqlServer){ |
... | ... | @@ -441,7 +447,7 @@ ATENÇÃO: As informações contidas neste e-mail, incluindo seus anexos, podem ser |
441 | 447 | ip_usuario ' . $objInfraMetaBD->tipoTextoVariavel(500) . ' NOT NULL, |
442 | 448 | data_hora_recebimento_final ' . $objInfraMetaBD->tipoDataHora() . ' DEFAULT NULL, |
443 | 449 | sin_ativo ' . $objInfraMetaBD->tipoTextoFixo(1) . ' NOT NULL, |
444 | - tipo_peticionamento ' . $objInfraMetaBD->tipoTextoVariavel(50) . ' DEFAULT NULL )'); | |
450 | + sta_tipo_peticionamento ' . $objInfraMetaBD->tipoTextoVariavel(1) . ' DEFAULT NULL )'); | |
445 | 451 | |
446 | 452 | $objInfraMetaBD->adicionarChavePrimaria('md_pet_rel_recibo_protoc','pk1_md_pet_rel_recibo_protoc',array('id_md_pet_rel_recibo_protoc')); |
447 | 453 | |
... | ... | @@ -463,7 +469,8 @@ ATENÇÃO: As informações contidas neste e-mail, incluindo seus anexos, podem ser |
463 | 469 | BancoSEI::getInstance()->executarSql(' CREATE TABLE md_pet_rel_recibo_docanexo ( |
464 | 470 | id_md_pet_rel_recibo_docanexo ' . $objInfraMetaBD->tipoNumero() . ' NOT NULL, |
465 | 471 | id_md_pet_rel_recibo_protoc ' . $objInfraMetaBD->tipoNumero() . ' NOT NULL, |
466 | - id_documento ' . $objInfraMetaBD->tipoNumeroGrande() . ' DEFAULT NULL, | |
472 | + formato_documento ' . $objInfraMetaBD->tipoTextoFixo(1) . ' NULL, | |
473 | + id_documento ' . $objInfraMetaBD->tipoNumeroGrande() . ' DEFAULT NULL, | |
467 | 474 | id_anexo ' . $objInfraMetaBD->tipoNumero() . ' DEFAULT NULL, |
468 | 475 | classificacao_documento ' . $objInfraMetaBD->tipoTextoFixo(1) . ' NOT NULL )'); |
469 | 476 | |
... | ... | @@ -554,10 +561,13 @@ $this->logar(' CRIANDO A TABELA md_pet_tp_processo_orientacoes'); |
554 | 561 | |
555 | 562 | BancoSEI::getInstance()->executarSql('CREATE TABLE md_pet_tp_processo_orientacoes ( |
556 | 563 | id_md_pet_tp_processo_orientacoes ' . $objInfraMetaBD->tipoNumero() .' NOT NULL, |
564 | + id_conjunto_estilos ' . $objInfraMetaBD->tipoNumero() .' NULL, | |
557 | 565 | orientacoes_gerais ' . $objInfraMetaBD->tipoTextoGrande() .' NOT NULL )'); |
558 | - | |
566 | + | |
559 | 567 | $objInfraMetaBD->adicionarChavePrimaria('md_pet_tp_processo_orientacoes','pk_md_pet_tp_proc_orient',array('id_md_pet_tp_processo_orientacoes')); |
560 | 568 | |
569 | +$objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_tp_proc_or_cj_est','md_pet_tp_processo_orientacoes',array('id_conjunto_estilos'),'conjunto_estilos',array('id_conjunto_estilos')); | |
570 | + | |
561 | 571 | //4 - md_pet_extensao_arquivo_perm |
562 | 572 | |
563 | 573 | $this->logar(' CRIANDO A TABELA md_pet_extensao_arquivo_perm e sua sequence '); | ... | ... |
sei/institucional/peticionamento/rn/EmailNotificacaoPeticionamentoRN.php
... | ... | @@ -47,6 +47,13 @@ class EmailNotificacaoPeticionamentoRN extends InfraRN { |
47 | 47 | $objOrgaoDTO->setStrSinAtivo('S'); |
48 | 48 | $objOrgaoDTO = $orgaoRN->consultarRN1352( $objOrgaoDTO ); |
49 | 49 | |
50 | + //pegar a lista de email da unidade, a unidade pode não ter, email unidade | |
51 | + $objEmailUnidadeDTO = new EmailUnidadeDTO(); | |
52 | + $emailUnidadeRN = new EmailUnidadeRN(); | |
53 | + $objEmailUnidadeDTO->retStrEmail(); | |
54 | + $objEmailUnidadeDTO->setNumIdUnidade($objUnidadeDTO->getNumIdUnidade()); | |
55 | + $arrEmailUnidade = $emailUnidadeRN->listar($objEmailUnidadeDTO); | |
56 | + | |
50 | 57 | //obtendo o tipo de procedimento |
51 | 58 | $idTipoProc = $arrParametros['id_tipo_procedimento']; |
52 | 59 | $objTipoProcDTO = new TipoProcessoPeticionamentoDTO(); |
... | ... | @@ -57,7 +64,7 @@ class EmailNotificacaoPeticionamentoRN extends InfraRN { |
57 | 64 | $objTipoProcDTO = $objTipoProcRN->consultar( $objTipoProcDTO ); |
58 | 65 | |
59 | 66 | //variaveis basicas em uso no email |
60 | - $linkLoginUsuarioExterno = "http://linkLoginUsuarioExterno.com"; | |
67 | + $linkLoginUsuarioExterno = $objOrgaoDTO->getStrSitioInternet(); | |
61 | 68 | $strNomeTipoProcedimento = $objProcedimentoDTO->getStrNomeTipoProcedimento(); |
62 | 69 | $strProtocoloFormatado = $objProcedimentoDTO->getStrProtocoloProcedimentoFormatado(); |
63 | 70 | $strSiglaUnidade = $objUnidadeDTO->getStrSigla(); |
... | ... | @@ -169,17 +176,6 @@ class EmailNotificacaoPeticionamentoRN extends InfraRN { |
169 | 176 | $strDe = str_replace('@sigla_orgao_minusculas@',InfraString::transformarCaixaBaixa($objOrgaoDTO->getStrSigla()),$strDe); |
170 | 177 | $strDe = str_replace('@sufixo_email@',$objInfraParametro->getValor('SEI_SUFIXO_EMAIL'),$strDe); |
171 | 178 | |
172 | - $strPara = $objEmailSistemaDTO->getStrPara(); | |
173 | - | |
174 | - //TODO obter o email da unidade para onde enviar o email | |
175 | - //$strPara = str_replace('@nome_contato@',$objProcedimentoOuvidoriaDTO->getStrNome(),$strPara); | |
176 | - //$strPara = str_replace('@email_contato@',$objProcedimentoOuvidoriaDTO->getStrEmail(),$strPara); | |
177 | - | |
178 | - $strPara = str_replace('@processo@', $strProtocoloFormatado , $strPara); | |
179 | - $strPara = str_replace('@nome_contato@', $strNomeContato , $strPara); | |
180 | - $strPara = str_replace('@email_contato@', $strEmailContato , $strPara); | |
181 | - $strPara = str_replace('@email_usuario_externo@', $strEmailContato , $strPara); | |
182 | - | |
183 | 179 | $strAssunto = $objEmailSistemaDTO->getStrAssunto(); |
184 | 180 | $strAssunto = str_replace('@sigla_orgao@',$objOrgaoDTO->getStrSigla(), $strAssunto); |
185 | 181 | $strAssunto = str_replace('@processo@', $strProtocoloFormatado , $strAssunto); |
... | ... | @@ -231,12 +227,18 @@ class EmailNotificacaoPeticionamentoRN extends InfraRN { |
231 | 227 | //$strConteudo = str_replace('@conteudo_formulario_ouvidoria@',$strConteudoFormulario,$strConteudo); |
232 | 228 | //echo "segundo email :: Conteudo :: "; |
233 | 229 | //echo $strConteudo; die(); |
234 | - | |
235 | - InfraMail::enviarConfigurado(ConfiguracaoSEI::getInstance(), $strDe, $strPara, null, null, $strAssunto, $strConteudo); | |
236 | - | |
237 | - } | |
238 | - | |
230 | + | |
231 | + | |
232 | + | |
233 | + $strPara = $objEmailSistemaDTO->getStrPara(); | |
234 | + $strPara = str_replace('@processo@', $strProtocoloFormatado , $strPara); | |
235 | + $strPara = str_replace('@email_usuario_externo@', $strEmailContato , $strPara); | |
236 | + foreach($arrEmailUnidade as $mail){ | |
237 | + $strPara = str_replace('@nome_contato@', $objUnidadeDTO->getStrDescricao() , $strPara); | |
238 | + $strPara = str_replace('@email_contato@', $mail->getStrEmail() , $strPara); | |
239 | + InfraMail::enviarConfigurado(ConfiguracaoSEI::getInstance(), $strDe, $strPara, null, null, $strAssunto, $strConteudo); | |
240 | + } | |
241 | + } | |
239 | 242 | } |
240 | - | |
241 | 243 | } |
242 | 244 | ?> |
243 | 245 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/rn/ProcessoPeticionamentoRN.php
... | ... | @@ -20,8 +20,8 @@ class ProcessoPeticionamentoRN extends InfraRN { |
20 | 20 | session_start(); |
21 | 21 | |
22 | 22 | ////////////////////////////////////////////////////////////////////////////// |
23 | - InfraDebug::getInstance()->setBolLigado(true); | |
24 | - InfraDebug::getInstance()->setBolDebugInfra(true); | |
23 | + InfraDebug::getInstance()->setBolLigado(false); | |
24 | + InfraDebug::getInstance()->setBolDebugInfra(false); | |
25 | 25 | InfraDebug::getInstance()->limpar(); |
26 | 26 | ////////////////////////////////////////////////////////////////////////////// |
27 | 27 | |
... | ... | @@ -92,18 +92,14 @@ class ProcessoPeticionamentoRN extends InfraRN { |
92 | 92 | else if( $arrRelTipoProcUnidadeDTO != null && count( $arrRelTipoProcUnidadeDTO ) > 1 ){ |
93 | 93 | $idUnidade = $arrParametros['hdnIdUnidadeMultiplaSelecionada']; |
94 | 94 | } |
95 | - | |
96 | - //echo $idUnidade; die(); | |
97 | - | |
95 | + | |
98 | 96 | //obter unidade configurada no "Tipo de Processo para peticionamento" |
99 | - //$idUnidade = $objTipoProcDTO->getNumIdUnidade(); | |
100 | 97 | $unidadeRN = new UnidadeRN(); |
101 | 98 | $unidadeDTO = new UnidadeDTO(); |
102 | 99 | $unidadeDTO->retTodos(); |
103 | 100 | $unidadeDTO->setNumIdUnidade( $idUnidade ); |
104 | 101 | $unidadeDTO = $unidadeRN->consultarRN0125( $unidadeDTO ); |
105 | 102 | |
106 | - //print_r( $unidadeDTO );die(); | |
107 | 103 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
108 | 104 | $numeracaoProcesso = $protocoloRN->gerarNumeracaoProcessoExterno( $unidadeDTO ); |
109 | 105 | |
... | ... | @@ -120,22 +116,32 @@ class ProcessoPeticionamentoRN extends InfraRN { |
120 | 116 | $objProtocoloDTO->setArrObjAnexoDTO(array()); |
121 | 117 | $objProtocoloDTO->setArrObjRelProtocoloAssuntoDTO(array()); |
122 | 118 | $objProtocoloDTO->setArrObjRelProtocoloProtocoloDTO(array()); |
123 | - //$this->atribuirRemetente($objProtocoloDTO, $objRemetente); | |
124 | 119 | |
125 | 120 | $arrParticipantesParametro = array(); |
126 | 121 | |
122 | + if( $objTipoProcDTO->getStrSinIIProprioUsuarioExterno() == 'S' ){ | |
123 | + $arrParametros['hdnListaInteressados'] = SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno(); | |
124 | + } | |
125 | + | |
127 | 126 | //verificar se esta vindo o array de participantes |
128 | 127 | if( isset( $arrParametros['hdnListaInteressados'] ) && $arrParametros['hdnListaInteressados'] != "" ){ |
129 | 128 | |
130 | 129 | $arrContatosInteressados = array(); |
131 | - $idsContatos = split(",", $arrParametros['hdnListaInteressados']); | |
130 | + | |
131 | + if (strpos( $arrParametros['hdnListaInteressados'] , ',') !== false) { | |
132 | + $idsContatos = split(",", $arrParametros['hdnListaInteressados']); | |
133 | + } else { | |
134 | + $idsContatos = array(); | |
135 | + $idsContatos[] = $arrParametros['hdnListaInteressados']; | |
136 | + } | |
137 | + | |
132 | 138 | $arrParticipantesParametro = $this->atribuirParticipantes($objProtocoloDTO, $this->montarArrContatosInteressados( $idsContatos ) ); |
133 | 139 | |
134 | 140 | } else { |
135 | 141 | |
136 | 142 | $this->atribuirParticipantes($objProtocoloDTO, array() ); |
137 | 143 | } |
138 | - | |
144 | + | |
139 | 145 | $objProtocoloDTO->setArrObjObservacaoDTO( array() ); |
140 | 146 | |
141 | 147 | //Atribuição de dados do procedimento |
... | ... | @@ -178,10 +184,11 @@ class ProcessoPeticionamentoRN extends InfraRN { |
178 | 184 | $arrParams[1] = $objUnidadeDTO; |
179 | 185 | $arrParams[2] = $objProcedimentoDTO; |
180 | 186 | $arrParams[3] = $arrParticipantesParametro; |
187 | + $arrParams[4] = $reciboDTOBasico; | |
181 | 188 | //$arrDocsPrincipais = $arrParams[4]; //array de DocumentoDTO (docs principais) |
182 | 189 | //$arrDocsEssenciais = $arrParams[5]; //array de DocumentoDTO (docs essenciais) |
183 | 190 | //$arrDocsComplementares = $arrParams[6]; //array de DocumentoDTO (docs complementares) |
184 | - | |
191 | + | |
185 | 192 | $reciboPeticionamentoRN->montarRecibo( $arrParams ); |
186 | 193 | |
187 | 194 | $arrProcessoReciboRetorno = array(); |
... | ... | @@ -195,6 +202,23 @@ class ProcessoPeticionamentoRN extends InfraRN { |
195 | 202 | $emailNotificacaoPeticionamentoRN->notificaoPeticionamentoExterno( $arrParams ); |
196 | 203 | } catch( Exception $exEmail ){} |
197 | 204 | |
205 | + // obtendo a ultima atividade informada para o processo, para marcar como nao visualizada, | |
206 | + // deixando assim o processo marcado como "vermelho" (status de Nao Visualizado) na listagem da tela "Controle de processos" | |
207 | + | |
208 | + $atividadeRN = new AtividadeRN(); | |
209 | + $atividadeBD = new AtividadeBD( $this->getObjInfraIBanco() ); | |
210 | + $atividadeDTO = new AtividadeDTO(); | |
211 | + $atividadeDTO->retTodos(); | |
212 | + $atividadeDTO->setDblIdProtocolo( $objProcedimentoDTO->getDblIdProcedimento() ); | |
213 | + $atividadeDTO->setOrd("IdAtividade", InfraDTO::$TIPO_ORDENACAO_DESC); | |
214 | + $ultimaAtividadeDTO = $atividadeRN->listarRN0036( $atividadeDTO ); | |
215 | + | |
216 | + //alterar a ultima atividade criada para nao visualizado | |
217 | + if( $ultimaAtividadeDTO != null && count( $ultimaAtividadeDTO ) > 0){ | |
218 | + $ultimaAtividadeDTO[0]->setNumTipoVisualizacao( AtividadeRN::$TV_NAO_VISUALIZADO ); | |
219 | + $atividadeBD->alterar( $ultimaAtividadeDTO[0] ); | |
220 | + } | |
221 | + | |
198 | 222 | return $arrProcessoReciboRetorno; |
199 | 223 | |
200 | 224 | } catch(Exception $e){ |
... | ... | @@ -208,6 +232,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
208 | 232 | //tentando simular sessao de usuario interno do SEI |
209 | 233 | SessaoSEI::getInstance()->setNumIdUnidadeAtual( $objUnidadeDTO->getNumIdUnidade() ); |
210 | 234 | SessaoSEI::getInstance()->setNumIdUsuario( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); |
235 | + $objDocumentoRN = new DocumentoRN(); | |
211 | 236 | |
212 | 237 | $arrDocumentoDTO = array(); |
213 | 238 | |
... | ... | @@ -235,13 +260,22 @@ class ProcessoPeticionamentoRN extends InfraRN { |
235 | 260 | //ASSINAR O DOCUMENTO PRINCIPAL |
236 | 261 | //==================================== |
237 | 262 | $this->assinarETravarDocumento( $objUnidadeDTO, $arrParametros, $documentoDTOPrincipal, $objProcedimentoDTO ); |
238 | - | |
263 | + | |
264 | + //recibo do doc principal para consultar do usuario externo | |
265 | + $reciboDocAnexoDTO = new ReciboDocumentoAnexoPeticionamentoDTO(); | |
266 | + $reciboDocAnexoRN = new ReciboDocumentoAnexoPeticionamentoRN(); | |
267 | + | |
268 | + $reciboDocAnexoDTO->setNumIdAnexo( null ); | |
269 | + $reciboDocAnexoDTO->setNumIdReciboPeticionamento( $reciboDTOBasico->getNumIdReciboPeticionamento() ); | |
270 | + $reciboDocAnexoDTO->setNumIdDocumento( $documentoDTOPrincipal->getDblIdDocumento() ); | |
271 | + $reciboDocAnexoDTO->setStrClassificacaoDocumento( ReciboDocumentoAnexoPeticionamentoRN::$TP_PRINCIPAL ); | |
272 | + $reciboDocAnexoDTO = $reciboDocAnexoRN->cadastrar( $reciboDocAnexoDTO ); | |
273 | + | |
239 | 274 | } |
240 | 275 | |
241 | 276 | //verificar se o documento principal é do tipo externo (ANEXO) |
242 | 277 | else { |
243 | 278 | |
244 | - //echo "aqui 2"; die(); | |
245 | 279 | $idTipoProc = $arrParametros['id_tipo_procedimento']; |
246 | 280 | $objTipoProcDTO = new TipoProcessoPeticionamentoDTO(); |
247 | 281 | $objTipoProcDTO->retTodos(true); |
... | ... | @@ -252,8 +286,6 @@ class ProcessoPeticionamentoRN extends InfraRN { |
252 | 286 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
253 | 287 | $numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); |
254 | 288 | |
255 | - //$arrAnexoDocPrincipal = AnexoINT::processarRI0872( $arrParametros['hdnDocPrincipal'] ); | |
256 | - | |
257 | 289 | } |
258 | 290 | |
259 | 291 | //tratando documentos essenciais e complementares |
... | ... | @@ -278,10 +310,12 @@ class ProcessoPeticionamentoRN extends InfraRN { |
278 | 310 | $objProcedimentoDTO->getDblIdProcedimento(), |
279 | 311 | $tamanhoPrincipal, "principais" ); |
280 | 312 | |
313 | + SessaoSEIExterna::getInstance()->setAtributo('arrIdAnexoPrincipal', null); | |
314 | + $arrIdAnexoPrincipal = array(); | |
281 | 315 | $arrAnexoPrincipalVinculacaoProcesso = array(); |
282 | 316 | $arrLinhasAnexos = PaginaSEI::getInstance()->getArrItensTabelaDinamica( $arrParametros['hdnDocPrincipal'] ); |
283 | 317 | $contador = 0; |
284 | - $objDocumentoRN = new DocumentoRN(); | |
318 | + //$objDocumentoRN = new DocumentoRN(); | |
285 | 319 | |
286 | 320 | foreach( $arrAnexoDocPrincipal as $itemAnexo ){ |
287 | 321 | |
... | ... | @@ -290,6 +324,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
290 | 324 | //================================= |
291 | 325 | |
292 | 326 | $idSerieAnexo = $arrLinhasAnexos[ $contador ][9]; |
327 | + $strComplemento = $arrLinhasAnexos[ $contador ][10]; | |
293 | 328 | $idTipoConferencia = $arrLinhasAnexos[ $contador ][7]; |
294 | 329 | |
295 | 330 | $idNivelAcesso = null; |
... | ... | @@ -309,6 +344,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
309 | 344 | |
310 | 345 | //criando registro em protocolo |
311 | 346 | $objDocumentoDTO = new DocumentoDTO(); |
347 | + $objDocumentoDTO->setStrNumero( $strComplemento ); | |
312 | 348 | $objDocumentoDTO->setDblIdDocumento(null); |
313 | 349 | $objDocumentoDTO->setDblIdProcedimento( $objProcedimentoDTO->getDblIdProcedimento() ); |
314 | 350 | |
... | ... | @@ -330,7 +366,6 @@ class ProcessoPeticionamentoRN extends InfraRN { |
330 | 366 | $objDocumentoDTO->setDblIdDocumentoEdoc( null ); |
331 | 367 | $objDocumentoDTO->setDblIdDocumentoEdocBase( null ); |
332 | 368 | $objDocumentoDTO->setNumIdUnidadeResponsavel( SessaoSEI::getInstance()->getNumIdUnidadeAtual() ); |
333 | - $objDocumentoDTO->setStrNumero(null); | |
334 | 369 | $objDocumentoDTO->setNumIdTipoConferencia( $idTipoConferencia ); |
335 | 370 | $objDocumentoDTO->setStrSinFormulario('N'); |
336 | 371 | $objDocumentoDTO->setStrSinBloqueado('N'); |
... | ... | @@ -356,7 +391,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
356 | 391 | |
357 | 392 | $objProtocoloDTO->setStrStaGrauSigilo( $idGrauSigilo ); |
358 | 393 | |
359 | - $objProtocoloDTO->setStrDescricao(''); | |
394 | + $objProtocoloDTO->setStrDescricao(''); //complemento | |
360 | 395 | $objProtocoloDTO->setDtaGeracao(InfraData::getStrDataAtual()); |
361 | 396 | |
362 | 397 | //$arrAssuntos = PaginaSEI::getInstance()->getArrValuesSelect($_POST['hdnAssuntos']); |
... | ... | @@ -364,8 +399,35 @@ class ProcessoPeticionamentoRN extends InfraRN { |
364 | 399 | $arrObjAssuntosDTO = array(); |
365 | 400 | $objProtocoloDTO->setArrObjRelProtocoloAssuntoDTO($arrObjAssuntosDTO); |
366 | 401 | |
367 | - //INTERESSADOS | |
402 | + //INTERESSADOS E REMETENTES | |
403 | + $arrObjParticipantesDTO = array(); | |
404 | + | |
405 | + //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 ); | |
419 | + | |
420 | + $remetenteDTO = new ParticipanteDTO(); | |
421 | + $remetenteRN = new ParticipanteRN(); | |
422 | + $remetenteDTO->retTodos(); | |
423 | + $remetenteDTO->setStrStaParticipacao( ParticipanteRN::$TP_REMETENTE ); | |
424 | + $remetenteDTO->setNumIdContato( $contatoDTO->getNumIdContato() ); | |
425 | + $remetenteDTO->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); | |
426 | + $remetenteDTO->setNumSequencia(0); | |
427 | + | |
368 | 428 | $arrObjParticipantesDTO = array(); |
429 | + $arrObjParticipantesDTO[] = $remetenteDTO; | |
430 | + | |
369 | 431 | $objProtocoloDTO->setArrObjParticipanteDTO($arrObjParticipantesDTO); |
370 | 432 | |
371 | 433 | //OBSERVACOES |
... | ... | @@ -416,9 +478,14 @@ class ProcessoPeticionamentoRN extends InfraRN { |
416 | 478 | $this->assinarETravarDocumento( $objUnidadeDTO, $arrParametros, $objDocumentoDTO, $objProcedimentoDTO ); |
417 | 479 | |
418 | 480 | $arrAnexoPrincipalVinculacaoProcesso[] = $itemAnexo; |
481 | + $arrIdAnexoPrincipal[] = $itemAnexo->getNumIdAnexo(); | |
419 | 482 | $contador = $contador+1; |
420 | 483 | |
421 | 484 | } |
485 | + | |
486 | + if( count( $arrIdAnexoPrincipal ) > 0 ){ | |
487 | + SessaoSEIExterna::getInstance()->setAtributo('arrIdAnexoPrincipal', $arrIdAnexoPrincipal); | |
488 | + } | |
422 | 489 | |
423 | 490 | //cria o protocolo, cria o documento, e no documento aponta o procedimento (o processo) |
424 | 491 | $arrParametros['CLASSIFICACAO_RECIBO'] = ReciboDocumentoAnexoPeticionamentoRN::$TP_PRINCIPAL; |
... | ... | @@ -438,6 +505,8 @@ class ProcessoPeticionamentoRN extends InfraRN { |
438 | 505 | $tamanhoEssencialComplementar, "essenciais"); |
439 | 506 | |
440 | 507 | //$arrAnexoDocEssencial = AnexoINT::processarRI0872( $arrParametros['hdnDocEssencial'] ); |
508 | + SessaoSEIExterna::getInstance()->setAtributo('arrIdAnexoEssencial', null); | |
509 | + $arrIdAnexoEssencial = array(); | |
441 | 510 | $arrAnexoEssencialVinculacaoProcesso = array(); |
442 | 511 | $arrAnexoComplementarVinculacaoProcesso = array(); |
443 | 512 | |
... | ... | @@ -451,6 +520,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
451 | 520 | //================================= |
452 | 521 | |
453 | 522 | $idSerieAnexo = $arrLinhasAnexos[ $contador ][9]; |
523 | + $strComplemento = $arrLinhasAnexos[ $contador ][10]; | |
454 | 524 | $idTipoConferencia = $arrLinhasAnexos[ $contador ][7]; |
455 | 525 | |
456 | 526 | $idNivelAcesso = null; |
... | ... | @@ -467,6 +537,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
467 | 537 | |
468 | 538 | //criando registro em protocolo |
469 | 539 | $objDocumentoDTO = new DocumentoDTO(); |
540 | + $objDocumentoDTO->setStrNumero( $strComplemento ); | |
470 | 541 | $objDocumentoDTO->setDblIdDocumento(null); |
471 | 542 | $objDocumentoDTO->setDblIdProcedimento( $objProcedimentoDTO->getDblIdProcedimento() ); |
472 | 543 | |
... | ... | @@ -479,7 +550,6 @@ class ProcessoPeticionamentoRN extends InfraRN { |
479 | 550 | $objDocumentoDTO->setDblIdDocumentoEdoc( null ); |
480 | 551 | $objDocumentoDTO->setDblIdDocumentoEdocBase( null ); |
481 | 552 | $objDocumentoDTO->setNumIdUnidadeResponsavel( SessaoSEI::getInstance()->getNumIdUnidadeAtual() ); |
482 | - $objDocumentoDTO->setStrNumero(null); | |
483 | 553 | $objDocumentoDTO->setNumIdTipoConferencia( $idTipoConferencia ); |
484 | 554 | $objDocumentoDTO->setStrSinFormulario('N'); |
485 | 555 | $objDocumentoDTO->setStrSinBloqueado('N'); |
... | ... | @@ -506,10 +576,37 @@ class ProcessoPeticionamentoRN extends InfraRN { |
506 | 576 | $arrObjAssuntosDTO = array(); |
507 | 577 | $objProtocoloDTO->setArrObjRelProtocoloAssuntoDTO($arrObjAssuntosDTO); |
508 | 578 | |
509 | - //INTERESSADOS | |
579 | + //INTERESSADOS E REMETENTES | |
510 | 580 | $arrObjParticipantesDTO = array(); |
581 | + | |
582 | + //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 ); | |
596 | + | |
597 | + $remetenteDTO = new ParticipanteDTO(); | |
598 | + $remetenteRN = new ParticipanteRN(); | |
599 | + $remetenteDTO->retTodos(); | |
600 | + $remetenteDTO->setStrStaParticipacao( ParticipanteRN::$TP_REMETENTE ); | |
601 | + $remetenteDTO->setNumIdContato( $contatoDTO->getNumIdContato() ); | |
602 | + $remetenteDTO->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); | |
603 | + $remetenteDTO->setNumSequencia(0); | |
604 | + | |
605 | + $arrObjParticipantesDTO = array(); | |
606 | + $arrObjParticipantesDTO[] = $remetenteDTO; | |
607 | + | |
511 | 608 | $objProtocoloDTO->setArrObjParticipanteDTO($arrObjParticipantesDTO); |
512 | - | |
609 | + | |
513 | 610 | //OBSERVACOES |
514 | 611 | $objObservacaoDTO = new ObservacaoDTO(); |
515 | 612 | $objObservacaoDTO->setStrDescricao(''); |
... | ... | @@ -557,10 +654,15 @@ class ProcessoPeticionamentoRN extends InfraRN { |
557 | 654 | $this->assinarETravarDocumento( $objUnidadeDTO, $arrParametros, $objDocumentoDTO, $objProcedimentoDTO ); |
558 | 655 | |
559 | 656 | $arrAnexoEssencialVinculacaoProcesso[] = $itemAnexo; |
657 | + $arrIdAnexoEssencial[] = $itemAnexo->getNumIdAnexo(); | |
560 | 658 | $contador = $contador+1; |
561 | 659 | |
562 | 660 | } |
563 | 661 | |
662 | + if( count( $arrIdAnexoEssencial ) > 0 ){ | |
663 | + SessaoSEIExterna::getInstance()->setAtributo('arrIdAnexoEssencial', $arrIdAnexoEssencial); | |
664 | + } | |
665 | + | |
564 | 666 | //cria o protocolo, cria o documento, e no documento aponta o procedimento (o processo) |
565 | 667 | $arrParametros['CLASSIFICACAO_RECIBO'] = ReciboDocumentoAnexoPeticionamentoRN::$TP_ESSENCIAL; |
566 | 668 | |
... | ... | @@ -579,6 +681,8 @@ class ProcessoPeticionamentoRN extends InfraRN { |
579 | 681 | $tamanhoEssencialComplementar, "complementares" ); |
580 | 682 | |
581 | 683 | //$arrAnexoDocComplementar = AnexoINT::processarRI0872( $arrParametros['hdnDocComplementar'] ); |
684 | + SessaoSEIExterna::getInstance()->setAtributo('arrIdAnexoComplementar', null); | |
685 | + $arrIdAnexoComplementar = array(); | |
582 | 686 | |
583 | 687 | $arrLinhasAnexos = PaginaSEI::getInstance()->getArrItensTabelaDinamica( $arrParametros['hdnDocComplementar'] ); |
584 | 688 | $contador = 0; |
... | ... | @@ -590,6 +694,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
590 | 694 | //================================= |
591 | 695 | |
592 | 696 | $idSerieAnexo = $arrLinhasAnexos[ $contador ][9]; |
697 | + $strComplemento = $arrLinhasAnexos[ $contador ][10]; | |
593 | 698 | $idTipoConferencia = $arrLinhasAnexos[ $contador ][7]; |
594 | 699 | |
595 | 700 | $idNivelAcesso = null; |
... | ... | @@ -606,6 +711,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
606 | 711 | |
607 | 712 | //criando registro em protocolo |
608 | 713 | $objDocumentoDTO = new DocumentoDTO(); |
714 | + $objDocumentoDTO->setStrNumero( $strComplemento ); | |
609 | 715 | $objDocumentoDTO->setDblIdDocumento(null); |
610 | 716 | $objDocumentoDTO->setDblIdProcedimento( $objProcedimentoDTO->getDblIdProcedimento() ); |
611 | 717 | |
... | ... | @@ -615,7 +721,6 @@ class ProcessoPeticionamentoRN extends InfraRN { |
615 | 721 | $objDocumentoDTO->setDblIdDocumentoEdoc( null ); |
616 | 722 | $objDocumentoDTO->setDblIdDocumentoEdocBase( null ); |
617 | 723 | $objDocumentoDTO->setNumIdUnidadeResponsavel( SessaoSEI::getInstance()->getNumIdUnidadeAtual() ); |
618 | - $objDocumentoDTO->setStrNumero(null); | |
619 | 724 | $objDocumentoDTO->setNumIdTipoConferencia( $idTipoConferencia ); |
620 | 725 | $objDocumentoDTO->setStrSinFormulario('N'); |
621 | 726 | $objDocumentoDTO->setStrSinBloqueado('N'); |
... | ... | @@ -642,10 +747,37 @@ class ProcessoPeticionamentoRN extends InfraRN { |
642 | 747 | $arrObjAssuntosDTO = array(); |
643 | 748 | $objProtocoloDTO->setArrObjRelProtocoloAssuntoDTO($arrObjAssuntosDTO); |
644 | 749 | |
645 | - //INTERESSADOS | |
750 | + //INTERESSADOS E REMETENTES | |
646 | 751 | $arrObjParticipantesDTO = array(); |
752 | + | |
753 | + //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 ); | |
767 | + | |
768 | + $remetenteDTO = new ParticipanteDTO(); | |
769 | + $remetenteRN = new ParticipanteRN(); | |
770 | + $remetenteDTO->retTodos(); | |
771 | + $remetenteDTO->setStrStaParticipacao( ParticipanteRN::$TP_REMETENTE ); | |
772 | + $remetenteDTO->setNumIdContato( $contatoDTO->getNumIdContato() ); | |
773 | + $remetenteDTO->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); | |
774 | + $remetenteDTO->setNumSequencia(0); | |
775 | + | |
776 | + $arrObjParticipantesDTO = array(); | |
777 | + $arrObjParticipantesDTO[] = $remetenteDTO; | |
778 | + | |
647 | 779 | $objProtocoloDTO->setArrObjParticipanteDTO($arrObjParticipantesDTO); |
648 | - | |
780 | + | |
649 | 781 | //OBSERVACOES |
650 | 782 | $objObservacaoDTO = new ObservacaoDTO(); |
651 | 783 | $objObservacaoDTO->setStrDescricao(''); |
... | ... | @@ -679,7 +811,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
679 | 811 | //======================== |
680 | 812 | //CRIANDO ANEXOS |
681 | 813 | //======================== |
682 | - $strTamanho = str_replace("","Kb", $itemAnexo->getNumTamanho() ); | |
814 | + $strTamanho = str_replace("","Kb", $itemAnexoComplementar->getNumTamanho() ); | |
683 | 815 | $strTamanho = str_replace("","Mb", $strTamanho ); |
684 | 816 | $itemAnexoComplementar->setDblIdProtocolo( $objDocumentoDTO->getDblIdDocumento() ); |
685 | 817 | $itemAnexoComplementar->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); |
... | ... | @@ -688,12 +820,17 @@ class ProcessoPeticionamentoRN extends InfraRN { |
688 | 820 | $itemAnexoComplementar->setStrSinAtivo('S'); |
689 | 821 | $itemAnexoComplementar = $anexoRN->cadastrarRN0172( $itemAnexoComplementar ); |
690 | 822 | $arrAnexoComplementarVinculacaoProcesso[] = $itemAnexoComplementar; |
823 | + $arrIdAnexoComplementar[] = $itemAnexoComplementar->getNumIdAnexo(); | |
691 | 824 | |
692 | 825 | $this->assinarETravarDocumento( $objUnidadeDTO, $arrParametros, $objDocumentoDTO, $objProcedimentoDTO ); |
693 | 826 | |
694 | 827 | $contador = $contador+1; |
695 | 828 | } |
696 | 829 | |
830 | + if( count( $arrIdAnexoComplementar ) > 0 ){ | |
831 | + SessaoSEIExterna::getInstance()->setAtributo('arrIdAnexoComplementar', $arrIdAnexoComplementar); | |
832 | + } | |
833 | + | |
697 | 834 | //cria o protocolo, cria o documento, e no documento aponta o procedimento (o processo) |
698 | 835 | $arrParametros['CLASSIFICACAO_RECIBO'] = ReciboDocumentoAnexoPeticionamentoRN::$TP_COMPLEMENTAR; |
699 | 836 | |
... | ... | @@ -706,7 +843,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
706 | 843 | |
707 | 844 | private function montarProtocoloDocumentoAnexo( $arrParametros, $objUnidadeDTO, $objProcedimentoDTO, |
708 | 845 | $arrParticipantesParametro, $arrAnexos, $reciboDTOBasico ){ |
709 | - | |
846 | + | |
710 | 847 | $reciboAnexoRN = new ReciboDocumentoAnexoPeticionamentoRN(); |
711 | 848 | $strClassificacao = $arrParametros['CLASSIFICACAO_RECIBO']; |
712 | 849 | |
... | ... | @@ -719,7 +856,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
719 | 856 | $reciboAnexoDTO = new ReciboDocumentoAnexoPeticionamentoDTO(); |
720 | 857 | $reciboAnexoDTO->setNumIdAnexo( $anexoDTOVinculado->getNumIdAnexo() ); |
721 | 858 | $reciboAnexoDTO->setNumIdReciboPeticionamento( $reciboDTOBasico->getNumIdReciboPeticionamento() ); |
722 | - $reciboAnexoDTO->setNumIdDocumento( null ); | |
859 | + $reciboAnexoDTO->setNumIdDocumento( $anexoDTOVinculado->getDblIdProtocolo() ); | |
723 | 860 | $reciboAnexoDTO->setStrClassificacaoDocumento( $strClassificacao ); |
724 | 861 | $reciboAnexoDTO = $reciboAnexoRN->cadastrar( $reciboAnexoDTO ); |
725 | 862 | |
... | ... | @@ -736,6 +873,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
736 | 873 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
737 | 874 | $numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); |
738 | 875 | |
876 | + $nivelAcessoDocPrincipal = $arrParametros['nivelAcessoDocPrincipal']; | |
739 | 877 | $grauSigiloDocPrincipal = $arrParametros['grauSigiloDocPrincipal']; |
740 | 878 | $hipoteseLegalDocPrincipal = $arrParametros['hipoteseLegalDocPrincipal']; |
741 | 879 | |
... | ... | @@ -754,7 +892,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
754 | 892 | $protocoloPrincipalDocumentoDTO->setNumIdUsuarioGerador( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); |
755 | 893 | $protocoloPrincipalDocumentoDTO->setStrStaProtocolo( ProtocoloRN::$TP_DOCUMENTO_GERADO ); |
756 | 894 | |
757 | - $protocoloPrincipalDocumentoDTO->setStrStaNivelAcessoLocal( $grauSigiloDocPrincipal ); | |
895 | + $protocoloPrincipalDocumentoDTO->setStrStaNivelAcessoLocal( $nivelAcessoDocPrincipal ); | |
758 | 896 | $protocoloPrincipalDocumentoDTO->setNumIdHipoteseLegal( $hipoteseLegalDocPrincipal ); |
759 | 897 | $protocoloPrincipalDocumentoDTO->setStrStaGrauSigilo(''); |
760 | 898 | |
... | ... | @@ -772,7 +910,38 @@ class ProcessoPeticionamentoRN extends InfraRN { |
772 | 910 | $protocoloPrincipalDocumentoDTO->setArrObjObservacaoDTO( array() ); |
773 | 911 | $protocoloPrincipalDocumentoDTO->setArrObjParticipanteDTO( $arrParticipantesParametro ); |
774 | 912 | $protocoloPrincipalDocumentoDTO->setNumIdSerieDocumento( $objTipoProcDTO->getNumIdSerie() ); |
775 | - | |
913 | + | |
914 | + //INTERESSADOS E REMETENTES | |
915 | + $arrObjParticipantesDTO = array(); | |
916 | + | |
917 | + //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 ); | |
931 | + | |
932 | + $remetenteDTO = new ParticipanteDTO(); | |
933 | + $remetenteRN = new ParticipanteRN(); | |
934 | + $remetenteDTO->retTodos(); | |
935 | + $remetenteDTO->setStrStaParticipacao( ParticipanteRN::$TP_REMETENTE ); | |
936 | + $remetenteDTO->setNumIdContato( $contatoDTO->getNumIdContato() ); | |
937 | + $remetenteDTO->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); | |
938 | + $remetenteDTO->setNumSequencia(0); | |
939 | + | |
940 | + $arrObjParticipantesDTO = array(); | |
941 | + $arrObjParticipantesDTO[] = $remetenteDTO; | |
942 | + | |
943 | + $protocoloPrincipalDocumentoDTO->setArrObjParticipanteDTO($arrObjParticipantesDTO); | |
944 | + | |
776 | 945 | //========================== |
777 | 946 | //ATRIBUTOS |
778 | 947 | //========================== |
... | ... | @@ -831,6 +1000,8 @@ class ProcessoPeticionamentoRN extends InfraRN { |
831 | 1000 | |
832 | 1001 | $documentoDTOPrincipal = $docRN->gerarRN0003Customizado( $documentoDTOPrincipal ); |
833 | 1002 | |
1003 | + SessaoSEIExterna::getInstance()->setAtributo('idDocPrincipalGerado', $documentoDTOPrincipal->getDblIdDocumento() ); | |
1004 | + | |
834 | 1005 | return $documentoDTOPrincipal; |
835 | 1006 | |
836 | 1007 | } |
... | ... | @@ -887,11 +1058,11 @@ class ProcessoPeticionamentoRN extends InfraRN { |
887 | 1058 | $objParticipanteDTO = new ParticipanteDTO(); |
888 | 1059 | $objParticipanteDTO->setNumIdContato( $idContato ); |
889 | 1060 | $objParticipanteDTO->setDblIdProtocolo( $objProcedimentoDTO->getDblIdProcedimento() ); |
890 | - $objParticipanteDTO->setStaParticipacao( ParticipanteRN::$TP_ACESSO_EXTERNO ); | |
1061 | + $objParticipanteDTO->setStrStaParticipacao( ParticipanteRN::$TP_ACESSO_EXTERNO ); | |
891 | 1062 | $objParticipanteDTO->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); |
892 | 1063 | $objParticipanteDTO->setNumSequencia(0); |
893 | 1064 | |
894 | - $objParticipanteDTO = $objParticipanteRN->cadastrar( $objParticipanteDTO ); | |
1065 | + $objParticipanteDTO = $objParticipanteRN->cadastrarRN0170( $objParticipanteDTO ); | |
895 | 1066 | $idParticipante = $objParticipanteDTO->getNumIdParticipante(); |
896 | 1067 | |
897 | 1068 | } else { |
... | ... | @@ -946,33 +1117,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
946 | 1117 | $arrContatos = $contatoRN->listarRN0325( $objContatoDTO ); |
947 | 1118 | return $arrContatos; |
948 | 1119 | } |
949 | - | |
950 | - //TODO: Avaliar a necessidade de registrar os dados do remetente como participante do processo | |
951 | - private function atribuirRemetente(ProtocoloDTO $objProtocoloDTO, $objRemetente) | |
952 | - { | |
953 | - $arrObjParticipantesDTO = array(); | |
954 | - if($objProtocoloDTO->isSetArrObjParticipanteDTO()) { | |
955 | - $arrObjParticipantesDTO = $objProtocoloDTO->getArrObjParticipanteDTO(); | |
956 | - } | |
957 | - | |
958 | - //Obtenção de detalhes do remetente na infraestrutura do PEN | |
959 | - $objEstruturaDTO = $this->objProcessoEletronicoRN->consultarEstrutura( | |
960 | - $objRemetente->identificacaoDoRepositorioDeEstruturas, | |
961 | - $objRemetente->numeroDeIdentificacaoDaEstrutura); | |
962 | - | |
963 | - if(!empty($objEstruturaDTO)) { | |
964 | - $objParticipanteDTO = new ParticipanteDTO(); | |
965 | - $objParticipanteDTO->setStrSiglaContato($objEstruturaDTO->getStrSigla()); | |
966 | - $objParticipanteDTO->setStrNomeContato($objEstruturaDTO->getStrNome()); | |
967 | - $objParticipanteDTO->setStrStaParticipacao(ParticipanteRN::$TP_REMETENTE); | |
968 | - $objParticipanteDTO->setNumSequencia(0); | |
969 | - $arrObjParticipantesDTO[] = $objParticipanteDTO; | |
970 | - $arrObjParticipantesDTO = $this->prepararParticipantes($arrObjParticipantesDTO); | |
971 | - } | |
972 | - | |
973 | - $objProtocoloDTO->setArrObjParticipanteDTO($arrObjParticipantesDTO); | |
974 | - } | |
975 | - | |
1120 | + | |
976 | 1121 | private function atribuirParticipantes(ProtocoloDTO $objProtocoloDTO, $arrObjInteressados) |
977 | 1122 | { |
978 | 1123 | |
... | ... | @@ -997,7 +1142,11 @@ class ProcessoPeticionamentoRN extends InfraRN { |
997 | 1142 | $arrObjParticipantesDTO[] = $objParticipanteDTO; |
998 | 1143 | } |
999 | 1144 | |
1145 | + //TODO remover para evitar participante duplicado | |
1146 | + //usuario logado NAO é participante por default exceto | |
1147 | + //no caso da parametrizaçao "Proprio Usuario Externo" | |
1000 | 1148 | //obter objeto Contato do usuario logado |
1149 | + /* | |
1001 | 1150 | $idUsuarioExterno = SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno(); |
1002 | 1151 | |
1003 | 1152 | $objUsuarioDTO = new UsuarioDTO(); |
... | ... | @@ -1025,6 +1174,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
1025 | 1174 | } |
1026 | 1175 | |
1027 | 1176 | $arrObjParticipantesDTO[] = $objParticipanteDTO; |
1177 | + */ | |
1028 | 1178 | |
1029 | 1179 | $arrObjParticipanteDTO = $this->prepararParticipantes($arrObjParticipantesDTO); |
1030 | 1180 | $objProtocoloDTO->setArrObjParticipanteDTO($arrObjParticipantesDTO); |
... | ... | @@ -1095,18 +1245,15 @@ class ProcessoPeticionamentoRN extends InfraRN { |
1095 | 1245 | |
1096 | 1246 | $objProcedimentoRN = new ProcedimentoRN(); |
1097 | 1247 | $objProcedimentoDTO = $objProcedimentoRN->consultarRN0201($objProcedimentoDTO); |
1098 | - | |
1099 | - //PETICIONAMENTO NAO VAI ACEITAR NIVEL SIGILOSO | |
1100 | - //if ($objProcedimentoDTO == null || $objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()==ProtocoloRN::$NA_SIGILOSO) { | |
1101 | - //$objInfraException->lancarValidacao('Processo ['.$parObjProcedimentoDTO->getStrProtocoloProcedimentoFormatado().'] não encontrado.'); | |
1102 | - //} | |
1103 | 1248 | |
1104 | 1249 | if ($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()==ProtocoloRN::$NA_RESTRITO) { |
1250 | + | |
1105 | 1251 | $objAcessoDTO = new AcessoDTO(); |
1106 | 1252 | $objAcessoDTO->setDblIdProtocolo($objProcedimentoDTO->getDblIdProcedimento()); |
1107 | 1253 | $objAcessoDTO->setNumIdUnidade($objUnidadeDTO->getNumIdUnidade()); |
1108 | 1254 | |
1109 | 1255 | $objAcessoRN = new AcessoRN(); |
1256 | + | |
1110 | 1257 | if ($objAcessoRN->contar($objAcessoDTO)==0) { |
1111 | 1258 | $objInfraException->adicionarValidacao('Unidade ['.$objUnidadeDTO->getStrSigla().'] não possui acesso ao processo ['.$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado().'].'); |
1112 | 1259 | } |
... | ... | @@ -1215,9 +1362,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
1215 | 1362 | |
1216 | 1363 | private function atribuirTipoProcedimento(ProcedimentoDTO $objProcedimentoDTO, $numIdTipoProcedimento) |
1217 | 1364 | { |
1218 | - | |
1219 | - //echo $numIdTipoProcedimento; die(); | |
1220 | - | |
1365 | + | |
1221 | 1366 | if(!isset($numIdTipoProcedimento)){ |
1222 | 1367 | throw new InfraException('Parâmetro $numIdTipoProcedimento não informado.'); |
1223 | 1368 | } |
... | ... | @@ -1264,8 +1409,6 @@ class ProcessoPeticionamentoRN extends InfraRN { |
1264 | 1409 | public function processarStringAnexos($strDelimitadaAnexos, $idUnidade, $strSiglaUsuario, $bolDocumentoPrincipal, $idProtocolo, |
1265 | 1410 | $numTamanhoArquivoPermitido, $strAreaDocumento ){ |
1266 | 1411 | |
1267 | - | |
1268 | - | |
1269 | 1412 | $arrAnexos = array(); |
1270 | 1413 | |
1271 | 1414 | $arrAnexos = PaginaSEI::getInstance()->getArrItensTabelaDinamica($strDelimitadaAnexos); |
... | ... | @@ -1280,9 +1423,9 @@ class ProcessoPeticionamentoRN extends InfraRN { |
1280 | 1423 | if (strpos( $tamanhoDoAnexo , 'Mb') !== false) { |
1281 | 1424 | |
1282 | 1425 | $tamanhoDoAnexo = str_replace("Mb","", $tamanhoDoAnexo ); |
1283 | - | |
1426 | + | |
1284 | 1427 | //validando tamanho máximo do arquivo |
1285 | - if( $tamanhoDoAnexo > $numTamanhoArquivoPermitido ){ | |
1428 | + if( floatval($tamanhoDoAnexo) > floatval($numTamanhoArquivoPermitido) ){ | |
1286 | 1429 | |
1287 | 1430 | $objInfraException = new InfraException(); |
1288 | 1431 | $objInfraException->adicionarValidacao('Um dos documentos ' . $strAreaDocumento . ' adicionados excedeu o tamanho máximo permitido (Limite: ' . $numTamanhoArquivoPermitido . ' Mb).'); | ... | ... |
sei/institucional/peticionamento/rn/ProtocoloPeticionamentoRN.php
... | ... | @@ -37,19 +37,7 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
37 | 37 | if (InfraString::isBolVazia($strNumeracao)){ |
38 | 38 | throw new InfraException('Formato da numeração não configurado para o órgão '.$objOrgaoDTO->getStrSigla().'.'); |
39 | 39 | } |
40 | - | |
41 | - /* TODO como ja esta passando a unidade por parametro acho que nao precisa dessa parte, certo? CONFIRMAR | |
42 | - if (strpos($strNumeracao,'@cod_unidade_sei')!==false || strpos($strNumeracao,'@seq_anual_cod_unidade_sei')!==false){ | |
43 | - $objUnidadeDTO = new UnidadeDTO(); | |
44 | - $objUnidadeDTO->retStrSigla(); | |
45 | - $objUnidadeDTO->retStrCodigoSei(); | |
46 | - $objUnidadeDTO->setNumIdUnidade($objUnidadeDTO->getNumIdUnidade()); | |
47 | - | |
48 | - $objUnidadeRN = new UnidadeRN(); | |
49 | - print_r( $objUnidadeDTO );die(); | |
50 | - $objUnidadeDTO = $objUnidadeRN->consultarRN0125($objUnidadeDTO); | |
51 | - } */ | |
52 | - | |
40 | + | |
53 | 41 | //Padrao SEI |
54 | 42 | //@ano_2d@.@cod_orgao_sip@.@seq_anual_cod_orgao_sip_09d@-@dv_mod11_1d@ |
55 | 43 | |
... | ... | @@ -101,9 +89,7 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
101 | 89 | } |
102 | 90 | |
103 | 91 | if (strpos($strNumeracao,'@cod_unidade_sei')!==false){ |
104 | - | |
105 | - //debug_print_backtrace(); die(); | |
106 | - | |
92 | + | |
107 | 93 | if (InfraString::isBolVazia($objUnidadeDTO->getStrCodigoSei())){ |
108 | 94 | throw new InfraException('Código SEI não configurado para a unidade '.$objUnidadeDTO->getStrSigla().' / '.$objOrgaoDTO->getStrSigla().'.'); |
109 | 95 | } |
... | ... | @@ -209,10 +195,7 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
209 | 195 | }else if (strpos($strNumeracao,'@dv_mod11_executivo_federal_2d@')!==false){ |
210 | 196 | |
211 | 197 | $dv1 = $this->calcularMod11ExecutivoFederal($strNumeracaoDv); |
212 | - //echo " dv1" . $dv1; die(); | |
213 | - //echo " strNumeracaoDv.dv1 = " . $strNumeracaoDv.$dv1; die(); | |
214 | 198 | $dv2 = $this->calcularMod11ExecutivoFederal($strNumeracaoDv.$dv1); |
215 | - //echo " dv2" . $dv2; die(); | |
216 | 199 | $strNumeracao = str_replace('@dv_mod11_executivo_federal_2d@',(string)$dv1.(string)$dv2, $strNumeracao); |
217 | 200 | |
218 | 201 | }else if (strpos($strNumeracao,'@dv_mod97_base10_cnj_2d@')!==false){ |
... | ... | @@ -220,8 +203,7 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
220 | 203 | }else if (strpos($strNumeracao,'@dv_mod97_base10_executivo_federal_2d@')!==false){ |
221 | 204 | $strNumeracao = str_replace('@dv_mod97_base10_executivo_federal_2d@', $this->calcularMod97Base10ExecutivoFederal($strNumeracaoDv), $strNumeracao); |
222 | 205 | } |
223 | - | |
224 | - //echo $strNumeracao; die(); | |
206 | + | |
225 | 207 | return $strNumeracao; |
226 | 208 | |
227 | 209 | } catch(Exception $e){ |
... | ... | @@ -231,7 +213,6 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
231 | 213 | |
232 | 214 | private function calcularMod11ExecutivoFederal($strValor){ |
233 | 215 | |
234 | - //echo "teste" . $strValor; | |
235 | 216 | $soma = 0; // acumulador |
236 | 217 | $peso = 2; // peso inicial |
237 | 218 | |
... | ... | @@ -239,16 +220,12 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
239 | 220 | //InfraDebug::getInstance()->gravar(substr($strValor, $i, 1).' * '.$peso.' = '.intval(substr($strValor, $i, 1)) * $peso); |
240 | 221 | $soma += intval(substr($strValor, $i, 1)) * $peso++; |
241 | 222 | } |
242 | - | |
243 | - //echo "teste 2 " . $strValor; | |
244 | - | |
223 | + | |
245 | 224 | //InfraDebug::getInstance()->gravar('SOMA='.$soma); |
246 | 225 | |
247 | 226 | $resto = $soma % 11; |
248 | 227 | $dv = 11 - $resto; |
249 | - | |
250 | - //echo "teste 3 " . $dv; | |
251 | - | |
228 | + | |
252 | 229 | //11 - 10 = 1 |
253 | 230 | //11 - 9 = 2 |
254 | 231 | //11 - 8 = 3 |
... | ... | @@ -267,10 +244,6 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
267 | 244 | $dv = 1; |
268 | 245 | } |
269 | 246 | |
270 | - //echo "teste 4 " . $dv; | |
271 | - | |
272 | - //InfraDebug::getInstance()->gravar('RESTO:'.$resto); | |
273 | - | |
274 | 247 | return $dv; |
275 | 248 | } |
276 | 249 | |
... | ... | @@ -296,6 +269,7 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
296 | 269 | if ($objProtocoloDTO->isSetArrObjRelProtocoloAtributoDTO()){ |
297 | 270 | $this->validarArrObjRelProtocoloAtributoDTO($objProtocoloDTO, $objInfraException); |
298 | 271 | } |
272 | + | |
299 | 273 | $this->validarArrParticipanteRN0572($objProtocoloDTO, $objInfraException); |
300 | 274 | $this->validarArrObjObservacaoRN0573($objProtocoloDTO, $objInfraException); |
301 | 275 | $this->validarArrAnexoRN0227($objProtocoloDTO,$objInfraException); |
... | ... | @@ -304,11 +278,6 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
304 | 278 | $this->validarDtaGeracaoRN0215($objProtocoloDTO, $objInfraException); |
305 | 279 | $this->validarStrDescricaoRN1229($objProtocoloDTO, $objInfraException); |
306 | 280 | |
307 | - //TESTE COMENTADO | |
308 | - //if ($objProtocoloDTO->isSetStrStaEstado()){ | |
309 | - //$objInfraException->adicionarValidacao('Estado do protocolo não pode ser informado na geração.'); | |
310 | - //} | |
311 | - | |
312 | 281 | $this->validarStrStaNivelAcessoLocalRN0685($objProtocoloDTO, $objInfraException); |
313 | 282 | |
314 | 283 | if (!$objProtocoloDTO->isSetStrStaGrauSigilo()){ |
... | ... | @@ -320,16 +289,6 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
320 | 289 | $objProtocoloDTO->setNumIdHipoteseLegal(null); |
321 | 290 | } |
322 | 291 | |
323 | - //print_r( $objProtocoloDTO ); die(); | |
324 | - | |
325 | - // PHP < 5.3.6 | |
326 | - //foreach (debug_backtrace() as $trace) | |
327 | - //{ | |
328 | - //echo sprintf("\n%s:%s %s::%s <br/>", $trace['file'], $trace['line'], $trace['class'], $trace['function']); | |
329 | - //} | |
330 | - //die; | |
331 | - | |
332 | - //print_r( $objProtocoloDTO ); die(); | |
333 | 292 | $this->validarNumIdHipoteseLegal($objProtocoloDTO, $objInfraException); |
334 | 293 | |
335 | 294 | $objProtocoloDTO->setStrStaEstado(self::$TE_NORMAL); |
... | ... | @@ -434,6 +393,7 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
434 | 393 | |
435 | 394 | $objAnexoRN = new AnexoRN(); |
436 | 395 | $arrAnexos = $objProtocoloDTO->getArrObjAnexoDTO(); |
396 | + | |
437 | 397 | for($i=0;$i<count($arrAnexos);$i++){ |
438 | 398 | $arrAnexos[$i]->setDblIdProtocolo($objProtocoloDTO->getDblIdProtocolo()); |
439 | 399 | $arrAnexos[$i]->setNumIdBaseConhecimento(null); |
... | ... | @@ -442,7 +402,6 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
442 | 402 | $arrAnexos[$i]->setNumIdUnidade( $numIdUnidade ); |
443 | 403 | $arrAnexos[$i]->setStrSinAtivo('S'); |
444 | 404 | $objAnexoRN->cadastrarRN0172($arrAnexos[$i]); |
445 | - //$arrAnexos[$i]->setNumIdAnexo($objAnexoDTO->getNumIdAnexo()); | |
446 | 405 | } |
447 | 406 | |
448 | 407 | //Auditoria |
... | ... | @@ -523,6 +482,7 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
523 | 482 | } |
524 | 483 | |
525 | 484 | private function validarArrAnexoRN0227(ProtocoloDTO $objProtocoloDTO, InfraException $objInfraException){ |
485 | + //TODO checar se pode remover este método | |
526 | 486 | //Nada a validar |
527 | 487 | } |
528 | 488 | |
... | ... | @@ -571,7 +531,7 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
571 | 531 | } |
572 | 532 | |
573 | 533 | private function validarStrStaGrauSigilo(ProtocoloDTO $objProtocoloDTO, InfraException $objInfraException){ |
574 | - //if (SessaoSEI::getInstance()->isBolHabilitada()){ //Não validar para Web-services | |
534 | + | |
575 | 535 | $objInfraParametro = new InfraParametro(BancoSEI::getInstance()); |
576 | 536 | $numHabilitarGrauSigilo = $objInfraParametro->getValor('SEI_HABILITAR_GRAU_SIGILO'); |
577 | 537 | |
... | ... | @@ -597,20 +557,17 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
597 | 557 | }else{ |
598 | 558 | $objProtocoloDTO->setStrStaGrauSigilo(null); |
599 | 559 | } |
600 | - //} | |
601 | 560 | } |
602 | 561 | |
603 | 562 | private function validarNumIdHipoteseLegal(ProtocoloDTO $objProtocoloDTO, InfraException $objInfraException){ |
604 | - //if (SessaoSEI::getInstance()->isBolHabilitada()){ //Não validar para Web-services | |
563 | + | |
605 | 564 | $objInfraParametro = new InfraParametro(BancoSEI::getInstance()); |
606 | 565 | $numHabilitarHipoteseLegal = $objInfraParametro->getValor('SEI_HABILITAR_HIPOTESE_LEGAL'); |
607 | 566 | |
608 | 567 | if ($numHabilitarHipoteseLegal){ |
609 | 568 | |
610 | 569 | if($objProtocoloDTO->getStrStaNivelAcessoLocal()==ProtocoloRN::$NA_SIGILOSO || $objProtocoloDTO->getStrStaNivelAcessoLocal()==ProtocoloRN::$NA_RESTRITO){ |
611 | - | |
612 | - //echo " aqui 1"; die(); | |
613 | - | |
570 | + | |
614 | 571 | if ($numHabilitarHipoteseLegal==2 && InfraString::isBolVazia($objProtocoloDTO->getNumIdHipoteseLegal())){ |
615 | 572 | $objInfraException->adicionarValidacao('Hipótese Legal não informada.'); |
616 | 573 | } |
... | ... | @@ -626,21 +583,12 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
626 | 583 | |
627 | 584 | if ($objHipoteseLegalDTO==null){ |
628 | 585 | $objInfraException->adicionarValidacao('Hipótese Legal não encontrada.'); |
629 | - }else{ | |
630 | - | |
631 | - //if ($objHipoteseLegalDTO->getStrStaNivelAcesso()!=$objProtocoloDTO->getStrStaNivelAcessoLocal()){ | |
632 | - //$objInfraException->adicionarValidacao('Hipótese Legal não aplicável ao Nível de Acesso do protocolo.'); | |
633 | - //} | |
634 | - | |
635 | 586 | } |
636 | 587 | } |
637 | 588 | |
638 | 589 | }else{ |
639 | - | |
640 | - //echo " aqui 2 :: " . $objProtocoloDTO->getNumIdHipoteseLegal(); die(); | |
641 | - | |
590 | + | |
642 | 591 | if ( $objProtocoloDTO->isSetNumIdHipoteseLegal() && !InfraString::isBolVazia($objProtocoloDTO->getNumIdHipoteseLegal())){ |
643 | - //var_dump( debug_backtrace() ); die(); | |
644 | 592 | $objInfraException->adicionarValidacao('Hipótese Legal não aplicável ao protocolo.'); |
645 | 593 | } |
646 | 594 | |
... | ... | @@ -648,7 +596,6 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
648 | 596 | }else{ |
649 | 597 | $objProtocoloDTO->setNumIdHipoteseLegal(null); |
650 | 598 | } |
651 | - //} | |
652 | 599 | } |
653 | 600 | |
654 | 601 | public function gerarNumeracaoInterna() { |
... | ... | @@ -674,6 +621,7 @@ class ProtocoloPeticionamentoRN extends ProtocoloRN { |
674 | 621 | } |
675 | 622 | |
676 | 623 | private function validarStrProtocoloFormatadoRN0211(ProtocoloDTO $objProtocoloDTO, InfraException $objInfraException){ |
624 | + | |
677 | 625 | if (InfraString::isBolVazia($objProtocoloDTO->getStrProtocoloFormatado())){ |
678 | 626 | $objInfraException->adicionarValidacao('Número do protocolo não informado.'); |
679 | 627 | }else{ | ... | ... |
sei/institucional/peticionamento/rn/ReciboDocumentoAnexoPeticionamentoRN.php
... | ... | @@ -66,16 +66,10 @@ class ReciboDocumentoAnexoPeticionamentoRN extends InfraRN { |
66 | 66 | } |
67 | 67 | |
68 | 68 | protected function cadastrarControlado(ReciboDocumentoAnexoPeticionamentoDTO $objDTO) { |
69 | + | |
69 | 70 | try { |
70 | - // Valida Permissao | |
71 | - //SessaoSEI::getInstance ()->validarAuditarPermissao ('menu_peticionamento_usuario_externo_cadastrar', __METHOD__, $objMenuPeticionamentoUsuarioExternoDTO ); | |
72 | - | |
71 | + | |
73 | 72 | $objInfraException = new InfraException(); |
74 | - | |
75 | - //$this->_validarCamposObrigatorios($objMenuPeticionamentoUsuarioExternoDTO, $objInfraException); | |
76 | - //$this->_validarDuplicidade($objMenuPeticionamentoUsuarioExternoDTO, $objInfraException, true); | |
77 | - //$objInfraException->lancarValidacoes(); | |
78 | - | |
79 | 73 | $objBD = new ReciboDocumentoAnexoPeticionamentoBD($this->getObjInfraIBanco()); |
80 | 74 | $ret = $objBD->cadastrar($objDTO); |
81 | 75 | return $ret; | ... | ... |
sei/institucional/peticionamento/rn/ReciboPeticionamentoRN.php
... | ... | @@ -130,7 +130,7 @@ class ReciboPeticionamentoRN extends InfraRN { |
130 | 130 | $reciboDTO->setDthDataHoraRecebimentoFinal( InfraData::getStrDataHoraAtual() ); |
131 | 131 | $reciboDTO->setStrIpUsuario( InfraUtil::getStrIpUsuario() ); |
132 | 132 | $reciboDTO->setStrSinAtivo('S'); |
133 | - $reciboDTO->setStrTipoPeticionamento('Novo'); | |
133 | + $reciboDTO->setStrStaTipoPeticionamento('N'); | |
134 | 134 | |
135 | 135 | $objBD = new ReciboPeticionamentoBD($this->getObjInfraIBanco()); |
136 | 136 | $ret = $objBD->cadastrar( $reciboDTO ); |
... | ... | @@ -159,7 +159,7 @@ class ReciboPeticionamentoRN extends InfraRN { |
159 | 159 | $reciboDTO->setDthDataHoraRecebimentoFinal( InfraData::getStrDataHoraAtual() ); |
160 | 160 | $reciboDTO->setStrIpUsuario( InfraUtil::getStrIpUsuario() ); |
161 | 161 | $reciboDTO->setStrSinAtivo('S'); |
162 | - $reciboDTO->setStrTipoPeticionamento('Novo'); | |
162 | + $reciboDTO->setStrStaTipoPeticionamento('N'); | |
163 | 163 | |
164 | 164 | $objBD = new ReciboPeticionamentoBD($this->getObjInfraIBanco()); |
165 | 165 | $ret = $objBD->cadastrar( $reciboDTO ); |
... | ... | @@ -171,7 +171,8 @@ class ReciboPeticionamentoRN extends InfraRN { |
171 | 171 | //método utilizado para gerar recibo ao final do cadastramento de um processo de peticionamento de usuario externo |
172 | 172 | protected function montarReciboControlado( $arrParams ){ |
173 | 173 | |
174 | - $reciboDTO = $this->cadastrar( $arrParams ); | |
174 | + //$reciboDTO = $this->cadastrar( $arrParams ); | |
175 | + $reciboDTO = $arrParams[4]; | |
175 | 176 | |
176 | 177 | //gerando documento recibo (nao assinado) dentro do processo do SEI |
177 | 178 | $objInfraParametro = new InfraParametro($this->getObjInfraIBanco()); |
... | ... | @@ -180,7 +181,6 @@ class ReciboPeticionamentoRN extends InfraRN { |
180 | 181 | $objUnidadeDTO = $arrParams[1]; //UnidadeDTO da unidade geradora do processo |
181 | 182 | $objProcedimentoDTO = $arrParams[2]; //ProcedimentoDTO para vincular o recibo ao processo correto |
182 | 183 | $arrParticipantesParametro = $arrParams[3]; //array de ParticipanteDTO |
183 | - $arrParams[4] = $reciboDTO; | |
184 | 184 | |
185 | 185 | //tentando simular sessao de usuario interno do SEI |
186 | 186 | SessaoSEI::getInstance()->setNumIdUnidadeAtual( $objUnidadeDTO->getNumIdUnidade() ); |
... | ... | @@ -190,8 +190,8 @@ class ReciboPeticionamentoRN extends InfraRN { |
190 | 190 | $hipoteseLegalDocPrincipal = $arrParametros['hipoteseLegalDocPrincipal']; |
191 | 191 | |
192 | 192 | //TODO montar corretamente conteudo HTML final do recibo |
193 | - $htmlRecibo = "teste"; | |
194 | - //$htmlRecibo = $this->gerarHTMLConteudoDocRecibo( $arrParams ); | |
193 | + //$htmlRecibo = "teste"; | |
194 | + $htmlRecibo = $this->gerarHTMLConteudoDocRecibo( $arrParams ); | |
195 | 195 | |
196 | 196 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
197 | 197 | |
... | ... | @@ -304,9 +304,9 @@ class ReciboPeticionamentoRN extends InfraRN { |
304 | 304 | |
305 | 305 | $html = ''; |
306 | 306 | |
307 | - $html .= '<table width="90%" align="center" style="width: 90%" border="0">'; | |
307 | + $html .= '<table align="center" style="width: 90%" border="0">'; | |
308 | 308 | $html .= '<tbody><tr>'; |
309 | - $html .= '<td style="font-weight: bold; width: 280px;" width="280">Usuário Externo (signatário):</td>'; | |
309 | + $html .= '<td style="font-weight: bold; width: 300px;">Usuário Externo (signatário):</td>'; | |
310 | 310 | $html .= '<td>' . $objUsuarioDTO->getStrNome() . '</td>'; |
311 | 311 | $html .= '</tr>'; |
312 | 312 | |
... | ... | @@ -316,77 +316,133 @@ class ReciboPeticionamentoRN extends InfraRN { |
316 | 316 | $html .= '</tr>'; |
317 | 317 | |
318 | 318 | $html .= '<tr>'; |
319 | - $html .= '<td style="font-weight: bold;">Tipo de Peticionamento:</td>'; | |
320 | - $html .= '<td>Processo ' . $reciboDTO->getStrTipoPeticionamento() . '</td>'; | |
319 | + $html .= '<td style="font-weight: bold;">Data e Horário:</td>'; | |
320 | + $html .= '<td>' . DataUtils::setFormat( $reciboDTO->getDthDataHoraRecebimentoFinal(),'dd/mm/yyyy hh:mm') . '</td>'; | |
321 | 321 | $html .= '</tr>'; |
322 | - | |
322 | + | |
323 | 323 | $html .= '<tr>'; |
324 | - $html .= '<td style="font-weight: bold;">Data e horário (recebimento final pelo SEI):</td>'; | |
325 | - $html .= '<td>' . DataUtils::setFormat( $reciboDTO->getDthDataHoraRecebimentoFinal(),'dd/mm/yyyy hh:mm') . '</td>'; | |
324 | + $html .= '<td style="font-weight: bold;">Tipo de Peticionamento:</td>'; | |
325 | + $html .= '<td>' . $reciboDTO->getStrStaTipoPeticionamentoFormatado() . '</td>'; | |
326 | 326 | $html .= '</tr>'; |
327 | 327 | |
328 | 328 | $html .= '<tr>'; |
329 | - $html .= '<td style="font-weight: bold;">Número do processo:</td>'; | |
329 | + $html .= '<td style="font-weight: bold;">Número do Processo:</td>'; | |
330 | 330 | $html .= '<td>' . $objProcedimentoDTO->getStrProtocoloProcedimentoFormatado() . '</td>'; |
331 | 331 | $html .= '</tr>'; |
332 | 332 | |
333 | + //obter interessados | |
334 | + $arrInteressados = array(); | |
335 | + $objParticipanteDTO = new ParticipanteDTO(); | |
336 | + $objParticipanteDTO->setDblIdProtocolo( $reciboDTO->getNumIdProtocolo() ); | |
337 | + $objParticipanteDTO->retNumIdContato(); | |
338 | + $objParticipanteRN = new ParticipanteRN(); | |
339 | + $arrObjParticipanteDTO = $objParticipanteRN->listarRN0189($objParticipanteDTO); | |
340 | + | |
341 | + foreach ($arrObjParticipanteDTO as $objParticipanteDTO) { | |
342 | + $objContatoDTO = new ContatoDTO(); | |
343 | + $objContatoDTO->setNumIdContato($objParticipanteDTO->getNumIdContato()); | |
344 | + $objContatoDTO->retStrNome(); | |
345 | + $objContatoRN = new ContatoRN(); | |
346 | + $arrInteressados[] = $objContatoRN->consultarRN0324($objContatoDTO); | |
347 | + } | |
348 | + | |
333 | 349 | $html .= '<tr>'; |
334 | 350 | $html .= '<td style="font-weight: bold;">Interessados:</td>'; |
335 | 351 | $html .= '<td></td>'; |
336 | 352 | $html .= '</tr>'; |
337 | 353 | |
354 | + if( $arrInteressados != null && count( $arrInteressados ) > 0 ){ | |
355 | + | |
356 | + foreach ($arrInteressados as $interessado) { | |
357 | + $html .= '<tr>'; | |
358 | + $html .= '<td>     ' . $interessado->getStrNome() . '</td>'; | |
359 | + $html .= '<td></td>'; | |
360 | + $html .= '</tr>'; | |
361 | + } | |
362 | + | |
363 | + } | |
364 | + | |
338 | 365 | $html .= '<tr>'; |
339 | 366 | $html .= '<td style="font-weight: bold;">Protocolos dos Documentos (Número SEI):</td>'; |
340 | 367 | $html .= '<td></td>'; |
341 | 368 | $html .= '</tr>'; |
342 | 369 | |
370 | + $idPrincipalGerado = SessaoSEIExterna::getInstance()->getAtributo('idDocPrincipalGerado'); | |
371 | + $arrIdPrincipal = SessaoSEIExterna::getInstance()->getAtributo('arrIdAnexoPrincipal'); | |
372 | + $arrIdEssencial = SessaoSEIExterna::getInstance()->getAtributo('arrIdAnexoEssencial'); | |
373 | + $arrIdComplementar = SessaoSEIExterna::getInstance()->getAtributo('arrIdAnexoComplementar'); | |
374 | + | |
343 | 375 | $anexoRN = new AnexoRN(); |
344 | 376 | $documentoRN = new DocumentoRN(); |
345 | 377 | |
346 | - if( isset($arrParams[0]['hdnDocPrincipal']) && $arrParams[0]['hdnDocPrincipal'] != "" ){ | |
378 | + if( $idPrincipalGerado != null ){ | |
379 | + | |
380 | + $html .= '<tr>'; | |
381 | + $html .= '<td style="font-weight: bold;"> - Documento Principal:</td>'; | |
382 | + $html .= '<td></td>'; | |
383 | + $html .= '</tr>'; | |
384 | + | |
385 | + $documentoDTO = new DocumentoDTO(); | |
386 | + $documentoDTO->retStrNumero(); | |
387 | + $documentoDTO->retStrNomeSerie(); | |
388 | + $documentoDTO->retStrDescricaoProtocolo(); | |
389 | + $documentoDTO->retStrProtocoloDocumentoFormatado(); | |
390 | + $documentoDTO->setDblIdDocumento( $idPrincipalGerado ); | |
391 | + $documentoDTO = $documentoRN->consultarRN0005( $documentoDTO ); | |
392 | + | |
393 | + $strNome = $documentoDTO->getStrNomeSerie() . " " . $documentoDTO->getStrNumero(); | |
394 | + $strNumeroSEI = $documentoDTO->getStrProtocoloDocumentoFormatado(); | |
395 | + | |
396 | + $html .= '<tr>'; | |
397 | + $html .= '<td> - ' . $strNome . '</td>'; | |
398 | + $html .= '<td>' . $strNumeroSEI . '</td>'; | |
399 | + $html .= '</tr>'; | |
400 | + | |
401 | + //SessaoSEIExterna::getInstance()->removerAtributo('idDocPrincipalGerado'); | |
402 | + } | |
403 | + | |
404 | + if( $arrIdPrincipal != null && count( $arrIdPrincipal ) > 0 ){ | |
347 | 405 | |
348 | 406 | $html .= '<tr>'; |
349 | - $html .= '<td style="font-weight: bold;">- Documento Principal:</td>'; | |
407 | + $html .= '<td style="font-weight: bold;"> - Documento Principal:</td>'; | |
350 | 408 | $html .= '<td></td>'; |
351 | 409 | $html .= '</tr>'; |
352 | 410 | |
353 | 411 | //loop na lista de documentos principais |
354 | - | |
355 | - $arrAnexos = PaginaSEI::getInstance()->getArrItensTabelaDinamica( $arrParams[0]['hdnDocPrincipal'] ); | |
356 | - $arrObjAnexoDTO = array(); | |
357 | - | |
358 | - foreach($arrAnexos as $anexo){ | |
412 | + | |
413 | + $objAnexoDTO = new AnexoDTO(); | |
414 | + $objAnexoDTO->retTodos(true); | |
359 | 415 | |
360 | - $objAnexoDTO = new AnexoDTO(); | |
361 | - $objAnexoDTO->retTodos(true); | |
362 | - //$objAnexoDTO->setNumIdAnexo( null ); | |
363 | - $objAnexoDTO->setStrSinAtivo('S'); | |
364 | - $objAnexoDTO->setStrNome($anexo[8]); | |
365 | - //$objAnexoDTO->setDthInclusao($anexo[1]); | |
366 | - //$objAnexoDTO->setNumTamanho($anexo[2]); | |
367 | - //$objAnexoDTO->setStrSiglaUsuario( $strSiglaUsuario ); | |
368 | - //$objAnexoDTO->setStrSiglaUnidade( $idUnidade ); | |
369 | - $objAnexoDTO->setNumIdUsuario(SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno()); | |
416 | + $objAnexoDTO->adicionarCriterio(array('IdAnexo'), | |
417 | + array(InfraDTO::$OPER_IN), | |
418 | + array($arrIdPrincipal)); | |
419 | + | |
420 | + $arrAnexoDTO = $anexoRN->listarRN0218( $objAnexoDTO ); | |
421 | + | |
422 | + foreach($arrAnexoDTO as $anexoPrincipal){ | |
370 | 423 | |
371 | - $objAnexoDTO = $anexoRN->consultarRN0736( $objAnexoDTO ); | |
372 | - $strNome = $objAnexoDTO->getStrNome(); | |
424 | + $strNome = $anexoPrincipal->getStrNome(); | |
373 | 425 | $strTipoDocumento = ""; |
374 | - $strNumeroSEI = $objAnexoDTO->getStrProtocoloFormatadoProtocolo(); | |
426 | + $strNumeroSEI = $anexoPrincipal->getStrProtocoloFormatadoProtocolo(); | |
375 | 427 | |
376 | 428 | $documentoDTO = new DocumentoDTO(); |
429 | + | |
430 | + $documentoDTO->retStrNumero(); | |
377 | 431 | $documentoDTO->retStrNomeSerie(); |
378 | - $documentoDTO->setDblIdDocumento( $objAnexoDTO->getDblIdProtocolo() ); | |
432 | + $documentoDTO->retStrDescricaoProtocolo(); | |
433 | + $documentoDTO->retStrProtocoloDocumentoFormatado(); | |
434 | + | |
435 | + $documentoDTO->setDblIdDocumento( $anexoPrincipal->getDblIdProtocolo() ); | |
379 | 436 | $documentoDTO = $documentoRN->consultarRN0005( $documentoDTO ); |
380 | 437 | |
381 | 438 | //concatenar tipo e complemento |
382 | - $strNome = $documentoDTO->getStrNomeSerie() . ' - Complemento:'; | |
439 | + $strNome = $documentoDTO->getStrNomeSerie() . ' ' . $documentoDTO->getStrNumero(); | |
383 | 440 | |
384 | 441 | $html .= '<tr>'; |
385 | - $html .= '<td> - ' . $strNome . '</td>'; | |
442 | + $html .= '<td> - ' . $strNome . '</td>'; | |
386 | 443 | $html .= '<td>' . $strNumeroSEI . '</td>'; |
387 | 444 | $html .= '</tr>'; |
388 | - | |
389 | - //$arrObjAnexoDTO[] = $objAnexoDTO; | |
445 | + | |
390 | 446 | } |
391 | 447 | |
392 | 448 | //fim loop de documentos principais |
... | ... | @@ -394,48 +450,46 @@ class ReciboPeticionamentoRN extends InfraRN { |
394 | 450 | |
395 | 451 | //ESSENCIAL |
396 | 452 | |
397 | - if( isset($arrParams[0]['hdnDocEssencial']) && $arrParams[0]['hdnDocEssencial'] != "" ){ | |
453 | + if( $arrIdEssencial != null && count( $arrIdEssencial ) > 0 ){ | |
398 | 454 | |
399 | 455 | $html .= '<tr>'; |
400 | - $html .= '<td style="font-weight: bold;">- Documentos Essenciais:</td>'; | |
456 | + $html .= '<td style="font-weight: bold;"> - Documentos Essenciais:</td>'; | |
401 | 457 | $html .= '<td></td>'; |
402 | 458 | $html .= '</tr>'; |
459 | + | |
460 | + $objAnexoDTO = new AnexoDTO(); | |
461 | + $objAnexoDTO->retTodos(true); | |
403 | 462 | |
404 | - $arrAnexos = PaginaSEI::getInstance()->getArrItensTabelaDinamica( $arrParams[0]['hdnDocEssencial'] ); | |
405 | - $arrObjAnexoDTO = array(); | |
463 | + $objAnexoDTO->adicionarCriterio(array('IdAnexo'), | |
464 | + array(InfraDTO::$OPER_IN), | |
465 | + array($arrIdEssencial)); | |
406 | 466 | |
407 | - foreach($arrAnexos as $anexo){ | |
408 | - | |
409 | - $objAnexoDTO = new AnexoDTO(); | |
410 | - $objAnexoDTO->retTodos(true); | |
411 | - //$objAnexoDTO->setNumIdAnexo( null ); | |
412 | - $objAnexoDTO->setStrSinAtivo('S'); | |
413 | - $objAnexoDTO->getStrProtocoloFormatadoProtocolo(); | |
414 | - $objAnexoDTO->setStrNome($anexo[10]); | |
415 | - //$objAnexoDTO->setDthInclusao($anexo[2]); | |
416 | - //$objAnexoDTO->setNumTamanho($anexo[4]); | |
417 | - //$objAnexoDTO->setStrSiglaUsuario( $strSiglaUsuario ); | |
418 | - //$objAnexoDTO->setStrSiglaUnidade( $idUnidade ); | |
419 | - //$objAnexoDTO->setNumIdUsuario(SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno()); | |
420 | - $arrObjAnexoDTO[] = $objAnexoDTO; | |
467 | + $arrAnexoDTOEssencial = $anexoRN->listarRN0218( $objAnexoDTO ); | |
468 | + | |
469 | + foreach( $arrAnexoDTOEssencial as $objAnexoEssencial ){ | |
421 | 470 | |
422 | - $strNome = $objAnexoDTO->getStrNome(); | |
471 | + $strNome = $objAnexoEssencial->getStrNome(); | |
423 | 472 | $strTipoDocumento = ""; |
424 | - $strNumeroSEI = $objAnexoDTO->getStrProtocoloFormatadoProtocolo(); | |
473 | + $strNumeroSEI = $objAnexoEssencial->getStrProtocoloFormatadoProtocolo(); | |
425 | 474 | |
426 | 475 | $documentoDTO = new DocumentoDTO(); |
476 | + | |
477 | + $documentoDTO->retStrNumero(); | |
427 | 478 | $documentoDTO->retStrNomeSerie(); |
428 | - $documentoDTO->setDblIdDocumento( $objAnexoDTO->getDblIdProtocolo() ); | |
479 | + $documentoDTO->retStrDescricaoProtocolo(); | |
480 | + $documentoDTO->retStrProtocoloDocumentoFormatado(); | |
481 | + | |
482 | + $documentoDTO->setDblIdDocumento( $objAnexoEssencial->getDblIdProtocolo() ); | |
429 | 483 | $documentoDTO = $documentoRN->consultarRN0005( $documentoDTO ); |
484 | + | |
430 | 485 | //concatenar tipo e complemento |
431 | - $strNome = $documentoDTO->getStrNomeSerie() . ' - Complemento:'; | |
486 | + $strNome = $documentoDTO->getStrNomeSerie() . ' ' . $documentoDTO->getStrNumero(); | |
432 | 487 | |
433 | 488 | $html .= '<tr>'; |
434 | - $html .= '<td> - ' . $strNome . '</td>'; | |
489 | + $html .= '<td> - ' . $strNome . '</td>'; | |
435 | 490 | $html .= '<td>' . $strNumeroSEI . '</td>'; |
436 | - $html .= '</tr>'; | |
437 | - | |
438 | - | |
491 | + $html .= '</tr>'; | |
492 | + | |
439 | 493 | } |
440 | 494 | |
441 | 495 | } |
... | ... | @@ -444,61 +498,52 @@ class ReciboPeticionamentoRN extends InfraRN { |
444 | 498 | |
445 | 499 | //COMPLEMENTAR |
446 | 500 | |
447 | - if( isset($arrParams[0]['hdnDocComplementar']) && $arrParams[0]['hdnDocComplementar'] != "" ){ | |
501 | + if( $arrIdComplementar != null && count( $arrIdComplementar ) > 0 ){ | |
448 | 502 | |
449 | 503 | $html .= '<tr>'; |
450 | - $html .= '<td style="font-weight: bold;">- Documentos Complementares:</td>'; | |
504 | + $html .= '<td style="font-weight: bold;"> - Documentos Complementares:</td>'; | |
451 | 505 | $html .= '<td></td>'; |
452 | 506 | $html .= '</tr>'; |
453 | 507 | |
454 | - $arrAnexos = PaginaSEI::getInstance()->getArrItensTabelaDinamica( $arrParams[0]['hdnDocComplementar'] ); | |
455 | - $arrObjAnexoDTO = array(); | |
508 | + $objAnexoDTO = new AnexoDTO(); | |
509 | + $objAnexoDTO->retTodos(true); | |
456 | 510 | |
457 | - foreach($arrAnexos as $anexo){ | |
458 | - | |
459 | - $objAnexoDTO = new AnexoDTO(); | |
460 | - $objAnexoDTO->setNumIdAnexo( null ); | |
461 | - $objAnexoDTO->setStrSinAtivo('S'); | |
462 | - $objAnexoDTO->setStrNome($anexo[10]); | |
463 | - $objAnexoDTO->setDthInclusao($anexo[2]); | |
464 | - $objAnexoDTO->setNumTamanho($anexo[4]); | |
465 | - $objAnexoDTO->setStrSiglaUsuario( $strSiglaUsuario ); | |
466 | - $objAnexoDTO->setStrSiglaUnidade( $idUnidade ); | |
467 | - $objAnexoDTO->setNumIdUsuario(SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno()); | |
468 | - $arrObjAnexoDTO[] = $objAnexoDTO; | |
511 | + $objAnexoDTO->adicionarCriterio(array('IdAnexo'), | |
512 | + array(InfraDTO::$OPER_IN), | |
513 | + array($arrIdComplementar)); | |
514 | + | |
515 | + $arrAnexoDTOComplementar = $anexoRN->listarRN0218( $objAnexoDTO ); | |
516 | + | |
517 | + foreach( $arrAnexoDTOComplementar as $objAnexoComplementar ){ | |
469 | 518 | |
470 | - $strNome = $objAnexoDTO->getStrNome(); | |
519 | + $strNome = $objAnexoComplementar->getStrNome(); | |
471 | 520 | $strTipoDocumento = ""; |
472 | - $strNumeroSEI = $objAnexoDTO->getStrProtocoloFormatadoProtocolo(); | |
521 | + $strNumeroSEI = $objAnexoComplementar->getStrProtocoloFormatadoProtocolo(); | |
473 | 522 | |
474 | 523 | $documentoDTO = new DocumentoDTO(); |
524 | + | |
525 | + $documentoDTO->retStrNumero(); | |
475 | 526 | $documentoDTO->retStrNomeSerie(); |
476 | - $documentoDTO->setDblIdDocumento( $objAnexoDTO->getDblIdProtocolo() ); | |
527 | + $documentoDTO->retStrDescricaoProtocolo(); | |
528 | + $documentoDTO->retStrProtocoloDocumentoFormatado(); | |
529 | + | |
530 | + $documentoDTO->setDblIdDocumento( $objAnexoComplementar->getDblIdProtocolo() ); | |
477 | 531 | $documentoDTO = $documentoRN->consultarRN0005( $documentoDTO ); |
532 | + | |
478 | 533 | //concatenar tipo e complemento |
479 | - $strNome = $documentoDTO->getStrNomeSerie() . ' - Complemento:'; | |
534 | + $strNome = $documentoDTO->getStrNomeSerie() . ' ' . $documentoDTO->getStrNumero(); | |
480 | 535 | |
481 | 536 | $html .= '<tr>'; |
482 | - $html .= '<td> - ' . $strNome . '</td>'; | |
537 | + $html .= '<td> - ' . $strNome . '</td>'; | |
483 | 538 | $html .= '<td>' . $strNumeroSEI . '</td>'; |
484 | 539 | $html .= '</tr>'; |
485 | - | |
540 | + | |
486 | 541 | } |
487 | 542 | |
488 | 543 | } |
489 | 544 | |
490 | 545 | //FIM COMPLEMENTAR |
491 | - | |
492 | - /* | |
493 | - $html .= '<tr>'; | |
494 | - $html .= '<td colspan="2" align="left"> | |
495 | - A existência deste Recibo e do processo e documentos acima indicados podem ser | |
496 | - conferidas na Página Eletrônica do(a) ' . $objOrgaoDTO->getStrDescricao() . ' | |
497 | - </td>'; | |
498 | - | |
499 | - $html .= '</tr>'; | |
500 | - */ | |
501 | - | |
546 | + | |
502 | 547 | $html .= '</tbody></table>'; |
503 | 548 | |
504 | 549 | $orgaoRN = new OrgaoRN(); |
... | ... | @@ -508,8 +553,7 @@ class ReciboPeticionamentoRN extends InfraRN { |
508 | 553 | $objOrgaoDTO->setStrSinAtivo('S'); |
509 | 554 | $objOrgaoDTO = $orgaoRN->consultarRN1352( $objOrgaoDTO ); |
510 | 555 | |
511 | - $html .= '<p> A existência deste Recibo e do processo e documentos acima indicados podem ser | |
512 | - conferidas na Página Eletrônica do(a) ' . $objOrgaoDTO->getStrDescricao() . '</p>'; | |
556 | + $html .= '<p>O Usuário Externo acima identificado foi previamente avisado que o peticionamento importa na aceitação dos termos e condições que regem o processo eletrônico, além do disposto no credenciamento prévio, e na assinatura dos documentos nato-digitais e declaração de que são autênticos os digitalizados, sendo responsável civil, penal e administrativamente pelo uso indevido. Ainda, foi avisado que os níveis de acesso indicados para os documentos estariam condicionados à análise por servidor público, que poderá, motivadamente, alterá-los a qualquer momento sem necessidade de prévio aviso, e de que são de sua exclusiva responsabilidade:</p><ul><li>a conformidade entre os dados informados e os documentos;</li><li>a conservação dos originais em papel de documentos digitalizados até que decaia o direito de revisão dos atos praticados no processo, para que, caso solicitado, sejam apresentados para qualquer tipo de conferência;</li><li>a realização por meio eletrônico de todos os atos e comunicações processuais com o próprio Usuário Externo ou, por seu intermédio, com a entidade porventura representada;</li><li>a observância de que os atos processuais se consideram realizados no dia e hora do recebimento pelo SEI, considerando-se tempestivos os praticados até as 23h59min59s do último dia do prazo, considerado sempre o horário oficial de Brasília, independente do fuso horário em que se encontre;</li><li>a consulta periódica ao SEI, a fim de verificar o recebimento de intimações eletrônicas.</li></ul><p>A existência deste Recibo, do processo e dos documentos acima indicados pode ser conferida no Portal na Internet do(a) ' . $objOrgaoDTO->getStrDescricao() . '.</p>'; | |
513 | 557 | |
514 | 558 | return $html; |
515 | 559 | ... | ... |
sei/institucional/peticionamento/rn/RelTipoProcessoSeriePeticionamentoRN.php
... | ... | @@ -32,25 +32,16 @@ class RelTipoProcessoSeriePeticionamentoRN extends InfraRN{ |
32 | 32 | protected function listarConectado(RelTipoProcessoSeriePeticionamentoDTO $objTipoProcessoSeriePeticionamentoDTO) { |
33 | 33 | |
34 | 34 | try { |
35 | - | |
36 | - //Regras de Negocio | |
37 | - $objInfraException = new InfraException(); | |
38 | - | |
39 | - $objInfraException->lancarValidacoes(); | |
40 | 35 | |
41 | 36 | $objTipoProcessoSeriePeticionamentoBD = new RelTipoProcessoSeriePeticionamentoBD($this->getObjInfraIBanco()); |
42 | 37 | $ret = $objTipoProcessoSeriePeticionamentoBD->listar($objTipoProcessoSeriePeticionamentoDTO); |
43 | - | |
44 | - return $ret; | |
38 | + return $ret; | |
39 | + | |
45 | 40 | } catch (Exception $e) { |
46 | 41 | throw new InfraException ('Erro listando Relacionamento de Tipo de Processo e Série Peticionamento.', $e); |
47 | 42 | } |
48 | 43 | } |
49 | - | |
50 | - | |
51 | - | |
52 | - | |
53 | - | |
44 | + | |
54 | 45 | /** |
55 | 46 | * Short description of method consultarConectado |
56 | 47 | * | ... | ... |
sei/institucional/peticionamento/tipo_processo_peticionamento_cadastro_orientacoes.php
... | ... | @@ -57,7 +57,15 @@ |
57 | 57 | try{ |
58 | 58 | |
59 | 59 | $objTipoProcessoOrientacoesPeticionamentoDTO2->setStrOrientacoesGerais($_POST['txaConteudo']); |
60 | - | |
60 | + | |
61 | + //Estilo | |
62 | + $conjuntoEstilosRN = new ConjuntoEstilosRN(); | |
63 | + $conjuntoEstilosDTO = new ConjuntoEstilosDTO(); | |
64 | + $conjuntoEstilosDTO->setStrSinUltimo('S'); | |
65 | + $conjuntoEstilosDTO->retNumIdConjuntoEstilos(); | |
66 | + $conjuntoEstilosDTO = $conjuntoEstilosRN->consultar( $conjuntoEstilosDTO ); | |
67 | + $objTipoProcessoOrientacoesPeticionamentoDTO2->setNumIdConjuntoEstilos( $conjuntoEstilosDTO->getNumIdConjuntoEstilos() ); | |
68 | + | |
61 | 69 | $objTipoProcessoOrientacoesPeticionamentoDTO = $alterar ? $objTipoProcessoOrientacoesPeticionamentoRN->alterar($objTipoProcessoOrientacoesPeticionamentoDTO2) : $objTipoProcessoOrientacoesPeticionamentoRN->cadastrar($objTipoProcessoOrientacoesPeticionamentoDTO); |
62 | 70 | header('Location: '.SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'])); |
63 | 71 | die; | ... | ... |
sei/institucional/peticionamento/tipo_processo_peticionamento_lista.php
... | ... | @@ -338,8 +338,8 @@ try { |
338 | 338 | |
339 | 339 | if ($_GET['acao'] == 'tipo_processo_peticionamento_reativar'){ |
340 | 340 | $arrComandos[] = '<button type="button" accesskey="c" id="btnFecharSelecao" value="Fechar" onclick="window.close();" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; |
341 | - }else{ | |
342 | - $arrComandos[] = '<button type="button" accesskey="c" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.PaginaSEI::getInstance()->getAcaoRetorno().'&acao_origem='.$_GET['acao'].PaginaSEI::getInstance()->montarAncora('1'))).'\';" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
341 | + }else{ | |
342 | + $arrComandos[] = '<button type="button" accesskey="c" name="btnFechar" id="btnFechar" value="Fechar" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSei::getInstance()->assinarLink('controlador.php?acao=procedimento_controlar&acao_origem='.$_GET['acao'])).'\';" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | |
343 | 343 | } |
344 | 344 | |
345 | 345 | // $strItensSelSinProrrogacaoAutomatica = IndisponibilidadePeticionamentoINT::montarSelectProrrogacaoAutomaticaPrazos('null',' ',''); | ... | ... |
sei/institucional/peticionamento/util/DataUtils.php
... | ... | @@ -3,14 +3,14 @@ class DataUtils extends InfraPDF { |
3 | 3 | |
4 | 4 | var $datalargura; |
5 | 5 | |
6 | - function DataUtils () { | |
6 | + public function DataUtils () { | |
7 | 7 | } |
8 | 8 | |
9 | - function setFormat($valor, $formato='dd/mm/yyyy hh:mm:ss') { | |
9 | + public static function setFormat($valor, $formato='dd/mm/yyyy hh:mm:ss') { | |
10 | 10 | $formatolargura = strlen($formato); |
11 | 11 | $datalargura = strlen($valor); |
12 | 12 | return substr($valor, 0, $formatolargura-$datalargura); |
13 | 13 | } |
14 | 14 | |
15 | 15 | } |
16 | 16 | -?> |
17 | +?> | |
17 | 18 | \ No newline at end of file | ... | ... |