Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
    /// <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();
    }