D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
gre
/
Models
/
Filename :
GreLerCliniInv.php
back
Copy
<?php namespace App\gre\Models; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of GreLerCliniInv * * @copyright (c) year, Carlos Marques - CM */ class GreLerCliniInv { private $Resultado; private $Dados; public function lerInv($DadosId = null) { $this->Dados = $DadosId; $lerFat = new \App\adms\Models\helper\AdmsRead(); $lerFat->fullRead("SELECT est.*, filial.nome_fantasia filial_nome, depto.nome depto_nome, depto.id depto_id, prod.nome prod_nome, prod.dv prod_dv FROM gre_estoque_clinica est join gre_produto prod on est.gre_produto_id = prod.id join gre_filial filial on filial.id = est.gre_filial_id join gre_prod_departamento depto on depto.id = prod.gre_departamento_id WHERE est.gre_empr_princ_id = :empr_princ_id and est.gre_filial_id = :filial_id and prod.gre_departamento_id = :depto_id", "depto_id={$this->Dados['gre_departamento_id']}&filial_id={$this->Dados['gre_filial_id']}&empr_princ_id={$this->Dados['gre_empr_princ_id']}"); $this->Resultado= $lerFat->getResultado(); return $this->Resultado; } }