$c2Tbl->setWidth(); $xHTabs->addTab("TR.NOTAS", $c2Tbl->Show()); $c4Tbl = new cTabla($mSQL->getListadoDeCompromisos($idsolicitud), 5); $c4Tbl->setWidth(); $xHTabs->addTab("TR.COMPROMISOS", $c4Tbl->Show()); $cTbl = new cTabla($setSql, 0); $cTbl->addTool(SYS_DOS); $cTbl->setKeyField("idseguimiento_llamadas"); $oFrm->addHTML($cTbl->getJSActions(true)); $xHTabs->addTab("TR.LLAMADAS", $cTbl->Show()); $c3Tbl = new cTabla($setSql3, 3); $c3Tbl->setWidth(); $xHTabs->addTab("TR.NOTIFICACIONES", $c3Tbl->Show()); //Imprime un Explain de porque el credito tiene este estatus $xHTabs->addTab("TR.ESTATUS", $xCred->setDetermineDatosDeEstatus(fechasys(), true, true)); $xHTabs->addTab("TR.VALIDACION", "<p class='aviso'>" . $xCred->setVerificarValidez(1, "html") . "</p>"); //avales $sqlavales = $mSQL->getListadoDeAvales($idsolicitud, $idsocio); $xTblAv = new cTabla($sqlavales); $xTblAv->addTool(SYS_DOS); $xTblAv->addTool(SYS_UNO); $xHTabs->addTab("TR.AVALES", $xTblAv->Show("TR.Relacion de Avales")); } //==================================================== Otros Datos $xTbOD = new cTabla($mSQL->getListadoDeCreditosOtrosDatos($idsolicitud)); $xHTabs->addTab("TR.Otros Datos", $xTbOD->Show()); if ($xCred->getPeriocidadDePago() != CREDITO_TIPO_PERIOCIDAD_FINAL_DE_PLAZO) { $oFrm->addToolbar($xBtn->getBasic("TR.GENERAR PLAN_DE_PAGOS", "regenerarPlanDePagos()", "reporte", "generar-plan", false)); $xHTabs->addTab("TR.Plan_De_pagos", $xCred->getPlanDePago(OUT_HTML, false, true)); } if (MODO_DEBUG == true) {
function setValidarCreditos($fecha, $AppSucursal = true, $ReportToOficial = false) { if (!isset($fecha)) { $fecha = fechasys(); } $msg = "====\t\tVALIDADOR DE CREDITOS V 1.0.01\r\n"; $cierre_sucursal = ""; if ($AppSucursal == true) { $cierre_sucursal = "AND (`creditos_solicitud`.`sucursal`='" . getSucursal() . "')"; } // /*INICIALIZA EL RECIBO*/ // $xRec = new cReciboDeOperacion(10); $tolerancia_en_pesos = TOLERANCIA_SALDOS; $sqlValidacion = "SELECT\n\t\t\t\t\t\t\t\t`creditos_solicitud`.*\n\t\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t\t\t`creditos_solicitud`\n\t\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\t\t(`creditos_solicitud`.`estatus_actual`!=50)\n\t\t\t\t\t\t\t\t{$cierre_sucursal}\n\t\t\t\t\t\t\t\tAND\t(`creditos_solicitud`.`saldo_actual`>{$tolerancia_en_pesos})\n\t\t\t\t\t\t\t"; $rs_PAM = mysql_query($sqlValidacion, cnnGeneral()); if (!$rs_PAM) { $msg .= "LA CONSULTA NO SE EJECUTO (CODE: " . mysql_errno() . ")"; } $i = 1; while ($rw = mysql_fetch_array($rs_PAM)) { $solicitud = $rw["numero_solicitud"]; $socio = $rw["numero_socio"]; $oficial = $rw["oficial_credito"]; $txt = ""; $msg .= "{$i}\tVERIFICANDO EL CREDITO {$solicitud} DE LA PERSONA # {$socio}\r\n"; $clsCred = new cCredito($solicitud, $socio); $clsCred->init($rw); $txt = $clsCred->setVerificarValidez($i); if ($ReportToOficial == true and trim($txt) != "") { $cOficial = new cOficial(99); $cOficial->addNote(iDE_CREDITO, $oficial, $socio, $solicitud, $txt); } $msg .= $txt; $i++; } $this->mMessages .= $msg; return $msg; }