Exemple #1
0
 public static FilterTreeViewModel <RouteSimulatorHeader, long> GetRouteSimulatorFilterTree(object parentViewModel)
 {
     return(FilterTreeViewModel <RouteSimulatorHeader, long> .Create(
                new FilterTreeModelPageSpecificSettings <Settings>(Settings.Default, "Simulador de rutas", x => x.RouteSimulatorStaticFilters, x => x.RouteSimulatorCustomFilters, Next.Enums.Enums.Modules.Simulador.ToString()),
                CreateUnitOfWork().RouteSimulatorHeaders, new Action <object, Action>(RegisterEntityChangedMessageHandler <RouteSimulatorHeader, long>)
                ).SetParentViewModel(parentViewModel));
 }
Exemple #2
0
 public static FilterTreeViewModel <DeliveryTask, long> GetDeliveryHistoryFilterTree(object parentViewModel)
 {
     return(FilterTreeViewModel <DeliveryTask, long> .Create(
                new FilterTreeModelPageSpecificSettings <Settings>(Settings.Default, "Historico de Entregas", x => x.DeliveryHistoryStaticFilters, x => x.DeliveryHistoryCustomFilters, Next.Enums.Enums.Modules.Historico.ToString()),
                CreateUnitOfWork().Tasks, new Action <object, Action>(RegisterEntityChangedMessageHandler <DeliveryTask, long>)
                ).SetParentViewModel(parentViewModel));
 }
Exemple #3
0
 public static FilterTreeViewModel <WorkOrder, long> GetWorkOrderFilterTree(object parentViewModel)
 {
     return(FilterTreeViewModel <WorkOrder, long> .Create(
                new FilterTreeModelPageSpecificSettings <Settings>(Settings.Default, "Ordenes de Trabajo", x => x.WorkOrderStaticFilters, x => x.WorkOrderCustomFilters, Next.Enums.Enums.Modules.Ordenes.ToString()),
                CreateUnitOfWork().WorkOrders, new Action <object, Action>(RegisterEntityChangedMessageHandler <WorkOrder, long>)
                ).SetParentViewModel(parentViewModel));
 }
Exemple #4
0
 public static FilterTreeViewModel <Vehicle, int> GetVehicleFilterTree(object parentViewModel)
 {
     return(FilterTreeViewModel <Vehicle, int> .Create(
                new FilterTreeModelPageSpecificSettings <Settings>(Settings.Default, "Estado", x => x.VehicleStaticFilters, x => x.VehicleCustomFilters, Next.Enums.Enums.Modules.Vehiculos.ToString()),
                CreateUnitOfWork().Vehicles, new Action <object, Action>(RegisterEntityChangedMessageHandler <Vehicle, int>)
                ).SetParentViewModel(parentViewModel));
 }
Exemple #5
0
 public static FilterTreeViewModel <User, int> GetUserFilterTree(object parentViewModel)
 {
     return(FilterTreeViewModel <User, int> .Create(
                new FilterTreeModelPageSpecificSettings <Settings>(Settings.Default, "Estado", x => x.UserStaticFilters, x => x.UserCustomFilters, Next.Enums.Enums.Modules.Seguridad.ToString(),
                                                                   null,
                                                                   new[] {
         BindableBase.GetPropertyName(() => new User().Role.Name)
     }),
                CreateUnitOfWork().Users, new Action <object, Action>(RegisterEntityChangedMessageHandler <User, long>)
                ).SetParentViewModel(parentViewModel));
 }
Exemple #6
0
 public static FilterTreeViewModel <string, int> NoFilterModule(object parentViewModel)
 {
     return(FilterTreeViewModel <string, int> .CreateNoShowFilter().SetParentViewModel(parentViewModel));
 }