$xDAEconom = $xSoc->getDatosActividadEconomica();
 $ODom = $xSoc->getODomicilio();
 $OActE = $xSoc->getOActividadEconomica();
 $sucres = $xSoc->getSucursal();
 $ApellidoPaterno = $xCR->getText($xSoc->getApellidoPaterno());
 $ApellidoMaterno = $xCR->getText($xSoc->getApellidoMaterno());
 if (trim($ApellidoPaterno) == "") {
     $ApellidoPaterno = trim($ApellidoMaterno) == "" ? "NO PROPORCIONADO" : $ApellidoMaterno;
     $ApellidoMaterno = "NO PROPORCIONADO";
 }
 if (trim($ApellidoMaterno) == "") {
     $ApellidoMaterno = "NO PROPORCIONADO";
 }
 $ApellidoAdicional = "";
 $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());
$xTa->addTH("Numero Maximo de Operaciones");
$xTa->addTH("Monto Maximo de Operaciones");
$xTa->endRow();
$xT = new cFileImporter();
foreach ($rs as $rows) {
    $xDSoc->setData($rows);
    $codigo_de_socio = $xDSoc->codigo()->v();
    $xSoc = new cSocio($codigo_de_socio);
    $xSoc->init($rows);
    $xSoc->getOEstats()->initDatosDeCredito();
    $saldoCred = setNoMenorQueCero($xSoc->getCreditosComprometidos());
    if ($saldoCred > 0) {
        $xTa->initRow();
        $xTa->addTD($xSoc->getSucursal());
        $xTa->addTD(htmlentities($xSoc->getNombreCompleto()));
        $xTa->addTD($xF->getFechaMX($xSoc->getFechaDeNacimiento()));
        $xTa->addTD("MEXICANA");
        $xTa->addTD($xSoc->getRFC());
        $xOAE = $xSoc->getOActividadEconomica();
        if ($xOAE == null) {
            $xTa->addTD(" ");
            $xTa->addTD(" ");
        } else {
            $idclave = $xOAE->getClaveDeActividad();
            $actividad = isset($DActividades[$idclave]) ? htmlentities($DActividades[$idclave]) : "";
            $actividad = strtoupper($xT->cleanString($actividad));
            $actividad = $actividad == "DESCONOCIDO_MIGRADO" ? "" : $actividad;
            $xTa->addTD($actividad);
            //$xTa->addTD( $xOAE->getPuesto(true) );
        }
        $xViv = $xSoc->getODomicilio();
         $nombre = trim($nombres);
     }
     //echo "$idrelacion [$tipo] $nombres ($nombre|$apellido1|$apellido2)<br />\r\n";
     $xRel->apellido_materno($apellido2);
     $xRel->apellido_paterno($apellido1);
     $xRel->calificacion_del_referente(0);
     $xRel->codigo($id);
     $xRel->consanguinidad(99);
     $xRel->credito_relacionado(DEFAULT_CREDITO);
     $xRel->curp("");
     $xRel->dependiente(1);
     $xRel->domicilio_completo("");
     $xRel->eacp(EACP_CLAVE);
     $xRel->estatus(10);
     $xRel->fecha_alta(fechasys());
     $xRel->fecha_nacimiento($xSoc->getFechaDeNacimiento());
     $xRel->idsocios_relaciones($xRel->query()->getLastID());
     $xRel->idusuario(getUsuarioActual());
     $xRel->monto_relacionado(0);
     $xRel->nombres($nombre);
     $xRel->numero_socio($idrelacion);
     $xRel->observaciones("");
     $xRel->ocupacion($tipo);
     $xRel->porcentaje_relacionado(100);
     $xRel->socio_relacionado($id);
     $xRel->sucursal(getSucursal());
     $xRel->telefono_movil(0);
     $xRel->telefono_residencia(0);
     $xRel->tipo_relacion($eq[$tipo]);
     $xRel->query()->insert()->save();
 }
 $cont[12] = $moneda;
 //
 $cont[13] = $fecha_de_op;
 // $xRec->getFechaDeRecibo();
 $cont[14] = $fechaDetec;
 //inusuales internas
 $cont[15] = $nac;
 $cont[16] = $tp;
 $nombresujeto = $xT->getCSV($xSoc->getNombre());
 $cont[17] = $tp == SYS_UNO ? "" : $nombresujeto;
 $cont[18] = $tp == SYS_UNO ? $nombresujeto : "";
 $cont[19] = $tp == SYS_UNO ? $xT->getCSV($xSoc->getApellidoPaterno()) : "";
 $cont[20] = $tp == SYS_UNO ? $xT->getCSV($xSoc->getApellidoMaterno()) : "";
 $cont[21] = $xSoc->getRFC(true);
 $cont[22] = $tp == SYS_UNO ? $xSoc->getCURP(true) : "";
 $cont[23] = $xSoc->getFechaDeNacimiento();
 if ($ODom == null) {
     $cont[24] = "";
     $cont[25] = "";
     $cont[26] = $xLoc->DomicilioLocalidadClave();
     $cont[27] = "";
 } else {
     //10500001
     $idlocalidad = $ODom->getClaveDeLocalidad();
     //$cont[24]	= ($orels == 0) ? strtoupper($xT->cChar($ODom->getCalleConNumero(), 59)) : "";
     //$cont[25]	= ($orels == 0) ? $xT->cChar($ODom->getColonia(), 29) : "";
     //$cont[26]	= ($orels == 0) ? $xT->cSerial(8, $idlocalidad) : "";
     $cont[24] = strtoupper($xT->cChar($ODom->getCalleConNumero(), 59));
     $cont[25] = $xT->cChar($ODom->getColonia(), 29);
     $cont[26] = $idlocalidad;
     //validar la clave de localidad, si no emitir la actual
 function setActualizarPorPersona()
 {
     $idpersona = $this->mClaveDePersona;
     $res = false;
     if ($idpersona != null) {
         $xSoc = new cSocio($idpersona);
         if ($xSoc->init() == true) {
             $xRel = new cSocios_relaciones();
             if ($this->mInit == true) {
                 $xRel->setData($xRel->query()->initByID($this->mID));
                 $xRel->domicilio_completo($xSoc->getDomicilio());
                 $xRel->apellido_materno($xSoc->getApellidoMaterno());
                 $xRel->apellido_paterno($xSoc->getApellidoPaterno());
                 $xRel->curp($xSoc->getCURP());
                 $xRel->fecha_nacimiento($xSoc->getFechaDeNacimiento());
                 $xRel->nombres($xSoc->getNombre());
                 $xRel->telefono_movil($xSoc->getTelefonoPrincipal());
                 $id = $xRel->query()->update()->save($this->mID);
                 if ($id == false) {
                     $this->mMessages .= "ERROR\tId " . $this->mID . "\tAl Actualizar a la Persona {$idpersona} \r\n";
                 } else {
                     $res = true;
                 }
                 //Actualizar PEP
             }
         }
     } else {
         $this->mMessages .= "ERROR\tAl cargar a la Persona {$idpersona}\r\n";
     }
     return $res;
 }
 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;
 }
