protected override List <object> GetDataSource() { ProductInventoryBLL bll = new ProductInventoryBLL(AppSettings.Current.ConnStr); List <ProductInventory> items = null; if (SearchCondition == null) { items = bll.GetItems(null).QueryObjects; } else { items = bll.GetItems(SearchCondition).QueryObjects; } _ProductInventorys = bll.GetItems(SearchCondition).QueryObjects; List <object> records = FilterData(); return(records); }
protected override CommandResult AddItem(object item) { ProductInventoryBLL bll = new ProductInventoryBLL(AppSettings.Current.ConnStr); return(bll.CreateInventory(item as ProductInventory)); }