Commit 9fc86d113fe0b7fa41fd53fa919c26a902adc039
1 parent
3a0a176d
Exists in
master
and in
19 other branches
[Fixed #10] Adequação de rotina de gravação de dados de andamento
Showing
1 changed file
with
1 additions
and
5 deletions
Show diff stats
rn/ProcedimentoAndamentoRN.php
| @@ -62,7 +62,7 @@ class ProcedimentoAndamentoRN extends InfraRN { | @@ -62,7 +62,7 @@ class ProcedimentoAndamentoRN extends InfraRN { | ||
| 62 | * @param string $strSituacao Tipo ENUM(S,N) | 62 | * @param string $strSituacao Tipo ENUM(S,N) |
| 63 | * @return null | 63 | * @return null |
| 64 | */ | 64 | */ |
| 65 | - public function cadastrar($strMensagem = 'Não informado', $strSituacao = 'N'){ | 65 | + protected function cadastrarControlado($strMensagem = 'Não informado', $strSituacao = 'N'){ |
| 66 | 66 | ||
| 67 | if($this->isSetOpts === false) { | 67 | if($this->isSetOpts === false) { |
| 68 | throw new InfraException('Log do cadastro de procedimento não foi configurado'); | 68 | throw new InfraException('Log do cadastro de procedimento não foi configurado'); |
| @@ -70,8 +70,6 @@ class ProcedimentoAndamentoRN extends InfraRN { | @@ -70,8 +70,6 @@ class ProcedimentoAndamentoRN extends InfraRN { | ||
| 70 | 70 | ||
| 71 | $objInfraIBanco = $this->inicializarObjInfraIBanco(); | 71 | $objInfraIBanco = $this->inicializarObjInfraIBanco(); |
| 72 | 72 | ||
| 73 | - $objInfraIBanco->abrirTransacao(); | ||
| 74 | - | ||
| 75 | $hash = md5($this->dblIdProcedimento.$strMensagem); | 73 | $hash = md5($this->dblIdProcedimento.$strMensagem); |
| 76 | 74 | ||
| 77 | $objProcedimentoAndamentoDTO = new ProcedimentoAndamentoDTO(); | 75 | $objProcedimentoAndamentoDTO = new ProcedimentoAndamentoDTO(); |
| @@ -86,7 +84,5 @@ class ProcedimentoAndamentoRN extends InfraRN { | @@ -86,7 +84,5 @@ class ProcedimentoAndamentoRN extends InfraRN { | ||
| 86 | 84 | ||
| 87 | $objProcedimentoAndamentoBD = new ProcedimentoAndamentoBD($objInfraIBanco); | 85 | $objProcedimentoAndamentoBD = new ProcedimentoAndamentoBD($objInfraIBanco); |
| 88 | $objProcedimentoAndamentoBD->cadastrar($objProcedimentoAndamentoDTO); | 86 | $objProcedimentoAndamentoBD->cadastrar($objProcedimentoAndamentoDTO); |
| 89 | - | ||
| 90 | - $objInfraIBanco->confirmarTransacao(); | ||
| 91 | } | 87 | } |
| 92 | } | 88 | } |