function getListRecibos($tipo, $socio) { $sql = new cSQLListas(); $cTbl = new cTabla($sql->getListadoDeRecibos($tipo, $socio)); $xImg = new cHImg(); $cTbl->setKeyField("idoperaciones_recibos"); $cTbl->setTdClassByType(); $cTbl->OButton("TR.Reporte", "jsGetReporteRecibo(" . HP_REPLACE_ID . ")", $cTbl->ODicIcons()->REPORTE); $cTbl->OButton("TR.Panel", "var xRec = new RecGen(); xRec.panel(" . HP_REPLACE_ID . ")", $cTbl->ODicIcons()->EJECUTAR); $cTbl->setEventKey("setRecibo"); return $cTbl->Show(); }
function jsaGetPolizas($fecha, $tipo) { $xF = new cFecha(); $fecha = $xF->getFechaISO($fecha); $xQL = new cSQLListas(); $xT = new cTabla($xQL->getListadoDePolizasContables($fecha, $tipo), 7); $xBtn = new cHImg(); $xT->setKeyField("codigo"); $xT->OButton("TR.Modificar", "jsAgregarMovimientos('" . HP_REPLACE_ID . "')\"", $xT->ODicIcons()->AGREGAR); $xT->OButton("TR.Imprimir", "jsImprimirPoliza('" . HP_REPLACE_ID . "')\"", $xT->ODicIcons()->IMPRIMIR); $xT->OButton("TR.Eliminar", "jsEliminarPoliza('" . HP_REPLACE_ID . "')\"", $xT->ODicIcons()->ELIMINAR); return $xT->Show(); }
function jsaReActividadE($idsocio) { $ql = new cSQLListas(); $myCab = new cTabla($ql->getListadoDeActividadesEconomicas($idsocio)); $myCab->setWidth(); $myCab->addTool(2); $myCab->OButton("TR.Verificar", "jsVerificarAE(_REPLACE_ID_)", $myCab->ODicIcons()->SALUD); $myCab->setKeyField("idsocios_aeconomica"); return $myCab->Show(); }
function jsaShowCalendarTasks($date) { $xD = new cFecha(); $date = $xD->getFechaISO($date); $xLi = new cSQLListas(); $cTbl = new cTabla($xLi->getListadoDeTareas(getUsuarioActual(), $date)); $cTbl->setKeyField("idusuarios_web_notas"); $cTbl->setKeyTable("usuarios_web_notas"); $cTbl->OButton("TR.Checado", "setUpdateEstatus(_REPLACE_ID_)", $cTbl->ODicIcons()->OK); return $cTbl->Show("TR.Tareas"); }
function jsaGetListadoDeAvisos($tipo, $fecha_inicial, $fecha_final) { $tipo = $tipo == SYS_TODAS ? false : $tipo; $xF = new cFecha(); $xAl = new cAml_risk_register(); $xlistas = new cSQLListas(); $xBtn = new cHButton(); $xImg = new cHImg(); $fecha_inicial = $xF->getFechaISO($fecha_inicial); $fecha_final = $xF->getFechaISO($fecha_final); $sql = $xlistas->getListadoDeRiesgosConfirmados(false, false, false, $tipo, false, " AND (`aml_risk_register`.`estado_de_envio` =0) AND (`aml_risk_register`.`fecha_de_checking` =0) "); $xT = new cTabla($sql); //setLog($sql); $xT->OButton("TR.Dictaminar", "jsModificarEstatus(_REPLACE_ID_)", $xT->ODicIcons()->REPORTE); $xT->OButton("TR.Modificar", "jsEditarRiesgo(_REPLACE_ID_)", $xT->ODicIcons()->EDITAR); //$xT->addTool(1); $xT->setKeyField($xAl->getKey()); $xT->setKeyTable($xAl->get()); return $xT->Show(); }
function jsaGetListadoDeAvisos($tipo, $fecha_inicial, $fecha_final, $todas) { $tipo = $tipo == SYS_TODAS ? false : $tipo; $xT = new cTipos(); $xF = new cFecha(); $xAl = new cAml_alerts(); $xlistas = new cSQLListas(); $xBtn = new cHButton(); $xImg = new cHImg(); // $ByEstado = $xT->cBool($todas) == true ? "" : " AND `estado_en_sistema`= " . SYS_UNO; $ByEstado .= setNoMenorQueCero($tipo) <= 0 ? "" : " AND (`aml_risk_catalog`.`tipo_de_riesgo` ={$tipo}) "; $fecha_inicial = $xF->getFechaISO($fecha_inicial); $fecha_final = $xF->getFechaISO($fecha_final); $sql = $xlistas->getListadoDeAlertas(false, false, false, false, $ByEstado); $xT = new cTabla($sql); $xT->setWithMetaData(); $xT->OButton("TR.Dictaminar", "jsModificarEstatus(_REPLACE_ID_)", $xT->ODicIcons()->REPORTE); $xT->OButton("TR.Panel", "jsToPanel(_REPLACE_ID_)", $xT->ODicIcons()->EJECUTAR); $xT->setKeyField($xAl->getKey()); $xT->setKeyTable($xAl->get()); return $xT->Show(); }
function jsaGetListadoCierres($fecha) { $xLi = new cSQLListas(); $xF = new cFecha(); $fecha = $xF->getFechaISO($fecha); $sqlList = $xLi->getListadoDeRecibos(12, "", "", $fecha); $xTab = new cTabla($sqlList); $xTab->OButton("TR.Reporte", "var xR = new RecGen(); xR.reporte(" . HP_REPLACE_ID . ")", $xTab->ODicIcons()->REPORTE); $xTab->OButton("TR.Panel", "var xR = new RecGen(); xR.panel(" . HP_REPLACE_ID . ")", $xTab->ODicIcons()->CONTROL); $xBtn = new cHButton(); $xSel = new cHSelect(); $xCA = $xSel->getListaDeCajasAbiertas(); $T2 = new cTabla($xCA->getSQL() . " AND `tesoreria_cajas`.`fecha_inicio` = '{$fecha}' "); $T2->addEspTool($xBtn->getBasic("", "jsToCerrarCorte('{$fecha}')", "bloquear", "idcerrar", true)); $html = $xTab->Show("TR.LISTADO DE CIERRES"); if (MODULO_CAJA_ACTIVADO == true) { $html .= $T2->Show("TR.Cajas Abiertas"); $itemsAbier = $T2->getRowCount(); $html .= "<input type='hidden' id='idabiertas' value='{$itemsAbier}' />"; } else { $html .= "<input type='hidden' id='idabiertas' value='0' />"; } return $html; }
$credito = parametro("solicitud", $credito, MQL_INT); $cuenta = parametro("cuenta", DEFAULT_CUENTA_CORRIENTE, MQL_INT); $cuenta = parametro("idcuenta", $cuenta, MQL_INT); $jscallback = parametro("callback"); $tiny = parametro("tiny"); $form = parametro("form"); $action = parametro("action", SYS_NINGUNO); $xHP->init(); $xFRM = new cHForm("frm", "./"); $msg = ""; $FechaInit = $xF->getDiaInicial(); $FechaFin = $xF->getDiaFinal(); $otros = " AND (`operaciones_recibostipo`.`tipo_poliza_generada` != 999) AND `operaciones_recibos`.`total_operacion` > 0 "; $xTbl = new cTabla($xLi->getListadoDeRecibos("", "", "", $FechaInit, $FechaFin, $otros)); //$xTbl->addEspTool(); $xTbl->OButton("TR.Poliza", "jsBuscarPoliza(" . HP_REPLACE_ID . ")", $xTbl->ODicIcons()->CONTABLE); $xTbl->OButton("TR.Factura", "jsBuscarFactura(" . HP_REPLACE_ID . ")", $xTbl->ODicIcons()->REPORTE); $xTbl->setEventKey("jsGetPanel"); //$table_s->addEspTool("\$xS=new cSocio(_REPLACE_ID_,true);\$D=\$xS->getTotalColocacionActual();PHP::(\$D[SYS_NUMERO]>0) ? \"<div class='noticon'><i class='fa fa-credit-card fa-lg'></i><span class='noticount'>\" . \$D[SYS_NUMERO] . \"</span></div>\":\"\";"); $xFRM->addHTML($xTbl->Show()); //$xFRM->addJsBasico(); //$xFRM->addCreditBasico(); //$xFRM->addSubmit(); $xFRM->OHidden("idclaveactual", 0, ""); $xFRM->addAviso(""); echo $xFRM->get(); $jxc->drawJavaScript(false, true); ?> <script> var xRec = new RecGen(); var xG = new Gen();