From 8a7bc73b5ac40d26ec72a5df94ca15c5a2976af0 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期一, 15 九月 2025 10:20:07 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/UserControl/SelectOrg.cs | 17 ++++++----------- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/SelectOrg.cs b/DevApp/Gs.DevApp/UserControl/SelectOrg.cs index 286ae02..455bc50 100644 --- a/DevApp/Gs.DevApp/UserControl/SelectOrg.cs +++ b/DevApp/Gs.DevApp/UserControl/SelectOrg.cs @@ -1,5 +1,4 @@ -锘縰sing DevExpress.Utils.DirectXPaint; -using Gs.DevApp.Entity; +锘縰sing Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Newtonsoft.Json; using System; @@ -15,11 +14,8 @@ public SelectOrg() { InitializeComponent(); - List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); - gvList.Add(gridView1); - Gs.DevApp.ToolBox.UtilityHelper.getGridViewConfig(this.GetType().FullName, gvList); getPageList(1); - Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1); + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", null, null, false); } /// <summary> /// 鏌ヨ浜嬩欢 @@ -47,8 +43,8 @@ /// <param name="pageSize">姣忛〉鍑犳潯</param> private void getPageList(int curPage) { - var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); - var pgq = new PageQueryModel(curPage, 999999, "FID", "asc", "", _sbSqlWhere.ToString()); + gcMain.DataSource = null;var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); + var pgq = new PageQueryModel(curPage, 999999, "FNumber", "asc", "", _sbSqlWhere.ToString()); var json = JsonConvert.SerializeObject(pgq); try { @@ -63,7 +59,7 @@ { gcMain.DataSource = dt; gcMain.ForceInitialize(); - gridView1.BestFitColumns(); + gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); } else UtilityHelper.SetDefaultTable(gcMain, gridView1); @@ -80,7 +76,6 @@ } - private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { var rowhandle = gridView1.FocusedRowHandle; @@ -89,7 +84,7 @@ if (e.Button.Index == 0) { var dr = gridView1.GetDataRow(rowhandle); - var mxGuid = dr["guid"].ToString(); + var mxGuid = dr["fid"].ToString(); if (string.IsNullOrEmpty(mxGuid)) { return; -- Gitblit v1.9.3