protected void StoreHouseInit() { List <StoreHouse> list = new List <StoreHouse>(); list = Leyp.SQLServerDAL.Factory.getStoreHouseDAL().getAllStoreHouse(); StoreHouseDropDownList.DataTextField = "HouseName"; StoreHouseDropDownList.DataValueField = "HouseID"; StoreHouseDropDownList.DataSource = list; StoreHouseDropDownList.DataBind(); }
/// <summary> /// 库房列表 /// </summary> protected void DropDownListBand() { List <StoreHouse> al = new List <StoreHouse>(); al = Leyp.SQLServerDAL.Factory.getStoreHouseDAL().getAllStoreHouse(); StoreHouseDropDownList.DataSource = al; StoreHouseDropDownList.DataTextField = "HouseName"; StoreHouseDropDownList.DataValueField = "HouseID"; StoreHouseDropDownList.DataBind(); }