D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
rosario
/
adm
/
app
/
gre
/
Models
/
Cotacao
/
Filename :
ModCtReceberVer.php
back
Copy
<?php namespace App\gre\Models\Cotacao; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of ModFilialVer { * * @copyright (c) year, Carlos Marques - CM */ class ModCtReceberVer { private $Resultado; private $DadosId; private $DadosGet; public function verRec($DadosId) { $this->DadosGet = filter_input_array(INPUT_GET, FILTER_DEFAULT); $this->DadosId = $this->DadosGet['id'] ; $verRec= new \App\adms\Models\helper\AdmsRead(); $verRec->fullRead("select c.*, :ordem ordem, t.nome tipo_nome, c.nome marca_nome, u.usuario usu_nome, c.observacao, c.imagem, case when c.data_vencimento > curdate() then 2 else 1 END situacao from ro_trade_receber c inner join ro_trade_tipo_contrato t on t.id = c.tipo_contrato_id left join adms_usuarios u on u.id = c.usuario_baixa where c.id = :id", "id=".$this->DadosId. "&ordem=".$this->DadosGet['ordem']); $this->Resultado= $verRec->getResultado(); // var_dump($this->Resultado); return $this->Resultado; } }