| | |
| | | BarBtnEidtPumpPart = new DevExpress.XtraBars.BarButtonItem(); |
| | | barBtnValveLine = new DevExpress.XtraBars.BarButtonItem(); |
| | | barBtnSetDefaultStatus = 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(); |
| | |
| | | colMaterial = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCoefficient = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colValveLift = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colSeriesType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colKeyWord = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colIsDefault = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colValveSetting = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colValveType = 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(); |
| | |
| | | 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, barBtnValveLine, barBtnSetDefaultStatus }); |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, BtnAdd, BtnEdit, BtnDelete, BarBtnEidtPumpPart, barBtnValveLine, barBtnSetDefaultStatus, barBtnSetCoefficient }); |
| | | ribbonControl1.Location = new Point(0, 0); |
| | | ribbonControl1.MaxItemId = 24; |
| | | ribbonControl1.MaxItemId = 25; |
| | | ribbonControl1.Name = "ribbonControl1"; |
| | | ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage1 }); |
| | | ribbonControl1.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2010; |
| | |
| | | barBtnSetDefaultStatus.Id = 23; |
| | | barBtnSetDefaultStatus.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barBtnSetDefaultStatus.ImageOptions.SvgImage"); |
| | | barBtnSetDefaultStatus.Name = "barBtnSetDefaultStatus"; |
| | | barBtnSetDefaultStatus.Visibility = DevExpress.XtraBars.BarItemVisibility.Never; |
| | | barBtnSetDefaultStatus.ItemClick += barBtnSetDefaultStatus_ItemClick; |
| | | // |
| | | // barBtnSetCoefficient |
| | | // |
| | | barBtnSetCoefficient.Caption = "局阻系数"; |
| | | barBtnSetCoefficient.Id = 24; |
| | | barBtnSetCoefficient.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barBtnSetCoefficient.ImageOptions.SvgImage"); |
| | | barBtnSetCoefficient.Name = "barBtnSetCoefficient"; |
| | | barBtnSetCoefficient.Visibility = DevExpress.XtraBars.BarItemVisibility.Never; |
| | | barBtnSetCoefficient.ItemClick += barBtnSetcoefficient_ItemClick; |
| | | // |
| | | // ribbonPage1 |
| | | // |
| | |
| | | // |
| | | ribbonPageGroup2.ItemLinks.Add(barBtnValveLine); |
| | | ribbonPageGroup2.ItemLinks.Add(barBtnSetDefaultStatus); |
| | | 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, colMaterial, colCoefficient, colDescription, colValveLift, colSeriesType, colKeyWord, colIsDefault }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCaliber, colMaterial, colCoefficient, colDescription, colKeyWord, colValveSetting, colValveType }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | gridView1.FocusedRowChanged += gridView1_FocusedRowChanged; |
| | | // |
| | | // colName |
| | | // |
| | |
| | | colCaliber.FieldName = "Caliber"; |
| | | colCaliber.Name = "colCaliber"; |
| | | colCaliber.Visible = true; |
| | | colCaliber.VisibleIndex = 2; |
| | | colCaliber.VisibleIndex = 3; |
| | | colCaliber.Width = 123; |
| | | // |
| | | // colMaterial |
| | |
| | | colMaterial.FieldName = "Material"; |
| | | colMaterial.Name = "colMaterial"; |
| | | colMaterial.Visible = true; |
| | | colMaterial.VisibleIndex = 3; |
| | | colMaterial.VisibleIndex = 4; |
| | | colMaterial.Width = 105; |
| | | // |
| | | // colCoefficient |
| | |
| | | colDescription.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.OptionsFilter.AllowFilter = false; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 6; |
| | | colDescription.VisibleIndex = 7; |
| | | colDescription.Width = 266; |
| | | // |
| | | // colValveLift |
| | | // |
| | | colValveLift.FieldName = "ValveLift"; |
| | | colValveLift.Name = "colValveLift"; |
| | | colValveLift.Visible = true; |
| | | colValveLift.VisibleIndex = 4; |
| | | colValveLift.Width = 82; |
| | | // |
| | | // colSeriesType |
| | | // |
| | | colSeriesType.FieldName = "SeriesType"; |
| | | colSeriesType.Name = "colSeriesType"; |
| | | colSeriesType.Visible = true; |
| | | colSeriesType.VisibleIndex = 7; |
| | | colSeriesType.Width = 119; |
| | | // |
| | | // colKeyWord |
| | | // |
| | | colKeyWord.FieldName = "KeyWord"; |
| | | colKeyWord.Name = "colKeyWord"; |
| | | colKeyWord.Visible = true; |
| | | colKeyWord.VisibleIndex = 1; |
| | | colKeyWord.VisibleIndex = 2; |
| | | // |
| | | // colIsDefault |
| | | // colValveSetting |
| | | // |
| | | colIsDefault.FieldName = "IsDefault"; |
| | | colIsDefault.Name = "colIsDefault"; |
| | | colIsDefault.Visible = true; |
| | | colIsDefault.VisibleIndex = 8; |
| | | colValveSetting.FieldName = "ValveSetting"; |
| | | colValveSetting.Name = "colValveSetting"; |
| | | colValveSetting.Visible = true; |
| | | colValveSetting.VisibleIndex = 6; |
| | | // |
| | | // colValveType |
| | | // |
| | | colValveType.FieldName = "ValveType"; |
| | | colValveType.Name = "colValveType"; |
| | | colValveType.Visible = true; |
| | | colValveType.VisibleIndex = 1; |
| | | // |
| | | // dockManager1 |
| | | // |
| | |
| | | dockPanel1.Name = "dockPanel1"; |
| | | dockPanel1.OriginalSize = new Size(204, 200); |
| | | dockPanel1.Size = new Size(204, 520); |
| | | dockPanel1.Text = "阀门类型"; |
| | | dockPanel1.Text = "阀门系列"; |
| | | // |
| | | // dockPanel1_Container |
| | | // |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colName; |
| | | private DevExpress.XtraBars.BarButtonItem barBtnValveLine; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colValveLift; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colSeriesType; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colKeyWord; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colIsDefault; |
| | | private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup2; |
| | | private DevExpress.XtraBars.BarButtonItem barBtnSetDefaultStatus; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colValveSetting; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colValveType; |
| | | private DevExpress.XtraBars.BarButtonItem barBtnSetCoefficient; |
| | | } |
| | | } |