Example #1
0
        public void Delete(string billNo)
        {
            StockInBill billInfo = _rep_StockInBill.FindItem(billNo);

            _rep_StockInBill.Delete(billInfo);
            _context.Commit();
        }
Example #2
0
        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();
        }
Example #3
0
        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);
 }