| | |
| | | dlg.SetBindingData(); |
| | | dlg.ShowDialog(); |
| | | } |
| | | |
| | | //曲线 |
| | | private async void barBtnMinorLossCurve_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | var currentVm = this.gridView1.GetCurrentViewModel(_allBindingList); |
| | | if (currentVm == null) |
| | | { |
| | | MessageBoxHelper.ShowWarning("请选择数据行!"); |
| | | return; |
| | | } |
| | | var guid = new PageGuid() |
| | | { |
| | | Function = "水头损失曲线", |
| | | TagName = currentVm.ID.ToString(), |
| | | Modular = "" |
| | | }; |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | | var model = await _bll.GetByID(currentVm.ID); |
| | | if (model == null) |
| | | { |
| | | MessageBoxHelper.ShowWarning($"{currentVm.Name}:AssetsValveMainDto is null!"); |
| | | return; |
| | | } |
| | | var page = new HStation.WinFrmUI.PhartRelation.CompressorMainPhartMinorLossPanel(); |
| | | page.InitialDataSource(currentVm.ID); |
| | | guid.Function = "水头损失曲线"; |
| | | page.PageTitle.Caption = guid.Function; |
| | | page.PageGuid = guid; |
| | | CreatePage(page, guid); |
| | | } |
| | | } |
| | | } |
| | | } |