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
| @@ -9,7 +9,7 @@ class PENIntegracao extends SeiIntegracao { | @@ -9,7 +9,7 @@ class PENIntegracao extends SeiIntegracao { | ||
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | public function getVersao() { | 11 | public function getVersao() { |
| 12 | - return '1.1.0'; | 12 | + return '1.1.1'; |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | public function getInstituicao() { | 15 | public function getInstituicao() { |
pen_map_tipo_documento_envio_cadastrar.php
| @@ -125,7 +125,7 @@ $objPaginaSEI->montarStyle(); | @@ -125,7 +125,7 @@ $objPaginaSEI->montarStyle(); | ||
| 125 | ?> | 125 | ?> |
| 126 | <style type="text/css"> | 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 | .input-field-first{position:absolute;left:0%;top:55%;width:25%} | 129 | .input-field-first{position:absolute;left:0%;top:55%;width:25%} |
| 130 | 130 | ||
| 131 | .input-label-third {position:absolute;left:0%;top:0%;width:25%; color:#666!important} | 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,9 +16,7 @@ class PenParametroRN extends InfraRN { | ||
| 16 | protected function contarControlado(PenParametroDTO $objDTO){ | 16 | protected function contarControlado(PenParametroDTO $objDTO){ |
| 17 | 17 | ||
| 18 | try { | 18 | try { |
| 19 | - | ||
| 20 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | 19 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); |
| 21 | - | ||
| 22 | return $objBD->contar($objDTO); | 20 | return $objBD->contar($objDTO); |
| 23 | } | 21 | } |
| 24 | catch (Exception $e) { | 22 | catch (Exception $e) { |
| @@ -30,11 +28,7 @@ class PenParametroRN extends InfraRN { | @@ -30,11 +28,7 @@ class PenParametroRN extends InfraRN { | ||
| 30 | protected function consultarControlado(PenParametroDTO $objDTO){ | 28 | protected function consultarControlado(PenParametroDTO $objDTO){ |
| 31 | 29 | ||
| 32 | try { | 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 | return $objBD->consultar($objDTO); | 32 | return $objBD->consultar($objDTO); |
| 39 | } | 33 | } |
| 40 | catch (Exception $e) { | 34 | catch (Exception $e) { |
| @@ -45,11 +39,8 @@ class PenParametroRN extends InfraRN { | @@ -45,11 +39,8 @@ class PenParametroRN extends InfraRN { | ||
| 45 | protected function listarControlado(PenParametroDTO $objDTO){ | 39 | protected function listarControlado(PenParametroDTO $objDTO){ |
| 46 | 40 | ||
| 47 | try { | 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 | return $objBD->listar($objDTO); | 44 | return $objBD->listar($objDTO); |
| 54 | } | 45 | } |
| 55 | catch (Exception $e) { | 46 | catch (Exception $e) { |
| @@ -60,11 +51,7 @@ class PenParametroRN extends InfraRN { | @@ -60,11 +51,7 @@ class PenParametroRN extends InfraRN { | ||
| 60 | protected function cadastrarControlado(PenParametroDTO $objDTO){ | 51 | protected function cadastrarControlado(PenParametroDTO $objDTO){ |
| 61 | 52 | ||
| 62 | try { | 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 | return $objBD->cadastrar($objDTO); | 55 | return $objBD->cadastrar($objDTO); |
| 69 | } | 56 | } |
| 70 | catch (Exception $e) { | 57 | catch (Exception $e) { |
| @@ -75,11 +62,8 @@ class PenParametroRN extends InfraRN { | @@ -75,11 +62,8 @@ class PenParametroRN extends InfraRN { | ||
| 75 | protected function alterarControlado(PenParametroDTO $objDTO){ | 62 | protected function alterarControlado(PenParametroDTO $objDTO){ |
| 76 | 63 | ||
| 77 | try { | 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 | return $objBD->alterar($objDTO); | 67 | return $objBD->alterar($objDTO); |
| 84 | } | 68 | } |
| 85 | catch (Exception $e) { | 69 | catch (Exception $e) { |
| @@ -90,46 +74,18 @@ class PenParametroRN extends InfraRN { | @@ -90,46 +74,18 @@ class PenParametroRN extends InfraRN { | ||
| 90 | protected function excluirControlado(PenParametroDTO $objDTO){ | 74 | protected function excluirControlado(PenParametroDTO $objDTO){ |
| 91 | 75 | ||
| 92 | try { | 76 | try { |
| 93 | - | ||
| 94 | - SessaoSEI::getInstance()->validarAuditarPermissao('pen_map_hipotese_legal_padrao_cadastrar', __METHOD__, $objDTO); | ||
| 95 | - | ||
| 96 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | 77 | $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); |
| 97 | - | ||
| 98 | return $objBD->excluir($objDTO); | 78 | return $objBD->excluir($objDTO); |
| 99 | } | 79 | } |
| 100 | catch (Exception $e) { | 80 | catch (Exception $e) { |
| 101 | throw new InfraException('Erro ao excluir parâmetro.', $e); | 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 | public function setValor($strNome, $strValor){ | 85 | public function setValor($strNome, $strValor){ |
| 128 | 86 | ||
| 129 | try { | 87 | try { |
| 130 | - | ||
| 131 | - $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); | ||
| 132 | - | 88 | + $objBD = new PenParametroBD($this->inicializarObjInfraIBanco()); |
| 133 | return $objBD->setValor($strNome, $strValor); | 89 | return $objBD->setValor($strNome, $strValor); |
| 134 | } | 90 | } |
| 135 | catch (Exception $e) { | 91 | catch (Exception $e) { |
| @@ -137,8 +93,7 @@ class PenParametroRN extends InfraRN { | @@ -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 | return $objBD->isSetValor($strNome); | 97 | return $objBD->isSetValor($strNome); |
| 143 | } | 98 | } |
| 144 | 99 |