| | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 水力记录改变事件 |
| | | /// </summary> |
| | | public event Action<SetSchemeParterRecord> HydroRecordChangedEvent; |
| | | |
| | | /// <summary> |
| | | /// 显示查询面板 |
| | | /// </summary> |
| | | [Browsable(true)] |
| | |
| | | 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.Pipe; |
| | | 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="直径(mm)",BeforeValue=$"{output.Diameter}",AfterValue=$"{output.MatchingDiameter}"}, |
| | | new() {Name="粗糙系数",BeforeValue=$"{output.Roughness}",AfterValue=$"{output.MatchingRoughness}"}, |
| | | new() {Name="局阻系数",BeforeValue=$"{output.MinorLoss}",AfterValue=$"{output.MatchingMinorLoss}"}, |
| | | }; |
| | | this.HydroRecordChangedEvent?.Invoke(record); |
| | | } |
| | | |
| | | }; |
| | | dlg.ShowDialog(); |
| | | } |