| | |
| | | { |
| | | components = new Container(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | pumpFormViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | pumpMatchingViewModelBindingSource = new BindingSource(components); |
| | | colDbLocked = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colModelType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colModelType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRatedP = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRatedQ = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRatedH = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRatedN = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRatedQ = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRatedQ1 = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDbLocked = 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, colModelType, colRatedH, colRatedN, colRatedQ, colRatedQ1, colDbLocked }); |
| | | 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); |
| | | // |
| | | // colDbLocked |
| | | // |
| | | colDbLocked.FieldName = "DbLocked"; |
| | | colDbLocked.Name = "colDbLocked"; |
| | | colDbLocked.Visible = true; |
| | | colDbLocked.VisibleIndex = 6; |
| | | // |
| | | // colModelType |
| | | // |
| | | colModelType.FieldName = "ModelType"; |
| | | colModelType.Name = "colModelType"; |
| | | colModelType.Visible = true; |
| | | colModelType.VisibleIndex = 1; |
| | | gridView1.RowCellClick += gridView1_RowCellClick; |
| | | // |
| | | // colName |
| | | // |
| | |
| | | colName.Visible = true; |
| | | colName.VisibleIndex = 0; |
| | | // |
| | | // colRatedH |
| | | // colCode |
| | | // |
| | | colRatedH.FieldName = "RatedH"; |
| | | colRatedH.Name = "colRatedH"; |
| | | colRatedH.Visible = true; |
| | | colRatedH.VisibleIndex = 2; |
| | | colCode.FieldName = "Code"; |
| | | colCode.Name = "colCode"; |
| | | colCode.Visible = true; |
| | | colCode.VisibleIndex = 1; |
| | | // |
| | | // colRatedN |
| | | // colModelType |
| | | // |
| | | colRatedN.FieldName = "RatedN"; |
| | | colRatedN.Name = "colRatedN"; |
| | | colRatedN.Visible = true; |
| | | colRatedN.VisibleIndex = 3; |
| | | colModelType.FieldName = "ModelType"; |
| | | colModelType.Name = "colModelType"; |
| | | colModelType.Visible = true; |
| | | colModelType.VisibleIndex = 2; |
| | | // |
| | | // colRatedP |
| | | // |
| | | colRatedP.FieldName = "RatedP"; |
| | | colRatedP.Name = "colRatedP"; |
| | | colRatedP.Visible = true; |
| | | colRatedP.VisibleIndex = 3; |
| | | // |
| | | // colRatedQ |
| | | // |
| | |
| | | colRatedQ.Visible = true; |
| | | colRatedQ.VisibleIndex = 4; |
| | | // |
| | | // colRatedQ1 |
| | | // colRatedH |
| | | // |
| | | colRatedQ1.FieldName = "RatedQ"; |
| | | colRatedQ1.Name = "colRatedQ1"; |
| | | colRatedQ1.Visible = true; |
| | | colRatedQ1.VisibleIndex = 5; |
| | | colRatedH.FieldName = "RatedH"; |
| | | colRatedH.Name = "colRatedH"; |
| | | colRatedH.Visible = true; |
| | | colRatedH.VisibleIndex = 5; |
| | | // |
| | | // colRatedN |
| | | // |
| | | colRatedN.FieldName = "RatedN"; |
| | | colRatedN.Name = "colRatedN"; |
| | | colRatedN.Visible = true; |
| | | colRatedN.VisibleIndex = 6; |
| | | // |
| | | // colDbLocked |
| | | // |
| | | colDbLocked.FieldName = "DbLocked"; |
| | | colDbLocked.Name = "colDbLocked"; |
| | | colDbLocked.Visible = true; |
| | | colDbLocked.VisibleIndex = 12; |
| | | // |
| | | // colMatchingRatedP |
| | | // |
| | | colMatchingRatedP.FieldName = "MatchingRatedP"; |
| | | colMatchingRatedP.Name = "colMatchingRatedP"; |
| | | colMatchingRatedP.Visible = true; |
| | | colMatchingRatedP.VisibleIndex = 7; |
| | | // |
| | | // colMatchingRatedQ |
| | | // |
| | | colMatchingRatedQ.FieldName = "MatchingRatedQ"; |
| | | colMatchingRatedQ.Name = "colMatchingRatedQ"; |
| | | colMatchingRatedQ.Visible = true; |
| | | colMatchingRatedQ.VisibleIndex = 8; |
| | | // |
| | | // colMatchingRatedH |
| | | // |
| | | colMatchingRatedH.FieldName = "MatchingRatedH"; |
| | | colMatchingRatedH.Name = "colMatchingRatedH"; |
| | | colMatchingRatedH.Visible = true; |
| | | colMatchingRatedH.VisibleIndex = 9; |
| | | // |
| | | // colMatchingRatedN |
| | | // |
| | | colMatchingRatedN.FieldName = "MatchingRatedN"; |
| | | colMatchingRatedN.Name = "colMatchingRatedN"; |
| | | colMatchingRatedN.Visible = true; |
| | | colMatchingRatedN.VisibleIndex = 10; |
| | | // |
| | | // colMatchingType |
| | | // |
| | | colMatchingType.FieldName = "MatchingType"; |
| | | colMatchingType.Name = "colMatchingType"; |
| | | colMatchingType.Visible = true; |
| | | 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 colRatedP; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colRatedQ; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colRatedH; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colRatedN; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colRatedQ; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colRatedQ1; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDbLocked; |
| | | 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; |
| | | } |
| | | } |