function getListadoDeAvales($credito)
 {
     //TODO: Terminar
     $mSQL = new cSQLListas();
     $mql = new MQL();
     $sql = $mSQL->getListadoDeAvales($credito, $this->mPersona);
     $rs = $mql->getDataRecord($sql);
     //setLog($sql);
     $forma = 8001;
     $firma = 8002;
     $friesgo = 5001;
     $cficha = "";
     $cfirmas = "";
     $criesgo = "";
     $clista = "";
     //$xAval		= new cSocios_relaciones();
     foreach ($rs as $rows) {
         $persona = $rows["numero_socio"];
         $idrelacion = $rows["num"];
         $xSoc = new cSocio($persona);
         $xRel = new cPersonasRelaciones($idrelacion, $persona);
         $xRel->init();
         if ($xSoc->init() == true) {
             $avalDom = $xSoc->getODomicilio();
             $avalEc = $xSoc->getOActividadEconomica();
             $vars = array("aval_nombre_completo" => $xSoc->getNombreCompleto(), "aval_domicilio_localidad" => "", "aval_direccion_calle_y_numero" => "", "aval_direccion_estado" => "", "aval_direccion_completa" => "", "aval_ocupacion" => "", "aval_fecha_de_nacimiento" => $xSoc->getFechaDeNacimiento(), "aval_id_fiscal" => $xSoc->getRFC(), "aval_lugar_de_nacimiento" => $xSoc->getLugarDeNacimiento(), "aval_empresa_de_trabajo" => "", "aval_estado_civil" => $xSoc->getEstadoCivil(), "aval_tipo_de_relacion" => $xRel->getNombreRelacion(), "aval_tipo_de_parentesco" => $xRel->getNombreParentesco(), "aval_porcentaje_relacionado" => $xRel->getPorcientorelacionado() * 100);
             if ($avalDom != null) {
                 $vars["aval_direccion_completa"] = $xSoc->getDomicilio();
                 $vars["aval_domicilio_localidad"] = $xSoc->getODomicilio()->getCiudad();
                 $vars["aval_direccion_calle_y_numero"] = $xSoc->getODomicilio()->getCalleConNumero();
                 $vars["aval_direccion_estado"] = $xSoc->getODomicilio()->getEstado(OUT_TXT);
             }
             if ($avalEc != null) {
                 $vars["aval_ocupacion"] = $xSoc->getOActividadEconomica()->getPuesto();
                 $vars["aval_empresa_de_trabajo"] = $xSoc->getOActividadEconomica()->getNombreEmpresa();
             }
             $texto_ficha = contrato($forma, "texto_del_contrato");
             $texto_firma = contrato($firma, "texto_del_contrato");
             $texto_aut = contrato($friesgo, "texto_del_contrato");
             $vars = array_merge($vars, $this->mBasicVars);
             foreach ($vars as $key => $value) {
                 $texto_ficha = str_replace($key, $value, $texto_ficha);
                 $texto_firma = str_replace($key, $value, $texto_firma);
                 $texto_aut = str_replace($key, $value, $texto_aut);
             }
             $cficha .= $texto_ficha;
             $cfirmas .= $texto_firma;
             $criesgo .= $texto_aut;
             $clista .= $xSoc->getNombreCompleto(OUT_TXT) . ": " . $xSoc->getDomicilio() . "; ";
             //setLog($texto_ficha);
         }
         //setLog($xSoc->getMessages());
     }
     $this->mFichasAvales = $cficha;
     $this->mFirmasAvales = $cfirmas;
     $this->mFichaRiesgoAv = $criesgo;
     $this->mLAvalesConDir = $clista;
 }
 $Nombres = $xCR->getText($xSoc->getNombre(), false, 49);
 $FechaNacimiento = $xCR->getDate($xSoc->getFechaDeNacimiento());
 // date("Ymd", strtotime($DSoc["fechanacimiento"]) );
 if ($xSoc->getEdad() < 15) {
     $FechaNacimiento = "";
     //$xSoc->getFechaDeNacimiento() . "[" . $xSoc->getEdad() . "]";
 }
 $RFC = $xCR->getText($xSoc->getRFC(true));
 $CURP = $xCR->getText($xSoc->getCURP(true));
 $Nacionalidad = $xCR->getText($xSoc->getPaisDeOrigen());
 $tipo_de_regimen = $ODom == null ? DEFAULT_PERSONAS_REGIMEN_VIV : $ODom->getTipoDeRegimen();
 //setLog("A>>>>>" . $xLoc->DomicilioEstadoClaveSIC());
 $domicilio_entidad_fed = $ODom == null ? $xLoc->DomicilioEstadoClaveSIC() : $ODom->getClaveDeEstadoEnSIC();
 $Residencia = $xCR->getETipoDeRegimenViv($tipo_de_regimen);
 $licencia = $xSoc->getClaveLicenciaConducir();
 $EstadoCivil = $xCR->getETipoECivil($xSoc->getEstadoCivil());
 $Sexo = $xCR->getETipoPGenero($xSoc->getGenero());
 $ClaveIFE = $xCR->getText($xSoc->getClaveDeIFE());
 $NumeroDependientes = $xSoc->getNumeroDeDependientes();
 $FechaDefuncion = "";
 $IndicadoDefuncion = "Y";
 $TipoPersona = $xCR->getETipoPersona($xSoc->getPersonalidadJuridica());
 //fisica moral
 /*
 ApellidoPaterno	
 ApellidoMaterno	
 ApellidoAdicional	
 Nombres	
 FechaNacimiento	
 RFC	
 CURP	
 function init($arrData = false, $credito = false, $dataPagos = false)
 {
     $fecha = $this->mFechaDeCorte;
     $credito = $credito == false ? $this->mClaveDeCredito : $credito;
     $xCred = new cCredito($credito);
     $xCred->init($arrData);
     $xCred->initPagosEfectuados($dataPagos, $fecha);
     //setLog($dataPagos);
     $xSoc = new cSocio($xCred->getClaveDePersona());
     $xSoc->init();
     $this->mInfoLinea[1] = $this->getText($this->getClaveDeOtorgante());
     $this->mInfoLinea[2] = $this->getText($this->getNombreOtorgante());
     $this->mInfoLinea[3] = $this->getFechaDeReporte();
     $this->mInfoLinea[4] = $this->getText($xSoc->getApellidoPaterno());
     $this->mInfoLinea[5] = $this->getText($xSoc->getApellidoMaterno());
     $this->mInfoLinea[6] = "";
     $nombres = explode(" ", $xSoc->getNombre(), 2);
     $this->mInfoLinea[7] = isset($nombres[SYS_CERO]) ? $this->getText($nombres[SYS_CERO]) : "";
     $this->mInfoLinea[8] = isset($nombres[SYS_UNO]) ? $this->getText($nombres[SYS_UNO]) : "";
     $this->mInfoLinea[9] = $this->getDate($xSoc->getFechaDeNacimiento());
     $this->mInfoLinea[10] = $this->getText($xSoc->getRFC());
     $this->mInfoLinea[11] = isset($this->mTituloPersonal[$xSoc->getTipoGenero()]) ? $this->mTituloPersonal[$xSoc->getTipoGenero()] : "";
     //Hiber Tadeo
     $this->mInfoLinea[12] = $this->getEstadoCivil($xSoc->getEstadoCivil());
     $this->mInfoLinea[13] = $this->mEquivGenero[$xSoc->getTipoGenero()];
     //TODO: terminar defuncion/muerte de la persona
     $this->mInfoLinea[14] = "";
     $this->mInfoLinea[15] = "";
     $xDom = $xSoc->getODomicilio();
     if ($xDom == null) {
         for ($i = 16; $i <= 23; $i++) {
             $this->mInfoLinea[$i] = "";
         }
     } else {
         $this->mInfoLinea[16] = $this->getText($xDom->getCalleConNumero());
         $this->mInfoLinea[17] = "";
         $this->mInfoLinea[18] = $this->getText($xDom->getColonia());
         $this->mInfoLinea[19] = $this->getText($xDom->getMunicipio());
         $this->mInfoLinea[20] = $this->getText($xDom->getCiudad());
         $this->mInfoLinea[21] = $this->getText($xDom->getClaveDeEstadoEnSIC());
         $this->mInfoLinea[22] = $this->getText($xDom->getCodigoPostal());
         $xTel = $xSoc->getTelefonoPrincipal();
         //Hiber Tadeo
         $this->mInfoLinea[23] = $xTel == 0 ? "" : $xTel;
         //Hiber Tadeo
     }
     $xAE = $xSoc->getOActividadEconomica();
     if ($xAE == null) {
         $this->mInfoLinea[24] = $this->getText($xSoc->getRFC(true));
         //Para Finsureste debe de ser este RFC del cliente
         $this->mInfoLinea[33] = 0;
     } else {
         $this->mInfoLinea[24] = $this->getText($xSoc->getRFC(true));
         //Para Finsureste debe de ser este RFC del cliente//$this->getText($xAE->getNombreEmpresa());
         $this->mInfoLinea[33] = $this->getText($xDom->getCalleConNumero());
         //Para Finsureste debe de ser direccion del cliente //Hiber Tadeo Aca es direccion
     }
     //direccion 2
     $this->mInfoLinea[25] = "";
     $this->mInfoLinea[26] = $this->getText($xDom->getColonia());
     //Para Finsureste
     $this->mInfoLinea[27] = $this->getText($xDom->getMunicipio());
     //Para Finsureste
     $this->mInfoLinea[28] = $this->getText($xDom->getCiudad());
     //Para Finsureste
     $this->mInfoLinea[29] = $this->getText($xDom->getClaveDeEstadoEnSIC());
     //Para Finsureste
     $this->mInfoLinea[30] = $this->getText($xDom->getCodigoPostal());
     //Para Finsureste
     $this->mInfoLinea[31] = $xTel == 0 ? "" : $xTel;
     //Hiber Tadeo  //Para Finsureste
     $this->mInfoLinea[32] = "";
     $this->mInfoLinea[34] = $this->getClaveDeOtorgante();
     $this->mInfoLinea[35] = $this->getText($this->getNombreOtorgante());
     $this->mInfoLinea[36] = $xCred->getNumeroDeCredito();
     $this->mInfoLinea[38] = $this->getTipoDeCuenta($xCred->getTipoDePago());
     //datos del convenio
     $DConv = $xCred->getOProductoDeCredito();
     $this->mInfoLinea[37] = $this->getTipoDeResponsabilidad($DConv->getTipoDeIntegracion());
     $this->mInfoLinea[39] = $DConv->getTipoDeContratoCR();
     //"PL";//$DConv->getTipoDeContratoCR(); //Hiber Tadeo CL=LINEA DE CREDITO PL=PRESTAMO PERSONAL
     $this->mInfoLinea[40] = AML_CLAVE_MONEDA_LOCAL;
     //TODO: mejorar
     $this->mInfoLinea[41] = $xCred->getPagosAutorizados();
     if ($xCred->getTipoEnSistema() == CREDITO_PRODUCTO_NOMINA) {
         //TODO: Parchar con el de TADEO
         $this->mInfoLinea[42] = "P";
     } else {
         $this->mInfoLinea[42] = $this->mEquivFrecPagos[$xCred->getPeriocidadDePago()];
     }
     $this->mInfoLinea[43] = $this->getDate($xCred->getFechaDeMinistracion());
     $this->mInfoLinea[44] = $this->getMonto($xCred->getMontoDeParcialidad());
     $this->mInfoLinea[45] = $this->getDate($xCred->getFechaUltimoDePago());
     $this->mInfoLinea[46] = $this->getDate($xCred->getFechaDeMinistracion());
     $this->mInfoLinea[47] = "";
     //$this->getDate("2029-12-31" );
     if ($xCred->getSaldoActual($fecha) <= TOLERANCIA_SALDOS) {
         $this->mInfoLinea[47] = $this->getDate($xCred->getFechaUltimoDePago());
     }
     $this->mInfoLinea[48] = $this->getFechaDeReporte();
     $DCapacidad = $xSoc->getOCapacidadDePago();
     $this->mInfoLinea[49] = $this->getMonto($DCapacidad->getMontoDeCreditoMaximo());
     $this->mInfoLinea[50] = $this->getMonto($xCred->getSaldoIntegrado($fecha));
     //$xCred->getSaldoActual();
     $this->mInfoLinea[51] = $this->getMonto($DCapacidad->getLimiteDeCredito());
     $this->mInfoLinea[52] = $this->getMonto($xCred->getSaldoVencido());
     //53 numero de pagos vencidos
     $this->mInfoLinea[53] = 0;
     //54 forma mop
     $this->mInfoLinea[54] = $xCred->getMOP($fecha);
     // ($this->mOut == OUT_CSV) ? "01" : "'01";
     //55 clave de observacion, segun catalogo
     $this->mInfoLinea[55] = "";
     //56 clave de otorgante anterior
     //57 nombre otorgante anterior
     $this->mInfoLinea[56] = "";
     $this->mInfoLinea[57] = "";
     $this->mInfoLinea[58] = "";
     //Numero de cuenta anterior en caso de cartera tranferida
     $this->mInfoLinea[59] = $xCred->getFechaDePrimerAtraso() == null ? "" : $this->getDate($xCred->getFechaDePrimerAtraso());
     //TODO: Fecha de Primera atraso
     $this->mInfoLinea[60] = $this->getMonto($xCred->getSaldoActual($fecha));
     //Saldo Insoluto del Principal
     $this->mInfoLinea[61] = $this->getMonto($xCred->getMontoUltimoPago());
     // $xCred->getMontoDeParcialidad();//0; //TODO: Monto de Ultimo pago
     if (MODO_DEBUG == true) {
         $this->mMessages .= $xCred->getMessages(OUT_TXT);
     }
 }