D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
cpgre
/
Models
/
Filename :
CpGrePesqFechaManual.php
back
Copy
<?php namespace App\cpgre\Models; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of CpGrePesqFechaManual * * @copyright (c) year, Carlos Marques -CM */ class CpGrePesqFechaManual { private $Resultado; private $PageId; private $LimiteResultado = 40; private $ResultadoPg; private $PesqFecMan; private $PesqFilial; private $data_fechamento; function getResultadoPg() { return $this->ResultadoPg; } public function PesqFecMan($PesqFecMan = null, $PesqFilial = null, $data_fechamento = null) { $this->PesqFecMan = (string) $PesqFecMan; $this->PesqFilial = (int) $PesqFilial; $this->data_fechamento = $data_fechamento; $this->ResultadoPg = null; $listarFecMan = new \App\adms\Models\helper\AdmsRead(); $listarFecMan->fullRead("SELECT resid.id, resid.nome resid_nome, resid.cpf resid_cpf, sit.nome nome_sit, :data_fechamento data_fechamento, e.tipo_fechamento, cr.cor cor_cr FROM gre_residente resid inner join gre_empresa e on e.id = resid.gre_empr_princ_id INNER JOIN adms_sits sit ON sit.id=resid.adms_sit_id INNER JOIN adms_cors cr ON cr.id=sit.adms_cor_id WHERE resid.nome LIKE '%' :nome '%' and resid.gre_filial_id = :filial and sit.id = 1 ORDER BY resid.id DESC LIMIT :limit","nome=" . $this->PesqFecMan . "&filial={$this->PesqFilial}". "&data_fechamento={$this->data_fechamento}" . "&limit={$this->LimiteResultado}"); $this->Resultado = $listarFecMan->getResultado(); // var_dump( $this->Resultado); return $this->Resultado; } }