function JsaGetDatosHeredados($socio)
{
    $xSoc = new cSocio($socio);
    $xSoc->init();
    $sucess = true;
    $telefono = "";
    $domicilio = "";
    $telefonomovil = "";
    $nombre = "";
    $appPaterno = "";
    $appMaterno = "";
    $NDia = "";
    $NMes = "";
    $NAnno = "";
    $actividad = "";
    /**
     * Si el Numero de Socio es menor a 5 digitos
     */
    //if ( strlen($curp) >= 7){
    $DDom = $xSoc->getDatosDomicilio();
    $telefono = $DDom["telefono_residencial"];
    $telefonomovil = $DDom["telefono_movil"];
    $nombre = $xSoc->getNombre();
    $appPaterno = $xSoc->getApellidoPaterno();
    $appMaterno = $xSoc->getApellidoMaterno();
    $curp = $xSoc->getCURP();
    $FNacimiento = $xSoc->getFechaDeNacimiento();
    $NDia = date("d", strtotime($FNacimiento));
    $NMes = date("n", strtotime($FNacimiento));
    $NAnno = date("Y", strtotime($FNacimiento));
    //$num			= $DDom["Resultado"];
    $DOcup = $xSoc->getDatosActividadEconomica();
    //$domicilio		= $xSoc->getDomicilio();
    $actividad = $DOcup["puesto"];
    $socio = $xSoc->getCodigo();
    //if ($num == 1){ $sucess = true; }
    //}
    //idelmes0 idelanno0 ideldia0
    $tab = new TinyAjaxBehavior();
    if ($sucess == true) {
        $tab->add(TabSetvalue::getBehavior("idTFijo", $telefono));
        //$tab->add(TabSetvalue::getBehavior("idDomicilio", $domicilio));
        $tab->add(TabSetvalue::getBehavior("idTMovil", $telefonomovil));
        $tab->add(TabSetvalue::getBehavior("idNombres", $nombre));
        $tab->add(TabSetvalue::getBehavior("idApPaterno", $appPaterno));
        $tab->add(TabSetvalue::getBehavior("idApMaterno", $appMaterno));
        $tab->add(TabSetvalue::getBehavior('idCurp', $curp));
        $tab->add(TabSetvalue::getBehavior('ideldia0', $NDia));
        $tab->add(TabSetvalue::getBehavior('idelmes0', $NMes));
        $tab->add(TabSetvalue::getBehavior('idelanno0', $NAnno));
        $tab->add(TabSetvalue::getBehavior("idOcupacion", $actividad));
        //$tab->add(TabSetvalue::getBehavior("idNumeroSocio", $socio));
        $tab->add(TabSetvalue::getBehavior("idNumeroSocio", $socio));
        //-
        $tab->add(TabSetvalue::getBehavior("idcolonia", $DDom["colonia"]));
        $tab->add(TabSetvalue::getBehavior("idcalle", $DDom["calle"]));
        $tab->add(TabSetvalue::getBehavior("idnumero", $DDom["numero_exterior"]));
        $tab->add(TabSetvalue::getBehavior("idreferencia", $DDom["referencia"]));
        $tab->add(TabSetvalue::getBehavior("idcodigopostal", $DDom["codigo_postal"]));
    }
    //$tab -> add(TabSetvalue::getBehavior('idObservaciones', $xSoc->getMessages() ));
    return $tab->getString();
    //}
}
 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);
     }
 }
