protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { if (base.Request["prjId"] == null) { this.JS.Text = "alert('参数错误!');"; } else { this.ProjectCode = base.Request["prjId"]; } com.jwsoft.pm.entpm.PageHelper.BindDropDownTree(this.DDTClass, 20); this.SqlWhere = ProjectOverAction.GetSqlWhere(this.ProjectCode, 0, "", 9999); this.DgdDocument_Bind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { if (base.Request["prjId"] == null) { this.JS.Text = "alert('参数错误!');"; } else { this.ProjectCode = base.Request["prjId"]; } com.jwsoft.pm.entpm.PageHelper.BindDropDownTree(this.DDTClass, 20); this.SqlWhere = ProjectOverAction.GetSqlWhere(this.ProjectCode, 0, "", 9999); this.DgdDocument_Bind(); this.BtnDel.Attributes["onclick"] = "if (!confirm('你确定要删除选定的记录吗?')){return false;}"; } }
protected void btnSearch_Click(object sender, EventArgs e) { this.SqlWhere = ProjectOverAction.GetSqlWhere(this.ProjectCode, Convert.ToInt32(this.DDLTerm.SelectedValue), this.TxtTerm.Text.Trim(), Convert.ToInt32(this.DDTClass.SelectedValue.Trim())); this.DgdDocument_Bind(); }