D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso_ant
/
adm
/
app
/
gre
/
Controllers
/
Filename :
VerEstoqueAcolhimento.php
back
Copy
<?php namespace App\gre\Controllers; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of VerEstoqueAcolhimento * * @copyright (c) year, Carlos Marques - CM */ class VerEstoqueAcolhimento { // ver-tip-est-acolh private $Dados; private $DadosId; private $DadosForm; public function verEstAcolh($DadosId = null) { $this->DadosId = $DadosId; $this->DadosForm = filter_input_array(INPUT_GET, FILTER_DEFAULT); if (!empty($this->DadosForm)) { $verEstAcolh = new \App\gre\Models\GreVerEstoqueAcolhimento(); $this->Dados['dadosEstAcolh'] = $verEstAcolh->verEstAcolh($this->DadosForm); $botao = ['list_est_acolh' => ['menu_controller' => 'estoque-acolhimento', 'menu_metodo' => 'listar'], 'del_est_acolh' => ['menu_controller' => 'apagar-estoque-acolhimento', 'menu_metodo' => 'apagar-est-acolh']]; $listarBotao = new \App\adms\Models\AdmsBotao(); $this->Dados['botao'] = $listarBotao->valBotao($botao); $listarMenu = new \App\adms\Models\AdmsMenu(); $this->Dados['menu'] = $listarMenu->itemMenu(); $carregarView = new \Core\ConfigView("gre/Views/Acolhimento/verEstoqueAcolhimento", $this->Dados); $carregarView->renderizar(); } else { $_SESSION['msg'] = "<div class='alert alert-danger'>Erro: Fator de preço não encontrado!</div>"; $UrlDestino = URLADM . 'fatorunidade/listar'; header("Location: $UrlDestino"); } } }