//检索 protected void Button1_Sh(object sender, EventArgs e) { string condition = GetCondition(); BindGridview_OAInfo(condition); Panel_OAInfo.Visible = true; UpdatePanel_OAInfo.Update(); }
//重置 protected void Button3_Reset(object sender, EventArgs e) { TextBox1.Text = ""; TextBox2.Text = ""; TextBox_SPTime2.Text = ""; TextBox_SPTime3.Text = ""; foreach (Control ct in Panel_OASearch.Controls) { if (ct.GetType().ToString().Equals("System.Web.UI.WebControls.CheckBoxList")) { CheckBoxList cb = (CheckBoxList)ct; cb.DataSource = pd.SelectPMPMaterial("").Tables[0]; cb.DataTextField = "IMMT_MaterialType"; //绑定的字段名 cb.DataValueField = "IMMT_MaterialType"; //绑定的值 cb.DataBind(); } } Panel_OASearch.Visible = true; Panel_OAInfo.Visible = false; UpdatePanel_OAInfo.Update(); }