Commit 395143fc0016571dc279fc5d3924905cfa5dc8db
1 parent
5998916a
Exists in
master
and in
1 other branch
Atualização dos códigos pré geração da tag de versão.
Showing
30 changed files
with
212 additions
and
259 deletions
Show diff stats
README.md
@@ -64,6 +64,9 @@ | @@ -64,6 +64,9 @@ | ||
64 | - "Contextos/Contatos / Tipos de Contexto / Reativar" (recurso "tipo_contexto_contato_reativar") | 64 | - "Contextos/Contatos / Tipos de Contexto / Reativar" (recurso "tipo_contexto_contato_reativar") |
65 | - **IMPORTANTE**: Os Tipos de Contextos indicados no submenu do módulo "Tipos de Contatos Permitidos" no campo "Para Cadastro de Interessado" devem estar com a opção "Aceita contatos" ativada. | 65 | - **IMPORTANTE**: Os Tipos de Contextos indicados no submenu do módulo "Tipos de Contatos Permitidos" no campo "Para Cadastro de Interessado" devem estar com a opção "Aceita contatos" ativada. |
66 | 66 | ||
67 | -3. Não é aconselhável dar publicidade a registros de indisponibilidades do SEI até que o módulo possua funcionalidades afetas a Intimação Eletrônica, prevista para a versão 2.0. De qualquer forma, segue URL da página pública que lista os cadastrados realizados no menu Administração > Peticionamento Eletrônico > Indisponibilidades do SEI: | 67 | +4. Destacamos que a janela de Cadastro de Interessado na tela de Peticionamento de Processo Novo é aberta ao Validar CPF ou CPNJ em duas situações: (i) quando o CPF ou CNPJ não existir na tabela "contato" no banco do SEI ou (ii) quando existir mais de um registro na referida tabela com o mesmo CPF ou CNPJ. A segunda regra visa a priorizar o cadastro novo feito por meio do Módulo pelo próprio Usuário Externo, que geralmente possui mais dados sobre o Interessado. |
68 | + - **IMPORTANTE**: sugere-se que o órgão faça uma extração da tabela "contato" e faça análises para levantar os cadastros com CPF ou CNPJ duplicados, para resolver as duplicações, mantendo um só cadastro por CPF ou CNPJ. | ||
69 | + | ||
70 | +5. Não é aconselhável dar publicidade a registros de indisponibilidades do SEI até que o módulo possua funcionalidades afetas a Intimação Eletrônica, prevista para a versão 2.0. De qualquer forma, segue URL da página pública que lista os cadastrados realizados no menu Administração > Peticionamento Eletrônico > Indisponibilidades do SEI: | ||
68 | 71 | ||
69 | http://[Servidor_PHP]/sei/institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_lista.php?acao_externa=indisponibilidade_peticionamento_usuario_externo_listar&id_orgao_acesso_externo=0 | 72 | http://[Servidor_PHP]/sei/institucional/peticionamento/indisponibilidade_peticionamento_usuario_externo_lista.php?acao_externa=indisponibilidade_peticionamento_usuario_externo_listar&id_orgao_acesso_externo=0 |
70 | \ No newline at end of file | 73 | \ No newline at end of file |
sei/institucional/peticionamento/controlador_ajax_externo.php
@@ -28,12 +28,13 @@ try{ | @@ -28,12 +28,13 @@ try{ | ||
28 | $objContextoContatoDTO->retStrNome(); | 28 | $objContextoContatoDTO->retStrNome(); |
29 | 29 | ||
30 | //trazer todos que sejam empresas (CNPJ diferente de null), estejam ativos, | 30 | //trazer todos que sejam empresas (CNPJ diferente de null), estejam ativos, |
31 | - //e atenda ao filtro por nome informado na tela | 31 | + //e atenda ao filtro por nome e tipo de contexto informado na tela |
32 | + | ||
32 | $objContextoContatoDTO->adicionarCriterio( | 33 | $objContextoContatoDTO->adicionarCriterio( |
33 | - array('Cnpj','Nome', 'SinAtivo'), | ||
34 | - array(InfraDTO::$OPER_DIFERENTE,InfraDTO::$OPER_LIKE, InfraDTO::$OPER_IGUAL ), | ||
35 | - array(null, "%".$_POST['palavras_pesquisa']."%", 'S' ), | ||
36 | - array( InfraDTO::$OPER_LOGICO_AND , InfraDTO::$OPER_LOGICO_AND ) | 34 | + array('Cnpj','Nome', 'SinAtivo', 'IdTipoContextoContato'), |
35 | + array(InfraDTO::$OPER_DIFERENTE,InfraDTO::$OPER_LIKE, InfraDTO::$OPER_IGUAL, InfraDTO::$OPER_IGUAL ), | ||
36 | + array(null, "%".$_POST['palavras_pesquisa']."%", 'S', $_POST['id_tipo_contexto_contato'] ), | ||
37 | + array( InfraDTO::$OPER_LOGICO_AND , InfraDTO::$OPER_LOGICO_AND , InfraDTO::$OPER_LOGICO_AND ) | ||
37 | ); | 38 | ); |
38 | 39 | ||
39 | $objContextoContatoDTO->setOrdStrNome(InfraDTO::$TIPO_ORDENACAO_ASC); | 40 | $objContextoContatoDTO->setOrdStrNome(InfraDTO::$TIPO_ORDENACAO_ASC); |
sei/institucional/peticionamento/editor_peticionamento_processar.php
@@ -64,7 +64,6 @@ | @@ -64,7 +64,6 @@ | ||
64 | $conjuntoEstilosDTO->setStrSinUltimo('S'); | 64 | $conjuntoEstilosDTO->setStrSinUltimo('S'); |
65 | $conjuntoEstilosDTO->retTodos(); | 65 | $conjuntoEstilosDTO->retTodos(); |
66 | $conjuntoEstilosDTO = $conjuntoEstilosRN->consultar( $conjuntoEstilosDTO ); | 66 | $conjuntoEstilosDTO = $conjuntoEstilosRN->consultar( $conjuntoEstilosDTO ); |
67 | - //print_r( $conjuntoEstilosDTO ); die(); | ||
68 | 67 | ||
69 | //recupera estilos padrão das seções do modelo | 68 | //recupera estilos padrão das seções do modelo |
70 | $objRelSecaoModCjEstilosItemDTO = new RelSecaoModCjEstilosItemDTO(); | 69 | $objRelSecaoModCjEstilosItemDTO = new RelSecaoModCjEstilosItemDTO(); |
sei/institucional/peticionamento/gerir_tipo_contexto_peticionamento_cadastro.php
@@ -36,9 +36,7 @@ try { | @@ -36,9 +36,7 @@ try { | ||
36 | } | 36 | } |
37 | 37 | ||
38 | $objInfraException->lancarValidacoes(); | 38 | $objInfraException->lancarValidacoes(); |
39 | - | ||
40 | - //print_r( $arrPrincipal ); die(); | ||
41 | - | 39 | + |
42 | foreach($arrPrincipal as $numPrincipal){ | 40 | foreach($arrPrincipal as $numPrincipal){ |
43 | $objDTO = new RelTipoContextoPeticionamentoDTO(); | 41 | $objDTO = new RelTipoContextoPeticionamentoDTO(); |
44 | $objDTO->setNumIdTipoContextoContato($numPrincipal); | 42 | $objDTO->setNumIdTipoContextoContato($numPrincipal); |
@@ -67,9 +65,7 @@ try { | @@ -67,9 +65,7 @@ try { | ||
67 | } | 65 | } |
68 | 66 | ||
69 | $objInfraException->lancarValidacoes(); | 67 | $objInfraException->lancarValidacoes(); |
70 | - | ||
71 | - //print_r( $arrPrincipal ); die(); | ||
72 | - | 68 | + |
73 | foreach($arrPrincipal2 as $numPrincipal){ | 69 | foreach($arrPrincipal2 as $numPrincipal){ |
74 | $objDTO2 = new RelTipoContextoPeticionamentoDTO(); | 70 | $objDTO2 = new RelTipoContextoPeticionamentoDTO(); |
75 | $objDTO2->setNumIdTipoContextoContato($numPrincipal); | 71 | $objDTO2->setNumIdTipoContextoContato($numPrincipal); |
@@ -96,9 +92,6 @@ $arrItens2 = $objRN->listar($objDTO2); | @@ -96,9 +92,6 @@ $arrItens2 = $objRN->listar($objDTO2); | ||
96 | $numero2 = count( $arrItens2 ); | 92 | $numero2 = count( $arrItens2 ); |
97 | $strSelPrin2 = ""; | 93 | $strSelPrin2 = ""; |
98 | 94 | ||
99 | -//print_r($arrItens);die(); | ||
100 | -//print_r($arrItens2);die(); | ||
101 | - | ||
102 | if( $numero > 0){ | 95 | if( $numero > 0){ |
103 | 96 | ||
104 | $tipoContextoRN = new TipoContextoContatoRN(); | 97 | $tipoContextoRN = new TipoContextoContatoRN(); |
sei/institucional/peticionamento/indisponibilidade_peticionamento_lista.php
@@ -55,9 +55,7 @@ try { | @@ -55,9 +55,7 @@ try { | ||
55 | die; | 55 | die; |
56 | 56 | ||
57 | case 'indisponibilidade_peticionamento_reativar': | 57 | case 'indisponibilidade_peticionamento_reativar': |
58 | - | ||
59 | - //print_r($_GET); die(); | ||
60 | - | 58 | + |
61 | $strTitulo = 'Reativar Indisponibilidade Peticionamento'; | 59 | $strTitulo = 'Reativar Indisponibilidade Peticionamento'; |
62 | 60 | ||
63 | if ($_GET['acao_confirmada']=='sim'){ | 61 | if ($_GET['acao_confirmada']=='sim'){ |
sei/institucional/peticionamento/int/IndisponibilidadeAnexoPeticionamentoINT.php
@@ -13,7 +13,6 @@ class IndisponibilidadeAnexoPeticionamentoINT extends InfraINT { | @@ -13,7 +13,6 @@ class IndisponibilidadeAnexoPeticionamentoINT extends InfraINT { | ||
13 | public static function processarAnexo($strAnexos){ | 13 | public static function processarAnexo($strAnexos){ |
14 | 14 | ||
15 | $arrAnexos = PaginaSEI::getInstance()->getArrItensTabelaDinamica($strAnexos); | 15 | $arrAnexos = PaginaSEI::getInstance()->getArrItensTabelaDinamica($strAnexos); |
16 | - //print_r( $arrAnexos ); die; | ||
17 | $arrObjAnexoDTO = array(); | 16 | $arrObjAnexoDTO = array(); |
18 | 17 | ||
19 | foreach($arrAnexos as $anexo){ | 18 | foreach($arrAnexos as $anexo){ |
sei/institucional/peticionamento/int/TipoProcessoPeticionamentoINT.php
@@ -92,6 +92,7 @@ class TipoProcessoPeticionamentoINT extends InfraINT { | @@ -92,6 +92,7 @@ class TipoProcessoPeticionamentoINT extends InfraINT { | ||
92 | 92 | ||
93 | $objNivelAcessoDTO = new NivelAcessoPermitidoDTO(); | 93 | $objNivelAcessoDTO = new NivelAcessoPermitidoDTO(); |
94 | $objNivelAcessoDTO->retTodos(); | 94 | $objNivelAcessoDTO->retTodos(); |
95 | + $objNivelAcessoDTO->setOrd('StaNivelAcesso', InfraDTO::$TIPO_ORDENACAO_ASC); | ||
95 | 96 | ||
96 | if(!(is_null($idTipoProcedimento))){ | 97 | if(!(is_null($idTipoProcedimento))){ |
97 | $objNivelAcessoDTO->setNumIdTipoProcedimento($idTipoProcedimento); | 98 | $objNivelAcessoDTO->setNumIdTipoProcedimento($idTipoProcedimento); |
@@ -105,7 +106,7 @@ class TipoProcessoPeticionamentoINT extends InfraINT { | @@ -105,7 +106,7 @@ class TipoProcessoPeticionamentoINT extends InfraINT { | ||
105 | $arrayDescricoes = array(); | 106 | $arrayDescricoes = array(); |
106 | $arrayDescricoes[ProtocoloRN::$NA_PUBLICO] = 'Público'; | 107 | $arrayDescricoes[ProtocoloRN::$NA_PUBLICO] = 'Público'; |
107 | $arrayDescricoes[ProtocoloRN::$NA_RESTRITO] = 'Restrito'; | 108 | $arrayDescricoes[ProtocoloRN::$NA_RESTRITO] = 'Restrito'; |
108 | - $arrayDescricoes[ProtocoloRN::$NA_SIGILOSO] = 'Sigiloso'; | 109 | + //$arrayDescricoes[ProtocoloRN::$NA_SIGILOSO] = 'Sigiloso'; |
109 | $arrayDescricoes[''] = ''; | 110 | $arrayDescricoes[''] = ''; |
110 | 111 | ||
111 | $stringFim = '<option value=""> </option>'; | 112 | $stringFim = '<option value=""> </option>'; |
sei/institucional/peticionamento/menu_peticionamento_usuario_externo_lista.php
@@ -59,8 +59,6 @@ try { | @@ -59,8 +59,6 @@ try { | ||
59 | die; | 59 | die; |
60 | 60 | ||
61 | case 'menu_peticionamento_usuario_externo_reativar': | 61 | case 'menu_peticionamento_usuario_externo_reativar': |
62 | - | ||
63 | - //print_r($_GET); die(); | ||
64 | 62 | ||
65 | $strTitulo = 'Reativar Menus'; | 63 | $strTitulo = 'Reativar Menus'; |
66 | 64 | ||
@@ -402,7 +400,6 @@ PaginaSEI::getInstance()->fecharHead(); | @@ -402,7 +400,6 @@ PaginaSEI::getInstance()->fecharHead(); | ||
402 | PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | 400 | PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
403 | $strNome = $_POST['txtNome']; | 401 | $strNome = $_POST['txtNome']; |
404 | $strTipo = $_POST['selTipo'];; | 402 | $strTipo = $_POST['selTipo'];; |
405 | -//print_r( $_GET ); die(); | ||
406 | ?> | 403 | ?> |
407 | <form id="frmLista" method="post" action="<?=PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?id_menu_peticionamento_usuario_externo='. $_GET['id_menu_peticionamento_usuario_externo'] .'&acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> | 404 | <form id="frmLista" method="post" action="<?=PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?id_menu_peticionamento_usuario_externo='. $_GET['id_menu_peticionamento_usuario_externo'] .'&acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> |
408 | 405 |
sei/institucional/peticionamento/pagina_conteudo_externo_peticionamento.php
@@ -2,7 +2,6 @@ | @@ -2,7 +2,6 @@ | ||
2 | try { | 2 | try { |
3 | 3 | ||
4 | require_once dirname(__FILE__).'/../../SEI.php'; | 4 | require_once dirname(__FILE__).'/../../SEI.php'; |
5 | - //require_once ("ConverteURI.php"); | ||
6 | 5 | ||
7 | session_start(); | 6 | session_start(); |
8 | SessaoSEIExterna::getInstance()->validarLink(); | 7 | SessaoSEIExterna::getInstance()->validarLink(); |
@@ -13,15 +12,6 @@ try { | @@ -13,15 +12,6 @@ try { | ||
13 | InfraDebug::getInstance()->setBolDebugInfra( false ); | 12 | InfraDebug::getInstance()->setBolDebugInfra( false ); |
14 | InfraDebug::getInstance()->limpar(); | 13 | InfraDebug::getInstance()->limpar(); |
15 | ////////////////////////////////////////////////////////////////////////////// | 14 | ////////////////////////////////////////////////////////////////////////////// |
16 | - //ConverteURI::converterURI(); | ||
17 | - //if (isset($_GET['id_acesso_externo'])){ | ||
18 | - //SessaoSEIExterna::getInstance($_GET['id_acesso_externo'])->validarLink(); | ||
19 | - //}else{ | ||
20 | - //SessaoSEIExterna::getInstance()->validarLink(); | ||
21 | - //} | ||
22 | - | ||
23 | - //echo "página limpa"; | ||
24 | - //print_r($_SESSION); | ||
25 | 15 | ||
26 | $objMenuPeticionamentoUsuarioExternoDTO = new MenuPeticionamentoUsuarioExternoDTO(); | 16 | $objMenuPeticionamentoUsuarioExternoDTO = new MenuPeticionamentoUsuarioExternoDTO(); |
27 | $objMenuPeticionamentoUsuarioExternoDTO->retTodos(); | 17 | $objMenuPeticionamentoUsuarioExternoDTO->retTodos(); |
sei/institucional/peticionamento/peticionamento_contato_selecionar.php
@@ -32,7 +32,6 @@ try { | @@ -32,7 +32,6 @@ try { | ||
32 | $objRelTipoContextoPeticionamentoDTO->retTodos(); | 32 | $objRelTipoContextoPeticionamentoDTO->retTodos(); |
33 | $objRelTipoContextoPeticionamentoDTO->setStrSinSelecaoInteressado('S'); | 33 | $objRelTipoContextoPeticionamentoDTO->setStrSinSelecaoInteressado('S'); |
34 | $arrobjRelTipoContextoPeticionamentoDTO = $objRelTipoContextoPeticionamentoRN->listar( $objRelTipoContextoPeticionamentoDTO ); | 34 | $arrobjRelTipoContextoPeticionamentoDTO = $objRelTipoContextoPeticionamentoRN->listar( $objRelTipoContextoPeticionamentoDTO ); |
35 | - //print_r( $arrobjRelTipoContextoPeticionamentoDTO ); die(); | ||
36 | 35 | ||
37 | if (isset($_POST['hdnFlag'])){ | 36 | if (isset($_POST['hdnFlag'])){ |
38 | PaginaSEIExterna::getInstance()->salvarCampo('chkMaisOpcoesContatos',(isset($_POST['chkMaisOpcoesContatos']) ? PaginaSEIExterna::getInstance()->getCheckbox($_POST['chkMaisOpcoesContatos']) : 'N')); | 37 | PaginaSEIExterna::getInstance()->salvarCampo('chkMaisOpcoesContatos',(isset($_POST['chkMaisOpcoesContatos']) ? PaginaSEIExterna::getInstance()->getCheckbox($_POST['chkMaisOpcoesContatos']) : 'N')); |
@@ -108,12 +107,13 @@ try { | @@ -108,12 +107,13 @@ try { | ||
108 | $objContatoDTO->setOrdStrSinContexto(InfraDTO::$TIPO_ORDENACAO_DESC); | 107 | $objContatoDTO->setOrdStrSinContexto(InfraDTO::$TIPO_ORDENACAO_DESC); |
109 | $objContatoDTO->setOrdStrNome(InfraDTO::$TIPO_ORDENACAO_ASC); | 108 | $objContatoDTO->setOrdStrNome(InfraDTO::$TIPO_ORDENACAO_ASC); |
110 | 109 | ||
110 | + SessaoSEIExterna::getInstance()->setAtributo('janelaSelecaoPorNome', 'true'); | ||
111 | $arrComandos = array(); | 111 | $arrComandos = array(); |
112 | - | ||
113 | - $arrComandos[] = '<button type="submit" accesskey="p" id="btnPesquisar" name="btnPesquisar" value="Pesquisar" class="infraButton"><span class="infraTeclaAtalho">P</span>esquisar</button>'; | 112 | + $arrComandos[] = '<button type="button" accesskey="n" id="btnCadastrar" name="btnCadastrar" onclick="cadastrarNovoInteressado()" value="Cadastrar Novo Interessado" class="infraButton">Cadastrar <span class="infraTeclaAtalho">N</span>ovo Interessado</button>'; |
113 | + $arrComandos[] = '<button type="button" accesskey="p" id="btnPesquisar" name="btnPesquisar" onclick="pesquisar();" value="Pesquisar" class="infraButton"><span class="infraTeclaAtalho">P</span>esquisar</button>'; | ||
114 | 114 | ||
115 | if (PaginaSEIExterna::getInstance()->isBolPaginaSelecao()){ | 115 | if (PaginaSEIExterna::getInstance()->isBolPaginaSelecao()){ |
116 | - $arrComandos[] = '<button type="button" accesskey="t" id="btnTransportarSelecao" value="Transportar" onclick="infraTransportarSelecao();" class="infraButton"><span class="infraTeclaAtalho">T</span>ransportar</button>'; | 116 | + $arrComandos[] = '<button type="button" accesskey="t" id="btnTransportarSelecao" name="btnTransportarSelecao" onclick="infraTransportarSelecao();" value="Transportar" class="infraButton"><span class="infraTeclaAtalho">T</span>ransportar</button>'; |
117 | } | 117 | } |
118 | 118 | ||
119 | if($_GET['acao']=='contexto_selecionar' || | 119 | if($_GET['acao']=='contexto_selecionar' || |
@@ -198,7 +198,7 @@ try { | @@ -198,7 +198,7 @@ try { | ||
198 | 198 | ||
199 | if ($bolAcaoImprimir){ | 199 | if ($bolAcaoImprimir){ |
200 | $bolCheck = true; | 200 | $bolCheck = true; |
201 | - $arrComandos[] = '<button type="button" accesskey="I" id="btnImprimir" value="Imprimir" onclick="infraImprimirTabela();" class="infraButton"><span class="infraTeclaAtalho">I</span>mprimir</button>'; | 201 | + $arrComandos[] = '<button type="button" accesskey="i" id="btnImprimir" onclick="infraImprimirTabela();" value="Imprimir" class="infraButton"><span class="infraTeclaAtalho">I</span>mprimir</button>'; |
202 | } | 202 | } |
203 | 203 | ||
204 | $strCaptionTabela = ''; | 204 | $strCaptionTabela = ''; |
@@ -270,7 +270,7 @@ try { | @@ -270,7 +270,7 @@ try { | ||
270 | 270 | ||
271 | $strResultado .= $strCssTr; | 271 | $strResultado .= $strCssTr; |
272 | $strTitle = ''; | 272 | $strTitle = ''; |
273 | - $strNomeSigla = ContatoINT::formatarNomeSiglaRI1224($dto->getStrNome(),$dto->getStrSigla()); | 273 | + $strNomeSigla = $dto->getStrNome(); |
274 | $strTitle = $strNomeSigla; | 274 | $strTitle = $strNomeSigla; |
275 | 275 | ||
276 | if ($bolCheck){ | 276 | if ($bolCheck){ |
@@ -377,7 +377,7 @@ try { | @@ -377,7 +377,7 @@ try { | ||
377 | '</table>'."\n"; | 377 | '</table>'."\n"; |
378 | } | 378 | } |
379 | 379 | ||
380 | - $arrComandos[] = '<button type="button" accesskey="c" id="btnFechar" value="Fechar" onclick="window.close();" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; | 380 | + $arrComandos[] = '<button type="button" accesskey="c" id="btnFechar" name="btnFechar" onclick="window.close();" value="Fechar" class="infraButton">Fe<span class="infraTeclaAtalho">c</span>har</button>'; |
381 | 381 | ||
382 | $strItensSelGrupoContato = GrupoContatoINT::ConjuntoPorUnidadeRI0515('null',' ',$numIdGrupoContato); | 382 | $strItensSelGrupoContato = GrupoContatoINT::ConjuntoPorUnidadeRI0515('null',' ',$numIdGrupoContato); |
383 | $strItensSelTipoContextoContato = TipoContextoContatoINT::montarSelectNomeRI0518('null',' ',$numTipoContextoContato); | 383 | $strItensSelTipoContextoContato = TipoContextoContatoINT::montarSelectNomeRI0518('null',' ',$numTipoContextoContato); |
@@ -408,8 +408,13 @@ PaginaSEIExterna::getInstance()->abrirStyle(); | @@ -408,8 +408,13 @@ PaginaSEIExterna::getInstance()->abrirStyle(); | ||
408 | PaginaSEIExterna::getInstance()->fecharStyle(); | 408 | PaginaSEIExterna::getInstance()->fecharStyle(); |
409 | PaginaSEIExterna::getInstance()->montarJavaScript(); | 409 | PaginaSEIExterna::getInstance()->montarJavaScript(); |
410 | PaginaSEIExterna::getInstance()->abrirJavaScript(); | 410 | PaginaSEIExterna::getInstance()->abrirJavaScript(); |
411 | +$linkCadastroInteressado = PaginaSEIExterna::getInstance()->formatarXHTML( SessaoSEIExterna::getInstance()->assinarLink("controlador_externo.php?acao=peticionamento_interessado_cadastro&tipo_selecao=2&cpf=true&cnpj=true&id_orgao_acesso_externo=0")); | ||
411 | ?> | 412 | ?> |
412 | 413 | ||
414 | +function cadastrarNovoInteressado(){ | ||
415 | + document.location.href = '<?= $linkCadastroInteressado ?>'; | ||
416 | +} | ||
417 | + | ||
413 | function inicializar(){ | 418 | function inicializar(){ |
414 | if ('<?=PaginaSEIExterna::getInstance()->isBolPaginaSelecao()?>'!=''){ | 419 | if ('<?=PaginaSEIExterna::getInstance()->isBolPaginaSelecao()?>'!=''){ |
415 | infraReceberSelecao(); | 420 | infraReceberSelecao(); |
@@ -488,7 +493,6 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"') | @@ -488,7 +493,6 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"') | ||
488 | $selected = " selected='selected' "; | 493 | $selected = " selected='selected' "; |
489 | } | 494 | } |
490 | 495 | ||
491 | - //print_r( $dto ); die(); | ||
492 | ?> | 496 | ?> |
493 | <option value="<?= $item->getNumIdTipoContextoContato() ?>" <?= $selected ?> > | 497 | <option value="<?= $item->getNumIdTipoContextoContato() ?>" <?= $selected ?> > |
494 | <?= $dto->getStrNome() ?> | 498 | <?= $dto->getStrNome() ?> |
sei/institucional/peticionamento/peticionamento_interessado_cadastro.php
@@ -209,10 +209,18 @@ try { | @@ -209,10 +209,18 @@ try { | ||
209 | //após cadastrar o contato fechar janela modal e preencher campos necessarios | 209 | //após cadastrar o contato fechar janela modal e preencher campos necessarios |
210 | if( !isset( $_POST['hdnIdEdicao'] ) || $_POST['hdnIdEdicao'] == "" ){ | 210 | if( !isset( $_POST['hdnIdEdicao'] ) || $_POST['hdnIdEdicao'] == "" ){ |
211 | 211 | ||
212 | + $janelaSelecaoPorNome = SessaoSEIExterna::getInstance()->getAtributo('janelaSelecaoPorNome'); | ||
213 | + | ||
212 | echo "<script>"; | 214 | echo "<script>"; |
213 | - echo "window.opener.document.getElementById('txtNomeRazaoSocial').value = '" . $nome . "';"; | ||
214 | - echo "window.opener.document.getElementById('hdnCustomizado').value = 'true';"; | ||
215 | - echo "window.opener.document.getElementById('hdnIdInteressadoCadastrado').value = " . $objContatoDTO->getNumIdContato() . ";"; | 215 | + |
216 | + if( $janelaSelecaoPorNome == null || $janelaSelecaoPorNome == "" ){ | ||
217 | + echo "window.opener.document.getElementById('txtNomeRazaoSocial').value = '" . $nome . "';"; | ||
218 | + echo "window.opener.document.getElementById('hdnCustomizado').value = 'true';"; | ||
219 | + echo "window.opener.document.getElementById('hdnIdInteressadoCadastrado').value = " . $objContatoDTO->getNumIdContato() . ";"; | ||
220 | + } else { | ||
221 | + SessaoSEIExterna::getInstance()->removerAtributo('janelaSelecaoPorNome'); | ||
222 | + } | ||
223 | + | ||
216 | echo " window.close();"; | 224 | echo " window.close();"; |
217 | echo "</script>"; | 225 | echo "</script>"; |
218 | die; | 226 | die; |
@@ -409,7 +417,8 @@ $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( | @@ -409,7 +417,8 @@ $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( | ||
409 | <label class="infraLabelObrigatorio">Tipo de Interessado:</label><br/> | 417 | <label class="infraLabelObrigatorio">Tipo de Interessado:</label><br/> |
410 | <select class="infraSelect" width="380" id="tipoInteressado" | 418 | <select class="infraSelect" width="380" id="tipoInteressado" |
411 | tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | 419 | tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" |
412 | - name="tipoInteressado" style="width:380px;" > | 420 | + name="tipoInteressado" |
421 | + onchange="selecionarTipoInteressado()" style="width:380px;" > | ||
413 | <?=$strItensSelTipoInteressado?> | 422 | <?=$strItensSelTipoInteressado?> |
414 | </select> <br/> | 423 | </select> <br/> |
415 | 424 | ||
@@ -436,17 +445,19 @@ $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( | @@ -436,17 +445,19 @@ $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( | ||
436 | <?php if( $_POST['hdnIdContextoContato'] == '') {?> | 445 | <?php if( $_POST['hdnIdContextoContato'] == '') {?> |
437 | 446 | ||
438 | <input type="text" class="infraText" | 447 | <input type="text" class="infraText" |
439 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
440 | - name="txtPjVinculada" id="txtPjVinculada" | ||
441 | - autocomplete="off" style="width: 580px; display: none;" /> | 448 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" |
449 | + onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | ||
450 | + name="txtPjVinculada" id="txtPjVinculada" | ||
451 | + autocomplete="off" style="width: 580px; display: none;" /> | ||
442 | 452 | ||
443 | <?php } else { ?> | 453 | <?php } else { ?> |
444 | 454 | ||
445 | <input type="text" class="infraText" | 455 | <input type="text" class="infraText" |
446 | value="<?php echo $_POST['txtPjVinculada']; ?>" | 456 | value="<?php echo $_POST['txtPjVinculada']; ?>" |
447 | tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | 457 | tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" |
458 | + onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | ||
448 | name="txtPjVinculada" id="txtPjVinculada" | 459 | name="txtPjVinculada" id="txtPjVinculada" |
449 | - autocomplete="off" style="width: 580px;" /> | 460 | + autocomplete="off" style="width: 580px;" /> |
450 | 461 | ||
451 | <?php } ?> | 462 | <?php } ?> |
452 | 463 | ||
@@ -480,7 +491,7 @@ $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( | @@ -480,7 +491,7 @@ $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( | ||
480 | <input type="text" class="infraText" | 491 | <input type="text" class="infraText" |
481 | value="<?php echo $_POST['rg']; ?>" | 492 | value="<?php echo $_POST['rg']; ?>" |
482 | tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | 493 | tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" |
483 | - onkeypress="return infraMascaraNumero(this,event, 10);" | 494 | + onkeypress="return infraMascaraNumero(this,event, 15);" |
484 | name="rg" id="rg" /> | 495 | name="rg" id="rg" /> |
485 | </div> | 496 | </div> |
486 | 497 |
sei/institucional/peticionamento/peticionamento_interessado_cadastro_js.php
@@ -16,6 +16,12 @@ var objSelectNomeCidade = null; | @@ -16,6 +16,12 @@ var objSelectNomeCidade = null; | ||
16 | var objAjaxContatoRI0571 = null; | 16 | var objAjaxContatoRI0571 = null; |
17 | var objAutoCompletarContexto = null; | 17 | var objAutoCompletarContexto = null; |
18 | 18 | ||
19 | +function selecionarTipoInteressado(){ | ||
20 | + | ||
21 | + document.getElementById('hdnIdContextoContato').value = ''; | ||
22 | + document.getElementById('txtPjVinculada').value = ''; | ||
23 | +} | ||
24 | + | ||
19 | function selecionarPF(){ | 25 | function selecionarPF(){ |
20 | mostrarCamposPF(); | 26 | mostrarCamposPF(); |
21 | } | 27 | } |
@@ -67,6 +73,11 @@ function mostrarCamposPF(){ | @@ -67,6 +73,11 @@ function mostrarCamposPF(){ | ||
67 | 73 | ||
68 | //mostrar campos RG, orgao expedidor, numero da OAB | 74 | //mostrar campos RG, orgao expedidor, numero da OAB |
69 | document.getElementById('div1').style.display = ''; | 75 | document.getElementById('div1').style.display = ''; |
76 | + | ||
77 | + <?php if( isset( $_GET['cnpj']) ) { ?> | ||
78 | + document.getElementById('lblCNPJ').style.display = 'none'; | ||
79 | + document.getElementById('lblRazaoSocial').style.display = 'none'; | ||
80 | + <?php } ?> | ||
70 | 81 | ||
71 | } | 82 | } |
72 | 83 | ||
@@ -111,6 +122,24 @@ function mostrarCamposPJ(){ | @@ -111,6 +122,24 @@ function mostrarCamposPJ(){ | ||
111 | 122 | ||
112 | //mostrar campos RG, orgao expedidor, numero da OAB | 123 | //mostrar campos RG, orgao expedidor, numero da OAB |
113 | document.getElementById('div1').style.display = 'none'; | 124 | document.getElementById('div1').style.display = 'none'; |
125 | + | ||
126 | + <?php if( isset( $_GET['cpf']) ) { ?> | ||
127 | + document.getElementById('rdPF1').style.display = 'none'; | ||
128 | + document.getElementById('rdPF2').style.display = 'none'; | ||
129 | + document.getElementById('lblrdPF1').style.display = 'none'; | ||
130 | + document.getElementById('lblrdPF2').style.display = 'none'; | ||
131 | + | ||
132 | + document.getElementById('rdPF1').checked = false; | ||
133 | + document.getElementById('rdPF1').checked = ''; | ||
134 | + | ||
135 | + document.getElementById('rdPF2').checked = false; | ||
136 | + document.getElementById('rdPF2').checked = ''; | ||
137 | + | ||
138 | + document.getElementById('lblNome').style.display = 'none'; | ||
139 | + document.getElementById('lblCPF').style.display = 'none'; | ||
140 | + document.getElementById('txtNome').value=''; | ||
141 | + document.getElementById('txtCPF').value=''; | ||
142 | + <?php } ?> | ||
114 | 143 | ||
115 | } | 144 | } |
116 | 145 | ||
@@ -161,36 +190,44 @@ function inicializar(){ | @@ -161,36 +190,44 @@ function inicializar(){ | ||
161 | return; | 190 | return; |
162 | 191 | ||
163 | <?php } else { ?> | 192 | <?php } else { ?> |
193 | + | ||
194 | + var txtcpf = ''; | ||
195 | + var txtcnpj = ''; | ||
164 | 196 | ||
165 | - var txtcpf = window.opener.document.getElementById("txtCPF").value; | ||
166 | - var txtcnpj = window.opener.document.getElementById("txtCNPJ").value; | ||
167 | - | ||
168 | - <?php if( isset( $_GET['cpf'] ) ) { ?> | 197 | + if( window.opener.document.getElementById("txtCPF") != null ){ |
198 | + txtcpf = window.opener.document.getElementById("txtCPF").value; | ||
199 | + } | ||
200 | + | ||
201 | + if( window.opener.document.getElementById("txtCNPJ") != null ){ | ||
202 | + txtcnpj = window.opener.document.getElementById("txtCNPJ").value; | ||
203 | + } | ||
204 | + | ||
205 | + <?php if( isset( $_GET['cpf'] ) ) { ?> | ||
169 | document.getElementById("rdPF").click(); | 206 | document.getElementById("rdPF").click(); |
170 | document.getElementById("txtCPF").value = txtcpf; | 207 | document.getElementById("txtCPF").value = txtcpf; |
171 | - <?php } ?> | 208 | + <?php } ?> |
172 | 209 | ||
173 | - <?php if( isset( $_GET['cnpj'] ) ) { ?> | 210 | + <?php if( isset( $_GET['cnpj'] ) ) { ?> |
174 | document.getElementById("rdPJ").click(); | 211 | document.getElementById("rdPJ").click(); |
175 | document.getElementById("txtCNPJ").value = txtcnpj; | 212 | document.getElementById("txtCNPJ").value = txtcnpj; |
176 | - <?php } ?> | 213 | + <?php } ?> |
177 | 214 | ||
178 | - <?php if( isset( $_GET['edicaoExibir'] ) && isset( $_GET['cnpj'] ) ) { ?> | 215 | + <?php if( isset( $_GET['edicaoExibir'] ) && isset( $_GET['cnpj'] ) ) { ?> |
179 | document.getElementById("txtCNPJ").value = "<?= InfraUtil::formatarCnpj( $_POST['txtCNPJ'] ) ?>"; | 216 | document.getElementById("txtCNPJ").value = "<?= InfraUtil::formatarCnpj( $_POST['txtCNPJ'] ) ?>"; |
180 | - <?php } ?> | 217 | + <?php } ?> |
181 | 218 | ||
182 | - <?php if( isset( $_GET['edicaoExibir'] ) && isset( $_GET['cpf'] ) ) { ?> | 219 | + <?php if( isset( $_GET['edicaoExibir'] ) && isset( $_GET['cpf'] ) ) { ?> |
183 | document.getElementById("txtCPF").value = "<?= InfraUtil::formatarCpf( $_POST['txtCPF'] ) ?>"; | 220 | document.getElementById("txtCPF").value = "<?= InfraUtil::formatarCpf( $_POST['txtCPF'] ) ?>"; |
184 | - <?php } ?> | 221 | + <?php } ?> |
185 | 222 | ||
186 | - <?php if( isset( $_POST['hdnIdContextoContato'] ) && isset( $_GET['cpf'] ) ) { ?> | 223 | + <?php if( isset( $_POST['hdnIdContextoContato'] ) && isset( $_GET['cpf'] ) ) { ?> |
187 | 224 | ||
188 | //rdPF2 com vinculo | 225 | //rdPF2 com vinculo |
189 | document.getElementById("rdPF2").checked = 'checked'; | 226 | document.getElementById("rdPF2").checked = 'checked'; |
190 | document.getElementById("rdPF2").click(); | 227 | document.getElementById("rdPF2").click(); |
191 | document.getElementById("txtPjVinculada").value = '<?php echo $_POST['txtPjVinculada']; ?>'; | 228 | document.getElementById("txtPjVinculada").value = '<?php echo $_POST['txtPjVinculada']; ?>'; |
192 | 229 | ||
193 | - <?php } else if( isset( $_GET['cpf'] ) ) { ?> | 230 | + <?php } else if( isset( $_GET['cpf'] ) ) { ?> |
194 | 231 | ||
195 | //rdPF1 com vinculo | 232 | //rdPF1 com vinculo |
196 | document.getElementById("rdPF1").checked = 'checked'; | 233 | document.getElementById("rdPF1").checked = 'checked'; |
@@ -233,6 +270,30 @@ function inicializar(){ | @@ -233,6 +270,30 @@ function inicializar(){ | ||
233 | <?php } ?> | 270 | <?php } ?> |
234 | 271 | ||
235 | <?php } ?> | 272 | <?php } ?> |
273 | + | ||
274 | + <?php | ||
275 | + $janelaSelecaoPorNome = SessaoSEIExterna::getInstance()->getAtributo('janelaSelecaoPorNome'); | ||
276 | + if( $janelaSelecaoPorNome != null && $janelaSelecaoPorNome != "" ) { ?> | ||
277 | + | ||
278 | + document.getElementById("rdPF").checked = false; | ||
279 | + document.getElementById("rdPF").checked = ''; | ||
280 | + | ||
281 | + document.getElementById("rdPJ").checked = false; | ||
282 | + document.getElementById("rdPJ").checked = ''; | ||
283 | + | ||
284 | + document.getElementById('lblNome').style.display = 'none'; | ||
285 | + document.getElementById('lblCPF').style.display = 'none'; | ||
286 | + | ||
287 | + document.getElementById('lblRazaoSocial').style.display = 'none'; | ||
288 | + document.getElementById('lblCNPJ').style.display = 'none'; | ||
289 | + | ||
290 | + document.getElementById('txtCPF').readOnly = false; | ||
291 | + document.getElementById('txtCPF').readOnly = ''; | ||
292 | + | ||
293 | + document.getElementById('txtCNPJ').readOnly = false; | ||
294 | + document.getElementById('txtCNPJ').readOnly = ''; | ||
295 | + | ||
296 | + <?php } ?> | ||
236 | 297 | ||
237 | } | 298 | } |
238 | 299 | ||
@@ -306,8 +367,9 @@ function salvar(){ | @@ -306,8 +367,9 @@ function salvar(){ | ||
306 | 367 | ||
307 | //validar pj vinculada (caso exista) | 368 | //validar pj vinculada (caso exista) |
308 | var pjVinculada = document.getElementById('txtPjVinculada').value; | 369 | var pjVinculada = document.getElementById('txtPjVinculada').value; |
370 | + var idContextoAjax = document.getElementById('hdnIdContextoContato'); | ||
309 | 371 | ||
310 | - if( interessado1 == 'pf' && interessado2 == '1' && pjVinculada == '' ){ | 372 | + if( interessado1 == 'pf' && interessado2 == '1' && ( pjVinculada == '' || idContextoAjax == null || idContextoAjax.value=='' ) ){ |
311 | alert('Informe a pessoa jurídica vinculada.'); | 373 | alert('Informe a pessoa jurídica vinculada.'); |
312 | document.getElementById('txtPjVinculada').focus(); | 374 | document.getElementById('txtPjVinculada').focus(); |
313 | return; | 375 | return; |
@@ -383,7 +445,7 @@ function salvar(){ | @@ -383,7 +445,7 @@ function salvar(){ | ||
383 | } | 445 | } |
384 | 446 | ||
385 | 447 | ||
386 | - if (!infraValidarEmail(infraTrim(document.getElementById('email').value))){ | 448 | + if ( document.getElementById('email').value != "" && !infraValidarEmail(infraTrim(document.getElementById('email').value))){ |
387 | 449 | ||
388 | alert('E-mail Inválido.'); | 450 | alert('E-mail Inválido.'); |
389 | document.getElementById('email').focus(); | 451 | document.getElementById('email').focus(); |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro.php
@@ -25,9 +25,7 @@ try { | @@ -25,9 +25,7 @@ try { | ||
25 | InfraDebug::getInstance()->setBolDebugInfra( true ); | 25 | InfraDebug::getInstance()->setBolDebugInfra( true ); |
26 | InfraDebug::getInstance()->limpar(); | 26 | InfraDebug::getInstance()->limpar(); |
27 | ////////////////////////////////////////////////////////////////////////////// | 27 | ////////////////////////////////////////////////////////////////////////////// |
28 | - | ||
29 | - //print_r( ContatoPeticionamentoINT::getContatoByCPFCNPJ('707.230.281-68') ); die(); | ||
30 | - | 28 | + |
31 | SessaoSEIExterna::getInstance()->validarLink(); | 29 | SessaoSEIExterna::getInstance()->validarLink(); |
32 | SessaoSEIExterna::getInstance()->validarPermissao($_GET['acao']); | 30 | SessaoSEIExterna::getInstance()->validarPermissao($_GET['acao']); |
33 | SessaoSEIExterna::getInstance()->removerAtributo('docPrincipalConteudoHTML'); | 31 | SessaoSEIExterna::getInstance()->removerAtributo('docPrincipalConteudoHTML'); |
@@ -60,7 +58,6 @@ PaginaSEIExterna::getInstance()->montarTitle(':: '.PaginaSEIExterna::getInstance | @@ -60,7 +58,6 @@ PaginaSEIExterna::getInstance()->montarTitle(':: '.PaginaSEIExterna::getInstance | ||
60 | PaginaSEIExterna::getInstance()->montarStyle(); | 58 | PaginaSEIExterna::getInstance()->montarStyle(); |
61 | PaginaSEIExterna::getInstance()->abrirStyle(); | 59 | PaginaSEIExterna::getInstance()->abrirStyle(); |
62 | $objEditorRN = new EditorRN(); | 60 | $objEditorRN = new EditorRN(); |
63 | -//echo $objEditorRN->montarCssEditor(null); | ||
64 | PaginaSEIExterna::getInstance()->fecharStyle(); | 61 | PaginaSEIExterna::getInstance()->fecharStyle(); |
65 | PaginaSEIExterna::getInstance()->montarJavaScript(); | 62 | PaginaSEIExterna::getInstance()->montarJavaScript(); |
66 | PaginaSEIExterna::getInstance()->abrirJavaScript(); | 63 | PaginaSEIExterna::getInstance()->abrirJavaScript(); |
@@ -78,11 +75,6 @@ PaginaSEIExterna::getInstance()->fecharHead(); | @@ -78,11 +75,6 @@ PaginaSEIExterna::getInstance()->fecharHead(); | ||
78 | PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | 75 | PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
79 | ?> | 76 | ?> |
80 | <!-- tela terá multiplos forms por conta dos uploads, logo nao fará sentido ter um form geral --> | 77 | <!-- tela terá multiplos forms por conta dos uploads, logo nao fará sentido ter um form geral --> |
81 | -<!-- | ||
82 | -<form id="frmPeticionamentoCadastro" method="post" | ||
83 | - onsubmit="return OnSubmitForm();" | ||
84 | - action="<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> | ||
85 | ---> | ||
86 | <? | 78 | <? |
87 | PaginaSEIExterna::getInstance()->montarBarraComandosSuperior($arrComandos); | 79 | PaginaSEIExterna::getInstance()->montarBarraComandosSuperior($arrComandos); |
88 | PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); | 80 | PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
@@ -176,15 +168,13 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); | @@ -176,15 +168,13 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); | ||
176 | 168 | ||
177 | <label id="descTipoPessoa" class="infraLabelObrigatorio"> </label> <br/> | 169 | <label id="descTipoPessoa" class="infraLabelObrigatorio"> </label> <br/> |
178 | 170 | ||
179 | - <input type="text" id="txtCPF" class="infraText" name="txtCPF" onkeypress="return infraMascaraCpf(this, event)" | 171 | + <input type="text" id="txtCPF" class="infraText" name="txtCPF" onkeydown="return alterandoCPF(this, event)" |
180 | style="width:140px; display:none;"/> | 172 | style="width:140px; display:none;"/> |
181 | 173 | ||
182 | - <input type="text" id="txtCNPJ" class="infraText" name="txtCNPJ" onkeypress="return infraMascaraCnpj(this, event)" | 174 | + <input type="text" id="txtCNPJ" class="infraText" name="txtCNPJ" onkeydown="return alterandoCNPJ(this, event)" |
183 | style="width:140px; display:none;"/> | 175 | style="width:140px; display:none;"/> |
184 | 176 | ||
185 | - <input type="button" readonly="readonly" id="btValidarCPFCNPJ" class="infraText" value="Validar" | ||
186 | - style="visibility: hidden; margin-left: 2px; " | ||
187 | - onclick="abrirCadastroInteressado()" /> | 177 | + <input type="button" id="btValidarCPFCNPJ" class="infraText" value="Validar" style="visibility: hidden; margin-left: 2px;" onclick="abrirCadastroInteressado()" /> |
188 | 178 | ||
189 | </div> | 179 | </div> |
190 | 180 | ||
@@ -193,7 +183,7 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); | @@ -193,7 +183,7 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); | ||
193 | <label id="descNomePessoa" class="infraLabelObrigatorio"> </label> <br/> | 183 | <label id="descNomePessoa" class="infraLabelObrigatorio"> </label> <br/> |
194 | <input type="text" name="txtNomeRazaoSocial" id="txtNomeRazaoSocial" readonly="readonly" maxlength="250" style="width: 300px; display: none;"> | 184 | <input type="text" name="txtNomeRazaoSocial" id="txtNomeRazaoSocial" readonly="readonly" maxlength="250" style="width: 300px; display: none;"> |
195 | 185 | ||
196 | - <input type="button" readonly="readonly" id="btAdicionarInteressado" class="infraText" value="Adicionar" onclick="adicionarInteressadoValido()" style="margin-left: 2px; display: none;" /> | 186 | + <input type="button" id="btAdicionarInteressado" class="infraText" value="Adicionar" style="margin-left: 2px; display: none;" onclick="adicionarInteressadoValido()" /> |
197 | 187 | ||
198 | </div> | 188 | </div> |
199 | 189 | ||
@@ -212,7 +202,7 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); | @@ -212,7 +202,7 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); | ||
212 | <th class="infraTh" style="display: none;" > ID Contato </th> | 202 | <th class="infraTh" style="display: none;" > ID Contato </th> |
213 | <th class="infraTh" width="100" id="tdDescTipoPessoaSelecao" > Tipo </th> | 203 | <th class="infraTh" width="100" id="tdDescTipoPessoaSelecao" > Tipo </th> |
214 | <th class="infraTh" width="120" id="tdDescTipoPessoa" > CPF/CNPJ </th> | 204 | <th class="infraTh" width="120" id="tdDescTipoPessoa" > CPF/CNPJ </th> |
215 | - <th class="infraTh" id="tdDescNomePessoa" > Nome/Razão social </th> | 205 | + <th class="infraTh" id="tdDescNomePessoa" > Nome/Razão Social </th> |
216 | <th align="center" class="infraTh" style="width:50px;"> Ações </th> | 206 | <th align="center" class="infraTh" style="width:50px;"> Ações </th> |
217 | </tr> | 207 | </tr> |
218 | 208 |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_bloco_documentos.php
@@ -493,7 +493,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co | @@ -493,7 +493,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co | ||
493 | 493 | ||
494 | <!-- ================================== INICIO DOCUMENTOS COMPLEMENTARES =============================================== --> | 494 | <!-- ================================== INICIO DOCUMENTOS COMPLEMENTARES =============================================== --> |
495 | <?php | 495 | <?php |
496 | - // TODO o bloco de seleçao de documento essencial pode sumir da tela | 496 | + //o bloco de seleçao de documento essencial pode sumir da tela |
497 | // conforme parametrizaçao da Administraçao do modulo | 497 | // conforme parametrizaçao da Administraçao do modulo |
498 | $objRelTipoProcessoSeriePeticionamentoDTO = new RelTipoProcessoSeriePeticionamentoDTO(); | 498 | $objRelTipoProcessoSeriePeticionamentoDTO = new RelTipoProcessoSeriePeticionamentoDTO(); |
499 | $objRelTipoProcessoSeriePeticionamentoDTO->retTodos(); | 499 | $objRelTipoProcessoSeriePeticionamentoDTO->retTodos(); |
@@ -502,7 +502,6 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co | @@ -502,7 +502,6 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co | ||
502 | $objRelTipoProcessoSeriePeticionamentoRN = new RelTipoProcessoSeriePeticionamentoRN(); | 502 | $objRelTipoProcessoSeriePeticionamentoRN = new RelTipoProcessoSeriePeticionamentoRN(); |
503 | 503 | ||
504 | $arrRelTipoProcessoSeriePeticionamentoDTO = $objRelTipoProcessoSeriePeticionamentoRN->listar( $objRelTipoProcessoSeriePeticionamentoDTO ); | 504 | $arrRelTipoProcessoSeriePeticionamentoDTO = $objRelTipoProcessoSeriePeticionamentoRN->listar( $objRelTipoProcessoSeriePeticionamentoDTO ); |
505 | - //print_r( $arrRelTipoProcessoSeriePeticionamentoDTO ); die(); | ||
506 | 505 | ||
507 | if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ ?> | 506 | if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ ?> |
508 | 507 |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_inicializacao.php
@@ -111,15 +111,14 @@ $idUnidadeTipoProcesso = null; | @@ -111,15 +111,14 @@ $idUnidadeTipoProcesso = null; | ||
111 | 111 | ||
112 | //APENAS UMA UNIDADE | 112 | //APENAS UMA UNIDADE |
113 | if( $arrRelTipoProcUnidadeDTO != null && count( $arrRelTipoProcUnidadeDTO ) == 1 ) { | 113 | if( $arrRelTipoProcUnidadeDTO != null && count( $arrRelTipoProcUnidadeDTO ) == 1 ) { |
114 | - $idUnidadeTipoProcesso = $arrRelTipoProcUnidadeDTO[0]->getNumIdUnidade(); | ||
115 | - //echo $idUnidadeTipoProcesso; die(); | 114 | + |
115 | + $idUnidadeTipoProcesso = $arrRelTipoProcUnidadeDTO[0]->getNumIdUnidade(); | ||
116 | + | ||
116 | } | 117 | } |
117 | 118 | ||
118 | //MULTIPLAS UNIDADES | 119 | //MULTIPLAS UNIDADES |
119 | else if( $arrRelTipoProcUnidadeDTO != null && count( $arrRelTipoProcUnidadeDTO ) > 1 ){ | 120 | else if( $arrRelTipoProcUnidadeDTO != null && count( $arrRelTipoProcUnidadeDTO ) > 1 ){ |
120 | - | ||
121 | - //print_r( $arrRelTipoProcUnidadeDTO ); die(); | ||
122 | - | 121 | + |
123 | $arrIdUnidade = array(); | 122 | $arrIdUnidade = array(); |
124 | 123 | ||
125 | //consultar UFs das unidades informadas | 124 | //consultar UFs das unidades informadas |
@@ -138,7 +137,7 @@ else if( $arrRelTipoProcUnidadeDTO != null && count( $arrRelTipoProcUnidadeDTO ) | @@ -138,7 +137,7 @@ else if( $arrRelTipoProcUnidadeDTO != null && count( $arrRelTipoProcUnidadeDTO ) | ||
138 | 137 | ||
139 | $objUnidadeRN = new UnidadeRN(); | 138 | $objUnidadeRN = new UnidadeRN(); |
140 | $arrUnidadeUFDTO = $objUnidadeRN->listarRN0127( $objUnidadeDTO ); | 139 | $arrUnidadeUFDTO = $objUnidadeRN->listarRN0127( $objUnidadeDTO ); |
141 | - //print_r( $arrUnidadeUFDTO ); die(); | 140 | + |
142 | } | 141 | } |
143 | 142 | ||
144 | $ObjRelTipoProcessoSeriePeticionamentoRN = new RelTipoProcessoSeriePeticionamentoRN(); | 143 | $ObjRelTipoProcessoSeriePeticionamentoRN = new RelTipoProcessoSeriePeticionamentoRN(); |
@@ -146,7 +145,6 @@ $ObjRelTipoProcessoSeriePeticionamentoDTO = new RelTipoProcessoSeriePeticionamen | @@ -146,7 +145,6 @@ $ObjRelTipoProcessoSeriePeticionamentoDTO = new RelTipoProcessoSeriePeticionamen | ||
146 | $ObjRelTipoProcessoSeriePeticionamentoDTO->retTodos(); | 145 | $ObjRelTipoProcessoSeriePeticionamentoDTO->retTodos(); |
147 | $ObjRelTipoProcessoSeriePeticionamentoDTO->setNumIdTipoProcessoPeticionamento( $idTipoProc ); | 146 | $ObjRelTipoProcessoSeriePeticionamentoDTO->setNumIdTipoProcessoPeticionamento( $idTipoProc ); |
148 | $arrTiposDocumentosComplementares = $ObjRelTipoProcessoSeriePeticionamentoRN->listar( $ObjRelTipoProcessoSeriePeticionamentoDTO ); | 147 | $arrTiposDocumentosComplementares = $ObjRelTipoProcessoSeriePeticionamentoRN->listar( $ObjRelTipoProcessoSeriePeticionamentoDTO ); |
149 | -//print_r( $arrTiposDocumentosComplementares ); die(); | ||
150 | 148 | ||
151 | //ler configuraçoes necessarias para aplicar a RN 8 | 149 | //ler configuraçoes necessarias para aplicar a RN 8 |
152 | /* | 150 | /* |
@@ -206,7 +204,6 @@ $objTipoProcessoPeticionamentoDTO->setStrSinAtivo('S', InfraDTO::$OPER_IGUAL); | @@ -206,7 +204,6 @@ $objTipoProcessoPeticionamentoDTO->setStrSinAtivo('S', InfraDTO::$OPER_IGUAL); | ||
206 | $objTipoProcessoPeticionamentoDTO->retTodos(); | 204 | $objTipoProcessoPeticionamentoDTO->retTodos(); |
207 | $objTipoProcessoPeticionamentoDTO->setNumIdProcedimento( $objTipoProcDTO->getNumIdProcedimento() , InfraDTO::$OPER_IGUAL ); | 205 | $objTipoProcessoPeticionamentoDTO->setNumIdProcedimento( $objTipoProcDTO->getNumIdProcedimento() , InfraDTO::$OPER_IGUAL ); |
208 | $ObjTipoProcessoPeticionamentoDTO = $objTipoProcessoPeticionamentoRN->consultar( $objTipoProcessoPeticionamentoDTO ); | 206 | $ObjTipoProcessoPeticionamentoDTO = $objTipoProcessoPeticionamentoRN->consultar( $objTipoProcessoPeticionamentoDTO ); |
209 | -//print_r( $ObjTipoProcessoPeticionamentoDTO ); die(); | ||
210 | 207 | ||
211 | $txtTipoProcessoEscolhido = $objTipoProcDTO->getStrNomeProcesso(); | 208 | $txtTipoProcessoEscolhido = $objTipoProcDTO->getStrNomeProcesso(); |
212 | 209 | ||
@@ -216,14 +213,6 @@ $arrPFPJInteressados = array(); | @@ -216,14 +213,6 @@ $arrPFPJInteressados = array(); | ||
216 | //preenche a combo de interessados - CASO 3 | 213 | //preenche a combo de interessados - CASO 3 |
217 | $arrContatosInteressados = array(); | 214 | $arrContatosInteressados = array(); |
218 | 215 | ||
219 | -/* | ||
220 | - $contatoRN = new ContatoRN(); | ||
221 | -$contatoDTO = new ContatoDTO(); | ||
222 | -$contatoDTO->retTodos(); | ||
223 | -$contatoDTO->setStrSinAtivo('S'); | ||
224 | -$arrContatosInteressados = $contatoRN->listarRN0325( $contatoDTO ); | ||
225 | -*/ | ||
226 | - | ||
227 | //preenche a combo "Tipo" | 216 | //preenche a combo "Tipo" |
228 | $arrTipo = array(); | 217 | $arrTipo = array(); |
229 | 218 | ||
@@ -269,7 +258,6 @@ if( $valorConfigHipoteseLegal == 1 || $valorConfigHipoteseLegal == 2){ | @@ -269,7 +258,6 @@ if( $valorConfigHipoteseLegal == 1 || $valorConfigHipoteseLegal == 2){ | ||
269 | $hipoteseDTO->retTodos(); | 258 | $hipoteseDTO->retTodos(); |
270 | $hipoteseDTO->setStrSinAtivo('S'); | 259 | $hipoteseDTO->setStrSinAtivo('S'); |
271 | $arrHipoteseLegal = $hipoteseRN->listar( $hipoteseDTO ); | 260 | $arrHipoteseLegal = $hipoteseRN->listar( $hipoteseDTO ); |
272 | - //$valorConfigHipoteseLegal $arrHipoteseLegal | ||
273 | 261 | ||
274 | } | 262 | } |
275 | } | 263 | } |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_js.php
@@ -63,7 +63,6 @@ $objRelTipoProcessoSeriePeticionamentoDTO->setNumIdTipoProcessoPeticionamento( $ | @@ -63,7 +63,6 @@ $objRelTipoProcessoSeriePeticionamentoDTO->setNumIdTipoProcessoPeticionamento( $ | ||
63 | $objRelTipoProcessoSeriePeticionamentoRN = new RelTipoProcessoSeriePeticionamentoRN(); | 63 | $objRelTipoProcessoSeriePeticionamentoRN = new RelTipoProcessoSeriePeticionamentoRN(); |
64 | 64 | ||
65 | $arrRelTipoProcessoSeriePeticionamentoDTO = $objRelTipoProcessoSeriePeticionamentoRN->listar( $objRelTipoProcessoSeriePeticionamentoDTO ); | 65 | $arrRelTipoProcessoSeriePeticionamentoDTO = $objRelTipoProcessoSeriePeticionamentoRN->listar( $objRelTipoProcessoSeriePeticionamentoDTO ); |
66 | -//print_r( $arrRelTipoProcessoSeriePeticionamentoDTO ); die(); | ||
67 | 66 | ||
68 | if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ | 67 | if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ |
69 | 68 | ||
@@ -766,6 +765,18 @@ function validarFormulario(){ | @@ -766,6 +765,18 @@ function validarFormulario(){ | ||
766 | return false; | 765 | return false; |
767 | } | 766 | } |
768 | 767 | ||
768 | + //aplicando validaçao de interessados informados no cenario de indicaçao por cpf ou cnpj | ||
769 | + var tbInteressadosIndicados = document.getElementById("tbInteressadosIndicados"); | ||
770 | + var hdnListaInteressadosIndicados = document.getElementById("hdnListaInteressadosIndicados"); | ||
771 | + var optTipoPessoaFisica = document.getElementById("optTipoPessoaFisica"); | ||
772 | + | ||
773 | + if( tbInteressadosIndicados != null && hdnListaInteressadosIndicados != null && hdnListaInteressadosIndicados.value == "" ){ | ||
774 | + | ||
775 | + alert('Informe o(s) Interessado(s).'); | ||
776 | + optTipoPessoaFisica.focus(); | ||
777 | + return false; | ||
778 | + } | ||
779 | + | ||
769 | //aplicando validações relacionadas ao documento principal | 780 | //aplicando validações relacionadas ao documento principal |
770 | var fileArquivoPrincipal = document.getElementById('fileArquivoPrincipal'); | 781 | var fileArquivoPrincipal = document.getElementById('fileArquivoPrincipal'); |
771 | var complementoPrincipal = document.getElementById('complementoPrincipal'); | 782 | var complementoPrincipal = document.getElementById('complementoPrincipal'); |
@@ -1025,8 +1036,12 @@ function abrirCadastroInteressado(){ | @@ -1025,8 +1036,12 @@ function abrirCadastroInteressado(){ | ||
1025 | else { | 1036 | else { |
1026 | 1037 | ||
1027 | if( chkTipoPessoaFisica ){ | 1038 | if( chkTipoPessoaFisica ){ |
1039 | + | ||
1040 | + ponto = txtcpf.split("."); | ||
1041 | + traco = txtcpf.split("-"); | ||
1028 | 1042 | ||
1029 | - if (!infraValidarCpf(infraTrim( txtcpf ))){ | 1043 | + //cpf tem que ser valido , ter 2 pontos e um traço (ou seja, estar na mascara) |
1044 | + if (!infraValidarCpf(infraTrim( txtcpf )) || (ponto.length-1) != 2 || (traco.length-1) != 1 ){ | ||
1030 | 1045 | ||
1031 | alert('CPF Inválido.'); | 1046 | alert('CPF Inválido.'); |
1032 | document.getElementById('txtCPF').focus(); | 1047 | document.getElementById('txtCPF').focus(); |
@@ -1039,7 +1054,11 @@ function abrirCadastroInteressado(){ | @@ -1039,7 +1054,11 @@ function abrirCadastroInteressado(){ | ||
1039 | 1054 | ||
1040 | else if( chkTipoPessoaJuridica ){ | 1055 | else if( chkTipoPessoaJuridica ){ |
1041 | 1056 | ||
1042 | - if (!infraValidarCnpj(infraTrim( txtcnpj ))){ | 1057 | + ponto = txtcnpj.split("."); |
1058 | + traco = txtcnpj.indexOf("-"); | ||
1059 | + barra = txtcnpj.indexOf("/"); | ||
1060 | + | ||
1061 | + if (!infraValidarCnpj(infraTrim( txtcnpj )) || ponto.length != 3 || traco != 15 || barra != 10 ){ | ||
1043 | 1062 | ||
1044 | alert('CNPJ Inválido.'); | 1063 | alert('CNPJ Inválido.'); |
1045 | document.getElementById('txtCNPJ').focus(); | 1064 | document.getElementById('txtCNPJ').focus(); |
@@ -1626,7 +1645,7 @@ function carregarCamposDocComplementarUpload(){ | @@ -1626,7 +1645,7 @@ function carregarCamposDocComplementarUpload(){ | ||
1626 | function carregarComponenteLupaInteressados( tipoAcao ){ | 1645 | function carregarComponenteLupaInteressados( tipoAcao ){ |
1627 | 1646 | ||
1628 | if( tipoAcao == 'S'){ | 1647 | if( tipoAcao == 'S'){ |
1629 | - objLupaInteressados.selecionar(700,500); | 1648 | + objLupaInteressados.selecionar(900,900); |
1630 | } else if( tipoAcao == 'R'){ | 1649 | } else if( tipoAcao == 'R'){ |
1631 | objLupaInteressados.remover(); | 1650 | objLupaInteressados.remover(); |
1632 | } | 1651 | } |
@@ -1850,12 +1869,12 @@ function adicionarInteressadoValido(){ | @@ -1850,12 +1869,12 @@ function adicionarInteressadoValido(){ | ||
1850 | if( txtNomeRazaoSocial == ''){ | 1869 | if( txtNomeRazaoSocial == ''){ |
1851 | 1870 | ||
1852 | if( chkTipoPessoaFisica ){ | 1871 | if( chkTipoPessoaFisica ){ |
1853 | - alert('Informe o Nome.'); | 1872 | + alert('Antes é necessário validar o CPF.'); |
1854 | return; | 1873 | return; |
1855 | } | 1874 | } |
1856 | 1875 | ||
1857 | else if( chkTipoPessoaJuridica ){ | 1876 | else if( chkTipoPessoaJuridica ){ |
1858 | - alert('Informe a Razão Social.'); | 1877 | + alert('Antes é necessário validar o CNPJ.'); |
1859 | return; | 1878 | return; |
1860 | } | 1879 | } |
1861 | 1880 | ||
@@ -1949,4 +1968,18 @@ function atualizarNomeRazaoSocial( cpfEditado , nomeEditado ){ | @@ -1949,4 +1968,18 @@ function atualizarNomeRazaoSocial( cpfEditado , nomeEditado ){ | ||
1949 | } | 1968 | } |
1950 | 1969 | ||
1951 | } | 1970 | } |
1971 | + | ||
1972 | +function alterandoCPF(objeto, evt){ | ||
1973 | + document.getElementById('txtNomeRazaoSocial').value = ''; | ||
1974 | + document.getElementById('hdnIdInteressadoCadastrado').value = ''; | ||
1975 | + return infraMascaraCpf(objeto, evt); | ||
1976 | + | ||
1977 | +} | ||
1978 | + | ||
1979 | +function alterandoCNPJ(objeto, evt){ | ||
1980 | + document.getElementById('txtNomeRazaoSocial').value = ''; | ||
1981 | + document.getElementById('hdnIdInteressadoCadastrado').value = ''; | ||
1982 | + return infraMascaraCnpj(objeto, evt); | ||
1983 | + | ||
1984 | +} | ||
1952 | </script> | 1985 | </script> |
1953 | \ No newline at end of file | 1986 | \ No newline at end of file |
sei/institucional/peticionamento/peticionamento_usuario_externo_inicio.php
@@ -55,14 +55,6 @@ try { | @@ -55,14 +55,6 @@ try { | ||
55 | 55 | ||
56 | $objTipoProcedimentoRN = new TipoProcessoPeticionamentoRN(); | 56 | $objTipoProcedimentoRN = new TipoProcessoPeticionamentoRN(); |
57 | $arrObjTipoProcedimentoDTO = $objTipoProcedimentoRN->listar($objTipoProcessoDTO); | 57 | $arrObjTipoProcedimentoDTO = $objTipoProcedimentoRN->listar($objTipoProcessoDTO); |
58 | - //print_r( $arrObjTipoProcedimentoDTO ); die(); | ||
59 | - | ||
60 | - //foreach($arrObjTipoProcedimentoDTO as $objTipoProcessoDTO){ | ||
61 | - //$arrOpcoes[] = array($objTipoProcessoDTO->getNumIdTipoProcessoPeticionamento(),$objTipoProcessoDTO->getStrNome(),$objTipoProcessoDTO->getStrSinOuvidoria()); | ||
62 | - //} | ||
63 | - | ||
64 | - //DTO basico de Processo Peticionamento Novo | ||
65 | - //$objIndisponibilidadePeticionamentoDTO = new IndisponibilidadePeticionamentoDTO(); | ||
66 | 58 | ||
67 | $objEditorRN = new EditorRN(); | 59 | $objEditorRN = new EditorRN(); |
68 | 60 |
sei/institucional/peticionamento/recibo_peticionamento_usuario_externo_lista.php
@@ -117,12 +117,7 @@ try { | @@ -117,12 +117,7 @@ try { | ||
117 | $protocoloDTO->retStrProtocoloFormatado(); | 117 | $protocoloDTO->retStrProtocoloFormatado(); |
118 | $protocoloDTO->setDblIdProtocolo( $arrObjReciboPeticionamentoDTO[$i]->getNumIdProtocolo() ); | 118 | $protocoloDTO->setDblIdProtocolo( $arrObjReciboPeticionamentoDTO[$i]->getNumIdProtocolo() ); |
119 | $protocoloDTO = $protocoloRN->consultarRN0186( $protocoloDTO ); | 119 | $protocoloDTO = $protocoloRN->consultarRN0186( $protocoloDTO ); |
120 | - | ||
121 | - //if( $protocoloDTO == null){ | ||
122 | - //echo $i; die(); | ||
123 | - //print_r( $arrObjReciboPeticionamentoDTO[$i] ); die(); | ||
124 | - //} | ||
125 | - | 120 | + |
126 | if( isset( $_GET['id_md_pet_rel_recibo_protoc'] ) && $_GET['id_md_pet_rel_recibo_protoc'] == $arrObjReciboPeticionamentoDTO[$i]->getNumIdReciboPeticionamento()){ | 121 | if( isset( $_GET['id_md_pet_rel_recibo_protoc'] ) && $_GET['id_md_pet_rel_recibo_protoc'] == $arrObjReciboPeticionamentoDTO[$i]->getNumIdReciboPeticionamento()){ |
127 | $strCssTr = '<tr class="infraTrAcessada">'; | 122 | $strCssTr = '<tr class="infraTrAcessada">'; |
128 | }else{ | 123 | }else{ |
@@ -218,7 +213,6 @@ PaginaSEIExterna::getInstance()->fecharJavaScript(); | @@ -218,7 +213,6 @@ PaginaSEIExterna::getInstance()->fecharJavaScript(); | ||
218 | PaginaSEIExterna::getInstance()->fecharHead(); | 213 | PaginaSEIExterna::getInstance()->fecharHead(); |
219 | PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | 214 | PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
220 | $strTipo = $_POST['selTipo'];; | 215 | $strTipo = $_POST['selTipo'];; |
221 | -//print_r( $_GET ); die(); | ||
222 | ?> | 216 | ?> |
223 | <form id="frmLista" method="post" action="<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao='.$_GET['acao']))?>"> | 217 | <form id="frmLista" method="post" action="<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao='.$_GET['acao']))?>"> |
224 | 218 |
sei/institucional/peticionamento/rn/AnexoPeticionamentoRN.php
@@ -65,7 +65,6 @@ class AnexoPeticionamentoRN extends InfraRN { | @@ -65,7 +65,6 @@ class AnexoPeticionamentoRN extends InfraRN { | ||
65 | $this->validarDthInclusaoRN0868($objAnexoDTO, $objInfraException); | 65 | $this->validarDthInclusaoRN0868($objAnexoDTO, $objInfraException); |
66 | $this->validarStrSinAtivoRN0886($objAnexoDTO, $objInfraException); | 66 | $this->validarStrSinAtivoRN0886($objAnexoDTO, $objInfraException); |
67 | 67 | ||
68 | - //print_r( $objAnexoDTO );die(); | ||
69 | $strNomeUpload = $objAnexoDTO->getStrNome(); | 68 | $strNomeUpload = $objAnexoDTO->getStrNome(); |
70 | $strNomeUploadCompleto = DIR_SEI_TEMP.'/'.$strNomeUpload; | 69 | $strNomeUploadCompleto = DIR_SEI_TEMP.'/'.$strNomeUpload; |
71 | 70 | ||
@@ -281,14 +280,6 @@ class AnexoPeticionamentoRN extends InfraRN { | @@ -281,14 +280,6 @@ class AnexoPeticionamentoRN extends InfraRN { | ||
281 | 280 | ||
282 | private function validarStrNomeRN0228(AnexoDTO $objAnexoDTO, InfraException $objInfraException){ | 281 | private function validarStrNomeRN0228(AnexoDTO $objAnexoDTO, InfraException $objInfraException){ |
283 | 282 | ||
284 | - /* foreach (debug_backtrace() as $trace) | ||
285 | - { | ||
286 | - echo sprintf("\n%s:%s %s::%s <br/>", $trace['file'], $trace['line'], $trace['class'], $trace['function']); | ||
287 | - } | ||
288 | - die; | ||
289 | - | ||
290 | - print_r( $objAnexoDTO ); die(); */ | ||
291 | - | ||
292 | if (InfraString::isBolVazia($objAnexoDTO->getStrNome())){ | 283 | if (InfraString::isBolVazia($objAnexoDTO->getStrNome())){ |
293 | $objInfraException->adicionarValidacao('Nome do anexo não informado.'); | 284 | $objInfraException->adicionarValidacao('Nome do anexo não informado.'); |
294 | }else{ | 285 | }else{ |
sei/institucional/peticionamento/rn/AtividadePeticionamentoRN.php
@@ -18,7 +18,6 @@ class AtividadePeticionamentoRN extends AtividadeRN { | @@ -18,7 +18,6 @@ class AtividadePeticionamentoRN extends AtividadeRN { | ||
18 | 18 | ||
19 | $objAtividadeDTO = $param[0]; | 19 | $objAtividadeDTO = $param[0]; |
20 | $idUnidadeDTO = $param[1]; | 20 | $idUnidadeDTO = $param[1]; |
21 | - //print_r( $objAtividadeDTO );die(); | ||
22 | 21 | ||
23 | //Valida Permissao | 22 | //Valida Permissao |
24 | //SessaoSEI::getInstance()->validarAuditarPermissao('atividade_gerar',__METHOD__,$objAtividadeDTO); | 23 | //SessaoSEI::getInstance()->validarAuditarPermissao('atividade_gerar',__METHOD__,$objAtividadeDTO); |
@@ -307,10 +306,9 @@ class AtividadePeticionamentoRN extends AtividadeRN { | @@ -307,10 +306,9 @@ class AtividadePeticionamentoRN extends AtividadeRN { | ||
307 | $numIdTarefa != TarefaRN::$TI_REABERTURA_PROCESSO_USUARIO && | 306 | $numIdTarefa != TarefaRN::$TI_REABERTURA_PROCESSO_USUARIO && |
308 | $numIdTarefa != TarefaRN::$TI_CANCELAMENTO_AGENDAMENTO && | 307 | $numIdTarefa != TarefaRN::$TI_CANCELAMENTO_AGENDAMENTO && |
309 | $numIdTarefa != TarefaRN::$TI_REMOCAO_SOBRESTANDO_PROCESSO){ //confirmacao de publicacao | 308 | $numIdTarefa != TarefaRN::$TI_REMOCAO_SOBRESTANDO_PROCESSO){ //confirmacao de publicacao |
310 | - //throw new InfraException('Processo '.$objProtocoloDTO->getStrProtocoloFormatado().' não possui andamento aberto na unidade '.SessaoSEI::getInstance()->getStrSiglaUnidadeAtual().' ['.$numIdTarefa.'].'); | ||
311 | - //TODO montar outro unidade dto para obter a sigla | 309 | + |
312 | $objInfraException->lancarValidacao('Processo '.$objProtocoloDTO->getStrProtocoloFormatado().' não possui andamento aberto na unidade ID = '. $idUnidadeDTO .'.'); | 310 | $objInfraException->lancarValidacao('Processo '.$objProtocoloDTO->getStrProtocoloFormatado().' não possui andamento aberto na unidade ID = '. $idUnidadeDTO .'.'); |
313 | - //$objInfraException->lancarValidacao('Processo '.$objProtocoloDTO->getStrProtocoloFormatado().' não possui andamento aberto na unidade '.SessaoSEI::getInstance()->getStrSiglaUnidadeAtual().'.'); | 311 | + |
314 | } | 312 | } |
315 | 313 | ||
316 | //lança andamento em aberto mas não altera outros dados como usuário de visualização e atribuição | 314 | //lança andamento em aberto mas não altera outros dados como usuário de visualização e atribuição |
@@ -410,10 +408,7 @@ class AtividadePeticionamentoRN extends AtividadeRN { | @@ -410,10 +408,7 @@ class AtividadePeticionamentoRN extends AtividadeRN { | ||
410 | $idUnidade = $objAtividadeDTO->get('IdUnidade'); | 408 | $idUnidade = $objAtividadeDTO->get('IdUnidade'); |
411 | 409 | ||
412 | if ( $idUnidade == null || $idUnidade == '' ){ | 410 | if ( $idUnidade == null || $idUnidade == '' ){ |
413 | - debug_print_backtrace(); die(); | ||
414 | - //echo " UNIDADE ::: " . $idUnidade; | ||
415 | - //print_r( $objAtividadeDTO ); die(); | ||
416 | - $objInfraException->adicionarValidacao('Unidade não informada 333.'); | 411 | + $objInfraException->adicionarValidacao('Unidade não informada.'); |
417 | } | 412 | } |
418 | } | 413 | } |
419 | 414 | ||
@@ -1272,8 +1267,6 @@ class AtividadePeticionamentoRN extends AtividadeRN { | @@ -1272,8 +1267,6 @@ class AtividadePeticionamentoRN extends AtividadeRN { | ||
1272 | } | 1267 | } |
1273 | 1268 | ||
1274 | protected function enviarRN0023CustomizadoInternoControlado(EnviarProcessoDTO $parObjEnviarProcessoDTO) { | 1269 | protected function enviarRN0023CustomizadoInternoControlado(EnviarProcessoDTO $parObjEnviarProcessoDTO) { |
1275 | - | ||
1276 | - //print_r( $parObjEnviarProcessoDTO); die(); | ||
1277 | 1270 | ||
1278 | try{ | 1271 | try{ |
1279 | 1272 | ||
@@ -1282,9 +1275,7 @@ class AtividadePeticionamentoRN extends AtividadeRN { | @@ -1282,9 +1275,7 @@ class AtividadePeticionamentoRN extends AtividadeRN { | ||
1282 | 1275 | ||
1283 | //Regras de Negocio | 1276 | //Regras de Negocio |
1284 | $objInfraException = new InfraException(); | 1277 | $objInfraException = new InfraException(); |
1285 | - | ||
1286 | - //$objInfraException->lancarValidacao('aaaaaaa'); | ||
1287 | - | 1278 | + |
1288 | //verifica se não houve mudança nas atividades abertas | 1279 | //verifica se não houve mudança nas atividades abertas |
1289 | $idUnidadeOrigem = ''; | 1280 | $idUnidadeOrigem = ''; |
1290 | $arrObjAtividadeDTOOrigem = $parObjEnviarProcessoDTO->getArrAtividadesOrigem(); | 1281 | $arrObjAtividadeDTOOrigem = $parObjEnviarProcessoDTO->getArrAtividadesOrigem(); |
@@ -1299,8 +1290,6 @@ class AtividadePeticionamentoRN extends AtividadeRN { | @@ -1299,8 +1290,6 @@ class AtividadePeticionamentoRN extends AtividadeRN { | ||
1299 | $arrObjAtividadeDTO = $parObjEnviarProcessoDTO->getArrAtividades(); | 1290 | $arrObjAtividadeDTO = $parObjEnviarProcessoDTO->getArrAtividades(); |
1300 | $arrIdProtocolosOrigem = array_unique(InfraArray::converterArrInfraDTO($arrObjAtividadeDTO,'IdProtocolo')); | 1291 | $arrIdProtocolosOrigem = array_unique(InfraArray::converterArrInfraDTO($arrObjAtividadeDTO,'IdProtocolo')); |
1301 | 1292 | ||
1302 | - //TODO TESTE COMENTARIO Pode remover validaçoes por se tratar de processos novos? | ||
1303 | - //$this->validarAndamentosAtuais($arrIdProtocolosOrigem, $arrIdAtividadesOrigem, $objInfraException); | ||
1304 | $this->validarStrSinConluirOriginaisRN0826($parObjEnviarProcessoDTO, $objInfraException); | 1293 | $this->validarStrSinConluirOriginaisRN0826($parObjEnviarProcessoDTO, $objInfraException); |
1305 | $this->validarStrSinRemoverAnotacoes($parObjEnviarProcessoDTO, $objInfraException); | 1294 | $this->validarStrSinRemoverAnotacoes($parObjEnviarProcessoDTO, $objInfraException); |
1306 | $this->validarStrSinEnviarEmailNotificacao($parObjEnviarProcessoDTO, $objInfraException); | 1295 | $this->validarStrSinEnviarEmailNotificacao($parObjEnviarProcessoDTO, $objInfraException); |
sei/institucional/peticionamento/rn/DocumentoPeticionamentoRN.php
@@ -160,7 +160,6 @@ class DocumentoPeticionamentoRN extends InfraRN { | @@ -160,7 +160,6 @@ class DocumentoPeticionamentoRN extends InfraRN { | ||
160 | $objProtocoloDTO->setDblIdProtocolo(null); | 160 | $objProtocoloDTO->setDblIdProtocolo(null); |
161 | $objProtocoloDTO->setStrStaProtocolo(ProtocoloRN::$TP_DOCUMENTO_RECEBIDO); | 161 | $objProtocoloDTO->setStrStaProtocolo(ProtocoloRN::$TP_DOCUMENTO_RECEBIDO); |
162 | $objProtocoloDTO->setStrDescricao(utf8_decode($objDocumento->descricao)); | 162 | $objProtocoloDTO->setStrDescricao(utf8_decode($objDocumento->descricao)); |
163 | - //TODO: Avaliar regra de formação do número do documento | ||
164 | $objDocumentoDTO->setStrNumero((isset($objDocumento->identificacao) ? $objDocumento->identificacao->numero : utf8_decode($objDocumento->descricao))); | 163 | $objDocumentoDTO->setStrNumero((isset($objDocumento->identificacao) ? $objDocumento->identificacao->numero : utf8_decode($objDocumento->descricao))); |
165 | $objProtocoloDTO->setStrStaNivelAcessoLocal($this->obterNivelSigiloSEI($objDocumento->nivelDeSigilo)); | 164 | $objProtocoloDTO->setStrStaNivelAcessoLocal($this->obterNivelSigiloSEI($objDocumento->nivelDeSigilo)); |
166 | $objProtocoloDTO->setDtaGeracao($this->objProcessoEletronicoRN->converterDataSEI($objDocumento->dataHoraDeProducao)); | 165 | $objProtocoloDTO->setDtaGeracao($this->objProcessoEletronicoRN->converterDataSEI($objDocumento->dataHoraDeProducao)); |
@@ -168,15 +167,11 @@ class DocumentoPeticionamentoRN extends InfraRN { | @@ -168,15 +167,11 @@ class DocumentoPeticionamentoRN extends InfraRN { | ||
168 | $objProtocoloDTO->setArrObjRelProtocoloAssuntoDTO(array()); | 167 | $objProtocoloDTO->setArrObjRelProtocoloAssuntoDTO(array()); |
169 | $objProtocoloDTO->setArrObjRelProtocoloProtocoloDTO(array()); | 168 | $objProtocoloDTO->setArrObjRelProtocoloProtocoloDTO(array()); |
170 | $objProtocoloDTO->setArrObjParticipanteDTO(array()); | 169 | $objProtocoloDTO->setArrObjParticipanteDTO(array()); |
171 | - | ||
172 | - //TODO: Analisar se o modelo de dados do PEN possui destinatários específicos para os documentos | ||
173 | - //caso não possua, analisar o repasse de tais informações via parãmetros adicionais | ||
174 | - | 170 | + |
175 | $objObservacaoDTO = new ObservacaoDTO(); | 171 | $objObservacaoDTO = new ObservacaoDTO(); |
176 | $objObservacaoDTO->setStrDescricao($objDocumento->Observacao); | 172 | $objObservacaoDTO->setStrDescricao($objDocumento->Observacao); |
177 | $objProtocoloDTO->setArrObjObservacaoDTO(array($objObservacaoDTO)); | 173 | $objProtocoloDTO->setArrObjObservacaoDTO(array($objObservacaoDTO)); |
178 | - | ||
179 | - | 174 | + |
180 | $bolReabriuAutomaticamente = false; | 175 | $bolReabriuAutomaticamente = false; |
181 | if ($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()==ProtocoloRN::$NA_PUBLICO || $objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()==ProtocoloRN::$NA_RESTRITO) { | 176 | if ($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()==ProtocoloRN::$NA_PUBLICO || $objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()==ProtocoloRN::$NA_RESTRITO) { |
182 | 177 | ||
@@ -307,9 +302,7 @@ class DocumentoPeticionamentoRN extends InfraRN { | @@ -307,9 +302,7 @@ class DocumentoPeticionamentoRN extends InfraRN { | ||
307 | } | 302 | } |
308 | 303 | ||
309 | protected function gerarRN0003InternoCustomizadoControlado(DocumentoDTO $objDocumentoDTO) { | 304 | protected function gerarRN0003InternoCustomizadoControlado(DocumentoDTO $objDocumentoDTO) { |
310 | - | ||
311 | - //print_r( $objDocumentoDTO ); die(); | ||
312 | - | 305 | + |
313 | try{ | 306 | try{ |
314 | 307 | ||
315 | $idUnidadeResponsavel = $objDocumentoDTO->getNumIdUnidadeResponsavel(); | 308 | $idUnidadeResponsavel = $objDocumentoDTO->getNumIdUnidadeResponsavel(); |
@@ -531,9 +524,7 @@ class DocumentoPeticionamentoRN extends InfraRN { | @@ -531,9 +524,7 @@ class DocumentoPeticionamentoRN extends InfraRN { | ||
531 | 524 | ||
532 | $objAtividadeRN = new AtividadePeticionamentoRN(); | 525 | $objAtividadeRN = new AtividadePeticionamentoRN(); |
533 | $objAtividadeRN->gerarInternaRN0727($objAtividadeDTO); | 526 | $objAtividadeRN->gerarInternaRN0727($objAtividadeDTO); |
534 | - | ||
535 | - /// | ||
536 | - | 527 | + |
537 | $arrAnexos = $objProtocoloDTO->getArrObjAnexoDTO(); | 528 | $arrAnexos = $objProtocoloDTO->getArrObjAnexoDTO(); |
538 | for($i=0;$i<count($arrAnexos);$i++){ | 529 | for($i=0;$i<count($arrAnexos);$i++){ |
539 | 530 | ||
@@ -622,9 +613,7 @@ class DocumentoPeticionamentoRN extends InfraRN { | @@ -622,9 +613,7 @@ class DocumentoPeticionamentoRN extends InfraRN { | ||
622 | }else if ($objDocumentoDTO->isSetNumIdTextoPadraoInterno() && $objDocumentoDTO->getNumIdTextoPadraoInterno()!=null){ | 613 | }else if ($objDocumentoDTO->isSetNumIdTextoPadraoInterno() && $objDocumentoDTO->getNumIdTextoPadraoInterno()!=null){ |
623 | $objEditorDTO->setNumIdTextoPadraoInterno($objDocumentoDTO->getNumIdTextoPadraoInterno()); | 614 | $objEditorDTO->setNumIdTextoPadraoInterno($objDocumentoDTO->getNumIdTextoPadraoInterno()); |
624 | } | 615 | } |
625 | - | ||
626 | - //print_r( $objEditorDTO ); die(); | ||
627 | - | 616 | + |
628 | $objEditorRN = new EditorUsuarioExternoRN(); | 617 | $objEditorRN = new EditorUsuarioExternoRN(); |
629 | $objEditorRN->gerarVersaoInicial($objEditorDTO); | 618 | $objEditorRN->gerarVersaoInicial($objEditorDTO); |
630 | } | 619 | } |
@@ -722,10 +711,6 @@ class DocumentoPeticionamentoRN extends InfraRN { | @@ -722,10 +711,6 @@ class DocumentoPeticionamentoRN extends InfraRN { | ||
722 | if ($objDocumentoDTO->getStrStaProtocoloProtocolo()==ProtocoloRN::$TP_DOCUMENTO_GERADO && $objSerieDTO->getStrStaAplicabilidade()==SerieRN::$TA_EXTERNO){ | 711 | if ($objDocumentoDTO->getStrStaProtocoloProtocolo()==ProtocoloRN::$TP_DOCUMENTO_GERADO && $objSerieDTO->getStrStaAplicabilidade()==SerieRN::$TA_EXTERNO){ |
723 | $objInfraException->adicionarValidacao('Tipo do documento não aplicável para documentos internos.'); | 712 | $objInfraException->adicionarValidacao('Tipo do documento não aplicável para documentos internos.'); |
724 | }else if ($objDocumentoDTO->getStrStaProtocoloProtocolo()==ProtocoloRN::$TP_DOCUMENTO_RECEBIDO && $objSerieDTO->getStrStaAplicabilidade()==SerieRN::$TA_INTERNO){ | 713 | }else if ($objDocumentoDTO->getStrStaProtocoloProtocolo()==ProtocoloRN::$TP_DOCUMENTO_RECEBIDO && $objSerieDTO->getStrStaAplicabilidade()==SerieRN::$TA_INTERNO){ |
725 | - //echo "<pre>"; | ||
726 | - //debug_print_backtrace(); | ||
727 | - //echo "</pre>"; | ||
728 | - //die(); | ||
729 | $objInfraException->adicionarValidacao('Tipo do documento não aplicável para documentos externos.'); | 714 | $objInfraException->adicionarValidacao('Tipo do documento não aplicável para documentos externos.'); |
730 | } | 715 | } |
731 | } | 716 | } |
@@ -752,19 +737,12 @@ class DocumentoPeticionamentoRN extends InfraRN { | @@ -752,19 +737,12 @@ class DocumentoPeticionamentoRN extends InfraRN { | ||
752 | } | 737 | } |
753 | 738 | ||
754 | private function tratarProtocoloRN1164(DocumentoDTO $objDocumentoDTO) { | 739 | private function tratarProtocoloRN1164(DocumentoDTO $objDocumentoDTO) { |
755 | - | ||
756 | - //print_r( $objDocumentoDTO ); die(); | ||
757 | - | 740 | + |
758 | try{ | 741 | try{ |
759 | 742 | ||
760 | - $idUnidadeResponsavel = $objDocumentoDTO->getNumIdUnidadeResponsavel(); | ||
761 | - | ||
762 | - //$objInfraException = new InfraException(); | ||
763 | - | ||
764 | - $objProtocoloDTO = $objDocumentoDTO->getObjProtocoloDTO(); | ||
765 | - | ||
766 | - $objProtocoloDTO->setStrProtocoloFormatado(null); | ||
767 | - | 743 | + $idUnidadeResponsavel = $objDocumentoDTO->getNumIdUnidadeResponsavel(); |
744 | + $objProtocoloDTO = $objDocumentoDTO->getObjProtocoloDTO(); | ||
745 | + $objProtocoloDTO->setStrProtocoloFormatado(null); | ||
768 | $objProtocoloDTO->setStrStaProtocolo($objDocumentoDTO->getStrStaProtocoloProtocolo()); | 746 | $objProtocoloDTO->setStrStaProtocolo($objDocumentoDTO->getStrStaProtocoloProtocolo()); |
769 | 747 | ||
770 | if (!$objProtocoloDTO->isSetNumIdUnidadeGeradora()){ | 748 | if (!$objProtocoloDTO->isSetNumIdUnidadeGeradora()){ |
sei/institucional/peticionamento/rn/EditorUsuarioExternoRN.php
@@ -550,8 +550,7 @@ class EditorUsuarioExternoRN extends InfraRN | @@ -550,8 +550,7 @@ class EditorUsuarioExternoRN extends InfraRN | ||
550 | 550 | ||
551 | $docDTO = $docRN->consultarRN0005( $docDTO ); | 551 | $docDTO = $docRN->consultarRN0005( $docDTO ); |
552 | $idUnidadeResponsavel = $docDTO->getNumIdUnidadeResponsavel(); | 552 | $idUnidadeResponsavel = $docDTO->getNumIdUnidadeResponsavel(); |
553 | - //print_r( $docDTO );die(); | ||
554 | - | 553 | + |
555 | $objParametrosEditorDTO = $this->obterParametros($parObjEditorDTO); | 554 | $objParametrosEditorDTO = $this->obterParametros($parObjEditorDTO); |
556 | 555 | ||
557 | $arrTags = $objParametrosEditorDTO->getArrTags(); | 556 | $arrTags = $objParametrosEditorDTO->getArrTags(); |
@@ -562,7 +561,6 @@ class EditorUsuarioExternoRN extends InfraRN | @@ -562,7 +561,6 @@ class EditorUsuarioExternoRN extends InfraRN | ||
562 | $objVersaoSecaoDocumentoRN = new VersaoSecaoDocumentoRN(); | 561 | $objVersaoSecaoDocumentoRN = new VersaoSecaoDocumentoRN(); |
563 | //$objRelSecaoModeloEstiloRN = new RelSecaoModeloEstiloRN(); | 562 | //$objRelSecaoModeloEstiloRN = new RelSecaoModeloEstiloRN(); |
564 | $objDocumentoRN = new DocumentoRN(); | 563 | $objDocumentoRN = new DocumentoRN(); |
565 | - //$objSerieRN = new SerieRN(); | ||
566 | $dthAtual = InfraData::getStrDataHoraAtual(); | 564 | $dthAtual = InfraData::getStrDataHoraAtual(); |
567 | 565 | ||
568 | $parObjEditorDTO->setNumIdConjuntoEstilos(null); | 566 | $parObjEditorDTO->setNumIdConjuntoEstilos(null); |
@@ -920,7 +918,6 @@ class EditorUsuarioExternoRN extends InfraRN | @@ -920,7 +918,6 @@ class EditorUsuarioExternoRN extends InfraRN | ||
920 | } | 918 | } |
921 | 919 | ||
922 | //cadastrar conjunto de estilos | 920 | //cadastrar conjunto de estilos |
923 | - //print_r($parObjEditorDTO); die; | ||
924 | $this->atualizarConteudo($parObjEditorDTO); | 921 | $this->atualizarConteudo($parObjEditorDTO); |
925 | 922 | ||
926 | } catch (Exception $e) { | 923 | } catch (Exception $e) { |
@@ -1361,9 +1358,7 @@ class EditorUsuarioExternoRN extends InfraRN | @@ -1361,9 +1358,7 @@ class EditorUsuarioExternoRN extends InfraRN | ||
1361 | public function converteTextoEstiloCss($arrEstilosCss, $strConteudo) | 1358 | public function converteTextoEstiloCss($arrEstilosCss, $strConteudo) |
1362 | { | 1359 | { |
1363 | 1360 | ||
1364 | - //print_r($strConteudo); | ||
1365 | $strConteudoNovo = ""; | 1361 | $strConteudoNovo = ""; |
1366 | -// $posAtual = 0; | ||
1367 | $posAnterior = 0; | 1362 | $posAnterior = 0; |
1368 | $cntNaoEncontrados = 0; | 1363 | $cntNaoEncontrados = 0; |
1369 | $cntEncontrados = 0; | 1364 | $cntEncontrados = 0; |
@@ -1382,7 +1377,6 @@ class EditorUsuarioExternoRN extends InfraRN | @@ -1382,7 +1377,6 @@ class EditorUsuarioExternoRN extends InfraRN | ||
1382 | $cntNaoEncontrados++; | 1377 | $cntNaoEncontrados++; |
1383 | $posAnterior = $posAtual + 1; | 1378 | $posAnterior = $posAtual + 1; |
1384 | $strConteudoNovo .= 's'; | 1379 | $strConteudoNovo .= 's'; |
1385 | - //InfraDebug::getInstance()->gravar("Nao encontrado estilo para: /".$strEstilo."/"); | ||
1386 | } else { | 1380 | } else { |
1387 | $posAnterior = $posFimEstilo + 1; | 1381 | $posAnterior = $posFimEstilo + 1; |
1388 | $cntEncontrados++; | 1382 | $cntEncontrados++; |
@@ -2271,9 +2265,7 @@ class EditorUsuarioExternoRN extends InfraRN | @@ -2271,9 +2265,7 @@ class EditorUsuarioExternoRN extends InfraRN | ||
2271 | } | 2265 | } |
2272 | } | 2266 | } |
2273 | } | 2267 | } |
2274 | - | ||
2275 | - //print_r($arrConteudoTags);die; | ||
2276 | - | 2268 | + |
2277 | $objParametrosEditorDTO->setArrTags($arrConteudoTags); | 2269 | $objParametrosEditorDTO->setArrTags($arrConteudoTags); |
2278 | 2270 | ||
2279 | return $objParametrosEditorDTO; | 2271 | return $objParametrosEditorDTO; |
sei/institucional/peticionamento/rn/IndisponibilidadePeticionamentoRN.php
@@ -357,9 +357,7 @@ class IndisponibilidadePeticionamentoRN extends InfraRN { | @@ -357,9 +357,7 @@ class IndisponibilidadePeticionamentoRN extends InfraRN { | ||
357 | $objIndisponibilidadeAnexoPeticionamentoDTO->retTodos(); | 357 | $objIndisponibilidadeAnexoPeticionamentoDTO->retTodos(); |
358 | $objIndisponibilidadeAnexoPeticionamentoDTO->setNumIdIndisponibilidade($arrIndisponibilidadePeticionamentoDTO[$i]->getNumIdIndisponibilidade(), InfraDTO::$OPER_IGUAL); | 358 | $objIndisponibilidadeAnexoPeticionamentoDTO->setNumIdIndisponibilidade($arrIndisponibilidadePeticionamentoDTO[$i]->getNumIdIndisponibilidade(), InfraDTO::$OPER_IGUAL); |
359 | $arrObjIndisponibilidadeAnexoPeticionamentoDTO = $objIndisponibilidadeAnexoPeticionamentoRN->listar($objIndisponibilidadeAnexoPeticionamentoDTO); | 359 | $arrObjIndisponibilidadeAnexoPeticionamentoDTO = $objIndisponibilidadeAnexoPeticionamentoRN->listar($objIndisponibilidadeAnexoPeticionamentoDTO); |
360 | - | ||
361 | - //print_r( $arrObjIndisponibilidadeAnexoPeticionamentoDTO ); die(); | ||
362 | - | 360 | + |
363 | $objIndisponibilidadeAnexoPeticionamentoRN->excluir($arrObjIndisponibilidadeAnexoPeticionamentoDTO); | 361 | $objIndisponibilidadeAnexoPeticionamentoRN->excluir($arrObjIndisponibilidadeAnexoPeticionamentoDTO); |
364 | 362 | ||
365 | //Excluindo Indisponibilidade | 363 | //Excluindo Indisponibilidade |
sei/institucional/peticionamento/rn/ProcedimentoPeticionamentoRN.php
1 | <?php | 1 | <?php |
2 | - | 2 | +/** |
3 | + * ANATEL | ||
4 | + * | ||
5 | + * 21/07/2016 - criado por marcelo.bezerra - CAST | ||
6 | + * | ||
7 | + */ | ||
3 | require_once dirname(__FILE__).'/../../../SEI.php'; | 8 | require_once dirname(__FILE__).'/../../../SEI.php'; |
4 | 9 | ||
5 | class ProcedimentoPeticionamentoRN extends ProcedimentoRN { | 10 | class ProcedimentoPeticionamentoRN extends ProcedimentoRN { |
@@ -57,15 +62,11 @@ class ProcedimentoPeticionamentoRN extends ProcedimentoRN { | @@ -57,15 +62,11 @@ class ProcedimentoPeticionamentoRN extends ProcedimentoRN { | ||
57 | } | 62 | } |
58 | 63 | ||
59 | $objProtocoloDTO->setStrStaProtocolo(ProtocoloRN::$TP_PROCEDIMENTO); | 64 | $objProtocoloDTO->setStrStaProtocolo(ProtocoloRN::$TP_PROCEDIMENTO); |
60 | - //(TESTE COMENTADO) | ||
61 | - //$objProtocoloDTO->setNumIdUnidadeGeradora(SessaoSEI::getInstance()->getNumIdUnidadeAtual()); | ||
62 | - //$objProtocoloDTO->setNumIdUsuarioGerador(SessaoSEI::getInstance()->getNumIdUsuario()); | ||
63 | - | 65 | + |
64 | if (!$objProtocoloDTO->isSetDtaGeracao() || InfraString::isBolVazia($objProtocoloDTO->getDtaGeracao())) | 66 | if (!$objProtocoloDTO->isSetDtaGeracao() || InfraString::isBolVazia($objProtocoloDTO->getDtaGeracao())) |
65 | $objProtocoloDTO->setDtaGeracao(InfraData::getStrDataAtual()); | 67 | $objProtocoloDTO->setDtaGeracao(InfraData::getStrDataAtual()); |
66 | 68 | ||
67 | $objProcedimentoDTO->setObjProtocoloDTO($objProtocoloDTO); | 69 | $objProcedimentoDTO->setObjProtocoloDTO($objProtocoloDTO); |
68 | - //print_r( $objProcedimentoDTO->getObjProtocoloDTO() ); die(); | ||
69 | 70 | ||
70 | $objProtocoloDTOGerado = $objProtocoloRN->gerarRN0154($objProcedimentoDTO->getObjProtocoloDTO()); | 71 | $objProtocoloDTOGerado = $objProtocoloRN->gerarRN0154($objProcedimentoDTO->getObjProtocoloDTO()); |
71 | 72 |
sei/institucional/peticionamento/rn/ProcessoPeticionamentoRN.php
@@ -126,7 +126,6 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -126,7 +126,6 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
126 | $idsContatos = array(); | 126 | $idsContatos = array(); |
127 | $idsContatos[] = $arrParametros['hdnListaInteressados']; | 127 | $idsContatos[] = $arrParametros['hdnListaInteressados']; |
128 | $arrParticipantesParametro = $this->atribuirParticipantes($objProtocoloDTO, $this->montarArrContatosInteressados( $idsContatos ) ); | 128 | $arrParticipantesParametro = $this->atribuirParticipantes($objProtocoloDTO, $this->montarArrContatosInteressados( $idsContatos ) ); |
129 | - //$arrParametros['hdnListaInteressados'] = SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno(); | ||
130 | } | 129 | } |
131 | 130 | ||
132 | //verificar se esta vindo o array de participantes | 131 | //verificar se esta vindo o array de participantes |
@@ -159,7 +158,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -159,7 +158,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
159 | $objProcedimentoDTO->setDtaGeracaoProtocolo( InfraData::getStrDataAtual() ); | 158 | $objProcedimentoDTO->setDtaGeracaoProtocolo( InfraData::getStrDataAtual() ); |
160 | $objProcedimentoDTO->setStrProtocoloProcedimentoFormatado( $numeracaoProcesso ); | 159 | $objProcedimentoDTO->setStrProtocoloProcedimentoFormatado( $numeracaoProcesso ); |
161 | $objProcedimentoDTO->setStrSinGerarPendencia('S'); | 160 | $objProcedimentoDTO->setStrSinGerarPendencia('S'); |
162 | - $objProcedimentoDTO->setNumVersaoLock(0); //TODO: Avaliar o comportamento desse campo no cadastro do processo | 161 | + $objProcedimentoDTO->setNumVersaoLock(0); |
163 | $objProcedimentoDTO->setArrObjDocumentoDTO(array()); | 162 | $objProcedimentoDTO->setArrObjDocumentoDTO(array()); |
164 | 163 | ||
165 | //Identificar o tipo de procedimento correto para atribuição ao novo processo | 164 | //Identificar o tipo de procedimento correto para atribuição ao novo processo |
@@ -188,15 +187,11 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -188,15 +187,11 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
188 | $arrParams[2] = $objProcedimentoDTO; | 187 | $arrParams[2] = $objProcedimentoDTO; |
189 | $arrParams[3] = $arrParticipantesParametro; | 188 | $arrParams[3] = $arrParticipantesParametro; |
190 | $arrParams[4] = $reciboDTOBasico; | 189 | $arrParams[4] = $reciboDTOBasico; |
191 | - //$arrDocsPrincipais = $arrParams[4]; //array de DocumentoDTO (docs principais) | ||
192 | - //$arrDocsEssenciais = $arrParams[5]; //array de DocumentoDTO (docs essenciais) | ||
193 | - //$arrDocsComplementares = $arrParams[6]; //array de DocumentoDTO (docs complementares) | ||
194 | 190 | ||
195 | $reciboPeticionamentoRN->montarRecibo( $arrParams ); | 191 | $reciboPeticionamentoRN->montarRecibo( $arrParams ); |
196 | 192 | ||
197 | $arrProcessoReciboRetorno = array(); | 193 | $arrProcessoReciboRetorno = array(); |
198 | $arrProcessoReciboRetorno[0] = $reciboDTOBasico; | 194 | $arrProcessoReciboRetorno[0] = $reciboDTOBasico; |
199 | - //$arrProcessoReciboRetorno[0] = $retornoRecibo; | ||
200 | $arrProcessoReciboRetorno[1] = $objProcedimentoDTO; | 195 | $arrProcessoReciboRetorno[1] = $objProcedimentoDTO; |
201 | 196 | ||
202 | //enviando email de sistema EU 5155 / 5156 - try catch por causa que em localhost o envio de email gera erro | 197 | //enviando email de sistema EU 5155 / 5156 - try catch por causa que em localhost o envio de email gera erro |
@@ -221,7 +216,6 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -221,7 +216,6 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
221 | $objAtividadeDTOLiberacao = new AtividadeDTO(); | 216 | $objAtividadeDTOLiberacao = new AtividadeDTO(); |
222 | $objAtividadeDTOLiberacao->retTodos(); | 217 | $objAtividadeDTOLiberacao->retTodos(); |
223 | $objAtividadeDTOLiberacao->setDblIdProtocolo( $objProcedimentoDTO->getDblIdProcedimento() ); | 218 | $objAtividadeDTOLiberacao->setDblIdProtocolo( $objProcedimentoDTO->getDblIdProcedimento() ); |
224 | - //$objAtividadeDTOLiberacao->setNumIdUnidade( $idUnidade ); | ||
225 | $objAtividadeDTOLiberacao->setNumIdTarefa(TarefaRN::$TI_ACESSO_EXTERNO_SISTEMA); | 219 | $objAtividadeDTOLiberacao->setNumIdTarefa(TarefaRN::$TI_ACESSO_EXTERNO_SISTEMA); |
226 | 220 | ||
227 | $arrDTOAtividades = $atividadeRN->listarRN0036( $objAtividadeDTOLiberacao ); | 221 | $arrDTOAtividades = $atividadeRN->listarRN0036( $objAtividadeDTOLiberacao ); |
@@ -272,7 +266,6 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -272,7 +266,6 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
272 | $objTipoProcDTO = $objTipoProcRN->consultar( $objTipoProcDTO ); | 266 | $objTipoProcDTO = $objTipoProcRN->consultar( $objTipoProcDTO ); |
273 | 267 | ||
274 | $protocoloRN = new ProtocoloPeticionamentoRN(); | 268 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
275 | - //$numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); | ||
276 | 269 | ||
277 | //==================================== | 270 | //==================================== |
278 | //gera no sistema as informações referentes ao documento principal | 271 | //gera no sistema as informações referentes ao documento principal |
@@ -477,9 +470,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -477,9 +470,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
477 | //============================= | 470 | //============================= |
478 | $strTamanho = str_replace("","Kb", $itemAnexo->getNumTamanho() ); | 471 | $strTamanho = str_replace("","Kb", $itemAnexo->getNumTamanho() ); |
479 | $strTamanho = str_replace("","Mb", $strTamanho ); | 472 | $strTamanho = str_replace("","Mb", $strTamanho ); |
480 | - | ||
481 | - //TODO aplicar regra para validar tamanho do anexo enviado | ||
482 | - | 473 | + |
483 | $itemAnexo->setDblIdProtocolo( $objDocumentoDTO->getDblIdDocumento() ); | 474 | $itemAnexo->setDblIdProtocolo( $objDocumentoDTO->getDblIdDocumento() ); |
484 | $itemAnexo->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); | 475 | $itemAnexo->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); |
485 | $itemAnexo->setNumTamanho( (int)$strTamanho ); | 476 | $itemAnexo->setNumTamanho( (int)$strTamanho ); |
@@ -855,7 +846,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -855,7 +846,7 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
855 | $arrParametros ){ | 846 | $arrParametros ){ |
856 | 847 | ||
857 | $protocoloRN = new ProtocoloPeticionamentoRN(); | 848 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
858 | - $numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); | 849 | + //$numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); |
859 | 850 | ||
860 | $nivelAcessoDocPrincipal = $arrParametros['nivelAcessoDocPrincipal']; | 851 | $nivelAcessoDocPrincipal = $arrParametros['nivelAcessoDocPrincipal']; |
861 | $grauSigiloDocPrincipal = $arrParametros['grauSigiloDocPrincipal']; | 852 | $grauSigiloDocPrincipal = $arrParametros['grauSigiloDocPrincipal']; |
@@ -870,8 +861,8 @@ class ProcessoPeticionamentoRN extends InfraRN { | @@ -870,8 +861,8 @@ class ProcessoPeticionamentoRN extends InfraRN { | ||
870 | $protocoloPrincipalDocumentoDTO->setDblIdProtocolo(null); | 861 | $protocoloPrincipalDocumentoDTO->setDblIdProtocolo(null); |
871 | $protocoloPrincipalDocumentoDTO->setStrDescricao( null ); | 862 | $protocoloPrincipalDocumentoDTO->setStrDescricao( null ); |
872 | $protocoloPrincipalDocumentoDTO->setStrStaNivelAcessoLocal( ProtocoloRN::$NA_PUBLICO ); | 863 | $protocoloPrincipalDocumentoDTO->setStrStaNivelAcessoLocal( ProtocoloRN::$NA_PUBLICO ); |
873 | - $protocoloPrincipalDocumentoDTO->setStrProtocoloFormatado( $numeroDocumento ); | ||
874 | - $protocoloPrincipalDocumentoDTO->setStrProtocoloFormatadoPesquisa( $numeroDocumento ); | 864 | + //$protocoloPrincipalDocumentoDTO->setStrProtocoloFormatado( $numeroDocumento ); |
865 | + //$protocoloPrincipalDocumentoDTO->setStrProtocoloFormatadoPesquisa( $numeroDocumento ); | ||
875 | $protocoloPrincipalDocumentoDTO->setNumIdUnidadeGeradora( $objUnidadeDTO->getNumIdUnidade() ); | 866 | $protocoloPrincipalDocumentoDTO->setNumIdUnidadeGeradora( $objUnidadeDTO->getNumIdUnidade() ); |
876 | $protocoloPrincipalDocumentoDTO->setNumIdUsuarioGerador( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); | 867 | $protocoloPrincipalDocumentoDTO->setNumIdUsuarioGerador( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); |
877 | $protocoloPrincipalDocumentoDTO->setStrStaProtocolo( ProtocoloRN::$TP_DOCUMENTO_GERADO ); | 868 | $protocoloPrincipalDocumentoDTO->setStrStaProtocolo( ProtocoloRN::$TP_DOCUMENTO_GERADO ); |
sei/institucional/peticionamento/rn/ProtocoloPeticionamentoRN.php
@@ -4,7 +4,7 @@ require_once dirname(__FILE__).'/../../../SEI.php'; | @@ -4,7 +4,7 @@ require_once dirname(__FILE__).'/../../../SEI.php'; | ||
4 | 4 | ||
5 | class ProtocoloPeticionamentoRN extends ProtocoloRN { | 5 | class ProtocoloPeticionamentoRN extends ProtocoloRN { |
6 | 6 | ||
7 | - //METODO PRECISOU SER SOBRESCRITO DA RN ORIGINAO POR CONTA DE USUARIO EXTERNO | 7 | + //METODO PRECISOU SER SOBRESCRITO DA RN ORIGINAL POR CONTA DE USUARIO EXTERNO |
8 | private function validarNumIdUnidadeGeradoraRN0213(ProtocoloDTO $objProtocoloDTO, InfraException $objInfraException){ | 8 | private function validarNumIdUnidadeGeradoraRN0213(ProtocoloDTO $objProtocoloDTO, InfraException $objInfraException){ |
9 | 9 | ||
10 | if (InfraString::isBolVazia($objProtocoloDTO->getNumIdUnidadeGeradora())){ | 10 | if (InfraString::isBolVazia($objProtocoloDTO->getNumIdUnidadeGeradora())){ |
sei/institucional/peticionamento/rn/ReciboPeticionamentoRN.php
@@ -184,8 +184,6 @@ class ReciboPeticionamentoRN extends InfraRN { | @@ -184,8 +184,6 @@ class ReciboPeticionamentoRN extends InfraRN { | ||
184 | $grauSigiloDocPrincipal = $arrParametros['grauSigiloDocPrincipal']; | 184 | $grauSigiloDocPrincipal = $arrParametros['grauSigiloDocPrincipal']; |
185 | $hipoteseLegalDocPrincipal = $arrParametros['hipoteseLegalDocPrincipal']; | 185 | $hipoteseLegalDocPrincipal = $arrParametros['hipoteseLegalDocPrincipal']; |
186 | 186 | ||
187 | - //TODO montar corretamente conteudo HTML final do recibo | ||
188 | - //$htmlRecibo = "teste"; | ||
189 | $htmlRecibo = $this->gerarHTMLConteudoDocRecibo( $arrParams ); | 187 | $htmlRecibo = $this->gerarHTMLConteudoDocRecibo( $arrParams ); |
190 | 188 | ||
191 | $protocoloRN = new ProtocoloPeticionamentoRN(); | 189 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
@@ -259,7 +257,6 @@ class ReciboPeticionamentoRN extends InfraRN { | @@ -259,7 +257,6 @@ class ReciboPeticionamentoRN extends InfraRN { | ||
259 | 257 | ||
260 | $documentoReciboDTO->setNumIdConjuntoEstilos(null); | 258 | $documentoReciboDTO->setNumIdConjuntoEstilos(null); |
261 | 259 | ||
262 | - //TODO de onde pega o tipo conferencia? | ||
263 | $documentoReciboDTO->setNumIdTipoConferencia( null ); | 260 | $documentoReciboDTO->setNumIdTipoConferencia( null ); |
264 | $documentoReciboDTO->setStrNumero(''); //sistema atribui numeracao sequencial automatica | 261 | $documentoReciboDTO->setStrNumero(''); //sistema atribui numeracao sequencial automatica |
265 | $documentoReciboDTO->setStrConteudo( $htmlRecibo ); | 262 | $documentoReciboDTO->setStrConteudo( $htmlRecibo ); |
sei/institucional/peticionamento/serie_peticionamento_lista.php
@@ -119,51 +119,26 @@ try { | @@ -119,51 +119,26 @@ try { | ||
119 | if ($_GET['acao'] == 'serie_peticionamento_selecionar'){ | 119 | if ($_GET['acao'] == 'serie_peticionamento_selecionar'){ |
120 | $arrComandos[] = '<button type="button" accesskey="T" id="btnTransportarSelecao" value="Transportar" onclick="infraTransportarSelecao();" class="infraButton"><span class="infraTeclaAtalho">T</span>ransportar</button>'; | 120 | $arrComandos[] = '<button type="button" accesskey="T" id="btnTransportarSelecao" value="Transportar" onclick="infraTransportarSelecao();" class="infraButton"><span class="infraTeclaAtalho">T</span>ransportar</button>'; |
121 | } | 121 | } |
122 | - | ||
123 | - /* REMOVIDO APOS SOLICITACAO E ALINHAMENTO DA JAQUELINE E MIRLENE | ||
124 | - if ($_GET['acao'] == 'serie_peticionamento_listar' || $_GET['acao'] == 'serie_peticionamento_selecionar'){ | ||
125 | - $bolAcaoCadastrar = SessaoSEI::getInstance()->verificarPermissao('serie_cadastrar'); | ||
126 | - if ($bolAcaoCadastrar){ | ||
127 | - $arrComandos[] = '<button type="button" accesskey="N" id="btnNova" value="Nova" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao=serie_cadastrar&acao_origem='.$_GET['acao'].'&acao_retorno='.$_GET['acao'])).'\'" class="infraButton"><span class="infraTeclaAtalho">N</span>ovo Tipo de Documento</button>'; | ||
128 | - } | ||
129 | - | ||
130 | - $bolAcaoCadastrarGrupoSerie = SessaoSEI::getInstance()->verificarPermissao('grupo_serie_cadastrar'); | ||
131 | - if ($bolAcaoCadastrarGrupoSerie){ | ||
132 | - $arrComandos[] = '<button type="button" accesskey="N" id="btnNovo" value="Novo" onclick="location.href=\''.PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao=grupo_serie_cadastrar&acao_origem='.$_GET['acao'].'&acao_retorno='.$_GET['acao'])).'\'" class="infraButton">Novo <span class="infraTeclaAtalho">G</span>rupo</button>'; | ||
133 | - } | ||
134 | - | ||
135 | - } */ | ||
136 | - | ||
137 | - //print_r( $_REQUEST); die(); | ||
138 | 122 | ||
139 | $objSerieRN = new SerieRN(); | 123 | $objSerieRN = new SerieRN(); |
140 | $objSerieDTO = new SerieDTO(true); | 124 | $objSerieDTO = new SerieDTO(true); |
141 | $objSerieDTO->retTodos(); | 125 | $objSerieDTO->retTodos(); |
142 | $objSerieDTO->retStrNome(); | 126 | $objSerieDTO->retStrNome(); |
143 | - //$objSerieDTO->retStrDescricao(); | ||
144 | $objSerieDTO->retStrNomeGrupoSerie(); | 127 | $objSerieDTO->retStrNomeGrupoSerie(); |
145 | - //$objSerieDTO->retStrDescricaoModeloEdoc(); | ||
146 | 128 | ||
147 | $filtro = $_GET['filtro']; | 129 | $filtro = $_GET['filtro']; |
148 | - //echo "Filtro: " . $filtro; die(); | 130 | + |
149 | if($filtro == '1'){ | 131 | if($filtro == '1'){ |
150 | $tipoDoc = $_GET['tipoDoc']; | 132 | $tipoDoc = $_GET['tipoDoc']; |
151 | 133 | ||
152 | //Todos DOCS | 134 | //Todos DOCS |
153 | $aplicalidade = $tipoDoc == TipoProcessoPeticionamentoRN::$DOC_GERADO ? SerieRN::$TA_INTERNO : SerieRN::$TA_EXTERNO; | 135 | $aplicalidade = $tipoDoc == TipoProcessoPeticionamentoRN::$DOC_GERADO ? SerieRN::$TA_INTERNO : SerieRN::$TA_EXTERNO; |
154 | - //echo " Aplicalidade: " . $aplicalidade; die(); | ||
155 | - | 136 | + |
156 | //ignorar o chkboxes "SinInterno", considerar apenas o campo Aplicabilidade em si | 137 | //ignorar o chkboxes "SinInterno", considerar apenas o campo Aplicabilidade em si |
157 | $objSerieDTO->adicionarCriterio(array('StaAplicabilidade'), | 138 | $objSerieDTO->adicionarCriterio(array('StaAplicabilidade'), |
158 | array(InfraDTO::$OPER_IN), | 139 | array(InfraDTO::$OPER_IN), |
159 | - array(array(SerieRN::$TA_TODOS, $aplicalidade))); | 140 | + array(array(SerieRN::$TA_TODOS, $aplicalidade))); |
160 | 141 | ||
161 | - /* | ||
162 | - * $objSerieDTO->adicionarCriterio(array('StaAplicabilidade', 'SinInterno'), | ||
163 | - array(InfraDTO::$OPER_IN, InfraDTO::$OPER_IGUAL), | ||
164 | - array(array(SerieRN::$TA_TODOS, $aplicalidade),'S'), | ||
165 | - InfraDTO::$OPER_LOGICO_OR); | ||
166 | - * */ | ||
167 | } | 142 | } |
168 | 143 | ||
169 | $numIdGrupoSerie = PaginaSEI::getInstance()->recuperarCampo('selGrupoSerie'); | 144 | $numIdGrupoSerie = PaginaSEI::getInstance()->recuperarCampo('selGrupoSerie'); |
@@ -195,7 +170,6 @@ try { | @@ -195,7 +170,6 @@ try { | ||
195 | PaginaSEI::getInstance()->prepararOrdenacao($objSerieDTO, 'Nome', InfraDTO::$TIPO_ORDENACAO_ASC); | 170 | PaginaSEI::getInstance()->prepararOrdenacao($objSerieDTO, 'Nome', InfraDTO::$TIPO_ORDENACAO_ASC); |
196 | PaginaSEI::getInstance()->prepararPaginacao($objSerieDTO); | 171 | PaginaSEI::getInstance()->prepararPaginacao($objSerieDTO); |
197 | 172 | ||
198 | - //print_r( $objSerieDTO ); die(); | ||
199 | $arrObjSerieDTO = $objSerieRN->listarRN0646($objSerieDTO); | 173 | $arrObjSerieDTO = $objSerieRN->listarRN0646($objSerieDTO); |
200 | 174 | ||
201 | PaginaSEI::getInstance()->processarPaginacao($objSerieDTO); | 175 | PaginaSEI::getInstance()->processarPaginacao($objSerieDTO); |
sei/institucional/peticionamento/tipo_processo_peticionamento_cadastro.php
@@ -290,7 +290,6 @@ try { | @@ -290,7 +290,6 @@ try { | ||
290 | $arrIdTipoDocumentoEssencial = PaginaSEI::getInstance()->getArrValuesSelect($_POST['hdnSerieEssencial']); | 290 | $arrIdTipoDocumentoEssencial = PaginaSEI::getInstance()->getArrValuesSelect($_POST['hdnSerieEssencial']); |
291 | $arrIdUnidadesSelecionadas = $_POST['hdnUnidadesSelecionadas'] != '' ? json_decode($_POST['hdnUnidadesSelecionadas']) : array(); | 291 | $arrIdUnidadesSelecionadas = $_POST['hdnUnidadesSelecionadas'] != '' ? json_decode($_POST['hdnUnidadesSelecionadas']) : array(); |
292 | //para nao limpar os campos em caso de erro de duplicidade | 292 | //para nao limpar os campos em caso de erro de duplicidade |
293 | - //print_r( $_POST ); die(); | ||
294 | $tipoUnidade = is_array($_POST['rdUnidade']) ? current($_POST['rdUnidade']) : array(); | 293 | $tipoUnidade = is_array($_POST['rdUnidade']) ? current($_POST['rdUnidade']) : array(); |
295 | $nomeTipoProcesso = $_POST['txtTipoProcesso']; | 294 | $nomeTipoProcesso = $_POST['txtTipoProcesso']; |
296 | $idTipoProcesso = $objTipoProcessoPeticionamentoDTO->getNumIdProcedimento(); | 295 | $idTipoProcesso = $objTipoProcessoPeticionamentoDTO->getNumIdProcedimento(); |
@@ -306,7 +305,6 @@ try { | @@ -306,7 +305,6 @@ try { | ||
306 | $gerado = $objTipoProcessoPeticionamentoDTO->getStrSinDocGerado() == 'S' ? 'checked = checked' : ''; | 305 | $gerado = $objTipoProcessoPeticionamentoDTO->getStrSinDocGerado() == 'S' ? 'checked = checked' : ''; |
307 | $externo = $objTipoProcessoPeticionamentoDTO->getStrSinDocExterno() == 'S' ? 'checked = checked' : ''; | 306 | $externo = $objTipoProcessoPeticionamentoDTO->getStrSinDocExterno() == 'S' ? 'checked = checked' : ''; |
308 | $nomeSerie = $_POST['txtTipoDocPrinc']; | 307 | $nomeSerie = $_POST['txtTipoDocPrinc']; |
309 | - //$nomeSerie = $objTipoProcessoPeticionamentoDTO->getStrNomeSerie(); | ||
310 | $idSerie = $objTipoProcessoPeticionamentoDTO->getNumIdSerie(); | 308 | $idSerie = $objTipoProcessoPeticionamentoDTO->getNumIdSerie(); |
311 | $multipla = $tipoUnidade == 'M' ? true : false; | 309 | $multipla = $tipoUnidade == 'M' ? true : false; |
312 | $unica = $tipoUnidade == 'U' ? true : false; | 310 | $unica = $tipoUnidade == 'U' ? true : false; |
sei/institucional/peticionamento/tipo_processo_peticionamento_lista.php
@@ -63,9 +63,7 @@ try { | @@ -63,9 +63,7 @@ try { | ||
63 | die; | 63 | die; |
64 | 64 | ||
65 | case 'tipo_processo_peticionamento_reativar': | 65 | case 'tipo_processo_peticionamento_reativar': |
66 | - | ||
67 | - //print_r($_GET); die(); | ||
68 | - | 66 | + |
69 | $strTitulo = 'Reativar Tipo de Processo'; | 67 | $strTitulo = 'Reativar Tipo de Processo'; |
70 | 68 | ||
71 | if ($_GET['acao_confirmada']=='sim'){ | 69 | if ($_GET['acao_confirmada']=='sim'){ |
@@ -118,20 +116,15 @@ try { | @@ -118,20 +116,15 @@ try { | ||
118 | throw new InfraException("Ação '".$_GET['acao']."' não reconhecida."); | 116 | throw new InfraException("Ação '".$_GET['acao']."' não reconhecida."); |
119 | } | 117 | } |
120 | 118 | ||
121 | - //TODO: Marcelo, qual é a utilidade dessa funcionalidade de Transportar seleção neste tela? | ||
122 | $arrComandos = array(); | 119 | $arrComandos = array(); |
123 | if ($_GET['acao'] == 'tipo_processo_peticionamento_selecionar'){ | 120 | if ($_GET['acao'] == 'tipo_processo_peticionamento_selecionar'){ |
124 | $arrComandos[] = '<button type="button" accesskey="t" id="btnTransportarSelecao" value="Transportar" onclick="infraTransportarSelecao();" class="infraButton"><span class="infraTeclaAtalho">T</span>ransportar</button>'; | 121 | $arrComandos[] = '<button type="button" accesskey="t" id="btnTransportarSelecao" value="Transportar" onclick="infraTransportarSelecao();" class="infraButton"><span class="infraTeclaAtalho">T</span>ransportar</button>'; |
125 | } | 122 | } |
126 | - | ||
127 | 123 | ||
128 | $objTipoProcessoPeticionamentoDTO = new TipoProcessoPeticionamentoDTO(); | 124 | $objTipoProcessoPeticionamentoDTO = new TipoProcessoPeticionamentoDTO(); |
129 | $objTipoProcessoPeticionamentoDTO->retTodos(); | 125 | $objTipoProcessoPeticionamentoDTO->retTodos(); |
130 | $objTipoProcessoPeticionamentoDTO->retStrNomeProcesso(); | 126 | $objTipoProcessoPeticionamentoDTO->retStrNomeProcesso(); |
131 | - | ||
132 | - //#6155 - removido. Agora serão n Unidades | ||
133 | - //$objTipoProcessoPeticionamentoDTO->retStrSiglaUnidade(); | ||
134 | - | 127 | + |
135 | //NomeProcesso | 128 | //NomeProcesso |
136 | if(!(InfraString::isBolVazia($_POST['txtTipoProcesso']))){ | 129 | if(!(InfraString::isBolVazia($_POST['txtTipoProcesso']))){ |
137 | $objTipoProcessoPeticionamentoDTO->setStrNomeProcesso('%'.$_POST ['txtTipoProcesso'] . '%',InfraDTO::$OPER_LIKE); | 130 | $objTipoProcessoPeticionamentoDTO->setStrNomeProcesso('%'.$_POST ['txtTipoProcesso'] . '%',InfraDTO::$OPER_LIKE); |
@@ -208,8 +201,7 @@ try { | @@ -208,8 +201,7 @@ try { | ||
208 | $bolAcaoDesativar = SessaoSEI::getInstance()->verificarPermissao('tipo_processo_peticionamento_desativar'); | 201 | $bolAcaoDesativar = SessaoSEI::getInstance()->verificarPermissao('tipo_processo_peticionamento_desativar'); |
209 | } | 202 | } |
210 | 203 | ||
211 | - //TODO: Marcelo, melhor desativar também o botão de Desativação em lote, para padronizar as telas de listagem de registros. | ||
212 | - if ($bolAcaoDesativar){ | 204 | + if ($bolAcaoDesativar){ |
213 | $bolCheck = true; | 205 | $bolCheck = true; |
214 | //$arrComandos[] = '<button type="button" accesskey="t" id="btnDesativar" value="Desativar" onclick="acaoDesativacaoMultipla();" class="infraButton">Desa<span class="infraTeclaAtalho">t</span>ivar</button>'; | 206 | //$arrComandos[] = '<button type="button" accesskey="t" id="btnDesativar" value="Desativar" onclick="acaoDesativacaoMultipla();" class="infraButton">Desa<span class="infraTeclaAtalho">t</span>ivar</button>'; |
215 | $strLinkDesativar = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_processo_peticionamento_desativar&acao_origem='.$_GET['acao']); | 207 | $strLinkDesativar = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_processo_peticionamento_desativar&acao_origem='.$_GET['acao']); |
@@ -217,8 +209,7 @@ try { | @@ -217,8 +209,7 @@ try { | ||
217 | 209 | ||
218 | $strLinkReativar = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_processo_peticionamento_reativar&acao_origem='.$_GET['acao'].'&acao_confirmada=sim'); | 210 | $strLinkReativar = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_processo_peticionamento_reativar&acao_origem='.$_GET['acao'].'&acao_confirmada=sim'); |
219 | 211 | ||
220 | - //TODO: Marcelo, se não vai ter o botão de Excluir em lote, melhor retirar todo este bloco de código. | ||
221 | - if ($bolAcaoExcluir){ | 212 | + if ($bolAcaoExcluir){ |
222 | $bolCheck = true; | 213 | $bolCheck = true; |
223 | //$arrComandos[] = '<button type="button" accesskey="E" id="btnExcluir" value="Excluir" onclick="acaoExclusaoMultipla();" class="infraButton"><span class="infraTeclaAtalho">E</span>xcluir</button>'; | 214 | //$arrComandos[] = '<button type="button" accesskey="E" id="btnExcluir" value="Excluir" onclick="acaoExclusaoMultipla();" class="infraButton"><span class="infraTeclaAtalho">E</span>xcluir</button>'; |
224 | $strLinkExcluir = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_processo_peticionamento_excluir&acao_origem='.$_GET['acao']); | 215 | $strLinkExcluir = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_processo_peticionamento_excluir&acao_origem='.$_GET['acao']); |
@@ -466,7 +457,6 @@ PaginaSEI::getInstance()->fecharJavaScript(); | @@ -466,7 +457,6 @@ PaginaSEI::getInstance()->fecharJavaScript(); | ||
466 | <?php | 457 | <?php |
467 | PaginaSEI::getInstance()->fecharHead(); | 458 | PaginaSEI::getInstance()->fecharHead(); |
468 | PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | 459 | PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
469 | -//print_r( $_GET ); die(); | ||
470 | ?> | 460 | ?> |
471 | <form id="frmTipoProcessoPeticionamentoLista" method="post" action="<?=PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> | 461 | <form id="frmTipoProcessoPeticionamentoLista" method="post" action="<?=PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> |
472 | 462 |