| | |
| | | using DevExpress.Drawing; |
| | | using DevExpress.Utils.DragDrop; |
| | | using DevExpress.Utils.Svg; |
| | | using DevExpress.Utils.DragDrop; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraTreeList.Nodes; |
| | | using HStation.Vmo; |
| | | using Yw; |
| | | using Yw.WinFrmUI.Page; |
| | |
| | | MessageBoxHelper.ShowWarning($"{currentVm.Name}:AssetsValveMainDto is null!"); |
| | | return; |
| | | } |
| | | if (currentVm.ValveType == HStation.Assets.eValveType.TCV) |
| | | { |
| | | var page = new HStation.WinFrmUI.AssetsValveCurveMgrPage("阀门开度系数曲线", Yw.Ahart.eCurveType.OL); |
| | | page.SetBindingData(model); |
| | | CreatePage(page, guid); |
| | | } |
| | | else |
| | | { |
| | | var page = new HStation.WinFrmUI.AssetsValveCurveMgrPage("水头损失系数曲线", Yw.Ahart.eCurveType.QL); |
| | | page.SetBindingData(model); |
| | | CreatePage(page, guid); |
| | | } |
| | | var page = new HStation.WinFrmUI.AssetsValveCurveMgrPage("水头损失系数曲线", Yw.Ahart.eCurveType.QL); |
| | | page.SetBindingData(model); |
| | | CreatePage(page, guid); |
| | | } |
| | | } |
| | | |
| | | private void BtnImportEx_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | if (_series == null) |
| | | { |
| | | return; |
| | | } |
| | | var dlg = new ImportValveExcel(); |
| | | dlg.SetBindingData(_series.ID); |
| | | dlg.ReloadDataEvent += () => |
| | | { |
| | | SetBindingData(_series); |
| | | }; |
| | | dlg.ShowDialog(); |
| | | } |
| | | } |
| | | } |