D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso_ant
/
adm
/
app
/
gre
/
Controllers
/
Filename :
EstTipoLancamento.php
back
Copy
<?php namespace App\gre\Controllers; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of EstTipoLancamento * * @copyright (c) year, Carlos Marques - CM */ class EstTipoLancamento { private $Dados; private $DadosForm; private $PageId; public function listar($PageId = null) { $botao = ['list_est_tipo_lanc' => ['menu_controller' => 'est-tipo-lancamento', 'menu_metodo' => 'listar'], 'cad_est_tipo_lanc' => ['menu_controller' => 'cadastrar-est-tipo-lancamento', 'menu_metodo' => 'cad-est-tipo-lanc'], 'vis_est_tipo_lanc' => ['menu_controller' => 'ver-est-tipo-lancamento', 'menu_metodo' => 'ver-est-tipo-lanc'], 'edit_est_tipo_lanc' => ['menu_controller' => 'editar-est-tipo-lancamento', 'menu_metodo' => 'edit-est-tipo-lanc'], 'del_est_tipo_lanc' => ['menu_controller' => 'apagar-est-tipo-lancamento', 'menu_metodo' => 'apagar-est-tipo-lanc']]; $listarBotao = new \App\adms\Models\AdmsBotao(); $this->Dados['botao'] = $listarBotao->valBotao($botao); $listarMenu = new \App\adms\Models\AdmsMenu(); $this->Dados['menu'] = $listarMenu->itemMenu(); $this->cadEstTipoLancViewPriv(); $this->DadosForm = filter_input_array(INPUT_POST, FILTER_DEFAULT); if (!empty($this->DadosForm['ListEstTipoLanc'])) { unset($this->DadosForm['ListEstTipoLanc']); } else { $this->PageId = (int) $PageId ? $PageId : 1; $this->DadosForm['nome_est_tipo_lanc'] = filter_input(INPUT_GET, 'nome_est_tipo_lanc', FILTER_DEFAULT); $this->DadosForm['est_tipo_lanc_nome'] = filter_input(INPUT_GET, 'est_tipo_lanc_nome', FILTER_DEFAULT); } $listarEstTipoLanc = new \App\gre\Models\GreListarEstTipoLancamento(); $this->Dados['listEstTipoLanc'] = $listarEstTipoLanc->listarEstTipoLanc($this->PageId, $this->DadosForm); $this->Dados['paginacao'] = $listarEstTipoLanc->getResultadoPg(); $carregarView = new \Core\ConfigView("gre/Views/Estoque/listarEstTipoLancamento", $this->Dados); $carregarView->renderizar(); } private function cadEstTipoLancViewPriv() { $listarSelect = new \App\gre\Models\GreListarEstTipoLancamento(); $this->Dados['select'] = $listarSelect->listarCadastrar(); } }