lixiaojun
2024-11-03 7507591ef45cfa8f1080f6dbf68b411edcc7f086
WinFrmUI/HStation.WinFrmUI.PhartRelation.Core/00-helper/PhartPerformCurveHelper.cs
@@ -1,4 +1,4 @@
namespace HStation.WinFrmUI.Phart
namespace HStation.WinFrmUI.PhartRelation
{
    /// <summary>
    /// 特性曲线工具
@@ -13,7 +13,7 @@
        /// <param name="PointNumber">点数量</param>
        /// <param name="MinSpace">最小间隔</param>
        /// <returns></returns>
        public static List<Yw.Geometry.Point2d> GetFeatPointList(HStation.eGraphType GraphType, string GeometryInfo, int? PointNumber, double? MinSpace)
        public static List<Yw.Geometry.Point2d> GetFeatPointList(HStation.PhartRelation.eGraphType GraphType, string GeometryInfo, int? PointNumber, double? MinSpace)
        {
            var pointNumber = 12;
            if (PointNumber.HasValue)
@@ -25,17 +25,17 @@
            {
                minSpace = MinSpace.Value;
            }
            var pts = HStation.Service.PerformCurveHelper.GetFeatPointList(GraphType, GeometryInfo, pointNumber, minSpace);
            var pts = HStation.Service.PhartRelation.PerformCurveHelper.GetFeatPointList(GraphType, GeometryInfo, pointNumber, minSpace);
            return pts?.ToList();
        }
        /// <summary>
        /// To 存储字符串
        /// </summary> 
        public static string ToDbString(HStation.eGraphType GraphType, Yw.Pump.eFeatType FeatType,List<Yw.Geometry.Point2d> PointList)
        public static string ToDbString(HStation.PhartRelation.eGraphType GraphType, Yw.Pump.eFeatType FeatType, List<Yw.Geometry.Point2d> PointList)
        {
            var pts = PointList?.Select(x => new Yw.Geometry.Point2d(x.X, x.Y)).ToList();
            var dbString = HStation.Service.PerformCurveHelper.ToDbString(GraphType, FeatType, pts);
            var dbString = HStation.Service.PhartRelation.PerformCurveHelper.ToDbString(GraphType, FeatType, pts);
            return dbString;
        }