$msg .= $xCierre->getMessages(); } else { $status = $xCierre->check5Cierres($fecha, true); if ($status[SYS_ESTADO] == false and MODO_DEBUG == false) { $msg .= $xCierre->getMessages(); } else { header("Location: ../frmutils/cierre_de_colocacion.frm.php?k=" . MY_KEY . "&s=true&f=" . $fecha); exit; } } } $xHP->init('jsaGetListadoCierres()'); $xFRM = new cHForm("frmcierre", "frmcierredeldia.php?action=1"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); $xFRM->addSubmit("TR.Cerrar Dia", "jsChecarAbiertas()"); $xFRM->OButton("TR.Salir", "var xG = new Gen(); xG.salir();", "salir"); $xFRM->addJsBasico(); $xDate->addEvents(" onchange='jsGetListaDeCierres()' "); $xFRM->addHElem($xDate->get("TR.Fecha de corte", $fecha)); $xFRM->addHElem($xTxt->getNumero("periodo_actual", EACP_PER_SOLICITUDES, "TR.Periodo Actual de Creditos")); $xFRM->addObservaciones(); $xFRM->addHTML("<div id='listados'></div>"); $xFRM->addAviso($msg); echo $xFRM->get(); ?> <script> function jsToCerrarCorte(f){ var xT = new TesGen(); xT.goCerrarCaja(f); } function jsGetListaDeCierres() { jsaGetListadoCierres(); }
$permiso = getSIPAKALPermissions($theFile); if ($permiso === false) { header("location:../404.php?i=999"); } $_SESSION["current_file"] = addslashes($theFile); //<===== FIN_H //===================================================================================================== $xP = new cHPage("Cobranza.- Efectivo"); $xJS = new jsBasicForm("frmCobrosEnCheque"); //=========================== AJAX $jxc = new TinyAjax(); $jxc->exportFunction('getLetras', array('iMontoCheque1'), "#avisos"); function getLetras($total) { return $total > 0 ? "(" . convertirletras($total) . ")" : ""; } $xP->setBodyinit(); $jxc->exportFunction('getLetras', array('iMontoCheque1'), "#avisos"); $jxc->process(); $xFrm = new cHForm("frmCobrosEnEfectivo", "cobro-efectivo.frm.php"); $xTxt = new cHText("id"); $xDat = new cHDate(); $xSel1 = new cSelect("iBancos1", "iBancos1", TBANCOS_ENTIDADES); $xFrm->addHElem(array($xSel1->get("Banco de deposito"), $xDat->get("Fecha de Deposito"), $xTxt->getDeMoneda("iMonto", "Monto", 0))); $xFrm->addHElem("<div class='title'>TOTAL : <mark id='idtotal'>0</mark></div>"); $xFrm->addHTML("<input type='hidden' id='iRecibo' name='iRecibo' value='{$recibo}' />"); $xFrm->addHTML("<input type='hidden' id='iDiferencia' name='iDiferencia' value='0' />"); $xFrm->addHTML("<input type='hidden' id='iTotal' name='iTotal' value='{$MontoOperacion}' />"); $xFrm->addHTML("<div id='avisos'></div>"); echo $xFrm->get(); $xP->setBodyEnd();
{ $xSec = new cSystemPermissions(); $xSec->setRestore("{$anno}-{$mes}-{$dia}"); return $xSec->getMessages("html"); } $jxc->exportFunction('jsaRespaldo', array('idelanno0', 'idelmes0', 'ideldia0'), "#aviso"); $jxc->exportFunction('jsaRestaurar', array('idelanno0', 'idelmes0', 'ideldia0'), "#aviso"); $jxc->process(); echo $xHP->getHeader(); $jxc->drawJavaScript(false, true); //echo $jsb->setIncludeJQuery(); echo $xHP->setBodyinit(); $msg = ""; $xFrm = new cHForm("respaldo_de_permisos", "movimientos_bancarios.frm.php"); //id, label value, size, class, options[]) $xF = new cHDate(0, false, TIPO_FECHA_OPERATIVA); $xBtnBk = new cHButton("idResp", "Respaldar Permisos"); $xBtnBk->init(); $xBtnBk->addEvent("jsaRespaldo"); $xBtnRes = new cHButton("idRest", "Restaurar Permisos"); $xBtnRes->init(); $xBtnRes->addEvent("jsaRestaurar"); //array("onchange=alert('test')") $xFrm->addHElem(array($xF->get("Fecha de Operacion"), $xBtnBk->get(), $xBtnRes->get())); $xFrm->addHTML("<div class='aviso' id='aviso'>{$msg}</div>"); echo $xFrm->get(); //id value class size maxlength arra(varias_opciones) //nombre = id echo $xHP->setBodyEnd(); ?>
$sel = $emp->query()->html()->select($emp->descripcion_dependencia()->get()); $sel->addOptions(array("todas" => "TODAS")); $per = new cCreditos_periocidadpagos(); $sel4 = $per->query()->html()->select($per->descripcion_periocidadpagos()->get()); $sel4->addOptions(array("todas" => "TODAS")); $pdto = new cCreditos_tipoconvenio(); $sel2 = $pdto->query()->html()->select($pdto->descripcion_tipoconvenio()->get()); $sel2->addOptions(array("todas" => "TODAS")); $base = new cEacp_config_bases_de_integracion(); $selB = $base->query()->html()->select($base->descripcion()->get()); // $xSel = new cHSelect(); $xSel->addOptions(array("chart" => "Grafico", "default" => "Normal", OUT_EXCEL => "Compatible con Excel")); $xSel->setDefault(SYS_DEFAULT); $xF1 = new cHDate(0); $xF2 = new cHDate(1); //estado $xBtn = new cHButton("submit", "Ejecutar", ""); $xCbza = new cHCobros(); $oFRM->addHElem($sel->get("idempresa", "Empresa")); $oFRM->addHElem($sel3); $oFRM->addHElem($sel2->get("idproducto", "Producto", "todas")); $oFRM->addHElem($sel4->get("idperiocidad", "Periocidad", "todas")); $oFRM->addHElem($xCbza->get()); $oFRM->addHElem($selB->get("idbase", "Base de Reporte")); $oFRM->addHElem($xSel->get("idout", "Formato de Salida")); $oFRM->addHElem($xF1->get("Fecha Inicial")); $oFRM->addHElem($xF2->get("Fecha Final")); $F = new cFecha(); /* $F->setFechaPorQuincena(17);
$persona = parametro("socio", $persona, MQL_INT); $persona = parametro("idsocio", $persona, MQL_INT); $credito = parametro("credito", DEFAULT_CREDITO, MQL_INT); $credito = parametro("idsolicitud", $credito, MQL_INT); $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("frmpolizas", "frm_poliza_contable.php"); $msg = ""; $xBtn = new cHImg(); $xHF = new cHDate(); $xHS = new cHSelect(); $xDiv = new cHDiv(); $xHS->addEvent("jsaGetPolizas()", "onchange"); //`contable_polizasdiarios` $xHF->addEvents(" onchange=\"jsaGetPolizas()\" "); $xFRM->addHElem($xHF->get("TR.Fecha")); $xSelPol = $xHS->getListaDeTiposDePolizas(); $xSelPol->addEspOption(SYS_TODAS, $xFRM->lang("Todas")); $xSelPol->setOptionSelect(SYS_TODAS); $xFRM->addHElem($xSelPol->get(true)); $xFRM->addDivSolo(jsaGetPolizas(false, false), "", "tx34", "txt14", array(1 => array("id" => "idlistadopolizas"))); //fecha tipo $xFRM->OHidden("idpolizaactiva", "", ""); $xFRM->OButton("TR.Agregar", "jsAgregarPoliza()", "agregar"); $xFRM->addCerrar();
$jxc->exportFunction('jsaGetVerifyPlan', array("idsolicitud"), "#aviso"); $jxc->exportFunction('jsaGetLetrasAVencerTodas', array("idfecha-0"), "#lst"); $jxc->exportFunction('jsaGetVerifyPlan', array("idsolicitud"), "#aviso"); $jxc->exportFunction('jsaGetLetras', array("idsolicitud"), "#divparcialidad"); //$jxc ->exportFunction('setPagoCompleto', array("solicitud", "idsocio"), "#parseValueX"); $jxc->process(); echo $xHP->getHeader(); echo $xHP->setBodyinit("initComponents()"); $jbf = new jsBasicForm("frmPreRecibo"); $jbf->setIncludeJQuery(); $jbf->mIncludeCreditos = true; $jxc->drawJavaScript(false, true); $xFRM = new cHForm("frmPreRecibo", "frmcobrosdecreditos2.php"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); $msel = $xSel->getListaDeProductosDeCredito(); $msel->addEvent("onchange", "initComponents()"); $xDate->setDivClass(""); $xFRM->addDivSolo($xDate->get("TR.Fecha"), "<div id='mscom'></div>", "tx14", "tx34"); $xFRM->addCreditBasico(); $xTxt->addEvent("jsaGetLetras();jsaGetVerifyPlan();", "onfocus"); $xTxt->setDivClass(""); $props = array(1 => array("id" => "divparcialidad")); $xFRM->addDivSolo($xTxt->get("idparcialidad", "", "TR.Numero de Parcialidad", "", false, CTRL_GOLETRAS), "<p class='aviso' id='aviso'></p>", "tx14", "tx34", $props); $xDate->addEvents("onblur=\"initComponents()\" onchange=\"initComponents()\" "); $xFRM->addHTML("<div id='lst' class='inv'></div>"); $xFRM->addSubmit("", "setFrmSubmit()"); $xFRM->addToolbar($xBtn->getBasic("TR.Letras Pendientes", "jsObtenerLetras()", "ejecutar", "cmdGetLetras", false)); $xFRM->addToolbar($xBtn->getBasic("TR.panel_de_control_de", "jsGoPanel()", "panel", "idgetpanel", false));
$jxc->exportFunction('jsaCambiarProducto', array('idsolicitud', 'idpdto', 'idtasa', 'idtasamora'), "#avisos"); $jxc->exportFunction('jsaCambiarPeriocidad', array('idsolicitud', 'idperiocidad', 'idtipopago', 'idpagos', 'idfecha-2', 'idpagoactual'), "#avisos"); $jxc->exportFunction('jsaEliminarCredito', array('idsolicitud'), "#avisos"); $jxc->exportFunction('jsaReestructurarIntereses', array('idsolicitud'), "#avisos"); $jxc->exportFunction('jsaSetCambiarPersona', array('idsolicitud', 'idnuevapersona'), "#avisos"); // $jxc->process(); $xHP->init(); echo "<input type='hidden' id='idsolicitud' value='{$credito}'>"; $xCred = new cCredito($credito); $xCred->init(); $xFRM = new cHForm("frmrenegociar", "./", "idfrmmain"); $oBtn = new cHButton(); $oTxt = new cHText(); $oHSel = new cHSelect(); $oFch = new cHDate(0); $oSel = new cSelect(""); $oUL = new cHUl(); $lguardar = $xFRM->lang("guardar"); $lcancelar = $xFRM->lang("cancelar"); $xFRM->setTitle($xHP->getTitle()); $xFRM->OButton("TR.Cambiar Monto Ministrado", "jsCambiarMonto()", "mas-dinero", "idcambiarmonto"); $xFRM->OButton("TR.Cambiar Fecha de Ministracion", "jsCambiarFechaMinistracion()", "fecha", "idcmdministracion"); //$xFRM->addHElem( $oBtn->getBasic("Fecha de Autorizacion", "jsCambiarFechaAutorizacion", "fecha", "idcmdautorizacion" ) ); $xFRM->OButton("TR.Cambiar Monto Autorizado", "jsCambiarMontoAutorizado()", "dinero", "idcambiarmontoaut"); $xFRM->OButton("TR.Cambiar Estado", "jsCambiarEstado()", "trabajo", "idcambiarestado"); $xFRM->OButton("TR.Cambiar Producto", "jsCambiarProducto()", "colaborar", "idcambiarpdto"); $xFRM->OButton("TR.Cambiar Periocidad", "jsCambiarPeriocidad()", "calendario", "idcambiarpers"); if ($xCred->getPeriocidadDePago() != CREDITO_TIPO_PERIOCIDAD_FINAL_DE_PLAZO) { $xFRM->OButton("TR.GENERAR PLAN_DE_PAGOS", "regenerarPlanDePagos()", "reporte", "generar-plan"); $xFRM->OButton("TR.importar plan_de_pagos", "jsImportarPlanDePagos()", "csv", "idimportar");
$jxc->process(); $xHP->init(); if (setNoMenorQueCero($recibo) <= 0) { header("location:../404.php?i=" . DEFAULT_CODIGO_DE_ERROR); } ?> <style> #idavisopago, #idimporte, #iMonto { font-size : 1.3em !important; } </style> <?php if (setNoMenorQueCero($recibo) > 0) { $xRec = new cReciboDeOperacion(false, false, $recibo); $xRec->init(); $DRec = $xRec->getDatosInArray(); $MontoOperacion = $xRec->getTotal(); // $DRec["total_operacion"]; $xFRM = new cHForm("frmCobrosEnEfectivo", "cobro-efectivo.frm.php"); $xTxt = new cHText("id"); $xDat = new cHDate(); $xHSel = new cHSelect(); $xHNot = new cHNotif(); $xFRM->addGuardar("jsActualizarPago()"); $xTxt->addEvent("this.select()", "onfocus"); $xTxt->addEvent("jsActualizarPago", "onkeyup"); $xFRM->addHElem($xHSel->getListaDeCuentasBancarias("iBancos", true)->get("TR.Cuenta Bancaria de Deposito", true)); $xFRM->addHElem($xHNot->get($xHP->lang("importe") . " : " . getFMoney($MontoOperacion), "idimporte")); $xFRM->addHElem($xHSel->getListaDeTipoDePerfilTransaccional("", SYS_SALIDAS)->get(true)); $xFRM->addHElem($xHSel->getListadoDeBancos()->get("TR.Banco de Origen", true)); //TODO: Agregar cuenta de origen ultimo 4 digitos $xFRM->addHElem($xDat->get("TR.Fecha de Deposito", $xRec->getFechaDeRecibo())); $xFRM->addHElem($xTxt->getDeMoneda("iMonto", $xHP->lang("Monto de", "Deposito"), 0)); $xFRM->addHElem($xHNot->get($xHP->lang("total") . " : <mark id='idtotal'>0</mark>", "idavisopago", $xHNot->WARNING)); $xFRM->addHTML("<input type='hidden' id='iRecibo' name='iRecibo' value='{$recibo}' />"); $xFRM->addHTML("<input type='hidden' id='iDiferencia' name='iDiferencia' value='0' />");
$permanente = 0; } $total = $social + $permanente; $tab = new TinyAjaxBehavior(); $tab->add(TabSetValue::getBehavior("idpartesocial", $social)); $tab->add(TabSetValue::getBehavior("idpartepermanente", $permanente)); $tab->add(TabSetValue::getBehavior("idtotalcuotas", $total)); return $tab->getString(); } $jxc->exportFunction('jsSetCuotas', array('idsocio', "frmpartessociales")); $jxc->process(); $xF = new cFecha(); $xFRM = new cHForm("frmcuotassociales", "frmpartessociales.php?action=next"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); $xTxt->setDivClass(""); $xFRM->addJsBasico(iDE_OPERACION); echo $xHP->getHeader(true); ?> <script > function jsSetTotalCuotas(){ var mTotal = parseFloat(document.getElementById("idpartesocial").value) + parseFloat(document.getElementById("idpartepermanente").value); mTotal = jsRoundPesos(mTotal); document.getElementById("idtotalcuotas").value = mTotal; } </script> <?php $com = parametro("action", SYS_NINGUNO); $persona = parametro("idsocio", DEFAULT_SOCIO, MQL_INT);
$jxc->exportFunction('jsaSetCreditosADespedidos', array("idcredito", "idfecha-0", "idobservaciones"), "#idmsg"); $jxc->exportFunction('jsaSetPagarCredito', array("idcredito", "idfecha-0", "idobservaciones"), "#idmsg"); $jxc->process(); $persona = isset($DDATA["persona"]) ? $DDATA["persona"] : DEFAULT_SOCIO; $persona = isset($DDATA["socio"]) ? $DDATA["socio"] : $persona; $credito = isset($DDATA["credito"]) ? $DDATA["credito"] : DEFAULT_CREDITO; $jscallback = isset($DDATA["callback"]) ? $DDATA["callback"] : ""; $tiny = isset($DDATA["tiny"]) ? $DDATA["tiny"] : ""; $form = isset($DDATA["form"]) ? $DDATA["form"] : ""; echo $xHP->getHeader(); $jsb = new jsBasicForm("", iDE_CAPTACION); echo $xHP->setBodyinit(); $xFRM = new cHForm("frmdesvincular", "./"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $jsb->setNameForm($xFRM->getName()); //$xFRM->addCreditBasico(); $xFRM->addHElem($xDate->get($xFRM->lang("fecha"))); $xFRM->addObservaciones(); //$xFRM->addHElem( $xTxt->get("idobservaciones", "", $xFRM->lang("observaciones")) ); $xFRM->addToolbar($xBtn->getBasic("TR.Despedido de la_Empresa", "jsSaveEstado(1)", "eliminar", "id1", false)); $xFRM->addToolbar($xBtn->getBasic("TR.Desvincular de la_empresa", "jsSaveEstado(2)", "quitar", "id2", false)); $xFRM->addToolbar($xBtn->getBasic("TR.Pago Total", "jsSaveEstado(3)", "dinero", "id4", false)); $xFRM->addFootElement("<p class='aviso' id='idmsg'></p>"); $xFRM->addFootElement("<input type='hidden' id='idcredito' value='{$credito}' />"); echo $xFRM->get(); echo $xHP->setBodyEnd(); $jsb->show(); $jxc->drawJavaScript(false, true); ?>
} } } $xHSel->addOptions($Cdata); unset($Bdata); } else { $xHSel->setSQL($Boone->sql_select()->v()); } $xHSel->setEnclose(true); $xFRM->addHElem($xHSel->get($id, $titulo, $valor)); $proc = false; } if ($proc == true) { //controles normales if ($Boone->tipo()->v() == "date") { $xHDate = new cHDate($Boone->order_index()->v()); $xHDate->setID($id); $xFRM->addHElem($xHDate->get($titulo, $valor)); } else { //moneda switch ($equiva) { case "float": $xFRM->addHElem($xTxt->getDeMoneda($id, $titulo, $valor)); break; case "int": $xFRM->addHElem($xTxt->getDeMoneda($id, $titulo, $valor)); break; default: $xFRM->addHElem($xTxt->getNormal($id, $valor, $titulo)); break; }
$xFRM4->addHTML("<div id=\"personas-de-envio\"></div>"); $xFRM4->addHElem($txt->getEmail("idmail1", "", "TR.correo_electronico destinatario 1")); $xFRM4->addHElem($txt->getEmail("idmail2", "", "TR.correo_electronico destinatario 2")); $xFRM4->addHElem($txt->getEmail("idmail3", "", "TR.correo_electronico destinatario 3")); $xFRM4->addHElem($txt->getEmail("idmail4", "", "TR.correo_electronico destinatario 4")); $xFRM4->addHElem($txt->getEmail("idmail5", "", "TR.correo_electronico destinatario 5")); $xFRM4->addAviso(""); echo $xFRM4->get(); ?> </div> <!-- cambiar fecha de Ministracion --> <div class="inv" id="frmac" style="min-height:12em;"> <?php $frm = new cHForm("mfrm"); $xFM = new cHDate(4); $xFM->setIsSelect(); $xBtn = new cHButton("idcmdready"); $frm->addHElem($xFM->get("Escriba la Nueva Fecha")); $frm->addFootElement($xBtn->getEjecutar("jsSetCambiarFechaMinistracion()")); echo $frm->get(); ?> </div> <script> var vId = ""; var xg = new Gen(); var tipoPago = null;//"transferencia"; var banco = null;//"99"; var fdeposit = null;//"2014-01-01"; var idsumacbza = $("#idsuma"); var idFortips = "#divavisos";
$jscallback = parametro("callback"); $tiny = parametro("tiny"); $form = parametro("form"); $action = parametro("action", SYS_NINGUNO); if ($credito != DEFAULT_CREDITO) { $xCred = new cCredito($credito); $xCred->init(); $documentorelacionado = $credito; $montorelacionado = $xCred->getMontoAutorizado(); $persona = $xCred->getClaveDePersona(); } $xHP->init(); $xFRM = new cHForm("frmrelaciones", "frmcreditosavales.php?action=2"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); $xTxN = new cHText(); $xChk = new cHCheckBox(); $xHSel = new cHSelect(); $xTxtE = new cHText(); $xTx3 = new cHText(); $xTX2 = new cHText(); $msg = ""; $xFRM->addJsBasico(); $xFRM->addSubmit(); $xFRM->addHElem($xSel->getListaDeTiposDeRelaciones("", 5)->get(true)); //tipo 5 avales $xFRM->addHElem($xSel->getListaDeTiposDeParentesco()->get(true)); $xFRM->addHElem($xChk->get("TR.es dependiente_economico", "dependiente")); $xTxN->addEvent("getPersonasPorOrigen()", "onkeyup");
$jxc->exportFunction('jsaSetFecha', array('idNumeroRecibo', 'idfecha-100', 'idnuevoperiodo'), '#fb_frmrecibospanel'); $jxc->exportFunction('jsaSetGenerarPolizaPorRecibo', array('idNumeroRecibo'), '#fb_frmrecibospanel'); $jxc->exportFunction('jsaEliminarRecibo', array('idNumeroRecibo'), '#fb_frmrecibospanel'); $jxc->exportFunction('jsaAjustarTotal', array('idNumeroRecibo', 'idOperacion'), '#fb_frmrecibospanel'); $jxc->exportFunction('jsaRegenerarPrepoliza', array('idNumeroRecibo'), '#fb_frmrecibospanel'); $jxc->process(); $idrecibo = parametro("cNumeroRecibo", 0, MQL_INT); $idrecibo = parametro("recibo", $idrecibo, MQL_INT); $idrecibo = parametro("idrecibo", $idrecibo, MQL_INT); $idrecibo = parametro("clave", $idrecibo, MQL_INT); $xHP->setIncludeJQueryUI(); echo $xHP->getHeader(); echo $xHP->setBodyinit(); $xTxt = new cHText(); $xBtn = new cHButton(); $xDate = new cHDate(); $uri = ""; $recAct = ""; if ($idrecibo <= 0) { ?> <fieldset> <legend>Panel de Control de Recibos</legend> <form name="frmrecibospanel" id="frmrecibospanel" action="recibos.panel.frm.php" method="post"> <table > <tr> <td width="10%">Numero de Recibo</td> <td width="20%"> <input type='text' name='cNumeroRecibo' value='0' id="idNumeroRecibo" onchange="getReciboDesc()" onblur="getReciboDesc()" class='mny' size='12' /> <?php echo CTRL_GORECIBOS;
//$jxc ->drawJavaScript(false, true); echo $jsb->setIncludeJQuery(); echo $xHP->setBodyinit(); $xTxt = new cHText(); $xBtn = new cHButton(); $xFRM = new cHForm("bancos_operaciones", "movimientos_bancarios.frm.php"); //id, label value, size, class, options[]) $xSel = new cSelect("idcuenta", "idcuenta", TBANCOS_CUENTAS); $xSel->setOptionSelect($numero_de_cuenta); $xHSel = new cHSelect(); $xHSel->addOptions(array("cheque" => "Cheque", "deposito" => "Deposito", "retiro" => "Retiro")); $selOperacion = $xHSel->get("idoperacion", "operacion", $operacion); $xHSel->setClearOptions(); $xHSel->addOptions(array("autorizado" => "Autorizado", "noautorizado" => "No Autorizdo", "cancelado" => "Cancelado")); $selEstatus = $xHSel->get("idestatus", "Estatus", $estado); $xF = new cHDate(0, $fecha, TIPO_FECHA_OPERATIVA); $xFRM->addHElem($xF->get("Fecha de Operacion")); $xFRM->addHElem($xSel->get("Cuenta", true)); $xFRM->addHElem($selOperacion); $xFRM->addHElem($selEstatus); $xFRM->addHElem($xTxt->get("idsocio", $socio, "Persona")); $xFRM->addHElem($xTxt->get("idbeneficiario", $beneficiario, "Beneficiario(Nombre)")); $xFRM->addHElem($xTxt->get("iddocumento", $documento, "Documento")); $xFRM->addHElem($xTxt->get("idrecibo", $recibo, "Recibo")); $xFRM->addHElem($xTxt->getDeMoneda("idmonto", "Monto", $monto)); $xFRM->addHTML("<div class='aviso'>{$msg}</div>"); //$xFRM->addSubmit("Guardar Movimiento", "setGuardar"); $xFRM->addToolbar($xBtn->getBasic("Guardar", "setGuardar", "guardar", "idsave", false)); echo $xFRM->get(); echo $jsb->get(); //id value class size maxlength arra(varias_opciones)
$cuenta = parametro("idcuenta", $cuenta, MQL_INT); $jscallback = parametro("callback"); $tiny = parametro("tiny"); $form = parametro("form"); $action = parametro("action", SYS_NINGUNO); $xP->init(); $xFRM = new cHForm("frmCompromisos", "frm_agregar_compromisos.php?action=" . MQL_ADD); $msg = ""; $xFRM->addJsBasico(); $xFRM->addCreditBasico(); $xFRM->addSubmit(); $arr = array("promesa_de_pago" => "Promesa de Pago", "promesa_de_revision" => "Promesa de Revision(Cita)", "promesa_de_reestructuracion" => "Promesa de Reestructuracion", "promesa_de_renovacion" => "Promesa de Renovacion"); $xHSel = new cHSelect(); $xHSel->addOptions($arr); $xFRM->addHElem($xHSel->get("idtipocompromiso", "TR.Tipo de Compromiso", "promesa_de_pago")); $xHF = new cHDate(); $cH = new cFecha(); $xFRM->addHElem($xHF->get("TR.Fecha")); $xFRM->addHElem($cH->getHours(true, "TR.Horario", "idhora")); $xFRM->OTextArea("idnotas", "", "TR.Notas"); if ($action == MQL_ADD) { //Insertar Nuevo Registro $socio = $persona; $solicitud = $credito; $oficial = $_SESSION["SN_b80bb7740288fda1f201890375a60c8f"]; $fecha = $cH->getFechaISO($_POST["idfecha-0"]); $hora = $_POST["idhora"]; $compromiso = $_POST["idtipocompromiso"]; $anotacion = $_POST["idnotas"]; //Valores Pre-establecidos $eacp = EACP_CLAVE;
$msg = ""; $date = date("Y-m-d"); $sqlUN = "UPDATE seguimiento_llamadas\n \t\t\tSET observaciones=CONCAT(observaciones, '\n{$date}\t', '{$note}')\n \t\t\tWHERE idseguimiento_llamadas={$id}"; $n = my_query($sqlUN); if ($n["stat"] != false) { $msg = "Se Actualizo la Llamada #{$id} con la Nota [{$note}]"; } return $msg; } $jxc->exportFunction('jsaGetCallsToToday', array('idfecha-0', "idChkEfectuadas", "idChkVencidas", "idChkCanceladas", "idMarkRecord"), "#tdCalendar"); $jxc->exportFunction('jsaSaveNote', array('idIDNode', "idTxtNote"), "#idTdMsgs"); $jxc->process(); $xFRM = new cHForm("frmnav", "./"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); echo $xHP->init("jsaGetCallsToToday()"); ?> <form name="frmcalendario" method="POST" action="./"> <input type="hidden" id="idMarkRecord" value="0" /> <fieldset> <legend>Calendario de Llamadas</legend> <?php //mostrar el Arbol de llamadas ?> <table> <tbody>
function addFechaFinal($titulo = "") { /*$xF = new cFecha(1); $this->mFechaInicial = $xF->show(true, TIPO_FECHA_OPERATIVA);*/ $titulo = $titulo == "" ? "TR.Fecha_Final" : $titulo; $xDate = new cHDate(1, false, TIPO_FECHA_OPERATIVA); $this->mJsVars .= "var fechaFinal\t= \$('#idfecha-1').val();\r\n"; $this->mURL .= " + \"&off=\" + fechaFinal "; $this->mURL .= " + \"&fechafinal=\" + fechaFinal "; return $xDate->get($titulo); }
{ $xAML = new cAMLAlertas($id); $xAML->setDescartarAlerta($observaciones); return $xAML->getMessages(OUT_HTML); } $jxc->exportFunction('jsaGetListadoDeAvisos', array('idtipoderiesgo', 'idfecha-1', 'idfecha-2'), "#lstalertas"); $jxc->exportFunction('jsaConfirmRiesgo', array('idriesgo'), "#idmsg"); $jxc->exportFunction('jsaDescartarRiesgo', array('idriesgo', 'iddetalles'), "#idmsg"); $jxc->process(); echo $xHP->getHeader(); $jsb = new jsBasicForm(""); echo $xHP->setBodyinit(); $xFRM = new cHForm("frm_alertas", "./"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); $jsb->setNameForm($xFRM->getName()); $selcat = $xSel->getCatalogoDeRiesgos(); $selcat->addEvent("onblur", "jsGetListadoAvisos()"); $selcat->addEvent("onchange", "jsGetListadoAvisos()"); $selcat->addEspOption(SYS_TODAS); $selcat->setOptionSelect(SYS_TODAS); $xFRM->addHElem($xDate->get($xFRM->lang("fecha inicial"), false, 1)); $xFRM->addHElem($xDate->get($xFRM->lang("fecha final"), false, 2)); $xFRM->addHElem($selcat->get($xFRM->lang(array("tipo de", "Riesgo")), true)); $xFRM->addSubmit("", "jsGetListadoAvisos()"); $xta = new cHTextArea(); $xFRM9 = new cHForm("frmupdateriesgo"); $xFRM9->addHElem("<div id='tx1'>" . $xta->get("iddetalles", "", "TR.Notas") . "</div>"); //$xFRM9->addObservaciones();
$xBtn = new cHButton(); $xSel = new cHSelect(); $xFRM = new cHForm("bancos_operaciones", "movimientos_bancarios.frm.php"); //id, label value, size, class, options[]) $selBanco = $xSel->getListaDeCuentasBancarias(""); $selBanco->addEspOption(SYS_TODAS); $selBanco->setOptionSelect(SYS_TODAS); //$xSel->setOptionSelect($numero_de_cuenta); $xHSel = new cHSelect(); $xHSel->addOptions(array("cheque" => $xHP->lang("Cheque"), "deposito" => $xHP->lang("Deposito"), "retiro" => $xHP->lang("Retiro"))); $selOperacion = $xHSel->get("idoperacion", $xHP->lang("operacion"), $operacion); $xHSel->setClearOptions(); $xHSel->addOptions(array("autorizado" => $xHP->lang("Autorizado"), "noautorizado" => $xHP->lang("No Autorizado"), "cancelado" => $xHP->lang("Cancelado"))); $selEstatus = $xHSel->get("idestatus", $xHP->lang("Estatus")); $xF = new cHDate(0, $fecha, TIPO_FECHA_OPERATIVA); $xF2 = new cHDate(1, $fecha, TIPO_FECHA_OPERATIVA); $xFRM->addHElem($xF->get($xHP->lang("Fecha Inicial"))); $xFRM->addHElem($xF2->get($xHP->lang("Fecha Final"))); $xFRM->addHElem($selBanco->get("TR.Cuenta Bancaria", true)); $xFRM->addHElem($selOperacion); $xFRM->addHElem($selEstatus); $xFRM->addHElem($xTxt->getNormal("idbeneficiario", "", "TR.Beneficiario")); $xFRM->addToolbar($xBtn->getBasic($xHP->lang("Obtener"), "jsGetReporte", "guardar", "cmdsave", false)); //$xFRM->addSubmit("Guardar Movimiento", "setGuardar"); $xFRM->addFootElement("<div id='content'><object type=\"text/html\" id=\"idFPrincipal\" data=\"./utils/frm_calendar_tasks.php\" width='100%' height=\"1200px\" ></object></div>"); echo $xFRM->get(); ?> </body> <script > function jsGetReporte() {
function jsaGetIDE($socio, $monto, $tipo_de_pago) { $xSoc = new cSocio($socio); $xSoc->init(); $x = $xSoc->getIDExPagarByPeriodo(false, $monto, $tipo_de_pago); $tab = new TinyAjaxBehavior(); $tab->add(TabSetValue::getBehavior("idide", $x)); return $tab->getString(); } $jxc->exportFunction('jsaGetIDE', array('idsocio', "idmonto", "idtipo_pago")); $jxc->process(); echo $xHP->getHeader(); $xFRM = new cHForm("depositoahorro", "frmdepositoinversion.php?action=next"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); $xFRM->setTitle($xHP->getTitle()); ?> <body <?php echo $actload; ?> > <?php $xFRM->setTitle($xHP->getTitle()); if ($action == SYS_NINGUNO) { $xFRM->addCuentaCaptacionBasico(true, CAPTACION_TIPO_PLAZO); $xFRM->addSubmit(); $xFRM->addHElem($xTxt->getDeMoneda("idmonto", "TR.deposito", 0, true)); $xFRM->addCobroBasico(); $xFRM->addHElem($xDate->get("TR.Fecha"));
$fecha = fechasys(); $sql = "SELECT SUM(`operaciones_recibos`.`total_operacion`) AS 'total' \n\t\tFROM `operaciones_recibos` `operaciones_recibos` \n\t\t\t\t`operaciones_recibos` `operaciones_recibos` \n\t\tINNER JOIN `creditos_solicitud` `creditos_solicitud` \n\t\tON `operaciones_recibos`.`docto_afectado` = `creditos_solicitud`.\n\t\t`numero_solicitud` \n\t\t\tINNER JOIN `operaciones_recibostipo` `operaciones_recibostipo` \n\t\t\tON `operaciones_recibos`.`tipo_docto` = `operaciones_recibostipo`.\n\t\t\t`idoperaciones_recibostipo`\n\t\t\t\n\t\t\tWHERE operaciones_recibostipo.mostrar_en_corte!='0' \n\t\t\tAND operaciones_recibos.fecha_operacion = '{$fecha}' \n\t\t\tAND operaciones_recibos.idusuario={$user} \n\t\t\tAND `creditos_solicitud`.persona_asociada\t= {$empresa} "; $sdo = mifila($sql, "total"); return "(\$ " . getFMoney($sdo) . ")"; } $jxc->exportFunction('jsaSetGuardarDeposito', array('idtipo_pago', 'idcodigodecuenta', 'idmontodeposito', 'idsumacbza', 'idfecha-0', 'idobservaciones', 'idcodigodeempresas', 'idperiodo'), "#idmsgs"); $jxc->exportFunction('jsaGetCobranza', array("idcodigodeempresas", "idperiodo"), "#reports"); $jxc->exportFunction('jsaGetDatosEmpresa', array("idcodigodeempresas"), "#divperiodo"); $jxc->exportFunction('jsaGetDatosDelEnvio', array("idcodigodeempresas", "idperiocidad", "idvariacion", "idperiodo")); $jxc->exportFunction('jsaSetCambiarFechaMinistracion', array("idcredito", "ideldia4", "idelmes4", "idelanno4"), "#idmsgs"); $jxc->exportFunction('jsaGetMontoCobranza', array("idcodigodeempresas"), "#saldocorte"); $jxc->process(); echo $xHP->getHeader(true); echo $xHP->setBodyinit(); $txt = new cHText(); $HFecha = new cHDate(); $xFRM = new cHForm("frmcbza", "", "frmsumacbza"); $xBtnN = new cHButton(); $xSel = new cHSelect(); $xDiv = new cHDiv(); $xHSel = new cHSelect(); $xCB = new cHCobros(); $xFRM->OButton("TR.Obtener Cobranza", "jsGetCobranza()", $xFRM->ic()->CARGAR, "idgetcbza"); $xFRM->OButton("TR.Reporte de Nomina", "jsListaDeNominas()", $xFRM->ic()->SALDO, "idedo"); $xFRM->OButton("TR.Cerrar Cobranza", "jsSetLockPeriodo()", $xFRM->ic()->CERRAR, "idcerrar"); $xFRM->OButton("TR.Cobranza de Hoy", "jsGetCobranzaDay()", $xFRM->ic()->COBROS, "idcobhoy"); $xFRM->OButton("TR.Estado_de_cuenta", "jsGetEdoCuentaGeneral()", $xFRM->ic()->REPORTE, "idedocta"); $xFRM->addFootElement('<input type="hidden" id="idsumacbza" value="0" />'); $xSemp = $xSel->getListaDeEmpresas("", true); $xSemp->addEvent("onblur", "jsResetCbza();jsCargarDatosIniciales();"); $xFRM->addDivSolo($xSemp->get(), " ", "tx24", "tx24", array(1 => array("id" => "divempresa"), 2 => array("id" => "divperiodo")));