qin
2025-03-21 b6da0632c9704414934df0817386976eca1548a2
数据分析优化
已修改4个文件
187 ■■■■■ 文件已修改
WinFrmUI/PBS.WinFrmUI.DataAnalysis/EnergyAnalysis.Designer.cs 90 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/PBS.WinFrmUI.DataAnalysis/EnergyAnalysis.cs 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/PBS.WinFrmUI.DataAnalysis/Form/SetPressForm.Designer.cs 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/PBS.WinFrmUI.DataAnalysis/Form/SetPressForm.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/PBS.WinFrmUI.DataAnalysis/EnergyAnalysis.Designer.cs
@@ -52,7 +52,6 @@
            splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl();
            dataLayoutControl1 = new DevExpress.XtraDataLayout.DataLayoutControl();
            textEdit5 = new DevExpress.XtraEditors.TextEdit();
            textEdit4 = new DevExpress.XtraEditors.TextEdit();
            textEdit3 = new DevExpress.XtraEditors.TextEdit();
            textEdit2 = new DevExpress.XtraEditors.TextEdit();
            textEdit1 = new DevExpress.XtraEditors.TextEdit();
@@ -61,11 +60,12 @@
            emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
            layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
            layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
            layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
            layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
            xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage();
            gridControl1 = new DevExpress.XtraGrid.GridControl();
            gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
            textEdit4 = new DevExpress.XtraEditors.TextEdit();
            layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
            ((System.ComponentModel.ISupportInitialize)ribbonControl1).BeginInit();
            ((System.ComponentModel.ISupportInitialize)chartControl1).BeginInit();
            ((System.ComponentModel.ISupportInitialize)xyDiagram1).BeginInit();
@@ -86,7 +86,6 @@
            ((System.ComponentModel.ISupportInitialize)dataLayoutControl1).BeginInit();
            dataLayoutControl1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)textEdit5.Properties).BeginInit();
            ((System.ComponentModel.ISupportInitialize)textEdit4.Properties).BeginInit();
            ((System.ComponentModel.ISupportInitialize)textEdit3.Properties).BeginInit();
            ((System.ComponentModel.ISupportInitialize)textEdit2.Properties).BeginInit();
            ((System.ComponentModel.ISupportInitialize)textEdit1.Properties).BeginInit();
@@ -95,11 +94,12 @@
            ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem5).BeginInit();
            xtraTabPage2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)gridControl1).BeginInit();
            ((System.ComponentModel.ISupportInitialize)gridView1).BeginInit();
            ((System.ComponentModel.ISupportInitialize)textEdit4.Properties).BeginInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit();
            SuspendLayout();
            // 
            // ribbonControl1
@@ -129,7 +129,7 @@
            // 
            // barButtonItem2
            // 
            barButtonItem2.Caption = "设置压力";
            barButtonItem2.Caption = "参数配置";
            barButtonItem2.Id = 2;
            barButtonItem2.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barButtonItem2.ImageOptions.SvgImage");
            barButtonItem2.Name = "barButtonItem2";
@@ -246,8 +246,8 @@
            // 
            // dataLayoutControl1
            // 
            dataLayoutControl1.Controls.Add(textEdit5);
            dataLayoutControl1.Controls.Add(textEdit4);
            dataLayoutControl1.Controls.Add(textEdit5);
            dataLayoutControl1.Controls.Add(textEdit3);
            dataLayoutControl1.Controls.Add(textEdit2);
            dataLayoutControl1.Controls.Add(textEdit1);
