From a6c50c87d1ba3f5c8785dcc9e8ea640b5a43209f Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期四, 26 九月 2024 15:07:09 +0800
Subject: [PATCH] 修改报错

---
 WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SetSysPropForCatalogDlg.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SetSysPropForCatalogDlg.cs b/WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SetSysPropForCatalogDlg.cs
index f357efa..f7907e2 100644
--- a/WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SetSysPropForCatalogDlg.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SetSysPropForCatalogDlg.cs
@@ -12,7 +12,7 @@
         {
             InitializeComponent();
             repositoryItemCheckedComboBoxEdit1.DisplayMember = "Name";
-            repositoryItemCheckedComboBoxEdit1.ValueMember = "ID";
+            repositoryItemCheckedComboBoxEdit1.ValueMember = "Name";
             this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
         }
 
@@ -51,7 +51,7 @@
                         model.Inherit = child.Inherit;
                         model.ChoiceList = child.ChoiceList;
                         model.ChoiceIds = child.ChoiceList.Where(x => x.Have).Select(x => x.ID).ToList();
-                        var stringList = child.ChoiceList.Where(x => x.Have == true).ToList().Select(x => x.ID.ToString()).ToList();
+                        var stringList = child.ChoiceList.Where(x => x.Have == true).ToList().Select(x => x.Name.ToString()).ToList();
                         string result = string.Join(", ", stringList);
                         model.DisplayChoice = result;
                         _allBindingList.Add(model);
@@ -171,10 +171,10 @@
 
         private void treeList1_BeforeCheckNode(object sender, DevExpress.XtraTreeList.CheckNodeEventArgs e)
         {
-            string isGroup = e.Node.GetValue("Inherit").ToString();
-            if (isGroup == "True")
+            string Inherit = e.Node.GetValue("Inherit").ToString();
+            if (Inherit == "True")
             {
-                e.State = CheckState.Unchecked;
+                e.State = CheckState.Checked;
             }
             else
             {

--
Gitblit v1.9.3