From cdca5a70b3fac5f804a6eabb7a3976f8c00e35e8 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 08 四月 2025 16:40:30 +0800
Subject: [PATCH] fqc

---
 DevApp/Gs.DevApp/UserControl/SelectCk.cs |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/SelectCk.cs b/DevApp/Gs.DevApp/UserControl/SelectCk.cs
index 997418a..ccc48e3 100644
--- a/DevApp/Gs.DevApp/UserControl/SelectCk.cs
+++ b/DevApp/Gs.DevApp/UserControl/SelectCk.cs
@@ -22,9 +22,6 @@
         {
             _strGuid = strGuid;
             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);
         }
@@ -55,7 +52,7 @@
         private void getPageList(int curPage)
         {
             var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
-            _sbSqlWhere += (" and org.guid='" + _strGuid+"'");
+            _sbSqlWhere += (" and org.fid='" + _strGuid+"'");
             var pgq = new PageQueryModel(curPage, 999999, "org.FNumber asc ,a.depot_code", "asc", "", _sbSqlWhere.ToString());
             var json = JsonConvert.SerializeObject(pgq);
             try
@@ -71,7 +68,7 @@
                     {
                         gcMain.DataSource = dt;
                         gcMain.ForceInitialize();
-                        gridView1.BestFitColumns();
+                        gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1);
                     }
                     else
                         UtilityHelper.SetDefaultTable(gcMain, gridView1);
@@ -97,7 +94,7 @@
             if (e.Button.Index == 0)
             {
                 var dr = gridView1.GetDataRow(rowhandle);
-                var mxGuid = dr["guid"].ToString();
+                var mxGuid = dr["depotId"].ToString();
                 if (string.IsNullOrEmpty(mxGuid))
                 {
                     return;
@@ -112,8 +109,6 @@
                 UpdateParent?.Invoke(this, new UpdateParentEventArgs { DynamicList = list });
                 Close();
             }
-
-
         }
 
         /// <summary>

--
Gitblit v1.9.3