@@ -261,46 +261,37 @@
            // 
            // textEdit5
            // 
            textEdit5.Location = new Point(96, 108);
            textEdit5.Location = new Point(132, 108);
            textEdit5.MenuManager = ribbonControl1;
            textEdit5.Name = "textEdit5";
            textEdit5.Size = new Size(109, 20);
            textEdit5.Size = new Size(73, 20);
            textEdit5.StyleController = dataLayoutControl1;
            textEdit5.TabIndex = 8;
            // 
            // textEdit4
            //
            textEdit4.Location = new Point(96, 84);
            textEdit4.MenuManager = ribbonControl1;
            textEdit4.Name = "textEdit4";
            textEdit4.Size = new Size(109, 20);
            textEdit4.StyleController = dataLayoutControl1;
            textEdit4.TabIndex = 7;
            //
            // textEdit3
            // 
            textEdit3.Location = new Point(96, 60);
            textEdit3.Location = new Point(132, 60);
            textEdit3.MenuManager = ribbonControl1;
            textEdit3.Name = "textEdit3";
            textEdit3.Size = new Size(109, 20);
            textEdit3.Size = new Size(73, 20);
            textEdit3.StyleController = dataLayoutControl1;
            textEdit3.TabIndex = 6;
            // 
            // textEdit2
            // 
            textEdit2.Location = new Point(96, 36);
            textEdit2.Location = new Point(132, 36);
            textEdit2.MenuManager = ribbonControl1;
            textEdit2.Name = "textEdit2";
            textEdit2.Size = new Size(109, 20);
            textEdit2.Size = new Size(73, 20);
            textEdit2.StyleController = dataLayoutControl1;
            textEdit2.TabIndex = 5;
            // 
            // textEdit1
            // 
            textEdit1.Location = new Point(96, 12);
            textEdit1.Location = new Point(132, 12);
            textEdit1.MenuManager = ribbonControl1;
            textEdit1.Name = "textEdit1";
            textEdit1.Size = new Size(109, 20);
            textEdit1.Size = new Size(73, 20);
            textEdit1.StyleController = dataLayoutControl1;
            textEdit1.TabIndex = 4;
            // 
@@ -308,7 +299,7 @@
            // 
            Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
            Root.GroupBordersVisible = false;
            Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, emptySpaceItem1, layoutControlItem2, layoutControlItem3, layoutControlItem4, layoutControlItem5 });
            Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, emptySpaceItem1, layoutControlItem2, layoutControlItem3, layoutControlItem5, layoutControlItem4 });
            Root.Name = "Root";
            Root.Size = new Size(217, 535);
            Root.TextVisible = false;
@@ -319,8 +310,8 @@
            layoutControlItem1.Location = new Point(0, 0);
            layoutControlItem1.Name = "layoutControlItem1";
            layoutControlItem1.Size = new Size(197, 24);
            layoutControlItem1.Text = "数据天数:";
            layoutControlItem1.TextSize = new Size(72, 14);
            layoutControlItem1.Text = "数据天数(天):";
            layoutControlItem1.TextSize = new Size(108, 14);
            // 
            // emptySpaceItem1
            // 
@@ -336,8 +327,8 @@
            layoutControlItem2.Location = new Point(0, 24);
            layoutControlItem2.Name = "layoutControlItem2";
            layoutControlItem2.Size = new Size(197, 24);
            layoutControlItem2.Text = "总流量:";
            layoutControlItem2.TextSize = new Size(72, 14);
            layoutControlItem2.Text = "总用水量(m³):";
            layoutControlItem2.TextSize = new Size(108, 14);
            // 
            // layoutControlItem3
            // 
@@ -345,17 +336,8 @@
            layoutControlItem3.Location = new Point(0, 48);
            layoutControlItem3.Name = "layoutControlItem3";
            layoutControlItem3.Size = new Size(197, 24);
            layoutControlItem3.Text = "总节电量:";
            layoutControlItem3.TextSize = new Size(72, 14);
            //
            // layoutControlItem4
            //
            layoutControlItem4.Control = textEdit4;
            layoutControlItem4.Location = new Point(0, 72);
            layoutControlItem4.Name = "layoutControlItem4";
            layoutControlItem4.Size = new Size(197, 24);
            layoutControlItem4.Text = "节电率:";
            layoutControlItem4.TextSize = new Size(72, 14);
            layoutControlItem3.Text = "总节电量(kW):";
            layoutControlItem3.TextSize = new Size(108, 14);
            // 
            // layoutControlItem5
            // 
@@ -363,8 +345,8 @@
            layoutControlItem5.Location = new Point(0, 96);
            layoutControlItem5.Name = "layoutControlItem5";
            layoutControlItem5.Size = new Size(197, 24);
            layoutControlItem5.Text = "总节电费用:";
            layoutControlItem5.TextSize = new Size(72, 14);
            layoutControlItem5.Text = "总节电费用(元):";
            layoutControlItem5.TextSize = new Size(108, 14);
            // 
            // xtraTabPage2
            // 
