duheng
2024-12-04 7079cbb505471a8d3251cac4e27c7a3841f8e656
WinFrmUI/HStation.WinFrmUI.Assets.Core/14-tank/BluntheadManageMainPage.cs
@@ -124,5 +124,37 @@
            dlg.SetBindingData();
            dlg.ShowDialog();
        }
        //曲线
        private async void barBtnTankChart_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.XhsValveMainPhartPanel();
                page.InitialDataSource(currentVm.ID);
                guid.Function = "阀门水头损失曲线";
                page.PageTitle.Caption = guid.Function;
                page.PageGuid = guid;
                CreatePage(page, guid);
            }
        }
    }
}