Commit 3e97e70339847e7814b2fd02b8a07795fa9039df
Exists in
master
and in
1 other branch
Merge branch 'Correcoes_pre_101' into 'master'
Correções para a release 1.0.1 Correção do erro de encode UTF-8 no retorno de validação de CPF e CNPJ. Correção nos nomes dos objetos de banco para limitar a 30 caracteres. Melhoria para que a validação de CPF e CNPJ seja perdida em razão de qualquer alteração no campo. See merge request !2
Showing
15 changed files
with
117 additions
and
146 deletions
Show diff stats
sei/institucional/peticionamento/PeticionamentoControladorExterno.php
| 1 | 1 | <? |
| 2 | 2 | /** |
| 3 | - * ANATEL | |
| 4 | - * | |
| 5 | - * Controlador responsavel por açoes do usuario externo | |
| 6 | - * 21/06/2016 - criado por marcelo.bezerra@cast.com.br - CAST | |
| 7 | - * | |
| 8 | - */ | |
| 3 | +* ANATEL | |
| 4 | +* | |
| 5 | +* Controlador responsavel por ações do Usuario Externo | |
| 6 | +* 21/06/2016 - criado por marcelo.bezerra@cast.com.br - CAST | |
| 7 | +* | |
| 8 | +*/ | |
| 9 | + | |
| 9 | 10 | class PeticionamentoControladorExterno implements ISeiControlador { |
| 10 | 11 | |
| 11 | 12 | public function processar($strAcao){ | ... | ... |
sei/institucional/peticionamento/dto/GerirExtensoesArquivoPeticionamentoDTO.php
| ... | ... | @@ -11,7 +11,7 @@ require_once dirname(__FILE__).'/../../../SEI.php'; |
| 11 | 11 | class GerirExtensoesArquivoPeticionamentoDTO extends InfraDTO { |
| 12 | 12 | |
| 13 | 13 | public function getStrNomeTabela() { |
| 14 | - return 'md_pet_extensao_arquivo_perm'; | |
| 14 | + return 'md_pet_ext_arquivo_perm'; | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | |
| ... | ... | @@ -19,7 +19,7 @@ class GerirExtensoesArquivoPeticionamentoDTO extends InfraDTO { |
| 19 | 19 | |
| 20 | 20 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, |
| 21 | 21 | 'IdExtensaoArquivoPerm', |
| 22 | - 'id_md_pet_extensao_arquivo_perm'); | |
| 22 | + 'id_md_pet_ext_arquivo_perm'); | |
| 23 | 23 | |
| 24 | 24 | |
| 25 | 25 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, | ... | ... |
sei/institucional/peticionamento/dto/IndisponibilidadeAnexoPeticionamentoDTO.php
| ... | ... | @@ -11,7 +11,7 @@ require_once dirname(__FILE__).'/../../../SEI.php'; |
| 11 | 11 | class IndisponibilidadeAnexoPeticionamentoDTO extends InfraDTO { |
| 12 | 12 | |
| 13 | 13 | public function getStrNomeTabela() { |
| 14 | - return 'md_pet_indisponibilidade_anexo'; | |
| 14 | + return 'md_pet_indisp_anexo'; | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function montar() { | ... | ... |
sei/institucional/peticionamento/dto/TipoProcessoOrientacoesPeticionamentoDTO.php
| ... | ... | @@ -19,7 +19,7 @@ class TipoProcessoOrientacoesPeticionamentoDTO extends InfraDTO { |
| 19 | 19 | |
| 20 | 20 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, |
| 21 | 21 | 'IdTipoProcessoOrientacoesPeticionamento', |
| 22 | - 'id_md_pet_tp_processo_orientacoes'); | |
| 22 | + 'id_md_pet_tp_proc_orientacoes'); | |
| 23 | 23 | |
| 24 | 24 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, |
| 25 | 25 | 'OrientacoesGerais', | ... | ... |
sei/institucional/peticionamento/dto/TipoProcessoPeticionamentoDTO.php
| ... | ... | @@ -23,22 +23,11 @@ class TipoProcessoPeticionamentoDTO extends InfraDTO { |
| 23 | 23 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, |
| 24 | 24 | 'IdProcedimento', |
| 25 | 25 | 'id_tipo_procedimento'); |
| 26 | - | |
| 27 | - //#6155 - removido. Agora serão n Unidades | |
| 28 | - //$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, | |
| 29 | - // 'IdUnidade', | |
| 30 | - // 'id_unidade'); | |
| 31 | 26 | |
| 32 | 27 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, |
| 33 | 28 | 'IdSerie', |
| 34 | 29 | 'id_serie'); |
| 35 | 30 | |
| 36 | - //REMOVIDO MODELO A PEDIDO DO CLIENTE | |
| 37 | - //$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, | |
| 38 | - // 'IdModelo', | |
| 39 | - // 'id_modelo'); | |
| 40 | - | |
| 41 | - //ADICIONADO HIPOTESE LEGAL A PEDIDO DO CLIENTE | |
| 42 | 31 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, |
| 43 | 32 | 'IdHipoteseLegal', |
| 44 | 33 | 'id_hipotese_legal'); |
| ... | ... | @@ -57,11 +46,11 @@ class TipoProcessoPeticionamentoDTO extends InfraDTO { |
| 57 | 46 | |
| 58 | 47 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, |
| 59 | 48 | 'SinIIIndicacaoDiretaCpfCnpj', |
| 60 | - 'sin_ii_indicacao_direta_cpf_cnpj'); | |
| 49 | + 'sin_ii_indic_direta_cpf_cnpj'); | |
| 61 | 50 | |
| 62 | 51 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, |
| 63 | 52 | 'SinIIIndicacaoDiretaContato', |
| 64 | - 'sin_ii_indicacao_direta_contato'); | |
| 53 | + 'sin_ii_indic_direta_contato'); | |
| 65 | 54 | |
| 66 | 55 | $this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, |
| 67 | 56 | 'SinNaUsuarioExterno', |
| ... | ... | @@ -97,12 +86,10 @@ class TipoProcessoPeticionamentoDTO extends InfraDTO { |
| 97 | 86 | $this->configurarFK('IdProcedimento', 'tipo_procedimento tipo', 'tipo.id_tipo_procedimento'); |
| 98 | 87 | $this->configurarFK('IdSerie', 'serie s', 's.id_serie', InfraDTO::$TIPO_FK_OPCIONAL); |
| 99 | 88 | |
| 100 | - //ADICIONADO HIPOTESE LEGAL A PEDIDO DO CLIENTE | |
| 101 | 89 | $this->configurarFK('IdHipoteseLegal', 'hipotese_legal hl', 'hl.id_hipotese_legal', InfraDTO::$TIPO_FK_OPCIONAL); |
| 102 | 90 | |
| 103 | 91 | $this->adicionarAtributo(InfraDTO::$PREFIXO_ARR,'ObjRelTipoProcessoSerieDTO'); |
| 104 | 92 | |
| 105 | - //#6155 - Add Campo a pedindo do cliente | |
| 106 | 93 | $this->adicionarAtributo(InfraDTO::$PREFIXO_ARR,'ObjRelTipoProcessoSerieEssDTO'); |
| 107 | 94 | }} |
| 108 | 95 | ?> |
| 109 | 96 | \ No newline at end of file | ... | ... |
sei/institucional/peticionamento/int/TipoProcessoPeticionamentoINT.php
| ... | ... | @@ -47,6 +47,7 @@ class TipoProcessoPeticionamentoINT extends InfraINT { |
| 47 | 47 | $objHipoteseLegalPeticionamentoDTO = new HipoteseLegalPeticionamentoDTO(); |
| 48 | 48 | $objHipoteseLegalPeticionamentoRN = new HipoteseLegalPeticionamentoRN(); |
| 49 | 49 | $objHipoteseLegalPeticionamentoDTO->retTodos(); |
| 50 | + $objHipoteseLegalPeticionamentoDTO->setOrd('Nome', InfraDTO::$TIPO_ORDENACAO_ASC); | |
| 50 | 51 | $countHipotesesPeticionamento = $objHipoteseLegalPeticionamentoRN->contar($objHipoteseLegalPeticionamentoDTO); |
| 51 | 52 | |
| 52 | 53 | if($countHipotesesPeticionamento > 0) |
| ... | ... | @@ -113,16 +114,21 @@ class TipoProcessoPeticionamentoINT extends InfraINT { |
| 113 | 114 | |
| 114 | 115 | if(count($arrObjNivelAcessoDTO) > 0 ){ |
| 115 | 116 | foreach($arrObjNivelAcessoDTO as $objNivelAcessoDTO){ |
| 116 | - $stringFim .= '<option value="'.$objNivelAcessoDTO->getStrStaNivelAcesso().'"'; | |
| 117 | 117 | |
| 118 | - if(!is_null($strValorItemSelecionado) && ($strValorItemSelecionado == $objNivelAcessoDTO->getStrStaNivelAcesso())){ | |
| 119 | - $stringFim .= 'selected = selected'; | |
| 118 | + if( $objNivelAcessoDTO->getStrStaNivelAcesso() != ProtocoloRN::$NA_SIGILOSO ){ | |
| 119 | + | |
| 120 | + $stringFim .= '<option value="'.$objNivelAcessoDTO->getStrStaNivelAcesso().'"'; | |
| 121 | + | |
| 122 | + if(!is_null($strValorItemSelecionado) && ($strValorItemSelecionado == $objNivelAcessoDTO->getStrStaNivelAcesso())){ | |
| 123 | + $stringFim .= 'selected = selected'; | |
| 124 | + } | |
| 125 | + | |
| 126 | + $stringFim .= '>'; | |
| 127 | + $stringFim .= $arrayDescricoes[$objNivelAcessoDTO->getStrStaNivelAcesso()]; | |
| 128 | + | |
| 129 | + $stringFim .= '</option>'; | |
| 120 | 130 | } |
| 121 | 131 | |
| 122 | - $stringFim .= '>'; | |
| 123 | - $stringFim .= $arrayDescricoes[$objNivelAcessoDTO->getStrStaNivelAcesso()]; | |
| 124 | - | |
| 125 | - $stringFim .= '</option>'; | |
| 126 | 132 | } |
| 127 | 133 | } |
| 128 | 134 | ... | ... |
sei/institucional/peticionamento/peticionamento_contato_selecionar.php
| ... | ... | @@ -440,6 +440,8 @@ function OnSubmitForm() { |
| 440 | 440 | } |
| 441 | 441 | |
| 442 | 442 | function validarPesquisaRI0570() { |
| 443 | + | |
| 444 | + /* | |
| 443 | 445 | if (document.getElementById('chkMaisOpcoesContatos').checked){ |
| 444 | 446 | |
| 445 | 447 | var dataNascIni = infraTrim(document.getElementById('txtNascimentoInicio').value); |
| ... | ... | @@ -453,6 +455,8 @@ function validarPesquisaRI0570() { |
| 453 | 455 | } |
| 454 | 456 | } |
| 455 | 457 | } |
| 458 | + */ | |
| 459 | + | |
| 456 | 460 | return true; |
| 457 | 461 | } |
| 458 | 462 | |
| ... | ... | @@ -503,7 +507,6 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"') |
| 503 | 507 | </option> |
| 504 | 508 | <? } ?> |
| 505 | 509 | |
| 506 | - <?//=$strItensSelTipoContextoContato?> | |
| 507 | 510 | </select> |
| 508 | 511 | |
| 509 | 512 | <? | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro.php
| ... | ... | @@ -168,15 +168,11 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
| 168 | 168 | |
| 169 | 169 | <label id="descTipoPessoa" class="infraLabelObrigatorio"> </label> <br/> |
| 170 | 170 | |
| 171 | - <input type="text" id="txtCPF" class="infraText" | |
| 172 | - name="txtCPF" | |
| 173 | - onkeypress="return alterandoCPF(this, event)" | |
| 174 | - style="width:140px; display:none;"/> | |
| 171 | + <input type="text" id="txtCPF" class="infraText" name="txtCPF" onkeyup="return alterandoCPF(this, event)" style="width:120px; display:none;" maxlength="14"/> | |
| 175 | 172 | |
| 176 | - <input type="text" id="txtCNPJ" class="infraText" name="txtCNPJ" onkeypress="return alterandoCNPJ(this, event)" | |
| 177 | - style="width:140px; display:none;"/> | |
| 173 | + <input type="text" id="txtCNPJ" class="infraText" name="txtCNPJ" onkeyup="return alterandoCNPJ(this, event)" style="width:120px; display:none;"/ maxlength="18"/> | |
| 178 | 174 | |
| 179 | - <input type="button" id="btValidarCPFCNPJ" class="infraText" value="Validar" style="visibility: hidden; margin-left: 2px;" onclick="abrirCadastroInteressado()" /> | |
| 175 | + <input type="button" id="btValidarCPFCNPJ" class="infraText" value="Validar" style="visibility: hidden; margin-left: 2px;" onclick="abrirCadastroInteressado()"/> | |
| 180 | 176 | |
| 181 | 177 | </div> |
| 182 | 178 | |
| ... | ... | @@ -198,7 +194,7 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
| 198 | 194 | |
| 199 | 195 | <table id="tbInteressadosIndicados" class="infraTable" width="98%" align="left" summary="Lista de Interessados" > |
| 200 | 196 | |
| 201 | - <caption class="infraCaption">Lista de Interessados:</caption> | |
| 197 | + <caption class="infraCaption"> </caption> | |
| 202 | 198 | |
| 203 | 199 | <tr> |
| 204 | 200 | <th class="infraTh" style="display: none;" > ID Contato </th> | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_bloco_documentos.php
| ... | ... | @@ -139,7 +139,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
| 139 | 139 | <label class="infraLabelObrigatorio">Hipótese Legal:</label> <br/> |
| 140 | 140 | <select class="infraSelect" id="hipoteseLegal1" name="hipoteseLegal1" style="width: 95%; float: left; margin-right: 5px;"> |
| 141 | 141 | <option value=""></option> |
| 142 | - <? //$isConfigHipoteseLegal $arrHipoteseLegal | |
| 142 | + <? | |
| 143 | 143 | if( $isConfigHipoteseLegal && is_array( $arrHipoteseLegal ) && count( $arrHipoteseLegal ) > 0 ) { |
| 144 | 144 | foreach( $arrHipoteseLegal as $itemObj ) { |
| 145 | 145 | ?> |
| ... | ... | @@ -195,7 +195,7 @@ $strLinkUploadDocComplementar = SessaoSEIExterna::getInstance()->assinarLink('co |
| 195 | 195 | <label class="infraLabelObrigatorio">Hipótese Legal:</label> <br/> |
| 196 | 196 | <select class="infraSelect" id="hipoteseLegal1" name="hipoteseLegal1" style="width: 95%; float: left; margin-right: 5px;"> |
| 197 | 197 | <option value=""></option> |
| 198 | - <? //$isConfigHipoteseLegal $arrHipoteseLegal | |
| 198 | + <? | |
| 199 | 199 | if( $isConfigHipoteseLegal && is_array( $arrHipoteseLegal ) && count( $arrHipoteseLegal ) > 0 ) { |
| 200 | 200 | foreach( $arrHipoteseLegal as $itemObj ) { |
| 201 | 201 | ?> | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_inicializacao.php
| ... | ... | @@ -257,6 +257,7 @@ if( $valorConfigHipoteseLegal == 1 || $valorConfigHipoteseLegal == 2){ |
| 257 | 257 | $hipoteseDTO = new HipoteseLegalDTO(); |
| 258 | 258 | $hipoteseDTO->retTodos(); |
| 259 | 259 | $hipoteseDTO->setStrSinAtivo('S'); |
| 260 | + $hipoteseDTO->setOrd('Nome', InfraDTO::$TIPO_ORDENACAO_ASC); | |
| 260 | 261 | $arrHipoteseLegal = $hipoteseRN->listar( $hipoteseDTO ); |
| 261 | 262 | |
| 262 | 263 | } | ... | ... |
sei/institucional/peticionamento/peticionamento_usuario_externo_cadastro_js.php
| ... | ... | @@ -522,7 +522,41 @@ function abrirJanelaDocumento( ){ |
| 522 | 522 | } |
| 523 | 523 | |
| 524 | 524 | function receberInteressado( arrDadosInteressado, InteressadoCustomizado ){ |
| 525 | + | |
| 526 | + //antes de adicionar verificar se o interessado ja está na grid | |
| 527 | + var strHash = document.getElementById('hdnListaInteressadosIndicados').value; | |
| 525 | 528 | |
| 529 | + //caractere de quebra de linha/registro | |
| 530 | + var arrHash = strHash.split('¥'); | |
| 531 | + var qtdX = arrHash.length; | |
| 532 | + | |
| 533 | + if( qtdX == 1 && arrHash[0] == "" ){ | |
| 534 | + | |
| 535 | + arrHash = Array(); | |
| 536 | + arrHash[0] = strHash; | |
| 537 | + | |
| 538 | + } | |
| 539 | + | |
| 540 | + if( strHash != "") { | |
| 541 | + | |
| 542 | + for(var i = 0; i < qtdX ; i++ ){ | |
| 543 | + | |
| 544 | + //caractere de quebra de coluna/campo | |
| 545 | + var arrLocal = arrHash[i].split('±'); | |
| 546 | + var idContato = arrLocal[0]; | |
| 547 | + | |
| 548 | + if( idContato == arrDadosInteressado[0]){ | |
| 549 | + alert('O Interessado informado já foi selecionado.'); | |
| 550 | + document.getElementById('txtCPF').value=''; | |
| 551 | + document.getElementById('txtNomeRazaoSocial').value=''; | |
| 552 | + return false; | |
| 553 | + } | |
| 554 | + | |
| 555 | + } | |
| 556 | + | |
| 557 | + } | |
| 558 | + | |
| 559 | + debugger; | |
| 526 | 560 | objTabelaInteressado.adicionar([ arrDadosInteressado[0], |
| 527 | 561 | arrDadosInteressado[1] , |
| 528 | 562 | arrDadosInteressado[2] , | ... | ... |
sei/institucional/peticionamento/rn/AcessoExternoPeticionamentoRN.php
| ... | ... | @@ -457,13 +457,6 @@ class AcessoExternoPeticionamentoRN extends InfraRN { |
| 457 | 457 | $objAtributoAndamentoDTO->setStrValor($objDocumentoDTO->getStrProtocoloDocumentoFormatado()); |
| 458 | 458 | $objAtributoAndamentoDTO->setStrIdOrigem($objDocumentoDTO->getDblIdDocumento()); |
| 459 | 459 | $arrObjAtributoAndamentoDTO[] = $objAtributoAndamentoDTO; |
| 460 | - | |
| 461 | - //a pedido do cliente removendo do historico / andamento a atividade de "liberar para assinatura" | |
| 462 | - //$objAtividadeDTO = new AtividadeDTO(); | |
| 463 | - //$objAtividadeDTO->setDblIdProtocolo($objDocumentoDTO->getDblIdProcedimento()); | |
| 464 | - //$objAtividadeDTO->setNumIdUnidade(SessaoSEI::getInstance()->getNumIdUnidadeAtual()); | |
| 465 | - //$objAtividadeDTO->setNumIdTarefa(TarefaRN::$TI_LIBERACAO_ASSINATURA_EXTERNA); | |
| 466 | - //$objAtividadeDTO->setArrObjAtributoAndamentoDTO($arrObjAtributoAndamentoDTO); | |
| 467 | 460 | |
| 468 | 461 | $objAtividadeDTO = new AtividadeDTO(); |
| 469 | 462 | $objAtividadeDTO->setDblIdProtocolo($objParticipanteDTO->getDblIdProtocolo()); |
| ... | ... | @@ -475,7 +468,6 @@ class AcessoExternoPeticionamentoRN extends InfraRN { |
| 475 | 468 | $objAtividadeDTO = $objAtividadeRN->gerarInternaRN0727($objAtividadeDTO); |
| 476 | 469 | |
| 477 | 470 | $objAtividadeRN = new AtividadeRN(); |
| 478 | - //a pedido do cliente removendo do historico / andamento a atividade de "liberar para assinatura" | |
| 479 | 471 | $objAtividadeDTO = $objAtividadeRN->gerarInternaRN0727($objAtividadeDTO); |
| 480 | 472 | $objAcessoExternoDTO->setNumIdAtividade($objAtividadeDTO->getNumIdAtividade()); |
| 481 | 473 | ... | ... |
sei/institucional/peticionamento/rn/AtualizadorModuloPeticionamentoRN.php
| ... | ... | @@ -497,17 +497,14 @@ ATENÇÃO: As informações contidas neste e-mail, incluindo seus anexos, podem ser |
| 497 | 497 | id_tipo_procedimento ' . $objInfraMetaBD->tipoNumero() . ' NOT NULL , |
| 498 | 498 | id_unidade ' . $objInfraMetaBD->tipoNumero() . ' NOT NULL , |
| 499 | 499 | id_serie ' . $objInfraMetaBD->tipoNumero() . ' DEFAULT NULL , ' |
| 500 | - //removendo modelo a pedido do cliente | |
| 501 | - //id_modelo ' . $objInfraMetaBD->tipoNumero() .' DEFAULT NULL , | |
| 502 | 500 | |
| 503 | - //adicionando hipotese legal a pedido do cliente | |
| 504 | 501 | . 'id_hipotese_legal ' . $objInfraMetaBD->tipoNumero() .' DEFAULT NULL , |
| 505 | 502 | orientacoes ' . $objInfraMetaBD->tipoTextoVariavel(500) .' NOT NULL, |
| 506 | 503 | sta_nivel_acesso ' . $objInfraMetaBD->tipoTextoFixo(1) . ' DEFAULT NULL, |
| 507 | 504 | sin_ii_proprio_usuario_externo ' . $objInfraMetaBD->tipoTextoFixo(1) .' DEFAULT NULL, |
| 508 | 505 | sin_ii_indicacao_direta ' . $objInfraMetaBD->tipoTextoFixo(1) .' DEFAULT NULL, |
| 509 | - sin_ii_indicacao_direta_cpf_cnpj ' . $objInfraMetaBD->tipoTextoFixo(1) . ' DEFAULT NULL, | |
| 510 | - sin_ii_indicacao_direta_contato ' . $objInfraMetaBD->tipoTextoFixo(1) . ' DEFAULT NULL, | |
| 506 | + sin_ii_indic_direta_cpf_cnpj ' . $objInfraMetaBD->tipoTextoFixo(1) . ' DEFAULT NULL, | |
| 507 | + sin_ii_indic_direta_contato ' . $objInfraMetaBD->tipoTextoFixo(1) . ' DEFAULT NULL, | |
| 511 | 508 | sin_na_usuario_externo ' . $objInfraMetaBD->tipoTextoFixo(1) . ' DEFAULT NULL, |
| 512 | 509 | sin_na_padrao ' . $objInfraMetaBD->tipoTextoFixo(1) . ' DEFAULT NULL, |
| 513 | 510 | sin_doc_gerado ' . $objInfraMetaBD->tipoTextoFixo(1) . ' DEFAULT NULL, |
| ... | ... | @@ -520,10 +517,6 @@ ATENÇÃO: As informações contidas neste e-mail, incluindo seus anexos, podem ser |
| 520 | 517 | $objInfraMetaBD->adicionarChaveEstrangeira('fk_pet_tp_proc_unidade_02','md_pet_tipo_processo',array('id_unidade'),'unidade',array('id_unidade')); |
| 521 | 518 | $objInfraMetaBD->adicionarChaveEstrangeira('fk_pet_tp_proc_serie_03','md_pet_tipo_processo',array('id_serie'),'serie',array('id_serie')); |
| 522 | 519 | |
| 523 | - //removendo modelo a pedido do cliente | |
| 524 | - //$objInfraMetaBD->adicionarChaveEstrangeira('fk_pet_tp_proc_modelo_04','md_pet_tipo_processo',array('id_modelo'),'modelo',array('id_modelo')); | |
| 525 | - | |
| 526 | - //adicionando hipotese legal a pedido do cliente | |
| 527 | 520 | $objInfraMetaBD->adicionarChaveEstrangeira('fk_pet_tp_proc_hip_legal_04','md_pet_tipo_processo',array('id_hipotese_legal'),'hipotese_legal',array('id_hipotese_legal')); |
| 528 | 521 | |
| 529 | 522 | if (BancoSEI::getInstance() instanceof InfraMySql){ |
| ... | ... | @@ -550,33 +543,33 @@ $objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_rel_tp_processo_serie_02', |
| 550 | 543 | $this->logar(' CRIANDO A TABELA md_pet_tp_processo_orientacoes'); |
| 551 | 544 | |
| 552 | 545 | BancoSEI::getInstance()->executarSql('CREATE TABLE md_pet_tp_processo_orientacoes ( |
| 553 | - id_md_pet_tp_processo_orientacoes ' . $objInfraMetaBD->tipoNumero() .' NOT NULL, | |
| 546 | + id_md_pet_tp_proc_orientacoes ' . $objInfraMetaBD->tipoNumero() .' NOT NULL, | |
| 554 | 547 | id_conjunto_estilos ' . $objInfraMetaBD->tipoNumero() .' NULL, |
| 555 | 548 | orientacoes_gerais ' . $objInfraMetaBD->tipoTextoGrande() .' NOT NULL )'); |
| 556 | 549 | |
| 557 | -$objInfraMetaBD->adicionarChavePrimaria('md_pet_tp_processo_orientacoes','pk_md_pet_tp_proc_orient',array('id_md_pet_tp_processo_orientacoes')); | |
| 550 | +$objInfraMetaBD->adicionarChavePrimaria('md_pet_tp_processo_orientacoes','pk_md_pet_tp_proc_orient',array('id_md_pet_tp_proc_orientacoes')); | |
| 558 | 551 | |
| 559 | 552 | $objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_tp_proc_or_cj_est','md_pet_tp_processo_orientacoes',array('id_conjunto_estilos'),'conjunto_estilos',array('id_conjunto_estilos')); |
| 560 | 553 | |
| 561 | 554 | //4 - md_pet_extensao_arquivo_perm |
| 562 | 555 | |
| 563 | -$this->logar(' CRIANDO A TABELA md_pet_extensao_arquivo_perm e sua sequence '); | |
| 556 | +$this->logar(' CRIANDO A TABELA md_pet_ext_arquivo_perm e sua sequence '); | |
| 564 | 557 | |
| 565 | -BancoSEI::getInstance()->executarSql(' CREATE TABLE IF NOT EXISTS md_pet_extensao_arquivo_perm ( | |
| 566 | - id_md_pet_extensao_arquivo_perm ' . $objInfraMetaBD->tipoNumero() . ' NOT NULL, | |
| 558 | +BancoSEI::getInstance()->executarSql(' CREATE TABLE IF NOT EXISTS md_pet_ext_arquivo_perm ( | |
| 559 | + id_md_pet_ext_arquivo_perm ' . $objInfraMetaBD->tipoNumero() . ' NOT NULL, | |
| 567 | 560 | id_arquivo_extensao ' . $objInfraMetaBD->tipoNumero() . ' DEFAULT NULL , |
| 568 | 561 | sin_principal ' . $objInfraMetaBD->tipoTextoFixo(1) .' NOT NULL, |
| 569 | 562 | sin_ativo ' . $objInfraMetaBD->tipoTextoFixo(1) . ' NOT NULL )'); |
| 570 | 563 | |
| 571 | -$objInfraMetaBD->adicionarChavePrimaria('md_pet_extensao_arquivo_perm','pk_md_pet_extensao_arquivo_perm',array('id_md_pet_extensao_arquivo_perm')); | |
| 572 | -$objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_ext_arquivo_perm_01','md_pet_extensao_arquivo_perm',array('id_arquivo_extensao'),'arquivo_extensao',array('id_arquivo_extensao')); | |
| 564 | +$objInfraMetaBD->adicionarChavePrimaria('md_pet_ext_arquivo_perm','pk_md_pet_extensao_arquivo_perm',array('id_md_pet_ext_arquivo_perm')); | |
| 565 | +$objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_ext_arquivo_perm_01','md_pet_ext_arquivo_perm',array('id_arquivo_extensao'),'arquivo_extensao',array('id_arquivo_extensao')); | |
| 573 | 566 | |
| 574 | 567 | if (BancoSEI::getInstance() instanceof InfraMySql){ |
| 575 | - BancoSEI::getInstance()->executarSql('create table seq_md_pet_extensao_arquivo_perm (id bigint not null primary key AUTO_INCREMENT, campo char(1) null) AUTO_INCREMENT = 1'); | |
| 568 | + BancoSEI::getInstance()->executarSql('create table seq_md_pet_ext_arquivo_perm (id bigint not null primary key AUTO_INCREMENT, campo char(1) null) AUTO_INCREMENT = 1'); | |
| 576 | 569 | } else if (BancoSEI::getInstance() instanceof InfraSqlServer){ |
| 577 | - BancoSEI::getInstance()->executarSql('create table seq_md_pet_extensao_arquivo_perm (id bigint identity(1,1), campo char(1) null)'); | |
| 570 | + BancoSEI::getInstance()->executarSql('create table seq_md_pet_ext_arquivo_perm (id bigint identity(1,1), campo char(1) null)'); | |
| 578 | 571 | } else if (BancoSEI::getInstance() instanceof InfraOracle){ |
| 579 | - BancoSEI::getInstance()->criarSequencialNativa('seq_md_pet_extensao_arquivo_perm', 1); | |
| 572 | + BancoSEI::getInstance()->criarSequencialNativa('seq_md_pet_ext_arquivo_perm', 1); | |
| 580 | 573 | } |
| 581 | 574 | |
| 582 | 575 | //6 - md_pet_tamanho_arquivo |
| ... | ... | @@ -590,7 +583,6 @@ BancoSEI::getInstance()->executarSql(' CREATE TABLE md_pet_tamanho_arquivo ( |
| 590 | 583 | |
| 591 | 584 | $objInfraMetaBD->adicionarChavePrimaria('md_pet_tamanho_arquivo','pk_md_pet_tamanho_arquivo',array('id_md_pet_tamanho_arquivo')); |
| 592 | 585 | |
| 593 | -// Inserindo valores defaults 10 para principal e 5 para complementar - Solicitação Cliente | |
| 594 | 586 | $objTamanhoArquivoDTO = new TamanhoArquivoPermitidoPeticionamentoDTO(); |
| 595 | 587 | $objTamanhoArquivoRN = new TamanhoArquivoPermitidoPeticionamentoRN(); |
| 596 | 588 | |
| ... | ... | @@ -624,9 +616,9 @@ if (BancoSEI::getInstance() instanceof InfraMySql){ |
| 624 | 616 | } |
| 625 | 617 | |
| 626 | 618 | //8 - md_pet_indisponibilidade_anexo e sequence |
| 627 | -$this->logar(' CRIANDO A TABELA md_pet_indisponibilidade_anexo e sequence '); | |
| 619 | +$this->logar(' CRIANDO A TABELA md_pet_indisp_anexo e sequence '); | |
| 628 | 620 | |
| 629 | -BancoSEI::getInstance()->executarSql(' CREATE TABLE md_pet_indisponibilidade_anexo ( | |
| 621 | +BancoSEI::getInstance()->executarSql(' CREATE TABLE md_pet_indisp_anexo ( | |
| 630 | 622 | id_md_pet_anexo ' . $objInfraMetaBD->tipoNumero() .' NOT NULL, |
| 631 | 623 | id_md_pet_indisponibilidade ' . $objInfraMetaBD->tipoNumero() .' NOT NULL, |
| 632 | 624 | id_unidade ' . $objInfraMetaBD->tipoNumero() .' NOT NULL, |
| ... | ... | @@ -637,18 +629,18 @@ BancoSEI::getInstance()->executarSql(' CREATE TABLE md_pet_indisponibilidade_ane |
| 637 | 629 | sin_ativo ' . $objInfraMetaBD->tipoTextoFixo(1) . ' NOT NULL, |
| 638 | 630 | hash ' . $objInfraMetaBD->tipoTextoFixo(32) . ' NOT NULL ) '); |
| 639 | 631 | |
| 640 | -$objInfraMetaBD->adicionarChavePrimaria('md_pet_indisponibilidade_anexo','pk_pet_indisponibilidade_anexo',array('id_md_pet_anexo')); | |
| 632 | +$objInfraMetaBD->adicionarChavePrimaria('md_pet_indisp_anexo','pk_pet_indisponibilidade_anexo',array('id_md_pet_anexo')); | |
| 641 | 633 | |
| 642 | -$objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_indisp_anexo_01','md_pet_indisponibilidade_anexo',array('id_md_pet_indisponibilidade'),'md_pet_indisponibilidade',array('id_md_pet_indisponibilidade')); | |
| 643 | -$objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_indisp_anexo_02','md_pet_indisponibilidade_anexo',array('id_unidade'),'unidade',array('id_unidade')); | |
| 644 | -$objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_indisp_anexo_03','md_pet_indisponibilidade_anexo',array('id_usuario'),'usuario',array('id_usuario')); | |
| 634 | +$objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_indisp_anexo_01','md_pet_indisp_anexo',array('id_md_pet_indisponibilidade'),'md_pet_indisponibilidade',array('id_md_pet_indisponibilidade')); | |
| 635 | +$objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_indisp_anexo_02','md_pet_indisp_anexo',array('id_unidade'),'unidade',array('id_unidade')); | |
| 636 | +$objInfraMetaBD->adicionarChaveEstrangeira('fk_md_pet_indisp_anexo_03','md_pet_indisp_anexo',array('id_usuario'),'usuario',array('id_usuario')); | |
| 645 | 637 | |
| 646 | 638 | if (BancoSEI::getInstance() instanceof InfraMySql){ |
| 647 | - BancoSEI::getInstance()->executarSql('create table seq_md_pet_indisponibilidade_anexo (id bigint not null primary key AUTO_INCREMENT, campo char(1) null) AUTO_INCREMENT = 1'); | |
| 639 | + BancoSEI::getInstance()->executarSql('create table seq_md_pet_indisp_anexo (id bigint not null primary key AUTO_INCREMENT, campo char(1) null) AUTO_INCREMENT = 1'); | |
| 648 | 640 | } else if (BancoSEI::getInstance() instanceof InfraSqlServer){ |
| 649 | - BancoSEI::getInstance()->executarSql('create table seq_md_pet_indisponibilidade_anexo (id bigint identity(1,1), campo char(1) null)'); | |
| 641 | + BancoSEI::getInstance()->executarSql('create table seq_md_pet_indisp_anexo (id bigint identity(1,1), campo char(1) null)'); | |
| 650 | 642 | } else if (BancoSEI::getInstance() instanceof InfraOracle){ |
| 651 | - BancoSEI::getInstance()->criarSequencialNativa('seq_md_pet_indisponibilidade_anexo', 1); | |
| 643 | + BancoSEI::getInstance()->criarSequencialNativa('seq_md_pet_indisp_anexo', 1); | |
| 652 | 644 | } |
| 653 | 645 | |
| 654 | 646 | //adicionando parametro para controlar versao do modulo | ... | ... |
sei/institucional/peticionamento/rn/HipoteseLegalPeticionamentoRN.php
| ... | ... | @@ -79,6 +79,7 @@ class HipoteseLegalPeticionamentoRN extends InfraRN { |
| 79 | 79 | $objHipoteseLegalBD = new HipoteseLegalBD($this->getObjInfraIBanco()); |
| 80 | 80 | $objHipoteseLegalDTO = new HipoteseLegalDTO(); |
| 81 | 81 | $objHipoteseLegalDTO->retTodos(); |
| 82 | + $objHipoteseLegalDTO->setOrd('Nome', InfraDTO::$TIPO_ORDENACAO_ASC); | |
| 82 | 83 | |
| 83 | 84 | $objHipoteseLegalDTO->adicionarCriterio(array('IdHipoteseLegal'), |
| 84 | 85 | array(InfraDTO::$OPER_IN), | ... | ... |
sei/institucional/peticionamento/tipo_processo_peticionamento_cadastro.php
| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | /** |
| 3 | 3 | * ANATEL |
| 4 | 4 | * |
| 5 | +* Construi a tela de Cadastro, Alteração e Consulta de Tipos de Processos para Peticionamento | |
| 5 | 6 | * 15/04/2016 - criado por jaqueline.mendes@cast.com.br - CAST |
| 6 | 7 | * |
| 7 | 8 | */ |
| ... | ... | @@ -69,7 +70,6 @@ try { |
| 69 | 70 | |
| 70 | 71 | $strItensSelNivelAcesso = ''; |
| 71 | 72 | $strItensSelHipoteseLegal = ''; |
| 72 | - //$strItensSelHipoteseLegal = TipoProcessoPeticionamentoINT::montarSelectHipoteseLegal(null, null, ProtocoloRN::$NA_RESTRITO ); | |
| 73 | 73 | |
| 74 | 74 | //Preencher Array de Unidades para buscar posteriormente |
| 75 | 75 | $objUnidadeDTO = new UnidadeDTO(); |
| ... | ... | @@ -911,35 +911,25 @@ $idTabela = 'tabNomeUnidade_' .$cadaObjUnidadeDTO->getNumIdUnidade(); |
| 911 | 911 | <fieldset class="infraFieldset" style="width:75%;"> |
| 912 | 912 | <legend class="infraLegend"> Indicação de Interessado </legend> |
| 913 | 913 | |
| 914 | - <input onclick="changeIndicacaoInteressado()" type="radio" id="rdUsuExterno" name="indicacaoInteressado[]" value="1" <?php echo $sinIndIntUsExt ?>> | |
| 915 | - <label for="rdUsuExterno" id="lblUsuExterno" class="infraLabelRadio"> | |
| 916 | - Próprio Usuário Externo | |
| 917 | - </label> | |
| 918 | - <br/> | |
| 919 | - <input onclick="changeIndicacaoInteressado()" type="radio" name="indicacaoInteressado[]" id="rdIndicacaoIndireta" value="2" <?php echo $sinIndIntIndIndir ?>> | |
| 920 | - <label name="lblIndicacaoIndireta" id="lblIndicacaoIndireta" for="rdIndicacaoIndireta" class="infraLabelRadio"> | |
| 921 | - Indicação Direta | |
| 922 | - </label> | |
| 923 | - | |
| 924 | - <br/> | |
| 925 | - <div id="divRdIndicacaoIndiretaHide" <?php echo $sinIndIntIndIndir != '' ? 'style="display: inherit;"' : 'style="display: none;"'?> > | |
| 926 | - <input <?php echo $sinIndIntIndCpfCn; ?> type="radio" name="indicacaoIndireta[]" id="indicacaoIndireta1" class="rdIndicacaoIndiretaHide" value="3"> | |
| 927 | - <label name="lblInformandoCpfCnpj" for="indicacaoIndireta1" id="lblInformandoCpfCnpj" | |
| 928 | - class="lblIndicacaoIndiretaHide infraLabelRadio"> | |
| 929 | - Informando CPF ou CNPJ | |
| 930 | - </label> | |
| 931 | - <br/> | |
| 932 | - | |
| 933 | - <input <?php echo $sinIndIntIndConta; ?> type="radio" name="indicacaoIndireta[]" id="indicacaoIndireta2" class="rdIndicacaoIndiretaHide" value="4"> | |
| 934 | - <label for="indicacaoIndireta2" id="lblContatosJaExistentes" name="lblContatosJaExistentes" | |
| 935 | - class="lblIndicacaoIndiretaHide infraLabelRadio"> | |
| 936 | - Digitando nome de Contatos já existentes | |
| 937 | - </label> | |
| 938 | - </div> | |
| 939 | - </fieldset> | |
| 940 | - </div> | |
| 941 | - | |
| 942 | -</br> | |
| 914 | + <input onclick="changeIndicacaoInteressado()" type="radio" id="rdUsuExterno" name="indicacaoInteressado[]" value="1" <?php echo $sinIndIntUsExt ?>> | |
| 915 | + <label for="rdUsuExterno" id="lblUsuExterno" class="infraLabelRadio">Próprio Usuário Externo</label> | |
| 916 | + <br/> | |
| 917 | + <input onclick="changeIndicacaoInteressado()" type="radio" name="indicacaoInteressado[]" id="rdIndicacaoIndireta" value="2" <?php echo $sinIndIntIndIndir ?>> | |
| 918 | + <label name="lblIndicacaoIndireta" id="lblIndicacaoIndireta" for="rdIndicacaoIndireta" class="infraLabelRadio">Indicação Direta</label> | |
| 919 | + <br/> | |
| 920 | + | |
| 921 | + <div id="divRdIndicacaoIndiretaHide" <?php echo $sinIndIntIndIndir != '' ? 'style="display: inherit;"' : 'style="display: none;"'?> > | |
| 922 | + <input <?php echo $sinIndIntIndCpfCn; ?> type="radio" name="indicacaoIndireta[]" id="indicacaoIndireta1" class="rdIndicacaoIndiretaHide" value="3"> | |
| 923 | + <label name="lblInformandoCpfCnpj" for="indicacaoIndireta1" id="lblInformandoCpfCnpj" class="lblIndicacaoIndiretaHide infraLabelRadio">Informando CPF ou CNPJ</label> | |
| 924 | + <br/> | |
| 925 | + | |
| 926 | + <input <?php echo $sinIndIntIndConta; ?> type="radio" name="indicacaoIndireta[]" id="indicacaoIndireta2" class="rdIndicacaoIndiretaHide" value="4"> | |
| 927 | + <label for="indicacaoIndireta2" id="lblContatosJaExistentes" name="lblContatosJaExistentes" class="lblIndicacaoIndiretaHide infraLabelRadio">Digitando nome de Contatos já existentes</label> | |
| 928 | + </div> | |
| 929 | + | |
| 930 | + </fieldset> | |
| 931 | + </div> | |
| 932 | + </br> | |
| 943 | 933 | |
| 944 | 934 | <!-- Fim da Indicação de Interessados --> |
| 945 | 935 | |
| ... | ... | @@ -949,21 +939,15 @@ $idTabela = 'tabNomeUnidade_' .$cadaObjUnidadeDTO->getNumIdUnidade(); |
| 949 | 939 | <div> |
| 950 | 940 | <input <?php echo $sinNAUsuExt; ?> type="radio" name="rdNivelAcesso[]" id="rdUsuExternoIndicarEntrePermitidos" onclick="changeNivelAcesso();" value="1"> |
| 951 | 941 | |
| 952 | - <label for="rdUsuExternoIndicarEntrePermitidos" id="lblUsuExterno" class="infraLabelRadio"> | |
| 953 | - Usuário Externo indicar diretamente | |
| 954 | - </label> | |
| 942 | + <label for="rdUsuExternoIndicarEntrePermitidos" id="lblUsuExterno" class="infraLabelRadio">Usuário Externo indica diretamente</label> | |
| 955 | 943 | <br/> |
| 956 | 944 | |
| 957 | 945 | <input <?php echo $sinNAPadrao; ?> type="radio" name="rdNivelAcesso[]" id="rdPadrao" onclick="changeNivelAcesso();" value="2"> |
| 958 | - <label name="lblPadrao" id="lblPadrao" for="rdPadrao" class="infraLabelRadio"> | |
| 959 | - Padrão pré definido | |
| 960 | - </label> | |
| 946 | + <label name="lblPadrao" id="lblPadrao" for="rdPadrao" class="infraLabelRadio">Padrão pré definido</label> | |
| 961 | 947 | |
| 962 | 948 | <div id="divNivelAcesso" <?php echo $sinNAPadrao != '' ? 'style="display: inherit;"' : 'style="display: none;"'?>> |
| 963 | 949 | <div style="clear:both;"> </div> |
| 964 | - <label name="lblNivelAcesso" id="lblNivelAcesso" for="selNivelAcesso" class="infraLabelObrigatorio"> | |
| 965 | - Nível de Acesso: | |
| 966 | - </label> | |
| 950 | + <label name="lblNivelAcesso" id="lblNivelAcesso" for="selNivelAcesso" class="infraLabelObrigatorio">Nível de Acesso:</label> | |
| 967 | 951 | <br/> |
| 968 | 952 | <select id="selNivelAcesso" name="selNivelAcesso" onchange="changeSelectNivelAcesso()"> |
| 969 | 953 | <?=$strItensSelNivelAcesso?> |
| ... | ... | @@ -972,9 +956,7 @@ $idTabela = 'tabNomeUnidade_' .$cadaObjUnidadeDTO->getNumIdUnidade(); |
| 972 | 956 | |
| 973 | 957 | <div id="divHipoteseLegal" <?php echo $hipoteseLegal //$sinNAPadrao != '' ? 'style="display: inherit;"' : 'style="display: none;"'?> > |
| 974 | 958 | <div style="clear:both;"> </div> |
| 975 | - <label name="lblHipoteseLegal" id="lblHipoteseLegal" for="selHipoteseLegal" class="infraLabelObrigatorio"> | |
| 976 | - Hipótese Legal: | |
| 977 | - </label> | |
| 959 | + <label name="lblHipoteseLegal" id="lblHipoteseLegal" for="selHipoteseLegal" class="infraLabelObrigatorio">Hipótese Legal:</label> | |
| 978 | 960 | <br/> |
| 979 | 961 | <select id="selHipoteseLegal" name="selHipoteseLegal"> |
| 980 | 962 | <?=$strItensSelHipoteseLegal?> |
| ... | ... | @@ -1300,8 +1282,6 @@ function changeDocPrincipal(){ |
| 1300 | 1282 | var gerado = document.getElementsByName('rdDocPrincipal[]')[0].checked; |
| 1301 | 1283 | var tipo = ''; |
| 1302 | 1284 | |
| 1303 | - //REMOVIDO MODELO A PEDIDO DO CLIENTE | |
| 1304 | - //document.getElementById('divModelo').style.display = "none"; | |
| 1305 | 1285 | document.getElementById('divDocPrincipal').style.display = "inherit"; |
| 1306 | 1286 | document.getElementById('fldDocEssenciais').style.display = "inherit"; |
| 1307 | 1287 | document.getElementById('fldDocComplementar').style.display = "inherit"; |
| ... | ... | @@ -1311,26 +1291,13 @@ function changeDocPrincipal(){ |
| 1311 | 1291 | } |
| 1312 | 1292 | |
| 1313 | 1293 | if(gerado){ |
| 1314 | - | |
| 1315 | 1294 | tipo = 'G'; |
| 1316 | - | |
| 1317 | - //REMOVIDO MODELO A PEDIDO DO CLIENTE | |
| 1318 | - //document.getElementById('selModelo').value = ''; | |
| 1319 | - | |
| 1320 | 1295 | document.getElementById('txtTipoDocPrinc').value = ''; |
| 1321 | - | |
| 1322 | - //REMOVIDO MODELO A PEDIDO DO CLIENTE | |
| 1323 | - //document.getElementById('divModelo').style.display = "inherit"; | |
| 1324 | - | |
| 1325 | 1296 | document.getElementsByName("rdDocPrincipal[]")[0].focus(); |
| 1326 | - //document.getElementById('fldDocComplementar').style.display = "inherit"; | |
| 1327 | 1297 | }else{ |
| 1328 | 1298 | tipo = 'E'; |
| 1329 | - //REMOVIDO MODELO A PEDIDO DO CLIENTE | |
| 1330 | - //document.getElementById('selModelo').value = ''; | |
| 1331 | 1299 | document.getElementById('txtTipoDocPrinc').value = ''; |
| 1332 | 1300 | document.getElementsByName("rdDocPrincipal[]")[1].focus(); |
| 1333 | - //document.getElementById('fldDocComplementar').style.display = "inherit"; | |
| 1334 | 1301 | } |
| 1335 | 1302 | |
| 1336 | 1303 | carregarComponenteAutoCompleteTpDocPrinc(tipo); |
| ... | ... | @@ -1787,15 +1754,6 @@ if (!validoDP) { |
| 1787 | 1754 | return false; |
| 1788 | 1755 | } |
| 1789 | 1756 | |
| 1790 | -//REMOVIDO MODELO A PEDIDO DO CLIENTE | |
| 1791 | -/* | |
| 1792 | -if (elemsDP[0].checked == true && infraTrim(document.getElementById('selModelo').value)=='') { | |
| 1793 | - alert('Informe o Modelo.'); | |
| 1794 | - document.getElementById('selModelo').focus(); | |
| 1795 | - return false; | |
| 1796 | -} | |
| 1797 | -*/ | |
| 1798 | - | |
| 1799 | 1757 | if (infraTrim(document.getElementById('txtTipoDocPrinc').value)=='') { |
| 1800 | 1758 | alert('Informe o Tipo de Documento Principal.'); |
| 1801 | 1759 | document.getElementById('txtOrientacoes').focus(); | ... | ... |