HourData.cs 749 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace PCore
  7. {
  8. public class HourData
  9. {
  10. /// <summary>
  11. /// 时段 例:8:00~9:00
  12. /// </summary>
  13. public string Period { get; set; } = string.Empty;
  14. public DateTime StartTime { get; set; }
  15. public DateTime EndTime { get; set; }
  16. public int RunTime { get; set; }
  17. public int IdelTime { get; set; }
  18. public int DownTime { get; set; }
  19. public int Outputs { get; set; }
  20. public double TT
  21. {
  22. get
  23. {
  24. return Outputs == 0 ? 0 : Math.Round(RunTime * 1.0 / Outputs, 2);
  25. }
  26. }
  27. }
  28. }