D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso
/
adm
/
app
/
gre
/
Models
/
Filename :
GreVerEstruturaServico.php
back
Copy
<?php namespace App\gre\Models; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of GreVerEstruturaServico * * @copyright (c) year, Carlos Marques */ class GreVerEstruturaServico { private $Resultado; private $DadosId; public function verEstrutServ($DadosId) { $this->DadosId = (int) $DadosId; $verEstrutServ = new \App\adms\Models\helper\AdmsRead(); $verEstrutServ->fullRead("SELECT estrutserv.*, filial.nome_fantasia filial_nome, gruposerv.nome gruposerv_nome, serv.nome serv_nome FROM gre_estrutura_servico estrutserv INNER JOIN gre_filial filial on filial.id = estrutserv.gre_filial_id INNER JOIN gre_grupo_servico gruposerv on gruposerv.id = estrutserv.gre_grupo_servico_id INNER JOIN gre_servico serv on serv.id = estrutserv.gre_servico_id WHERE estrutserv.id = :id LIMIT :limit", "id=".$this->DadosId."&limit=1"); $this->Resultado= $verEstrutServ->getResultado(); return $this->Resultado; } }