| | |
| | | BtnAdd = new DevExpress.XtraBars.BarButtonItem(); |
| | | BtnEdit = new DevExpress.XtraBars.BarButtonItem(); |
| | | BtnDelete = new DevExpress.XtraBars.BarButtonItem(); |
| | | BtnUpdateUseStatus = new DevExpress.XtraBars.BarButtonItem(); |
| | | BtnUpdateSortCode = 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(); |
| | | ColDisplayName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colTagName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colUseStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | gridColumn3 = 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(); |
| | |
| | | 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, BtnAdd, BtnEdit, BtnDelete }); |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, BtnAdd, BtnEdit, BtnDelete, BtnUpdateUseStatus, BtnUpdateSortCode }); |
| | | ribbonControl1.Location = new Point(0, 0); |
| | | ribbonControl1.MaxItemId = 4; |
| | | ribbonControl1.MaxItemId = 6; |
| | | ribbonControl1.Name = "ribbonControl1"; |
| | | ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage1 }); |
| | | ribbonControl1.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; |
| | |
| | | BtnDelete.Name = "BtnDelete"; |
| | | BtnDelete.ItemClick += BtnDelete_ItemClick; |
| | | // |
| | | // BtnUpdateUseStatus |
| | | // |
| | | BtnUpdateUseStatus.Caption = "使用状态"; |
| | | BtnUpdateUseStatus.Id = 4; |
| | | BtnUpdateUseStatus.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnUpdateUseStatus.ImageOptions.SvgImage"); |
| | | BtnUpdateUseStatus.Name = "BtnUpdateUseStatus"; |
| | | BtnUpdateUseStatus.ItemClick += BtnUpdateUseStatus_ItemClick; |
| | | // |
| | | // BtnUpdateSortCode |
| | | // |
| | | BtnUpdateSortCode.Caption = "排序码"; |
| | | BtnUpdateSortCode.Id = 5; |
| | | BtnUpdateSortCode.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnUpdateSortCode.ImageOptions.SvgImage"); |
| | | BtnUpdateSortCode.Name = "BtnUpdateSortCode"; |
| | | BtnUpdateSortCode.ItemClick += BtnUpdateSortCode_ItemClick; |
| | | // |
| | | // ribbonPage1 |
| | | // |
| | | ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1 }); |
| | |
| | | ribbonPageGroup1.ItemLinks.Add(BtnAdd); |
| | | ribbonPageGroup1.ItemLinks.Add(BtnEdit); |
| | | ribbonPageGroup1.ItemLinks.Add(BtnDelete); |
| | | ribbonPageGroup1.ItemLinks.Add(BtnUpdateUseStatus); |
| | | ribbonPageGroup1.ItemLinks.Add(BtnUpdateSortCode); |
| | | ribbonPageGroup1.Name = "ribbonPageGroup1"; |
| | | ribbonPageGroup1.Text = "ribbonPageGroup1"; |
| | | // |
| | |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colParas, ColDisplayName, colTagName, colUseStatus, colSortCode, colDescription, colCustomerName }); |
| | | gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; |
| | | gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, ColDisplayName, gridColumn1, colTagName, colUseStatus, gridColumn2, gridColumn4, gridColumn3, colSortCode, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | // |
| | | // colName |
| | | // |
| | | colName.Caption = "名称"; |
| | | colName.AppearanceCell.Options.UseTextOptions = true; |
| | | colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | 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; |
| | | colName.VisibleIndex = 1; |
| | | // |
| | | // ColDisplayName |
| | | // |
| | | ColDisplayName.AppearanceCell.Options.UseTextOptions = true; |
| | | ColDisplayName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | ColDisplayName.Caption = "创建人"; |
| | | ColDisplayName.FieldName = "CreateDisplayName"; |
| | | ColDisplayName.Name = "ColDisplayName"; |
| | | ColDisplayName.Visible = true; |
| | | ColDisplayName.VisibleIndex = 2; |
| | | ColDisplayName.VisibleIndex = 3; |
| | | // |
| | | // gridColumn1 |
| | | // |
| | | gridColumn1.AppearanceCell.Options.UseTextOptions = true; |
| | | gridColumn1.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridColumn1.Caption = "创建时间"; |
| | | gridColumn1.FieldName = "CreateTime"; |
| | | gridColumn1.Name = "gridColumn1"; |
| | | gridColumn1.Visible = true; |
| | | gridColumn1.VisibleIndex = 2; |
| | | // |
| | | // colTagName |
| | | // |
| | | colTagName.AppearanceCell.Options.UseTextOptions = true; |
| | | colTagName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colTagName.Caption = "标签"; |
| | | colTagName.FieldName = "TagName"; |
| | | colTagName.Name = "colTagName"; |
| | | colTagName.Visible = true; |
| | | colTagName.VisibleIndex = 3; |
| | | colTagName.VisibleIndex = 4; |
| | | // |
| | | // colUseStatus |
| | | // |
| | | colUseStatus.AppearanceCell.Options.UseTextOptions = true; |
| | | colUseStatus.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colUseStatus.Caption = "使用状态"; |
| | | colUseStatus.FieldName = "UseStatus"; |
| | | colUseStatus.Name = "colUseStatus"; |
| | | colUseStatus.Visible = true; |
| | | colUseStatus.VisibleIndex = 4; |
| | | colUseStatus.VisibleIndex = 5; |
| | | // |
| | | // gridColumn2 |
| | | // |
| | | gridColumn2.AppearanceCell.Options.UseTextOptions = true; |
| | | gridColumn2.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridColumn2.Caption = "项目编号"; |
| | | gridColumn2.FieldName = "PrjNumber"; |
| | | gridColumn2.Name = "gridColumn2"; |
| | | gridColumn2.Visible = true; |
| | | gridColumn2.VisibleIndex = 0; |
| | | // |
| | | // gridColumn4 |
| | | // |
| | | gridColumn4.AppearanceCell.Options.UseTextOptions = true; |
| | | gridColumn4.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridColumn4.Caption = "客户名称"; |
| | | gridColumn4.FieldName = "CustomerName"; |
| | | gridColumn4.Name = "gridColumn4"; |
| | | gridColumn4.Visible = true; |
| | | gridColumn4.VisibleIndex = 6; |
| | | // |
| | | // gridColumn3 |
| | | // |
| | | gridColumn3.AppearanceCell.Options.UseTextOptions = true; |
| | | gridColumn3.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridColumn3.Caption = "模型状态"; |
| | | gridColumn3.Name = "gridColumn3"; |
| | | gridColumn3.Visible = true; |
| | | gridColumn3.VisibleIndex = 7; |
| | | // |
| | | // colSortCode |
| | | // |
| | | colSortCode.AppearanceCell.Options.UseTextOptions = true; |
| | | colSortCode.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colSortCode.Caption = "排序码"; |
| | | colSortCode.FieldName = "SortCode"; |
| | | colSortCode.Name = "colSortCode"; |
| | | colSortCode.Visible = true; |
| | | colSortCode.VisibleIndex = 5; |
| | | colSortCode.VisibleIndex = 8; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.AppearanceCell.Options.UseTextOptions = true; |
| | | colDescription.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colDescription.Caption = "说明"; |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 6; |
| | | // |
| | | // colCustomerName |
| | | // |
| | | colCustomerName.Caption = "客户信息"; |
| | | colCustomerName.FieldName = "CustomerName"; |
| | | colCustomerName.Name = "colCustomerName"; |
| | | colCustomerName.Visible = true; |
| | | colCustomerName.VisibleIndex = 7; |
| | | colDescription.VisibleIndex = 9; |
| | | // |
| | | // XhsProjectListPage |
| | | // |
| | |
| | | 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; |
| | | private DevExpress.XtraGrid.Columns.GridColumn ColDisplayName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn2; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn4; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn3; |
| | | private DevExpress.XtraBars.BarButtonItem BtnUpdateUseStatus; |
| | | private DevExpress.XtraBars.BarButtonItem BtnUpdateSortCode; |
| | | } |
| | | } |