function init($aDIniciales = false)
 {
     if ($this->mCodigo != false) {
         $xOb = new cCreditos_garantias();
         $data = $aDIniciales == false ? $xOb->query()->initByID($id) : $aDIniciales;
         $xOb->setData($data);
         $this->mClaveCredito = $xOb->solicitud_garantia()->v();
         $this->mClavePersona = $xOb->socio_garantia()->v();
         $this->mOb = $xOb;
     }
 }
 function getListadoDeGarantias($credito = false)
 {
     $credito = $credito == false ? $this->mDocumento : $credito;
     $xLng = new cLang();
     //cargar garantias
     $xCG = new cCreditos_garantias();
     $data = $xCG->query()->select()->exec("(`creditos_garantias`.`solicitud_garantia` ={$credito})");
     $contar = 1;
     $strgarantias = "";
     foreach ($data as $campos) {
         $xCG->setData($campos);
         $xTG->setData($xTG->query()->initByID($xCG->tipo_garantia()->v()));
         $xTV->setData($xTV->query()->initByID($xCG->tipo_valuacion()->v()));
         //$this->setGarantiaDeCredito($xCG->idcreditos_garantias()->v(), $contar, $campos );
         $str = "<tr>";
         $str .= "<td>" . $xCG->documento_presentado->v() . "<td>";
         $str .= "<td>" . $xCG->descripcion()->v() . "<td>";
         $str .= "<td>" . $xCG->observaciones()->v() . "<td>";
         $str .= "</tr>";
         $contar++;
         $strgarantias .= "";
     }
     $strgarantias = "<table><thead><tr>\n\t\t\t\t\t\t\t\t<th>" . $xLng->getT("TR.factura") . "</th>\n\t\t\t\t\t\t\t\t<th>" . $xLng->getT("TR.descripcion") . "</th>\n\t\t\t\t\t\t\t\t<th>" . $xLng->getT("TR.observaciones") . "</th>\n\t\t\t\t\t\t\t\t</tr></thead><tbody>{$strgarantias}</tbody></table>";
     return $strgarantias;
 }