| | |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroPressmeterViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colDbLocked = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colModelType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colFlagsString = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colQuality = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colElev = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDemand = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDemandPattern = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDbLocked = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colModelType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCalcuPress = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCalcuHead = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCalcuDemand = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colHasDb = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)hydroPressmeterViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colDbLocked, colCode, colName, colModelType, colFlagsString, colQuality, colElev, colDemand, colDemandPattern, colCalcuPress, colCalcuHead, colCalcuDemand, colDescription }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colDbLocked, colCode, colName, colModelType, colHasDb, colQuality, colElev, colMinorLoss, colDemand, colDemandPattern, colCalcuPress, colCalcuHead, colCalcuDemand, colFlagsString, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colDbLocked |
| | | // |
| | | colDbLocked.FieldName = "DbLocked"; |
| | | colDbLocked.MaxWidth = 60; |
| | | colDbLocked.MinWidth = 60; |
| | | colDbLocked.Name = "colDbLocked"; |
| | | colDbLocked.Visible = true; |
| | | colDbLocked.VisibleIndex = 0; |
| | | colDbLocked.Width = 60; |
| | | // |
| | | // colCode |
| | | // |
| | |
| | | colName.VisibleIndex = 2; |
| | | colName.Width = 100; |
| | | // |
| | | // colModelType |
| | | // |
| | | colModelType.FieldName = "ModelType"; |
| | | colModelType.MaxWidth = 150; |
| | | colModelType.MinWidth = 100; |
| | | colModelType.Name = "colModelType"; |
| | | colModelType.Visible = true; |
| | | colModelType.VisibleIndex = 3; |
| | | colModelType.Width = 100; |
| | | // |
| | | // colFlagsString |
| | | // |
| | | colFlagsString.FieldName = "FlagsString"; |
| | |
| | | colFlagsString.MinWidth = 100; |
| | | colFlagsString.Name = "colFlagsString"; |
| | | colFlagsString.Visible = true; |
| | | colFlagsString.VisibleIndex = 4; |
| | | colFlagsString.VisibleIndex = 13; |
| | | colFlagsString.Width = 100; |
| | | // |
| | | // colQuality |
| | |
| | | colDemand.MinWidth = 100; |
| | | colDemand.Name = "colDemand"; |
| | | colDemand.Visible = true; |
| | | colDemand.VisibleIndex = 7; |
| | | colDemand.VisibleIndex = 8; |
| | | colDemand.Width = 100; |
| | | // |
| | | // colDemandPattern |
| | |
| | | colDemandPattern.MinWidth = 100; |
| | | colDemandPattern.Name = "colDemandPattern"; |
| | | colDemandPattern.Visible = true; |
| | | colDemandPattern.VisibleIndex = 8; |
| | | colDemandPattern.VisibleIndex = 9; |
| | | colDemandPattern.Width = 100; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.MinWidth = 100; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 12; |
| | | colDescription.Width = 100; |
| | | // |
| | | // colDbLocked |
| | | // |
| | | colDbLocked.FieldName = "DbLocked"; |
| | | colDbLocked.MaxWidth = 60; |
| | | colDbLocked.MinWidth = 60; |
| | | colDbLocked.Name = "colDbLocked"; |
| | | colDbLocked.Visible = true; |
| | | colDbLocked.VisibleIndex = 0; |
| | | colDbLocked.Width = 60; |
| | | // |
| | | // colModelType |
| | | // |
| | | colModelType.FieldName = "ModelType"; |
| | | colModelType.MaxWidth = 150; |
| | | colModelType.MinWidth = 100; |
| | | colModelType.Name = "colModelType"; |
| | | colModelType.Visible = true; |
| | | colModelType.VisibleIndex = 3; |
| | | colModelType.Width = 100; |
| | | // |
| | | // colCalcuPress |
| | | // |
| | |
| | | colCalcuPress.MinWidth = 100; |
| | | colCalcuPress.Name = "colCalcuPress"; |
| | | colCalcuPress.Visible = true; |
| | | colCalcuPress.VisibleIndex = 9; |
| | | colCalcuPress.VisibleIndex = 10; |
| | | colCalcuPress.Width = 100; |
| | | // |
| | | // colCalcuHead |
| | |
| | | colCalcuHead.MinWidth = 100; |
| | | colCalcuHead.Name = "colCalcuHead"; |
| | | colCalcuHead.Visible = true; |
| | | colCalcuHead.VisibleIndex = 10; |
| | | colCalcuHead.VisibleIndex = 11; |
| | | colCalcuHead.Width = 100; |
| | | // |
| | | // colCalcuDemand |
| | |
| | | colCalcuDemand.MinWidth = 100; |
| | | colCalcuDemand.Name = "colCalcuDemand"; |
| | | colCalcuDemand.Visible = true; |
| | | colCalcuDemand.VisibleIndex = 11; |
| | | colCalcuDemand.VisibleIndex = 12; |
| | | colCalcuDemand.Width = 100; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.MinWidth = 100; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 14; |
| | | colDescription.Width = 100; |
| | | // |
| | | // colHasDb |
| | | // |
| | | colHasDb.FieldName = "HasDb"; |
| | | colHasDb.MaxWidth = 60; |
| | | colHasDb.MinWidth = 60; |
| | | colHasDb.Name = "colHasDb"; |
| | | colHasDb.Visible = true; |
| | | colHasDb.VisibleIndex = 4; |
| | | colHasDb.Width = 60; |
| | | // |
| | | // colMinorLoss |
| | | // |
| | | colMinorLoss.FieldName = "MinorLoss"; |
| | | colMinorLoss.Name = "colMinorLoss"; |
| | | colMinorLoss.Visible = true; |
| | | colMinorLoss.VisibleIndex = 7; |
| | | // |
| | | // HydroPressmeterListCtrl |
| | | // |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCalcuPress; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCalcuHead; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCalcuDemand; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colHasDb; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMinorLoss; |
| | | } |
| | | } |