ob_start();
session_start();
set_time_limit(200);
define('SUBMODULO', 'estoques');
// DEFINE O MÓDULO LOCAL.
header('Content-Type: text/html; charset=utf-8');
header("Cache-Control: no-cache, must-revalidate");
include_once '../../../framework/FrameworkBanco.php';
include_once '../../../framework/FrameworkGeneric.php';
include_once "../../../mpdf/mpdf.php";
include_once 'model.php';
if ($_SESSION['logado'] == 'ok') {
    //INSTACIA A CLASS FRAMEWORK.
    $fg = new FrameworkGeneric();
    //TRATA A VARIAVEIS DO FILTRO.
    $fg->parseQueryString($_SERVER['QUERY_STRING']);
    /**
     * LISTA OFERTA.
     */
    function listarOferta($aDados)
    {
        $fg = new FrameworkGeneric();
        $fg->config("");
        $host = $fg->host;
        //LISTA OFERTA.
        $model = new Model();
        $result = $model->ListarOferta($aDados);
        $aL = $result['result'][0];
        $estado = $fg->select('tab_estado', 'cod_estado', $aL['estado_id']);
        $cidade = $fg->select('tab_cidade', 'cod_cidade', $aL['cidade_id']);
        $vendedor = $fg->select('tab_usuario', 'usu_id', $aL['usu_id']);