From a952e19c231c432c365e649d3b354ec331c5f642 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期三, 04 十二月 2024 08:09:11 +0800 Subject: [PATCH] 1 --- DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs b/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs index 2e53977..ea61269 100644 --- a/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs +++ b/DevApp/Gs.DevApp/DevFrm/Sys/DocNoRule.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Data; using System.Windows.Forms; -using DevExpress.RichEdit.Export; using DevExpress.XtraEditors; using DevExpress.XtraEditors.Controls; using Gs.DevApp.Entity; @@ -29,7 +28,7 @@ { UtilityHelper.SetCheckIco(s, picCheckBox, this, "checkStatus", ""); }; - getPageList(1, UtilityHelper.GetPageSize()); + getPageList(1); pageBar1.PagerEvent += PageBar1_PagerEvent; getTree(); txt_docCode.EditValueChanged += Txt_docCode_EditValueChanged; @@ -43,7 +42,7 @@ txt_isSpilit.CheckedChanged += Txt_flagIncludeDocCode_CheckedChanged; - + Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); } /// <summary> @@ -70,7 +69,7 @@ /// <param name="pageSize"></param> private void PageBar1_PagerEvent(int curPage, int pageSize) { - getPageList(curPage, pageSize); + getPageList(1); } /// <summary> @@ -142,7 +141,7 @@ if (_rtn.rtnCode > 0) { UtilityHelper.JumpToTab(xtraTabControl1, 0); - getPageList(1, UtilityHelper.GetPageSize()); + getPageList(1); } MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); @@ -161,7 +160,7 @@ private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) { UtilityHelper.JumpToTab(xtraTabControl1, 0); - getPageList(1, UtilityHelper.GetPageSize()); + getPageList(1); } /// <summary> @@ -265,9 +264,9 @@ /// </summary> /// <param name="curPage">绗嚑椤�</param> /// <param name="pageSize">姣忛〉鍑犳潯</param> - private void getPageList(int curPage, int pageSize) + private void getPageList(int curPage) { - var pgq = new PageQueryModel(curPage, pageSize, "doc_Code"); + var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "doc_Code"); var json = JsonConvert.SerializeObject(pgq); try { -- Gitblit v1.9.3