private void DataBindGvwSubProject(DataTable table) { this.AspNetPager1.RecordCount = EReport.GetDiffReport(this.prjId, 0, 0, this.txtCode.Text.Trim(), this.txtName.Text.Trim(), this.hfldIsWBSRelevance.Value).Rows.Count; this.rptSubProject.DataSource = table; this.rptSubProject.DataBind(); if (table.Rows.Count == 0) { base.RegisterScript("$('#tableSubProject tr:last-child').remove();"); } }
private DataTable GetSubProject(int pageIndex, int pageSize) { return(EReport.GetDiffReport(this.prjId, pageSize, pageIndex, this.txtCode.Text.Trim(), this.txtName.Text.Trim(), this.hfldIsWBSRelevance.Value)); }