if ($xDLoc->init() == true) { $localidad_ae = $xDLoc->getNombre(); $estado_ae = $xDLoc->getNombre(); } } } //TODO: Terminar $success = $xSoc->addVivienda($calle, $nexterior, $cp, "", "", $telefono_ae, "", false, PERSONAS_REG_VIV_NINGUNO, PERSONAS_TIPO_DOM_LABORAL, $antiguedad_ae, $nombrecolonia, PERSONAS_TIPO_ACCESO_CALLE, "", $idlocalidad, $pais, "", $estado_ae, $municipio_ae, $localidad_ae); if ($success == true) { $iddomicilio = $xSoc->getIDDeVivienda(); $xAE = new cPersonaActividadEconomica($xSoc->getCodigo()); if ($empresa != FALLBACK_CLAVE_EMPRESA) { $xAE->setEmpresa($empresa, $puesto, $departamento_ae, $numero_empleado, $nss, $extension_ae); } if ($iddomicilio > 1) { $xAE->setDomicilioVinculado($iddomicilio); } $success = $xAE->add($tipo_ae, $montoper_ae, $antiguedad_ae, $nombre_ae, $cp, $telefono_ae, $idlocalidad); $msg .= $xAE->getMessages(); } if ($success == true) { $xFRM->addAvisoRegistroOK(); } else { $xFRM->addAvisoRegistroError(); } } else { $empresa = $xSoc->getClaveDeEmpresa(); if ($empresa != FALLBACK_CLAVE_EMPRESA) { $xEmp = new cEmpresas($empresa); $xEmp->init(); $OPersona = $xEmp->getOPersona();
/** * @deprecated @since 20141100 */ function addActividadEconomica($nombre, $ingreso, $puesto = "", $antiguedad = DEFAULT_TIEMPO, $dependencia = FALLBACK_CLAVE_EMPRESA, $domicilio = "", $localidad = "", $municipio = "", $estado = "", $telefono = "0", $extension = 0, $numEmpleado = "0", $departamento = "", $clave_de_actividad = 99, $sector = 99, $sucursal = false, $nss = '', $cp = false, $idlocalidad = false) { $xAE = new cPersonaActividadEconomica($this->mCodigo); if (setNoMenorQueCero($this->mIDVivienda) > 0) { $xAE->setDomicilioVinculado($this->mIDVivienda); } if ($dependencia != FALLBACK_CLAVE_EMPRESA) { $xAE->setEmpresa($dependencia, $puesto, $departamento, $numEmpleado, $nss, $extension); } $success = $xAE->add($clave_de_actividad, $ingreso, $antiguedad, $nombre, $cp, $telefono, $idlocalidad, $localidad, $municipio, $estado); //Actualizar Perfil if (MODULO_AML_ACTIVADO == true) { $xAML = new cAMLPersonas($this->mCodigo); if ($dependencia != FALLBACK_CLAVE_EMPRESA) { $xAML->addTransaccionalidadPorEmpresa($dependencia, $ingreso); } } //agregar relacion $this->setCuandoSeActualiza(); $this->mMessages .= $xAE->getMessages(); return $success; }