tangxu
2023-04-21 473084031d410d95db66e81f4d1761f9a2d1b8e5
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.Calculation.DispatchAna.Model
{
    /// <summary>
    /// 
    /// </summary>
    public  class CurrentRecordBundle
    {
        /// <summary>
        /// 
        /// </summary>
        public class  RecordValue
        {
            /// <summary>
            /// 
            /// </summary>
            public RecordValue(double v)
            {
                this.Value = v;
            }
  
            /// <summary>
            /// 
            /// </summary>
            /// <param name="m"></param>
            public RecordValue(IStation.Model.MonitorBasicRecord m)
            {
                double vvv = 0;
                m.GetDataValue(-1,out vvv); 
                this.Value = vvv;
            }
            
            /// <summary>
            /// 
            /// </summary>
            /// <param name="name"></param>
            /// <param name="m"></param>
            /// <param name="RountNumber"></param>
            public RecordValue(string name , IStation.Model.MonitorBasicRecord m, int RountNumber=-1)
            {
                this.Name = name;
                double vvv = 0;
                m.GetDataValue(RountNumber, out vvv);
                if (RountNumber >= 0)
                {
                    this.Value = Math.Round( vvv, RountNumber);
                }
                else
                {
                    this.Value = vvv;
 
                }       
            }
            /// <summary>
            /// 
            /// </summary>
            /// <param name="name"></param>
            /// <param name="v"></param> 
            public RecordValue(string name, double v)
            {
                this.Name = name;
 
                this.Value = v;
 
 
            }
            /// <summary>
            /// 
            /// </summary>
            public string Name { get; set; }
            /// <summary>
            /// /
            /// </summary>
            public double Value { get; set; }
 
        }
 
        /// <summary>
        /// 压力值类型 0:表示压力 1:表示扬程
        /// </summary>
        public int PressValueType { get; set; }
 
        /// <summary>
        /// 流量
        /// </summary>
        public List<RecordValue> FlowList { get; set; }
 
        /// <summary>
        /// 压力/扬程 
        /// </summary>
        public List<RecordValue> PressList { get; set; }
 
        /// <summary>
        /// 水位
        /// </summary>
        public List<RecordValue> WaterLevelList { get; set; }
 
        /// <summary>
        /// 阀门
        /// </summary>
        public List<RecordValue> VavleOpenList { get; set; }
    }
}