public sIdentidad MetControlIdentidad(ingresoIdentidad ZeroIdentidad) { object[] results = this.Invoke("MetControlIdentidad", new object[] { ZeroIdentidad }); return((sIdentidad)(results[0])); }
/// <remarks/> public void MetControlIdentidadAsync(ingresoIdentidad ZeroIdentidad, object userState) { if ((this.MetControlIdentidadOperationCompleted == null)) { this.MetControlIdentidadOperationCompleted = new System.Threading.SendOrPostCallback(this.OnMetControlIdentidadOperationCompleted); } this.InvokeAsync("MetControlIdentidad", new object[] { ZeroIdentidad }, this.MetControlIdentidadOperationCompleted, userState); }
/// <remarks/> public void MetControlIdentidadAsync(ingresoIdentidad ZeroIdentidad) { this.MetControlIdentidadAsync(ZeroIdentidad, null); }
private void Btn_Click(object sender, System.EventArgs e) { WSZero.ServiciosWebSSMSO servicio = new WSZero.ServiciosWebSSMSO(); WSZero.ingresoIdentidad id = new WSZero.ingresoIdentidad(); string usuario = FindViewById <EditText>(Resource.Id.txtUsuario).Text; string password = FindViewById <EditText>(Resource.Id.txtPass).Text; id.nPassword = password; id.nUsuario = usuario; WSZero.sIdentidad respuesta = new WSZero.sIdentidad(); respuesta = servicio.MetControlIdentidad(id); ProgressBar pb = FindViewById <ProgressBar>(Resource.Id.progressBar1); pb.Progress = 35; string lala = respuesta.nPerfil.ToString(); FindViewById <TextView>(Resource.Id.txtHablador).Text = respuesta.nPerfil.ToString(); if (lala.Equals("1") || lala.Equals("3") || lala.Equals("2")) { int variable = int.Parse(lala); switch (variable) { case 1: pb.Progress = 75; //Genero el axml y su perfil definido SetContentView(Resource.Layout.Perfil1); //Inicializo los gráficos view = FindViewById <PlotView>(Resource.Id.plot_view1); //Gráfico Barra btn_punto = FindViewById <Button>(Resource.Id.grafico_punto); btn_punto.Click += Btn_punto_Click1; //Gráfico Torta btn_torta = FindViewById <Button>(Resource.Id.gráfico_torta); btn_torta.Click += Btn_torta_Click; FindViewById <TextView>(Resource.Id.txtFecha).Text = respuesta.nfechaEmision.ToString(); FindViewById <TextView>(Resource.Id.txtnombreUsuario).Text = respuesta.nNombres.ToString(); FindViewById <TextView>(Resource.Id.txtCargo).Text = respuesta.nCargoEmpresa.ToString(); FindViewById <TextView>(Resource.Id.txtRut).Text = respuesta.nRun.ToString() + " - " + respuesta.nDigito.ToString(); pb.Progress = 100; break; case 2: pb.Progress = 75; SetContentView(Resource.Layout.Ingreso); FindViewById <TextView>(Resource.Id.txtFecha).Text = respuesta.nfechaEmision.ToString(); FindViewById <TextView>(Resource.Id.txtnombreUsuario).Text = respuesta.nNombres.ToString(); FindViewById <TextView>(Resource.Id.txtCargo).Text = respuesta.nCargoEmpresa.ToString(); FindViewById <TextView>(Resource.Id.txtRut).Text = respuesta.nRun.ToString() + " - " + respuesta.nDigito.ToString(); FindViewById <TextView>(Resource.Id.txtMensaje).Text = "\r \n " + "Usted No cuenta con los privilegios para hacer consumo de esta App"; pb.Progress = 100; break; case 3: pb.Progress = 75; SetContentView(Resource.Layout.Perfil3); //Gráfico de barra view = FindViewById <PlotView>(Resource.Id.plot_view2); btn_barra = FindViewById <Button>(Resource.Id.btn_graficoBarra); btn_barra.Click += Btn_barra_Click; FindViewById <TextView>(Resource.Id.txtFecha).Text = respuesta.nfechaEmision.ToString(); FindViewById <TextView>(Resource.Id.txtnombreUsuario).Text = respuesta.nNombres.ToString(); FindViewById <TextView>(Resource.Id.txtCargo).Text = respuesta.nCargoEmpresa.ToString(); FindViewById <TextView>(Resource.Id.txtRut).Text = respuesta.nRun.ToString() + " - " + respuesta.nDigito.ToString(); pb.Progress = 100; break; default: break; } //pb.Progress = 75; //SetContentView(Resource.Layout.Ingreso); //FindViewById<TextView>(Resource.Id.txtFecha).Text = respuesta.nfechaEmision.ToString(); //FindViewById<TextView>(Resource.Id.txtnombreUsuario).Text = respuesta.nNombres.ToString(); //FindViewById<TextView>(Resource.Id.txtPerfil).Text = respuesta.nPerfil.ToString(); //FindViewById<TextView>(Resource.Id.txtRut).Text = respuesta.nRun.ToString(); //pb.Progress = 100; } else { pb.Progress = 99; FindViewById <TextView>(Resource.Id.txtError).Text = respuesta.ndescripcion.ToString(); } //servicio.Dispose(); }