Exemplo n.º 1
0
 protected void btnMultiWareHouse_Click(object sender, EventArgs e)
 {
     DAL.JuicDao dao = new DAL.JuicDao(hfDbName.Value);
     try
     {
         string[] venders = dao.GetAllJWareHouses().AsEnumerable().Select(row => Convert.ToString(row["JWareHouse"])).ToArray();
         (this.Parent.FindControl("ModalPanelChild").FindControl("ListPicker") as ListPicker).SetColumn("倉庫別", "txtJWareHouse");
         (this.Parent.FindControl("ModalPanelChild").FindControl("ListPicker") as ListPicker).InitItems(venders);
         UpdatePanel1.ShowControl(this.Parent.FindControl("ModalPanelChild").ClientID, "倉庫別多筆選擇");
     }
     finally
     {
         dao = null;
     }
 }