示例#1
0
 private void ItemListByCompany(StockOutViewModel stockOutViewModel)
 {
     itemDropDownList.DataSource     = stockOutManager.GetAllItemByCompany(stockOutViewModel);
     itemDropDownList.DataTextField  = "ItemName";
     itemDropDownList.DataValueField = "ItemSl";
     itemDropDownList.DataBind();
     itemDropDownList.Items.Insert(0, new ListItem("Select a Item"));
 }