From 16cbb25ead43863f8810d829254ae8da97dbafe2 Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Sun, 26 Apr 2026 22:51:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E8=80=83=E5=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/Door/InOutRecord.aspx.cs | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/SGGL/FineUIPro.Web/Door/InOutRecord.aspx.cs b/SGGL/FineUIPro.Web/Door/InOutRecord.aspx.cs index abc71fa1..fe572ab1 100644 --- a/SGGL/FineUIPro.Web/Door/InOutRecord.aspx.cs +++ b/SGGL/FineUIPro.Web/Door/InOutRecord.aspx.cs @@ -162,8 +162,24 @@ namespace FineUIPro.Web.Door List resId = new List(); if (tbres != null) { - foreach(DataRow row in tbres.Rows) + int pageIndex = Grid1.PageIndex; + int pageSize = Grid1.PageSize; + + + + + + int rowbegin = pageIndex * pageSize; + int rowend = (pageIndex + 1) * pageSize; + if (rowend > tbres.Rows.Count) { + rowend = tbres.Rows.Count; + } + + for (int i = rowbegin; i < rowend; i++) + { + + DataRow row = tbres.Rows[i]; resId.Add(row["NewID"].ToString()); } } @@ -173,7 +189,7 @@ namespace FineUIPro.Web.Door DataTable tb = SQLHelper.GetDataTableRunText(sqlData, null); Grid1.RecordCount = tbres.Rows.Count; - //var table = this.GetPagedDataTable(Grid1, tb); + var table = this.GetPagedDataTable(Grid1, tb); this.OutputSummaryData(tbres); ///取合计值 Grid1.DataSource = tb;