namespace IBox.WinFrmUI { public class CalcValue : System.ICloneable { public CalcValue() { } public CalcValue(CalcValue rhs) { this.CalcSuccess = rhs.CalcSuccess; this.TargetFlow = rhs.TargetFlow; this.DataTime = rhs.DataTime; this.TargetHead = rhs.TargetHead; this.JsonBody = rhs.JsonBody; this.RealDataJson = rhs.RealDataJson; this.ID = rhs.ID; } public long ID { get; set; } public DateTime? DataTime { get; set; } /// /// 控制模式:1:设定压力控制,2:设定开泵方案控制 /// public string ControlType { get; set; } public double TargetFlow { get; set; } public double TargetHead { get; set; } public bool CalcSuccess { get; set; } public string JsonBody { get; set; } public string RealDataJson { get; set; } public string Status { get => CalcSuccess ? "成功" : "失败"; } public CalcValue Clone() { return (CalcValue)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }