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