public FillScanReviewViewModel(INavigationService navigationService, IUuidManager uuidManager, IPageDialogService dialogService, IMoveService moveService, IManifestManager manifestManager, IGeolocationService geolocationService) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _uuidManager = uuidManager; _dialogService = dialogService; _moveService = moveService; _manifestManager = manifestManager; _geolocationService = geolocationService; ScanCommand = new DelegateCommand(ScanCommandRecieverAsync); SubmitCommand = new DelegateCommand(SubmitCommandRecieverAsync); }
public FillViewModel(INavigationService navigationService, IPageDialogService dialogService, IUuidManager uuidManager, IManifestManager manifestManager, IGeolocationService geolocationService) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _dialogService = dialogService; _uuidManager = uuidManager; _manifestManager = manifestManager; _geolocationService = geolocationService; BatchCommand = new DelegateCommand(BatchCommandRecieverAsync); SizeCommand = new DelegateCommand(SizeCommandRecieverAsync); DestinationCommand = new DelegateCommand(DestinationCommandRecieverAsync); NextCommand = new DelegateCommand(NextCommandRecieverAsync); CancelCommand = new DelegateCommand(CancelCommandRecieverAsync); }
public AddPalletsViewModel(IPalletizeService palletizeService, IMoveService moveService, INavigationService navigationService, IPageDialogService dialogService, IManifestManager manifestManager, IUuidManager uuidManager, IGeolocationService geolocationService) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _dialogService = dialogService; _palletizeService = palletizeService; _moveService = moveService; _manifestManager = manifestManager; _uuidManager = uuidManager; _geolocationService = geolocationService; SubmitCommand = new DelegateCommand(SubmitCommandRecieverAsync); FillScanCommand = new DelegateCommand(FillScanCommandRecieverAsync); FillKegsCommand = new DelegateCommand(FillKegsCommandRecieverAsync); ItemTappedCommand = new DelegateCommand <PalletModel>(async(model) => await ItemTappedCommandRecieverAsync(model)); DeleteItemCommand = new DelegateCommand <PalletModel>((model) => DeleteItemCommandReciever(model)); }
public MoveViewModel(IMoveService moveService, INavigationService navigationService, IPageDialogService dialogService, IManifestManager manifestManager, IUuidManager uuidManager, IGeolocationService geolocationService) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _dialogService = dialogService; _moveService = moveService; _manifestManager = manifestManager; _uuidManager = uuidManager; _geolocationService = geolocationService; SelectLocationCommand = new DelegateCommand(SelectLocationCommandRecieverAsync); MoreInfoCommand = new DelegateCommand(MoreInfoCommandRecieverAsync); ScanKegsCommad = new DelegateCommand(ScanKegsCommadRecieverAsync); SaveDraftCommand = new DelegateCommand(SaveDraftCommandRecieverAsync); CancelCommand = new DelegateCommand(CancelCommandRecieverAsync); SubmitCommand = new DelegateCommand(SubmitCommandRecieverAsync); }
public ScanKegsViewModel(IMoveService moveService, INavigationService navigationService, IPageDialogService dialogService, IManifestManager manifestManager, IGetIconByPlatform getIconByPlatform) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _dialogService = dialogService; _moveService = moveService; _manifestManager = manifestManager; _getIconByPlatform = getIconByPlatform; DoneCommand = new DelegateCommand(DoneCommandRecieverAsync); BarcodeScanCommand = new DelegateCommand(BarcodeScanCommandReciever); BarcodeManualCommand = new DelegateCommand(BarcodeManualCommandRecieverAsync); AddTagsCommand = new DelegateCommand(AddTagsCommandRecieverAsync); LabelItemTappedCommand = new DelegateCommand <BarcodeModel>((model) => LabelItemTappedCommandRecieverAsync(model)); IconItemTappedCommand = new DelegateCommand <BarcodeModel>((model) => IconItemTappedCommandRecieverAsync(model)); DeleteItemCommand = new DelegateCommand <BarcodeModel>((model) => DeleteItemCommandReciever(model)); LoadBrand(); HandleUnsubscribeMessages(); HandleReceivedMessages(); }
public MaintainScanViewModel(IMoveService moveService, IMaintainService maintainService, INavigationService navigationService, IGetIconByPlatform getIconByPlatform, IUuidManager uuidManager, IManifestManager manifestManager, IGeolocationService geolocationService) : base(navigationService) { //_navigationService = navigationService ?? throw new ArgumentNullException("navigationService"); _moveService = moveService; _maintainService = maintainService; _getIconByPlatform = getIconByPlatform; _uuidManager = uuidManager; _manifestManager = manifestManager; _geolocationService = geolocationService; SubmitCommand = new DelegateCommand(SubmitCommandRecieverAsync); BackCommand = new DelegateCommand(BackCommandRecieverAsync); BarcodeScanCommand = new DelegateCommand(BarcodeScanCommandRecieverAsync); BarcodeManualCommand = new DelegateCommand(BarcodeManualCommandRecieverAsync); LabelItemTappedCommand = new DelegateCommand <BarcodeModel>((model) => LabelItemTappedCommandRecieverAsync(model)); IconItemTappedCommand = new DelegateCommand <BarcodeModel>((model) => IconItemTappedCommandRecieverAsync(model)); DeleteItemCommand = new DelegateCommand <BarcodeModel>((model) => DeleteItemCommandReciever(model)); LoadMaintenanceType(); HandleReceivedMessages(); }
public VMAddOrUpdateManifest(ManifestModel model) { this._isAdd = model == null; if (_isAdd) { _model = new ManifestModel() { Date = DateTime.Now.Date }; } else { _model = new ManifestModel() { ID = model.ID, Date = model.Date, Cost = model.Cost, Remark = model.Remark }; } this.Save = new DelegateCommand(ExecuteSave); this._manifestManager = UnityContainerFactory.GetUnityContainer().Resolve <IManifestManager>(); }
public VMManifestManagement(IEventAggregator eventAggregator) { _container = UnityContainerFactory.GetUnityContainer(); _eventAggregator = eventAggregator; this._manifestManager = _container.Resolve <IManifestManager>(); DateTime now = DateTime.Now.Date; int subDays = (int)now.DayOfWeek; if (subDays == 0) { this._start = now.AddDays(-6); } else { this._start = now.AddDays(1 - subDays); } this._end = DateTime.Now.Date; this._manifests = new ObservableCollection <ManifestModel>(); this.Add = new DelegateCommand(AddExecute, CanExecuteAdd); this.Update = new DelegateCommand(UpdateExecute, CanExecuteUpdate); this.Delete = new DelegateCommand(DeleteExecute, CanExecuteDelete); this.Refresh = new DelegateCommand <string>(RefreshExecute, CanExecuteRefresh); this.RefreshManifest(false); }
/// <summary> /// Loads the default manifest. /// </summary> /// <returns></returns> private async Task<IManifestManager> LoadDefaultManifest() { _current = await OnLoading(); return _current; }
/// <summary> /// Loads the default manifest. /// </summary> /// <returns></returns> private async Task <IManifestManager> LoadDefaultManifest() { _current = await OnLoading(); return(_current); }