Пример #1
0
 //LOAD
 private async void LunarLoad(CatalogoSimpleView obj)
 {
     try
     {
         await StaticSourcesViewModel.CargarDatosMetodoAsync(() =>
         {
             EmptyVisible = false;
             //Listado
             ListItems      = new List <TIPO_LUNAR>();
             CatalogoHeader = "Lunar";
             HeaderAgregar  = "Agregar Lunar";
             //LLENAR
             EditarVisible       = false;
             NuevoVisible        = false;
             AgregarVisible      = false;
             GuardarMenuEnabled  = false;
             EliminarMenuEnabled = false;
             EditarMenuEnabled   = false;
             CancelarMenuEnabled = false;
             AyudaMenuEnabled    = true;
             SalirMenuEnabled    = true;
             ExportarMenuEnabled = true;
             /*MAXLENGTH*/
             MaxLength       = 14;
             SeleccionIndice = -1;
             //Obtenemos las Etnias
             this.GetTipoLunares();
             this.setValidationRules();
             ConfiguraPermisos();
             StaticSourcesViewModel.SourceChanged = false;
         });
     }
     catch (Exception ex)
     {
         StaticSourcesViewModel.ShowMessageError("Algo pasó...", "Ocurrió un error al cargar los datos iniciales.", ex);
     }
 }
 //LOAD
 private async void EstadosLoad(CatalogoSimpleView obj)
 {
     try
     {
         await StaticSourcesViewModel.CargarDatosMetodoAsync(() =>
         {
             EmptyVisible = false;
             //Listado
             ListItems      = new ObservableCollection <ENTIDAD>();
             CatalogoHeader = "Estados";
             HeaderAgregar  = "Agregar Estados";
             //LLENAR
             EditarVisible       = false;
             NuevoVisible        = false;
             AgregarVisible      = false;
             GuardarMenuEnabled  = false;
             EliminarMenuEnabled = false;
             EditarMenuEnabled   = false;
             CancelarMenuEnabled = false;
             AyudaMenuEnabled    = true;
             SalirMenuEnabled    = true;
             ExportarMenuEnabled = true;
             /*MAXLENGTH*/
             MaxLength       = 14;
             SeleccionIndice = -1;
             //Obtenemos los estados
             this.GetEstados();
             this.setValidationRules();
             ConfiguraPermisos();
             StaticSourcesViewModel.SourceChanged = false;
         });
     }
     catch (Exception ex)
     {
         StaticSourcesViewModel.ShowMessageError("Algo pasó...", "Ocurrió un error al cargar tipo de estado.", ex);
     }
 }
 private async void PersonalidadMotivoLoad(CatalogoSimpleView Window = null)
 {
     try
     {
         await StaticSourcesViewModel.CargarDatosMetodoAsync(() =>
         {
             EmptyVisible = false;
             //Listado
             ListItems      = new List <PERSONALIDAD_MOTIVO>();
             CatalogoHeader = "Motivo de Solicitud de Estudios";
             HeaderAgregar  = "Agregar Motivo de Solicitud de Estudios";
             //LLENAR
             EditarVisible       = false;
             NuevoVisible        = false;
             AgregarVisible      = false;
             GuardarMenuEnabled  = false;
             EliminarMenuEnabled = false;
             EditarMenuEnabled   = false;
             CancelarMenuEnabled = false;
             AyudaMenuEnabled    = true;
             SalirMenuEnabled    = true;
             ExportarMenuEnabled = true;
             //MaxLengthAbreviatura = 1;
             /*MAXLENGTH*/
             // MaxLength = 100;
             SeleccionIndice = -1;
             //Obtenemos las Etnias
             this.GetTiposUnidadMedida();
             this.setValidationRules();
             ConfiguraPermisos();
         });
     }
     catch (Exception ex)
     {
         StaticSourcesViewModel.ShowMessageError("Algo pasó...", "Ocurrió un error al cargar Motivo de Solicitud de Estudios.", ex);
     }
 }
        //private void PopularEstatusCombo()
        //{
        //    var ListaEstatus_ = new Clases.Estatus.EstatusControl().LISTA_ESTATUS;
        //    ListEstatus = new ObservableCollection<ControlPenales.Clases.Estatus.Estatus>(ListaEstatus_);
        //}

        private async void TipoDelitosLoad(CatalogoSimpleView Window = null)
        {
            try
            {
                await StaticSourcesViewModel.CargarDatosMetodoAsync(() =>
                {
                    EmptyVisible = false;
                    //Listado
                    ListItems      = new List <TIPO_DELITO>();
                    CatalogoHeader = "Tipo de Delito";
                    HeaderAgregar  = "Agregar Nuevo Tipo de Delito";
                    //LLENAR
                    EditarVisible       = false;
                    NuevoVisible        = false;
                    AgregarVisible      = false;
                    GuardarMenuEnabled  = false;
                    EliminarMenuEnabled = false;
                    EditarMenuEnabled   = false;
                    CancelarMenuEnabled = false;
                    AyudaMenuEnabled    = true;
                    SalirMenuEnabled    = true;
                    ExportarMenuEnabled = true;
                    /*MAXLENGTH*/
                    MaxLength       = 100;
                    SeleccionIndice = -1;
                    //Obtenemos las Etnias
                    this.GetTiposDelitos();
                    this.setValidationRules();
                    ConfiguraPermisos();
                });
            }
            catch (Exception ex)
            {
                StaticSourcesViewModel.ShowMessageError("Algo pasó...", "Ocurrió un error al cargar tipo de delito.", ex);
            }
        }
