| | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | /// <param name="allFlowmeterList"></param> |
| | | public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo, List<HydroCalcuResult> allCalcuResultList) |
| | | { |
| | | _allBindingList = new List<HydroFlowmeterViewModel>(); |
| | |
| | | { |
| | | foreach (var flowmeter in hydroInfo.Flowmeters) |
| | | { |
| | | var calcuNodeResult = allCalcuResultList?.Find(x => x.Code == flowmeter.Code) as HydroCalcuNodeResult; |
| | | var vm = new HydroFlowmeterViewModel(flowmeter, calcuNodeResult); |
| | | var calcuResult = allCalcuResultList?.Find(x => x.Code == flowmeter.Code) as HydroCalcuFlowmeterResult; |
| | | var vm = new HydroFlowmeterViewModel(flowmeter, calcuResult); |
| | | _allBindingList.Add(vm); |
| | | } |
| | | } |
| | |
| | | public void SetSimpleView() |
| | | { |
| | | this.colDbLocked.Visible = true; |
| | | this.colCode.Visible = true; |
| | | this.colName.Visible = true; |
| | | this.colCode.Visible = true; |
| | | this.colModelType.Visible = true; |
| | | this.colHasDb.Visible = true; |
| | | this.colQuality.Visible = false; |
| | | this.colElev.Visible = false; |
| | | this.colMinorLoss.Visible = false; |
| | | this.colDemand.Visible = false; |
| | | this.colDemandPattern.Visible = false; |
| | | this.colCalcuPress.Visible = false; |
| | | this.colCalcuHead.Visible = false; |
| | | this.colCalcuDemand.Visible = false; |
| | | this.colCurrentFlow.Visible = true; |
| | | this.colCalcuQ.Visible = false; |
| | | this.colHasDb.Visible = true; |
| | | this.colFlagsString.Visible = true; |
| | | this.colDescription.Visible = true; |
| | | } |
| | |
| | | public void SetNormalView() |
| | | { |
| | | this.colDbLocked.Visible = true; |
| | | this.colCode.Visible = true; |
| | | this.colName.Visible = true; |
| | | this.colCode.Visible = true; |
| | | this.colModelType.Visible = true; |
| | | this.colHasDb.Visible = true; |
| | | this.colQuality.Visible = false; |
| | | this.colElev.Visible = true; |
| | | this.colMinorLoss.Visible = true; |
| | | this.colDemand.Visible = true; |
| | | this.colDemandPattern.Visible = false; |
| | | this.colCalcuPress.Visible = false; |
| | | this.colCalcuHead.Visible = false; |
| | | this.colCalcuDemand.Visible = false; |
| | | this.colCurrentFlow.Visible = true; |
| | | this.colCalcuQ.Visible = false; |
| | | this.colHasDb.Visible = true; |
| | | this.colFlagsString.Visible = true; |
| | | this.colDescription.Visible = true; |
| | | } |
| | |
| | | public void SetCalcuView() |
| | | { |
| | | this.colDbLocked.Visible = true; |
| | | this.colCode.Visible = true; |
| | | this.colName.Visible = true; |
| | | this.colCode.Visible = true; |
| | | this.colModelType.Visible = true; |
| | | this.colHasDb.Visible = true; |
| | | this.colQuality.Visible = false; |
| | | this.colElev.Visible = true; |
| | | this.colMinorLoss.Visible = true; |
| | | this.colDemand.Visible = true; |
| | | this.colDemandPattern.Visible = false; |
| | | this.colCalcuPress.Visible = true; |
| | | this.colCalcuHead.Visible = true; |
| | | this.colCalcuDemand.Visible = true; |
| | | this.colCurrentFlow.Visible = true; |
| | | this.colCalcuQ.Visible = true; |
| | | this.colHasDb.Visible = true; |
| | | this.colFlagsString.Visible = true; |
| | | this.colDescription.Visible = true; |
| | | } |
| | |
| | | } |
| | | this.HydroClickEvent?.Invoke(row.Vmo); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |