lixiaojun
2022-08-03 dae9ec9e7ebae7969395228bd0a1afb2dbd20c2b
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.Application
{
    /// <summary>
    /// 
    /// </summary>
    public class MonitorWeekRecordDto
    {
        /// <summary>
        /// 
        /// </summary>
        public MonitorWeekRecordDto() { }
 
        /// <summary>
        /// 
        /// </summary>
        public MonitorWeekRecordDto(Model.MonitorWeekRecordPure rhs)
        { 
            this.CorpID = rhs.CorpID;
            this.MonitorPointID = rhs.MonitorPointID;
            this.SignalID = rhs.SignalID;
            this.RecordType = rhs.RecordType;
            this.StartDay = rhs.StartDay;
            this.EndDay = rhs.EndDay;
            this.SrcTime = rhs.SrcTime;
            this.SrcValue = rhs.SrcValue;
            this.DataTime = rhs.DataTime;
            this.DataValue= rhs.DataValue;
            this.DataStatus = rhs.DataStatus;
        }
 
        /// <summary>
        /// 
        /// </summary>
        public MonitorWeekRecordDto(Model.MonitorWeekRecordPure rhs, Model.Signal_SignalType signal) : this(rhs)
        {
            if (signal != null)
            {
                if (signal.TryConvert(rhs.DataValue, out double dataValue))
                {
                    this.DataValue = dataValue.ToString();
                }
            }
        }
 
        /// <summary>
        /// 客户标识
        /// </summary>
        public long CorpID { get; set; }
 
        /// <summary>
        /// 测点标识
        /// </summary>
        public long MonitorPointID { get; set; }
 
        /// <summary>
        /// 信号标识
        /// </summary>
        public long SignalID { get; set; }
 
        /// <summary>
        /// 记录类型
        /// </summary>
        public Model.eMonitorType RecordType { get; set; }
 
        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime StartDay { get; set; }
 
        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime EndDay { get; set; }
 
        /// <summary>
        /// 原始时间
        /// </summary>
        public DateTime? SrcTime { get; set; }
 
        /// <summary>
        /// 原始值
        /// </summary>
        public string SrcValue { get; set; }
 
        /// <summary>
        /// 数据时间
        /// </summary>
        public DateTime DataTime { get; set; }
 
        /// <summary>
        /// 数据值
        /// </summary>
        public string DataValue { get; set; }
 
        /// <summary>
        /// 数据状态
        /// </summary>
        public List<string> DataStatus { get; set; }
    }
}