| | |
| | | BtnEdit = new DevExpress.XtraBars.BarButtonItem(); |
| | | BtnDelete = new DevExpress.XtraBars.BarButtonItem(); |
| | | BarBtnEidtPumpPart = new DevExpress.XtraBars.BarButtonItem(); |
| | | barBtnSetDefaultStatus = new DevExpress.XtraBars.BarButtonItem(); |
| | | ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); |
| | | ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); |
| | | ribbonPageGroup2 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); |
| | | svgImageCollection1 = new DevExpress.Utils.SvgImageCollection(components); |
| | | sidePanel1 = new DevExpress.XtraEditors.SidePanel(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colKeyWord = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMaterialName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colIsDefault = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCoefficient = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colAngle = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | dockManager1 = new DevExpress.XtraBars.Docking.DockManager(components); |
| | | dockPanel1 = new DevExpress.XtraBars.Docking.DockPanel(); |
| | | dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer(); |
| | | elbowTreeListCtrl1 = new ElbowTreeListCtrl(); |
| | | colConnectionLength = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colAngle = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colElbowLengthType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((System.ComponentModel.ISupportInitialize)ribbonControl1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)svgImageCollection1).BeginInit(); |
| | | sidePanel1.SuspendLayout(); |
| | |
| | | ribbonControl1.DrawGroupsBorderMode = DevExpress.Utils.DefaultBoolean.True; |
| | | ribbonControl1.ExpandCollapseItem.Id = 0; |
| | | ribbonControl1.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic; |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, BtnAdd, BtnEdit, BtnDelete, BarBtnEidtPumpPart, barBtnSetDefaultStatus }); |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, BtnAdd, BtnEdit, BtnDelete, BarBtnEidtPumpPart }); |
| | | ribbonControl1.Location = new Point(0, 0); |
| | | ribbonControl1.MaxItemId = 24; |
| | | ribbonControl1.Name = "ribbonControl1"; |
| | |
| | | BarBtnEidtPumpPart.Id = 16; |
| | | BarBtnEidtPumpPart.Name = "BarBtnEidtPumpPart"; |
| | | // |
| | | // barBtnSetDefaultStatus |
| | | // |
| | | barBtnSetDefaultStatus.Caption = "设置默认"; |
| | | barBtnSetDefaultStatus.Id = 23; |
| | | barBtnSetDefaultStatus.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barBtnSetDefaultStatus.ImageOptions.SvgImage"); |
| | | barBtnSetDefaultStatus.Name = "barBtnSetDefaultStatus"; |
| | | barBtnSetDefaultStatus.ItemClick += barBtnSetDefaultStatus_ItemClick; |
| | | // |
| | | // ribbonPage1 |
| | | // |
| | | ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1, ribbonPageGroup2 }); |
| | | ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1 }); |
| | | ribbonPage1.Name = "ribbonPage1"; |
| | | ribbonPage1.Text = "ribbonPage1"; |
| | | // |
| | |
| | | ribbonPageGroup1.ItemLinks.Add(BtnDelete); |
| | | ribbonPageGroup1.Name = "ribbonPageGroup1"; |
| | | ribbonPageGroup1.Text = "基础功能"; |
| | | // |
| | | // ribbonPageGroup2 |
| | | // |
| | | ribbonPageGroup2.ItemLinks.Add(barBtnSetDefaultStatus); |
| | | ribbonPageGroup2.Name = "ribbonPageGroup2"; |
| | | ribbonPageGroup2.Text = "更多"; |
| | | // |
| | | // svgImageCollection1 |
| | | // |
| | |
| | | gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; |
| | | gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridView1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCaliber, colDescription, colKeyWord, colMaterialName, colIsDefault, colCoefficient, colConnectionLength, colAngle }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCaliber, colDescription, colKeyWord, colMaterialName, colAngle, colElbowLengthType, colMinorLoss }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | |
| | | colCaliber.FieldName = "Caliber"; |
| | | colCaliber.Name = "colCaliber"; |
| | | colCaliber.Visible = true; |
| | | colCaliber.VisibleIndex = 3; |
| | | colCaliber.VisibleIndex = 4; |
| | | colCaliber.Width = 85; |
| | | // |
| | | // colDescription |
| | |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 8; |
| | | colDescription.VisibleIndex = 7; |
| | | colDescription.Width = 222; |
| | | // |
| | | // colKeyWord |
| | |
| | | colKeyWord.FieldName = "KeyWord"; |
| | | colKeyWord.Name = "colKeyWord"; |
| | | colKeyWord.Visible = true; |
| | | colKeyWord.VisibleIndex = 1; |
| | | colKeyWord.VisibleIndex = 2; |
| | | colKeyWord.Width = 128; |
| | | // |
| | | // colMaterialName |
| | |
| | | colMaterialName.FieldName = "MaterialName"; |
| | | colMaterialName.Name = "colMaterialName"; |
| | | colMaterialName.Visible = true; |
| | | colMaterialName.VisibleIndex = 2; |
| | | colMaterialName.VisibleIndex = 3; |
| | | colMaterialName.Width = 79; |
| | | // |
| | | // colIsDefault |
| | | // colAngle |
| | | // |
| | | colIsDefault.FieldName = "IsDefault"; |
| | | colIsDefault.Name = "colIsDefault"; |
| | | colIsDefault.Visible = true; |
| | | colIsDefault.VisibleIndex = 7; |
| | | colIsDefault.Width = 97; |
| | | // |
| | | // colCoefficient |
| | | // |
| | | colCoefficient.FieldName = "Coefficient"; |
| | | colCoefficient.Name = "colCoefficient"; |
| | | colCoefficient.Visible = true; |
| | | colCoefficient.VisibleIndex = 5; |
| | | colAngle.FieldName = "Angle"; |
| | | colAngle.Name = "colAngle"; |
| | | colAngle.Visible = true; |
| | | colAngle.VisibleIndex = 6; |
| | | // |
| | | // dockManager1 |
| | | // |
| | |
| | | elbowTreeListCtrl1.Size = new Size(193, 491); |
| | | elbowTreeListCtrl1.TabIndex = 0; |
| | | // |
| | | // colConnectionLength |
| | | // colElbowLengthType |
| | | // |
| | | colConnectionLength.FieldName = "ConnectionLength"; |
| | | colConnectionLength.Name = "colConnectionLength"; |
| | | colConnectionLength.Visible = true; |
| | | colConnectionLength.VisibleIndex = 6; |
| | | colElbowLengthType.FieldName = "ElbowLengthType"; |
| | | colElbowLengthType.Name = "colElbowLengthType"; |
| | | colElbowLengthType.Visible = true; |
| | | colElbowLengthType.VisibleIndex = 1; |
| | | // |
| | | // colAngle |
| | | // colMinorLoss |
| | | // |
| | | colAngle.FieldName = "Angle"; |
| | | colAngle.Name = "colAngle"; |
| | | colAngle.Visible = true; |
| | | colAngle.VisibleIndex = 4; |
| | | colMinorLoss.FieldName = "MinorLoss"; |
| | | colMinorLoss.Name = "colMinorLoss"; |
| | | colMinorLoss.Visible = true; |
| | | colMinorLoss.VisibleIndex = 5; |
| | | // |
| | | // ElbowManageMainPage |
| | | // |
| | |
| | | private DevExpress.XtraBars.Docking.ControlContainer dockPanel1_Container; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colKeyWord; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMaterialName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colIsDefault; |
| | | private ElbowTreeListCtrl elbowTreeListCtrl1; |
| | | private BindingSource elbowViewModelBindingSource; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCoefficient; |
| | | private DevExpress.XtraBars.BarButtonItem barBtnSetDefaultStatus; |
| | | private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup2; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colConnectionLength; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colAngle; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colElbowLengthType; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMinorLoss; |
| | | } |
| | | } |