| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | components = new System.ComponentModel.Container(); |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(XhsProjectListPage)); |
| | | ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl(); |
| | | BtnAdd = new DevExpress.XtraBars.BarButtonItem(); |
| | |
| | | ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); |
| | | ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | projectViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colParas = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colTagName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colUseStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colSortCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCustomerName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((System.ComponentModel.ISupportInitialize)ribbonControl1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)projectViewModelBindingSource).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | |
| | | ribbonControl1.DrawGroupsBorderMode = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.ExpandCollapseItem.Id = 0; |
| | | ribbonControl1.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic; |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, ribbonControl1.SearchEditItem, BtnAdd, BtnEdit, BtnDelete }); |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, BtnAdd, BtnEdit, BtnDelete }); |
| | | ribbonControl1.Location = new Point(0, 0); |
| | | ribbonControl1.MaxItemId = 4; |
| | | ribbonControl1.Name = "ribbonControl1"; |
| | |
| | | ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.ShowPageHeadersInFormCaption = DevExpress.Utils.DefaultBoolean.True; |
| | | ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide; |
| | | ribbonControl1.Size = new Size(1317, 104); |
| | | ribbonControl1.Size = new Size(1317, 77); |
| | | ribbonControl1.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; |
| | | // |
| | | // BtnAdd |
| | |
| | | BtnEdit.Id = 2; |
| | | BtnEdit.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnEdit.ImageOptions.SvgImage"); |
| | | BtnEdit.Name = "BtnEdit"; |
| | | BtnEdit.ItemClick += BtnEdit_ItemClick; |
| | | // |
| | | // BtnDelete |
| | | // |
| | |
| | | // |
| | | // gridControl1 |
| | | // |
| | | gridControl1.DataSource = projectViewModelBindingSource; |
| | | gridControl1.Dock = DockStyle.Fill; |
| | | gridControl1.Location = new Point(0, 104); |
| | | gridControl1.Location = new Point(0, 77); |
| | | gridControl1.MainView = gridView1; |
| | | gridControl1.MenuManager = ribbonControl1; |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.Size = new Size(1317, 540); |
| | | gridControl1.Size = new Size(1317, 567); |
| | | gridControl1.TabIndex = 1; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // projectViewModelBindingSource |
| | | // |
| | | projectViewModelBindingSource.DataSource = typeof(Xhs.Project.ProjectViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colParas, colTagName, colUseStatus, colSortCode, colDescription, colCustomerName }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | // |
| | | // colName |
| | | // |
| | | colName.Caption = "名称"; |
| | | colName.FieldName = "Name"; |
| | | colName.Name = "colName"; |
| | | colName.Visible = true; |
| | | colName.VisibleIndex = 0; |
| | | // |
| | | // colParas |
| | | // |
| | | colParas.Caption = "参数"; |
| | | colParas.FieldName = "Paras"; |
| | | colParas.Name = "colParas"; |
| | | colParas.Visible = true; |
| | | colParas.VisibleIndex = 1; |
| | | // |
| | | // colTagName |
| | | // |
| | | colTagName.Caption = "标签"; |
| | | colTagName.FieldName = "TagName"; |
| | | colTagName.Name = "colTagName"; |
| | | colTagName.Visible = true; |
| | | colTagName.VisibleIndex = 2; |
| | | // |
| | | // colUseStatus |
| | | // |
| | | colUseStatus.Caption = "使用状态"; |
| | | colUseStatus.FieldName = "UseStatus"; |
| | | colUseStatus.Name = "colUseStatus"; |
| | | colUseStatus.Visible = true; |
| | | colUseStatus.VisibleIndex = 3; |
| | | // |
| | | // colSortCode |
| | | // |
| | | colSortCode.Caption = "排序码"; |
| | | colSortCode.FieldName = "SortCode"; |
| | | colSortCode.Name = "colSortCode"; |
| | | colSortCode.Visible = true; |
| | | colSortCode.VisibleIndex = 4; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.Caption = "说明"; |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 5; |
| | | // |
| | | // colCustomerName |
| | | // |
| | | colCustomerName.Caption = "客户信息"; |
| | | colCustomerName.FieldName = "CustomerName"; |
| | | colCustomerName.Name = "colCustomerName"; |
| | | colCustomerName.Visible = true; |
| | | colCustomerName.VisibleIndex = 6; |
| | | // |
| | | // XhsProjectListPage |
| | | // |
| | |
| | | Size = new Size(1317, 644); |
| | | ((System.ComponentModel.ISupportInitialize)ribbonControl1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)projectViewModelBindingSource).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 projectViewModelBindingSource; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colParas; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colTagName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colUseStatus; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colSortCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDescription; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCustomerName; |
| | | } |
| | | } |