public void Delete(string billNo) { StockInBill billInfo = _rep_StockInBill.FindItem(billNo); _rep_StockInBill.Delete(billInfo); _context.Commit(); }
public void Affirm(string billNo) { StockInBill billInfo = _rep_StockInBill.FindItem(billNo); billInfo.Affirm(); foreach (StockInItem item in billInfo.StockInItems) { _service_Domain.StockOperation(item.ConvertToInventory()); } _context.Commit(); }
public void Save(StockInBill billInfo) { StockInBill tempBill = _rep_StockInBill.FindItem(billInfo.BillNo); if (tempBill != null) { _rep_StockInBill.Update(tempBill); } else { _rep_StockInBill.Insert(billInfo); } _context.Commit(); }
public void Save(StockInBill bill) { _event_StockInBill.Save(bill); }