@@ -392,6 +374,24 @@
            gridView1.OptionsDragDrop.AllowDataReordering = false;
            gridView1.OptionsDragDrop.AllowSortedDataDragDrop = false;
            gridView1.OptionsView.ShowGroupPanel = false;
            //
            // textEdit4
            //
            textEdit4.Location = new Point(132, 84);
            textEdit4.MenuManager = ribbonControl1;
            textEdit4.Name = "textEdit4";
            textEdit4.Size = new Size(73, 20);
            textEdit4.StyleController = dataLayoutControl1;
            textEdit4.TabIndex = 9;
            //
            // layoutControlItem4
            //
            layoutControlItem4.Control = textEdit4;
            layoutControlItem4.Location = new Point(0, 72);
            layoutControlItem4.Name = "layoutControlItem4";
            layoutControlItem4.Size = new Size(197, 24);
            layoutControlItem4.Text = "节能率(%)";
            layoutControlItem4.TextSize = new Size(108, 14);
            // 
            // EnergyAnalysis
            // 
@@ -423,7 +423,6 @@
            ((System.ComponentModel.ISupportInitialize)dataLayoutControl1).EndInit();
            dataLayoutControl1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)textEdit5.Properties).EndInit();
            ((System.ComponentModel.ISupportInitialize)textEdit4.Properties).EndInit();
            ((System.ComponentModel.ISupportInitialize)textEdit3.Properties).EndInit();
            ((System.ComponentModel.ISupportInitialize)textEdit2.Properties).EndInit();
            ((System.ComponentModel.ISupportInitialize)textEdit1.Properties).EndInit();
@@ -432,11 +431,12 @@
            ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem4).EndInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem5).EndInit();
            xtraTabPage2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit();
            ((System.ComponentModel.ISupportInitialize)gridView1).EndInit();
            ((System.ComponentModel.ISupportInitialize)textEdit4.Properties).EndInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem4).EndInit();
            ResumeLayout(false);
            PerformLayout();
        }
@@ -457,7 +457,6 @@
        private DevExpress.XtraEditors.SplitContainerControl splitContainerControl1;
        private DevExpress.XtraDataLayout.DataLayoutControl dataLayoutControl1;
        private DevExpress.XtraEditors.TextEdit textEdit5;
        private DevExpress.XtraEditors.TextEdit textEdit4;
        private DevExpress.XtraEditors.TextEdit textEdit3;
        private DevExpress.XtraEditors.TextEdit textEdit2;
        private DevExpress.XtraEditors.TextEdit textEdit1;
@@ -466,7 +465,8 @@
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
        private DevExpress.XtraEditors.TextEdit textEdit4;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
    }
}
WinFrmUI/PBS.WinFrmUI.DataAnalysis/EnergyAnalysis.cs
@@ -111,7 +111,7 @@
            colTime.Caption = "时间";
            colTime.Visible = true;
            view.Columns.Add(colTime);
            var totalFlow = new List<double>();
            foreach (var vm in vm_list)
            {
                if (!vm.Name.Contains("压力"))
@@ -119,6 +119,7 @@
                    axis_x = _axis_x_flow;
                    axis_y = _axis_y_head;
                    pane = _default_pane;
                    totalFlow = vm.Datas.Select(c => c.Y).ToList();
                }
                else
                {
@@ -136,10 +137,28 @@
                AddLineSeries(vm.Name, axis_x, axis_y, pane, vm.Datas);
            }
            var tempdatas = vm_list[0];
            double totalEl = 0;
            double totalOldEl = 0;
            double totalFy = 0;
            var tempdatas = vm_list.FirstOrDefault(c => c.Name.Contains("压力"));
            var tempflow = vm_list.FirstOrDefault(c => c.Name.Contains("流量"));
            foreach (var item in tempdatas.Datas)
            {
                item.Y = Press;
                var flow = tempflow.Datas.FirstOrDefault(c => c.Time == item.Time);
                if (flow != null)
                {
                    var oldpressM = Yw.Pump.CalculationHelper.Mpa2M(Press);
                    var newpressM = Yw.Pump.CalculationHelper.Mpa2M(item.Y);
                    var oldel = Yw.Pump.CalculationHelper.CalcuP(flow.Y, oldpressM, Efficiency);
                    var newel = Yw.Pump.CalculationHelper.CalcuP(flow.Y, newpressM, Efficiency);
                    var el = oldel - newel;
                    totalOldEl += oldel;
                    totalEl += el;
                    var Fy = ElecPriceHelper.CalcuShysElectricityFees(DateTime.Parse(item.Time), el);
                    totalFy += Fy;
                }
                item.Y = Press;//Yw.Pump.CalculationHelper.CalcuP();
            }
            AddLineSeries("原泵后压力", axis_x, _axis_y_eff, _default_pane, tempdatas.Datas);
