/// <summary>
    /// 绑定库位信息
    /// </summary>
    private void DataBindDepotSeat()
    {
        int wareHouseID = Convert.ToInt32(ddlWareHouse.SelectedItem.Value);

        ddlDepotSeat.DataSource     = StorageInBLL.GetDepotSeatInfoByWareHouaseID(wareHouseID);
        ddlDepotSeat.DataTextField  = "SeatName";
        ddlDepotSeat.DataValueField = "DepotSeatID";
        ddlDepotSeat.DataBind();
    }
Esempio n. 2
0
 /// <summary>
 /// 绑定库位信息
 /// </summary>
 private void DataBindDepotSeat()
 {
     if (!string.IsNullOrEmpty(ddlWareHouse.SelectedValue) && ddlWareHouse.SelectedValue != "-2")
     {
         int wareHouseID = Convert.ToInt32(ddlWareHouse.SelectedItem.Value);
         ddlDepotSeat.DataSource     = StorageInBLL.GetDepotSeatInfoByWareHouaseID(wareHouseID);
         ddlDepotSeat.DataTextField  = "SeatName";
         ddlDepotSeat.DataValueField = "DepotSeatID";
         ddlDepotSeat.DataBind();
     }
     else
     {
         ddlDepotSeat.Items.Clear();
         ddlDepotSeat.Items.Add(new ListItem(GetTran("000589", "无库位"), "-2"));
     }
 }
Esempio n. 3
0
    /// <summary>
    /// 绑定库位信息
    /// </summary>
    private void DataBindDepotSeatInfo()
    {
        ///获取库位信息
        DataTable dtDepotSeat = StorageInBLL.GetDepotSeatInfoByWareHouaseID(int.Parse(ViewState["WareHouseID"].ToString()));

        ViewState["sortDepotSeat"] = dtDepotSeat;
        DataView dv = new DataView((DataTable)ViewState["sortDepotSeat"]);

        if (ViewState["sortDepotSeatstring"] == null)
        {
            ViewState["sortDepotSeatstring"] = dtDepotSeat.Columns[0].ColumnName.Trim();
        }
        dv.Sort = ViewState["sortDepotSeatstring"].ToString();
        this.gvDepotSeat.DataSource = dv;
        this.gvDepotSeat.DataBind();
    }