using BLL; using System; using System.Data; using System.Data.SqlClient; namespace FineUIPro.Web.ZHGL.Information { public partial class ReportAuditSee : PageBase { #region 加载页面 protected void Page_Load(object sender, EventArgs e) { // 表头过滤 if (!IsPostBack) { // 绑定表格 BindGrid(); } } /// /// 绑定数据 /// private void BindGrid() { string strSql = "select * from View_ProjectData_FlowOperate where DataId=@DataId order by SortIndex desc"; SqlParameter[] parameter = new SqlParameter[] { new SqlParameter("@DataId",Request.Params["Id"]), }; DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); // 2.获取当前分页数据 //var table = this.GetPagedDataTable(Grid1, tb1); Grid1.RecordCount = tb.Rows.Count; var table = this.GetPagedDataTable(Grid1, tb); Grid1.DataSource = table; Grid1.DataBind(); } #endregion /// /// 排序 /// /// /// protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) { BindGrid(); } /// /// 关闭窗口 /// /// /// protected void Window1_Close(object sender, EventArgs e) { BindGrid(); } } }