void BotonEnviar_Click(object sender, EventArgs e) { BotonEnviar.Enabled = false; int[] ID_UsuariosConsultar = { idUsuarioSeleccionado }; if (!FindViewById <TextView>(Resource.Id.FechaInicial).Text.Equals("HOY")) { fechaInicial = Convert.ToDateTime(FindViewById <TextView>(Resource.Id.FechaInicial).Text + " " + horaInicial + ":" + minutoInicial); } else { fechaInicial = DateTime.Now; } if (!FindViewById <TextView>(Resource.Id.FechaFinal).Text.Equals("HOY")) { fechaFinal = Convert.ToDateTime(FindViewById <TextView>(Resource.Id.FechaFinal).Text + " " + horaFinal + ":" + minutoFinal); } else { fechaFinal = DateTime.Now; } progress = HelperMethods.setSpinnerDialog("Cargando Coordenadas...", this); Conexion_Web_Service._client.BajarCoordenadasEmpleadosAsync(HelperMethods.ConvertToUnixTimestamp(fechaInicial), HelperMethods.ConvertToUnixTimestamp(fechaFinal), ID_UsuariosConsultar); progress.Show(); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Layout = LayoutInflater.Inflate(Resource.Layout.InformacionPersonal, null); SetContentView(Layout); nombres = FindViewById <TextView>(Resource.Id.Nombre); apellidos = FindViewById <TextView>(Resource.Id.Apellido); nDocumento = FindViewById <TextView>(Resource.Id.NDocumento); fechaNacimiento = FindViewById <TextView>(Resource.Id.FechaNacimiento); telefonoMovil = FindViewById <TextView>(Resource.Id.TelefonoMovil); telefonoFijo = FindViewById <TextView>(Resource.Id.TelefonoFijo); direccion = FindViewById <TextView>(Resource.Id.Direccion); email = FindViewById <TextView>(Resource.Id.Email); fechaIngreso = FindViewById <TextView>(Resource.Id.FechaIngreso); departamento = FindViewById <TextView>(Resource.Id.Departamento); profilePhotoImageView = FindViewById <ImageView>(Resource.Id.ImagenPerfil); Tareas = FindViewById <Button>(Resource.Id.TareasPersonal); Ubicacion = FindViewById <Button>(Resource.Id.UbicacionPersonal); Mensajeria = FindViewById <Button>(Resource.Id.MensajeriaPersonal); progress = HelperMethods.setSpinnerDialog("Cargando Coordenadas...", this); var toolbar = FindViewById <Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar); Window.AddFlags(WindowManagerFlags.DrawsSystemBarBackgrounds); SupportActionBar.SetHomeButtonEnabled(true); SupportActionBar.SetDisplayHomeAsUpEnabled(true); // set the activity title and action bar title Title = SupportActionBar.Title = "Informacion Personal"; HelperMethods.SetupAnimations(this); // extract the acquaintance id fomr the intent IdEmpleado = Intent.GetIntExtra(GetString(Resource.String.InformacionPersonalIntentKey), 0); if (IdEmpleado != 0) { empleadoConsulta = HelperMethods.getUserById(IdEmpleado); informacionPerfil(empleadoConsulta); } else { informacionPerfil(Perfil_Login.miPerfil); IdEmpleado = Perfil_Login.miPerfil.ID_Login; Tareas.Visibility = ViewStates.Invisible; Ubicacion.Visibility = ViewStates.Invisible; Mensajeria.Visibility = ViewStates.Invisible; } Conexion_Web_Service._client.BajarCoordenadasEmpleadosCompleted += _client_Lista_BajarCoordenadasEmpleadosCompletedPersonal; Ubicacion.Click += delegate { Layout.Enabled = false; long fechaFinal = HelperMethods.ConvertToUnixTimestamp(DateTime.Now); long fechaInicial = fechaFinal - 3600; int[] ID_UsuariosConsultar = { IdEmpleado }; Conexion_Web_Service._client.BajarCoordenadasEmpleadosAsync(fechaInicial, fechaFinal, ID_UsuariosConsultar); progress.Show(); }; }