KeyInInfo.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. using System;
  2. using System.Net.NetworkInformation;
  3. namespace ProductionLineMonitor.Web.Services.LineService
  4. {
  5. public class KeyInInfo
  6. {
  7. /// <summary>
  8. /// 计划 Id 唯一标识
  9. /// </summary>
  10. public string Id { get; set; } = string.Empty;
  11. /// <summary>
  12. /// 0:品质异常停线
  13. /// 1:宕机
  14. /// 2:换线
  15. /// 3:实验
  16. /// 4:W/F送样
  17. /// 5:物料缺料或生管调整影响
  18. /// 6:放假
  19. /// 7:停电气等停线
  20. /// 8:换耗材类
  21. /// 9:停机未生产
  22. /// 10:缺WF:2023-09-22 IT与制造将 “效率爬升” 修改为 “缺WF”
  23. /// </summary>
  24. public int KeyInType { get; set; }
  25. public string KeyInTypeName
  26. {
  27. get
  28. {
  29. return KeyInType switch
  30. {
  31. 0 => "品质异常停线",
  32. 1 => "宕机",
  33. 2 => "换线",
  34. 3 => "实验",
  35. 4 => "W/F送样/前导批",
  36. 5 => "物料缺料或生管调整影响",
  37. 6 => "放假",
  38. 7 => "停电气等停线",
  39. 8 => "换耗材",
  40. 9 => "停机未生产",
  41. 10 => "缺WF",
  42. _ => "",
  43. };
  44. }
  45. }
  46. /// <summary>
  47. /// 描述
  48. /// 0:品质异常停线
  49. /// 1:宕机
  50. /// 2:换线 机种切换-有程序 EL097ER1->TS097SC1
  51. /// 3:实验 EL097ER1 1300pcs 李文健 测试新程序
  52. /// 4:W/F送样
  53. /// 5:物料缺料或生管调整影响
  54. /// 6:放假
  55. /// 7:停电气等停线
  56. /// 8:换耗材类
  57. /// 9:停机未生产
  58. /// 10:缺WF
  59. /// </summary>
  60. public string Description { get; set; } = string.Empty;
  61. /// <summary>
  62. /// 开始时间
  63. /// </summary>
  64. public DateTime? StartTime { get; set; }
  65. /// <summary>
  66. /// 结束时间
  67. /// </summary>
  68. public DateTime? EndTime { get; set; }
  69. /// <summary>
  70. /// 影响时间 min
  71. /// </summary>
  72. public int AffectTime { get; set; }
  73. /// <summary>
  74. /// 影响产能
  75. /// </summary>
  76. public int AffectCapacity { get; set; }
  77. }
  78. }