void inventoryCheckingView_FillProductMasterToComboEvent(object sender, InventoryCheckingEventArgs e) { IList stockList = StockLogic.FindByProductMasterName(); IList stockViewList = new ArrayList(); if(stockList!=null) { foreach (IList list in stockList) { StockView stockView = new StockView(); stockView.ProductMaster = (ProductMaster) list[0]; stockView.StockQuantity = (long) list[1]; stockViewList.Add(stockView); } } e.ReturnStockViewList = stockViewList; }
void baseStockOutView_FillDeptGoodsToCombo(object sender, BaseStockOutEventArgs e) { IList stockList = DepartmentStockHistoryLogic.FindAllProductMasters(); IList stockViewList = new ArrayList(); if (stockList != null) { foreach (IList list in stockList) { StockView stockView = new StockView(); stockView.ProductMaster = (ProductMaster)list[0]; stockView.StockQuantity = (long)list[1]; stockViewList.Add(stockView); } } e.ReturnStockViewList = stockViewList; }