| | |
| | | private void InitializeComponent() |
| | | { |
| | | components = new System.ComponentModel.Container(); |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions2 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ImportValvePerform2dByExcelCtrl)); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | bindingSource1 = new System.Windows.Forms.BindingSource(components); |
| | | bindingSource1 = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colID = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colQ = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colH = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colE = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colP = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colNPSH = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colL = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | btnExcelFilePath = new DevExpress.XtraEditors.ButtonEdit(); |
| | | txtCurveCode = new DevExpress.XtraEditors.TextEdit(); |
| | | Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
| | |
| | | layoutControl1.Controls.Add(gridControl1); |
| | | layoutControl1.Controls.Add(btnExcelFilePath); |
| | | layoutControl1.Controls.Add(txtCurveCode); |
| | | layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; |
| | | layoutControl1.Location = new System.Drawing.Point(0, 0); |
| | | layoutControl1.Dock = DockStyle.Fill; |
| | | layoutControl1.Location = new Point(0, 0); |
| | | layoutControl1.Name = "layoutControl1"; |
| | | layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(784, 368, 986, 935); |
| | | layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(784, 368, 986, 935); |
| | | layoutControl1.Root = Root; |
| | | layoutControl1.Size = new System.Drawing.Size(425, 660); |
| | | layoutControl1.Size = new Size(425, 660); |
| | | layoutControl1.TabIndex = 0; |
| | | layoutControl1.Text = "layoutControl1"; |
| | | // |
| | | // gridControl1 |
| | | // |
| | | gridControl1.DataSource = bindingSource1; |
| | | gridControl1.Location = new System.Drawing.Point(0, 153); |
| | | gridControl1.Location = new Point(0, 153); |
| | | gridControl1.MainView = gridView1; |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.Size = new System.Drawing.Size(425, 507); |
| | | gridControl1.Size = new Size(425, 507); |
| | | gridControl1.TabIndex = 9; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colID, colQ, colH, colE, colP, colNPSH }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colID, colQ, colL }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsView.ShowDetailButtons = false; |
| | |
| | | colQ.Visible = true; |
| | | colQ.VisibleIndex = 0; |
| | | // |
| | | // colH |
| | | // colL |
| | | // |
| | | colH.AppearanceCell.Options.UseTextOptions = true; |
| | | colH.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colH.AppearanceHeader.Options.UseTextOptions = true; |
| | | colH.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colH.Caption = "扬程"; |
| | | colH.FieldName = "H"; |
| | | colH.Name = "colH"; |
| | | colH.Visible = true; |
| | | colH.VisibleIndex = 1; |
| | | // |
| | | // colE |
| | | // |
| | | colE.AppearanceCell.Options.UseTextOptions = true; |
| | | colE.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colE.AppearanceHeader.Options.UseTextOptions = true; |
| | | colE.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colE.Caption = "效率"; |
| | | colE.FieldName = "E"; |
| | | colE.Name = "colE"; |
| | | colE.Visible = true; |
| | | colE.VisibleIndex = 2; |
| | | // |
| | | // colP |
| | | // |
| | | colP.AppearanceCell.Options.UseTextOptions = true; |
| | | colP.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colP.AppearanceHeader.Options.UseTextOptions = true; |
| | | colP.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colP.Caption = "功率"; |
| | | colP.FieldName = "P"; |
| | | colP.Name = "colP"; |
| | | colP.Visible = true; |
| | | colP.VisibleIndex = 3; |
| | | // |
| | | // colNPSH |
| | | // |
| | | colNPSH.FieldName = "NPSH"; |
| | | colNPSH.Name = "colNPSH"; |
| | | colL.AppearanceCell.Options.UseTextOptions = true; |
| | | colL.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colL.AppearanceHeader.Options.UseTextOptions = true; |
| | | colL.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colL.Caption = "水损"; |
| | | colL.FieldName = "L"; |
| | | colL.Name = "colL"; |
| | | colL.Visible = true; |
| | | colL.VisibleIndex = 1; |
| | | // |
| | | // btnExcelFilePath |
| | | // |
| | | btnExcelFilePath.Location = new System.Drawing.Point(70, 45); |
| | | btnExcelFilePath.Location = new Point(70, 45); |
| | | btnExcelFilePath.Name = "btnExcelFilePath"; |
| | | editorButtonImageOptions1.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions1.SvgImage"); |
| | | editorButtonImageOptions1.SvgImageSize = new System.Drawing.Size(14, 14); |
| | | btnExcelFilePath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); |
| | | btnExcelFilePath.Size = new System.Drawing.Size(343, 31); |
| | | editorButtonImageOptions2.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions2.SvgImage"); |
| | | editorButtonImageOptions2.SvgImageSize = new Size(14, 14); |
| | | btnExcelFilePath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); |
| | | btnExcelFilePath.Size = new Size(343, 31); |
| | | btnExcelFilePath.StyleController = layoutControl1; |
| | | btnExcelFilePath.TabIndex = 18; |
| | | btnExcelFilePath.ButtonClick += btnExcelFilePath_ButtonClick; |
| | | // |
| | | // txtCurveCode |
| | | // |
| | | txtCurveCode.Location = new System.Drawing.Point(70, 80); |
| | | txtCurveCode.Location = new Point(70, 80); |
| | | txtCurveCode.Name = "txtCurveCode"; |
| | | txtCurveCode.Size = new System.Drawing.Size(343, 28); |
| | | txtCurveCode.Size = new Size(343, 28); |
| | | txtCurveCode.StyleController = layoutControl1; |
| | | txtCurveCode.TabIndex = 19; |
| | | // |
| | |
| | | Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlGroup1, layoutControlGroup2 }); |
| | | Root.Name = "Root"; |
| | | Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); |
| | | Root.Size = new System.Drawing.Size(425, 660); |
| | | Root.Size = new Size(425, 660); |
| | | Root.TextVisible = false; |
| | | // |
| | | // layoutControlGroup1 |
| | | // |
| | | layoutControlGroup1.GroupStyle = DevExpress.Utils.GroupStyle.Title; |
| | | layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem6, layoutControlItem7 }); |
| | | layoutControlGroup1.Location = new System.Drawing.Point(0, 0); |
| | | layoutControlGroup1.Location = new Point(0, 0); |
| | | layoutControlGroup1.Name = "layoutControlGroup1"; |
| | | layoutControlGroup1.Size = new System.Drawing.Size(425, 120); |
| | | layoutControlGroup1.Size = new Size(425, 120); |
| | | layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); |
| | | layoutControlGroup1.Text = "曲线信息"; |
| | | // |
| | | // layoutControlItem6 |
| | | // |
| | | layoutControlItem6.Control = btnExcelFilePath; |
| | | layoutControlItem6.Location = new System.Drawing.Point(0, 0); |
| | | layoutControlItem6.Location = new Point(0, 0); |
| | | layoutControlItem6.Name = "layoutControlItem6"; |
| | | layoutControlItem6.Size = new System.Drawing.Size(405, 35); |
| | | layoutControlItem6.Size = new Size(405, 35); |
| | | layoutControlItem6.Text = "Excel:"; |
| | | layoutControlItem6.TextSize = new System.Drawing.Size(46, 22); |
| | | layoutControlItem6.TextSize = new Size(46, 22); |
| | | // |
| | | // layoutControlItem7 |
| | | // |
| | | layoutControlItem7.Control = txtCurveCode; |
| | | layoutControlItem7.Location = new System.Drawing.Point(0, 35); |
| | | layoutControlItem7.Location = new Point(0, 35); |
| | | layoutControlItem7.Name = "layoutControlItem7"; |
| | | layoutControlItem7.Size = new System.Drawing.Size(405, 32); |
| | | layoutControlItem7.Size = new Size(405, 32); |
| | | layoutControlItem7.Text = "名称:"; |
| | | layoutControlItem7.TextSize = new System.Drawing.Size(46, 22); |
| | | layoutControlItem7.TextSize = new Size(46, 22); |
| | | // |
| | | // layoutControlGroup2 |
| | | // |
| | | layoutControlGroup2.GroupStyle = DevExpress.Utils.GroupStyle.Title; |
| | | layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem3 }); |
| | | layoutControlGroup2.Location = new System.Drawing.Point(0, 120); |
| | | layoutControlGroup2.Location = new Point(0, 120); |
| | | layoutControlGroup2.Name = "layoutControlGroup2"; |
| | | layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); |
| | | layoutControlGroup2.Size = new System.Drawing.Size(425, 540); |
| | | layoutControlGroup2.Size = new Size(425, 540); |
| | | layoutControlGroup2.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); |
| | | layoutControlGroup2.Text = "曲线定义点"; |
| | | // |
| | | // layoutControlItem3 |
| | | // |
| | | layoutControlItem3.Control = gridControl1; |
| | | layoutControlItem3.Location = new System.Drawing.Point(0, 0); |
| | | layoutControlItem3.Location = new Point(0, 0); |
| | | layoutControlItem3.Name = "layoutControlItem3"; |
| | | layoutControlItem3.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); |
| | | layoutControlItem3.Size = new System.Drawing.Size(425, 507); |
| | | layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); |
| | | layoutControlItem3.Size = new Size(425, 507); |
| | | layoutControlItem3.TextSize = new Size(0, 0); |
| | | layoutControlItem3.TextVisible = false; |
| | | // |
| | | // sidePanel1 |
| | | // |
| | | sidePanel1.Controls.Add(layoutControl1); |
| | | sidePanel1.Dock = System.Windows.Forms.DockStyle.Left; |
| | | sidePanel1.Location = new System.Drawing.Point(0, 0); |
| | | sidePanel1.Dock = DockStyle.Left; |
| | | sidePanel1.Location = new Point(0, 0); |
| | | sidePanel1.Name = "sidePanel1"; |
| | | sidePanel1.Size = new System.Drawing.Size(426, 660); |
| | | sidePanel1.Size = new Size(426, 660); |
| | | sidePanel1.TabIndex = 2; |
| | | sidePanel1.Text = "sidePanel1"; |
| | | // |
| | | // cubicSpline2dChart1 |
| | | // xtrPerform2dChart1 |
| | | // |
| | | xtrPerform2dChart1.DefinePointVisible = false; |
| | | xtrPerform2dChart1.Dock = System.Windows.Forms.DockStyle.Fill; |
| | | xtrPerform2dChart1.Dock = DockStyle.Fill; |
| | | xtrPerform2dChart1.LineVisible = false; |
| | | xtrPerform2dChart1.Location = new System.Drawing.Point(426, 0); |
| | | xtrPerform2dChart1.Name = "cubicSpline2dChart1"; |
| | | xtrPerform2dChart1.Size = new System.Drawing.Size(574, 660); |
| | | xtrPerform2dChart1.Location = new Point(426, 0); |
| | | xtrPerform2dChart1.Name = "xtrPerform2dChart1"; |
| | | xtrPerform2dChart1.Size = new Size(574, 660); |
| | | xtrPerform2dChart1.TabIndex = 3; |
| | | // |
| | | // ImportCurveByExcelCtrl |
| | | // ImportValvePerform2dByExcelCtrl |
| | | // |
| | | Appearance.BackColor = System.Drawing.SystemColors.Control; |
| | | Appearance.BackColor = SystemColors.Control; |
| | | Appearance.Options.UseBackColor = true; |
| | | AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; |
| | | AutoScaleMode = AutoScaleMode.None; |
| | | Controls.Add(xtrPerform2dChart1); |
| | | Controls.Add(sidePanel1); |
| | | Name = "ImportCurveByExcelCtrl"; |
| | | Size = new System.Drawing.Size(1000, 660); |
| | | Name = "ImportValvePerform2dByExcelCtrl"; |
| | | Size = new Size(1000, 660); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); |
| | | layoutControl1.ResumeLayout(false); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit(); |
| | |
| | | private DevExpress.XtraGrid.Views.Grid.GridView gridView1; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colID; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colQ; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colH; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colE; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colP; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colNPSH; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colL; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; |
| | | private DevExpress.XtraEditors.ButtonEdit btnExcelFilePath; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; |