123456789101112131415161718192021222324252627282930 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PCore
- {
- public class HourData
- {
- /// <summary>
- /// 时段 例:8:00~9:00
- /// </summary>
- 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);
- }
- }
- }
- }
|