function jsaGetDatosDePersona($persona)
{
    $xSoc = new cSocio($persona);
    $xSoc->init();
    $sucess = true;
    $telefono = "";
    $domicilio = "";
    $telefonomovil = "";
    $nombre = "";
    $appPaterno = "";
    $appMaterno = "";
    $NDia = "";
    $NMes = "";
    $NAnno = "";
    $actividad = "";
    /**
     * Si el Numero de Socio es menor a 5 digitos
     */
    $DDom = $xSoc->getDatosDomicilio();
    $telefono = $xSoc->getTelefonoPrincipal();
    $nombre = $xSoc->getNombre();
    $appPaterno = $xSoc->getApellidoPaterno();
    $appMaterno = $xSoc->getApellidoMaterno();
    $curp = $xSoc->getCURP();
    $FNacimiento = $xSoc->getFechaDeNacimiento();
    $DOcup = $xSoc->getDatosActividadEconomica();
    $actividad = $DOcup["puesto"];
    $socio = $xSoc->getCodigo();
    $tab = new TinyAjaxBehavior();
    if ($sucess == true) {
        $tab->add(TabSetvalue::getBehavior("telefono", $telefono));
        $tab->add(TabSetvalue::getBehavior("nombre", $nombre));
        $tab->add(TabSetvalue::getBehavior("paterno", $appPaterno));
        $tab->add(TabSetvalue::getBehavior("materno", $appMaterno));
        $tab->add(TabSetvalue::getBehavior('curp', $curp));
        $tab->add(TabSetvalue::getBehavior("ocupacion", $actividad));
        $tab->add(TabSetvalue::getBehavior("ingreso", $xSoc->getIngresosMensuales()));
        //$tab->add(TabSetvalue::getBehavior("personarelacionada", $persona));
        // "idnombrecolonia" "identidadesfederativas"
        if ($xSoc->getODomicilio() == null) {
        } else {
            $tab->add(TabSetvalue::getBehavior("idnombrecolonia", $DDom["colonia"]));
            $tab->add(TabSetvalue::getBehavior("idnombreacceso", $DDom["calle"]));
            $tab->add(TabSetvalue::getBehavior("idnumeroexterior", $DDom["numero_exterior"]));
            $tab->add(TabSetvalue::getBehavior("idcodigopostal", $DDom["codigo_postal"]));
            if (PERSONAS_VIVIENDA_MANUAL == true) {
                $tab->add(TabSetvalue::getBehavior("idnombrelocalidad", $DDom["localidad"]));
                $tab->add(TabSetvalue::getBehavior("idnombremunicipio", $DDom["municipio"]));
            } else {
            }
        }
    }
    //$tab -> add(TabSetvalue::getBehavior('idObservaciones', $xSoc->getMessages() ));
    return $tab->getString();
}