| | |
| | | } |
| | | this.hydroValveViewModelBindingSource.DataSource = _allBindingList; |
| | | this.hydroValveViewModelBindingSource.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.colStartCode.Visible = true; |
| | | this.colEndCode.Visible = true; |
| | | this.colHasDb.Visible = true; |
| | | this.colStartCode.Visible = false; |
| | | this.colEndCode.Visible = false; |
| | | this.colLinkStatus.Visible = true; |
| | | this.colDiameter.Visible = true; |
| | | this.colMaterial.Visible = false; |
| | | this.colDiameter.Visible = false; |
| | | this.colMinorLoss.Visible = false; |
| | | this.colValveType.Visible = true; |
| | | this.colValveType.Visible = false; |
| | | this.colOpeningDegree.Visible = false; |
| | | this.colValveSetting.Visible = false; |
| | | this.colCalcuFlow.Visible = false; |
| | | this.colCalcuVelocity.Visible = false; |
| | | this.colCalcuHeadLoss.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.colStartCode.Visible = true; |
| | | this.colEndCode.Visible = true; |
| | | this.colHasDb.Visible = true; |
| | | this.colStartCode.Visible = false; |
| | | this.colEndCode.Visible = false; |
| | | this.colLinkStatus.Visible = true; |
| | | this.colMaterial.Visible = true; |
| | | this.colDiameter.Visible = true; |
| | | this.colMinorLoss.Visible = true; |
| | | this.colValveType.Visible = true; |
| | | this.colOpeningDegree.Visible = true; |
| | | this.colValveSetting.Visible = true; |
| | | this.colCalcuFlow.Visible = false; |
| | | this.colCalcuVelocity.Visible = false; |
| | | this.colCalcuHeadLoss.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.colStartCode.Visible = true; |
| | | this.colEndCode.Visible = true; |
| | | this.colHasDb.Visible = true; |
| | | this.colStartCode.Visible = false; |
| | | this.colEndCode.Visible = false; |
| | | this.colLinkStatus.Visible = true; |
| | | this.colMaterial.Visible = true; |
| | | this.colDiameter.Visible = true; |
| | | this.colMinorLoss.Visible = false; |
| | | this.colMinorLoss.Visible = true; |
| | | this.colValveType.Visible = true; |
| | | this.colValveSetting.Visible = false; |
| | | this.colOpeningDegree.Visible = true; |
| | | this.colValveSetting.Visible = true; |
| | | this.colCalcuFlow.Visible = true; |
| | | this.colCalcuVelocity.Visible = true; |
| | | this.colCalcuHeadLoss.Visible = true; |
| | | this.colFlagsString.Visible = true; |
| | | this.colDescription.Visible = true; |
| | | } |
| | | |