lixiaojun
2024-09-09 c0f3c3f170846197d8d3f74ac123e0ac93a6dd67
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
namespace IStation.Application.SZJT
{
    /// <summary>
    /// 
    /// </summary>
    public class DmaAnalySiteRealStatusDto
    {
        /// <summary>
        /// 
        /// </summary>
        public DmaAnalySiteRealStatusDto(Yw.Model.MonitorPoint monitor, Yw.Model.Signal_SignalType signal, List<Yw.Model.MonitorRealRecord> recordList)
        {
            this.Name = monitor.Name;
            this.Code = signal.SignalType.Code;
            this.SignalID = signal.ID;
            this.UnitName = signal.GetDisplayUnitName();
            this.RecordList = recordList?.Select(x => new DmaAnalySiteRealStatusRecordDto(x, signal)).ToList();
        }
 
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }
 
        /// <summary>
        /// 信号id
        /// </summary>
        public long SignalID { get; set; }
 
        /// <summary>
        /// 单位
        /// </summary>
        public string UnitName { get; set; }
 
        /// <summary>
        /// 记录列表
        /// </summary>
        public List<DmaAnalySiteRealStatusRecordDto> RecordList { get; set; }
 
 
    }
}