| | |
| | | { |
| | | foreach (var pressmeter in hydroInfo.Pressmeters) |
| | | { |
| | | var calcuNodeResult = allCalcuResultList?.Find(x => x.Code == pressmeter.Code) as HydroCalcuNodeResult; |
| | | var vm = new HydroPressmeterViewModel(pressmeter, calcuNodeResult); |
| | | var calcuResult = allCalcuResultList?.Find(x => x.Code == pressmeter.Code) as HydroCalcuPressmeterResult; |
| | | var vm = new HydroPressmeterViewModel(pressmeter, 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.colCalcuPr.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.colCalcuPr.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.colCalcuPr.Visible = true; |
| | | this.colHasDb.Visible = true; |
| | | this.colFlagsString.Visible = true; |
| | | this.colDescription.Visible = true; |
| | | } |