| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public SimulationMonitorHelper(long modelId) |
| | | public SimulationMonitorHelper(SimulationVisualListHelper visualListHelper) |
| | | { |
| | | _modelId = modelId; |
| | | _visualListHelper = visualListHelper; |
| | | } |
| | | |
| | | private long _modelId;//模型id |
| | | private SimulationVisualListHelper _visualListHelper = null;//可见构件列表辅助类 |
| | | private List<HydroMonitorVmo> _allMonitorList = null;//所有监测点列表 |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | if (_allMonitorList == null) |
| | | { |
| | | _allMonitorList = await BLLFactory<Yw.BLL.HydroMonitor>.Instance.GetByModelID(_modelId); |
| | | _allMonitorList = await BLLFactory<Yw.BLL.HydroMonitor>.Instance.GetByModelID(_visualListHelper.HydroInfo.ID); |
| | | if (_allMonitorList == null) |
| | | { |
| | | _allMonitorList = new List<HydroMonitorVmo>(); |
| | |
| | | { |
| | | var allMonitorList = await Get(); |
| | | allMonitorList.RemoveAll(x => x.Relation == code); |
| | | var monitorList = await BLLFactory<Yw.BLL.HydroMonitor>.Instance.GetByRelation(_modelId, code); |
| | | var monitorList = await BLLFactory<Yw.BLL.HydroMonitor>.Instance.GetByRelation(_visualListHelper.HydroInfo.ID, code); |
| | | if (monitorList != null && monitorList.Count > 0) |
| | | { |
| | | allMonitorList.AddRange(monitorList); |