using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.Application
{
///
///
///
public class DemoPumpCurveDto
{
///
///
///
public DemoPumpCurveDto() { }
///
///
///
public DemoPumpCurveDto(Model.PumpCurveExMapping rhs)
{
this.CorpID = rhs.CorpID;
this.MappingID = rhs.MappingID;
this.CurveID = rhs.ID;
this.PumpID = rhs.PumpID;
this.CurveCode = rhs.CurveCode;
this.SourceFrom = rhs.SourceFrom;
this.CreateMethod = rhs.CreateMethod;
this.Description = rhs.Description;
this.OtherName = rhs.OtherName;
this.SortCode = rhs.SortCode;
this.IsWorking = rhs.IsWorking;
this.PointQH = rhs.CurveInfo?.CurveQH?.GetFitPoints(20)?.Select(x => new CurvePointDto(x.X, x.Y)).ToList();
this.PointQP = rhs.CurveInfo?.CurveQP?.GetFitPoints(20)?.Select(x => new CurvePointDto(x.X, x.Y)).ToList();
this.PointQE = rhs.CurveInfo?.CurveQE?.GetFitPoints(20)?.Select(x => new CurvePointDto(x.X, x.Y)).ToList();
this.CurveRangeQ = null;
this.CurveRangeH = null;
this.CurveRangeP = null;
this.CurveRangeE = null;
}
///
/// 客户标识
///
public long CorpID { get; set; }
///
/// 映射标识
///
public long MappingID { get; set; }
///
/// 曲线标识
///
public long CurveID { get; set; }
///
/// 泵标识
///
public long PumpID { get; set; }
///
/// 曲线编码
///
public string CurveCode { get; set; }
///
/// 来源类型
///
public Model.eCurveSourceFrom SourceFrom { get; set; }
///
/// 创建方法
///
public Model.eCurveCreateMethod CreateMethod { get; set; }
///
/// 说明
///
public string Description { get; set; }
///
/// 别名
///
public string OtherName { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 是否为工作曲线
///
public bool IsWorking { get; set; }
///
///
///
public List PointQH { get; set; }
///
///
///
public List PointQE { get; set; }
///
///
///
public List PointQP { get; set; }
///
///
///
public CurveAxisCoordinateDto CurveRangeQ { get; set; }
///
///
///
public CurveAxisCoordinateDto CurveRangeH { get; set; }
///
///
///
public CurveAxisCoordinateDto CurveRangeP { get; set; }
///
///
///
public CurveAxisCoordinateDto CurveRangeE { get; set; }
}
}