| | |
| | | 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) |
| | | { |