From db26311246d1c1cecadf4a22dc44ffa570ee40f2 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期二, 07 一月 2025 11:35:55 +0800 Subject: [PATCH] 批量修改数据同步修改 --- WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/18-valve/SetHydroValveListDlg.cs | 29 +++++++++++++++-------------- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/18-valve/SetHydroValveListDlg.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/18-valve/SetHydroValveListDlg.cs index 44ffe09..a18c588 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/18-valve/SetHydroValveListDlg.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/18-valve/SetHydroValveListDlg.cs @@ -12,7 +12,6 @@ this.hydroValveListCtrl1.HydroClickViewEvent += HydroValveListCtrl1_HydroClickViewEvent; this.hydroValveListCtrl1.HydroChangedInfoEvent += HydroValveListCtrl1_HydroChangedInfoEvent; this.hydroValveListCtrl1.HydroChangedViewEvent += HydroValveListCtrl1_HydroChangedViewEvent; - this.hydroValveListCtrl1.ParterChangedEvent += HydroValveListCtrl1_ParterChangedEvent; } @@ -32,26 +31,32 @@ /// 姘村姏鏀瑰彉瑙嗗浘浜嬩欢 /// </summary> public event Action<List<HydroVisualViewModel>> HydroChangedViewEvent; - /// <summary> - /// 鏋勪欢鏀瑰彉浜嬩欢 - /// </summary> - public event Action<HydroParterInfo, eChangeType> ParterChangedEvent; /// <summary> /// 缁戝畾鏁版嵁 /// </summary> - public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo) + public void SetBindingData + ( + Yw.Model.HydroModelInfo hydroInfo, + HydroChangeHelper changeHelper = null, + HydroPropStatusHelper propStatusHelper = null + ) { - this.hydroValveListCtrl1.SetBindingData(hydroInfo); + this.hydroValveListCtrl1.SetBindingData(hydroInfo, changeHelper, propStatusHelper); this.hydroValveListCtrl1.SetBulkView(); } /// <summary> /// 缁戝畾鏁版嵁 /// </summary> - public void SetBindingData(List<HydroVisualViewModel> allVisualViewModelList) + public void SetBindingData + ( + List<HydroVisualViewModel> allVisualViewModelList, + HydroChangeHelper changeHelper = null, + HydroPropStatusHelper propStatusHelper = null + ) { - this.hydroValveListCtrl1.SetBindingData(allVisualViewModelList); + this.hydroValveListCtrl1.SetBindingData(allVisualViewModelList, changeHelper, propStatusHelper); this.hydroValveListCtrl1.SetBulkView(); } @@ -79,11 +84,7 @@ this.HydroChangedViewEvent?.Invoke(obj); } - //鏋勪欢鏀瑰彉浜嬩欢 - private void HydroValveListCtrl1_ParterChangedEvent(HydroParterInfo arg1, eChangeType arg2) - { - this.ParterChangedEvent?.Invoke(arg1, arg2); - } + } -- Gitblit v1.9.3