胖子天骄的MES系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WorkInfoStatusDto.cs 3.2 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. namespace BPA.MES.Base.Application.Services
  2. {
  3. /// <summary>
  4. /// 名 称 :工单状态
  5. /// 创 建 人 :yangxiao
  6. /// 创建时间 :2023/7/20 14:29:39
  7. /// 描 述 :
  8. /// </summary>
  9. public class WorkInfoStatusDto
  10. {
  11. /// <summary>
  12. /// 工单Id
  13. /// </summary>
  14. public string WorkId { get; set; }
  15. /// <summary>
  16. /// 工单状态
  17. /// </summary>
  18. public WorkOrderStatusEnum Status { get; set; }
  19. /// <summary>
  20. /// 创建时间
  21. /// </summary>
  22. public DateTime CreateTime { get; set; }
  23. /// <summary>
  24. /// 备注
  25. /// </summary>
  26. public string Remark { get; set; }
  27. }
  28. /// <summary>
  29. /// 增加
  30. /// </summary>
  31. public class WorkInfoStatusAddInput : WorkInfoStatusDto
  32. {
  33. }
  34. /// <summary>
  35. /// 更新
  36. /// </summary>
  37. public class WorkInfoStatusUpdateInput
  38. {
  39. /// <summary>
  40. /// 工单Id
  41. /// </summary>
  42. public string WorkId { get; set; }
  43. /// <summary>
  44. /// 状态
  45. /// </summary>
  46. public WorkOrderStatusEnum Status { get; set; }
  47. /// <summary>
  48. /// 备注
  49. /// </summary>
  50. public string Remark { get; set; }
  51. }
  52. /// <summary>
  53. /// 删除
  54. /// </summary>
  55. public class WorkInfoStatusDelInput
  56. {
  57. /// <summary>
  58. /// 主键
  59. /// </summary>
  60. public string Id { get; set; }
  61. }
  62. /// <summary>
  63. /// 分页
  64. /// </summary>
  65. public class WorkInfoStatusQueryPageInput : RequestPage
  66. {
  67. }
  68. /// <summary>
  69. /// 批次下发
  70. /// </summary>
  71. public class BatchInput
  72. {
  73. public string BatchId { get; set; }
  74. }
  75. /// <summary>
  76. /// 下发
  77. /// </summary>
  78. public class PublishInput
  79. {
  80. /// <summary>
  81. /// 工单ID
  82. /// </summary>
  83. public string WorkId { get; set; }
  84. /// <summary>
  85. /// 设备ID
  86. /// </summary>
  87. public string? DeviceId { get; set; }
  88. }
  89. /// <summary>
  90. /// 输出
  91. /// </summary>
  92. public class WorkInfoStatusOutput : WorkInfoStatusDto
  93. {
  94. /// <summary>
  95. /// 主键
  96. /// </summary>
  97. public string Id { get; set; }
  98. /// <summary>
  99. /// 状态名称
  100. /// </summary>
  101. public string StatusName { get {
  102. switch (Status)
  103. {
  104. case WorkOrderStatusEnum.Unkown:
  105. return "未知";
  106. case WorkOrderStatusEnum.Draft:
  107. return "草稿";
  108. case WorkOrderStatusEnum.Issued:
  109. return "已下发";
  110. case WorkOrderStatusEnum.Receive:
  111. return "已接受";
  112. case WorkOrderStatusEnum.Started:
  113. return "已启动";
  114. case WorkOrderStatusEnum.Completed:
  115. return "已完成";
  116. case WorkOrderStatusEnum.Obsolete:
  117. return "废弃";
  118. default:
  119. return "错误";
  120. }
  121. } }
  122. }
  123. }