namespace Yw.Dto
{
///
///
///
public class PumpCurveExMappingDto
{
///
///
///
public PumpCurveExMappingDto() { }
///
///
///
public PumpCurveExMappingDto(Model.PumpCurveMapping mapping, Model.PumpCurve curve)
{
this.MappingID = mapping.ID;
this.CurveID = mapping.CurveID;
this.PumpID = mapping.PumpID;
this.Name = curve.Name;
this.OtherName = mapping.OtherName;
this.SourceWay = curve.SourceWay;
this.CreateMethod = curve.CreateMethod;
this.CoordParas = curve.CoordParas;
this.CurveExpress = new PumpCurveExpressDto(curve.CurveInfo);
this.ReliabilityStatus = curve.ReliabilityStatus;
this.InputTime = curve.InputTime;
this.IsWorking = mapping.IsWorking;
this.CreateTime = curve.CreateTime;
this.CreateUserID = curve.CreateUserID;
this.CreateUserName = curve.CreateUserName;
this.UpdateTime = curve.UpdateTime;
this.UpdateUserID = curve.UpdateUserID;
this.UpdateUserName = curve.UpdateUserName;
this.SortCode = mapping.SortCode;
this.Description = curve.Description;
}
///
/// 映射id
///
public long MappingID { get; set; }
///
/// 泵id
///
public long PumpID { get; set; }
///
/// 曲线id
///
public long CurveID { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 别名
///
public string OtherName { get; set; }
///
/// 来源方式
///
public eSourceWay SourceWay { get; set; }
///
/// 创建方法
///
public string CreateMethod { get; set; }
///
/// 坐标参数
///
public string CoordParas { get; set; }
///
/// 曲线表达式
///
public PumpCurveExpressDto CurveExpress { get; set; }
///
/// 可信度
///
public eReliabilityStatus ReliabilityStatus { get; set; }
///
/// 录入时间
///
public DateTime InputTime { get; set; }
///
/// 工作曲线
///
public bool IsWorking { get; set; }
///
/// 创建时间
///
public DateTime CreateTime { get; set; }
///
/// 创建人id
///
public long CreateUserID { get; set; }
///
/// 创建人名称
///
public string CreateUserName { get; set; }
///
/// 更新时间
///
public DateTime? UpdateTime { get; set; }
///
/// 更新人id
///
public long? UpdateUserID { get; set; }
///
/// 更新人名称
///
public string UpdateUserName { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 说明
///
public string Description { get; set; }
}
}