From e76d66b22d756bb54eb874f6f59e8ecfe0c91fe1 Mon Sep 17 00:00:00 2001
From: cnf <3200815559@qq.com>
Date: 星期五, 01 八月 2025 08:17:32 +0800
Subject: [PATCH] 入库申请单完成

---
 DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index 0bac2a1..cee2a79 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -2294,6 +2294,13 @@
             }
         }
 
+        /// <summary>
+        /// gridview 鍏ㄩ�夛紝鍙栨秷鍏ㄩ��
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        /// <param name="gcMain"></param>
+        /// <param name="gridView1"></param>
         public static void CustomMouseUp(object sender, MouseEventArgs e, DevExpress.XtraGrid.GridControl gcMain, DevExpress.XtraGrid.Views.Grid.GridView gridView1)
         {
             GridColumn checkBoxColumn = gridView1.Columns[0];
@@ -2314,10 +2321,27 @@
                     else
                     {
                         checkBoxColumn.Tag = "1";
+                        /********2025-07-23淇ˉ杩囨护bug 鏁呮敞閲� beg ************/
+                        //foreach (DataRow row in _Table.Rows)
+                        //{
+                        //    row["chkInt"] = true;
+                        //}
+                        /********2025-07-23淇ˉ杩囨护bug 鏁呮敞閲� end ************/
+
+                        /********2025-07-23淇ˉ杩囨护bug beg ************/
+                        System.Collections.IList ftRow = gridView1.DataController.GetAllFilteredAndSortedRows();
+                        System.Collections.ArrayList ftAry = new System.Collections.ArrayList();
+                        foreach (System.Data.DataRowView _ft in ftRow)
+                        {
+                            string guid = _ft["guid"].ToString();
+                            ftAry.Add(guid);
+                        }
                         foreach (DataRow row in _Table.Rows)
                         {
-                            row["chkInt"] = true;
+                            if (ftAry.Contains(row["guid"].ToString()))
+                                row["chkInt"] = true;
                         }
+                        /********2025-07-23淇ˉ杩囨护bug end ************/
                     }
                     gcMain.BindingContext = new BindingContext();
                     gcMain.DataSource = _Table;

--
Gitblit v1.9.3