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