D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
gre
/
Models
/
Filename :
GreLerContaCPCR.php
back
Copy
<?php namespace App\gre\Models; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of ContaCPCR * * @copyright (c) year, Carlos Marques - CM */ class GreLerContaCPCR { private $Resultado; private $Dados; public function lerLanc($DadosId = null) { $this->Dados = (int) $DadosId; $lerLanc = new \App\adms\Models\helper\AdmsRead(); $lerLanc->fullRead("SELECT lpad(conta.id,3,0) conta_id, conta.nome conta_nome, tipo.id tipo_id, tipo.nome tipo_nome FROM gre_cp_cr_conta conta join gre_cp_cr_tipo_conta tipo on tipo.id = conta.gre_tipo_id order by tipo_id, conta.ordem ", "id=". $this->Dados); $this->Resultado= $lerLanc->getResultado(); return $this->Resultado; } }