From 9ec7cf906a983509fccd9ab360e1ac0e46a904eb Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期六, 12 四月 2025 15:38:48 +0800 Subject: [PATCH] 生产退料 --- DevApp/Gs.DevApp/UserControl/ShowLogcs.cs | 33 +++++++-------------------------- 1 files changed, 7 insertions(+), 26 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/ShowLogcs.cs b/DevApp/Gs.DevApp/UserControl/ShowLogcs.cs index 714348b..29aeb8b 100644 --- a/DevApp/Gs.DevApp/UserControl/ShowLogcs.cs +++ b/DevApp/Gs.DevApp/UserControl/ShowLogcs.cs @@ -1,10 +1,7 @@ -锘縰sing DevExpress.XtraEditors; -using Gs.DevApp.Entity; +锘縰sing Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Newtonsoft.Json; using System; -using System.Collections.Generic; -using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; @@ -22,25 +19,13 @@ { this.guidKey = _guidKey; InitializeComponent(); - getPageList(1, UtilityHelper.GetPageSize()); - pageBar1.PagerEvent += PageBar1_PagerEvent; - gridView1.IndicatorWidth = 50; - gridView1.CustomDrawRowIndicator += (s, e) => + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", (value) => { - if (e.Info.IsRowIndicator && e.RowHandle >= 0) - e.Info.DisplayText = (e.RowHandle + 1).ToString(); - }; + + }, null, false); + getPageList(1, UtilityHelper.GetPageSize()); } - /// <summary> - /// 鍒嗛〉浜嬩欢 - /// </summary> - /// <param name="curPage"></param> - /// <param name="pageSize"></param> - private void PageBar1_PagerEvent(int curPage, int pageSize) - { - getPageList(curPage, pageSize); - } /// <summary> /// </summary> @@ -50,7 +35,7 @@ { var _sbSqlWhere = new StringBuilder(); _sbSqlWhere.Append(" and ABT_GUID='"+this.guidKey + "'"); - var pgq = new PageQueryModel(curPage, pageSize, "OPERATION_TIME", + var pgq = new PageQueryModel(curPage, 999999, "OPERATION_TIME", "desc", "", _sbSqlWhere.ToString()); var json = JsonConvert.SerializeObject(pgq); try @@ -64,11 +49,7 @@ gcMain.BindingContext = new BindingContext(); gcMain.DataSource = dt; gcMain.ForceInitialize(); - gridView1.BestFitColumns(); - int dddd = dd.rtnData.pages;//鎬婚〉 - pageBar1.TotalPages = dddd; - pageBar1.RecordCount = dd.rtnData.total;//璁板綍鎬绘暟 - pageBar1.CurrentPage = curPage;//褰撳墠椤� + gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); } else { -- Gitblit v1.9.3