Пример #5
0
 public async void TipoRelacionLoad(CatalogoSimpleView Window = null)
 {
     try
     {
         await StaticSourcesViewModel.CargarDatosMetodoAsync(() =>
         {
             EmptyVisible = false;
             //Listado
             ListItems      = new ObservableCollection <TIPO_RELACION>();
             CatalogoHeader = "Tipo de Relación";
             HeaderAgregar  = "Agregar Nuevo Tipo de Relación";
             //LLENAR
             EditarVisible       = false;
             NuevoVisible        = false;
             AgregarVisible      = false;
             GuardarMenuEnabled  = false;
             EliminarMenuEnabled = false;
             EditarMenuEnabled   = false;
             CancelarMenuEnabled = false;
             AyudaMenuEnabled    = true;
             SalirMenuEnabled    = true;
             ExportarMenuEnabled = true;
             /*MAXLENGTH*/
             MaxLength       = 30;
             SeleccionIndice = -1;
             //Obtenemos las Etnias
             this.GetTipoRelacion();
             setValidationRules();
             ConfiguraPermisos();
         });
     }
     catch (Exception ex)
     {
         StaticSourcesViewModel.ShowMessageError("Algo pasó...", "Ocurrió un error al cargar tipo de comportamiento homosexual.", ex);
     }
 }
 private async void GrupoPolicialLoad(CatalogoSimpleView obj)
 {
     try
     {
         await StaticSourcesViewModel.CargarDatosMetodoAsync(() =>
         {
             EmptyVisible = false;
             //Listado
             ListItems      = new ObservableCollection <GRUPO_TACTICO>();
             CatalogoHeader = "Grupos Policiales";
             HeaderAgregar  = "Agregar Nuevo Grupo Policial";
             //LLENAR
             EditarVisible       = false;
             NuevoVisible        = false;
             AgregarVisible      = false;
             GuardarMenuEnabled  = false;
             EliminarMenuEnabled = false;
             EditarMenuEnabled   = false;
             CancelarMenuEnabled = false;
             AyudaMenuEnabled    = true;
             SalirMenuEnabled    = true;
             ExportarMenuEnabled = true;
             /*MAXLENGTH*/
             MaxLength       = 50;
             SeleccionIndice = -1;
             //Obtenemos las Etnias
             this.GetGruposPoliciales();
             setValidationRules();
             ConfiguraPermisos();
         });
     }
     catch (Exception ex)
     {
         StaticSourcesViewModel.ShowMessageError("Algo pasó...", "Ocurrió un error al cargar Grupos Policiales.", ex);
     }
 }