duheng
2024-12-24 422bb59e2c51524096faaafbe7cabccdc3efb701
WinFrmUI/Yw.WinFrmUI.Phart.Core/02-pump/04-special/03-run-view/PumpRunViewChart.cs
@@ -524,7 +524,9 @@
                        for (int i = 0; i < _vm.Items.Count; i++)
                        {
                            var vm = _vm.Items[i];
                            CreateCurrentLineSeries(vm.Id, vm.Color, vm.CurveName, vm.CurveQH, vm.CurveQE, vm.CurveQP);
                            Yw.Geometry.Point2d run_pt = new Geometry.Point2d(vm.Q  , vm.H);
                            CreateCurrentLineSeries(vm.Id, vm.Color, vm.CurveName, vm.CurveQH, vm.CurveQE, vm.CurveQP, run_pt);
                        }
                    }
                }
@@ -536,7 +538,7 @@
        /// <summary>
        /// 创建线系列
        /// </summary> 
        private void CreateLineSeries(string id, Color color, string curve_name, Yw.Geometry.CubicSpline2d qh, Yw.Geometry.CubicSpline2d qe, Yw.Geometry.CubicSpline2d qp)
        private void CreateLineSeries(string id, Color color, string curve_name, Yw.Geometry.CubicSpline2d qh, Yw.Geometry.CubicSpline2d qe, Yw.Geometry.CubicSpline2d qp,Yw.Geometry.Point2d run_pt=null)
        {
            var series_qh = new DevExpress.XtraCharts.Series();
            series_qh.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Numerical;
@@ -567,8 +569,17 @@
            var point_qh = pt_qh_list[pt_qh_list.Count - 1];
            var anchor_qh_pt = new DevExpress.XtraCharts.PaneAnchorPoint();
            anchor_qh_pt.Pane = _default_pane;
            anchor_qh_pt.AxisXCoordinate.AxisValue = point_qh.X.ToString();
            anchor_qh_pt.AxisYCoordinate.AxisValue = point_qh.Y.ToString();
            if (run_pt!=null)
            {
                anchor_qh_pt.AxisXCoordinate.AxisValue = run_pt.X.ToString();
                anchor_qh_pt.AxisYCoordinate.AxisValue = run_pt.Y.ToString();
            }
            else
            {
                anchor_qh_pt.AxisXCoordinate.AxisValue = point_qh.X.ToString();
                anchor_qh_pt.AxisYCoordinate.AxisValue = point_qh.Y.ToString();
            }
            var position_qh = new DevExpress.XtraCharts.RelativePosition();
            position_qh.Angle = -50;
@@ -671,7 +682,7 @@
        /// <summary>
        /// 创建线系列
        /// </summary> 
        private void CreateCurrentLineSeries(string id, Color color, string curve_name, Yw.Geometry.CubicSpline2d qh, Yw.Geometry.CubicSpline2d qe, Yw.Geometry.CubicSpline2d qp)
        private void CreateCurrentLineSeries(string id, Color color, string curve_name, Yw.Geometry.CubicSpline2d qh, Yw.Geometry.CubicSpline2d qe, Yw.Geometry.CubicSpline2d qp,Yw.Geometry.Point2d run_pt=null)
        {
            var series_qh = new DevExpress.XtraCharts.Series();
            series_qh.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Numerical;
@@ -702,8 +713,17 @@
            var point_qh = pt_qh_list[pt_qh_list.Count() - 1];
            var anchor_qh_pt = new DevExpress.XtraCharts.PaneAnchorPoint();
            anchor_qh_pt.Pane = _default_pane;
            anchor_qh_pt.AxisXCoordinate.AxisValue = point_qh.X.ToString();
            anchor_qh_pt.AxisYCoordinate.AxisValue = point_qh.Y.ToString();
            if (run_pt!=null)
            {
                anchor_qh_pt.AxisXCoordinate.AxisValue = run_pt.X.ToString();
                anchor_qh_pt.AxisYCoordinate.AxisValue = run_pt.Y.ToString();
            }
            else
            {
                anchor_qh_pt.AxisXCoordinate.AxisValue = point_qh.X.ToString();
                anchor_qh_pt.AxisYCoordinate.AxisValue = point_qh.Y.ToString();
            }
            var position_qh = new DevExpress.XtraCharts.RelativePosition();
            position_qh.Angle = -50;