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/17-pump/SetHydroPumpListDlg.cs | 30 ++++++++++++++++-------------- 1 files changed, 16 insertions(+), 14 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/17-pump/SetHydroPumpListDlg.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/17-pump/SetHydroPumpListDlg.cs index 7268b7c..8cbc8ab 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/17-pump/SetHydroPumpListDlg.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-visual/17-pump/SetHydroPumpListDlg.cs @@ -12,7 +12,6 @@ this.hydroPumpListCtrl1.HydroClickViewEvent += HydroPumpListCtrl1_HydroClickViewEvent; this.hydroPumpListCtrl1.HydroChangedInfoEvent += HydroPumpListCtrl1_HydroChangedInfoEvent; this.hydroPumpListCtrl1.HydroChangedViewEvent += HydroPumpListCtrl1_HydroChangedViewEvent; - this.hydroPumpListCtrl1.ParterChangedEvent += HydroPumpListCtrl1_ParterChangedEvent; } @@ -32,26 +31,33 @@ /// 姘村姏鏀瑰彉瑙嗗浘浜嬩欢 /// </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.hydroPumpListCtrl1.SetBindingData(hydroInfo); + this.hydroPumpListCtrl1.SetBindingData(hydroInfo, changeHelper, propStatusHelper); this.hydroPumpListCtrl1.SetBulkView(); } /// <summary> /// 缁戝畾鏁版嵁 /// </summary> - public void SetBindingData(List<HydroVisualViewModel> allVisualViewModelList) + public void SetBindingData + ( + List<HydroVisualViewModel> allVisualViewModelList, + HydroChangeHelper changeHelper = null, + HydroPropStatusHelper propStatusHelper = null + ) { - this.hydroPumpListCtrl1.SetBindingData(allVisualViewModelList); + this.hydroPumpListCtrl1.SetBindingData(allVisualViewModelList, changeHelper, propStatusHelper); this.hydroPumpListCtrl1.SetBulkView(); } @@ -79,11 +85,7 @@ this.HydroChangedViewEvent?.Invoke(obj); } - //姘村姏鏀瑰彉浜嬩欢 - private void HydroPumpListCtrl1_ParterChangedEvent(HydroParterInfo arg1, eChangeType arg2) - { - this.ParterChangedEvent?.Invoke(arg1, arg2); - } + } } \ No newline at end of file -- Gitblit v1.9.3