From 90c199edf9c98a66f0ba3f42577bff797073fce1 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期日, 13 四月 2025 17:11:12 +0800 Subject: [PATCH] 打印按钮自动计算,选择窗体取消分页 --- DevApp/Gs.DevApp/DevFrm/Warehouse/SelectShuoTuiSq.cs | 30 ++++++------------------------ 1 files changed, 6 insertions(+), 24 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/SelectShuoTuiSq.cs b/DevApp/Gs.DevApp/DevFrm/Warehouse/SelectShuoTuiSq.cs similarity index 82% rename from DevApp/Gs.DevApp/UserControl/SelectShuoTuiSq.cs rename to DevApp/Gs.DevApp/DevFrm/Warehouse/SelectShuoTuiSq.cs index 464524a..0ee020b 100644 --- a/DevApp/Gs.DevApp/UserControl/SelectShuoTuiSq.cs +++ b/DevApp/Gs.DevApp/DevFrm/Warehouse/SelectShuoTuiSq.cs @@ -8,9 +8,7 @@ { public partial class SelectShuoTuiSq : DevExpress.XtraEditors.XtraForm { - private readonly List<FilterEntity> _filterList = - new List<FilterEntity>(); - + private readonly string _webServiceName = "MesShouTuiManager/"; private string cusId = ""; private string inOrgId = ""; @@ -30,13 +28,8 @@ this.inOrgId = _inOrgId; this.ckId = _ckId; this.isSource = _isSource; - - pageBar1.PagerEvent += PageBar1_PagerEvent; - Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", (value) => - { - - }); - getPageList(1, UtilityHelper.GetPageSize()); + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", null, null, false); + getPageList(1); btnIn.Click += (s, e) => { var list = new List<dynamic>(); @@ -73,26 +66,18 @@ /// </summary> public event EventHandler<UpdateParentEventArgs> UpdateParent; - /// <summary> - /// 鍒嗛〉浜嬩欢 - /// </summary> - /// <param name="curPage"></param> - /// <param name="pageSize"></param> - private void PageBar1_PagerEvent(int curPage, int pageSize) - { - getPageList(curPage, pageSize); - } + /// <summary> /// </summary> /// <param name="curPage">绗嚑椤�</param> /// <param name="pageSize">姣忛〉鍑犳潯</param> - private void getPageList(int curPage, int pageSize) + private void getPageList(int curPage) { var _obj = new { currentPage = curPage, - everyPageSize = pageSize, + everyPageSize = 999999, sortName = "", keyWhere = "", inIsSource = this.isSource, @@ -112,9 +97,6 @@ gcMain.ForceInitialize(); gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); var dddd = dd.rtnData.pages; //鎬婚〉 - pageBar1.TotalPages = dddd; - pageBar1.RecordCount = dd.rtnData.total; //璁板綍鎬绘暟 - pageBar1.CurrentPage = curPage; //褰撳墠椤� } catch (Exception ex) { -- Gitblit v1.9.3