lixiaojun
2023-12-26 3c05a19c6896c197953df955c729d26c8dc94536
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
namespace IStation.Application
{
    /// <summary>
    /// 流量计监测kpi最近记录dto
    /// </summary>
    public class FlowMeterMapMonitorKpiLastRecordDto
    {
        /// <summary>
        /// 
        /// </summary>
 
        public FlowMeterMapMonitorKpiLastRecordDto(Yw.Model.MonitorPoint_Signal_SignalType monitor, Yw.Model.MonitorRealRecord record)
        {
            this.SignalID = monitor.SignalList.First().ID;
            this.Name = monitor.Name;
            this.Code = monitor.SignalList.First().SignalType.Code;
            this.DataTime = record?.DataTime;
            this.DataValue = monitor.SignalList.First().GetDisplayValue(record?.DataValue);
            this.UnitName = monitor.SignalList.First().GetDisplayUnitName();
            this.DataStatus = record?.DataStatus;
        }
 
        /// <summary>
        /// 信号id
        /// </summary>
        public long SignalID { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }
 
        /// <summary>
        /// 数据时间
        /// </summary>
        public DateTime? DataTime { get; set; }
 
        /// <summary>
        /// 数据值
        /// </summary>
        public string DataValue { get; set; }
 
        /// <summary>
        /// 单位
        /// </summary>
        public string UnitName { get; set; }
 
        /// <summary>
        /// 数据状态
        /// </summary>
        public List<string> DataStatus { get; set; }
 
    }
}