public void DeleteMainDetailsOrder() { if (DyeingOrderHeader.DyeingProductionOrder != 0) { _webService.DeleteDyeingMainDetailsAsync(DyeingMapper.DbMapToDyeingorderMainDetail(SelectedMainDetails)); DyeingOrderMainDetailList.Remove(SelectedMainDetails); } }
public void DeleteOrder() { if (DyeingOrderHeader.DyeingProductionOrder != 0) { _webService.DeleteDyeingOrderAsync(DyeingOrderHeader.DyeingProductionOrder); DyeingOrderHeader = new TblDyeingOrderHeaderViewModel(); DyeingOrderMainDetailList.Clear(); } }
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; } } }
public void ResetMode() { DyeingOrderHeader = new TblDyeingOrderHeaderViewModel(); DyeingOrderMainDetailList.Clear(); }