D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
gre
/
Models
/
Filename :
GreApagarResidEstLanc.php
back
Copy
<?php namespace App\gre\Models; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of GrsApagarServContratado * * @copyright (c) year, Carlos Marques - CM */ class GreApagarResidEstLanc { private $DadosId; private $Resultado; function getResultado() { return $this->Resultado; } public function apagarEstLanc($DadosId = null) { $this->DadosId = filter_input_array(INPUT_GET, FILTER_DEFAULT); // var_dump($this->DadosId); // die; // die; $apagaLanc = new \App\adms\Models\helper\AdmsProcedure(); $apagaLanc->exeProcedure("apaga_lancamento_residente", $this->DadosId['id']); if ($apagaLanc->getResultado()) { $_SESSION['msg'] = "<div class='alert alert-success' role='alert'> Lancamento Excluido com sucesso! <button type='button' class='close' data-dismiss='alert' aria-label='Close'> <span aria-hidden='true'>×</span></button> </div>"; $this->Resultado = true; } else { $_SESSION['msg'] = "<div class='alert alert-danger' role='alert'> Erro: Lançamento não foi Excluido! <button type='button' class='close' data-dismiss='alert' aria-label='Close'> <span aria-hidden='true'>×</span></button> </div>"; $this->Resultado = false; } } }