| | |
| | | BtnEdit = new DevExpress.XtraBars.BarButtonItem(); |
| | | BtnDelete = new DevExpress.XtraBars.BarButtonItem(); |
| | | BarBtnEidtPumpPart = new DevExpress.XtraBars.BarButtonItem(); |
| | | BtnDescription = 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(); |
| | | pipeLineViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCaliber = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMaterial = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCoefficient = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colHazen = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDarcy = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colManning = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colSortCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCreateName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCreateTime = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((System.ComponentModel.ISupportInitialize)ribbonControl1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)svgImageCollection1).BeginInit(); |
| | | sidePanel1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)pipeLineViewModelBindingSource).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).BeginInit(); |
| | | 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 }); |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, BtnAdd, BtnEdit, BtnDelete, BarBtnEidtPumpPart, BtnDescription }); |
| | | ribbonControl1.Location = new Point(0, 0); |
| | | ribbonControl1.MaxItemId = 22; |
| | | ribbonControl1.MaxItemId = 23; |
| | | ribbonControl1.Name = "ribbonControl1"; |
| | | ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage1 }); |
| | | ribbonControl1.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; |
| | |
| | | // |
| | | // BtnAdd |
| | | // |
| | | BtnAdd.Caption = "添加阀门"; |
| | | BtnAdd.Caption = "添加管道"; |
| | | BtnAdd.Id = 1; |
| | | BtnAdd.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnAdd.ImageOptions.SvgImage"); |
| | | BtnAdd.Name = "BtnAdd"; |
| | |
| | | // |
| | | // BtnEdit |
| | | // |
| | | BtnEdit.Caption = "编辑阀门"; |
| | | BtnEdit.Caption = "编辑管道"; |
| | | BtnEdit.Id = 2; |
| | | BtnEdit.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnEdit.ImageOptions.SvgImage"); |
| | | BtnEdit.Name = "BtnEdit"; |
| | |
| | | // |
| | | // BtnDelete |
| | | // |
| | | BtnDelete.Caption = "删除阀门"; |
| | | BtnDelete.Caption = "删除管道"; |
| | | BtnDelete.Id = 3; |
| | | BtnDelete.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnDelete.ImageOptions.SvgImage"); |
| | | BtnDelete.Name = "BtnDelete"; |
| | |
| | | BarBtnEidtPumpPart.Id = 16; |
| | | BarBtnEidtPumpPart.Name = "BarBtnEidtPumpPart"; |
| | | // |
| | | // BtnDescription |
| | | // |
| | | BtnDescription.Caption = "说明"; |
| | | BtnDescription.Id = 22; |
| | | BtnDescription.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("BtnDescription.ImageOptions.SvgImage"); |
| | | BtnDescription.Name = "BtnDescription"; |
| | | BtnDescription.ItemClick += BtnDescription_ItemClick; |
| | | // |
| | | // ribbonPage1 |
| | | // |
| | | ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1 }); |
| | | ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1, ribbonPageGroup2 }); |
| | | ribbonPage1.Name = "ribbonPage1"; |
| | | ribbonPage1.Text = "ribbonPage1"; |
| | | // |
| | |
| | | ribbonPageGroup1.ItemLinks.Add(BtnDelete); |
| | | ribbonPageGroup1.Name = "ribbonPageGroup1"; |
| | | ribbonPageGroup1.Text = "基础功能"; |
| | | // |
| | | // ribbonPageGroup2 |
| | | // |
| | | ribbonPageGroup2.ItemLinks.Add(BtnDescription); |
| | | ribbonPageGroup2.Name = "ribbonPageGroup2"; |
| | | ribbonPageGroup2.Text = "更多"; |
| | | // |
| | | // svgImageCollection1 |
| | | // |
| | |
| | | // |
| | | // gridControl1 |
| | | // |
| | | gridControl1.DataSource = pipeLineViewModelBindingSource; |
| | | gridControl1.Dock = DockStyle.Fill; |
| | | gridControl1.Location = new Point(0, 101); |
| | | gridControl1.MainView = gridView1; |
| | |
| | | gridControl1.TabIndex = 1; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // pipeLineViewModelBindingSource |
| | | // |
| | | pipeLineViewModelBindingSource.DataSource = typeof(PipeLineViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; |
| | | gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCaliber, colMaterial, colCoefficient, colType, colDescription, colSortCode, colCreateName, colCreateTime }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCaliber, colMaterial, colHazen, colDarcy, colManning, colSortCode, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | |
| | | colName.Name = "colName"; |
| | | colName.Visible = true; |
| | | colName.VisibleIndex = 0; |
| | | colName.Width = 130; |
| | | colName.Width = 186; |
| | | // |
| | | // colCaliber |
| | | // |
| | |
| | | colCaliber.FieldName = "Caliber"; |
| | | colCaliber.Name = "colCaliber"; |
| | | colCaliber.Visible = true; |
| | | colCaliber.VisibleIndex = 3; |
| | | colCaliber.Width = 130; |
| | | colCaliber.VisibleIndex = 1; |
| | | colCaliber.Width = 132; |
| | | // |
| | | // colMaterial |
| | | // |
| | |
| | | colMaterial.FieldName = "Material"; |
| | | colMaterial.Name = "colMaterial"; |
| | | colMaterial.Visible = true; |
| | | colMaterial.VisibleIndex = 4; |
| | | colMaterial.Width = 130; |
| | | colMaterial.VisibleIndex = 2; |
| | | colMaterial.Width = 121; |
| | | // |
| | | // colCoefficient |
| | | // colHazen |
| | | // |
| | | colCoefficient.AppearanceCell.Options.UseTextOptions = true; |
| | | colCoefficient.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colCoefficient.FieldName = "Coefficient"; |
| | | colCoefficient.Name = "colCoefficient"; |
| | | colCoefficient.Visible = true; |
| | | colCoefficient.VisibleIndex = 5; |
| | | colCoefficient.Width = 130; |
| | | colHazen.AppearanceCell.Options.UseTextOptions = true; |
| | | colHazen.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colHazen.Caption = "威廉姆斯粗糙系数"; |
| | | colHazen.FieldName = "Hazen"; |
| | | colHazen.Name = "colHazen"; |
| | | colHazen.Visible = true; |
| | | colHazen.VisibleIndex = 3; |
| | | colHazen.Width = 136; |
| | | // |
| | | // colType |
| | | // colDarcy |
| | | // |
| | | colType.AppearanceCell.Options.UseTextOptions = true; |
| | | colType.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colType.FieldName = "Type"; |
| | | colType.Name = "colType"; |
| | | colType.Visible = true; |
| | | colType.VisibleIndex = 6; |
| | | colType.Width = 130; |
| | | colDarcy.AppearanceCell.Options.UseTextOptions = true; |
| | | colDarcy.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colDarcy.Caption = "达西粗糙系数"; |
| | | colDarcy.FieldName = "Darcy"; |
| | | colDarcy.Name = "colDarcy"; |
| | | colDarcy.Visible = true; |
| | | colDarcy.VisibleIndex = 4; |
| | | colDarcy.Width = 147; |
| | | // |
| | | // colDescription |
| | | // colManning |
| | | // |
| | | colDescription.AppearanceCell.Options.UseTextOptions = true; |
| | | colDescription.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 7; |
| | | colDescription.Width = 198; |
| | | colManning.AppearanceCell.Options.UseTextOptions = true; |
| | | colManning.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colManning.Caption = "曼宁粗糙系数"; |
| | | colManning.FieldName = "Manning"; |
| | | colManning.Name = "colManning"; |
| | | colManning.Visible = true; |
| | | colManning.VisibleIndex = 5; |
| | | colManning.Width = 125; |
| | | // |
| | | // colSortCode |
| | | // |
| | |
| | | colSortCode.FieldName = "SortCode"; |
| | | colSortCode.Name = "colSortCode"; |
| | | colSortCode.Visible = true; |
| | | colSortCode.VisibleIndex = 8; |
| | | colSortCode.Width = 62; |
| | | colSortCode.VisibleIndex = 7; |
| | | colSortCode.Width = 95; |
| | | // |
| | | // colCreateName |
| | | // colDescription |
| | | // |
| | | colCreateName.AppearanceCell.Options.UseTextOptions = true; |
| | | colCreateName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colCreateName.FieldName = "CreateName"; |
| | | colCreateName.Name = "colCreateName"; |
| | | colCreateName.Visible = true; |
| | | colCreateName.VisibleIndex = 1; |
| | | colCreateName.Width = 130; |
| | | // |
| | | // colCreateTime |
| | | // |
| | | colCreateTime.AppearanceCell.Options.UseTextOptions = true; |
| | | colCreateTime.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colCreateTime.FieldName = "CreateTime"; |
| | | colCreateTime.Name = "colCreateTime"; |
| | | colCreateTime.Visible = true; |
| | | colCreateTime.VisibleIndex = 2; |
| | | colCreateTime.Width = 130; |
| | | colDescription.AppearanceCell.Options.UseTextOptions = true; |
| | | colDescription.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 6; |
| | | colDescription.Width = 228; |
| | | // |
| | | // PipeLineManageMainPanel |
| | | // |
| | |
| | | sidePanel1.ResumeLayout(false); |
| | | sidePanel1.PerformLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)pipeLineViewModelBindingSource).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | |
| | | private DevExpress.XtraEditors.SidePanel sidePanel1; |
| | | private DevExpress.XtraGrid.GridControl gridControl1; |
| | | private DevExpress.XtraGrid.Views.Grid.GridView gridView1; |
| | | private BindingSource pipeLineViewModelBindingSource; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCaliber; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMaterial; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCoefficient; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colType; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDescription; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colHazen; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDarcy; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colManning; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colSortCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCreateName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCreateTime; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDescription; |
| | | private DevExpress.XtraBars.BarButtonItem BtnDescription; |
| | | private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup2; |
| | | } |
| | | } |