| | |
| | | } |
| | | this.hydroExchangerViewModelBindingSource.DataSource = _allBindingList; |
| | | this.hydroExchangerViewModelBindingSource.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.colStartCode.Visible = false; |
| | | this.colEndCode.Visible = false; |
| | | this.colLinkStatus.Visible = true; |
| | | this.colDiameter.Visible = true; |
| | | this.colLength.Visible = true; |
| | | this.colMaterial.Visible = true; |
| | | this.colDiameter.Visible = false; |
| | | this.colLength.Visible = false; |
| | | this.colMaterial.Visible = false; |
| | | this.colRoughness.Visible = true; |
| | | this.colMinorLoss.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 = true; |
| | | this.colHasDb.Visible = true; |
| | | this.colStartCode.Visible = false; |
| | | this.colEndCode.Visible = false; |
| | | this.colLinkStatus.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.colHasDb.Visible = true; |
| | | this.colStartCode.Visible = false; |
| | | this.colEndCode.Visible = false; |
| | | this.colLinkStatus.Visible = true; |
| | |
| | | this.colCalcuFlow.Visible = true; |
| | | this.colCalcuVelocity.Visible = true; |
| | | this.colCalcuHeadLoss.Visible = true; |
| | | this.colFlagsString.Visible = true; |
| | | this.colDescription.Visible = true; |
| | | } |
| | | |
| | | |
| | | //行点击事件 |
| | | private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e) |