Example #1
0
 void OKActualButton_Click(object sender, RoutedEventArgs e)
 {
     this.IsBusy      = true;
     this.StateAction = "Actualizando el Permiso";
     _service         = new SPVNServicesClient();
     //_service.ActualizarPerfilAsync(temporalPerfil);
 }
Example #2
0
 void permisoService_SeleccionarTodosProductosCompleted(object sender, SeleccionarTodosProductosCompletedEventArgs e)
 {
     listProductos.Clear();
     this.ListProductos = e.Result;
     _service           = new SPVNServicesClient();
     _service.SeleccionarTodasCategoriasAsync();
     _service.SeleccionarTodasCategoriasCompleted += new EventHandler <SeleccionarTodasCategoriasCompletedEventArgs>(permisoService_SeleccionarTodasCategoriasCompleted);
 }
Example #3
0
 public void SeleccionarTodosProductos()
 {
     _service    = new SPVNServicesClient();
     this.IsBusy = true;
     StateAction = "Recopilando Información";
     _service.SeleccionarTodosProductosAsync();
     _service.SeleccionarTodosProductosCompleted += new EventHandler <SeleccionarTodosProductosCompletedEventArgs>(permisoService_SeleccionarTodosProductosCompleted);
 }
Example #4
0
 public void Init()
 {
     ListPerfil.Clear();
     _service         = new SPVNServicesClient();
     this.IsBusy      = true;
     this.StateAction = "Recopilando Información";
     _service.SeleccionarTodosPerfilAsync();
     _service.SeleccionarTodosPerfilCompleted += new System.EventHandler <SeleccionarTodosPerfilCompletedEventArgs>(permisoService_SeleccionarTodosPerfilCompleted);
 }
Example #5
0
        private void ConsultarTodosProductos()
        {
            service = new SPVNServicesClient();

            service.SeleccionarTodosProductosAsync();
            IsBusy      = true;
            StateAction = "Recopilando información";
            service.SeleccionarTodosProductosCompleted += new EventHandler <SeleccionarTodosProductosCompletedEventArgs>(service_SeleccionarTodosProductosCompleted);
        }
Example #6
0
 void OKRegisterButton_Click(object sender, RoutedEventArgs e)
 {
     this.IsBusy      = true;
     this.StateAction = "Registrando Permiso";
     _service         = new SPVNServicesClient();
     //temporalPermiso = new T_Permiso()
     //{
     //    Nombre_Permiso = _regPermiso.txtNombrePermiso.Text,
     //    Descripcion_Permiso = _regPermiso.txtDescripcionPermiso.Text,
     //    NombrePaquete_Permiso = _regPermiso.txtNombrePermiso.Text
     //};
     _service.RegistrarPermisoAsync(temporalPermiso);
     _service.RegistrarPermisoCompleted += new System.EventHandler <RegistrarPermisoCompletedEventArgs>(permisoService_RegistrarPermisoCompleted);
 }
Example #7
0
        void OKRegisterButton_Click(object sender, RoutedEventArgs e)
        {
            this.IsBusy      = true;
            this.StateAction = "Registrando Permiso";
            _service         = new SPVNServicesClient();
            temporalPerfil   = new T_Perfil()
            {
                Nombre_Perfil      = _regPerfil.txtNombrePerfil.Text,
                Descripcion_Perfil = _regPerfil.txtDescripcionPerfil.Text
            };

            //_service.RegistrarPerfilAsync(temporalPerfil);
            //_service.RegistrarPerfilAsync(temporalPerfil);
            _service.RegistrarPerfilCompleted += new EventHandler <RegistrarPerfilCompletedEventArgs>(permisoService_RegistrarPerfilCompleted);
        }
Example #8
0
        void OKActualButton_Click(object sender, RoutedEventArgs e)
        {
            this.IsBusy      = true;
            this.StateAction = "Actualizando el Permiso";
            _service         = new SPVNServicesClient();
            temporalPermiso  = new T_Permiso()
            {
                ID_Permiso            = int.Parse(_actPermiso.txtIDPermiso.Text),
                Nombre_Permiso        = _actPermiso.txtNombrePermiso.Text,
                Descripcion_Permiso   = _actPermiso.txtDescripcionPermiso.Text,
                NombrePaquete_Permiso = _actPermiso.txtNombrePermiso.Text
            };

            _service.RegistrarPermisoCompleted += new System.EventHandler <RegistrarPermisoCompletedEventArgs>(permisoService_RegistrarPermisoCompleted);
        }