From f866efa3f12f68bc1f21ed5c9b76ead436009b04 Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期一, 11 十一月 2024 13:25:49 +0800 Subject: [PATCH] 创建方案 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/02-valve/SetSchemeValveListCtrl.cs | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/02-valve/SetSchemeValveListCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/02-valve/SetSchemeValveListCtrl.cs index 2eba392..4e17171 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/02-valve/SetSchemeValveListCtrl.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/02-valve/SetSchemeValveListCtrl.cs @@ -33,7 +33,12 @@ /// <summary> /// 姘村姏鏀瑰彉浜嬩欢 /// </summary> - public event Action<List<HydroParterInfo>> HydroChangedEvent; + public event Action<List<HydroParterInfo>> HydroChangedEvent; + + /// <summary> + /// 姘村姏璁板綍鏀瑰彉浜嬩欢 + /// </summary> + public event Action<SetSchemeParterRecord> HydroRecordChangedEvent; /// <summary> /// 鏄剧ず鏌ヨ闈㈡澘 @@ -272,6 +277,21 @@ row.UpdateProperty(); this.gridView1.RefreshRow(e.RowHandle); this.HydroChangedEvent?.Invoke(new List<Yw.Model.HydroParterInfo>() { row.Vmo }); + + + var record = new SetSchemeParterRecord(); + record.Name = row.Vmo.Name; + record.Code = row.Vmo.Code; + record.Catalog = Yw.Hydro.ParterCatalog.Valve; + record.MatchingModel = output; + record.Items = new List<SetSchemeParterRecordItem>() { + new() {Name="鍨嬪彿",BeforeValue=$"{output.ModelType}",AfterValue=$"{output.MatchingModelType}"}, + new() {Name="鏉愭枡",BeforeValue=$"{output.Material}",AfterValue=$"{output.MatchingMaterial}"}, + new() {Name="鐩村緞锛坢m锛�",BeforeValue=$"{output.Diameter}",AfterValue=$"{output.MatchingDiameter}"}, + new() {Name="灞�闃荤郴鏁�",BeforeValue=$"{output.MinorLoss}",AfterValue=$"{output.MatchingMinorLoss}"}, + new() {Name="闃�闂ㄧ被鍨�",BeforeValue=$"{output.ValveType}",AfterValue=$"{output.MatchingValveType}"}, + }; + this.HydroRecordChangedEvent?.Invoke(record); } }; dlg.ShowDialog(); -- Gitblit v1.9.3