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