Shuxia Ning
2024-12-23 a97513ccbb97b2c471e90b032fabdd2e709b7f32
WinFrmUI/HStation.WinFrmUI.Assets.Core/14-tank/TankManageMainPage.cs
@@ -1,4 +1,6 @@
namespace HStation.WinFrmUI.Assets
using Yw.WinFrmUI.Page;
namespace HStation.WinFrmUI.Assets
{
    public partial class TankManageMainPage : DocumentPage
    {
@@ -93,7 +95,7 @@
            dlg.ShowDialog();
        }
        //删除阀门
        //删除
        private async void BtnDelete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var currentVm = this.gridView1.GetCurrentViewModel(_allBindingList);
@@ -102,7 +104,8 @@
                MessageBoxHelper.ShowWarning("请选择数据行!");
                return;
            }
            if (MessageBoxHelper.IsClickOk($"确认删除数据行?", "提示"))
            if (MessageBoxHelper.IsClickOk(
                $"确认删除数据行?", "提示"))
                return;
            var groupresult = await _bll.DeleteByID(currentVm.ID);
            if (groupresult)
@@ -120,9 +123,6 @@
        private void barBtnSetCoefficient_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var dlg = new SetTankCoefficientDlg();
            dlg.SetBindingData();
            dlg.ShowDialog();
        }
        //曲线
@@ -136,23 +136,15 @@
            }
            var guid = new PageGuid()
            {
                Function = "水池容积曲线",
                TagName = currentVm.ID.ToString(),
                Modular = ""
                Modular = AssetsFunctionHelper.Modular,
                MoudingType = eMoudingType.Tab,
                Function = AssetsFunctionHelper.CurveMgr,
                TagName = $"{HStation.Assets.DataType.CompressorMain}-{currentVm.ID}-curveql"
            };
            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.TankMainPhartMinorLossPanel();
                page.InitialDataSource(currentVm.ID);
                guid.Function = "水池容积曲线";
                page.PageTitle.Caption = guid.Function;
                page.PageGuid = guid;
                var page = new AssetsTankCurveVOLMgrPage();
                page.SetBindingData(currentVm.Vmo);
                CreatePage(page, guid);
            }
        }