Statistic.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. using System;
  2. using System.Text.RegularExpressions;
  3. namespace ProductionLineMonitor.Web.Services.LineService
  4. {
  5. public class Statistic
  6. {
  7. /// <summary>
  8. /// 机种
  9. /// </summary>
  10. public string ModuleType { get; set; } = string.Empty;
  11. /// <summary>
  12. /// Capa
  13. /// </summary>
  14. public int Capa { get; set; }
  15. /// <summary>
  16. /// 计划产能
  17. /// </summary>
  18. public int PlanCapacity { get; set; }
  19. /// <summary>
  20. /// TT
  21. /// </summary>
  22. public double TT { get; set; }
  23. /// <summary>
  24. /// 产能
  25. /// </summary>
  26. public int Capacity { get; set; }
  27. /// <summary>
  28. /// 早班产能
  29. /// </summary>
  30. public int MorningShiftCapacity { get; set; }
  31. /// <summary>
  32. /// 夜班产能
  33. /// </summary>
  34. public int NightShiftCapacity { get; set; }
  35. /// <summary>
  36. /// 时间稼动率
  37. /// </summary>
  38. public double Availability { get; set; }
  39. /// <summary>
  40. /// 性能稼动率
  41. /// </summary>
  42. public double Performance { get; set; }
  43. /// <summary>
  44. /// 良率
  45. /// </summary>
  46. public double Quality { get; set; }
  47. /// <summary>
  48. /// 设备综合效率
  49. /// </summary>
  50. public double OEE { get; set; }
  51. /// <summary>
  52. /// 运行时间
  53. /// </summary>
  54. public double RunTime { get; set; }
  55. /// <summary>
  56. /// 待料时间
  57. /// </summary>
  58. public double IdelTime { get; set; }
  59. /// <summary>
  60. /// 宕机时间
  61. /// </summary>
  62. public double DownTime { get; set; }
  63. /// <summary>
  64. /// 负荷时间
  65. /// </summary>
  66. public double LoadTime { get; set; }
  67. public double Reload { get; set; }
  68. public double AchievementRate
  69. {
  70. get
  71. {
  72. if (PlanCapacity == 0)
  73. {
  74. return 0;
  75. }
  76. return Math.Round((float)Capacity / PlanCapacity * 100, 0);
  77. }
  78. }
  79. }
  80. }