Commit e1229a889e4917abd9cdc64775d920ab1bd0667a
1 parent
2a43d534
Exists in
master
and in
7 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
3 changed files
with
7 additions
and
11 deletions
Show diff stats
PENIntegracao.php
@@ -61,11 +61,12 @@ class PENIntegracao extends SeiIntegracao { | @@ -61,11 +61,12 @@ class PENIntegracao extends SeiIntegracao { | ||
61 | $strAcoesProcedimento .= '<a id="validar_expedir_processo" href="' . $objPaginaSEI->formatarXHTML($objSessaoSEI->assinarLink('controlador.php?acao=pen_procedimento_expedir&acao_origem=procedimento_visualizar&acao_retorno=arvore_visualizar&id_procedimento=' . $dblIdProcedimento . '&arvore=1')) . '" tabindex="' . $numTabBotao . '" class="botaoSEI"><img class="infraCorBarraSistema" src="' . $this->getDiretorioImagens() . '/pen_expedir_procedimento.gif" alt="Tramitar Externamente" title="Tramitar Externamente" /></a>'; | 61 | $strAcoesProcedimento .= '<a id="validar_expedir_processo" href="' . $objPaginaSEI->formatarXHTML($objSessaoSEI->assinarLink('controlador.php?acao=pen_procedimento_expedir&acao_origem=procedimento_visualizar&acao_retorno=arvore_visualizar&id_procedimento=' . $dblIdProcedimento . '&arvore=1')) . '" tabindex="' . $numTabBotao . '" class="botaoSEI"><img class="infraCorBarraSistema" src="' . $this->getDiretorioImagens() . '/pen_expedir_procedimento.gif" alt="Tramitar Externamente" title="Tramitar Externamente" /></a>'; |
62 | } | 62 | } |
63 | 63 | ||
64 | - //Apresenta o botão da página de recibos | ||
65 | - $strAcoesProcedimento .= '<a href="' . $objSessaoSEI->assinarLink('controlador.php?acao=pen_procedimento_estado&acao_origem=procedimento_visualizar&acao_retorno=arvore_visualizar&id_procedimento=' . $dblIdProcedimento . '&arvore=1') . '" tabindex="' . $numTabBotao . '" class="botaoSEI">'; | ||
66 | - $strAcoesProcedimento .= '<img class="infraCorBarraSistema" src="' . $this->getDiretorioImagens() . '/pen_consultar_recibos.png" alt="Consultar Recibos" title="Consultar Recibos"/>'; | ||
67 | - $strAcoesProcedimento .= '</a>'; | ||
68 | - | 64 | + if($bolAcaoExpedirProcesso){ |
65 | + //Apresenta o botão da página de recibos | ||
66 | + $strAcoesProcedimento .= '<a href="' . $objSessaoSEI->assinarLink('controlador.php?acao=pen_procedimento_estado&acao_origem=procedimento_visualizar&acao_retorno=arvore_visualizar&id_procedimento=' . $dblIdProcedimento . '&arvore=1') . '" tabindex="' . $numTabBotao . '" class="botaoSEI">'; | ||
67 | + $strAcoesProcedimento .= '<img class="infraCorBarraSistema" src="' . $this->getDiretorioImagens() . '/pen_consultar_recibos.png" alt="Consultar Recibos" title="Consultar Recibos"/>'; | ||
68 | + $strAcoesProcedimento .= '</a>'; | ||
69 | + } | ||
69 | //Apresenta o botão de cancelar trâmite | 70 | //Apresenta o botão de cancelar trâmite |
70 | $objAtividadeDTO = $objExpedirProcedimentoRN->verificarProcessoEmExpedicao($objSeiIntegracaoDTO->getIdProcedimento()); | 71 | $objAtividadeDTO = $objExpedirProcedimentoRN->verificarProcessoEmExpedicao($objSeiIntegracaoDTO->getIdProcedimento()); |
71 | 72 |
rn/PenParametroRN.php
@@ -31,7 +31,6 @@ class PenParametroRN extends InfraRN { | @@ -31,7 +31,6 @@ class PenParametroRN extends InfraRN { | ||
31 | 31 | ||
32 | try { | 32 | try { |
33 | 33 | ||
34 | - SessaoSEI::getInstance()->validarAuditarPermissao('pen_map_hipotese_legal_padrao_cadastrar', __METHOD__, $objDTO); | ||
35 | 34 | ||
36 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | 35 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); |
37 | 36 | ||
@@ -46,7 +45,6 @@ class PenParametroRN extends InfraRN { | @@ -46,7 +45,6 @@ class PenParametroRN extends InfraRN { | ||
46 | 45 | ||
47 | try { | 46 | try { |
48 | 47 | ||
49 | - SessaoSEI::getInstance()->validarAuditarPermissao('pen_map_hipotese_legal_padrao_cadastrar', __METHOD__, $objDTO); | ||
50 | 48 | ||
51 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | 49 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); |
52 | 50 | ||
@@ -61,7 +59,6 @@ class PenParametroRN extends InfraRN { | @@ -61,7 +59,6 @@ class PenParametroRN extends InfraRN { | ||
61 | 59 | ||
62 | try { | 60 | try { |
63 | 61 | ||
64 | - SessaoSEI::getInstance()->validarAuditarPermissao('pen_map_hipotese_legal_padrao_cadastrar', __METHOD__, $objDTO); | ||
65 | 62 | ||
66 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | 63 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); |
67 | 64 | ||
@@ -76,7 +73,6 @@ class PenParametroRN extends InfraRN { | @@ -76,7 +73,6 @@ class PenParametroRN extends InfraRN { | ||
76 | 73 | ||
77 | try { | 74 | try { |
78 | 75 | ||
79 | - SessaoSEI::getInstance()->validarAuditarPermissao('pen_map_hipotese_legal_padrao_cadastrar', __METHOD__, $objDTO); | ||
80 | 76 | ||
81 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | 77 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); |
82 | 78 | ||
@@ -91,7 +87,6 @@ class PenParametroRN extends InfraRN { | @@ -91,7 +87,6 @@ class PenParametroRN extends InfraRN { | ||
91 | 87 | ||
92 | try { | 88 | try { |
93 | 89 | ||
94 | - SessaoSEI::getInstance()->validarAuditarPermissao('pen_map_hipotese_legal_padrao_cadastrar', __METHOD__, $objDTO); | ||
95 | 90 | ||
96 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | 91 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); |
97 | 92 |
rn/ReceberProcedimentoRN.php
@@ -1082,7 +1082,7 @@ class ReceberProcedimentoRN extends InfraRN | @@ -1082,7 +1082,7 @@ class ReceberProcedimentoRN extends InfraRN | ||
1082 | 1082 | ||
1083 | if(array_key_exists($objDocumento->ordem, $arrObjComponenteDigitalDTOIndexado)){ | 1083 | if(array_key_exists($objDocumento->ordem, $arrObjComponenteDigitalDTOIndexado)){ |
1084 | //$objComponenteDigitalDTO = $arrObjComponenteDigitalDTO[$objDocumento->ordem]; | 1084 | //$objComponenteDigitalDTO = $arrObjComponenteDigitalDTO[$objDocumento->ordem]; |
1085 | - //$this->alterarMetadadosDocumento($objComponenteDigitalDTO->getNumIdDocumento(), $objDocumento); | 1085 | + //$this->alterarMetadadosDocumento($objComponenteDigitalDTO->getDblIdDocumento(), $objDocumento); |
1086 | continue; | 1086 | continue; |
1087 | } | 1087 | } |
1088 | 1088 |