| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | components = new System.ComponentModel.Container(); |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ElecPriceMgr)); |
| | | ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl(); |
| | | barBtnUp = new DevExpress.XtraBars.BarButtonItem(); |
| | | barBtnDown = new DevExpress.XtraBars.BarButtonItem(); |
| | |
| | | ribPageGroupForBasic = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); |
| | | sidePanel1 = new DevExpress.XtraEditors.SidePanel(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | elecPriceViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colTimeFrame = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colStartHour = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colEndHour = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colPrice = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((System.ComponentModel.ISupportInitialize)ribbonControl1).BeginInit(); |
| | | sidePanel1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)elecPriceViewModelBindingSource).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | |
| | | // |
| | | BtnAdd.Caption = "增加"; |
| | | BtnAdd.Id = 28; |
| | | BtnAdd.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnAdd.ImageOptions.SvgImage"); |
| | | BtnAdd.Name = "BtnAdd"; |
| | | BtnAdd.ItemClick += BtnAdd_ItemClick; |
| | | // |
| | |
| | | // |
| | | BtnEdit.Caption = "编辑"; |
| | | BtnEdit.Id = 29; |
| | | BtnEdit.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnEdit.ImageOptions.SvgImage"); |
| | | BtnEdit.Name = "BtnEdit"; |
| | | BtnEdit.ItemClick += BtnEdit_ItemClick; |
| | | // |
| | | // BtnDelete |
| | | // |
| | | BtnDelete.Caption = "删除"; |
| | | BtnDelete.Id = 30; |
| | | BtnDelete.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnDelete.ImageOptions.SvgImage"); |
| | | BtnDelete.Name = "BtnDelete"; |
| | | BtnDelete.ItemClick += BtnDelete_ItemClick; |
| | | // |
| | | // ribbonPage1 |
| | | // |
| | |
| | | // |
| | | // gridControl1 |
| | | // |
| | | gridControl1.DataSource = elecPriceViewModelBindingSource; |
| | | 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 }); |
| | | // |
| | | // elecPriceViewModelBindingSource |
| | | // |
| | | elecPriceViewModelBindingSource.DataSource = typeof(ElecPriceViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colTimeFrame, colStartHour, colEndHour, colPrice, colDescription, gridColumn1 }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsView.AllowCellMerge = true; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | // |
| | | // colTimeFrame |
| | | // |
| | | colTimeFrame.FieldName = "TimeFrame"; |
| | | colTimeFrame.MinWidth = 25; |
| | | colTimeFrame.Name = "colTimeFrame"; |
| | | colTimeFrame.Visible = true; |
| | | colTimeFrame.VisibleIndex = 1; |
| | | colTimeFrame.Width = 94; |
| | | // |
| | | // colStartHour |
| | | // |
| | | colStartHour.FieldName = "StartHour"; |
| | | colStartHour.MinWidth = 25; |
| | | colStartHour.Name = "colStartHour"; |
| | | colStartHour.Visible = true; |
| | | colStartHour.VisibleIndex = 2; |
| | | colStartHour.Width = 94; |
| | | // |
| | | // colEndHour |
| | | // |
| | | colEndHour.FieldName = "EndHour"; |
| | | colEndHour.MinWidth = 25; |
| | | colEndHour.Name = "colEndHour"; |
| | | colEndHour.Visible = true; |
| | | colEndHour.VisibleIndex = 3; |
| | | colEndHour.Width = 94; |
| | | // |
| | | // colPrice |
| | | // |
| | | colPrice.FieldName = "Price"; |
| | | colPrice.MinWidth = 25; |
| | | colPrice.Name = "colPrice"; |
| | | colPrice.Visible = true; |
| | | colPrice.VisibleIndex = 4; |
| | | colPrice.Width = 94; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.MinWidth = 25; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Width = 94; |
| | | // |
| | | // gridColumn1 |
| | | // |
| | | gridColumn1.Caption = "月份"; |
| | | gridColumn1.FieldName = "BelongName"; |
| | | gridColumn1.MinWidth = 25; |
| | | gridColumn1.Name = "gridColumn1"; |
| | | gridColumn1.Visible = true; |
| | | gridColumn1.VisibleIndex = 0; |
| | | gridColumn1.Width = 94; |
| | | // |
| | | // ElecPriceMgr |
| | | // |
| | |
| | | ((System.ComponentModel.ISupportInitialize)ribbonControl1).EndInit(); |
| | | sidePanel1.ResumeLayout(false); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)elecPriceViewModelBindingSource).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | PerformLayout(); |
| | |
| | | private DevExpress.XtraBars.BarButtonItem BtnDelete; |
| | | private DevExpress.XtraGrid.GridControl gridControl1; |
| | | private DevExpress.XtraGrid.Views.Grid.GridView gridView1; |
| | | private BindingSource elecPriceViewModelBindingSource; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colTimeFrame; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colStartHour; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colEndHour; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colPrice; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDescription; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; |
| | | } |
| | | } |