// $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;
$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()); $ClaveIFE = $xCR->getText($xSoc->getClaveDeIFE()); $NumeroDependientes = $xSoc->getNumeroDeDependientes(); $FechaDefuncion = ""; $IndicadoDefuncion = "Y"; $TipoPersona = $xCR->getETipoPersona($xSoc->getPersonalidadJuridica()); //fisica moral /*
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 setPersona($clave_de_persona) { $this->mPersona = $clave_de_persona; $cSoc = new cSocio($clave_de_persona); $fichas_de_respsolidarios = ""; $firmas_de_respsolidarios = ""; if ($cSoc->init() == true) { $domicilio_del_socio = $cSoc->getDomicilio(); $ficha_socio = $cSoc->getFicha(true, true); $xODom = $cSoc->getODomicilio(); $xOAE = $cSoc->getOActividadEconomica(); //Caja local por SQL $SQLCL = "SELECT idsocios_cajalocal, descripcion_cajalocal, ultimosocio, region, sucursal FROM socios_cajalocal WHERE idsocios_cajalocal=" . $cSoc->getNumeroDeCajaLocal(); $caja_local = mifila($SQLCL, "descripcion_cajalocal"); $xFecha = new cFecha(); $this->mArr["variable_domicilio_del_socio"] = $domicilio_del_socio; $this->mArr["variable_rfc_del_socio"] = $cSoc->getRFC(); $this->mArr["variable_curp_del_socio"] = $cSoc->getCURP(); $this->mArr["variable_numero_de_socio"] = $cSoc->getCodigo(); $this->mArr["variable_nombre_caja_local"] = $caja_local; $this->mArr["variable_informacion_del_socio"] = $ficha_socio; $this->mArr["variable_fecha_de_nacimiento_del_socio"] = $xFecha->getFechaMediana($cSoc->getFechaDeNacimiento()); $this->mArr["variable_ciudad_de_nacimiento_del_socio"] = $cSoc->getLugarDeNacimiento(); if ($xODom != null) { $this->mArr["variable_sin_ciudad_domicilio_del_socio"] = $xODom->getDireccionBasica(); $this->mArr["variable_ciudad_del_socio"] = $xODom->getCiudad(); $this->mArr["variable_persona_domicilio_municipio"] = $xODom->getMunicipio(); } if ($xOAE != null) { $this->mArr["variable_actividad_economica_del_socio"] = $xOAE->getPuesto(); $this->mArr["variable_estado_de_actividad_economica"] = $xOAE->getNombreEstado(); $this->mArr["variable_municipio_de_actividad_economica"] = $xOAE->getNombreMunicipio(); $this->mArr["variable_nombre_de_la_empresa"] = $xOAE->getNombreEmpresa(); $this->mArr["variable_socio_actividad_ciudad"] = $xOAE->getLocalidad(); $this->mArr["variable_socio_actividad_telefono"] = $xOAE->getTelefono(); } $this->mArr["variable_nombre_del_socio"] = $cSoc->getNombreCompleto(); $this->mArr["variable_persona_nombre_completo"] = $cSoc->getNombreCompleto(); $idestadocivil = $cSoc->getEstadoCivil(); $DEstadoCivil = new cSocios_estadocivil(); $DEstadoCivil->setData($DEstadoCivil->query()->initByID($idestadocivil)); $nombre_estadocivil = $DEstadoCivil->descripcion_estadocivil()->v(); $this->mArr["variable_estado_civil_del_socio"] = $nombre_estadocivil; $firmas_de_respsolidarios = $cSoc->getCoResponsables("firmas"); } else { if (MODO_DEBUG == true) { setLog($cSoc->getMessages()); } } $this->mArr["variable_responsable_solidario_en_fichas"] = $fichas_de_respsolidarios; $this->mArr["variable_firmas_de_obligados_solidarios"] = $firmas_de_respsolidarios; }
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(); //} }
$DDOM = $xSoc->getODomicilio(); if ($DDOM == null) { } else { $DEstado = $DDOM->getOEstado(); $xFRM->addHElem("<p>El Nombre es " . $DDOM->getEstado() . "</p>"); $xFRM->addHElem("<p>La clave SIC es " . $DDOM->getClaveDeEstadoEnSIC() . "</p>"); } $xFRM->addHTML("<p class='aviso'>" . $xColonia->getMessages(OUT_HTML) . "</p>"); $xFRM->addHTML("<h3>DATOS FISCALES</h3>"); $xFRM->addHTML("<p class='aviso'>RFC evaluado : " . $xSoc->getRFC(true) . "</p>"); $xFRM->addHTML("<p class='aviso'>RFC evaluado/ret: " . $xSoc->getRFC(true, true) . "</p>"); $xFRM->addHTML("<p class='aviso'>RFC : " . $xSoc->getRFC() . "</p>"); //Iniciar por CURP if ($xSoc->initByIDLegal("RACD-890730- KC3") == true) { $xFRM->addHElem("<p>El Nombre es por CURP ES " . $xSoc->getNombreCompleto() . "</p>"); $xID = new cIDLegal($xSoc->getCURP()); $xFRM->addHElem("<p>La fecha por CURP es " . $xID->getFechaCreacion() . "</p>"); } $xLoc = new cDomicilioLocalidad(false); $xLoc->setBuscar("MERXICA", 4, 1, "MX"); $xFRM->addAviso($xLoc->getNombre()); //$xC = new cSocios_general(); /*$query = $xC->query()->select(); $query->where("codigo > 0"); $rs = $query->exec(); foreach ($rs as $rows){ $xC->setData($rows); echo $xC->nombrecompleto()->v(); }*/ $xFRM->addHElem("<hr />"); $xUS = new cSystemUser(TASK_USR, false);
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(); }