| | |
| | | } |
| | | this.hydroTankViewModelBindingSource.DataSource = _allBindingList; |
| | | this.hydroTankViewModelBindingSource.ResetBindings(false); |
| | | if (allCalcuResultList == null || allCalcuResultList.Count < 1) |
| | | { |
| | | SetNormalView(); |
| | | } |
| | | else |
| | | { |
| | | SetCalcuView(); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.colCode.Visible = true; |
| | | this.colName.Visible = true; |
| | | this.colModelType.Visible = true; |
| | | this.colFlagsString.Visible = false; |
| | | this.colHasDb.Visible = true; |
| | | this.colQuality.Visible = false; |
| | | this.colPoolElev.Visible = true; |
| | | this.colInitLevel.Visible = true; |
| | | this.colMinLevel.Visible = true; |
| | | this.colMaxLevel.Visible = true; |
| | | this.colDiameter.Visible = true; |
| | | this.colMinVol.Visible = true; |
| | | this.colInitLevel.Visible = false; |
| | | this.colMinLevel.Visible = false; |
| | | this.colMaxLevel.Visible = false; |
| | | this.colDN.Visible = false; |
| | | this.colMinVol.Visible = false; |
| | | this.colVolCurve.Visible = false; |
| | | this.colCalcuPress.Visible = false; |
| | | this.colCalcuHead.Visible = false; |
| | | this.colCalcuDemand.Visible = false; |
| | | this.colFlagsString.Visible = true; |
| | | this.colDescription.Visible = true; |
| | | } |
| | | |
| | |
| | | this.colCode.Visible = true; |
| | | this.colName.Visible = true; |
| | | this.colModelType.Visible = true; |
| | | this.colFlagsString.Visible = true; |
| | | this.colQuality.Visible = true; |
| | | this.colPoolElev.Visible = true; |
| | | this.colHasDb.Visible = true; |
| | | this.colQuality.Visible = false; |
| | | this.colPoolElev.Visible = true; |
| | | this.colInitLevel.Visible = true; |
| | | this.colMinLevel.Visible = true; |
| | | this.colMaxLevel.Visible = true; |
| | | this.colDiameter.Visible = true; |
| | | this.colDN.Visible = true; |
| | | this.colMinVol.Visible = true; |
| | | this.colVolCurve.Visible = true; |
| | | this.colVolCurve.Visible = false; |
| | | this.colCalcuPress.Visible = false; |
| | | this.colCalcuHead.Visible = false; |
| | | this.colCalcuDemand.Visible = false; |
| | | this.colFlagsString.Visible = true; |
| | | this.colDescription.Visible = true; |
| | | } |
| | | |
| | |
| | | this.colCode.Visible = true; |
| | | this.colName.Visible = true; |
| | | this.colModelType.Visible = true; |
| | | this.colFlagsString.Visible = false; |
| | | this.colHasDb.Visible = true; |
| | | this.colQuality.Visible = false; |
| | | this.colPoolElev.Visible = true; |
| | | this.colPoolElev.Visible = true; |
| | | this.colInitLevel.Visible = true; |
| | | this.colMinLevel.Visible = true; |
| | | this.colMaxLevel.Visible = true; |
| | | this.colDiameter.Visible = true; |
| | | this.colDN.Visible = true; |
| | | this.colMinVol.Visible = true; |
| | | this.colVolCurve.Visible = false; |
| | | this.colCalcuPress.Visible = true; |
| | | this.colCalcuHead.Visible = true; |
| | | this.colCalcuDemand.Visible = true; |
| | | this.colFlagsString.Visible = true; |
| | | this.colDescription.Visible = true; |
| | | } |
| | | |