From 9e861a3ab67506b8498a79575b97ffd6390c3d61 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期四, 03 四月 2025 17:08:45 +0800
Subject: [PATCH] loading

---
 DevApp/Gs.DevApp/UserControl/UcDictionarySelect.cs |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcDictionarySelect.cs b/DevApp/Gs.DevApp/UserControl/UcDictionarySelect.cs
index e0aefaa..9b53c8c 100644
--- a/DevApp/Gs.DevApp/UserControl/UcDictionarySelect.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcDictionarySelect.cs
@@ -37,12 +37,11 @@
                 {
                     list.Add(new
                     {
-                      //  dicCode = "001",
+                        //  dicCode = "001",
                         dicTxt = key
                     });
                 };
-                UpdateParent?.Invoke(this,
-                    new UpdateParentEventArgs { DynamicList = list });
+                UpdateParent?.Invoke(this, new UpdateParentEventArgs { DynamicList = list });
                 Close();
             };
             tlMenu.IndicatorWidth = 50;
@@ -120,6 +119,15 @@
         {
             if (parentNode.Nodes.Count == 0)
             {
+                if (parentNode.CheckState == CheckState.Checked)
+                {
+                    DataRowView drv = tlMenu.GetDataRecordByNode(parentNode) as DataRowView;//鍏抽敭浠g爜锛屽氨鏄笉鐭ラ亾鏄繖鏍疯幏鍙栨暟鎹�岀籂缁撲簡寰堜箙(楝肩煡閬撳彲浠ヨ浆鎹负DataRowView鍟�)
+                    if (drv != null)
+                    {
+                        string KeyFieldName = (string)drv["defectName"];
+                        lstCheckedKeyID.Add(KeyFieldName);
+                    }
+                }
                 return;//閫掑綊缁堟
             }
             foreach (TreeListNode node in parentNode.Nodes)
@@ -143,7 +151,6 @@
         private void findOrigin(DevExpress.XtraTreeList.TreeList tree)
         {
             this.lstCheckedKeyID.Clear();
-
             if (tree.Nodes.Count > 0)
             {
                 foreach (TreeListNode root in tree.Nodes)
@@ -152,7 +159,6 @@
                 }
             }
         }
-
         #endregion
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3