| | |
| | | /// 水力改变事件 |
| | | /// </summary> |
| | | public event Action<List<HydroParterInfo>> HydroChangedEvent; |
| | | |
| | | /// <summary> |
| | | /// 水力记录改变事件 |
| | | /// </summary> |
| | | event Action<SetSchemeParterRecord> HydroRecordChangedEvent; |
| | | public event Action<SetSchemeParterRecord> HydroRecordChangedEvent; |
| | | |
| | | /// <summary> |
| | | /// 显示查询面板 |
| | |
| | | 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) |
| | | { |
| | |
| | | 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(); |