| | |
| | | BtnEdit = new DevExpress.XtraBars.BarButtonItem(); |
| | | BtnDelete = new DevExpress.XtraBars.BarButtonItem(); |
| | | BarBtnEidtPumpPart = new DevExpress.XtraBars.BarButtonItem(); |
| | | barBtnSetcoefficient = new DevExpress.XtraBars.BarButtonItem(); |
| | | barBtnSetCoefficient = new DevExpress.XtraBars.BarButtonItem(); |
| | | ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); |
| | | ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); |
| | | ribbonPageGroup2 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); |
| | |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCaliber = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colKeyWord = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMaterialName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colAngle = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colElbowLengthType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | dockPanel1 = new DevExpress.XtraBars.Docking.DockPanel(); |
| | | dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer(); |
| | | elbowTreeListCtrl1 = new ElbowTreeListCtrl(); |
| | | colKeyWord = 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, barBtnSetcoefficient }); |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, BtnAdd, BtnEdit, BtnDelete, BarBtnEidtPumpPart, barBtnSetCoefficient }); |
| | | ribbonControl1.Location = new Point(0, 0); |
| | | ribbonControl1.MaxItemId = 25; |
| | | ribbonControl1.Name = "ribbonControl1"; |
| | |
| | | BarBtnEidtPumpPart.Id = 16; |
| | | BarBtnEidtPumpPart.Name = "BarBtnEidtPumpPart"; |
| | | // |
| | | // barBtnSetcoefficient |
| | | // barBtnSetCoefficient |
| | | // |
| | | barBtnSetcoefficient.Caption = "局阻系数"; |
| | | barBtnSetcoefficient.Id = 24; |
| | | barBtnSetcoefficient.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barBtnSetcoefficient.ImageOptions.SvgImage"); |
| | | barBtnSetcoefficient.Name = "barBtnSetcoefficient"; |
| | | barBtnSetcoefficient.ItemClick += barBtnSetcoefficient_ItemClick; |
| | | barBtnSetCoefficient.Caption = "局阻系数"; |
| | | barBtnSetCoefficient.Id = 24; |
| | | barBtnSetCoefficient.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barBtnSetCoefficient.ImageOptions.SvgImage"); |
| | | barBtnSetCoefficient.Name = "barBtnSetCoefficient"; |
| | | barBtnSetCoefficient.ItemClick += barBtnSetcoefficient_ItemClick; |
| | | // |
| | | // ribbonPage1 |
| | | // |
| | |
| | | // |
| | | // ribbonPageGroup2 |
| | | // |
| | | ribbonPageGroup2.ItemLinks.Add(barBtnSetcoefficient); |
| | | ribbonPageGroup2.ItemLinks.Add(barBtnSetCoefficient); |
| | | ribbonPageGroup2.Name = "ribbonPageGroup2"; |
| | | ribbonPageGroup2.Text = "更多"; |
| | | // |
| | |
| | | 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, colAngle, colElbowLengthType, colMinorLoss }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCaliber, colDescription, colMaterialName, colAngle, colElbowLengthType, colMinorLoss, colKeyWord }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | |
| | | colDescription.VisibleIndex = 7; |
| | | colDescription.Width = 222; |
| | | // |
| | | // colKeyWord |
| | | // |
| | | colKeyWord.FieldName = "KeyWord"; |
| | | colKeyWord.Name = "colKeyWord"; |
| | | colKeyWord.Visible = true; |
| | | colKeyWord.VisibleIndex = 2; |
| | | colKeyWord.Width = 128; |
| | | // |
| | | // colMaterialName |
| | | // |
| | | colMaterialName.FieldName = "MaterialName"; |
| | |
| | | colElbowLengthType.FieldName = "ElbowLengthType"; |
| | | colElbowLengthType.Name = "colElbowLengthType"; |
| | | colElbowLengthType.Visible = true; |
| | | colElbowLengthType.VisibleIndex = 1; |
| | | colElbowLengthType.VisibleIndex = 2; |
| | | // |
| | | // colMinorLoss |
| | | // |
| | |
| | | elbowTreeListCtrl1.Size = new Size(193, 491); |
| | | elbowTreeListCtrl1.TabIndex = 0; |
| | | // |
| | | // colKeyWord |
| | | // |
| | | colKeyWord.FieldName = "KeyWord"; |
| | | colKeyWord.Name = "colKeyWord"; |
| | | colKeyWord.Visible = true; |
| | | colKeyWord.VisibleIndex = 1; |
| | | // |
| | | // ElbowManageMainPage |
| | | // |
| | | Appearance.BackColor = SystemColors.Control; |
| | |
| | | private DevExpress.XtraBars.Docking.DockManager dockManager1; |
| | | private DevExpress.XtraBars.Docking.DockPanel dockPanel1; |
| | | private DevExpress.XtraBars.Docking.ControlContainer dockPanel1_Container; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colKeyWord; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMaterialName; |
| | | private ElbowTreeListCtrl elbowTreeListCtrl1; |
| | | private BindingSource elbowViewModelBindingSource; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colAngle; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colElbowLengthType; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMinorLoss; |
| | | private DevExpress.XtraBars.BarButtonItem barBtnSetcoefficient; |
| | | private DevExpress.XtraBars.BarButtonItem barBtnSetCoefficient; |
| | | private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup2; |
| | | } |
| | | private DevExpress.XtraGrid.Columns.GridColumn colKeyWord; |
| | | } |
| | | } |