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 | 64 | - "Contextos/Contatos / Tipos de Contexto / Reativar" (recurso "tipo_contexto_contato_reativar") |
| 65 | 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 | 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 | 73 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/controlador_ajax_externo.php
| ... | ... | @@ -28,12 +28,13 @@ try{ |
| 28 | 28 | $objContextoContatoDTO->retStrNome(); |
| 29 | 29 | |
| 30 | 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 | 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 | 40 | $objContextoContatoDTO->setOrdStrNome(InfraDTO::$TIPO_ORDENACAO_ASC); | ... | ... |
sei/institucional/peticionamento/editor_peticionamento_processar.php
| ... | ... | @@ -64,7 +64,6 @@ |
| 64 | 64 | $conjuntoEstilosDTO->setStrSinUltimo('S'); |
| 65 | 65 | $conjuntoEstilosDTO->retTodos(); |
| 66 | 66 | $conjuntoEstilosDTO = $conjuntoEstilosRN->consultar( $conjuntoEstilosDTO ); |
| 67 | - //print_r( $conjuntoEstilosDTO ); die(); | |
| 68 | 67 | |
| 69 | 68 | //recupera estilos padrão das seções do modelo |
| 70 | 69 | $objRelSecaoModCjEstilosItemDTO = new RelSecaoModCjEstilosItemDTO(); | ... | ... |
sei/institucional/peticionamento/gerir_tipo_contexto_peticionamento_cadastro.php
| ... | ... | @@ -36,9 +36,7 @@ try { |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | $objInfraException->lancarValidacoes(); |
| 39 | - | |
| 40 | - //print_r( $arrPrincipal ); die(); | |
| 41 | - | |
| 39 | + | |
| 42 | 40 | foreach($arrPrincipal as $numPrincipal){ |
| 43 | 41 | $objDTO = new RelTipoContextoPeticionamentoDTO(); |
| 44 | 42 | $objDTO->setNumIdTipoContextoContato($numPrincipal); |
| ... | ... | @@ -67,9 +65,7 @@ try { |
| 67 | 65 | } |
| 68 | 66 | |
| 69 | 67 | $objInfraException->lancarValidacoes(); |
| 70 | - | |
| 71 | - //print_r( $arrPrincipal ); die(); | |
| 72 | - | |
| 68 | + | |
| 73 | 69 | foreach($arrPrincipal2 as $numPrincipal){ |
| 74 | 70 | $objDTO2 = new RelTipoContextoPeticionamentoDTO(); |
| 75 | 71 | $objDTO2->setNumIdTipoContextoContato($numPrincipal); |
| ... | ... | @@ -96,9 +92,6 @@ $arrItens2 = $objRN->listar($objDTO2); |
| 96 | 92 | $numero2 = count( $arrItens2 ); |
| 97 | 93 | $strSelPrin2 = ""; |
| 98 | 94 | |
| 99 | -//print_r($arrItens);die(); | |
| 100 | -//print_r($arrItens2);die(); | |
| 101 | - | |
| 102 | 95 | if( $numero > 0){ |
| 103 | 96 | |
| 104 | 97 | $tipoContextoRN = new TipoContextoContatoRN(); | ... | ... |
sei/institucional/peticionamento/indisponibilidade_peticionamento_lista.php
sei/institucional/peticionamento/int/IndisponibilidadeAnexoPeticionamentoINT.php
| ... | ... | @@ -13,7 +13,6 @@ class IndisponibilidadeAnexoPeticionamentoINT extends InfraINT { |
| 13 | 13 | public static function processarAnexo($strAnexos){ |
| 14 | 14 | |
| 15 | 15 | $arrAnexos = PaginaSEI::getInstance()->getArrItensTabelaDinamica($strAnexos); |
| 16 | - //print_r( $arrAnexos ); die; | |
| 17 | 16 | $arrObjAnexoDTO = array(); |
| 18 | 17 | |
| 19 | 18 | foreach($arrAnexos as $anexo){ | ... | ... |
sei/institucional/peticionamento/int/TipoProcessoPeticionamentoINT.php
| ... | ... | @@ -92,6 +92,7 @@ class TipoProcessoPeticionamentoINT extends InfraINT { |
| 92 | 92 | |
| 93 | 93 | $objNivelAcessoDTO = new NivelAcessoPermitidoDTO(); |
| 94 | 94 | $objNivelAcessoDTO->retTodos(); |
| 95 | + $objNivelAcessoDTO->setOrd('StaNivelAcesso', InfraDTO::$TIPO_ORDENACAO_ASC); | |
| 95 | 96 | |
| 96 | 97 | if(!(is_null($idTipoProcedimento))){ |
| 97 | 98 | $objNivelAcessoDTO->setNumIdTipoProcedimento($idTipoProcedimento); |
| ... | ... | @@ -105,7 +106,7 @@ class TipoProcessoPeticionamentoINT extends InfraINT { |
| 105 | 106 | $arrayDescricoes = array(); |
| 106 | 107 | $arrayDescricoes[ProtocoloRN::$NA_PUBLICO] = 'Público'; |
| 107 | 108 | $arrayDescricoes[ProtocoloRN::$NA_RESTRITO] = 'Restrito'; |
| 108 | - $arrayDescricoes[ProtocoloRN::$NA_SIGILOSO] = 'Sigiloso'; | |
| 109 | + //$arrayDescricoes[ProtocoloRN::$NA_SIGILOSO] = 'Sigiloso'; | |
| 109 | 110 | $arrayDescricoes[''] = ''; |
| 110 | 111 | |
| 111 | 112 | $stringFim = '<option value=""> </option>'; | ... | ... |
sei/institucional/peticionamento/menu_peticionamento_usuario_externo_lista.php
| ... | ... | @@ -59,8 +59,6 @@ try { |
| 59 | 59 | die; |
| 60 | 60 | |
| 61 | 61 | case 'menu_peticionamento_usuario_externo_reativar': |
| 62 | - | |
| 63 | - //print_r($_GET); die(); | |
| 64 | 62 | |
| 65 | 63 | $strTitulo = 'Reativar Menus'; |
| 66 | 64 | |
| ... | ... | @@ -402,7 +400,6 @@ PaginaSEI::getInstance()->fecharHead(); |
| 402 | 400 | PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
| 403 | 401 | $strNome = $_POST['txtNome']; |
| 404 | 402 | $strTipo = $_POST['selTipo'];; |
| 405 | -//print_r( $_GET ); die(); | |
| 406 | 403 | ?> |
| 407 | 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 | 2 | try { |
| 3 | 3 | |
| 4 | 4 | require_once dirname(__FILE__).'/../../SEI.php'; |
| 5 | - //require_once ("ConverteURI.php"); | |
| 6 | 5 | |
| 7 | 6 | session_start(); |
| 8 | 7 | SessaoSEIExterna::getInstance()->validarLink(); |
| ... | ... | @@ -13,15 +12,6 @@ try { |
| 13 | 12 | InfraDebug::getInstance()->setBolDebugInfra( false ); |
| 14 | 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 | 16 | $objMenuPeticionamentoUsuarioExternoDTO = new MenuPeticionamentoUsuarioExternoDTO(); |
| 27 | 17 | $objMenuPeticionamentoUsuarioExternoDTO->retTodos(); | ... | ... |
sei/institucional/peticionamento/peticionamento_contato_selecionar.php
| ... | ... | @@ -32,7 +32,6 @@ try { |
| 32 | 32 | $objRelTipoContextoPeticionamentoDTO->retTodos(); |
| 33 | 33 | $objRelTipoContextoPeticionamentoDTO->setStrSinSelecaoInteressado('S'); |
| 34 | 34 | $arrobjRelTipoContextoPeticionamentoDTO = $objRelTipoContextoPeticionamentoRN->listar( $objRelTipoContextoPeticionamentoDTO ); |
| 35 | - //print_r( $arrobjRelTipoContextoPeticionamentoDTO ); die(); | |
| 36 | 35 | |
| 37 | 36 | if (isset($_POST['hdnFlag'])){ |
| 38 | 37 | PaginaSEIExterna::getInstance()->salvarCampo('chkMaisOpcoesContatos',(isset($_POST['chkMaisOpcoesContatos']) ? PaginaSEIExterna::getInstance()->getCheckbox($_POST['chkMaisOpcoesContatos']) : 'N')); |
| ... | ... | @@ -108,12 +107,13 @@ try { |
| 108 | 107 | $objContatoDTO->setOrdStrSinContexto(InfraDTO::$TIPO_ORDENACAO_DESC); |
| 109 | 108 | $objContatoDTO->setOrdStrNome(InfraDTO::$TIPO_ORDENACAO_ASC); |
| 110 | 109 | |
| 110 | + SessaoSEIExterna::getInstance()->setAtributo('janelaSelecaoPorNome', 'true'); | |
| 111 | 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 | 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 | 119 | if($_GET['acao']=='contexto_selecionar' || |
| ... | ... | @@ -198,7 +198,7 @@ try { |
| 198 | 198 | |
| 199 | 199 | if ($bolAcaoImprimir){ |
| 200 | 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 | 204 | $strCaptionTabela = ''; |
| ... | ... | @@ -270,7 +270,7 @@ try { |
| 270 | 270 | |
| 271 | 271 | $strResultado .= $strCssTr; |
| 272 | 272 | $strTitle = ''; |
| 273 | - $strNomeSigla = ContatoINT::formatarNomeSiglaRI1224($dto->getStrNome(),$dto->getStrSigla()); | |
| 273 | + $strNomeSigla = $dto->getStrNome(); | |
| 274 | 274 | $strTitle = $strNomeSigla; |
| 275 | 275 | |
| 276 | 276 | if ($bolCheck){ |
| ... | ... | @@ -377,7 +377,7 @@ try { |
| 377 | 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 | 382 | $strItensSelGrupoContato = GrupoContatoINT::ConjuntoPorUnidadeRI0515('null',' ',$numIdGrupoContato); |
| 383 | 383 | $strItensSelTipoContextoContato = TipoContextoContatoINT::montarSelectNomeRI0518('null',' ',$numTipoContextoContato); |
| ... | ... | @@ -408,8 +408,13 @@ PaginaSEIExterna::getInstance()->abrirStyle(); |
| 408 | 408 | PaginaSEIExterna::getInstance()->fecharStyle(); |
| 409 | 409 | PaginaSEIExterna::getInstance()->montarJavaScript(); |
| 410 | 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 | 418 | function inicializar(){ |
| 414 | 419 | if ('<?=PaginaSEIExterna::getInstance()->isBolPaginaSelecao()?>'!=''){ |
| 415 | 420 | infraReceberSelecao(); |
| ... | ... | @@ -488,7 +493,6 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"') |
| 488 | 493 | $selected = " selected='selected' "; |
| 489 | 494 | } |
| 490 | 495 | |
| 491 | - //print_r( $dto ); die(); | |
| 492 | 496 | ?> |
| 493 | 497 | <option value="<?= $item->getNumIdTipoContextoContato() ?>" <?= $selected ?> > |
| 494 | 498 | <?= $dto->getStrNome() ?> | ... | ... |
sei/institucional/peticionamento/peticionamento_interessado_cadastro.php
| ... | ... | @@ -209,10 +209,18 @@ try { |
| 209 | 209 | //após cadastrar o contato fechar janela modal e preencher campos necessarios |
| 210 | 210 | if( !isset( $_POST['hdnIdEdicao'] ) || $_POST['hdnIdEdicao'] == "" ){ |
| 211 | 211 | |
| 212 | + $janelaSelecaoPorNome = SessaoSEIExterna::getInstance()->getAtributo('janelaSelecaoPorNome'); | |
| 213 | + | |
| 212 | 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 | 224 | echo " window.close();"; |
| 217 | 225 | echo "</script>"; |
| 218 | 226 | die; |
| ... | ... | @@ -409,7 +417,8 @@ $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( |
| 409 | 417 | <label class="infraLabelObrigatorio">Tipo de Interessado:</label><br/> |
| 410 | 418 | <select class="infraSelect" width="380" id="tipoInteressado" |
| 411 | 419 | tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" |
| 412 | - name="tipoInteressado" style="width:380px;" > | |
| 420 | + name="tipoInteressado" | |
| 421 | + onchange="selecionarTipoInteressado()" style="width:380px;" > | |
| 413 | 422 | <?=$strItensSelTipoInteressado?> |
| 414 | 423 | </select> <br/> |
| 415 | 424 | |
| ... | ... | @@ -436,17 +445,19 @@ $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( |
| 436 | 445 | <?php if( $_POST['hdnIdContextoContato'] == '') {?> |
| 437 | 446 | |
| 438 | 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 | 453 | <?php } else { ?> |
| 444 | 454 | |
| 445 | 455 | <input type="text" class="infraText" |
| 446 | 456 | value="<?php echo $_POST['txtPjVinculada']; ?>" |
| 447 | 457 | tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" |
| 458 | + onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | |
| 448 | 459 | name="txtPjVinculada" id="txtPjVinculada" |
| 449 | - autocomplete="off" style="width: 580px;" /> | |
| 460 | + autocomplete="off" style="width: 580px;" /> | |
| 450 | 461 | |
| 451 | 462 | <?php } ?> |
| 452 | 463 | |
| ... | ... | @@ -480,7 +491,7 @@ $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( |
| 480 | 491 | <input type="text" class="infraText" |
| 481 | 492 | value="<?php echo $_POST['rg']; ?>" |
| 482 | 493 | tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" |
| 483 | - onkeypress="return infraMascaraNumero(this,event, 10);" | |
| 494 | + onkeypress="return infraMascaraNumero(this,event, 15);" | |
| 484 | 495 | name="rg" id="rg" /> |
| 485 | 496 | </div> |
| 486 | 497 | ... | ... |
sei/institucional/peticionamento/peticionamento_interessado_cadastro_js.php
| ... | ... | @@ -16,6 +16,12 @@ var objSelectNomeCidade = null; |
| 16 | 16 | var objAjaxContatoRI0571 = null; |
| 17 | 17 | var objAutoCompletarContexto = null; |
| 18 | 18 | |
| 19 | +function selecionarTipoInteressado(){ | |
| 20 | + | |
| 21 | + document.getElementById('hdnIdContextoContato').value = ''; | |
| 22 | + document.getElementById('txtPjVinculada').value = ''; | |
| 23 | +} | |
| 24 | + | |
| 19 | 25 | function selecionarPF(){ |
| 20 | 26 | mostrarCamposPF(); |
| 21 | 27 | } |
| ... | ... | @@ -67,6 +73,11 @@ function mostrarCamposPF(){ |
| 67 | 73 | |
| 68 | 74 | //mostrar campos RG, orgao expedidor, numero da OAB |
| 69 | 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 | 122 | |
| 112 | 123 | //mostrar campos RG, orgao expedidor, numero da OAB |
| 113 | 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 | 190 | return; |
| 162 | 191 | |
| 163 | 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 | 206 | document.getElementById("rdPF").click(); |
| 170 | 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 | 211 | document.getElementById("rdPJ").click(); |
| 175 | 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 | 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 | 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 | 225 | //rdPF2 com vinculo |
| 189 | 226 | document.getElementById("rdPF2").checked = 'checked'; |
| 190 | 227 | document.getElementById("rdPF2").click(); |
| 191 | 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 | 232 | //rdPF1 com vinculo |
| 196 | 233 | document.getElementById("rdPF1").checked = 'checked'; |
| ... | ... | @@ -233,6 +270,30 @@ function inicializar(){ |
| 233 | 270 | <?php } ?> |
| 234 | 271 | |
| 235 | 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 | 367 | |
| 307 | 368 | //validar pj vinculada (caso exista) |
| 308 | 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 | 373 | alert('Informe a pessoa jurídica vinculada.'); |
| 312 | 374 | document.getElementById('txtPjVinculada').focus(); |
| 313 | 375 | return; |
| ... | ... | @@ -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 | 450 | alert('E-mail Inválido.'); |
| 389 | 451 | document.getElementById('email').focus(); | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro.php
| ... | ... | @@ -25,9 +25,7 @@ try { |
| 25 | 25 | InfraDebug::getInstance()->setBolDebugInfra( true ); |
| 26 | 26 | InfraDebug::getInstance()->limpar(); |
| 27 | 27 | ////////////////////////////////////////////////////////////////////////////// |
| 28 | - | |
| 29 | - //print_r( ContatoPeticionamentoINT::getContatoByCPFCNPJ('707.230.281-68') ); die(); | |
| 30 | - | |
| 28 | + | |
| 31 | 29 | SessaoSEIExterna::getInstance()->validarLink(); |
| 32 | 30 | SessaoSEIExterna::getInstance()->validarPermissao($_GET['acao']); |
| 33 | 31 | SessaoSEIExterna::getInstance()->removerAtributo('docPrincipalConteudoHTML'); |
| ... | ... | @@ -60,7 +58,6 @@ PaginaSEIExterna::getInstance()->montarTitle(':: '.PaginaSEIExterna::getInstance |
| 60 | 58 | PaginaSEIExterna::getInstance()->montarStyle(); |
| 61 | 59 | PaginaSEIExterna::getInstance()->abrirStyle(); |
| 62 | 60 | $objEditorRN = new EditorRN(); |
| 63 | -//echo $objEditorRN->montarCssEditor(null); | |
| 64 | 61 | PaginaSEIExterna::getInstance()->fecharStyle(); |
| 65 | 62 | PaginaSEIExterna::getInstance()->montarJavaScript(); |
| 66 | 63 | PaginaSEIExterna::getInstance()->abrirJavaScript(); |
| ... | ... | @@ -78,11 +75,6 @@ PaginaSEIExterna::getInstance()->fecharHead(); |
| 78 | 75 | PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
| 79 | 76 | ?> |
| 80 | 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 | 79 | PaginaSEIExterna::getInstance()->montarBarraComandosSuperior($arrComandos); |
| 88 | 80 | PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
| ... | ... | @@ -176,15 +168,13 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
| 176 | 168 | |
| 177 | 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 | 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 | 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 | 179 | </div> |
| 190 | 180 | |
| ... | ... | @@ -193,7 +183,7 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
| 193 | 183 | <label id="descNomePessoa" class="infraLabelObrigatorio"> </label> <br/> |
| 194 | 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 | 188 | </div> |
| 199 | 189 | |
| ... | ... | @@ -212,7 +202,7 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
| 212 | 202 | <th class="infraTh" style="display: none;" > ID Contato </th> |
| 213 | 203 | <th class="infraTh" width="100" id="tdDescTipoPessoaSelecao" > Tipo </th> |
| 214 | 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 | 206 | <th align="center" class="infraTh" style="width:50px;"> Ações </th> |
| 217 | 207 | </tr> |
| 218 | 208 | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_bloco_documentos.php
| ... | ... | @@ -493,7 +493,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
| 493 | 493 | |
| 494 | 494 | <!-- ================================== INICIO DOCUMENTOS COMPLEMENTARES =============================================== --> |
| 495 | 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 | 497 | // conforme parametrizaçao da Administraçao do modulo |
| 498 | 498 | $objRelTipoProcessoSeriePeticionamentoDTO = new RelTipoProcessoSeriePeticionamentoDTO(); |
| 499 | 499 | $objRelTipoProcessoSeriePeticionamentoDTO->retTodos(); |
| ... | ... | @@ -502,7 +502,6 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
| 502 | 502 | $objRelTipoProcessoSeriePeticionamentoRN = new RelTipoProcessoSeriePeticionamentoRN(); |
| 503 | 503 | |
| 504 | 504 | $arrRelTipoProcessoSeriePeticionamentoDTO = $objRelTipoProcessoSeriePeticionamentoRN->listar( $objRelTipoProcessoSeriePeticionamentoDTO ); |
| 505 | - //print_r( $arrRelTipoProcessoSeriePeticionamentoDTO ); die(); | |
| 506 | 505 | |
| 507 | 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 | 111 | |
| 112 | 112 | //APENAS UMA UNIDADE |
| 113 | 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 | 119 | //MULTIPLAS UNIDADES |
| 119 | 120 | else if( $arrRelTipoProcUnidadeDTO != null && count( $arrRelTipoProcUnidadeDTO ) > 1 ){ |
| 120 | - | |
| 121 | - //print_r( $arrRelTipoProcUnidadeDTO ); die(); | |
| 122 | - | |
| 121 | + | |
| 123 | 122 | $arrIdUnidade = array(); |
| 124 | 123 | |
| 125 | 124 | //consultar UFs das unidades informadas |
| ... | ... | @@ -138,7 +137,7 @@ else if( $arrRelTipoProcUnidadeDTO != null && count( $arrRelTipoProcUnidadeDTO ) |
| 138 | 137 | |
| 139 | 138 | $objUnidadeRN = new UnidadeRN(); |
| 140 | 139 | $arrUnidadeUFDTO = $objUnidadeRN->listarRN0127( $objUnidadeDTO ); |
| 141 | - //print_r( $arrUnidadeUFDTO ); die(); | |
| 140 | + | |
| 142 | 141 | } |
| 143 | 142 | |
| 144 | 143 | $ObjRelTipoProcessoSeriePeticionamentoRN = new RelTipoProcessoSeriePeticionamentoRN(); |
| ... | ... | @@ -146,7 +145,6 @@ $ObjRelTipoProcessoSeriePeticionamentoDTO = new RelTipoProcessoSeriePeticionamen |
| 146 | 145 | $ObjRelTipoProcessoSeriePeticionamentoDTO->retTodos(); |
| 147 | 146 | $ObjRelTipoProcessoSeriePeticionamentoDTO->setNumIdTipoProcessoPeticionamento( $idTipoProc ); |
| 148 | 147 | $arrTiposDocumentosComplementares = $ObjRelTipoProcessoSeriePeticionamentoRN->listar( $ObjRelTipoProcessoSeriePeticionamentoDTO ); |
| 149 | -//print_r( $arrTiposDocumentosComplementares ); die(); | |
| 150 | 148 | |
| 151 | 149 | //ler configuraçoes necessarias para aplicar a RN 8 |
| 152 | 150 | /* |
| ... | ... | @@ -206,7 +204,6 @@ $objTipoProcessoPeticionamentoDTO->setStrSinAtivo('S', InfraDTO::$OPER_IGUAL); |
| 206 | 204 | $objTipoProcessoPeticionamentoDTO->retTodos(); |
| 207 | 205 | $objTipoProcessoPeticionamentoDTO->setNumIdProcedimento( $objTipoProcDTO->getNumIdProcedimento() , InfraDTO::$OPER_IGUAL ); |
| 208 | 206 | $ObjTipoProcessoPeticionamentoDTO = $objTipoProcessoPeticionamentoRN->consultar( $objTipoProcessoPeticionamentoDTO ); |
| 209 | -//print_r( $ObjTipoProcessoPeticionamentoDTO ); die(); | |
| 210 | 207 | |
| 211 | 208 | $txtTipoProcessoEscolhido = $objTipoProcDTO->getStrNomeProcesso(); |
| 212 | 209 | |
| ... | ... | @@ -216,14 +213,6 @@ $arrPFPJInteressados = array(); |
| 216 | 213 | //preenche a combo de interessados - CASO 3 |
| 217 | 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 | 216 | //preenche a combo "Tipo" |
| 228 | 217 | $arrTipo = array(); |
| 229 | 218 | |
| ... | ... | @@ -269,7 +258,6 @@ if( $valorConfigHipoteseLegal == 1 || $valorConfigHipoteseLegal == 2){ |
| 269 | 258 | $hipoteseDTO->retTodos(); |
| 270 | 259 | $hipoteseDTO->setStrSinAtivo('S'); |
| 271 | 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 | 63 | $objRelTipoProcessoSeriePeticionamentoRN = new RelTipoProcessoSeriePeticionamentoRN(); |
| 64 | 64 | |
| 65 | 65 | $arrRelTipoProcessoSeriePeticionamentoDTO = $objRelTipoProcessoSeriePeticionamentoRN->listar( $objRelTipoProcessoSeriePeticionamentoDTO ); |
| 66 | -//print_r( $arrRelTipoProcessoSeriePeticionamentoDTO ); die(); | |
| 67 | 66 | |
| 68 | 67 | if( is_array( $arrRelTipoProcessoSeriePeticionamentoDTO ) && count( $arrRelTipoProcessoSeriePeticionamentoDTO ) > 0 ){ |
| 69 | 68 | |
| ... | ... | @@ -766,6 +765,18 @@ function validarFormulario(){ |
| 766 | 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 | 780 | //aplicando validações relacionadas ao documento principal |
| 770 | 781 | var fileArquivoPrincipal = document.getElementById('fileArquivoPrincipal'); |
| 771 | 782 | var complementoPrincipal = document.getElementById('complementoPrincipal'); |
| ... | ... | @@ -1025,8 +1036,12 @@ function abrirCadastroInteressado(){ |
| 1025 | 1036 | else { |
| 1026 | 1037 | |
| 1027 | 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 | 1046 | alert('CPF Inválido.'); |
| 1032 | 1047 | document.getElementById('txtCPF').focus(); |
| ... | ... | @@ -1039,7 +1054,11 @@ function abrirCadastroInteressado(){ |
| 1039 | 1054 | |
| 1040 | 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 | 1063 | alert('CNPJ Inválido.'); |
| 1045 | 1064 | document.getElementById('txtCNPJ').focus(); |
| ... | ... | @@ -1626,7 +1645,7 @@ function carregarCamposDocComplementarUpload(){ |
| 1626 | 1645 | function carregarComponenteLupaInteressados( tipoAcao ){ |
| 1627 | 1646 | |
| 1628 | 1647 | if( tipoAcao == 'S'){ |
| 1629 | - objLupaInteressados.selecionar(700,500); | |
| 1648 | + objLupaInteressados.selecionar(900,900); | |
| 1630 | 1649 | } else if( tipoAcao == 'R'){ |
| 1631 | 1650 | objLupaInteressados.remover(); |
| 1632 | 1651 | } |
| ... | ... | @@ -1850,12 +1869,12 @@ function adicionarInteressadoValido(){ |
| 1850 | 1869 | if( txtNomeRazaoSocial == ''){ |
| 1851 | 1870 | |
| 1852 | 1871 | if( chkTipoPessoaFisica ){ |
| 1853 | - alert('Informe o Nome.'); | |
| 1872 | + alert('Antes é necessário validar o CPF.'); | |
| 1854 | 1873 | return; |
| 1855 | 1874 | } |
| 1856 | 1875 | |
| 1857 | 1876 | else if( chkTipoPessoaJuridica ){ |
| 1858 | - alert('Informe a Razão Social.'); | |
| 1877 | + alert('Antes é necessário validar o CNPJ.'); | |
| 1859 | 1878 | return; |
| 1860 | 1879 | } |
| 1861 | 1880 | |
| ... | ... | @@ -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 | 1985 | </script> |
| 1953 | 1986 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_inicio.php
| ... | ... | @@ -55,14 +55,6 @@ try { |
| 55 | 55 | |
| 56 | 56 | $objTipoProcedimentoRN = new TipoProcessoPeticionamentoRN(); |
| 57 | 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 | 59 | $objEditorRN = new EditorRN(); |
| 68 | 60 | ... | ... |
sei/institucional/peticionamento/recibo_peticionamento_usuario_externo_lista.php
| ... | ... | @@ -117,12 +117,7 @@ try { |
| 117 | 117 | $protocoloDTO->retStrProtocoloFormatado(); |
| 118 | 118 | $protocoloDTO->setDblIdProtocolo( $arrObjReciboPeticionamentoDTO[$i]->getNumIdProtocolo() ); |
| 119 | 119 | $protocoloDTO = $protocoloRN->consultarRN0186( $protocoloDTO ); |
| 120 | - | |
| 121 | - //if( $protocoloDTO == null){ | |
| 122 | - //echo $i; die(); | |
| 123 | - //print_r( $arrObjReciboPeticionamentoDTO[$i] ); die(); | |
| 124 | - //} | |
| 125 | - | |
| 120 | + | |
| 126 | 121 | if( isset( $_GET['id_md_pet_rel_recibo_protoc'] ) && $_GET['id_md_pet_rel_recibo_protoc'] == $arrObjReciboPeticionamentoDTO[$i]->getNumIdReciboPeticionamento()){ |
| 127 | 122 | $strCssTr = '<tr class="infraTrAcessada">'; |
| 128 | 123 | }else{ |
| ... | ... | @@ -218,7 +213,6 @@ PaginaSEIExterna::getInstance()->fecharJavaScript(); |
| 218 | 213 | PaginaSEIExterna::getInstance()->fecharHead(); |
| 219 | 214 | PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
| 220 | 215 | $strTipo = $_POST['selTipo'];; |
| 221 | -//print_r( $_GET ); die(); | |
| 222 | 216 | ?> |
| 223 | 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 | 65 | $this->validarDthInclusaoRN0868($objAnexoDTO, $objInfraException); |
| 66 | 66 | $this->validarStrSinAtivoRN0886($objAnexoDTO, $objInfraException); |
| 67 | 67 | |
| 68 | - //print_r( $objAnexoDTO );die(); | |
| 69 | 68 | $strNomeUpload = $objAnexoDTO->getStrNome(); |
| 70 | 69 | $strNomeUploadCompleto = DIR_SEI_TEMP.'/'.$strNomeUpload; |
| 71 | 70 | |
| ... | ... | @@ -281,14 +280,6 @@ class AnexoPeticionamentoRN extends InfraRN { |
| 281 | 280 | |
| 282 | 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 | 283 | if (InfraString::isBolVazia($objAnexoDTO->getStrNome())){ |
| 293 | 284 | $objInfraException->adicionarValidacao('Nome do anexo não informado.'); |
| 294 | 285 | }else{ | ... | ... |
sei/institucional/peticionamento/rn/AtividadePeticionamentoRN.php
| ... | ... | @@ -18,7 +18,6 @@ class AtividadePeticionamentoRN extends AtividadeRN { |
| 18 | 18 | |
| 19 | 19 | $objAtividadeDTO = $param[0]; |
| 20 | 20 | $idUnidadeDTO = $param[1]; |
| 21 | - //print_r( $objAtividadeDTO );die(); | |
| 22 | 21 | |
| 23 | 22 | //Valida Permissao |
| 24 | 23 | //SessaoSEI::getInstance()->validarAuditarPermissao('atividade_gerar',__METHOD__,$objAtividadeDTO); |
| ... | ... | @@ -307,10 +306,9 @@ class AtividadePeticionamentoRN extends AtividadeRN { |
| 307 | 306 | $numIdTarefa != TarefaRN::$TI_REABERTURA_PROCESSO_USUARIO && |
| 308 | 307 | $numIdTarefa != TarefaRN::$TI_CANCELAMENTO_AGENDAMENTO && |
| 309 | 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 | 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 | 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 | 408 | $idUnidade = $objAtividadeDTO->get('IdUnidade'); |
| 411 | 409 | |
| 412 | 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 | 1267 | } |
| 1273 | 1268 | |
| 1274 | 1269 | protected function enviarRN0023CustomizadoInternoControlado(EnviarProcessoDTO $parObjEnviarProcessoDTO) { |
| 1275 | - | |
| 1276 | - //print_r( $parObjEnviarProcessoDTO); die(); | |
| 1277 | 1270 | |
| 1278 | 1271 | try{ |
| 1279 | 1272 | |
| ... | ... | @@ -1282,9 +1275,7 @@ class AtividadePeticionamentoRN extends AtividadeRN { |
| 1282 | 1275 | |
| 1283 | 1276 | //Regras de Negocio |
| 1284 | 1277 | $objInfraException = new InfraException(); |
| 1285 | - | |
| 1286 | - //$objInfraException->lancarValidacao('aaaaaaa'); | |
| 1287 | - | |
| 1278 | + | |
| 1288 | 1279 | //verifica se não houve mudança nas atividades abertas |
| 1289 | 1280 | $idUnidadeOrigem = ''; |
| 1290 | 1281 | $arrObjAtividadeDTOOrigem = $parObjEnviarProcessoDTO->getArrAtividadesOrigem(); |
| ... | ... | @@ -1299,8 +1290,6 @@ class AtividadePeticionamentoRN extends AtividadeRN { |
| 1299 | 1290 | $arrObjAtividadeDTO = $parObjEnviarProcessoDTO->getArrAtividades(); |
| 1300 | 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 | 1293 | $this->validarStrSinConluirOriginaisRN0826($parObjEnviarProcessoDTO, $objInfraException); |
| 1305 | 1294 | $this->validarStrSinRemoverAnotacoes($parObjEnviarProcessoDTO, $objInfraException); |
| 1306 | 1295 | $this->validarStrSinEnviarEmailNotificacao($parObjEnviarProcessoDTO, $objInfraException); | ... | ... |
sei/institucional/peticionamento/rn/DocumentoPeticionamentoRN.php
| ... | ... | @@ -160,7 +160,6 @@ class DocumentoPeticionamentoRN extends InfraRN { |
| 160 | 160 | $objProtocoloDTO->setDblIdProtocolo(null); |
| 161 | 161 | $objProtocoloDTO->setStrStaProtocolo(ProtocoloRN::$TP_DOCUMENTO_RECEBIDO); |
| 162 | 162 | $objProtocoloDTO->setStrDescricao(utf8_decode($objDocumento->descricao)); |
| 163 | - //TODO: Avaliar regra de formação do número do documento | |
| 164 | 163 | $objDocumentoDTO->setStrNumero((isset($objDocumento->identificacao) ? $objDocumento->identificacao->numero : utf8_decode($objDocumento->descricao))); |
| 165 | 164 | $objProtocoloDTO->setStrStaNivelAcessoLocal($this->obterNivelSigiloSEI($objDocumento->nivelDeSigilo)); |
| 166 | 165 | $objProtocoloDTO->setDtaGeracao($this->objProcessoEletronicoRN->converterDataSEI($objDocumento->dataHoraDeProducao)); |
| ... | ... | @@ -168,15 +167,11 @@ class DocumentoPeticionamentoRN extends InfraRN { |
| 168 | 167 | $objProtocoloDTO->setArrObjRelProtocoloAssuntoDTO(array()); |
| 169 | 168 | $objProtocoloDTO->setArrObjRelProtocoloProtocoloDTO(array()); |
| 170 | 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 | 171 | $objObservacaoDTO = new ObservacaoDTO(); |
| 176 | 172 | $objObservacaoDTO->setStrDescricao($objDocumento->Observacao); |
| 177 | 173 | $objProtocoloDTO->setArrObjObservacaoDTO(array($objObservacaoDTO)); |
| 178 | - | |
| 179 | - | |
| 174 | + | |
| 180 | 175 | $bolReabriuAutomaticamente = false; |
| 181 | 176 | if ($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()==ProtocoloRN::$NA_PUBLICO || $objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()==ProtocoloRN::$NA_RESTRITO) { |
| 182 | 177 | |
| ... | ... | @@ -307,9 +302,7 @@ class DocumentoPeticionamentoRN extends InfraRN { |
| 307 | 302 | } |
| 308 | 303 | |
| 309 | 304 | protected function gerarRN0003InternoCustomizadoControlado(DocumentoDTO $objDocumentoDTO) { |
| 310 | - | |
| 311 | - //print_r( $objDocumentoDTO ); die(); | |
| 312 | - | |
| 305 | + | |
| 313 | 306 | try{ |
| 314 | 307 | |
| 315 | 308 | $idUnidadeResponsavel = $objDocumentoDTO->getNumIdUnidadeResponsavel(); |
| ... | ... | @@ -531,9 +524,7 @@ class DocumentoPeticionamentoRN extends InfraRN { |
| 531 | 524 | |
| 532 | 525 | $objAtividadeRN = new AtividadePeticionamentoRN(); |
| 533 | 526 | $objAtividadeRN->gerarInternaRN0727($objAtividadeDTO); |
| 534 | - | |
| 535 | - /// | |
| 536 | - | |
| 527 | + | |
| 537 | 528 | $arrAnexos = $objProtocoloDTO->getArrObjAnexoDTO(); |
| 538 | 529 | for($i=0;$i<count($arrAnexos);$i++){ |
| 539 | 530 | |
| ... | ... | @@ -622,9 +613,7 @@ class DocumentoPeticionamentoRN extends InfraRN { |
| 622 | 613 | }else if ($objDocumentoDTO->isSetNumIdTextoPadraoInterno() && $objDocumentoDTO->getNumIdTextoPadraoInterno()!=null){ |
| 623 | 614 | $objEditorDTO->setNumIdTextoPadraoInterno($objDocumentoDTO->getNumIdTextoPadraoInterno()); |
| 624 | 615 | } |
| 625 | - | |
| 626 | - //print_r( $objEditorDTO ); die(); | |
| 627 | - | |
| 616 | + | |
| 628 | 617 | $objEditorRN = new EditorUsuarioExternoRN(); |
| 629 | 618 | $objEditorRN->gerarVersaoInicial($objEditorDTO); |
| 630 | 619 | } |
| ... | ... | @@ -722,10 +711,6 @@ class DocumentoPeticionamentoRN extends InfraRN { |
| 722 | 711 | if ($objDocumentoDTO->getStrStaProtocoloProtocolo()==ProtocoloRN::$TP_DOCUMENTO_GERADO && $objSerieDTO->getStrStaAplicabilidade()==SerieRN::$TA_EXTERNO){ |
| 723 | 712 | $objInfraException->adicionarValidacao('Tipo do documento não aplicável para documentos internos.'); |
| 724 | 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 | 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 | 737 | } |
| 753 | 738 | |
| 754 | 739 | private function tratarProtocoloRN1164(DocumentoDTO $objDocumentoDTO) { |
| 755 | - | |
| 756 | - //print_r( $objDocumentoDTO ); die(); | |
| 757 | - | |
| 740 | + | |
| 758 | 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 | 746 | $objProtocoloDTO->setStrStaProtocolo($objDocumentoDTO->getStrStaProtocoloProtocolo()); |
| 769 | 747 | |
| 770 | 748 | if (!$objProtocoloDTO->isSetNumIdUnidadeGeradora()){ | ... | ... |
sei/institucional/peticionamento/rn/EditorUsuarioExternoRN.php
| ... | ... | @@ -550,8 +550,7 @@ class EditorUsuarioExternoRN extends InfraRN |
| 550 | 550 | |
| 551 | 551 | $docDTO = $docRN->consultarRN0005( $docDTO ); |
| 552 | 552 | $idUnidadeResponsavel = $docDTO->getNumIdUnidadeResponsavel(); |
| 553 | - //print_r( $docDTO );die(); | |
| 554 | - | |
| 553 | + | |
| 555 | 554 | $objParametrosEditorDTO = $this->obterParametros($parObjEditorDTO); |
| 556 | 555 | |
| 557 | 556 | $arrTags = $objParametrosEditorDTO->getArrTags(); |
| ... | ... | @@ -562,7 +561,6 @@ class EditorUsuarioExternoRN extends InfraRN |
| 562 | 561 | $objVersaoSecaoDocumentoRN = new VersaoSecaoDocumentoRN(); |
| 563 | 562 | //$objRelSecaoModeloEstiloRN = new RelSecaoModeloEstiloRN(); |
| 564 | 563 | $objDocumentoRN = new DocumentoRN(); |
| 565 | - //$objSerieRN = new SerieRN(); | |
| 566 | 564 | $dthAtual = InfraData::getStrDataHoraAtual(); |
| 567 | 565 | |
| 568 | 566 | $parObjEditorDTO->setNumIdConjuntoEstilos(null); |
| ... | ... | @@ -920,7 +918,6 @@ class EditorUsuarioExternoRN extends InfraRN |
| 920 | 918 | } |
| 921 | 919 | |
| 922 | 920 | //cadastrar conjunto de estilos |
| 923 | - //print_r($parObjEditorDTO); die; | |
| 924 | 921 | $this->atualizarConteudo($parObjEditorDTO); |
| 925 | 922 | |
| 926 | 923 | } catch (Exception $e) { |
| ... | ... | @@ -1361,9 +1358,7 @@ class EditorUsuarioExternoRN extends InfraRN |
| 1361 | 1358 | public function converteTextoEstiloCss($arrEstilosCss, $strConteudo) |
| 1362 | 1359 | { |
| 1363 | 1360 | |
| 1364 | - //print_r($strConteudo); | |
| 1365 | 1361 | $strConteudoNovo = ""; |
| 1366 | -// $posAtual = 0; | |
| 1367 | 1362 | $posAnterior = 0; |
| 1368 | 1363 | $cntNaoEncontrados = 0; |
| 1369 | 1364 | $cntEncontrados = 0; |
| ... | ... | @@ -1382,7 +1377,6 @@ class EditorUsuarioExternoRN extends InfraRN |
| 1382 | 1377 | $cntNaoEncontrados++; |
| 1383 | 1378 | $posAnterior = $posAtual + 1; |
| 1384 | 1379 | $strConteudoNovo .= 's'; |
| 1385 | - //InfraDebug::getInstance()->gravar("Nao encontrado estilo para: /".$strEstilo."/"); | |
| 1386 | 1380 | } else { |
| 1387 | 1381 | $posAnterior = $posFimEstilo + 1; |
| 1388 | 1382 | $cntEncontrados++; |
| ... | ... | @@ -2271,9 +2265,7 @@ class EditorUsuarioExternoRN extends InfraRN |
| 2271 | 2265 | } |
| 2272 | 2266 | } |
| 2273 | 2267 | } |
| 2274 | - | |
| 2275 | - //print_r($arrConteudoTags);die; | |
| 2276 | - | |
| 2268 | + | |
| 2277 | 2269 | $objParametrosEditorDTO->setArrTags($arrConteudoTags); |
| 2278 | 2270 | |
| 2279 | 2271 | return $objParametrosEditorDTO; | ... | ... |
sei/institucional/peticionamento/rn/IndisponibilidadePeticionamentoRN.php
| ... | ... | @@ -357,9 +357,7 @@ class IndisponibilidadePeticionamentoRN extends InfraRN { |
| 357 | 357 | $objIndisponibilidadeAnexoPeticionamentoDTO->retTodos(); |
| 358 | 358 | $objIndisponibilidadeAnexoPeticionamentoDTO->setNumIdIndisponibilidade($arrIndisponibilidadePeticionamentoDTO[$i]->getNumIdIndisponibilidade(), InfraDTO::$OPER_IGUAL); |
| 359 | 359 | $arrObjIndisponibilidadeAnexoPeticionamentoDTO = $objIndisponibilidadeAnexoPeticionamentoRN->listar($objIndisponibilidadeAnexoPeticionamentoDTO); |
| 360 | - | |
| 361 | - //print_r( $arrObjIndisponibilidadeAnexoPeticionamentoDTO ); die(); | |
| 362 | - | |
| 360 | + | |
| 363 | 361 | $objIndisponibilidadeAnexoPeticionamentoRN->excluir($arrObjIndisponibilidadeAnexoPeticionamentoDTO); |
| 364 | 362 | |
| 365 | 363 | //Excluindo Indisponibilidade | ... | ... |
sei/institucional/peticionamento/rn/ProcedimentoPeticionamentoRN.php
| 1 | 1 | <?php |
| 2 | - | |
| 2 | +/** | |
| 3 | + * ANATEL | |
| 4 | + * | |
| 5 | + * 21/07/2016 - criado por marcelo.bezerra - CAST | |
| 6 | + * | |
| 7 | + */ | |
| 3 | 8 | require_once dirname(__FILE__).'/../../../SEI.php'; |
| 4 | 9 | |
| 5 | 10 | class ProcedimentoPeticionamentoRN extends ProcedimentoRN { |
| ... | ... | @@ -57,15 +62,11 @@ class ProcedimentoPeticionamentoRN extends ProcedimentoRN { |
| 57 | 62 | } |
| 58 | 63 | |
| 59 | 64 | $objProtocoloDTO->setStrStaProtocolo(ProtocoloRN::$TP_PROCEDIMENTO); |
| 60 | - //(TESTE COMENTADO) | |
| 61 | - //$objProtocoloDTO->setNumIdUnidadeGeradora(SessaoSEI::getInstance()->getNumIdUnidadeAtual()); | |
| 62 | - //$objProtocoloDTO->setNumIdUsuarioGerador(SessaoSEI::getInstance()->getNumIdUsuario()); | |
| 63 | - | |
| 65 | + | |
| 64 | 66 | if (!$objProtocoloDTO->isSetDtaGeracao() || InfraString::isBolVazia($objProtocoloDTO->getDtaGeracao())) |
| 65 | 67 | $objProtocoloDTO->setDtaGeracao(InfraData::getStrDataAtual()); |
| 66 | 68 | |
| 67 | 69 | $objProcedimentoDTO->setObjProtocoloDTO($objProtocoloDTO); |
| 68 | - //print_r( $objProcedimentoDTO->getObjProtocoloDTO() ); die(); | |
| 69 | 70 | |
| 70 | 71 | $objProtocoloDTOGerado = $objProtocoloRN->gerarRN0154($objProcedimentoDTO->getObjProtocoloDTO()); |
| 71 | 72 | ... | ... |
sei/institucional/peticionamento/rn/ProcessoPeticionamentoRN.php
| ... | ... | @@ -126,7 +126,6 @@ class ProcessoPeticionamentoRN extends InfraRN { |
| 126 | 126 | $idsContatos = array(); |
| 127 | 127 | $idsContatos[] = $arrParametros['hdnListaInteressados']; |
| 128 | 128 | $arrParticipantesParametro = $this->atribuirParticipantes($objProtocoloDTO, $this->montarArrContatosInteressados( $idsContatos ) ); |
| 129 | - //$arrParametros['hdnListaInteressados'] = SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno(); | |
| 130 | 129 | } |
| 131 | 130 | |
| 132 | 131 | //verificar se esta vindo o array de participantes |
| ... | ... | @@ -159,7 +158,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
| 159 | 158 | $objProcedimentoDTO->setDtaGeracaoProtocolo( InfraData::getStrDataAtual() ); |
| 160 | 159 | $objProcedimentoDTO->setStrProtocoloProcedimentoFormatado( $numeracaoProcesso ); |
| 161 | 160 | $objProcedimentoDTO->setStrSinGerarPendencia('S'); |
| 162 | - $objProcedimentoDTO->setNumVersaoLock(0); //TODO: Avaliar o comportamento desse campo no cadastro do processo | |
| 161 | + $objProcedimentoDTO->setNumVersaoLock(0); | |
| 163 | 162 | $objProcedimentoDTO->setArrObjDocumentoDTO(array()); |
| 164 | 163 | |
| 165 | 164 | //Identificar o tipo de procedimento correto para atribuição ao novo processo |
| ... | ... | @@ -188,15 +187,11 @@ class ProcessoPeticionamentoRN extends InfraRN { |
| 188 | 187 | $arrParams[2] = $objProcedimentoDTO; |
| 189 | 188 | $arrParams[3] = $arrParticipantesParametro; |
| 190 | 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 | 191 | $reciboPeticionamentoRN->montarRecibo( $arrParams ); |
| 196 | 192 | |
| 197 | 193 | $arrProcessoReciboRetorno = array(); |
| 198 | 194 | $arrProcessoReciboRetorno[0] = $reciboDTOBasico; |
| 199 | - //$arrProcessoReciboRetorno[0] = $retornoRecibo; | |
| 200 | 195 | $arrProcessoReciboRetorno[1] = $objProcedimentoDTO; |
| 201 | 196 | |
| 202 | 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 | 216 | $objAtividadeDTOLiberacao = new AtividadeDTO(); |
| 222 | 217 | $objAtividadeDTOLiberacao->retTodos(); |
| 223 | 218 | $objAtividadeDTOLiberacao->setDblIdProtocolo( $objProcedimentoDTO->getDblIdProcedimento() ); |
| 224 | - //$objAtividadeDTOLiberacao->setNumIdUnidade( $idUnidade ); | |
| 225 | 219 | $objAtividadeDTOLiberacao->setNumIdTarefa(TarefaRN::$TI_ACESSO_EXTERNO_SISTEMA); |
| 226 | 220 | |
| 227 | 221 | $arrDTOAtividades = $atividadeRN->listarRN0036( $objAtividadeDTOLiberacao ); |
| ... | ... | @@ -272,7 +266,6 @@ class ProcessoPeticionamentoRN extends InfraRN { |
| 272 | 266 | $objTipoProcDTO = $objTipoProcRN->consultar( $objTipoProcDTO ); |
| 273 | 267 | |
| 274 | 268 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
| 275 | - //$numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); | |
| 276 | 269 | |
| 277 | 270 | //==================================== |
| 278 | 271 | //gera no sistema as informações referentes ao documento principal |
| ... | ... | @@ -477,9 +470,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
| 477 | 470 | //============================= |
| 478 | 471 | $strTamanho = str_replace("","Kb", $itemAnexo->getNumTamanho() ); |
| 479 | 472 | $strTamanho = str_replace("","Mb", $strTamanho ); |
| 480 | - | |
| 481 | - //TODO aplicar regra para validar tamanho do anexo enviado | |
| 482 | - | |
| 473 | + | |
| 483 | 474 | $itemAnexo->setDblIdProtocolo( $objDocumentoDTO->getDblIdDocumento() ); |
| 484 | 475 | $itemAnexo->setNumIdUnidade( $objUnidadeDTO->getNumIdUnidade() ); |
| 485 | 476 | $itemAnexo->setNumTamanho( (int)$strTamanho ); |
| ... | ... | @@ -855,7 +846,7 @@ class ProcessoPeticionamentoRN extends InfraRN { |
| 855 | 846 | $arrParametros ){ |
| 856 | 847 | |
| 857 | 848 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
| 858 | - $numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); | |
| 849 | + //$numeroDocumento = $protocoloRN->gerarNumeracaoDocumento(); | |
| 859 | 850 | |
| 860 | 851 | $nivelAcessoDocPrincipal = $arrParametros['nivelAcessoDocPrincipal']; |
| 861 | 852 | $grauSigiloDocPrincipal = $arrParametros['grauSigiloDocPrincipal']; |
| ... | ... | @@ -870,8 +861,8 @@ class ProcessoPeticionamentoRN extends InfraRN { |
| 870 | 861 | $protocoloPrincipalDocumentoDTO->setDblIdProtocolo(null); |
| 871 | 862 | $protocoloPrincipalDocumentoDTO->setStrDescricao( null ); |
| 872 | 863 | $protocoloPrincipalDocumentoDTO->setStrStaNivelAcessoLocal( ProtocoloRN::$NA_PUBLICO ); |
| 873 | - $protocoloPrincipalDocumentoDTO->setStrProtocoloFormatado( $numeroDocumento ); | |
| 874 | - $protocoloPrincipalDocumentoDTO->setStrProtocoloFormatadoPesquisa( $numeroDocumento ); | |
| 864 | + //$protocoloPrincipalDocumentoDTO->setStrProtocoloFormatado( $numeroDocumento ); | |
| 865 | + //$protocoloPrincipalDocumentoDTO->setStrProtocoloFormatadoPesquisa( $numeroDocumento ); | |
| 875 | 866 | $protocoloPrincipalDocumentoDTO->setNumIdUnidadeGeradora( $objUnidadeDTO->getNumIdUnidade() ); |
| 876 | 867 | $protocoloPrincipalDocumentoDTO->setNumIdUsuarioGerador( SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno() ); |
| 877 | 868 | $protocoloPrincipalDocumentoDTO->setStrStaProtocolo( ProtocoloRN::$TP_DOCUMENTO_GERADO ); | ... | ... |
sei/institucional/peticionamento/rn/ProtocoloPeticionamentoRN.php
| ... | ... | @@ -4,7 +4,7 @@ require_once dirname(__FILE__).'/../../../SEI.php'; |
| 4 | 4 | |
| 5 | 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 | 8 | private function validarNumIdUnidadeGeradoraRN0213(ProtocoloDTO $objProtocoloDTO, InfraException $objInfraException){ |
| 9 | 9 | |
| 10 | 10 | if (InfraString::isBolVazia($objProtocoloDTO->getNumIdUnidadeGeradora())){ | ... | ... |
sei/institucional/peticionamento/rn/ReciboPeticionamentoRN.php
| ... | ... | @@ -184,8 +184,6 @@ class ReciboPeticionamentoRN extends InfraRN { |
| 184 | 184 | $grauSigiloDocPrincipal = $arrParametros['grauSigiloDocPrincipal']; |
| 185 | 185 | $hipoteseLegalDocPrincipal = $arrParametros['hipoteseLegalDocPrincipal']; |
| 186 | 186 | |
| 187 | - //TODO montar corretamente conteudo HTML final do recibo | |
| 188 | - //$htmlRecibo = "teste"; | |
| 189 | 187 | $htmlRecibo = $this->gerarHTMLConteudoDocRecibo( $arrParams ); |
| 190 | 188 | |
| 191 | 189 | $protocoloRN = new ProtocoloPeticionamentoRN(); |
| ... | ... | @@ -259,7 +257,6 @@ class ReciboPeticionamentoRN extends InfraRN { |
| 259 | 257 | |
| 260 | 258 | $documentoReciboDTO->setNumIdConjuntoEstilos(null); |
| 261 | 259 | |
| 262 | - //TODO de onde pega o tipo conferencia? | |
| 263 | 260 | $documentoReciboDTO->setNumIdTipoConferencia( null ); |
| 264 | 261 | $documentoReciboDTO->setStrNumero(''); //sistema atribui numeracao sequencial automatica |
| 265 | 262 | $documentoReciboDTO->setStrConteudo( $htmlRecibo ); | ... | ... |
sei/institucional/peticionamento/serie_peticionamento_lista.php
| ... | ... | @@ -119,51 +119,26 @@ try { |
| 119 | 119 | if ($_GET['acao'] == 'serie_peticionamento_selecionar'){ |
| 120 | 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 | 123 | $objSerieRN = new SerieRN(); |
| 140 | 124 | $objSerieDTO = new SerieDTO(true); |
| 141 | 125 | $objSerieDTO->retTodos(); |
| 142 | 126 | $objSerieDTO->retStrNome(); |
| 143 | - //$objSerieDTO->retStrDescricao(); | |
| 144 | 127 | $objSerieDTO->retStrNomeGrupoSerie(); |
| 145 | - //$objSerieDTO->retStrDescricaoModeloEdoc(); | |
| 146 | 128 | |
| 147 | 129 | $filtro = $_GET['filtro']; |
| 148 | - //echo "Filtro: " . $filtro; die(); | |
| 130 | + | |
| 149 | 131 | if($filtro == '1'){ |
| 150 | 132 | $tipoDoc = $_GET['tipoDoc']; |
| 151 | 133 | |
| 152 | 134 | //Todos DOCS |
| 153 | 135 | $aplicalidade = $tipoDoc == TipoProcessoPeticionamentoRN::$DOC_GERADO ? SerieRN::$TA_INTERNO : SerieRN::$TA_EXTERNO; |
| 154 | - //echo " Aplicalidade: " . $aplicalidade; die(); | |
| 155 | - | |
| 136 | + | |
| 156 | 137 | //ignorar o chkboxes "SinInterno", considerar apenas o campo Aplicabilidade em si |
| 157 | 138 | $objSerieDTO->adicionarCriterio(array('StaAplicabilidade'), |
| 158 | 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 | 144 | $numIdGrupoSerie = PaginaSEI::getInstance()->recuperarCampo('selGrupoSerie'); |
| ... | ... | @@ -195,7 +170,6 @@ try { |
| 195 | 170 | PaginaSEI::getInstance()->prepararOrdenacao($objSerieDTO, 'Nome', InfraDTO::$TIPO_ORDENACAO_ASC); |
| 196 | 171 | PaginaSEI::getInstance()->prepararPaginacao($objSerieDTO); |
| 197 | 172 | |
| 198 | - //print_r( $objSerieDTO ); die(); | |
| 199 | 173 | $arrObjSerieDTO = $objSerieRN->listarRN0646($objSerieDTO); |
| 200 | 174 | |
| 201 | 175 | PaginaSEI::getInstance()->processarPaginacao($objSerieDTO); | ... | ... |
sei/institucional/peticionamento/tipo_processo_peticionamento_cadastro.php
| ... | ... | @@ -290,7 +290,6 @@ try { |
| 290 | 290 | $arrIdTipoDocumentoEssencial = PaginaSEI::getInstance()->getArrValuesSelect($_POST['hdnSerieEssencial']); |
| 291 | 291 | $arrIdUnidadesSelecionadas = $_POST['hdnUnidadesSelecionadas'] != '' ? json_decode($_POST['hdnUnidadesSelecionadas']) : array(); |
| 292 | 292 | //para nao limpar os campos em caso de erro de duplicidade |
| 293 | - //print_r( $_POST ); die(); | |
| 294 | 293 | $tipoUnidade = is_array($_POST['rdUnidade']) ? current($_POST['rdUnidade']) : array(); |
| 295 | 294 | $nomeTipoProcesso = $_POST['txtTipoProcesso']; |
| 296 | 295 | $idTipoProcesso = $objTipoProcessoPeticionamentoDTO->getNumIdProcedimento(); |
| ... | ... | @@ -306,7 +305,6 @@ try { |
| 306 | 305 | $gerado = $objTipoProcessoPeticionamentoDTO->getStrSinDocGerado() == 'S' ? 'checked = checked' : ''; |
| 307 | 306 | $externo = $objTipoProcessoPeticionamentoDTO->getStrSinDocExterno() == 'S' ? 'checked = checked' : ''; |
| 308 | 307 | $nomeSerie = $_POST['txtTipoDocPrinc']; |
| 309 | - //$nomeSerie = $objTipoProcessoPeticionamentoDTO->getStrNomeSerie(); | |
| 310 | 308 | $idSerie = $objTipoProcessoPeticionamentoDTO->getNumIdSerie(); |
| 311 | 309 | $multipla = $tipoUnidade == 'M' ? true : false; |
| 312 | 310 | $unica = $tipoUnidade == 'U' ? true : false; | ... | ... |
sei/institucional/peticionamento/tipo_processo_peticionamento_lista.php
| ... | ... | @@ -63,9 +63,7 @@ try { |
| 63 | 63 | die; |
| 64 | 64 | |
| 65 | 65 | case 'tipo_processo_peticionamento_reativar': |
| 66 | - | |
| 67 | - //print_r($_GET); die(); | |
| 68 | - | |
| 66 | + | |
| 69 | 67 | $strTitulo = 'Reativar Tipo de Processo'; |
| 70 | 68 | |
| 71 | 69 | if ($_GET['acao_confirmada']=='sim'){ |
| ... | ... | @@ -118,20 +116,15 @@ try { |
| 118 | 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 | 119 | $arrComandos = array(); |
| 123 | 120 | if ($_GET['acao'] == 'tipo_processo_peticionamento_selecionar'){ |
| 124 | 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 | 124 | $objTipoProcessoPeticionamentoDTO = new TipoProcessoPeticionamentoDTO(); |
| 129 | 125 | $objTipoProcessoPeticionamentoDTO->retTodos(); |
| 130 | 126 | $objTipoProcessoPeticionamentoDTO->retStrNomeProcesso(); |
| 131 | - | |
| 132 | - //#6155 - removido. Agora serão n Unidades | |
| 133 | - //$objTipoProcessoPeticionamentoDTO->retStrSiglaUnidade(); | |
| 134 | - | |
| 127 | + | |
| 135 | 128 | //NomeProcesso |
| 136 | 129 | if(!(InfraString::isBolVazia($_POST['txtTipoProcesso']))){ |
| 137 | 130 | $objTipoProcessoPeticionamentoDTO->setStrNomeProcesso('%'.$_POST ['txtTipoProcesso'] . '%',InfraDTO::$OPER_LIKE); |
| ... | ... | @@ -208,8 +201,7 @@ try { |
| 208 | 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 | 205 | $bolCheck = true; |
| 214 | 206 | //$arrComandos[] = '<button type="button" accesskey="t" id="btnDesativar" value="Desativar" onclick="acaoDesativacaoMultipla();" class="infraButton">Desa<span class="infraTeclaAtalho">t</span>ivar</button>'; |
| 215 | 207 | $strLinkDesativar = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_processo_peticionamento_desativar&acao_origem='.$_GET['acao']); |
| ... | ... | @@ -217,8 +209,7 @@ try { |
| 217 | 209 | |
| 218 | 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 | 213 | $bolCheck = true; |
| 223 | 214 | //$arrComandos[] = '<button type="button" accesskey="E" id="btnExcluir" value="Excluir" onclick="acaoExclusaoMultipla();" class="infraButton"><span class="infraTeclaAtalho">E</span>xcluir</button>'; |
| 224 | 215 | $strLinkExcluir = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_processo_peticionamento_excluir&acao_origem='.$_GET['acao']); |
| ... | ... | @@ -466,7 +457,6 @@ PaginaSEI::getInstance()->fecharJavaScript(); |
| 466 | 457 | <?php |
| 467 | 458 | PaginaSEI::getInstance()->fecharHead(); |
| 468 | 459 | PaginaSEI::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
| 469 | -//print_r( $_GET ); die(); | |
| 470 | 460 | ?> |
| 471 | 461 | <form id="frmTipoProcessoPeticionamentoLista" method="post" action="<?=PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('controlador.php?acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> |
| 472 | 462 | ... | ... |