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