$xFRM->OButton("TR.Agregar Bancos", "jsAddBancos()", "bancos", "cmdGo11");
 $xFRM->OButton("TR.Agregar Tesoreria", "jsAddTesoreria()", "dinero", "cmdGo12");
 $xFRM->OButton("TR.Reimprimir Recibo", "ImprimirRecibo()", "imprimir", "cmdGo8");
 $xFRM->OButton("TR.Editar Recibo", "actualizaRec({$idrecibo})", $xFRM->ic()->EDITAR, "cmdGo9");
 $xFRM->OButton("TR.Eliminar Recibo", "jsEliminarRecibo()", $xFRM->ic()->ELIMINAR, "cmdGo10");
 if (getEsModuloMostrado(USUARIO_TIPO_CONTABLE) == true) {
     $xFRM->OButton("TR.Factura", "jsGetFactura({$idrecibo})", $xFRM->ic()->EXPORTAR);
     $xFRM->OButton("TR.Generar Poliza", "jsaSetGenerarPolizaPorRecibo()", "poliza", "cmdGo4");
     $xFRM->OButton("TR.Generar Pre-Poliza", "jsaRegenerarPrepoliza()", $xFRM->ic()->EJECUTAR);
 }
 $xFRM->addHTML($xRec->getFicha(true, "", true));
 //echo ;
 $uri = $xRec->getURI_Formato();
 $xTabs = new cHTabs();
 /* ----------------- DATOS --------------- */
 $cEdit = new cTabla($xSQL->getListadoDeOperaciones("", "", $idrecibo));
 $cEdit->addTool(SYS_UNO);
 $cEdit->addTool(SYS_DOS);
 $cEdit->setEventKey("jsEditClick");
 $cEdit->setTdClassByType();
 $cEdit->setKeyField("idoperaciones_mvtos");
 $xTabs->addTab("TR.OPERACIONES", $cEdit->Show());
 $NumOpers = $cEdit->getRowCount();
 $cBan = new cTabla($xSQL->getListadoDeOperacionesBancarias("", "", "", false, false, " AND `bancos_operaciones`.`recibo_relacionado` = {$idrecibo} "));
 //$cBan->setEventKey("idcontrol");
 $cBan->setKeyField("idcontrol");
 $cBan->addTool(SYS_UNO);
 $cBan->addTool(SYS_DOS);
 $cBan->setFootSum(array(7 => "monto"));
 $xTabs->addTab("TR.BANCOS", $cBan->Show());
 //Operaciones de TesorerĂ­a
             $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) {
             $xHTabs->addTab("TR.Sistema", $xCred->getMessages(OUT_HTML));
             $sql = $mSQL->getListadoDeOperaciones("", $idsolicitud);
             $cEdit = new cTabla($sql);
             $cEdit->addTool(SYS_UNO);
             $cEdit->addTool(SYS_DOS);
             $cEdit->setTdClassByType();
             $cEdit->setKeyField("idoperaciones_mvtos");
             $xHTabs->addTab("TR.Operaciones", $cEdit->Show());
             $cMovs = new cTabla($mSQL->getListadoDeSDPMCredito($idsolicitud));
             $xHTabs->addTab("TR.Historial", $cMovs->Show());
         }
         $oFrm->addHTML($xHTabs->get());
     }
     $oFrm->OButton("TR.Castigos", "jsCastigos({$idsolicitud})", "error");
     $pathContrato = $xCred->getPathDelContrato();
     $pathPagare = $xOPdto->getPathPagare($idsolicitud);
 }
echo $cTae->Show("TR.ACTIVIDAD_ECONOMICA");
//
$cTpr = new cTabla($xLi->getListadoDeRelaciones($idsocio));
$cTpr->setTdClassByType();
echo $cTpr->Show(PERSONAS_TITULO_PARTES);
//
$sqlcred = $xLi->getListadoDeCreditos($idsocio, true);
$cTcred = new cTabla($sqlcred);
$cTcred->setTdClassByType();
echo $cTcred->Show("TR.Creditos");
//
$cTcta = new cTabla($xLi->getListadoDeCuentasDeCapt($idsocio));
$cTcta->setTdClassByType();
echo $cTcta->Show("TR.CUENTAS DE CAPTACION");
//
$sqlgar = $sqlb17_ext . " AND creditos_garantias.socio_garantia={$idsocio} ";
$cTgar = new cTabla($sqlgar);
echo $cTgar->Show("TR.GARANTIAS DE CREDITOS");
$cTbl = new cTabla($xLi->getListadoDeRecibosEmitidos($idsocio));
echo $cTbl->Show("TR.Recibos");
// MOVIMIENTOS
$sqli = $sqlb18d . " AND socio_afectado={$idsocio} " . $subf;
$xLi->getListadoDeOperaciones($idsocio);
$cTi = new cTabla($xLi->getListadoDeOperaciones($idsocio));
$cTi->setTdClassByType();
echo $cTi->Show("TR.MOVIMIENTOS GENERALES");
//
echo getRawFooter();
?>
</body>
</html>