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; }
|
|
|
}
|
}
|