From dfe7e1653f8309e23e4c314cd58ac4ff7ce49dbc Mon Sep 17 00:00:00 2001
From: duheng <2286773002@qq.com>
Date: 星期五, 28 三月 2025 14:50:47 +0800
Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0

---
 WinFrmUI/HStation.WinFrmUI.Dict.Core/DictManageMainPanel.cs |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Dict.Core/DictManageMainPanel.cs b/WinFrmUI/HStation.WinFrmUI.Dict.Core/DictManageMainPanel.cs
index d2a3416..3622059 100644
--- a/WinFrmUI/HStation.WinFrmUI.Dict.Core/DictManageMainPanel.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Dict.Core/DictManageMainPanel.cs
@@ -13,15 +13,17 @@
             this.gridView1.RegistCustomDrawRowIndicator();
             this.PageTitle.HeaderSvgImage = this.svgImageCollection1[0];
             this.PageTitle.SvgImageSize = new Size(24, 24);
-            this.dictGroupTreeListCtrl1.RloadEvent += ValveTypeTreeListCtrl1_RloadEvent;
+            this.dictGroupTreeListCtrl1.RloadEvent += DictTreeListCtrl1_RloadEvent;
         }
 
         private List<DictTypeViewModel> _allBindingList = null;
 
         private Yw.BLL.SysDictType _bll = null;
 
+        private long _groupId;
+
         //鍒濆鍖栨暟鎹�
-        public override async void InitialDataSource()
+        public override void InitialDataSource()
         {
             _bll = new Yw.BLL.SysDictType();
             _allBindingList = new List<DictTypeViewModel>();
@@ -30,8 +32,9 @@
             this.dictGroupTreeListCtrl1.SetBindingData();
         }
 
-        private async void ValveTypeTreeListCtrl1_RloadEvent(long groupId)
+        private async void DictTreeListCtrl1_RloadEvent(long groupId)
         {
+            _groupId = groupId;
             var alllist = await _bll.GetByGroupID(groupId);
             _allBindingList.Clear();
             if (alllist != null)
@@ -70,7 +73,7 @@
             dlg.ShowDialog();
         }
 
-        //缂栬緫闃�闂�
+        //缂栬緫
         private async void BtnEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
         {
             var vm = this.gridView1.GetCurrentViewModel(_allBindingList);
@@ -98,7 +101,7 @@
             dlg.ShowDialog();
         }
 
-        //鍒犻櫎闃�闂�
+        //鍒犻櫎
         private async void BtnDelete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
         {
             var currentVm = this.gridView1.GetCurrentViewModel(_allBindingList);
@@ -138,5 +141,10 @@
                 dlg.ShowDialog();
             }
         }
+
+        private void btnRefresh_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
+        {
+            DictTreeListCtrl1_RloadEvent(_groupId);
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3