已删除1个文件
已重命名1个文件
已修改15个文件
已添加11个文件
| | |
| | | |
| | | #region 1-pump-curve |
| | | |
| | | config.ForType<Model.PumpCurve, PumpCurveDto>(); |
| | | config.ForType<AddPumpCurveInput, Model.PumpCurve>() |
| | | .Map(dest => dest.CurveInfo, src => src.CurveInfo) |
| | | .Map(dest => dest.CurveInfo, src => src.CurveExpress.Transfer()) |
| | | .Map(dest => dest.CoordParas, src => src.CoordParas) |
| | | .Map(dest => dest.CreateUserID, src => UserManager.UserID) |
| | | .Map(dest => dest.CreateTime, src => DateTime.Now) |
| | | .Map(dest => dest.CreateUserName, src => UserManager.UserName); |
| | | config.ForType<UpdatePumpCurveInput, Model.PumpCurve>() |
| | | .Map(dest => dest.CurveInfo, src => src.CurveInfo) |
| | | .Map(dest => dest.CurveInfo, src => src.CurveExpress.Transfer()) |
| | | .Map(dest => dest.CoordParas, src => src.CoordParas) |
| | | .Map(dest => dest.UpdateTime, src => DateTime.Now) |
| | | .Map(dest => dest.UpdateUserID, src => UserManager.UserID) |
| | |
| | | #region 3-pump-curve-mapping-extension |
| | | |
| | | config.ForType<AddPumpCurveExMappingInput, Model.PumpCurve>() |
| | | .Map(dest => dest.CurveInfo, src => src.CurveInfo) |
| | | .Map(dest => dest.CurveInfo, src => src.CurveExpress.Transfer()) |
| | | .Map(dest => dest.CoordParas, src => src.CoordParas) |
| | | .Map(dest => dest.CreateUserID, src => UserManager.UserID) |
| | | .Map(dest => dest.CreateTime, src => DateTime.Now) |
| | | .Map(dest => dest.CreateUserName, src => UserManager.UserName); |
| | | |
| | | config.ForType<UpdatePumpCurveExMappingInput, Model.PumpCurve>() |
| | | .Map(dest => dest.CurveInfo, src => src.CurveInfo) |
| | | .Map(dest => dest.CurveInfo, src => src.CurveExpress.Transfer()) |
| | | .Map(dest => dest.CoordParas, src => src.CoordParas) |
| | | .Map(dest => dest.UpdateTime, src => DateTime.Now) |
| | | .Map(dest => dest.UpdateUserID, src => UserManager.UserID) |
| | |
| | | /// </summary> |
| | | public static class Extensions |
| | | { |
| | | /// <summary> |
| | | /// è½¬æ¢ |
| | | /// </summary> |
| | | public static Yw.Model.Curve.PumpCurveInfoModel Transfer(this PumpCurveExpressInput input) |
| | | { |
| | | if (input == null) |
| | | { |
| | | return default; |
| | | } |
| | | var vm = new Yw.Model.Curve.PumpCurveInfoModel(); |
| | | vm.CurveQH = input.CurveQH.Transfer(); |
| | | vm.CurveQP = input.CurveQP.Transfer(); |
| | | vm.CurveQE = input.CurveQE.Transfer(); |
| | | return vm; |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// è½¬æ¢ |
| | | /// </summary> |
| | | public static Yw.Curve.CurveExpress Transfer(this CurveExpressInput input) |
| | | { |
| | | if (input == null) |
| | | { |
| | | return default; |
| | | } |
| | | return FitHelper.BuildCurveExpress(input.DefinePoints, input.FitType); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Application.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class UpdatePumpCurveExpressInput : IDInput |
| | | { |
| | | /// <summary> |
| | | /// æ²çº¿è¡¨è¾¾å¼ |
| | | /// </summary> |
| | | public PumpCurveExpressInput CurveExpress { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Application.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class CurveExpressDto |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public CurveExpressDto() { } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public CurveExpressDto(Yw.Curve.CurveExpress rhs) |
| | | { |
| | | this.FitType = rhs.FitType; |
| | | this.DefinePoints = rhs.DefinePoints; |
| | | this.PointList = FitHelper.GetFitPoints(rhs, ConfigHelper.PointNumber); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æåç±»å |
| | | /// </summary> |
| | | public eFitType FitType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å®ä¹ç¹å表 |
| | | /// </summary> |
| | | public List<CurvePoint> DefinePoints { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æåç¹å表 |
| | | /// </summary> |
| | | public List<CurvePoint> PointList { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Application.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class CurveExpressInput : IValidatableObject |
| | | { |
| | | /// <summary> |
| | | /// æåç±»å |
| | | /// </summary> |
| | | public eFitType FitType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å®ä¹ç¹å表 |
| | | /// </summary> |
| | | public List<CurvePoint> DefinePoints { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) |
| | | { |
| | | if (DefinePoints == null || DefinePoints.Count < 1) |
| | | { |
| | | yield return new ValidationResult("DefinePoints æ°éä¸è¶³ï¼è³å°4个ç¹", new string[] { nameof(DefinePoints) }); |
| | | } |
| | | |
| | | var fitPow = FitHelper.GetFitPow(FitType); |
| | | if (DefinePoints.Count < fitPow + 1) |
| | | { |
| | | yield return new ValidationResult($"DefinePoints æ°éä¸è¶³ï¼è³å°{fitPow + 1}个ç¹", new string[] { nameof(DefinePoints) }); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Application.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class PumpCurveExpressDto |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public PumpCurveExpressDto() { } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public PumpCurveExpressDto(Model.Curve.PumpCurveInfoModel rhs) |
| | | { |
| | | this.CurveQH = new CurveExpressDto(rhs.CurveQH); |
| | | if (rhs.CurveQP != null) |
| | | { |
| | | this.CurveQP = new CurveExpressDto(rhs.CurveQP); |
| | | } |
| | | if (rhs.CurveQE != null) |
| | | { |
| | | this.CurveQE = new CurveExpressDto(rhs.CurveQE); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æµéæ¬ç¨æ²çº¿ |
| | | /// </summary> |
| | | public CurveExpressDto CurveQH { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æµéåçæ²çº¿ |
| | | /// </summary> |
| | | public CurveExpressDto CurveQP { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æµéæçæ²çº¿ |
| | | /// </summary> |
| | | public CurveExpressDto CurveQE { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Application.Curve |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class PumpCurveExpressInput |
| | | { |
| | | /// <summary> |
| | | /// æµéæ¬ç¨æ²çº¿ |
| | | /// </summary> |
| | | public CurveExpressInput CurveQH { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æµéåçæ²çº¿ |
| | | /// </summary> |
| | | public CurveExpressInput CurveQP { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æµéæçæ²çº¿ |
| | | /// </summary> |
| | | public CurveExpressInput CurveQE { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Application.Curve |
| | | { |
| | | internal class ConfigHelper |
| | | { |
| | | /// <summary> |
| | | /// ç¹æ°é |
| | | /// </summary> |
| | | public static int PointNumber |
| | | { |
| | | get { return Settings.CurveParasHelper.Curve.PointNumber; } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ´æ°æ²çº¿ä¿¡æ¯ |
| | | /// æ´æ°æ²çº¿è¡¨è¾¾å¼ |
| | | /// </summary> |
| | | [Route("UpdateCurveInfo@V1.0")] |
| | | [Route("UpdateCurveExpress@V1.0")] |
| | | [HttpPut] |
| | | public bool UpdateCurveInfo(UpdatePumpCurveInfoInput input) |
| | | public bool UpdateCurveExpress(UpdatePumpCurveExpressInput input) |
| | | { |
| | | var bol = _service.UpdateCurveInfo(input.ID, input.CurveInfo, UserManager.UserID, DateTime.Now); |
| | | var bol = _service.UpdateCurveInfo(input.ID, input.CurveExpress.Transfer(), UserManager.UserID, DateTime.Now); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | public Dictionary<string, string> CoordParas { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ²çº¿ä¿¡æ¯ |
| | | /// æ²çº¿è¡¨è¾¾å¼ |
| | | /// </summary> |
| | | [Required] |
| | | public PumpCurveInfoModel CurveInfo { get; set; } |
| | | public PumpCurveExpressInput CurveExpress { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¯ä¿¡åº¦ |
| | |
| | | this.SourceWay = rhs.SourceWay; |
| | | this.CreateMethod = rhs.CreateMethod; |
| | | this.CoordParas = rhs.CoordParas; |
| | | this.CurveInfo = rhs.CurveInfo; |
| | | this.CurveExpress = new PumpCurveExpressDto(rhs.CurveInfo); |
| | | this.ReliabilityStatus = rhs.ReliabilityStatus; |
| | | this.CreateTime = rhs.CreateTime; |
| | | this.CreateUserID = rhs.CreateUserID; |
| | |
| | | public Dictionary<string, string> CoordParas { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ²çº¿ä¿¡æ¯ |
| | | /// æ²çº¿è¡¨è¾¾å¼ |
| | | /// </summary> |
| | | public PumpCurveInfoModel CurveInfo { get; set; } |
| | | public PumpCurveExpressDto CurveExpress { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¯ä¿¡åº¦ |
| | |
| | | public Dictionary<string, string> CoordParas { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ²çº¿ä¿¡æ¯ |
| | | /// æ²çº¿è¡¨è¾¾å¼ |
| | | /// </summary> |
| | | [Required] |
| | | public PumpCurveInfoModel CurveInfo { get; set; } |
| | | public PumpCurveExpressInput CurveExpress { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¯ä¿¡åº¦ |
ÎļþÃû´Ó Yw.Application.Curve.Core/3-pump-curve-extension/1-mgr/PumpCurveExMapping_StandardController.cs ÐÞ¸Ä |
| | |
| | | /// </summary> |
| | | [Route("Curve/Pump/Mapping/Extension")] |
| | | [ApiDescriptionSettings("Curve", Name = "æ³µæ²çº¿æ å°æå±", Order = 8000)] |
| | | public partial class PumpCurveExMapping_StandardController : IDynamicApiController |
| | | public partial class PumpCurveExMapping_Controller : IDynamicApiController |
| | | { |
| | | private readonly Service.PumpCurveExMapping _service = new(); |
| | | |
| | |
| | | public Dictionary<string, string> CoordParas { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ²çº¿ä¿¡æ¯ |
| | | /// æ²çº¿è¡¨è¾¾å¼ |
| | | /// </summary> |
| | | [Required] |
| | | public PumpCurveInfoModel CurveInfo { get; set; } |
| | | public PumpCurveExpressInput CurveExpress { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¯ä¿¡åº¦ |
| | |
| | | this.SourceWay = curve.SourceWay; |
| | | this.CreateMethod = curve.CreateMethod; |
| | | this.CoordParas = curve.CoordParas; |
| | | this.CurveInfo = curve.CurveInfo; |
| | | this.CurveExpress = new PumpCurveExpressDto(curve.CurveInfo); |
| | | this.ReliabilityStatus = curve.ReliabilityStatus; |
| | | this.InputTime = curve.InputTime; |
| | | this.IsWorking = mapping.IsWorking; |
| | |
| | | public Dictionary<string, string> CoordParas { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ²çº¿ä¿¡æ¯ |
| | | /// æ²çº¿è¡¨è¾¾å¼ |
| | | /// </summary> |
| | | public PumpCurveInfoModel CurveInfo { get; set; } |
| | | public PumpCurveExpressDto CurveExpress { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¯ä¿¡åº¦ |
| | |
| | | public Dictionary<string, string> CoordParas { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ²çº¿ä¿¡æ¯ |
| | | /// æ²çº¿è¡¨è¾¾å¼ |
| | | /// </summary> |
| | | [Required] |
| | | public PumpCurveInfoModel CurveInfo { get; set; } |
| | | public PumpCurveExpressInput CurveExpress { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¯ä¿¡åº¦ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Application |
| | | { |
| | | /// <summary> |
| | | /// CurveTool |
| | | /// </summary> |
| | | [Route("Curve/Tool")] |
| | | [ApiDescriptionSettings("Curve", Name = "æ²çº¿å·¥å
·", Order = 1000)] |
| | | public partial class CurveTool_Controller : IDynamicApiController |
| | | { |
| | | /// <summary> |
| | | /// çææåç¹å表 |
| | | /// </summary> |
| | | [Route("GeneralFitPointList@V1.0")] |
| | | [HttpPost] |
| | | public List<CurvePoint> GeneralFitPointList([Required] CurveExpressToolInput input) |
| | | { |
| | | var fitHelper = new FitHelper(input.DefinePoints, input.FitType); |
| | | var pointNumber = ConfigHelper.PointNumber; |
| | | if (input.PointNumber.HasValue) |
| | | { |
| | | pointNumber = input.PointNumber.Value; |
| | | } |
| | | var list = fitHelper.GetFitPoints(pointNumber); |
| | | return list; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// çææ³µæåç¹å表 |
| | | /// </summary> |
| | | [Route("GeneralPumpFitPointList@V1.0")] |
| | | [HttpPost] |
| | | public PumpCurveExpressToolOutput GeneralPumpFitPointList([Required] PumpCurveExpressToolInput input) |
| | | { |
| | | var vm = new PumpCurveExpressToolOutput(); |
| | | |
| | | //æ¬ç¨ |
| | | var pointNumberQH = ConfigHelper.PointNumber; |
| | | if (input.PointNumberQH.HasValue) |
| | | { |
| | | pointNumberQH = input.PointNumberQH.Value; |
| | | } |
| | | var pointListQH = input.DefinePoints.Select(x => new CurvePoint(x.Q, x.H)).ToList(); |
| | | var fitHelperQH = new FitHelper(pointListQH, input.FitTypeQH); |
| | | vm.PointListQH = fitHelperQH.GetFitPoints(pointNumberQH); |
| | | |
| | | //åç |
| | | var hasQP = false; |
| | | var pointNumberQP = ConfigHelper.PointNumber; |
| | | if (input.PointNumberQP.HasValue) |
| | | { |
| | | pointNumberQP = input.PointNumberQP.Value; |
| | | } |
| | | var pointListQP = input.DefinePoints.Where(x => x.P.HasValue).Select(x => new CurvePoint(x.Q, x.P.Value)).ToList(); |
| | | if (pointListQP != null && pointListQP.Count > 3) |
| | | { |
| | | var fitPowQP = FitHelper.GetFitPow(input.FitTypeQP); |
| | | if (pointListQP.Count > fitPowQP) |
| | | { |
| | | var fitHelperQP = new FitHelper(pointListQP, input.FitTypeQP); |
| | | vm.PointListQP = fitHelperQP.GetFitPoints(pointNumberQP); |
| | | hasQP = true; |
| | | } |
| | | } |
| | | |
| | | |
| | | //æç |
| | | var hasQE = false; |
| | | var pointNumberQE = ConfigHelper.PointNumber; |
| | | if (input.PointNumberQE.HasValue) |
| | | { |
| | | pointNumberQE = input.PointNumberQE.Value; |
| | | } |
| | | var pointListQE = input.DefinePoints.Where(x => x.E.HasValue).Select(x => new CurvePoint(x.Q, x.E.Value)).ToList(); |
| | | if (pointListQE != null && pointListQE.Count > 3) |
| | | { |
| | | var fitPowQE = FitHelper.GetFitPow(input.FitTypeQE); |
| | | if (pointListQE.Count > fitPowQE) |
| | | { |
| | | var fitHelperQE = new FitHelper(pointListQE, input.FitTypeQE); |
| | | vm.PointListQE = fitHelperQE.GetFitPoints(pointNumberQE); |
| | | hasQE = true; |
| | | } |
| | | } |
| | | |
| | | if (!hasQP && hasQE) |
| | | { |
| | | pointListQP = new List<CurvePoint>(); |
| | | foreach (var item in pointListQE) |
| | | { |
| | | var pointQH = pointListQH.Find(x => x.X == item.X); |
| | | var p = Yw.Calculation.PumpCalcuHelper.CalculateP(pointQH.X, pointQH.Y, item.Y); |
| | | pointListQP.Add(new CurvePoint(item.X, p)); |
| | | } |
| | | var fitHelperQP = new FitHelper(pointListQP, input.FitTypeQE); |
| | | vm.PointListQP = fitHelperQP.GetFitPoints(pointNumberQP); |
| | | } |
| | | else if (hasQP && !hasQE) |
| | | { |
| | | pointListQE = new List<CurvePoint>(); |
| | | foreach (var item in pointListQP) |
| | | { |
| | | var pointQH = pointListQH.Find(x => x.X == item.X); |
| | | var e = Yw.Calculation.PumpCalcuHelper.CalculateE(pointQH.X, pointQH.Y, item.Y); |
| | | pointListQE.Add(new CurvePoint(item.X, e)); |
| | | } |
| | | var fitHelperQE = new FitHelper(pointListQE, input.FitTypeQP); |
| | | vm.PointListQE = fitHelperQE.GetFitPoints(pointNumberQE); |
| | | } |
| | | |
| | | return vm; |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Application |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class CurveExpressToolInput : IValidatableObject |
| | | { |
| | | /// <summary> |
| | | /// æåç±»å |
| | | /// </summary> |
| | | [Required] |
| | | public eFitType FitType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å®ä¹ç¹å表 |
| | | /// </summary> |
| | | [Required] |
| | | public List<CurvePoint> DefinePoints { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¹æ°é |
| | | /// </summary> |
| | | public int? PointNumber { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) |
| | | { |
| | | if (DefinePoints == null || DefinePoints.Count < 4) |
| | | { |
| | | yield return new ValidationResult("DefinePoints æ°éä¸è¶³ï¼è³å°4个ç¹", new string[] { nameof(DefinePoints) }); |
| | | } |
| | | |
| | | var fitPow = FitHelper.GetFitPow(FitType); |
| | | if (DefinePoints.Count < fitPow + 1) |
| | | { |
| | | yield return new ValidationResult($"DefinePoints æ°éä¸è¶³ï¼è³å°{fitPow + 1}个ç¹", new string[] { nameof(DefinePoints) }); |
| | | } |
| | | if (PointNumber.HasValue) |
| | | { |
| | | if (PointNumber.Value < 6) |
| | | { |
| | | yield return new ValidationResult($"PointNumber ä¸è½å°äº6", new string[] { nameof(PointNumber) }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Application |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class PumpCurveExpressToolInput : IValidatableObject |
| | | { |
| | | /// <summary> |
| | | /// æµéæ¬ç¨æåç±»å |
| | | /// </summary> |
| | | public eFitType FitTypeQH { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æµéåçæåç±»å |
| | | /// </summary> |
| | | public eFitType FitTypeQP { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æµéæçæåç±»å |
| | | /// </summary> |
| | | public eFitType FitTypeQE { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æµéæ¬ç¨ç¹æ°é |
| | | /// </summary> |
| | | public int? PointNumberQH { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æµéåçç¹æ°é |
| | | /// </summary> |
| | | public int? PointNumberQP { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æµéæçç¹æ°é |
| | | /// </summary> |
| | | public int? PointNumberQE { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å®ä¹ç¹å表 |
| | | /// </summary> |
| | | public List<PumpCurvePointToolDto> DefinePoints { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) |
| | | { |
| | | if (this.DefinePoints == null || this.DefinePoints.Count < 4) |
| | | { |
| | | yield return new ValidationResult("DefinePoints æ°éä¸è¶³ï¼è³å°4个ç¹", new string[] { nameof(DefinePoints) }); |
| | | } |
| | | |
| | | var fitPowQH = FitHelper.GetFitPow(this.FitTypeQH); |
| | | if (this.DefinePoints.Count < fitPowQH + 1) |
| | | { |
| | | yield return new ValidationResult($"DefinePoints æ°éä¸è¶³ï¼è³å°{fitPowQH + 1}个ç¹", new string[] { nameof(DefinePoints) }); |
| | | } |
| | | |
| | | if (this.PointNumberQH.HasValue) |
| | | { |
| | | if (this.PointNumberQH.Value < 6) |
| | | { |
| | | yield return new ValidationResult($"PointNumberQH ä¸è½å°äº6", new string[] { nameof(PointNumberQH) }); |
| | | } |
| | | } |
| | | |
| | | var fitPowQP = FitHelper.GetFitPow(this.FitTypeQP); |
| | | if (this.DefinePoints.Count < fitPowQP + 1) |
| | | { |
| | | yield return new ValidationResult($"DefinePoints æ°éä¸è¶³ï¼è³å°{fitPowQP + 1}个ç¹", new string[] { nameof(DefinePoints) }); |
| | | } |
| | | if (this.PointNumberQP.HasValue) |
| | | { |
| | | if (this.PointNumberQP.Value < 6) |
| | | { |
| | | yield return new ValidationResult($"PointNumberQP ä¸è½å°äº6", new string[] { nameof(PointNumberQP) }); |
| | | } |
| | | } |
| | | |
| | | var fitPowQE = FitHelper.GetFitPow(this.FitTypeQE); |
| | | if (this.DefinePoints.Count < fitPowQE + 1) |
| | | { |
| | | yield return new ValidationResult($"DefinePoints æ°éä¸è¶³ï¼è³å°{fitPowQE + 1}个ç¹", new string[] { nameof(DefinePoints) }); |
| | | } |
| | | if (this.PointNumberQE.HasValue) |
| | | { |
| | | if (this.PointNumberQE.Value < 6) |
| | | { |
| | | yield return new ValidationResult($"PointNumberQE ä¸è½å°äº6", new string[] { nameof(PointNumberQE) }); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Application |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class PumpCurveExpressToolOutput |
| | | { |
| | | /// <summary> |
| | | /// æµéæ¬ç¨ç¹å表 |
| | | /// </summary> |
| | | public List<CurvePoint> PointListQH { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æµéåçç¹å表 |
| | | /// </summary> |
| | | public List<CurvePoint> PointListQP { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æµéæçç¹å表 |
| | | /// </summary> |
| | | public List<CurvePoint> PointListQE { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Application |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class PumpCurvePointToolDto |
| | | { |
| | | /// <summary> |
| | | /// æµé |
| | | /// </summary> |
| | | public double Q { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¬ç¨ |
| | | /// </summary> |
| | | public double H { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åç |
| | | /// </summary> |
| | | public double? P { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æç |
| | | /// </summary> |
| | | public double? E { get; set; } |
| | | } |
| | | } |
| | |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2023-11-07T03:05:59.7264456Z;True|2023-11-07T11:05:52.0532331+08:00;True|2023-10-24T23:17:54.0748672+08:00;True|2023-10-21T14:38:03.2722172+08:00;True|2023-09-26T14:10:22.2485377+08:00;True|2023-08-29T11:46:24.5710627+08:00;True|2023-08-23T11:34:59.7400481+08:00;True|2023-08-21T13:31:52.3074533+08:00;True|2023-08-18T16:51:57.4477528+08:00;True|2023-08-18T13:49:11.3231257+08:00;True|2023-08-17T14:51:49.8452519+08:00;True|2023-08-17T11:44:23.5001902+08:00;True|2023-08-16T17:43:46.8283841+08:00;True|2023-08-16T11:10:43.5110570+08:00;True|2023-08-15T16:51:35.3016945+08:00;True|2023-08-15T15:04:30.4334950+08:00;True|2023-08-10T15:23:57.4783701+08:00;True|2023-08-08T10:01:53.7466486+08:00;True|2023-08-07T11:49:59.7506144+08:00;True|2023-08-05T10:38:53.6104500+08:00;True|2023-08-02T15:25:21.6024349+08:00;True|2023-08-02T15:20:20.4985081+08:00;True|2023-08-02T13:31:18.6184059+08:00;True|2023-08-02T13:30:52.4975034+08:00;True|2023-08-02T13:29:34.9010019+08:00;True|2023-08-02T13:28:35.4729592+08:00;True|2023-07-25T15:08:42.3375388+08:00;True|2023-07-17T10:31:53.5181752+08:00;True|2023-07-17T10:31:44.6652344+08:00;True|2023-07-13T12:10:11.2591498+08:00;True|2023-05-25T18:02:16.3580168+08:00;True|2023-05-25T15:44:32.4909866+08:00;</History> |
| | | <History>True|2023-11-08T03:55:54.5929525Z;True|2023-11-07T11:05:59.7264456+08:00;True|2023-11-07T11:05:52.0532331+08:00;True|2023-10-24T23:17:54.0748672+08:00;True|2023-10-21T14:38:03.2722172+08:00;True|2023-09-26T14:10:22.2485377+08:00;True|2023-08-29T11:46:24.5710627+08:00;True|2023-08-23T11:34:59.7400481+08:00;True|2023-08-21T13:31:52.3074533+08:00;True|2023-08-18T16:51:57.4477528+08:00;True|2023-08-18T13:49:11.3231257+08:00;True|2023-08-17T14:51:49.8452519+08:00;True|2023-08-17T11:44:23.5001902+08:00;True|2023-08-16T17:43:46.8283841+08:00;True|2023-08-16T11:10:43.5110570+08:00;True|2023-08-15T16:51:35.3016945+08:00;True|2023-08-15T15:04:30.4334950+08:00;True|2023-08-10T15:23:57.4783701+08:00;True|2023-08-08T10:01:53.7466486+08:00;True|2023-08-07T11:49:59.7506144+08:00;True|2023-08-05T10:38:53.6104500+08:00;True|2023-08-02T15:25:21.6024349+08:00;True|2023-08-02T15:20:20.4985081+08:00;True|2023-08-02T13:31:18.6184059+08:00;True|2023-08-02T13:30:52.4975034+08:00;True|2023-08-02T13:29:34.9010019+08:00;True|2023-08-02T13:28:35.4729592+08:00;True|2023-07-25T15:08:42.3375388+08:00;True|2023-07-17T10:31:53.5181752+08:00;True|2023-07-17T10:31:44.6652344+08:00;True|2023-07-13T12:10:11.2591498+08:00;True|2023-05-25T18:02:16.3580168+08:00;True|2023-05-25T15:44:32.4909866+08:00;</History> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | <RootNamespace>Yw.Application</RootNamespace> |
| | | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
| | | <GeneratePackageOnBuild>True</GeneratePackageOnBuild> |
| | | <Version>1.0.0</Version> |
| | | <Version>1.0.1</Version> |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Application.Core" Version="1.2.5" /> |
| | | <PackageReference Include="Yw.Quartz.Core" Version="1.0.0" /> |
| | | <PackageReference Include="Yw.Service.Curve.Core" Version="1.0.0" /> |
| | | <PackageReference Include="Yw.Service.Curve.Core" Version="1.0.1" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <Folder Include="2-pump-curve-mapping\2-std\" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
| | |
| | | /// </summary> |
| | | public Paras_Curve_DataBase DataBase { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¹æ°é |
| | | /// </summary> |
| | | public int PointNumber { get; set; } |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2023-11-07T03:00:32.3186525Z;True|2023-11-07T11:00:20.7173571+08:00;True|2023-10-24T23:16:33.8643304+08:00;True|2023-10-21T14:19:25.2606768+08:00;True|2023-09-26T14:09:33.8756384+08:00;True|2023-08-29T11:33:28.5466784+08:00;True|2023-08-21T13:26:43.3162454+08:00;True|2023-08-18T13:08:38.6378644+08:00;True|2023-08-16T17:42:45.3685771+08:00;True|2023-08-16T11:48:48.4326811+08:00;True|2023-08-15T15:00:14.6493599+08:00;True|2023-08-10T15:20:03.2786400+08:00;True|2023-08-07T11:48:46.2865626+08:00;True|2023-08-07T11:15:37.1248435+08:00;True|2023-08-07T10:40:31.7277832+08:00;True|2023-08-04T17:10:25.6488475+08:00;True|2023-08-02T15:24:28.5531853+08:00;True|2023-08-02T15:19:18.2260163+08:00;True|2023-08-02T13:26:30.0499052+08:00;True|2023-07-17T10:30:15.0370305+08:00;True|2023-07-13T11:54:33.7989040+08:00;True|2023-07-13T11:54:23.3967174+08:00;True|2023-07-06T09:49:52.7407983+08:00;True|2023-05-25T15:37:23.5406830+08:00;False|2023-05-25T15:36:09.3589239+08:00;</History> |
| | | <History>True|2023-11-08T03:54:49.6715090Z;True|2023-11-07T11:00:32.3186525+08:00;True|2023-11-07T11:00:20.7173571+08:00;True|2023-10-24T23:16:33.8643304+08:00;True|2023-10-21T14:19:25.2606768+08:00;True|2023-09-26T14:09:33.8756384+08:00;True|2023-08-29T11:33:28.5466784+08:00;True|2023-08-21T13:26:43.3162454+08:00;True|2023-08-18T13:08:38.6378644+08:00;True|2023-08-16T17:42:45.3685771+08:00;True|2023-08-16T11:48:48.4326811+08:00;True|2023-08-15T15:00:14.6493599+08:00;True|2023-08-10T15:20:03.2786400+08:00;True|2023-08-07T11:48:46.2865626+08:00;True|2023-08-07T11:15:37.1248435+08:00;True|2023-08-07T10:40:31.7277832+08:00;True|2023-08-04T17:10:25.6488475+08:00;True|2023-08-02T15:24:28.5531853+08:00;True|2023-08-02T15:19:18.2260163+08:00;True|2023-08-02T13:26:30.0499052+08:00;True|2023-07-17T10:30:15.0370305+08:00;True|2023-07-13T11:54:33.7989040+08:00;True|2023-07-13T11:54:23.3967174+08:00;True|2023-07-06T09:49:52.7407983+08:00;True|2023-05-25T15:37:23.5406830+08:00;False|2023-05-25T15:36:09.3589239+08:00;</History> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | <RootNamespace>Yw</RootNamespace> |
| | | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
| | | <GeneratePackageOnBuild>True</GeneratePackageOnBuild> |
| | | <Version>1.0.0</Version> |
| | | <Version>1.0.1</Version> |
| | | <Description>å¢å 设å¤å¥åº·è¯ä»·æ°æ®åå</Description> |
| | | </PropertyGroup> |
| | | |
| | |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.service.core\1.0.6\contentFiles\any\net6.0\paras_service_settings.json"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.service.core\1.1.2\contentFiles\any\net6.0\paras_service_settings.json"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </Content> |
| | | <Content Update="C:\Users\admin\.nuget\packages\yw.sqlsugar.core\1.0.0\contentFiles\any\net6.0\paras_sqlsugar_settings.json"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </Content> |
| | |
| | | "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json", |
| | | |
| | | |
| | | "Health": { |
| | | "Curve": { |
| | | "DataBase": { |
| | | "ConnectString": "PORT=5432;DATABASE=yw_health;HOST=localhost;PASSWORD=123456;USER ID=postgres;", |
| | | "RecordConnectString": "PORT=5432;DATABASE=yw_health_record;HOST=localhost;PASSWORD=123456;USER ID=postgres;" |
| | | "ConnectString": "PORT=5432;DATABASE=yw_health;HOST=localhost;PASSWORD=123456;USER ID=postgres;" |
| | | }, |
| | | "RedisCache": { |
| | | "Prefix": "yw" |
| | | }, |
| | | "Run": { |
| | | "ExchangeName": "yw-health-evaluation-record-run-exchange" |
| | | }, |
| | | "Task": { |
| | | "Frequency": 60 |
| | | } |
| | | "PointNumber": 12 |
| | | } |
| | | |
| | | |