using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Model { /// /// /// public class WaterPredictRecord //: Model.BaseModel, System.ICloneable { /// /// /// public WaterPredictRecord() { } /// /// /// /// public WaterPredictRecord(WaterPredictRecord rhs) { this.ID = rhs.ID; this.DayHour = rhs.DayHour; this.LastPredictValue = rhs.LastPredictValue; this.LastPredictTime = rhs.LastPredictTime; this.PredictValueList = rhs.PredictValueList; this.PredictTime = rhs.PredictTime; this.States = rhs.States; this.Description = rhs.Description; } //转换为int类型的时间 public static int ConvertIntDay(DateTime datetime) { return int.Parse(string.Format("{0:00}{1:00}{2:00}", datetime.Month, datetime.Day, datetime.Hour)); } /// /// id /// public long ID { get; set; } /// /// 小时: 例如2024-05-14 01:00 表示为 051401 /// public int DayHour { get; set; } /// /// 最新预测流量(滚动值) /// public double LastPredictValue { get; set; } /// /// 最新预测时间(滚动值对应时间) /// public DateTime? LastPredictTime { get; set; } /// /// 预测流量值(多个用逗号隔开) /// public string PredictValueList { get; set; } /// /// 预测流量值时间:PredictValueList对应时间 /// public DateTime PredictTime { get; set; } /// /// 状态码(0为错误,1为正确) /// public int States { get; set; } /// /// 备注 /// public string Description { get; set; } } }