| | |
| | | get { return _allBindingList != null && _allBindingList.Count > 0; } |
| | | } |
| | | |
| | | |
| | | |
| | | private List<HydroElbowViewModel> _allBindingList = null;//所有绑定列表 |
| | | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | /// <param name="allElbowList"></param> |
| | | public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo, List<IHydroCalcuResult> allCalcuResultList) |
| | | { |
| | | _allBindingList = new List<HydroElbowViewModel>(); |
| | |
| | | } |
| | | this.hydroElbowViewModelBindingSource.DataSource = _allBindingList; |
| | | this.hydroElbowViewModelBindingSource.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.colMaterial.Visible = true; |
| | | this.colCaliber.Visible = true; |
| | | this.colMinorLoss.Visible = true; |
| | | this.colQuality.Visible = false; |
| | | this.colElev.Visible = true; |
| | | this.colDemand.Visible = true; |
| | | this.colBendingAngle.Visible = false; |
| | | this.colElbowType.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.colFlagsString.Visible = true; |
| | | this.colDescription.Visible = true; |
| | | } |
| | | |
| | |
| | | this.colCode.Visible = true; |
| | | this.colName.Visible = true; |
| | | this.colModelType.Visible = true; |
| | | this.colFlagsString.Visible = true; |
| | | this.colHasDb.Visible = true; |
| | | this.colQuality.Visible = false; |
| | | this.colMaterial.Visible = true; |
| | | this.colCaliber.Visible = true; |
| | | this.colMinorLoss.Visible = true; |
| | | this.colQuality.Visible = true; |
| | | this.colBendingAngle.Visible = true; |
| | | this.colElbowType.Visible = true; |
| | | this.colElev.Visible = true; |
| | | this.colMinorLoss.Visible = true; |
| | | this.colDemand.Visible = true; |
| | | this.colDemandPattern.Visible = true; |
| | | this.colDemandPattern.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.colMaterial.Visible = true; |
| | | this.colCaliber.Visible = true; |
| | | this.colMinorLoss.Visible = true; |
| | | this.colQuality.Visible = false; |
| | | this.colBendingAngle.Visible = true; |
| | | this.colElbowType.Visible = true; |
| | | 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.colFlagsString.Visible = true; |
| | | this.colDescription.Visible = true; |
| | | } |
| | | |