if ($rw["estadocivil"] != 1) { $regimen_matrimonial = " "; } if ($rw["tipo_de_identificacion"] == 1) { $ife = $rw["documento_de_identificacion"]; } else { $ife = " "; } /** *composicion del estado laboral por consulta **/ $estado_laboral = 99; //Obtener la informaci�n laboral $xSoc = new cSocio($socio); $xSoc->init($rw); $DLab = $xSoc->getDatosActividadEconomica(); $estado_laboral = $arrELaboral[$DLab["tipo_aeconomica"]]; //corrige valores vacios if (!isset($estado_laboral)) { $estado_laboral = 99; } //corrige la edad en a�os y asigna, si es menor de edad $edad = floor(restarfechas(fechasys(), $rw["fechanacimiento"]) / 365); if ($edad < 18) { $estado_laboral = "07"; } $tr .= "\t<tr>\n\t\t\t\t<td>{$socio}</td>\n\t\t\t\t<td>{$ife}</td>\n\t\t\t\t<td>{$nombre}</td>\n\t\t\t\t<td>{$apellidopaterno}</td>\n\t\t\t\t<td>{$apellidomaterno}</td>\n\t\t\t\t<td>{$genero}</td>\n\t\t\t\t<td>01</td>\n\t\t\t\t<td>412</td>\n\t\t\t\t<td>{$sucursal}</td>\n\t\t\t\t<td>{$fecha_de_alta}</td>\n\t\t\t\t<td>{$estado_civil}</td>\n\t\t\t\t<td>{$regimen_matrimonial}</td>\n\t\t\t\t<td>{$estado_laboral}</td>\n\t\t\t\t<td>{$fecha_nacimiento}</td>\n\t\t\t\t<td>412</td>\n\t\t\t\t<td>{$hijos}</td>\n\t\t\t\t<td> </td>\n\t\t\t\t<td>{$rfc}</td>\n\t\t\t\t<td>{$curp}</td>\n\t\t\t</tr>"; } echo "<table width='100%' >\n\t<tr>\n\t\t<th>Socio</th>\n\t\t<th>IFE</th>\n\t\t<th>Nombre</th>\n\t\t<th>Apellido Paterno</th>\n\t\t<th>Apellido Materno</th>\n\t\t<th>Sexo</th>\n\t\t<th>Idioma</th>\n\t\t<th>Nacionalidad</th>\n\t\t<th>Sucursal</th>\n\t\t<th>Fecha de Alta</th>\n\t\t<th>Estado Civil</th>\n\t\t<th>Regimen Matrimonial</th>\n\t\t<th>Estado Laboral</th>\n\t\t<th>Fecha de Nacimiento</th>\n\t\t<th>Pais de Nacimiento</th>\n\t\t<th>Numero de Hijos</th>\n\t\t<th>Fecha de Deceso</th>\n\t\t<th>R.F.C.</th>\n\t\t<th>C.U.R.P.</th>\n\t</tr>\n\t\t{$tr}\n</table>"; if ($input != OUT_EXCEL) { echo getRawFooter();
</fieldset> <?php $sqlconyuge = "SELECT numero_socio, CONCAT(nombres, ' ', apellido_paterno, ' ', apellido_materno)\n\t\t\t\t\tAS 'Nombre_Completo',\n\t \t\t\t\tCONCAT( telefono_residencia, ', ', telefono_movil) as 'telefonos', ocupacion\n\t\t\t\t\tfrom socios_relaciones where consanguinidad=3\n\t\t\t\t\tAND socio_relacionado={$idsocio}"; $conyuge = obten_filas($sqlconyuge); $txtConyuge = ""; //$conyuge[0] - $conyuge[1] - Tel(s): $conyuge[2] Ocupación: $conyuge[3] $rwy = $xSocio->getDatosInArray(); $idconyuge = $xSocio->getClaveDePersonaDeConyuge(); if ($conyuge > 0) { $xCon = new cSocio($idconyuge); $xCon->init(); $DConT = $xCon->getTelefonos(); $txtConyuge .= $idconyuge . "-" . $xCon->getNombreCompleto(); $txtConyuge .= " TEL(S): " . $DConT["principal"]; $conyuge_ocup = $xCon->getDatosActividadEconomica(); $txtConyuge .= " OCUPACIÓN: " . $conyuge_ocup["puesto"]; } $genero = eltipo("socios_genero", $rwy[15]); $civil = eltipo("socios_estadocivil", $rwy[14]); $ocupacion = volcartabla("socios_aeconomica", 18, "socio_aeconomica={$idsocio}"); $edad = (int) (restarfechas($nowdate, $rwy[11]) / 365) . " Años"; $dependientes = $rwy["dependientes_economicos"]; $telp = $rwy["telefono_principal"]; $mail = $rwy["correo_electronico"]; $grupo_assoc = $rwy["grupo_solidario"]; //$regimen_mat = $DDom = $xSocio->getDatosDomicilio(99); $eldom = "<tr>\n\t\t\t\t\t\t<th >Calle/Codigo Postal</th>\n\t\t\t\t\t\t<td>" . $DDom["calle"] . "/" . $DDom["codigo_postal"] . "</td>\n\t\t\t\t\t\t<th >Num. Ext./Int.</th>\n\t\t\t\t\t\t<td>" . $DDom["numero_exterior"] . "/" . $DDom["numero_interior"] . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th >Colonia</th>\n\t\t\t\t\t\t<td>" . $DDom["colonia"] . "</td>\n\t\t\t\t\t\t<th >Telefono(s)</th>\n\t\t\t\t\t\t<td>" . $DDom["telefono_residencial"] . "/" . $DDom["telefono_movil"] . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th >Localidad</th>\n\t\t\t\t\t\t<td>" . $DDom["localidad"] . "</td>\n\t\t\t\t\t\t<th >Municipio/Estado</th>\n\t\t\t\t\t\t<td>" . $DDom["municipio"] . "/" . $DDom["estado"] . "</td>\n\t\t\t\t\t</tr>"; echo "\n\t\t<fieldset>\n\t\t<legend>[ Datos Generales del Solicitante ]</legend>\n\t\t\t<table border='0' width='100%'>\n\t\t\t\t<tr>\n\t\t\t\t\t<th width='15%'>Clave de Persona</th>\n\t\t\t\t\t<td width='35%'>{$rwy['0']}</td>\n\t\t\t\t\t<th width='15%'>Nombre(s)</th>\n\t\t\t\t\t<td width='35%'>{$rwy['1']}</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>Apellido Paterno</th><td>{$rwy['2']}</td>\n\t\t\t\t\t<th>Apellido Materno</th><td>{$rwy['3']}</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>R. F. C.</th>\n\t\t\t\t\t<td>{$rwy['4']}</td>\n\t\t\t\t\t<th>C. U. R. P.</th>\n\t\t\t\t\t<td>{$rwy['5']}</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>Genero</th>\n\t\t\t\t\t<td>{$genero}</td>\n\t\t\t\t\t<th>Estado Civil</th>\n\t\t\t\t\t<td>{$civil}</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>Edad</th><td>{$edad}</td>\n\t\t\t\t\t<th>Ocupación</th><td>{$ocupacion}</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>Teléfono Principal</th>\n\t\t\t\t\t<td>{$telp}</td>\n\t\t\t\t\t<th>Correo Electrónico</th>\n\t\t\t\t\t<td>{$mail}</td>\n\t\t\t\t</tr>\n{$eldom}\n\t\t\t\t<tr>\n\t\t\t\t\t<th>Régimen Matrimonial</th>\n\t\t\t\t\t<td>{$rwy['22']}</td>\n\t\t\t\t\t<th>Conyuge</th>\n\t\t\t\t\t<td>{$txtConyuge}</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t\t</fieldset>"; // datos de la solicitud
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(); //} }
$arrEquivTipoDom = array(1 => "C", 2 => "N", 3 => "E", 99 => "O"); $arrEquivTipoRes = array(1 => 1, 2 => 2, 3 => 4, 4 => 3, 99 => ""); $arrEquivEstadoCiv = array(1 => "C", 2 => "S", 3 => "D", 4 => "L", 5 => "", 6 => "V", 7 => "E", 99 => ""); $arrEquivGenero = array(1 => "M", 2 => "F", 99 => ""); $version = 2; $datos = $query->getDataRecord($sql); $icnt = 0; foreach ($datos as $rw) { $linea = "{$ClaveOtorgante}|{$NombreOtorgante}|{$IdentificadorMedio}|{$FechaExtraccion}|{$NotaOtorgante}|{$version}|"; $idcredito = $rw["numero_solicitud"]; $idpersona = $rw["numero_socio"]; $xSoc = new cSocio($idpersona); $xSoc->init(); $DSoc = $xSoc->getDatosInArray(); $xDom = $xSoc->getDatosDomicilio(); $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());
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(); }