using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PCore { public class HourData { /// /// 时段 例:8:00~9:00 /// public string Period { get; set; } = string.Empty; public DateTime StartTime { get; set; } public DateTime EndTime { get; set; } public int RunTime { get; set; } public int IdelTime { get; set; } public int DownTime { get; set; } public int Outputs { get; set; } public double TT { get { return Outputs == 0 ? 0 : Math.Round(RunTime * 1.0 / Outputs, 2); } } } }