@@ -155,7 +174,11 @@
            _axis_x_flow.VisualRange.SetMinMaxValues(min_x, max_x);
            var diff_days = max_x - min_x;
            textEdit1.Text =  diff_days.TotalDays.ToString();
            textEdit1.Text = Math.Round(diff_days.TotalDays).ToString();
            textEdit2.Text = Math.Round(totalFlow.Sum() / 60).ToString();
            textEdit3.Text = Math.Round(totalEl).ToString();
            textEdit4.Text = Math.Round(totalEl / totalOldEl * 100).ToString();
            textEdit5.Text = Math.Round(totalFy).ToString();
            gridControl1.DataSource = dataTable;
            this.chartControl1.EndInit();
@@ -317,7 +340,7 @@
                dataTable.Rows.Add(rowData);
            }
            //Yw.Pump.CalculationHelper.CalcuP();
            return "";
@@ -325,12 +348,15 @@
        }
        double Press = 0.6;
        double Efficiency = 75;
        SetPressForm dlg = new SetPressForm();
        private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var dlg = new SetPressForm();
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                Press = dlg.Press;
                Efficiency = dlg.Efficiency;
            }
        }
    }
WinFrmUI/PBS.WinFrmUI.DataAnalysis/Form/SetPressForm.Designer.cs
@@ -29,38 +29,51 @@
        private void InitializeComponent()
        {
            dataLayoutControl1 = new DevExpress.XtraDataLayout.DataLayoutControl();
            textEdit2 = new DevExpress.XtraEditors.TextEdit();
            simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
            textEdit1 = new DevExpress.XtraEditors.TextEdit();
            Root = new DevExpress.XtraLayout.LayoutControlGroup();
            layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
            emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
            layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
            layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
            ((System.ComponentModel.ISupportInitialize)dataLayoutControl1).BeginInit();
            dataLayoutControl1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)textEdit2.Properties).BeginInit();
            ((System.ComponentModel.ISupportInitialize)textEdit1.Properties).BeginInit();
            ((System.ComponentModel.ISupportInitialize)Root).BeginInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit();
            ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit();
            SuspendLayout();
            // 
            // dataLayoutControl1
            // 
            dataLayoutControl1.Controls.Add(textEdit2);
            dataLayoutControl1.Controls.Add(simpleButton1);
            dataLayoutControl1.Controls.Add(textEdit1);
            dataLayoutControl1.Dock = DockStyle.Fill;
            dataLayoutControl1.Location = new Point(0, 0);
            dataLayoutControl1.Name = "dataLayoutControl1";
            dataLayoutControl1.Root = Root;
            dataLayoutControl1.Size = new Size(377, 67);
            dataLayoutControl1.Size = new Size(377, 113);
            dataLayoutControl1.TabIndex = 0;
            dataLayoutControl1.Text = "dataLayoutControl1";
            // 
            // textEdit2
            //
            textEdit2.Location = new Point(120, 36);
            textEdit2.Name = "textEdit2";
            textEdit2.Size = new Size(245, 20);
            textEdit2.StyleController = dataLayoutControl1;
            textEdit2.TabIndex = 6;
            //
            // simpleButton1
            // 
            simpleButton1.Location = new Point(259, 12);
            simpleButton1.Location = new Point(190, 60);
            simpleButton1.Name = "simpleButton1";
            simpleButton1.Size = new Size(106, 22);
            simpleButton1.Size = new Size(175, 22);
            simpleButton1.StyleController = dataLayoutControl1;
            simpleButton1.TabIndex = 5;
            simpleButton1.Text = "确定";
