duheng
2025-03-14 a906f71640d9ba5cd9f8d689a51de3a557d8bbff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
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; }
 
        /// <summary>
        /// 控制模式:1:设定压力控制,2:设定开泵方案控制
        /// </summary>
        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();
        }
    }
}