Beispiel #1
0
 public void ProcessInventoryCount()
 {
     IsDetailsBusy = true;
     InventoryCountHelper.AddOrUpdate(SelectedInventoryCount);
     SaveChanges();
     StoredCallbackProcessor.StartAlohaSync(ignoreAsync: true);
     StoredCallbackProcessor.UpdateStock();
     InventoryCountHelper.Process(SelectedInventoryCount);
     RefreshItemSource();
 }
Beispiel #2
0
 public override void ExecuteDelete()
 {
     if (!ConfirmDelete())
     {
         return;
     }
     InventoryCountHelper.Delete(SelectedInventoryCount);
     ForceDetailsRefresh = true;
     SaveChanges();
     InventoryCountCollection.Remove(SelectedInventoryCount);
     RaisePropertyChanged("InventoryCountCollection");
 }
Beispiel #3
0
 private void SaveInventoryCount()
 {
     if (!ValidateChanges())
     {
         return;
     }
     AsyncHelper.DoAsync(() =>
     {
         IsBusy = true;
         InventoryCountHelper.AddOrUpdate(SelectedInventoryCount);
         SaveChanges();
         IsBusy = false;
         RefreshItemSource();
     });
     ViewModelManager.CloseModal();
 }