| | |
| | | private List<PhartViewModel> _allPhartList = null; |
| | | private readonly Lazy<BLL.XhsPumpMainPhartMappingExtensions> _bll_ex = new(); |
| | | |
| | | private PumpMatchingViewModel _pumpMatchingViewModel; |
| | | private HydroPumpMatchingViewModel _pumpMatchingViewModel; |
| | | |
| | | public async void SetBindingData(PumpMatchingViewModel pumpMatchingViewModel) |
| | | public async void SetBindingData(HydroPumpMatchingViewModel pumpMatchingViewModel) |
| | | { |
| | | _pumpMatchingViewModel = pumpMatchingViewModel; |
| | | _allBindingList = new List<PumpSingleMatchingViewModel>(); |
| | |
| | | if (graph_qh != null) |
| | | { |
| | | var points_qh = PhartPerformCurveHelper.GetFeatPointList(graph_qh.GraphType, graph_qh.GeometryInfo, 100, null); |
| | | _pumpMatchingViewModel.MatchingCurveQH = new List<CurvePointMatchingViewModel>(); |
| | | _pumpMatchingViewModel.MatchingCurveQH = new List<HydroCurvePointViewModel>(); |
| | | foreach (var item in points_qh) |
| | | { |
| | | _pumpMatchingViewModel.MatchingCurveQH.Add(new CurvePointMatchingViewModel(item.X, item.Y)); |
| | | _pumpMatchingViewModel.MatchingCurveQH.Add(new HydroCurvePointViewModel(item.X, item.Y)); |
| | | } |
| | | } |
| | | if (graph_qe != null) |
| | | { |
| | | var points_qe = PhartPerformCurveHelper.GetFeatPointList(graph_qe.GraphType, graph_qe.GeometryInfo, 100, null); |
| | | _pumpMatchingViewModel.MatchingCurveQE = new List<CurvePointMatchingViewModel>(); |
| | | _pumpMatchingViewModel.MatchingCurveQE = new List<HydroCurvePointViewModel>(); |
| | | foreach (var item in points_qe) |
| | | { |
| | | _pumpMatchingViewModel.MatchingCurveQE.Add(new CurvePointMatchingViewModel(item.X, item.Y)); |
| | | _pumpMatchingViewModel.MatchingCurveQE.Add(new HydroCurvePointViewModel(item.X, item.Y)); |
| | | } |
| | | } |
| | | if (graph_qp != null) |
| | | { |
| | | var points_qp = PhartPerformCurveHelper.GetFeatPointList(graph_qp.GraphType, graph_qp.GeometryInfo, 100, null); |
| | | _pumpMatchingViewModel.MatchingCurveQP = new List<CurvePointMatchingViewModel>(); |
| | | _pumpMatchingViewModel.MatchingCurveQP = new List<HydroCurvePointViewModel>(); |
| | | foreach (var item in points_qp) |
| | | { |
| | | _pumpMatchingViewModel.MatchingCurveQP.Add(new CurvePointMatchingViewModel(item.X, item.Y)); |
| | | _pumpMatchingViewModel.MatchingCurveQP.Add(new HydroCurvePointViewModel(item.X, item.Y)); |
| | | } |
| | | } |
| | | } |