| | |
| | | |
| | | var vm = new HydroMonitorAnalyViewModel(); |
| | | |
| | | |
| | | //过滤测点,仅需要分析测点 |
| | | var monitorList = allMonitorList.Where(x => x.SourceType == Yw.Hydro.eSourceType.Analyse).ToList(); |
| | | if (monitorList == null || monitorList.Count < 1) |
| | | { |
| | | return vm; |
| | | } |
| | | |
| | | //构件列表 |
| | | var allVisualDict = hydroInfo.GetVisualDict(); |
| | | if (allVisualDict == null || allVisualDict.Count < 1) |
| | |
| | | |
| | | //遍历测点 |
| | | vm.Items = new List<HydroMonitorAnalyItemViewModel>(); |
| | | foreach (var monitor in monitorList) |
| | | foreach (var monitor in allMonitorList) |
| | | { |
| | | var item = new HydroMonitorAnalyItemViewModel(monitor, allVisualDict, allCalcuVisualDict); |
| | | vm.Items.Add(item); |