| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | pumpFormViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | pumpMatchingViewModelBindingSource = new BindingSource(components); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colModelType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colRatedH = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRatedN = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDbLocked = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colAlterRatedP = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colAlterRatedQ = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colAlterRatedH = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colAlterRatedN = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMatchingRatedP = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMatchingRatedQ = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMatchingRatedH = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMatchingRatedN = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMatchingType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)pumpFormViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)pumpMatchingViewModelBindingSource).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | | // |
| | | gridControl1.DataSource = pumpMatchingViewModelBindingSource; |
| | | gridControl1.DataSource = pumpFormViewModelBindingSource; |
| | | gridControl1.Dock = DockStyle.Fill; |
| | | gridControl1.Location = new Point(0, 0); |
| | | gridControl1.MainView = gridView1; |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // pumpFormViewModelBindingSource |
| | | // |
| | | pumpFormViewModelBindingSource.DataSource = typeof(PumpFormViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCode, colModelType, colRatedP, colRatedQ, colRatedH, colRatedN, colDbLocked, colAlterRatedP, colAlterRatedQ, colAlterRatedH, colAlterRatedN, colMatchingType }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCode, colModelType, colRatedP, colRatedQ, colRatedH, colRatedN, colDbLocked, colMatchingRatedP, colMatchingRatedQ, colMatchingRatedH, colMatchingRatedN, colMatchingType }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | // |
| | | // pumpMatchingViewModelBindingSource |
| | | // |
| | | pumpMatchingViewModelBindingSource.DataSource = typeof(PumpMatchingViewModel); |
| | | gridView1.RowCellClick += gridView1_RowCellClick; |
| | | // |
| | | // colName |
| | | // |
| | |
| | | colDbLocked.FieldName = "DbLocked"; |
| | | colDbLocked.Name = "colDbLocked"; |
| | | colDbLocked.Visible = true; |
| | | colDbLocked.VisibleIndex = 7; |
| | | colDbLocked.VisibleIndex = 12; |
| | | // |
| | | // colAlterRatedP |
| | | // colMatchingRatedP |
| | | // |
| | | colAlterRatedP.FieldName = "AlterRatedP"; |
| | | colAlterRatedP.Name = "colAlterRatedP"; |
| | | colAlterRatedP.Visible = true; |
| | | colAlterRatedP.VisibleIndex = 8; |
| | | colMatchingRatedP.FieldName = "MatchingRatedP"; |
| | | colMatchingRatedP.Name = "colMatchingRatedP"; |
| | | colMatchingRatedP.Visible = true; |
| | | colMatchingRatedP.VisibleIndex = 7; |
| | | // |
| | | // colAlterRatedQ |
| | | // colMatchingRatedQ |
| | | // |
| | | colAlterRatedQ.FieldName = "AlterRatedQ"; |
| | | colAlterRatedQ.Name = "colAlterRatedQ"; |
| | | colAlterRatedQ.Visible = true; |
| | | colAlterRatedQ.VisibleIndex = 9; |
| | | colMatchingRatedQ.FieldName = "MatchingRatedQ"; |
| | | colMatchingRatedQ.Name = "colMatchingRatedQ"; |
| | | colMatchingRatedQ.Visible = true; |
| | | colMatchingRatedQ.VisibleIndex = 8; |
| | | // |
| | | // colAlterRatedH |
| | | // colMatchingRatedH |
| | | // |
| | | colAlterRatedH.FieldName = "AlterRatedH"; |
| | | colAlterRatedH.Name = "colAlterRatedH"; |
| | | colAlterRatedH.Visible = true; |
| | | colAlterRatedH.VisibleIndex = 10; |
| | | colMatchingRatedH.FieldName = "MatchingRatedH"; |
| | | colMatchingRatedH.Name = "colMatchingRatedH"; |
| | | colMatchingRatedH.Visible = true; |
| | | colMatchingRatedH.VisibleIndex = 9; |
| | | // |
| | | // colAlterRatedN |
| | | // colMatchingRatedN |
| | | // |
| | | colAlterRatedN.FieldName = "AlterRatedN"; |
| | | colAlterRatedN.Name = "colAlterRatedN"; |
| | | colAlterRatedN.Visible = true; |
| | | colAlterRatedN.VisibleIndex = 11; |
| | | colMatchingRatedN.FieldName = "MatchingRatedN"; |
| | | colMatchingRatedN.Name = "colMatchingRatedN"; |
| | | colMatchingRatedN.Visible = true; |
| | | colMatchingRatedN.VisibleIndex = 10; |
| | | // |
| | | // colMatchingType |
| | | // |
| | | colMatchingType.FieldName = "MatchingType"; |
| | | colMatchingType.Name = "colMatchingType"; |
| | | colMatchingType.Visible = true; |
| | | colMatchingType.VisibleIndex = 12; |
| | | colMatchingType.VisibleIndex = 11; |
| | | // |
| | | // PumpMatchingCtrl |
| | | // |
| | |
| | | Name = "PumpMatchingCtrl"; |
| | | Size = new Size(1035, 503); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)pumpFormViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)pumpMatchingViewModelBindingSource).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | |
| | | private DevExpress.XtraGrid.GridControl gridControl1; |
| | | private DevExpress.XtraGrid.Views.Grid.GridView gridView1; |
| | | private BindingSource pumpMatchingViewModelBindingSource; |
| | | private BindingSource pumpFormViewModelBindingSource; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colModelType; |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colRatedH; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colRatedN; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDbLocked; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colAlterRatedP; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colAlterRatedQ; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colAlterRatedH; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colAlterRatedN; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMatchingRatedP; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMatchingRatedQ; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMatchingRatedH; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMatchingRatedN; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMatchingType; |
| | | } |
| | | } |