public function dashboard($obj = null) { $totalMPOouGCO = 0; $this->retornaDados(); $dataArquivoControl = new AdminVariaveis($this->params); $dataArquivo = $dataArquivoControl->consultarVariaveis('ULTIMA_DATA_ARQUIVO_FTP'); if ($dataArquivo) { $this->view->setVariable('data_arquivo', formatDataWEB($dataArquivo->get('valor'), true)); } if ($obj) { // para contar, retiro paginacao. if (property_exists($obj, 'pg_pagina')) { unset($obj->pg_pagina); unset($obj->pg_registros); } $obj = $this->defineData($obj); $this->preencheMPO($obj); $this->preencheGCO($obj); $this->preencheQuitaDivida($obj); $this->preencheFamiliaTranquila($obj); $this->preencheOdonto($obj); $this->produtosNaoEncontradosMpoOuGco($obj); $this->produtosEncontradosMpoOuGco($obj); $this->produtosCadastradosMpoOuGco($obj); $this->produtosNaoEncontradosListar($obj); } return $this->view->get(); }
private function buscarDataProcessamentoBaseCaixa() { $controleVariaveis = new AdminVariaveis($this->params); $variavel = $controleVariaveis->consultarVariaveis('ULTIMA_DATA_ARQUIVO_FTP'); if ($variavel) { $this->view->setVariable('data_processamento_arquivo', formatDataWEB($variavel->get('valor'), 1)); } }