duheng
2024-12-05 d14b23dfc213c131efcf76cee206cff79e261294
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveChartShowDlg.cs
@@ -10,6 +10,28 @@
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
        }
        public async void SetBingingData(long MainID)
        {
            var model = await new BLL.AssetsValveMain().GetByID(MainID);
            if (model == null)
                return;
            var curveList = await new BLL.AssetsValveCoefficient().GetByMainID(MainID);
            if (model.ValveType == HStation.Assets.eValveType.GPV)
            {
                if (curveList != null && curveList.Count > 0)
                {
                    InitChart(curveList.First().MinorLossCurve);
                }
            }
            else if (model.ValveType == HStation.Assets.eValveType.TCV)
            {
                if (curveList != null && curveList.Count > 0)
                {
                    InitChart(curveList.First().OpenLossCurve);
                }
            }
        }
        //初始化图表数据
        public void InitChart(Vmo.XhsValveMainPhartMappingExtensions dto)
        {