public ReservationRequestsViewModel(IDataServices services, IInteractionRequestController controller, IDialogService dialogService, IEventManager eventManager, IKarveNavigator navigation, IConfigurationService configurationService, IRegionManager regionManager) : base(services, controller, dialogService, eventManager, regionManager) { AssistCommand = new DelegateCommand <object>(OnAssistCommand); ItemChangedCommand = new DelegateCommand <object>(OnChangedField); CreateNewClient = new DelegateCommand(NewClient); CreateNewGroup = new DelegateCommand(NewGroup); CreateNewRequestReason = new DelegateCommand(NewRequestReason); CreateNewReseller = new DelegateCommand(NewReseller); CreateNewFare = new DelegateCommand(NewFare); CreateNewVehicle = new DelegateCommand(NewVehicle); CreateNewOrigen = new DelegateCommand(NewOrigin); SubSystem = DataSubSystem.BookingSubsystem; ViewModelUri = new Uri("karve://booking/request/viewmodel?id=" + Guid.ToString()); _navigator = navigation; _helperViewFactory = _navigator.GetHelperViewFactory(); _userSettings = configurationService.GetUserSettings(); _deleteCommand = new DelegateCommand <object>(this.DeleteViewCommand); _saveCommand = new DelegateCommand <object>(SaveViewCommand); _dataReservationService = services.GetReservationRequestDataService(); _assistDataService = services.GetAssistDataServices(); AssistMapper = _assistDataService.Mapper; CompositeCommandOnly = true; VehicleGridColumns = _userSettings.FindSetting <string>(UserSettingConstants.VehicleSummaryGridColumnsKey); EventManager.RegisterObserverSubsystem("ReservationRequests", this); }
public ReservationRequestsViewModel(IDataServices services, IInteractionRequestController controller, IDialogService dialogService, IEventManager eventManager, IKarveNavigator navigation, IConfigurationService configurationService, IRegionManager regionManager, IUnityContainer unityContainer) : base(services, controller, dialogService, eventManager, regionManager, configurationService) { InitServices(services, configurationService); InitCommands(); InitCrudCommands(); SubSystem = DataSubSystem.BookingSubsystem; ViewModelUri = new Uri("karve://booking/request/viewmodel?id=" + Guid.ToString()); _navigator = navigation; _container = unityContainer; _helperViewFactory = _navigator.GetHelperViewFactory(); AssistMapper = _assistDataService.Mapper; CompositeCommandOnly = true; VehicleGridColumns = _userSettings.FindSetting <string>(UserSettingConstants.VehicleSummaryGridColumnsKey); EventManager.RegisterObserverSubsystem(BookingModule.RequestGroup, this); }