Commit 2a43d534a504844d52acbb7393d8e229072d1af7
1 parent
eeff643a
Exists in
master
and in
19 other branches
Retirada da validação de permissão nos métodos utilitários de consulta e alteraç…
…ão de parâmetros do módulo e verificação provisória de permissão no botão de consulta de recibos
Showing
2 changed files
with
0 additions
and
219 deletions
Show diff stats
join_lab.php
| ... | ... | @@ -1,123 +0,0 @@ |
| 1 | -<?php | |
| 2 | - | |
| 3 | -require_once __DIR__ . '/../../SEI.php'; | |
| 4 | -SessaoSEI::getInstance(false)->simularLogin(SessaoSEI::$USUARIO_SEI, SessaoSEI::$UNIDADE_TESTE); | |
| 5 | -/* | |
| 6 | - ###############################CONSULTAR ASSUNTO############################################# | |
| 7 | - //FILTROS PASSADOS POR PARÂMETRO | |
| 8 | - $ID = 0; | |
| 9 | - $FILTER = ''; | |
| 10 | - $START = 0; | |
| 11 | - $LIMIT = 0; | |
| 12 | - | |
| 13 | - //INSTANCIA O DTO E INFORMA OS FILTROS DA BUSCA | |
| 14 | - $assuntoDTO = new AssuntoDTO(); | |
| 15 | - | |
| 16 | - IF($ID) | |
| 17 | - $assuntoDTO->setNumIdAssunto($ID); | |
| 18 | - | |
| 19 | - if($FILTER) | |
| 20 | - $assuntoDTO->setStrCodigoEstruturado('%'.$FILTER.'%',InfraDTO::$OPER_LIKE); | |
| 21 | - $assuntoDTO->setStrDescricao('%'.$FILTER.'%',InfraDTO::$OPER_LIKE); | |
| 22 | - | |
| 23 | - IF($START) | |
| 24 | - $assuntoDTO->setNumMaxRegistrosRetorno($LIMIT); | |
| 25 | - | |
| 26 | - IF($LIMIT) | |
| 27 | - $assuntoDTO->setNumPaginaAtual($START); | |
| 28 | - | |
| 29 | - $assuntoDTO->retNumIdAssunto(); | |
| 30 | - $assuntoDTO->retStrCodigoEstruturado(); | |
| 31 | - $assuntoDTO->retStrDescricao(); | |
| 32 | - | |
| 33 | - // REALIZA A CHAMADA DA DE ASSUNTOS | |
| 34 | - $assuntoRN = new AssuntoRN(); | |
| 35 | - $arrAssuntoDTO = $assuntoRN->listarRN0247($assuntoDTO); | |
| 36 | - | |
| 37 | - | |
| 38 | - ###################PESQUISAR ASSUNTOS################################################### | |
| 39 | - $ID = 0; | |
| 40 | - $FILTER = ''; | |
| 41 | - $START = 0; | |
| 42 | - $LIMIT = 5; | |
| 43 | - | |
| 44 | - $contatoDTO = new ContatoDTO(); | |
| 45 | - | |
| 46 | - if($ID) | |
| 47 | - $contatoDTO->setNumIdContato($ID); | |
| 48 | - | |
| 49 | - if($FILTER) | |
| 50 | - $contatoDTO->setStrNome('%'.$FILTER.'%',InfraDTO::$OPER_LIKE); | |
| 51 | - | |
| 52 | - IF($LIMIT) | |
| 53 | - $contatoDTO->setNumMaxRegistrosRetorno($LIMIT); | |
| 54 | - | |
| 55 | - IF($START) | |
| 56 | - $contatoDTO->setNumPaginaAtual($START); | |
| 57 | - | |
| 58 | - $contatoDTO->retNumIdContato(); | |
| 59 | - $contatoDTO->retStrSigla(); | |
| 60 | - $contatoDTO->retStrNome(); | |
| 61 | - | |
| 62 | - $contatoRN = new ContatoRN(); | |
| 63 | - $arrContatoDTO = $contatoRN->listarRN0325($contatoDTO); | |
| 64 | - | |
| 65 | - ###################PESQUISAR TIPOS DE DOCUMENTO################################################### | |
| 66 | - */ | |
| 67 | - | |
| 68 | -###################TEMPLATE DE CRIAÇÃO DE DOCUMENTO DE UM TIPO ESPECÍFICO############################################ | |
| 69 | -$ID_TIPO_DOCUMENTO = 46; | |
| 70 | - | |
| 71 | -//Consulta os assuntos sugeridos para um tipo de documento | |
| 72 | -$relSerieAssuntoDTO = new RelSerieAssuntoDTO(); | |
| 73 | -$relSerieAssuntoDTO->setNumIdSerie($ID_TIPO_DOCUMENTO); // FILTRO PELO TIPO DE DOCUMENTO | |
| 74 | -$relSerieAssuntoDTO->retNumIdAssuntoProxy(); // ID DO ASSUNTO QUE DEVE SE RETORNADO | |
| 75 | -$relSerieAssuntoDTO->retStrCodigoEstruturadoAssunto(); // CÓDIGO DO ASSUNTO QUE DEVE SE RETORNADO | |
| 76 | -$relSerieAssuntoDTO->retStrDescricaoAssunto(); // DESCRIÇÃO DO ASSUNTO | |
| 77 | - | |
| 78 | -$relSerieAssuntoRN = new RelSerieAssuntoRN(); | |
| 79 | -$arrRelSerieAssuntoDTO = $relSerieAssuntoRN->listar($relSerieAssuntoDTO); | |
| 80 | - | |
| 81 | -// Consulta se o tipo de documento permite a inclusão de destinatários e interessados | |
| 82 | -$serieDTO = new SerieDTO(); | |
| 83 | -$serieDTO->setNumIdSerie($ID_TIPO_DOCUMENTO); | |
| 84 | -$serieDTO->retStrSinDestinatario(); | |
| 85 | -$serieDTO->retStrSinInteressado(); | |
| 86 | - | |
| 87 | -$serieRN = new SerieRN(); | |
| 88 | -$arrSerieDTO = $serieRN->listarRN0646($serieDTO); | |
| 89 | - | |
| 90 | -######################PESQUISAR HIPÓTESES LEGAIS ############################################ | |
| 91 | - | |
| 92 | -$ID = 0; | |
| 93 | -$FILTER = ''; | |
| 94 | -$NIVEL_ACESSO = 2; | |
| 95 | -$START = 0; | |
| 96 | -$LIMIT = 5; | |
| 97 | - | |
| 98 | -$hipoteseLegalDTO = new HipoteseLegalDTO(); | |
| 99 | - | |
| 100 | -if ($ID) | |
| 101 | - $hipoteseLegalDTO->setNumIdHipoteseLegal($ID); | |
| 102 | - | |
| 103 | -if ($NIVEL_ACESSO) | |
| 104 | - $hipoteseLegalDTO->setStrStaNivelAcesso($NIVEL_ACESSO); | |
| 105 | - | |
| 106 | -if ($FILTER) | |
| 107 | - $hipoteseLegalDTO->setStrNome('%' . $FILTER . '%', InfraDTO::$OPER_LIKE); | |
| 108 | - | |
| 109 | -IF ($LIMIT) | |
| 110 | - $hipoteseLegalDTO->setNumMaxRegistrosRetorno($LIMIT); | |
| 111 | - | |
| 112 | -IF ($START) | |
| 113 | - $hipoteseLegalDTO->setNumPaginaAtual($START); | |
| 114 | - | |
| 115 | -$hipoteseLegalDTO->retNumIdHipoteseLegal(); | |
| 116 | -$hipoteseLegalDTO->retStrNome(); | |
| 117 | - | |
| 118 | -$hipoteseLegalRN = new HipoteseLegalRN(); | |
| 119 | -$arrHipoteseLegalDTO = $hipoteseLegalRN->listar($hipoteseLegalDTO); | |
| 120 | - | |
| 121 | -######################PESQUISAR HIPÓTESES LEGAIS ############################################ | |
| 122 | - | |
| 123 | -var_dump($arrHipoteseLegalDTO); | |
| 124 | 0 | \ No newline at end of file |
lab_barramento.php
| ... | ... | @@ -1,96 +0,0 @@ |
| 1 | -<?php | |
| 2 | - | |
| 3 | -require_once __DIR__ . '/../../SEI.php'; | |
| 4 | -SessaoSEI::getInstance(false)->simularLogin(null, null, '100000001', '110000001'); | |
| 5 | - | |
| 6 | -$idProcesso = 12; | |
| 7 | -$idTipoDocumento = 12; | |
| 8 | -$descricao = 'descrição de teste'; | |
| 9 | -$nivelAcesso = 1; | |
| 10 | -$hipoteseLegal = 1; | |
| 11 | -$grauSigilo = ''; | |
| 12 | -$arrAssuntos = array(array('id' => 2), array('id' => 4)); | |
| 13 | -$arrInteressados = array(array('id' => 100000008), array('id' => 100000010), array('id' => 100000002), array('id' => 100000006)); | |
| 14 | -$arrDestinatarios = array(array('id' => 100000008)); | |
| 15 | -$arrRemetentes = array(array('id' => 100000008)); | |
| 16 | - | |
| 17 | - | |
| 18 | -$objDocumentoDTO = new DocumentoDTO(); | |
| 19 | -$objDocumentoDTO->setDblIdDocumento(null); | |
| 20 | -$objDocumentoDTO->setDblIdProcedimento($idProcesso); | |
| 21 | - | |
| 22 | - | |
| 23 | -$objProtocoloDTO = new ProtocoloDTO(); | |
| 24 | -$objProtocoloDTO->setDblIdProtocolo(null); | |
| 25 | -$objProtocoloDTO->setStrStaProtocolo('G'); | |
| 26 | -// $objProtocoloDTO->setDtaGeracao($dtaGeracao); | |
| 27 | - | |
| 28 | -$objDocumentoDTO->setNumIdSerie($idTipoDocumento); | |
| 29 | -// $objDocumentoDTO->setStrNomeSerie($nomeTipo); | |
| 30 | - | |
| 31 | -$objDocumentoDTO->setDblIdDocumentoEdoc(null); | |
| 32 | -$objDocumentoDTO->setDblIdDocumentoEdocBase(null); | |
| 33 | -$objDocumentoDTO->setNumIdUnidadeResponsavel(SessaoSEI::getInstance()->getNumIdUnidadeAtual()); | |
| 34 | -$objDocumentoDTO->setNumIdTipoConferencia(null); | |
| 35 | -$objDocumentoDTO->setStrNumero(''); | |
| 36 | -// $objDocumentoDTO->setNumIdTipoConferencia($objDocumentoAPI->getIdTipoConferencia()); | |
| 37 | - | |
| 38 | -$objProtocoloDTO->setStrStaNivelAcessoLocal($nivelAcesso); | |
| 39 | -$objProtocoloDTO->setNumIdHipoteseLegal($hipoteseLegal); | |
| 40 | -$objProtocoloDTO->setStrDescricao($descricao); | |
| 41 | -$objProtocoloDTO->setStrStaGrauSigilo($grauSigilo); | |
| 42 | - | |
| 43 | -$arrParticipantesDTO = array(); | |
| 44 | - | |
| 45 | -foreach ($arrRemetentes as $k => $remetente) { | |
| 46 | - $objParticipanteDTO = new ParticipanteDTO(); | |
| 47 | - $objParticipanteDTO->setNumIdContato($remetente['id']); | |
| 48 | - $objParticipanteDTO->setStrStaParticipacao(ParticipanteRN::$TP_REMETENTE); | |
| 49 | - $objParticipanteDTO->setNumSequencia($k); | |
| 50 | - $arrParticipantesDTO[] = $objParticipanteDTO; | |
| 51 | -} | |
| 52 | - | |
| 53 | -foreach ($arrInteressados as $k => $interessado) { | |
| 54 | - $objParticipanteDTO = new ParticipanteDTO(); | |
| 55 | - $objParticipanteDTO->setNumIdContato($interessado['id']); | |
| 56 | - $objParticipanteDTO->setStrStaParticipacao(ParticipanteRN::$TP_INTERESSADO); | |
| 57 | - $objParticipanteDTO->setNumSequencia($k); | |
| 58 | - $arrParticipantesDTO[] = $objParticipanteDTO; | |
| 59 | -} | |
| 60 | - | |
| 61 | -foreach ($arrDestinatarios as $k => $destinatario) { | |
| 62 | - $objParticipanteDTO = new ParticipanteDTO(); | |
| 63 | - $objParticipanteDTO->setNumIdContato($destinatario['id']); | |
| 64 | - $objParticipanteDTO->setStrStaParticipacao(ParticipanteRN::$TP_DESTINATARIO); | |
| 65 | - $objParticipanteDTO->setNumSequencia($k); | |
| 66 | - $arrParticipantesDTO[] = $objParticipanteDTO; | |
| 67 | -} | |
| 68 | -$arrRelProtocoloAssuntoDTO = array(); | |
| 69 | - | |
| 70 | -foreach ($arrAssuntos as $k => $assunto) { | |
| 71 | - $relProtocoloAssuntoDTO = new RelProtocoloAssuntoDTO(); | |
| 72 | - $relProtocoloAssuntoDTO->setNumIdAssunto($assunto['id']); | |
| 73 | - $relProtocoloAssuntoDTO->setDblIdProtocolo($idDocumento); | |
| 74 | - $relProtocoloAssuntoDTO->setNumSequencia($k); | |
| 75 | - $arrRelProtocoloAssuntoDTO[] = $relProtocoloAssuntoDTO; | |
| 76 | -} | |
| 77 | - | |
| 78 | -$objProtocoloDTO->setArrObjParticipanteDTO($arrParticipantesDTO); | |
| 79 | -$objProtocoloDTO->setArrObjRelProtocoloAssuntoDTO($arrRelProtocoloAssuntoDTO); | |
| 80 | - | |
| 81 | -//OBSERVACOES | |
| 82 | -$objObservacaoDTO = new ObservacaoDTO(); | |
| 83 | -$objObservacaoDTO->setStrDescricao($observacao); | |
| 84 | -$objProtocoloDTO->setArrObjObservacaoDTO(array($objObservacaoDTO)); | |
| 85 | - | |
| 86 | -$objDocumentoDTO->setObjProtocoloDTO($objProtocoloDTO); | |
| 87 | -$objDocumentoDTO->setStrStaDocumento(DocumentoRN::$TD_EDITOR_INTERNO); | |
| 88 | - | |
| 89 | -try { | |
| 90 | - $objDocumentoRN = new DocumentoRN(); | |
| 91 | - $obj = $objDocumentoRN->cadastrarRN0003($objDocumentoDTO); | |
| 92 | - | |
| 93 | - var_dump($obj); | |
| 94 | -} catch (Exception $ex) { | |
| 95 | - var_dump($ex); | |
| 96 | -} |