示例#1
0
 public void DeleteMainDetailsOrder()
 {
     if (DyeingOrderHeader.DyeingProductionOrder != 0)
     {
         _webService.DeleteDyeingMainDetailsAsync(DyeingMapper.DbMapToDyeingorderMainDetail(SelectedMainDetails));
         DyeingOrderMainDetailList.Remove(SelectedMainDetails);
     }
 }
示例#2
0
 public void DeleteOrder()
 {
     if (DyeingOrderHeader.DyeingProductionOrder != 0)
     {
         _webService.DeleteDyeingOrderAsync(DyeingOrderHeader.DyeingProductionOrder);
         DyeingOrderHeader = new TblDyeingOrderHeaderViewModel();
         DyeingOrderMainDetailList.Clear();
     }
 }
示例#3
0
 private void item_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "TransactionType")
     {
         try
         {
             SelectedMainDetails.TransId =
                 DyeingOrderMainDetailList.Where(w => w.TransactionType == SelectedMainDetails.TransactionType)
                 .Max(w => w.TransId) + 1;
         }
         catch (Exception)
         {
             SelectedMainDetails.TransId = 0;
         }
     }
 }
示例#4
0
 public void ResetMode()
 {
     DyeingOrderHeader = new TblDyeingOrderHeaderViewModel();
     DyeingOrderMainDetailList.Clear();
 }