| | |
| | | } |
| | | this.hydroMeterViewModelBindingSource.DataSource = _allBindingList; |
| | | this.hydroMeterViewModelBindingSource.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.colElev.Visible = true; |
| | | this.colDemand.Visible = true; |
| | | 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.colQuality.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 = 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.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; |
| | | } |
| | | |
| | | |
| | | //行点击事件 |
| | | private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e) |