Commit 2396d0ff1d9368f6824ab1b14b733b9aef362a63
1 parent
df50c2ff
Exists in
master
and in
1 other branch
Atualização geral da versão beta do módulo.
Showing
16 changed files
with
290 additions
and
140 deletions
Show diff stats
sei/web/modulos/peticionamento/PeticionamentoIntegracao.php
| ... | ... | @@ -168,9 +168,9 @@ class PeticionamentoIntegracao extends SeiIntegracao { |
| 168 | 168 | $xml = InfraAjax::gerarXMLItensArrInfraDTO($arrObjTipoProcessoDTO,'IdTipoProcedimento', 'Nome'); |
| 169 | 169 | break; |
| 170 | 170 | |
| 171 | - case 'tipo_processo_auto_completar_intercorretne': | |
| 171 | + case 'tipo_processo_auto_completar_intercorrente': | |
| 172 | 172 | $arrObjTipoProcessoDTO = TipoProcessoPeticionamentoINT::autoCompletarTipoProcedimento($_POST['palavras_pesquisa'], $_POST['itens_selecionados'] ); |
| 173 | - $xml = TipoProcessoPeticionamentoINT::gerarXMLItensArrInfraApi($arrObjTipoProcessoDTO,'IdTipoProcedimento', 'Nome'); | |
| 173 | + $xml = InfraAjax::gerarXMLItensArrInfraDTO($arrObjTipoProcessoDTO,'IdTipoProcedimento', 'Nome'); | |
| 174 | 174 | break; |
| 175 | 175 | |
| 176 | 176 | case 'tipo_processo_auto_completar_com_assunto': |
| ... | ... | @@ -318,7 +318,7 @@ class PeticionamentoIntegracao extends SeiIntegracao { |
| 318 | 318 | |
| 319 | 319 | if (isset($_FILES['fileArquivoPrincipal'])){ |
| 320 | 320 | |
| 321 | - PaginaSEIExterna::getInstance()->processarUpload('fileArquivoPrincipal', DIR_SEI_TEMP, true); | |
| 321 | + PaginaSEIExterna::getInstance()->processarUpload('fileArquivoPrincipal', DIR_SEI_TEMP, false); | |
| 322 | 322 | } |
| 323 | 323 | die; |
| 324 | 324 | |
| ... | ... | @@ -326,7 +326,7 @@ class PeticionamentoIntegracao extends SeiIntegracao { |
| 326 | 326 | |
| 327 | 327 | if (isset($_FILES['fileArquivoEssencial'])){ |
| 328 | 328 | |
| 329 | - PaginaSEIExterna::getInstance()->processarUpload('fileArquivoEssencial', DIR_SEI_TEMP, true); | |
| 329 | + PaginaSEIExterna::getInstance()->processarUpload('fileArquivoEssencial', DIR_SEI_TEMP, false); | |
| 330 | 330 | } |
| 331 | 331 | die; |
| 332 | 332 | |
| ... | ... | @@ -334,7 +334,7 @@ class PeticionamentoIntegracao extends SeiIntegracao { |
| 334 | 334 | |
| 335 | 335 | if (isset($_FILES['fileArquivoComplementar'])){ |
| 336 | 336 | |
| 337 | - PaginaSEIExterna::getInstance()->processarUpload('fileArquivoComplementar', DIR_SEI_TEMP, true); | |
| 337 | + PaginaSEIExterna::getInstance()->processarUpload('fileArquivoComplementar', DIR_SEI_TEMP, false); | |
| 338 | 338 | } |
| 339 | 339 | die; |
| 340 | 340 | |
| ... | ... | @@ -363,30 +363,25 @@ class PeticionamentoIntegracao extends SeiIntegracao { |
| 363 | 363 | |
| 364 | 364 | $cpfcnpj = $_POST['cpfcnpj']; |
| 365 | 365 | $cpfcnpj = str_replace(".","", $cpfcnpj ); |
| 366 | - $cpfcnpj = str_replace("-","", $cpfcnpj ); | |
| 367 | - $cpfcnpj = str_replace("/","", $cpfcnpj ); | |
| 368 | - | |
| 369 | - $total = ContatoPeticionamentoINT::getTotalContatoByCPFCNPJ( $cpfcnpj ); | |
| 370 | - $json = null; | |
| 371 | - | |
| 372 | - if( $total == 1 ) { | |
| 373 | - | |
| 374 | - $objContatoDTO = ContatoPeticionamentoINT::getContatoByCPFCNPJ( $cpfcnpj ); | |
| 375 | - | |
| 376 | - if( $objContatoDTO != null){ | |
| 377 | - $objContato = new stdClass(); | |
| 378 | - $objContato->usuario = $objContatoDTO->getNumIdUsuarioCadastro(); | |
| 379 | - $objContato->nome = utf8_encode( $objContatoDTO->getStrNome() ); | |
| 380 | - $objContato->id = utf8_encode( $objContatoDTO->getNumIdContato() ); | |
| 381 | - $objContato->nomeTratado = PaginaSEI::tratarHTML($objContatoDTO->getStrNome()); | |
| 382 | - $json = json_encode( $objContato , JSON_FORCE_OBJECT); | |
| 383 | - } | |
| 384 | - | |
| 385 | - } | |
| 386 | - | |
| 387 | - echo $json; | |
| 366 | + $cpfcnpj = str_replace("-","", $cpfcnpj ); | |
| 367 | + $cpfcnpj = str_replace("/","", $cpfcnpj ); | |
| 368 | + | |
| 369 | + $objContextoContatoDTO = ContatoPeticionamentoINT::getTotalContatoByCPFCNPJ( $cpfcnpj ); | |
| 370 | + | |
| 371 | + if(count($objContextoContatoDTO)>0) { | |
| 372 | + $objContato = new stdClass(); | |
| 373 | + $objContato->usuario = $objContextoContatoDTO[0]->getNumIdUsuarioCadastro(); | |
| 374 | + $objContato->nome = utf8_encode( $objContextoContatoDTO[0]->getStrNome() ); | |
| 375 | + $objContato->id = utf8_encode( $objContextoContatoDTO[0]->getNumIdContato() ); | |
| 376 | + $objContato->nomeTratado = PaginaSEI::tratarHTML($objContextoContatoDTO[0]->getStrNome()); | |
| 377 | + $json = json_encode( $objContato , JSON_FORCE_OBJECT); | |
| 378 | + }else{ | |
| 379 | + $json = null; | |
| 380 | + } | |
| 388 | 381 | |
| 389 | - return true; | |
| 382 | + echo $json; | |
| 383 | + return true; | |
| 384 | + break; | |
| 390 | 385 | |
| 391 | 386 | //EU7050 |
| 392 | 387 | case 'validar_numero_processo_peticionamento': | ... | ... |
sei/web/modulos/peticionamento/criterio_intercorrente_peticionamento_cadastro.php
| ... | ... | @@ -33,7 +33,7 @@ try { |
| 33 | 33 | |
| 34 | 34 | //Tipo Processo |
| 35 | 35 | $strLinkTipoProcessoSelecao = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_procedimento_selecionar&tipo_selecao=2&id_object=objLupaTipoProcesso'); |
| 36 | - $strLinkAjaxTipoProcesso = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=tipo_processo_auto_completar_intercorretne'); | |
| 36 | + $strLinkAjaxTipoProcesso = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=tipo_processo_auto_completar_intercorrente'); | |
| 37 | 37 | if ($_GET['acao'] == 'criterio_intercorrente_peticionamento_alterar') { |
| 38 | 38 | $strLinkTipoProcessoSelecao = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_procedimento_selecionar&tipo_selecao=1&id_object=objLupaTipoProcesso'); |
| 39 | 39 | } | ... | ... |
sei/web/modulos/peticionamento/criterio_intercorrente_peticionamento_lista.php
| ... | ... | @@ -400,7 +400,7 @@ $arrNivelAcesso = array( |
| 400 | 400 | <div style="height:4.5em; margin-top: 11px;" class="infraAreaDados" id="divInfraAreaDados"> |
| 401 | 401 | <!-- Nome do Menu --> |
| 402 | 402 | <label id="lblTipoProcesso" for="txtTipoProcesso" class="infraLabelOpcional">Tipo de Processo:</label> |
| 403 | - <input type="text" name="txtTipoProcesso" id="txtTipoProcesso" maxlength="30" value="<?= $txtTipoProcesso ?>" class="infraText" /> | |
| 403 | + <input type="text" name="txtTipoProcesso" id="txtTipoProcesso" value="<?= $txtTipoProcesso ?>" class="infraText" /> | |
| 404 | 404 | <!-- Tipo do Menu --> |
| 405 | 405 | <label id="lblTipo" for="selTipo" class="infraLabelOpcional">Nível de Acesso dos Documentos:</label> |
| 406 | 406 | <select onchange="pesquisar()" id="selTipo" name="selTipo" class="infraSelect" > | ... | ... |
sei/web/modulos/peticionamento/criterio_intercorrente_peticionamento_padrao.php
| ... | ... | @@ -33,7 +33,7 @@ try { |
| 33 | 33 | //Tipo Processo |
| 34 | 34 | $strLinkTipoProcessoSelecao = SessaoSEI::getInstance()->assinarLink('controlador.php?acao=tipo_procedimento_selecionar&tipo_selecao=1&id_object=objLupaTipoProcesso'); |
| 35 | 35 | |
| 36 | - $strLinkAjaxTipoProcesso = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=tipo_processo_auto_completar_intercorretne'); | |
| 36 | + $strLinkAjaxTipoProcesso = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=tipo_processo_auto_completar_intercorrente'); | |
| 37 | 37 | |
| 38 | 38 | //$strLinkAjaxTipoProcesso = SessaoSEI::getInstance()->assinarLink('controlador_ajax.php?acao_ajax=tipo_processo_auto_completar'); |
| 39 | 39 | ... | ... |
sei/web/modulos/peticionamento/int/ContatoPeticionamentoINT.php
| ... | ... | @@ -39,38 +39,81 @@ class ContatoPeticionamentoINT extends ContatoINT { |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | public static function getTotalContatoByCPFCNPJ( $cpfcnpj ){ |
| 42 | - | |
| 42 | + //Contato | |
| 43 | 43 | $objContextoContatoDTO = new ContatoDTO(); |
| 44 | - | |
| 45 | 44 | $objContextoContatoDTO->retStrNome(); |
| 46 | 45 | $objContextoContatoDTO->retNumIdContato(); |
| 46 | + $objContextoContatoDTO->retNumIdUsuarioCadastro(); | |
| 47 | 47 | $objContextoContatoDTO->retStrSigla(); |
| 48 | 48 | $objContextoContatoDTO->retStrSinAtivo(); |
| 49 | - | |
| 50 | - $objContextoContatoDTO->adicionarCriterio(array('Cpf', 'Cnpj', 'SinAtivo'), | |
| 51 | - | |
| 52 | - array(InfraDTO::$OPER_IGUAL, InfraDTO::$OPER_IGUAL, InfraDTO::$OPER_IGUAL), | |
| 53 | - | |
| 54 | - array( $cpfcnpj, $cpfcnpj,'S'), | |
| 55 | - | |
| 56 | - array(InfraDTO::$OPER_LOGICO_OR, | |
| 57 | - InfraDTO::$OPER_LOGICO_AND) | |
| 49 | + $objContextoContatoDTO->setDistinct(true); | |
| 50 | + $objContextoContatoDTO->adicionarCriterio(array('Cpf', 'Cnpj'), | |
| 51 | + array(InfraDTO::$OPER_IGUAL, InfraDTO::$OPER_IGUAL), | |
| 52 | + array( $cpfcnpj, $cpfcnpj), | |
| 53 | + array(InfraDTO::$OPER_LOGICO_OR) | |
| 58 | 54 | ); |
| 59 | - | |
| 60 | - //$objContextoContatoDTO->setStrSigla( $cpfcnpj ); | |
| 61 | - //$objContextoContatoDTO->setStrSinAtivo('S'); | |
| 62 | - | |
| 55 | + | |
| 63 | 56 | $objContatoRN = new ContatoRN(); |
| 64 | 57 | $arrObjContextoContatoDTO = $objContatoRN->listarRN0325($objContextoContatoDTO); |
| 65 | - | |
| 66 | - $total = 0; | |
| 67 | - | |
| 68 | - if( $arrObjContextoContatoDTO != null && count( $arrObjContextoContatoDTO ) > 0 ){ | |
| 69 | - $total = count( $arrObjContextoContatoDTO ); | |
| 58 | + | |
| 59 | + if (count($arrObjContextoContatoDTO)==0) { | |
| 60 | + return null; | |
| 61 | + } else if (count($arrObjContextoContatoDTO)>1) { | |
| 62 | + $arrObjContextoContato = InfraArray::converterArrInfraDTO($arrObjContextoContatoDTO,'IdUsuarioCadastro'); | |
| 63 | + $arrObjContextoContato = array_filter($arrObjContextoContato); | |
| 64 | + if (count($arrObjContextoContato)>0){ | |
| 65 | + //Usuário Externo | |
| 66 | + $objUsuarioDTO = new UsuarioDTO(); | |
| 67 | + $objUsuarioDTO->retNumIdUsuario(); | |
| 68 | + $objUsuarioDTO->setStrStaTipo(UsuarioRN::$TU_EXTERNO); | |
| 69 | + $objUsuarioDTO->setDistinct(true); | |
| 70 | + $objUsuarioDTO->adicionarCriterio( | |
| 71 | + array('IdUsuario'), | |
| 72 | + array(InfraDTO::$OPER_IN), | |
| 73 | + array($arrObjContextoContato) | |
| 74 | + ); | |
| 75 | + | |
| 76 | + $objUsuarioRN = new UsuarioRN(); | |
| 77 | + $arrObjUsuarioDTO = $objUsuarioRN->listarRN0490($objUsuarioDTO); | |
| 78 | + | |
| 79 | + if (count($arrObjUsuarioDTO)>0) { | |
| 80 | + $arrObjUsuario = InfraArray::converterArrInfraDTO($arrObjUsuarioDTO,'IdUsuario'); | |
| 81 | + | |
| 82 | + //Contato Filtrado | |
| 83 | + $objContextoContatoDTO = new ContatoDTO(); | |
| 84 | + $objContextoContatoDTO->retStrNome(); | |
| 85 | + $objContextoContatoDTO->retNumIdContato(); | |
| 86 | + $objContextoContatoDTO->retNumIdUsuarioCadastro(); | |
| 87 | + $objContextoContatoDTO->retStrSigla(); | |
| 88 | + $objContextoContatoDTO->retStrSinAtivo(); | |
| 89 | + $objContextoContatoDTO->setDistinct(true); | |
| 90 | + $objContextoContatoDTO->setOrd('IdContato', InfraDTO::$TIPO_ORDENACAO_DESC); | |
| 91 | + $objContextoContatoDTO->adicionarCriterio(array('Cpf', 'Cnpj'), | |
| 92 | + array(InfraDTO::$OPER_IGUAL, InfraDTO::$OPER_IGUAL), | |
| 93 | + array( $cpfcnpj, $cpfcnpj), | |
| 94 | + array(InfraDTO::$OPER_LOGICO_OR) | |
| 95 | + ); | |
| 96 | + $objContextoContatoDTO->adicionarCriterio(array('IdUsuarioCadastro'), | |
| 97 | + array(InfraDTO::$OPER_DIFERENTE), | |
| 98 | + array(NULL) | |
| 99 | + ); | |
| 100 | + $objContextoContatoDTO->adicionarCriterio( | |
| 101 | + array('IdUsuarioCadastro'), | |
| 102 | + array(InfraDTO::$OPER_IN), | |
| 103 | + array($arrObjUsuario) | |
| 104 | + ); | |
| 105 | + $objContatoRN = new ContatoRN(); | |
| 106 | + $arrObjContextoContatoDTO = $objContatoRN->listarRN0325($objContextoContatoDTO); | |
| 107 | + | |
| 108 | + }else{ | |
| 109 | + return null; | |
| 110 | + } | |
| 111 | + }else{ | |
| 112 | + return null; | |
| 113 | + } | |
| 70 | 114 | } |
| 71 | - | |
| 72 | - return $total; | |
| 115 | + return $arrObjContextoContatoDTO; | |
| 73 | 116 | } |
| 74 | - | |
| 117 | + | |
| 75 | 118 | } |
| 76 | 119 | ?> |
| 77 | 120 | \ No newline at end of file | ... | ... |
sei/web/modulos/peticionamento/int/MdPetIntercorrenteINT.php
| ... | ... | @@ -101,6 +101,7 @@ |
| 101 | 101 | $xml .= '<numeroProcesso>' . $objProcedimentoDTO->getStrProtocoloProcedimentoFormatado() . '</numeroProcesso>'; |
| 102 | 102 | $xml .= '<TipoProcedimento> ' . $objProcedimentoDTO->getStrNomeTipoProcedimento() . ' </TipoProcedimento>'; |
| 103 | 103 | $xml .= '<ProcessoIntercorrente>' . $processoIntercorrente . '</ProcessoIntercorrente>'; |
| 104 | + $xml .= '<DataGeracao> ' . $objProcedimentoDTO->getDtaGeracaoProtocolo() . ' </DataGeracao>'; | |
| 104 | 105 | $xml .= '<UrlValida>' . htmlentities($urlValida) . '</UrlValida>'; |
| 105 | 106 | $xml .= '</Validacao>'; |
| 106 | 107 | ... | ... |
sei/web/modulos/peticionamento/int/TipoProcessoPeticionamentoINT.php
| ... | ... | @@ -260,37 +260,41 @@ class TipoProcessoPeticionamentoINT extends InfraINT { |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | 262 | public static function autoCompletarTipoProcedimento($strPalavrasPesquisa, $itensSelecionados = null){ |
| 263 | + $objTipoProcedimentoDTO = new TipoProcedimentoDTO(); | |
| 264 | + $objTipoProcedimentoDTO->retNumIdTipoProcedimento(); | |
| 265 | + $objTipoProcedimentoDTO->retStrNome(); | |
| 266 | + $objTipoProcedimentoDTO->setOrd('Nome', InfraDTO::$TIPO_ORDENACAO_ASC); | |
| 267 | + | |
| 268 | + $objTipoProcedimentoRN = new TipoProcedimentoRN(); | |
| 269 | + $arrObjTipoProcedimentoDTO = $objTipoProcedimentoRN->listarRN0244($objTipoProcedimentoDTO); | |
| 263 | 270 | |
| 264 | - $seiRN = new SeiRN(); | |
| 265 | - $arrObjTipoProcedimentoApi = $seiRN->listarTiposProcedimento(); | |
| 266 | 271 | |
| 267 | 272 | if ($strPalavrasPesquisa != '' || $itensSelecionados != null) { |
| 268 | 273 | $ret = array(); |
| 269 | 274 | $strPalavrasPesquisa = strtolower($strPalavrasPesquisa); |
| 270 | - foreach($arrObjTipoProcedimentoApi as $objTipoProcedimentoApi){ | |
| 275 | + foreach($arrObjTipoProcedimentoDTO as $objTipoProcedimentoDTO){ | |
| 271 | 276 | /**@var $objTipoProcedimentoApi TipoProcedimentoAPI */ |
| 272 | - if($itensSelecionados != null && in_array($objTipoProcedimentoApi->getIdTipoProcedimento(), $itensSelecionados)){ | |
| 273 | - continue; | |
| 277 | + if($itensSelecionados != null && in_array($objTipoProcedimentoDTO->getNumIdTipoProcedimento(), $itensSelecionados)){ | |
| 278 | + continue; | |
| 274 | 279 | } |
| 275 | - if ($strPalavrasPesquisa != '' && strpos(strtolower($objTipoProcedimentoApi->getNome()),$strPalavrasPesquisa)===false){ | |
| 276 | - continue; | |
| 280 | + if ($strPalavrasPesquisa != '' && strpos(strtolower($objTipoProcedimentoDTO->getStrNome()),$strPalavrasPesquisa)===false){ | |
| 281 | + continue; | |
| 277 | 282 | } |
| 278 | - | |
| 283 | + | |
| 279 | 284 | //checando se o tipo de processo informado possui sugestao de assunto |
| 280 | 285 | |
| 281 | 286 | $rnAssunto = new RelTipoProcedimentoAssuntoRN(); |
| 282 | 287 | $dto = new RelTipoProcedimentoAssuntoDTO(); |
| 283 | 288 | $dto->retTodos(); |
| 284 | - $dto->setNumIdTipoProcedimento( $objTipoProcedimentoApi->getIdTipoProcedimento() ); | |
| 285 | - | |
| 289 | + $dto->setNumIdTipoProcedimento( $objTipoProcedimentoDTO->getNumIdTipoProcedimento() ); | |
| 290 | + | |
| 286 | 291 | $arrAssuntos = $rnAssunto->listarRN0192( $dto ); |
| 287 | 292 | |
| 288 | 293 | if( is_array( $arrAssuntos ) && count( $arrAssuntos ) > 0 ){ |
| 289 | - $ret[] = $objTipoProcedimentoApi; | |
| 294 | + $ret[] = $objTipoProcedimentoDTO; | |
| 290 | 295 | } |
| 291 | 296 | } |
| 292 | 297 | } |
| 293 | - | |
| 294 | 298 | return $ret; |
| 295 | 299 | } |
| 296 | 300 | ... | ... |
sei/web/modulos/peticionamento/md_pet_intercorrente_usu_ext_cadastro_bloco_processos.php
| ... | ... | @@ -6,12 +6,12 @@ |
| 6 | 6 | <!-- INICIO NUMERO DO PROCESSO --> |
| 7 | 7 | <div class="bloco" style="width: 240px;"> |
| 8 | 8 | <label id="lblNumeroSei" for="txtNumeroProcesso" accesskey="f" class="infraLabelObrigatorio">Número:</label> |
| 9 | - <input onchange="controlarChangeNumeroProcesso();" type="text" id="txtNumeroProcesso" name="txtNumeroProcesso" class="infraText" maxlength="100" style="width: 184px;" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" value="<?= $txtNumeroProcesso ?>"/> | |
| 9 | + <input onchange="controlarChangeNumeroProcesso();" type="text" id="txtNumeroProcesso" name="txtNumeroProcesso" class="infraText" maxlength="100" style="width: 182px;" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" value="<?= $txtNumeroProcesso ?>"/> | |
| 10 | 10 | <button tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" type="button" accesskey="V" id="btnValidar" onclick="validarNumeroProcesso()" class="infraButton"><span class="infraTeclaAtalho">V</span>alidar</button> |
| 11 | 11 | </div> |
| 12 | 12 | <!-- FIM NUMERO DO PROCESSO --> |
| 13 | 13 | <!-- INICIO TIPO DO PROCESSO VALIDADO --> |
| 14 | - <div class="bloco" style="width: 380px;"> | |
| 14 | + <div class="bloco" style="width: 390px;"> | |
| 15 | 15 | <label id="lblTipo" for="txtTipo" accesskey="f" class="infraLabelObrigatorio">Tipo:</label> |
| 16 | 16 | <input type="text" id="txtTipo" name="txtTipo" class="infraText" readonly="readonly" style="width: 318px;" value="<?= $txtTipo ?>"/> |
| 17 | 17 | <button type="button" tabindex="<?= PaginaSEI::getInstance()->getProxTabDados() ?>" onclick="adicionarProcesso();" accesskey="A" id="btnAdicionar" class="infraButton" style="display: none"><span class="infraTeclaAtalho">A</span>dicionar</button> |
| ... | ... | @@ -36,6 +36,7 @@ |
| 36 | 36 | <input type="hidden" name="hdnIdTipoProcedimento" id="hdnIdTipoProcedimento" value=""/> |
| 37 | 37 | <input type="hidden" name="hdnTbProcesso" id="hdnTbProcesso" value="<?php echo $strGridProcesso?>"/> |
| 38 | 38 | <input type="hidden" name="hdnProcessoIntercorrente" id="hdnProcessoIntercorrente" value=""/> |
| 39 | + <input type="hidden" name="hdnDataAtuacao" id="hdnDataAtuacao" value=""/> | |
| 39 | 40 | <input type="hidden" name="urlValidaAssinaturaProcesso" id="urlValidaAssinaturaProcesso" value=""/> |
| 40 | 41 | |
| 41 | 42 | </div> | ... | ... |
sei/web/modulos/peticionamento/md_pet_intercorrente_usu_ext_cadastro_js.php
| ... | ... | @@ -51,8 +51,9 @@ |
| 51 | 51 | var numeroProcesso = document.getElementById('txtNumeroProcesso'); |
| 52 | 52 | var tipoProcesso = document.getElementById('txtTipo'); |
| 53 | 53 | var processoIntercorrente = document.getElementById("hdnProcessoIntercorrente"); |
| 54 | + var dataAtuacao = document.getElementById("hdnDataAtuacao"); | |
| 54 | 55 | |
| 55 | - objTabelaDinamicaProcesso.adicionar([document.getElementById('hdnIdTipoProcedimento').value, numeroProcesso.value, tipoProcesso.value, processoIntercorrente.value, infraDataAtual() ]); | |
| 56 | + objTabelaDinamicaProcesso.adicionar([document.getElementById('hdnIdTipoProcedimento').value, numeroProcesso.value, tipoProcesso.value, processoIntercorrente.value, dataAtuacao.value ]); | |
| 56 | 57 | |
| 57 | 58 | document.getElementById('tbProcesso').style.display = ''; |
| 58 | 59 | document.getElementById('btnAdicionar').style.display = 'none'; |
| ... | ... | @@ -135,6 +136,7 @@ |
| 135 | 136 | document.getElementById('txtTipo').value = $(r).find('TipoProcedimento').text(); |
| 136 | 137 | document.getElementById('btnAdicionar').style.display = ''; |
| 137 | 138 | document.getElementById('hdnProcessoIntercorrente').value = $(r).find('ProcessoIntercorrente').text(); |
| 139 | + document.getElementById('hdnDataAtuacao').value = $(r).find('DataGeracao').text(); | |
| 138 | 140 | document.getElementById('urlValidaAssinaturaProcesso').value = $(r).find('UrlValida').text(); |
| 139 | 141 | |
| 140 | 142 | } | ... | ... |
sei/web/modulos/peticionamento/md_pet_intercorrente_usu_ext_concluir.php
| ... | ... | @@ -122,16 +122,13 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
| 122 | 122 | <label>A confirmação de sua senha de acesso iniciará o peticionamento e importa na aceitação dos termos e condições que regem o processo eletrônico, além do disposto no credenciamento prévio, e na assinatura dos documentos nato-digitais e declaração de que são autênticos os digitalizados, sendo responsável civil, penal e administrativamente pelo uso indevido. Ainda, são de sua exclusiva responsabilidade: a conformidade entre os dados informados e os documentos; a conservação dos originais em papel de documentos digitalizados até que decaia o direito de revisão dos atos praticados no processo, para que, caso solicitado, sejam apresentados para qualquer tipo de conferência; a realização por meio eletrônico de todos os atos e comunicações processuais com o próprio Usuário Externo ou, por seu intermédio, com a entidade porventura representada; a observância de que os atos processuais se consideram realizados no dia e hora do recebimento pelo SEI, considerando-se tempestivos os praticados até as 23h59min59s do último dia do prazo, considerado sempre o horário oficial de Brasília, independente do fuso horário em que se encontre; a consulta periódica ao SEI, a fim de verificar o recebimento de intimações eletrônicas.</label> |
| 123 | 123 | </p> |
| 124 | 124 | |
| 125 | - <p> | |
| 125 | + <p> | |
| 126 | 126 | <label class="infraLabelObrigatorio">Usuário Externo:</label> <br/> |
| 127 | - <input type="text" name="loginUsuarioExterno" style="width:60%;" | |
| 128 | - value="<?= PaginaSEIExterna::tratarHTML( SessaoSEIExterna::getInstance()->getStrNomeUsuarioExterno() ) ?> " | |
| 129 | - readonly="readonly" | |
| 130 | - id="loginUsuarioExterno" class="infraText" autocomplete="off" /> | |
| 127 | + <input type="text" name="loginUsuarioExterno" style="width: 60%;" value="<?= PaginaSEIExterna::tratarHTML( SessaoSEIExterna::getInstance()->getStrNomeUsuarioExterno() ) ?>" readonly="readonly" id="loginUsuarioExterno" class="infraText" autocomplete="off" /> | |
| 131 | 128 | </p> |
| 132 | 129 | |
| 133 | - <p> | |
| 134 | - <label class="infraLabelObrigatorio">Cargo/Função:</label><br/> | |
| 130 | + <p> | |
| 131 | + <label class="infraLabelObrigatorio">Cargo/Função:</label> <br/> | |
| 135 | 132 | <select id="selCargo" name="selCargo" class="infraSelect" style="width:60%;"> |
| 136 | 133 | <option value="">Selecione Cargo/Função</option> |
| 137 | 134 | <? foreach( $arrObjCargoDTO as $cargo ){ |
| ... | ... | @@ -151,8 +148,8 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
| 151 | 148 | </p> |
| 152 | 149 | |
| 153 | 150 | <p> |
| 154 | - <label class="infraLabelObrigatorio"> Senha de Acesso ao SEI: </label> <br/> | |
| 155 | - <input type="password" name="senhaSEI" id="senhaSEI" class="infraText" autocomplete="off" style="width:60%;" /> | |
| 151 | + <label class="infraLabelObrigatorio">Senha de Acesso ao SEI:</label> <br/> | |
| 152 | + <input type="password" name="senhaSEI" id="senhaSEI" class="infraText" autocomplete="off" style="width: 60%;" /> | |
| 156 | 153 | </p> |
| 157 | 154 | |
| 158 | 155 | <input type="hidden" id="id_tipo_procedimento" name="id_tipo_procedimento" value="<?= $_REQUEST['id_tipo_procedimento'] ?>" /> | ... | ... |
sei/web/modulos/peticionamento/peticionamento_contato_selecionar.php
| ... | ... | @@ -102,6 +102,8 @@ try { |
| 102 | 102 | //alteracoes seiv3 |
| 103 | 103 | $objContatoDTO->retNumIdContato(); |
| 104 | 104 | $objContatoDTO->retNumIdTipoContato(); |
| 105 | + $objContatoDTO->retNumIdUsuarioCadastro(); | |
| 106 | + | |
| 105 | 107 | $objContatoDTO->retStrExpressaoVocativoCargo(); |
| 106 | 108 | $objContatoDTO->retStrExpressaoTratamentoCargo(); |
| 107 | 109 | |
| ... | ... | @@ -361,11 +363,22 @@ try { |
| 361 | 363 | //if($dto->getStrSinContexto()=='S'){ |
| 362 | 364 | //$strResultado .= $strNegritoContextoFim; |
| 363 | 365 | //} |
| 364 | - | |
| 365 | - $strResultado .= '</td>'; | |
| 366 | - $strResultado .= '<td align="center">'; | |
| 366 | + | |
| 367 | + $strResultado .= '</td>'; | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + $strResultado .= '<td align="center">'; | |
| 372 | + | |
| 373 | + //Alteração | |
| 374 | + | |
| 375 | + if (SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno()==$dto->getNumIdUsuarioCadastro()){ | |
| 376 | + //$strResultado .= "<a href='javascript:;' onclick=\"abrirCadastroInteressadoAlterar('" + arrDadosInteressado[0] +"', '" + arrDadosInteressado[1] +"', '"+ arrDadosInteressado[2] +"')\"><img title='Alterar Interessado' alt='Alterar Interessado' src='/infra_css/imagens/alterar.gif' class='infraImg' /></a>" | |
| 377 | + $strResultado .= "<a href='javascript:;' onclick=\"abrirCadastroInteressadoAlterar('".$dto->getNumIdContato()."', 'Pessoa Física', '123.456.789-09')\"><img title='Alterar Interessado' alt='Alterar Interessado' src='/infra_css/imagens/alterar.gif' class='infraImg' /></a>"; | |
| 378 | + } | |
| 379 | + | |
| 367 | 380 | $strResultado .= PaginaSEIExterna::getInstance()->getAcaoTransportarItem($n++,$dto->getNumIdContato()); |
| 368 | - | |
| 381 | + | |
| 369 | 382 | $strId = $dto->getNumIdContato(); |
| 370 | 383 | $strDescricao = PaginaSEIExterna::getInstance()->formatarParametrosJavaScript($strNomeSigla); |
| 371 | 384 | |
| ... | ... | @@ -565,6 +578,36 @@ function pesquisar(){ |
| 565 | 578 | document.getElementById('frmContatoLista').submit(); |
| 566 | 579 | } |
| 567 | 580 | |
| 581 | + | |
| 582 | +function abrirCadastroInteressadoAlterar( id, tipo, cpfcnpj){ | |
| 583 | + | |
| 584 | + //charmar janela para cadastrar um novo interessado | |
| 585 | + $('#txtNomeRazaoSocial').val(''); | |
| 586 | + $('#hdnCustomizado').val(''); | |
| 587 | + $('#hdnIdEdicao').val( id ); | |
| 588 | + | |
| 589 | + <?php | |
| 590 | + $strLinkEdicaoPF = SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?edicao=true&acao=peticionamento_interessado_cadastro&tipo_selecao=2&cpf=true&id_orgao_acesso_externo=0'); | |
| 591 | + $strLinkEdicaoPJ = SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?edicao=true&acao=peticionamento_interessado_cadastro&tipo_selecao=2&cnpj=true&id_orgao_acesso_externo=0'); | |
| 592 | + ?> | |
| 593 | + | |
| 594 | + if( tipo == 'Pessoa Física' ){ | |
| 595 | + var str = '<?= $strLinkEdicaoPF ?>'; | |
| 596 | + } | |
| 597 | + | |
| 598 | + else if( tipo == 'Pessoa Jurídica' ){ | |
| 599 | + var str = '<?= $strLinkEdicaoPJ ?>'; | |
| 600 | + } | |
| 601 | + | |
| 602 | + infraAbrirJanela( str, 'cadastrarInteressado', 900, 900, '', false); //modal | |
| 603 | + return; | |
| 604 | + | |
| 605 | +} | |
| 606 | +function atualizarNomeRazaoSocial( cpfEditado , nomeEditado ){ | |
| 607 | + location.href=location.href; | |
| 608 | +} | |
| 609 | + | |
| 610 | + | |
| 568 | 611 | <? |
| 569 | 612 | PaginaSEIExterna::getInstance()->fecharJavaScript(); |
| 570 | 613 | PaginaSEIExterna::getInstance()->fecharHead(); |
| ... | ... | @@ -621,7 +664,8 @@ PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"') |
| 621 | 664 | PaginaSEIExterna::getInstance()->fecharAreaDados(); |
| 622 | 665 | ?> |
| 623 | 666 | |
| 624 | - <input type="hidden" name="hdnFlag" value="1" /> | |
| 667 | + <input type="hidden" name="hdnFlag" value="1" /> | |
| 668 | + <input type="hidden" name="hdnIdEdicao" id="hdnIdEdicao" value="" /> | |
| 625 | 669 | |
| 626 | 670 | <? |
| 627 | 671 | PaginaSEIExterna::getInstance()->montarAreaTabela($strResultado,$numRegistros); | ... | ... |
sei/web/modulos/peticionamento/peticionamento_usuario_externo_concluir.php
| ... | ... | @@ -182,17 +182,14 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
| 182 | 182 | <label>A confirmação de sua senha de acesso iniciará o peticionamento e importa na aceitação dos termos e condições que regem o processo eletrônico, além do disposto no credenciamento prévio, e na assinatura dos documentos nato-digitais e declaração de que são autênticos os digitalizados, sendo responsável civil, penal e administrativamente pelo uso indevido. Ainda, são de sua exclusiva responsabilidade: a conformidade entre os dados informados e os documentos; a conservação dos originais em papel de documentos digitalizados até que decaia o direito de revisão dos atos praticados no processo, para que, caso solicitado, sejam apresentados para qualquer tipo de conferência; a realização por meio eletrônico de todos os atos e comunicações processuais com o próprio Usuário Externo ou, por seu intermédio, com a entidade porventura representada; a observância de que os atos processuais se consideram realizados no dia e hora do recebimento pelo SEI, considerando-se tempestivos os praticados até as 23h59min59s do último dia do prazo, considerado sempre o horário oficial de Brasília, independente do fuso horário em que se encontre; a consulta periódica ao SEI, a fim de verificar o recebimento de intimações eletrônicas.</label> |
| 183 | 183 | </p> |
| 184 | 184 | |
| 185 | - <p> | |
| 185 | + <p> | |
| 186 | 186 | <label class="infraLabelObrigatorio">Usuário Externo:</label> <br/> |
| 187 | - <input type="text" name="loginUsuarioExterno" style="width:60%;" | |
| 188 | - value="<?= PaginaSEIExterna::tratarHTML( SessaoSEIExterna::getInstance()->getStrNomeUsuarioExterno() ) ?> " | |
| 189 | - readonly="readonly" | |
| 190 | - id="loginUsuarioExterno" class="infraText" autocomplete="off" /> | |
| 187 | + <input type="text" name="loginUsuarioExterno" style="width: 60%;" value="<?= PaginaSEIExterna::tratarHTML( SessaoSEIExterna::getInstance()->getStrNomeUsuarioExterno() ) ?>" readonly="readonly" id="loginUsuarioExterno" class="infraText" autocomplete="off" /> | |
| 191 | 188 | </p> |
| 192 | 189 | |
| 193 | - <p> | |
| 194 | - <label class="infraLabelObrigatorio">Cargo/Função:</label><br/> | |
| 195 | - <select id="selCargo" name="selCargo" class="infraSelect" style="width:60%;"> | |
| 190 | + <p> | |
| 191 | + <label class="infraLabelObrigatorio">Cargo/Função:</label> <br/> | |
| 192 | + <select id="selCargo" name="selCargo" class="infraSelect" style="width: 60%;"> | |
| 196 | 193 | <option value="">Selecione Cargo/Função</option> |
| 197 | 194 | <? foreach( $arrObjCargoDTO as $cargo ){ |
| 198 | 195 | |
| ... | ... | @@ -211,8 +208,8 @@ PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); |
| 211 | 208 | </p> |
| 212 | 209 | |
| 213 | 210 | <p> |
| 214 | - <label class="infraLabelObrigatorio"> Senha de Acesso ao SEI: </label> <br/> | |
| 215 | - <input type="password" name="senhaSEI" id="senhaSEI" class="infraText" autocomplete="off" style="width:60%;" /> | |
| 211 | + <label class="infraLabelObrigatorio">Senha de Acesso ao SEI:</label> <br/> | |
| 212 | + <input type="password" name="senhaSEI" id="senhaSEI" class="infraText" autocomplete="off" style="width: 60%;" /> | |
| 216 | 213 | </p> |
| 217 | 214 | |
| 218 | 215 | <!-- Campos Hidden para preencher com valores da janela pai --> | ... | ... |
sei/web/modulos/peticionamento/rn/EmailNotificacaoPetIntercorrenteRN.php
| ... | ... | @@ -48,31 +48,27 @@ class EmailNotificacaoPetIntercorrenteRN extends EmailNotificacaoPeticionamentoR |
| 48 | 48 | $objOrgaoDTO->setStrSinAtivo('S'); |
| 49 | 49 | $objOrgaoDTO = $orgaoRN->consultarRN1352( $objOrgaoDTO ); |
| 50 | 50 | |
| 51 | - // Se Direto no Processo Indicado, não só unidade geradoras, mas todas abertas | |
| 52 | - if ($arrParametros['diretoProcessoIndicado']){ | |
| 51 | + $objEmailUnidadeDTO = new EmailUnidadeDTO(); | |
| 52 | + $emailUnidadeRN = new EmailUnidadeRN(); | |
| 53 | + $objEmailUnidadeDTO->setDistinct(true); | |
| 54 | + $objEmailUnidadeDTO->retNumIdUnidade(); | |
| 55 | + $objEmailUnidadeDTO->retStrEmail(); | |
| 56 | + // Se Direto no Processo Indicado, não só unidade geradoras, mas todas abertas | |
| 57 | + if ($arrParametros['diretoProcessoIndicado']){ | |
| 53 | 58 | $objMdPetIntercorrenteProcessoRN = new MdPetIntercorrenteProcessoRN(); |
| 54 | 59 | $arrObjAtividadeDTO = $objMdPetIntercorrenteProcessoRN->retornaUnidadesProcessoAberto( $arrParametros['id_procedimento'] ); |
| 55 | 60 | $arrUnidade = InfraArray::converterArrInfraDTO($arrObjAtividadeDTO,'IdUnidade'); |
| 56 | 61 | |
| 57 | - $objEmailUnidadeDTO = new EmailUnidadeDTO(); | |
| 58 | - $emailUnidadeRN = new EmailUnidadeRN(); | |
| 59 | - $objEmailUnidadeDTO->retNumIdUnidade(); | |
| 60 | - $objEmailUnidadeDTO->retStrEmail(); | |
| 61 | 62 | $objEmailUnidadeDTO->adicionarCriterio( |
| 62 | 63 | array('IdUnidade'), |
| 63 | 64 | array(InfraDTO::$OPER_IN), |
| 64 | 65 | array( $arrUnidade ) |
| 65 | 66 | ); |
| 66 | - $arrEmailUnidade = $emailUnidadeRN->listar($objEmailUnidadeDTO); | |
| 67 | 67 | //pegar a lista de email da unidade, a unidade pode não ter, email unidade |
| 68 | 68 | }else{ |
| 69 | - $objEmailUnidadeDTO = new EmailUnidadeDTO(); | |
| 70 | - $emailUnidadeRN = new EmailUnidadeRN(); | |
| 71 | - $objEmailUnidadeDTO->retNumIdUnidade(); | |
| 72 | - $objEmailUnidadeDTO->retStrEmail(); | |
| 73 | 69 | $objEmailUnidadeDTO->setNumIdUnidade($objUnidadeDTO->getNumIdUnidade()); |
| 74 | - $arrEmailUnidade = $emailUnidadeRN->listar($objEmailUnidadeDTO); | |
| 75 | 70 | } |
| 71 | + $arrEmailUnidade = $emailUnidadeRN->listar($objEmailUnidadeDTO); | |
| 76 | 72 | |
| 77 | 73 | //obtendo o tipo de procedimento |
| 78 | 74 | $idTipoProc = $arrParametros['id_tipo_procedimento']; |
| ... | ... | @@ -238,22 +234,29 @@ class EmailNotificacaoPetIntercorrenteRN extends EmailNotificacaoPeticionamentoR |
| 238 | 234 | $strConteudo = str_replace('@tipo_peticionamento@',"Intercorrente",$strConteudo); |
| 239 | 235 | } |
| 240 | 236 | |
| 237 | + $enviaemail = false; | |
| 238 | + | |
| 241 | 239 | // Se Direto no Processo Indicado, não só unidade geradoras, mas todas abertas |
| 242 | 240 | if ($arrParametros['diretoProcessoIndicado']){ |
| 243 | - $objUnidadeRN = new UnidadeRN(); | |
| 244 | - $objUnidadeDTO = new UnidadeDTO(); | |
| 245 | - $objUnidadeDTO->setNumIdUnidade($mail->getNumIdUnidade()); | |
| 246 | - $objUnidadeDTO->retStrSigla(); | |
| 247 | - $objUnidadeDTO->retStrDescricao(); | |
| 248 | - $objUnidadeDTO = $objUnidadeRN->consultarRN0125($objUnidadeDTO); | |
| 249 | - $strConteudo = str_replace('@sigla_unidade_abertura_do_processo@' , $objUnidadeDTO->getStrSigla() , $strConteudo); | |
| 250 | - $strConteudo = str_replace('@descricao_unidade_abertura_do_processo@' , $objUnidadeDTO->getStrDescricao() , $strConteudo); | |
| 241 | + $objUnidadeProcIndicRN = new UnidadeRN(); | |
| 242 | + $objUnidadeProcIndicDTO = new UnidadeDTO(); | |
| 243 | + $objUnidadeProcIndicDTO->retStrSigla(); | |
| 244 | + $objUnidadeProcIndicDTO->retStrDescricao(); | |
| 245 | + $objUnidadeProcIndicDTO->setNumIdUnidade($mail->getNumIdUnidade()); | |
| 246 | + $objUnidadeProcIndicDTO->setBolExclusaoLogica(false); | |
| 247 | + $arrObjUnidadeProcIndicDTO = $objUnidadeProcIndicRN->consultarRN0125($objUnidadeProcIndicDTO); | |
| 248 | + | |
| 249 | + if (count($arrObjUnidadeProcIndicDTO)>0){ | |
| 250 | + $enviaemail = true; | |
| 251 | + $strConteudo = str_replace('@sigla_unidade_abertura_do_processo@' , $arrObjUnidadeProcIndicDTO->getStrSigla() , $strConteudo); | |
| 252 | + $strConteudo = str_replace('@descricao_unidade_abertura_do_processo@' , $arrObjUnidadeProcIndicDTO->getStrDescricao() , $strConteudo); | |
| 253 | + } | |
| 251 | 254 | }else{ |
| 255 | + $enviaemail = true; | |
| 252 | 256 | $strConteudo = str_replace('@sigla_unidade_abertura_do_processo@', $strSiglaUnidade ,$strConteudo); |
| 253 | 257 | $strConteudo = str_replace('@descricao_unidade_abertura_do_processo@',$objUnidadeDTO->getStrDescricao(),$strConteudo); |
| 254 | 258 | } |
| 255 | 259 | |
| 256 | - | |
| 257 | 260 | $strConteudo = str_replace('@documento_recibo_eletronico_de_protocolo@',$documentoDTO->getStrProtocoloDocumentoFormatado(),$strConteudo); |
| 258 | 261 | $strConteudo = str_replace('@sigla_orgao@',$objOrgaoDTO->getStrSigla(),$strConteudo); |
| 259 | 262 | $strConteudo = str_replace('@descricao_orgao@',$objOrgaoDTO->getStrDescricao(),$strConteudo); |
| ... | ... | @@ -262,7 +265,9 @@ class EmailNotificacaoPetIntercorrenteRN extends EmailNotificacaoPeticionamentoR |
| 262 | 265 | $strPara = $objEmailSistemaDTO->getStrPara(); |
| 263 | 266 | $strPara = str_replace('@processo@', $documentoDTO->getStrProtocoloDocumentoFormatado() , $strPara); |
| 264 | 267 | $strPara = str_replace('@emails_unidade@', $mail->getStrEmail() , $strPara); |
| 265 | - InfraMail::enviarConfigurado(ConfiguracaoSEI::getInstance(), $strDe, $strPara, null, null, $strAssunto, $strConteudo); | |
| 268 | + if ($enviaemail){ | |
| 269 | + InfraMail::enviarConfigurado(ConfiguracaoSEI::getInstance(), $strDe, $strPara, null, null, $strAssunto, $strConteudo); | |
| 270 | + } | |
| 266 | 271 | } |
| 267 | 272 | } |
| 268 | 273 | } | ... | ... |
sei/web/modulos/peticionamento/rn/MdPetIntercorrenteAndamentoSigilosoRN.php
| ... | ... | @@ -754,6 +754,68 @@ class MdPetIntercorrenteAndamentoSigilosoRN extends InfraRN |
| 754 | 754 | |
| 755 | 755 | $strNomeTarefa = str_replace('@LOCALIZADOR@', $strSubstituicao, $strNomeTarefa); |
| 756 | 756 | } |
| 757 | + | |
| 758 | + //método que retorna a unidade de abertura de processo novo relacionado ao processo sigiloso que foi informado pelo usuario na tela de processo intercorrente | |
| 759 | + public function retornaIdUnidadeAberturaProcessoConectado( $idProcedimento ){ | |
| 760 | + | |
| 761 | + //1 - obtendo TODAS as unidades por onde o processo ja tramitou | |
| 762 | + $objProcedimentoDTO = new ProcedimentoDTO(); | |
| 763 | + $objProcedimentoDTO->setDblIdProcedimento( $idProcedimento ); | |
| 764 | + | |
| 765 | + $objAtividadeBD = new AtividadeBD( $this->getObjInfraIBanco() ); | |
| 766 | + $objAtividadeDTO = new AtividadeDTO(); | |
| 767 | + $objAtividadeDTO->retNumIdAtividade(); | |
| 768 | + $objAtividadeDTO->setDistinct(true); | |
| 769 | + $objAtividadeDTO->retNumIdUnidade(); | |
| 770 | + $objAtividadeDTO->retStrSiglaUnidade(); | |
| 771 | + $objAtividadeDTO->retStrDescricaoUnidade(); | |
| 772 | + | |
| 773 | + /* | |
| 774 | + * Tarefas que implicam na abertura do processo na Unidade (ID/Nome): | |
| 775 | + * MESCLANDO TAREFAS DE PROCESSOS PUBLICO/RESTRITO + SIGILOSO | |
| 776 | + 1 - Processo @NIVEL_ACESSO@@GRAU_SIGILO@ gerado @DATA_AUTUACAO@@HIPOTESE_LEGAL@ | |
| 777 | + 21 - Remoção de sobrestamento | |
| 778 | + 29 - Reabertura do processo na unidade | |
| 779 | + 32 - Processo remetido pela unidade @UNIDADE@ | |
| 780 | + 61 - Credencial concedida para o usuário @USUARIO@ | |
| 781 | + 64 - Reabertura do processo | |
| 782 | + 66 - Transferência de credencial | |
| 783 | + 73 - Concessão de credencial para assinatura | |
| 784 | + 118 - Ativação de credencial por Coordenador de Acervo para o usuário @USUARIO@ */ | |
| 785 | + | |
| 786 | + $objAtividadeDTO->setNumIdTarefa(array(TarefaRN::$TI_GERACAO_PROCEDIMENTO, | |
| 787 | + TarefaRN::$TI_REMOCAO_SOBRESTAMENTO, | |
| 788 | + TarefaRN::$TI_REABERTURA_PROCESSO_UNIDADE, | |
| 789 | + TarefaRN::$TI_PROCESSO_REMETIDO_UNIDADE, | |
| 790 | + TarefaRN::$TI_PROCESSO_CONCESSAO_CREDENCIAL, | |
| 791 | + TarefaRN::$TI_REABERTURA_PROCESSO_USUARIO, | |
| 792 | + TarefaRN::$TI_CONCESSAO_CREDENCIAL_ASSINATURA, | |
| 793 | + TarefaRN::$TI_PROCESSO_ATIVACAO_CREDENCIAL),InfraDTO::$OPER_IN); | |
| 794 | + | |
| 795 | + $objAtividadeDTO->setDblIdProtocolo( $idProcedimento ); | |
| 796 | + | |
| 797 | + //ordenando pelo id da atividade, obtendo a ordem cronologica da tramitacao | |
| 798 | + $objAtividadeDTO->setOrdNumIdAtividade(InfraDTO::$TIPO_ORDENACAO_DESC); | |
| 799 | + | |
| 800 | + $arrObjAtividadeDTO = $objAtividadeBD->listar($objAtividadeDTO); | |
| 801 | + | |
| 802 | + if( is_array( $arrObjAtividadeDTO ) && count( $arrObjAtividadeDTO ) > 0){ | |
| 803 | + | |
| 804 | + foreach( $arrObjAtividadeDTO as $atividade ){ | |
| 805 | + | |
| 806 | + //2 - descobrindo se o processo ainda está aberto nesta unidade | |
| 807 | + return $atividade->getNumIdUnidade(); | |
| 808 | + } | |
| 809 | + | |
| 810 | + } | |
| 811 | + | |
| 812 | + //se nao estiver aberto em nenhuma unidade retorna null | |
| 813 | + else { | |
| 814 | + return null; | |
| 815 | + } | |
| 816 | + | |
| 817 | + } | |
| 818 | + | |
| 757 | 819 | } |
| 758 | 820 | |
| 759 | 821 | ?> |
| 760 | 822 | \ No newline at end of file | ... | ... |
sei/web/modulos/peticionamento/rn/MdPetIntercorrenteProcessoRN.php
| ... | ... | @@ -126,8 +126,15 @@ class MdPetIntercorrenteProcessoRN extends ProcessoPeticionamentoRN { |
| 126 | 126 | $objCriterioIntercorrenteDTO = $params[1]; |
| 127 | 127 | //$arrObjDocumentoAPI = $params[2]; |
| 128 | 128 | $especificacao = $params[2]; |
| 129 | - | |
| 130 | - if($objProcedimentoDTO->getStrStaEstadoProtocolo() == 3){ | |
| 129 | + | |
| 130 | + $protocoloDTO = new ProtocoloDTO(); | |
| 131 | + $protocoloDTO->retTodos(); | |
| 132 | + $protocoloDTO->setDblIdProtocolo( $objProcedimentoDTO->getDblIdProcedimento() ); | |
| 133 | + $protocoloRN = new ProtocoloRN(); | |
| 134 | + $protocoloDTO = $protocoloRN->consultarRN0186( $protocoloDTO ); | |
| 135 | + | |
| 136 | + // Verifica se o processo é anexado, se for, retorna a unidade do processo pai. | |
| 137 | + if($objProcedimentoDTO->getStrStaEstadoProtocolo() == ProtocoloRN::$TE_PROCEDIMENTO_ANEXADO){ | |
| 131 | 138 | $objRelProtocoloProtocoloDTO = new RelProtocoloProtocoloDTO(); |
| 132 | 139 | $objRelProtocoloProtocoloDTO->retDblIdProtocolo1(); |
| 133 | 140 | $objRelProtocoloProtocoloDTO->retStrProtocoloFormatadoProtocolo1(); |
| ... | ... | @@ -138,6 +145,13 @@ class MdPetIntercorrenteProcessoRN extends ProcessoPeticionamentoRN { |
| 138 | 145 | $objRelProtocoloProtocoloDTO = $objRelProtocoloProtocoloRN->consultarRN0841($objRelProtocoloProtocoloDTO); |
| 139 | 146 | |
| 140 | 147 | $idUnidadeAbrirNovoProcesso = $this->retornaUltimaUnidadeProcessoAberto($objRelProtocoloProtocoloDTO->getDblIdProtocolo1()); |
| 148 | + }else if($protocoloDTO->getStrStaNivelAcessoLocal() == ProtocoloRN::$NA_SIGILOSO || | |
| 149 | + $protocoloDTO->getStrStaNivelAcessoGlobal == ProtocoloRN::$NA_SIGILOSO ){ | |
| 150 | + | |
| 151 | + $objMdPetIntercorrenteAndamentoSigiloso = new MdPetIntercorrenteAndamentoSigilosoRN(); | |
| 152 | + | |
| 153 | + $idUnidadeAbrirNovoProcesso = $objMdPetIntercorrenteAndamentoSigiloso->retornaIdUnidadeAberturaProcesso( $objProcedimentoDTO->getDblIdProcedimento() ); | |
| 154 | + | |
| 141 | 155 | }else{ |
| 142 | 156 | $idUnidadeAbrirNovoProcesso = $this->retornaUltimaUnidadeProcessoAberto($objProcedimentoDTO->getDblIdProcedimento()); |
| 143 | 157 | } |
| ... | ... | @@ -746,14 +760,6 @@ class MdPetIntercorrenteProcessoRN extends ProcessoPeticionamentoRN { |
| 746 | 760 | //Remetentes |
| 747 | 761 | $idsParticipantes = array(); |
| 748 | 762 | |
| 749 | - $objParticipante = new ParticipanteDTO(); | |
| 750 | - $objParticipante->setDblIdProtocolo($this->getProcedimentoDTO()->getDblIdProcedimento()); | |
| 751 | - $objParticipante->setNumIdContato($this->getContatoDTOUsuarioLogado()->getNumIdContato()); | |
| 752 | - $objParticipante->setNumIdUnidade($idUnidadeProcesso); | |
| 753 | - $objParticipante->setStrStaParticipacao(ParticipanteRN::$TP_REMETENTE); | |
| 754 | - $objParticipante->setNumSequencia(0); | |
| 755 | - $idsParticipantes[] = $objParticipante; | |
| 756 | - | |
| 757 | 763 | //Interessados |
| 758 | 764 | // Processo Principal - Interessados |
| 759 | 765 | $objParticipanteProcPrincDTO = new ParticipanteDTO(); | ... | ... |
sei/web/modulos/peticionamento/rn/ProcessoPeticionamentoRN.php
| ... | ... | @@ -201,14 +201,6 @@ class ProcessoPeticionamentoRN extends InfraRN { |
| 201 | 201 | //Remetentes |
| 202 | 202 | $idsParticipantes = array(); |
| 203 | 203 | |
| 204 | - $objParticipante = new ParticipanteDTO(); | |
| 205 | - $objParticipante->setDblIdProtocolo($objSaidaGerarProcedimentoAPI->getIdProcedimento()); | |
| 206 | - $objParticipante->setNumIdContato($this->getContatoDTOUsuarioLogado()->getNumIdContato()); | |
| 207 | - $objParticipante->setNumIdUnidade($unidadeDTO->getNumIdUnidade()); | |
| 208 | - $objParticipante->setStrStaParticipacao(ParticipanteRN::$TP_REMETENTE); | |
| 209 | - $objParticipante->setNumSequencia(0); | |
| 210 | - $idsParticipantes[] = $objParticipante; | |
| 211 | - | |
| 212 | 204 | // Processo - Interessados |
| 213 | 205 | $i=0; |
| 214 | 206 | foreach($idsContatos as $interessado){ |
| ... | ... | @@ -371,9 +363,9 @@ class ProcessoPeticionamentoRN extends InfraRN { |
| 371 | 363 | $objDocumentoAPI->setIdTipoConferencia( $docDTO->getNumIdTipoConferencia() ); |
| 372 | 364 | |
| 373 | 365 | $objDocumentoAPI->setNomeArquivo( $itemAnexo->getStrNome() ); |
| 374 | - $objDocumentoAPI->setConteudo(base64_encode(file_get_contents(DIR_SEI_TEMP. '/'. $itemAnexo->getStrNome() ))); | |
| 375 | - | |
| 376 | - $objSeiRN = new SeiRN(); | |
| 366 | + $objDocumentoAPI->setConteudo(base64_encode(file_get_contents(DIR_SEI_TEMP. '/'. $itemAnexo->getStrHash() ))); | |
| 367 | + | |
| 368 | + $objSeiRN = new SeiRN(); | |
| 377 | 369 | $saidaDocExternoAPI = $objSeiRN->incluirDocumento( $objDocumentoAPI ); |
| 378 | 370 | $idDocumentoAnexo = $saidaDocExternoAPI->getIdDocumento(); |
| 379 | 371 | $docDTO->setDblIdDocumento( $idDocumentoAnexo ); |
| ... | ... | @@ -663,8 +655,8 @@ class ProcessoPeticionamentoRN extends InfraRN { |
| 663 | 655 | $objDocumentoDTO->setNumIdTextoPadraoInterno(''); |
| 664 | 656 | $objDocumentoDTO->setStrProtocoloDocumentoTextoBase(''); |
| 665 | 657 | $objDocumentoDTO->setNumIdSerie( $idSerieAnexo ); |
| 666 | - | |
| 667 | - $objSaidaDocumentoAPI = $this->gerarAssinarDocumentoAnexoSeiRN( $objUnidadeDTO, $arrParametros, $objDocumentoDTO, $objProcedimentoDTO, $itemAnexo, $reciboDTOBasico, ReciboDocumentoAnexoPeticionamentoRN::$TP_ESSENCIAL ); | |
| 658 | + | |
| 659 | + $objSaidaDocumentoAPI = $this->gerarAssinarDocumentoAnexoSeiRN( $objUnidadeDTO, $arrParametros, $objDocumentoDTO, $objProcedimentoDTO, $itemAnexo, $reciboDTOBasico, ReciboDocumentoAnexoPeticionamentoRN::$TP_ESSENCIAL ); | |
| 668 | 660 | |
| 669 | 661 | //================================== |
| 670 | 662 | //CRIANDO ANEXOS |
| ... | ... | @@ -1267,11 +1259,12 @@ class ProcessoPeticionamentoRN extends InfraRN { |
| 1267 | 1259 | $tamanhoDoAnexo = str_replace(" Kb","", $tamanhoDoAnexo ); |
| 1268 | 1260 | $tamanhoDoAnexo = floatval($tamanhoDoAnexo*1024); |
| 1269 | 1261 | } |
| 1270 | - | |
| 1262 | + | |
| 1271 | 1263 | $objAnexoDTO = new AnexoDTO(); |
| 1272 | 1264 | $objAnexoDTO->setNumIdAnexo( null ); |
| 1273 | 1265 | $objAnexoDTO->setStrSinAtivo('S'); |
| 1274 | - $objAnexoDTO->setStrNome($anexo[8]); | |
| 1266 | + $objAnexoDTO->setStrNome($anexo[0]); | |
| 1267 | + $objAnexoDTO->setStrHash($anexo[8]); | |
| 1275 | 1268 | $objAnexoDTO->setDthInclusao($anexo[1]); |
| 1276 | 1269 | $objAnexoDTO->setNumTamanho( $tamanhoDoAnexo ); |
| 1277 | 1270 | $objAnexoDTO->setStrSiglaUsuario( $strSiglaUsuario ); | ... | ... |