| | |
| | | public event Action<Yw.Model.HydroParterInfo> HydroViewEvent; |
| | | |
| | | private Yw.Model.HydroModelInfo _hydroInfo = null;//水力信息 |
| | | private Dictionary<Yw.Model.HydroParterInfo, ISetHydroParterWorkingInfoCtrl> _parterWorkingInfoDict = null;//组件与组件工况映射字典 |
| | | private Dictionary<Yw.Model.HydroParterInfo, ISetHydroVisualWorkingInfoCtrl> _parterWorkingInfoDict = null;//组件与组件工况映射字典 |
| | | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | |
| | | { |
| | | return; |
| | | } |
| | | _parterWorkingInfoDict = new Dictionary<Model.HydroParterInfo, ISetHydroParterWorkingInfoCtrl>(); |
| | | _parterWorkingInfoDict = new Dictionary<Model.HydroParterInfo, ISetHydroVisualWorkingInfoCtrl>(); |
| | | //水箱 |
| | | if (hydroInfo.Waterboxs != null && hydroInfo.Waterboxs.Count > 0) |
| | | { |
| | |
| | | { |
| | | return; |
| | | } |
| | | var all = workingInfo.GetAllParterWorkingInfoList(); |
| | | var all = workingInfo.GetAllVisualWorkingInfoList(); |
| | | if (all == null || all.Count < 1) |
| | | { |
| | | return; |
| | |
| | | var singleWorkingInfo = parterWorkingInfoCtrl.GetWorkingInfo(); |
| | | if (singleWorkingInfo != null) |
| | | { |
| | | workingInfo.AppendParterWorkingInfo(singleWorkingInfo); |
| | | workingInfo.AppendVisualWorkingInfo(singleWorkingInfo); |
| | | } |
| | | } |
| | | } |