$query = new MQL();
$xT = new cTipos();
$xLoc = new cLocal();
$xLayout = new cReportes_Layout();
$xHTable = new cHTabla();
$xHNot = new cHNotif();
$estatus = parametro("estado", SYS_TODAS);
$frecuencia = parametro("periocidad", SYS_TODAS);
$producto = parametro("convenio", SYS_TODAS);
$producto = parametro("producto", $producto);
$empresa = parametro("empresa", SYS_TODAS);
$out = parametro("out", SYS_DEFAULT);
$FechaFinal = parametro("off", false);
$FechaFinal = parametro("off", $FechaFinal);
$FechaFinal = $FechaFinal == false ? fechasys() : $xF->getFechaISO($FechaFinal);
$xFTrim = $xF->getOTrimestre($FechaFinal);
$FechaInicial = $xFTrim->getFechaInicial();
$FechaFinal = $xFTrim->getFechaFinal();
$definitivo = parametro("definitivo", false, MQL_BOOL);
$preguntar = parametro("pregunta", false, MQL_BOOL);
$xLayout->setTipo($xLayout->OPERACIONES_RELEVANTES);
$datos = $xLayout->read();
$Estructura = $xLayout->getContent();
$FechaExtraccion = $FechaFinal;
$FechaTitulo = date("ym", strtotime($FechaFinal));
$casfin = EACP_CLAVE_CASFIN;
$delimitador = $xLayout->getSeparador();
$msg = "";
$production = ($out == OUT_TXT or $out == OUT_CSV) ? true : false;
$supervisor = 2;
//supervisor 002 CNBV y su casfin 1002