| | |
| | | private List<PhartViewModel> _allPhartList = null; |
| | | private readonly Lazy<BLL.XhsValveMainPhartMappingExtensions> _bll_ex = new(); |
| | | |
| | | private ValveMatchingViewModel _pumpMatchingViewModel; |
| | | private HydroValveMatchingViewModel _pumpMatchingViewModel; |
| | | |
| | | private List<CurvePointMatchingViewModel> _currentCurvePoint; |
| | | private List<HydroCurvePointViewModel> _currentCurvePoint; |
| | | |
| | | public async void SetBindingData(ValveMatchingViewModel valveMatchingViewModel) |
| | | public async void SetBindingData(HydroValveMatchingViewModel valveMatchingViewModel) |
| | | { |
| | | _pumpMatchingViewModel = valveMatchingViewModel; |
| | | _allBindingList = new List<ValveSingleMatchingViewModel>(); |
| | |
| | | } |
| | | } |
| | | } |
| | | _currentCurvePoint = new List<CurvePointMatchingViewModel>(); |
| | | _currentCurvePoint = new List<HydroCurvePointViewModel>(); |
| | | } |
| | | |
| | | //阀门型号列表选择项切换事件 |
| | |
| | | } |
| | | _pumpMatchingViewModel.MatchingMinorLoss = vm.Coefficient; |
| | | _pumpMatchingViewModel.MatchingMaterial = vm.Material; |
| | | _pumpMatchingViewModel.MatchingValveType = vm.SeriesType; |
| | | _pumpMatchingViewModel.MatchingValveType = (eValveType?)vm.SeriesType; |
| | | _pumpMatchingViewModel.MatchingValveSetting = vm.ValveSetting; |
| | | var list = await _bll_ex.Value.GetByValveMainID(vm.ID); |
| | | if (list != null && list.Any()) |
| | |
| | | var points_qh = PhartPerformCurveHelper.GetFeatPointList(graph_ql.GraphType, graph_ql.GeometryInfo, 100, null); |
| | | foreach (var item in points_qh) |
| | | { |
| | | _currentCurvePoint.Add(new CurvePointMatchingViewModel(item.X, item.Y)); |
| | | _currentCurvePoint.Add(new HydroCurvePointViewModel(item.X, item.Y)); |
| | | } |
| | | _pumpMatchingViewModel.MatchingCurveQL = _currentCurvePoint; |
| | | } |
| | |
| | | var points_qh = PhartPerformCurveHelper.GetFeatPointList(graph_ol.GraphType, graph_ol.GeometryInfo, 100, null); |
| | | foreach (var item in points_qh) |
| | | { |
| | | _currentCurvePoint.Add(new CurvePointMatchingViewModel(item.X, item.Y)); |
| | | _currentCurvePoint.Add(new HydroCurvePointViewModel(item.X, item.Y)); |
| | | } |
| | | _pumpMatchingViewModel.MatchingCurveOL = _currentCurvePoint; |
| | | } |