D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
gre
/
Models
/
Filename :
GreVerItemPedido.php
back
Copy
<?php namespace App\gre\Models; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of GreVerPedidoMan * * @copyright (c) year, Carlos Marques */ class GreVerItemPedido { private $Resultado; private $DadosId; public function verItemPed() { $this->DadosId = filter_input_array(INPUT_GET, FILTER_DEFAULT); // var_dump( $this->DadosId ); // die; $verItemPed = new \App\adms\Models\helper\AdmsRead(); $verItemPed->fullRead("SELECT ped.*, prod.nome prod_nome, sit.nome nome_sit, filial.nome_fantasia filial_nome from gre_pedido ped inner join gre_produto prod on prod.id = ped.gre_produto_id inner join gre_filial filial on filial.id = ped.gre_filial_id INNER JOIN adms_sits sit ON sit.id= ped.gre_status_fat_id WHERE ped.gre_status_fat_id = 1 and ped.gre_filial_id = :id_filial and ped.gre_empr_princ_id = :id_user and ped.data = :data and ped.gre_departamento_id = :depto ORDER BY prod.nome ", "data={$this->DadosId['data']}&id_user={$_SESSION['id_user']}&depto={$this->DadosId['depto']}&id_filial={$this->DadosId['filial_id']}"); $this->Resultado= $verItemPed->getResultado(); return $this->Resultado; } }