Shuxia Ning
2024-11-11 f866efa3f12f68bc1f21ed5c9b76ead436009b04
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/01-pump/SetSchemePumpListCtrl.cs
@@ -34,10 +34,11 @@
        /// 水力改变事件
        /// </summary>
        public event Action<List<HydroParterInfo>> HydroChangedEvent;
        /// <summary>
        /// 水力记录改变事件
        /// </summary>
        event Action<SetSchemeParterRecord> HydroRecordChangedEvent;
        public event  Action<SetSchemeParterRecord> HydroRecordChangedEvent;
        /// <summary>
        /// 显示查询面板
@@ -273,9 +274,7 @@
                dlg.SetBindingData(input);
                dlg.ReloadDataEvent += (output) =>
                {
                    var record = new SetSchemeParterRecord();
                 /*   record.AfterDbId = row.Vmo.DbId;
                    record.BeforeCurveId*/
                    var bol = AssetsMatchingParasHelper.Apply(_hydroInfo, output);
                    if (bol)
                    {
@@ -283,8 +282,21 @@
                        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.Pump;
                        record.MatchingModel = output;
                        this.HydroRecordChangedEvent?.Invoke();
                        record.Items = new List<SetSchemeParterRecordItem>() {
                        new() {Name="型号",BeforeValue=$"{output.ModelType}",AfterValue=$"{output.MatchingModelType}"},
                        new() {Name="额定功率",BeforeValue=$"{output.RatedP}",AfterValue=$"{output.MatchingRatedP}"},
                        new() {Name="额定流量",BeforeValue=$"{output.RatedQ}",AfterValue=$"{output.MatchingRatedQ}"},
                        new() {Name="额定扬程",BeforeValue=$"{output.RatedH}",AfterValue=$"{output.MatchingRatedH}"},
                        new() {Name="额定转速",BeforeValue=$"{output.RatedN}",AfterValue=$"{output.MatchingRatedN}"},
                        new() {Name="额定频率",BeforeValue=$"{output.RatedHz}",AfterValue=$"{output.MatchingRatedHz}"}
                        };
                        this.HydroRecordChangedEvent?.Invoke(record);
                    }
                };
                dlg.ShowDialog();