$txtLst .= $xFld->get(); } } if ($getPDF == true) { //base64_encode($sql) $xFMT = new cFormato(8801); $xFMT->setProcesarVars(array("variable_listado_de_cedulas" => $txtLst, "variable_item_buscado" => "{$nombre} / {$apaterno} / {$amaterno}", "variable_cadena_consulta" => "")); $xRPT = new cReportes($xHP->getTitle()); $xRPT->getEncabezado($xHP->getTitle()); if ($ret == true) { $xRPT->setOut(OUT_HTML); $xRPT->setFile("ofacs_list_"); $xRPT->addContent($xFMT->get()); $xRPT->render(true); $dompdf = new DOMPDF(); $dompdf->load_html($xRPT->render(true)); $dompdf->set_paper("letter", "portrait"); $dompdf->render(); $json["pdf"] = base64_encode($dompdf->output()); } else { $xRPT->setSenders($mails); $xRPT->setOut(OUT_PDF); $xRPT->setFile("ofacs_list_"); $xRPT->addContent($xFMT->get()); $xRPT->render(true); } } } else { $json = $json["error"] = $mql->getMessages(OUT_TXT); } echo json_encode($json);
$FechaInicial = parametro("fecha-0", $FechaInicial); $FechaInicial = $FechaInicial == false ? FECHA_INICIO_OPERACIONES_SISTEMA : $xF->getFechaISO($FechaInicial); $FechaFinal = parametro("off", false); $FechaFinal = parametro("fecha-1", $FechaFinal); $FechaFinal = $FechaFinal == false ? fechasys() : $xF->getFechaISO($FechaFinal); $jsEvent = $out != OUT_EXCEL ? "initComponents()" : ""; $senders = getEmails($_REQUEST); $xODat = new cPersonasCatalogoOtrosDatos(); $sql = "SELECT\r\n\t`socios`.`codigo`,\r\n\t`socios`.`nombre`,\r\n\t`socios_otros_parametros`.`clave_del_parametro` \r\nFROM\r\n\t`socios_otros_parametros` `socios_otros_parametros` \r\n\t\tINNER JOIN `socios` `socios` \r\n\t\tON `socios_otros_parametros`.`clave_de_persona` = `socios`.`codigo` \r\nWHERE\r\n\t(`socios_otros_parametros`.`clave_del_parametro` ='" . $xODat->AML_PEP_PRINCIPAL . "')\r\n\t\t\tOR\r\n\t(`socios_otros_parametros`.`clave_del_parametro` ='" . $xODat->AML_PEP_AFINIDAD . "')\t\t\t\r\n\tOR\r\n(`socios_otros_parametros`.`clave_del_parametro` ='" . $xODat->AML_PEP_CONSANGUINIDAD . "')\t\t\t\r\n\t\tOR\r\n(`socios_otros_parametros`.`clave_del_parametro` ='" . $xODat->AML_PEP_VINCULO_ECONOM . "')\t"; $titulo = ""; $archivo = ""; $xRPT = new cReportes($titulo); $xRPT->setFile($archivo); $xRPT->setOut($out); $xRPT->setSQL($sql); $xRPT->setTitle($xHP->getTitle()); //============ Reporte $xT = new cTabla($sql, 1); $xT->setTipoSalida($out); $body = $xRPT->getEncabezado($xHP->getTitle(), $FechaInicial, $FechaFinal); $xRPT->setBodyMail($body); $xRPT->addContent($body); //$xT->setEventKey("jsGoPanel"); //$xT->setKeyField("creditos_solicitud"); $xRPT->addContent($xT->Show()); //============ Agregar HTML //$xRPT->addContent( $xHP->init($jsEvent) ); //$xRPT->addContent( $xHP->end() ); $xRPT->setResponse(); $xRPT->setSenders($senders); echo $xRPT->render(true);
if (MODULO_CAJA_ACTIVADO == true) { if ($xF->getInt($fecha_final) > $xF->getInt(fechasys())) { if ($xCaja->getEstatus() == TESORERIA_CAJA_ABIERTA) { $xHP->goToPageError(70102); } } } } $xUsr = new cSystemUser($cajero); $xUsr->init(); $nombre = $xUsr->getNombreCompleto(); $ByDependencia = (isset($_GET["dependencia"]) and $_GET["dependencia"] != SYS_TODAS) ? " AND `socios`.`iddependencia`=" . $_GET["dependencia"] : ""; $xRPT = new cReportes(); $title = $xHP->getTitle(); $xRPT->setTitle($title); $xRPT->setOut($out); $xRPT->setSenders($mails); $bheader = $xRPT->getHInicial($xHP->getTitle(), $fecha_inicial, $fecha_final, $nombre); $xRPT->addContent($bheader); $xRPT->setBodyMail($bheader); $xRPT->setResponse(); $xRPT->addContent($xCaja->getResumenDeCaja()); //setlog( $xCaja->getMessages() ); if (count($mails) > 0) { if ($xCaja->getSumaDeRecibos() <= 0) { $xRPT->setSenders(array()); //no enviar } } echo $xRPT->render(true); //Render Normal