Commit fd7dbc7755af01dde7653be723f289c33f31f22a
1 parent
4778226d
Exists in
master
and in
7 other branches
Ajuste em verificação de permissões de auditoria para parâmetros do módulo
Showing
3 changed files
with
10 additions
and
55 deletions
Show diff stats
PENIntegracao.php
pen_map_tipo_documento_envio_cadastrar.php
| ... | ... | @@ -125,7 +125,7 @@ $objPaginaSEI->montarStyle(); |
| 125 | 125 | ?> |
| 126 | 126 | <style type="text/css"> |
| 127 | 127 | |
| 128 | -.input-label-first{position:absolute;left:0%;top:40 | |
| 128 | +.input-label-first{position:absolute;left:0%;top:40%;width:25%; color: #666!important} | |
| 129 | 129 | .input-field-first{position:absolute;left:0%;top:55%;width:25%} |
| 130 | 130 | |
| 131 | 131 | .input-label-third {position:absolute;left:0%;top:0%;width:25%; color:#666!important} | ... | ... |
rn/PenParametroRN.php
| ... | ... | @@ -16,9 +16,7 @@ class PenParametroRN extends InfraRN { |
| 16 | 16 | protected function contarControlado(PenParametroDTO $objDTO){ |
| 17 | 17 | |
| 18 | 18 | try { |
| 19 | - | |
| 20 | 19 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); |
| 21 | - | |
| 22 | 20 | return $objBD->contar($objDTO); |
| 23 | 21 | } |
| 24 | 22 | catch (Exception $e) { |
| ... | ... | @@ -30,11 +28,7 @@ class PenParametroRN extends InfraRN { |
| 30 | 28 | protected function consultarControlado(PenParametroDTO $objDTO){ |
| 31 | 29 | |
| 32 | 30 | try { |
| 33 | - | |
| 34 | - SessaoSEI::getInstance()->validarAuditarPermissao('pen_map_hipotese_legal_padrao_cadastrar', __METHOD__, $objDTO); | |
| 35 | - | |
| 36 | - $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | |
| 37 | - | |
| 31 | + $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | |
| 38 | 32 | return $objBD->consultar($objDTO); |
| 39 | 33 | } |
| 40 | 34 | catch (Exception $e) { |
| ... | ... | @@ -45,11 +39,8 @@ class PenParametroRN extends InfraRN { |
| 45 | 39 | protected function listarControlado(PenParametroDTO $objDTO){ |
| 46 | 40 | |
| 47 | 41 | try { |
| 48 | - | |
| 49 | - SessaoSEI::getInstance()->validarAuditarPermissao('pen_map_hipotese_legal_padrao_cadastrar', __METHOD__, $objDTO); | |
| 50 | - | |
| 51 | - $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | |
| 52 | - | |
| 42 | + SessaoSEI::getInstance()->validarAuditarPermissao('pen_parametros_configuracao', __METHOD__, $objDTO); | |
| 43 | + $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | |
| 53 | 44 | return $objBD->listar($objDTO); |
| 54 | 45 | } |
| 55 | 46 | catch (Exception $e) { |
| ... | ... | @@ -60,11 +51,7 @@ class PenParametroRN extends InfraRN { |
| 60 | 51 | protected function cadastrarControlado(PenParametroDTO $objDTO){ |
| 61 | 52 | |
| 62 | 53 | try { |
| 63 | - | |
| 64 | - SessaoSEI::getInstance()->validarAuditarPermissao('pen_map_hipotese_legal_padrao_cadastrar', __METHOD__, $objDTO); | |
| 65 | - | |
| 66 | - $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | |
| 67 | - | |
| 54 | + $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | |
| 68 | 55 | return $objBD->cadastrar($objDTO); |
| 69 | 56 | } |
| 70 | 57 | catch (Exception $e) { |
| ... | ... | @@ -75,11 +62,8 @@ class PenParametroRN extends InfraRN { |
| 75 | 62 | protected function alterarControlado(PenParametroDTO $objDTO){ |
| 76 | 63 | |
| 77 | 64 | try { |
| 78 | - | |
| 79 | - SessaoSEI::getInstance()->validarAuditarPermissao('pen_map_hipotese_legal_padrao_cadastrar', __METHOD__, $objDTO); | |
| 80 | - | |
| 81 | - $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | |
| 82 | - | |
| 65 | + SessaoSEI::getInstance()->validarAuditarPermissao('pen_parametros_configuracao_alterar', __METHOD__, $objDTO); | |
| 66 | + $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | |
| 83 | 67 | return $objBD->alterar($objDTO); |
| 84 | 68 | } |
| 85 | 69 | catch (Exception $e) { |
| ... | ... | @@ -90,46 +74,18 @@ class PenParametroRN extends InfraRN { |
| 90 | 74 | protected function excluirControlado(PenParametroDTO $objDTO){ |
| 91 | 75 | |
| 92 | 76 | try { |
| 93 | - | |
| 94 | - SessaoSEI::getInstance()->validarAuditarPermissao('pen_map_hipotese_legal_padrao_cadastrar', __METHOD__, $objDTO); | |
| 95 | - | |
| 96 | 77 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); |
| 97 | - | |
| 98 | 78 | return $objBD->excluir($objDTO); |
| 99 | 79 | } |
| 100 | 80 | catch (Exception $e) { |
| 101 | 81 | throw new InfraException('Erro ao excluir parâmetro.', $e); |
| 102 | 82 | } |
| 103 | 83 | } |
| 104 | - | |
| 105 | - protected function desativarControlado(PenParametroDTO $objDTO){ | |
| 106 | - | |
| 107 | - try { | |
| 108 | - | |
| 109 | - | |
| 110 | - } | |
| 111 | - catch (Exception $e) { | |
| 112 | - throw new InfraException('Erro ao desativar parâmetro.', $e); | |
| 113 | - } | |
| 114 | - } | |
| 115 | - | |
| 116 | - protected function reativarControlado(PenParametroDTO $objDTO){ | |
| 117 | 84 | |
| 118 | - try { | |
| 119 | - | |
| 120 | - | |
| 121 | - } | |
| 122 | - catch (Exception $e) { | |
| 123 | - throw new InfraException('Erro ao reativar parâmetro.', $e); | |
| 124 | - } | |
| 125 | - } | |
| 126 | - | |
| 127 | 85 | public function setValor($strNome, $strValor){ |
| 128 | 86 | |
| 129 | 87 | try { |
| 130 | - | |
| 131 | - $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | |
| 132 | - | |
| 88 | + $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | |
| 133 | 89 | return $objBD->setValor($strNome, $strValor); |
| 134 | 90 | } |
| 135 | 91 | catch (Exception $e) { |
| ... | ... | @@ -137,8 +93,7 @@ class PenParametroRN extends InfraRN { |
| 137 | 93 | } |
| 138 | 94 | } |
| 139 | 95 | |
| 140 | - public function isSetValor($strNome){ | |
| 141 | - | |
| 96 | + public function isSetValor($strNome){ | |
| 142 | 97 | return $objBD->isSetValor($strNome); |
| 143 | 98 | } |
| 144 | 99 | ... | ... |