internal async Task SaveReferenceNumber(string p) { await OversShortEXRepository.Instance.SaveReferenceNumber(SelectedOversShorts.Select(x => x.OversShortsId), p).ConfigureAwait(false); MessageBus.Default.BeginNotify(MessageToken.OversShortsChanged, this, new NotificationEventArgs(MessageToken.OversShortsChanged)); }
internal async Task CreateOSEntries() { if (CoreEntities.ViewModels.BaseViewModel.Instance.CurrentAsycudaDocumentSetEx == null) { MessageBox.Show("Please Select a Asycuda Document Set before proceding"); return; } var selOS = SelectedOversShorts.ToList(); if (selOS.Any() == false) { MessageBox.Show("Please Select Overs/Shorts before proceding"); return; } await OversShortEXRepository.Instance.CreateOversOps(SelectedOversShorts.Select(x => x.OversShortsId), CoreEntities.ViewModels.BaseViewModel.Instance.CurrentAsycudaDocumentSetEx.AsycudaDocumentSetId).ConfigureAwait(false); await OversShortEXRepository.Instance.CreateShortsEx9(SelectedOversShorts.Select(x => x.OversShortsId), CoreEntities.ViewModels.BaseViewModel.Instance.CurrentAsycudaDocumentSetEx.AsycudaDocumentSetId, BreakOnMonthYear, ApplyEX9Bucket).ConfigureAwait(false); StatusModel.StopStatusUpdate(); MessageBus.Default.BeginNotify(CoreEntities.MessageToken.AsycudaDocumentsChanged, this, new NotificationEventArgs(QuerySpace.CoreEntities.MessageToken.AsycudaDocumentsChanged)); MessageBus.Default.BeginNotify(CoreEntities.MessageToken.AsycudaDocumentSetExsChanged, this, new NotificationEventArgs(QuerySpace.CoreEntities.MessageToken.AsycudaDocumentSetExsChanged)); MessageBox.Show("Complete"); }
internal async Task RemoveSelectedOverShorts() { MessageBoxResult res = MessageBox.Show("Are you sure you want to delete all Selected Items?", "Delete selected Items", MessageBoxButton.YesNo); List <OversShortEX> lst = null; if (res == MessageBoxResult.Yes) { lst = Instance.SelectedOversShorts.ToList(); } if (lst == null) { return; } await OversShortEXRepository.Instance.RemoveSelectedOverShorts(SelectedOversShorts.Select(x => x.OversShortsId)).ConfigureAwait(false); MessageBus.Default.BeginNotify(MessageToken.OversShortsChanged, this, new NotificationEventArgs(MessageToken.OversShortsChanged)); MessageBus.Default.BeginNotify(MessageToken.SelectedOversShortsChanged, this, new NotificationEventArgs(MessageToken.OversShortsChanged)); }
internal async Task MatchEntries() { await OversShortEXRepository.Instance.MatchEntries(SelectedOversShorts.Select(x => x.OversShortsId)).ConfigureAwait(false); }