protected void btQuery_Click(object sender, System.EventArgs e) { string strDeptID = this.ddlDept.SelectedValue; string strQueryType = this.ddlQueryType.SelectedValue; string strProductType = this.ddlProductType.SelectedValue; string strProductClass = this.ddlProductClass.SelectedValue; Hashtable htPara = new Hashtable(); htPara.Add("strDeptID", strDeptID); htPara.Add("strQueryType", strQueryType); htPara.Add("strProductType", strProductType); htPara.Add("strProductClass", strProductClass); Hashtable htapp = (Hashtable)Application["appconf"]; string strcons = (string)htapp["cons"]; StoBusi = new BusiComm.StorageBusi(strcons); try { DataTable dtout = StoBusi.GetCurSafeStorage(htPara); if (dtout == null) { this.SetErrorMsgPageBydir("查询出错,请重试!"); return; } else { this.TableConvert(dtout, "cnvcStorageDeptID", "NewDept"); Session["QUERY"] = dtout; } // this.DataGrid1.PageSize = 30; this.DataGrid1.DataSource = dtout; this.DataGrid1.DataBind(); } catch (Exception er) { this.clog.WriteLine(er); this.SetErrorMsgPageBydir("查询错误,请重试!"); return; } }