예제 #1
0
        public bool GetStock(string barcode)
        {
            var stockView = new StockListModel(barcode, this.ConnectionString)
            {
                CalAct = this.ReCalculate
            };

            if (null == stockView.Stock)
            {
                return(false);
            }
            this.StockList.Add(stockView);
            ReCalculate();
            return(true);
        }
예제 #2
0
 public void CancelStock(StockListModel model)
 {
     this.StockList.Remove(model);
 }