D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
rosario
/
adm
/
app
/
gre
/
Controllers
/
Filename :
ConExcCompProd.php
back
Copy
<?php namespace App\gre\Controllers; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of ConExcCompProd * * @copyright (c) year, Carlos Marques - CM */ class ConExcCompProd { private $Dados; private $DadosImpr; public function listar(){ $this->DadosImpr = filter_input_array(INPUT_GET, FILTER_DEFAULT); // var_dump( $this->DadosImpr); if(isset($this->DadosImpr['opcao'])) { $this->Dados = $this->DadosImpr; if($this->DadosImpr['opcao']=='I') { $carregarView = new \App\gre\core\ConfigViewImprSimples("gre/Views/Excesso/VieExcCompProdExcel", $this->Dados); $carregarView->renderizarGre(); } } $this->Dados = $this->DadosImpr; $listCompProd = new \App\gre\Models\ModExcCompProd(); $listCompProd->listCompProd($this->Dados); $this->Dados['select'] = $listCompProd->listCompProd($this->Dados); $botao = ['lis_comp' => ['menu_controller' => 'con-exc-comprador', 'menu_metodo' => 'listar'], 'vol_comp' => ['menu_controller' => 'con-exc-comprador', 'menu_metodo' => 'listar']]; $listarBotao = new \App\adms\Models\AdmsBotao(); $this->Dados['botao'] = $listarBotao->valBotao($botao); $carregarView = new \App\gre\core\ConfigViewList("gre/Views/Excesso/VieExcCompProd", $this->Dados); $carregarView->renderizarGre(); } }