| | |
| | | public class MonitorDayRecordDto |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public MonitorDayRecordDto() { } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public MonitorDayRecordDto(Model.MonitorDayRecordPure rhs) |
| | | { |
| | | this.CorpID = rhs.CorpID; |
| | | this.MonitorPointID = rhs.MonitorPointID; |
| | | this.SignalID = rhs.SignalID; |
| | | this.RecordType = rhs.RecordType; |
| | | this.DataDay = rhs.DataDay; |
| | | this.SrcTime = rhs.SrcTime; |
| | | this.SrcValue= rhs.SrcValue; |
| | | this.DataTime = rhs.DataTime; |
| | | this.DataValue= rhs.DataValue; |
| | | this.DataStatus = rhs.DataStatus; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public MonitorDayRecordDto(Model.MonitorDayRecordPure 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; } |