lixiaojun
2024-11-30 cb12c35c7af4350b0f38b6d90a15d8bd9796b8c5
WinFrmUI/HStation.WinFrmUI.PhartRelation.Core/PumpParallelAnalyDlg.cs
@@ -9,8 +9,8 @@
        public PumpParallelAnalyDlg()
        {
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
            this.pumpSerialParallelChart.LineVisible = true;
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
            this.pumpSerialParallelChart.SetQeVisible(false);
            this.pumpParallelInfoCtrl1.SetEvent += (id, qh, qe, qp) =>
            {
                var list = this.pumpParallelInfoCtrl1.GetRunList();
@@ -23,7 +23,7 @@
            this.pumpParallelInfoCtrl1.SetDesignPointEvent += (q, h) =>
            {
                this.pumpSerialParallelChart.SetDesignPt(new Point2d(q, h));
                this.pumpSerialParallelChart.SetEquipPt(new Point2d(q, h));
            };
            this.pumpParallelInfoCtrl1.AddEvent += (vm) =>
@@ -168,8 +168,7 @@
            this.pumpParallelInfoCtrl1.SetBindingData(vm_list, null);
            var run_list = this.pumpParallelInfoCtrl1.GetRunList();
            var msg = SetParallel(run_list);
            this.pumpSerialParallelChart.SetQeVisible(false);
            var msg = SetParallel(run_list);
            if (!string.IsNullOrEmpty(msg))
            {
                return msg;
@@ -254,12 +253,12 @@
            vm_sp.QpCalc = qp;
            vm_sp.CalcuH = total_head;
            vm_sp.CalcuQ = total_flow ;
            vm_sp.CalcuQ = total_flow;
            vm_sp.Color = Color.Black;
            vm_sp.IsBp = true;
            vm_sp.IsDefault = true;
            vm_sp.IsDefault = true;
            return vm_sp;
        }
@@ -281,9 +280,9 @@
                total_flow = Math.Round(total_flow, 1);
                total_head = Math.Round(total_head, 1);
                this.pumpParallelInfoCtrl1.SetDesignPoint(total_flow, total_head);
                this.pumpSerialParallelChart.CalcWorkPointByQ(total_flow);
                this.pumpSerialParallelChart.CalcWorkPointByQ(total_flow);
            }
        }