@@ -68,9 +81,9 @@
            // 
            // textEdit1
            // 
            textEdit1.Location = new Point(106, 12);
            textEdit1.Location = new Point(120, 12);
            textEdit1.Name = "textEdit1";
            textEdit1.Size = new Size(149, 20);
            textEdit1.Size = new Size(245, 20);
            textEdit1.StyleController = dataLayoutControl1;
            textEdit1.TabIndex = 4;
            // 
@@ -78,9 +91,9 @@
            // 
            Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
            Root.GroupBordersVisible = false;
            Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, emptySpaceItem1, layoutControlItem2 });
            Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, emptySpaceItem1, layoutControlItem3, layoutControlItem2 });
            Root.Name = "Root";
            Root.Size = new Size(377, 67);
            Root.Size = new Size(377, 113);
            Root.TextVisible = false;
            // 
            // layoutControlItem1
@@ -88,24 +101,33 @@
            layoutControlItem1.Control = textEdit1;
            layoutControlItem1.Location = new Point(0, 0);
            layoutControlItem1.Name = "layoutControlItem1";
            layoutControlItem1.Size = new Size(247, 26);
            layoutControlItem1.Size = new Size(357, 24);
            layoutControlItem1.Text = "压力(MPa):";
            layoutControlItem1.TextSize = new Size(82, 14);
            layoutControlItem1.TextSize = new Size(96, 14);
            // 
            // emptySpaceItem1
            // 
            emptySpaceItem1.AllowHotTrack = false;
            emptySpaceItem1.Location = new Point(0, 26);
            emptySpaceItem1.Location = new Point(0, 48);
            emptySpaceItem1.Name = "emptySpaceItem1";
            emptySpaceItem1.Size = new Size(357, 21);
            emptySpaceItem1.Size = new Size(178, 45);
            emptySpaceItem1.TextSize = new Size(0, 0);
            //
            // layoutControlItem3
            //
            layoutControlItem3.Control = textEdit2;
            layoutControlItem3.Location = new Point(0, 24);
            layoutControlItem3.Name = "layoutControlItem3";
            layoutControlItem3.Size = new Size(357, 24);
            layoutControlItem3.Text = "泵运行效率(%)";
            layoutControlItem3.TextSize = new Size(96, 14);
            // 
            // layoutControlItem2
            // 
            layoutControlItem2.Control = simpleButton1;
            layoutControlItem2.Location = new Point(247, 0);
            layoutControlItem2.Location = new Point(178, 48);
            layoutControlItem2.Name = "layoutControlItem2";
            layoutControlItem2.Size = new Size(110, 26);
            layoutControlItem2.Size = new Size(179, 45);
            layoutControlItem2.TextSize = new Size(0, 0);
            layoutControlItem2.TextVisible = false;
            // 
@@ -113,19 +135,21 @@
            // 
            AutoScaleDimensions = new SizeF(7F, 17F);
            AutoScaleMode = AutoScaleMode.Font;
            ClientSize = new Size(377, 67);
            ClientSize = new Size(377, 113);
            Controls.Add(dataLayoutControl1);
            MaximizeBox = false;
            MinimizeBox = false;
            Name = "SetPressForm";
            StartPosition = FormStartPosition.CenterScreen;
            Text = "设置压力";
            Text = "参数配置";
            ((System.ComponentModel.ISupportInitialize)dataLayoutControl1).EndInit();
            dataLayoutControl1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)textEdit2.Properties).EndInit();
            ((System.ComponentModel.ISupportInitialize)textEdit1.Properties).EndInit();
            ((System.ComponentModel.ISupportInitialize)Root).EndInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit();
            ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit();
            ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit();
            ResumeLayout(false);
        }
@@ -139,5 +163,7 @@
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
        private DevExpress.XtraEditors.TextEdit textEdit2;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
    }
}
WinFrmUI/PBS.WinFrmUI.DataAnalysis/Form/SetPressForm.cs
@@ -13,15 +13,18 @@
    public partial class SetPressForm : Form
    {
        public double Press { get; set; } = 0.6;
        public double Efficiency { get; set; } = 75;
        public SetPressForm()
        {
            InitializeComponent();
            textEdit1.Text = Press.ToString();
            textEdit2.Text = Efficiency.ToString();
        }
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            Press = double.Parse(textEdit1.Text);
            Efficiency = double.Parse(textEdit2.Text);
            DialogResult = DialogResult.OK;
            this.Close();
        }