WorkOrdRouting.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Business.Domain
  9. {
  10. /// <summary>
  11. /// 工单工艺流程表
  12. /// </summary>
  13. [Comment("工单工艺流程表")]
  14. public class WorkOrdRouting
  15. {
  16. /// <summary>
  17. /// 主键
  18. /// </summary>
  19. [Comment("主键")]
  20. [Key]
  21. public int RecID { get; set; }
  22. /// <summary>
  23. /// 域名
  24. /// </summary>
  25. [Comment("域名")]
  26. public string Domain { get; set; }
  27. /// <summary>
  28. /// 描述
  29. /// </summary>
  30. [Comment("描述")]
  31. public string Descr { get; set; }
  32. /// <summary>
  33. /// 到期日期
  34. /// </summary>
  35. [Comment("到期日期")]
  36. public DateTime? DueDate { get; set; }
  37. /// <summary>
  38. /// 关键工序(需要报工的工序)
  39. /// </summary>
  40. [Comment("关键工序")]
  41. public bool MilestoneOp { get; set; }
  42. /// <summary>
  43. /// 工单
  44. /// </summary>
  45. [Comment("工单")]
  46. public string WorkOrd { get; set; }
  47. /// <summary>
  48. /// 工序
  49. /// </summary>
  50. [Comment("工序")]
  51. public int OP { get; set; }
  52. /// <summary>
  53. /// 父级工序
  54. /// </summary>
  55. [Comment("父级工序")]
  56. public int ParentOp { get; set; }
  57. /// <summary>
  58. /// 运行时间(标准节拍)
  59. /// </summary>
  60. [Comment("运行时间")]
  61. public decimal RunTime { get; set; }
  62. /// <summary>
  63. /// 物料编号
  64. /// </summary>
  65. [Comment("物料编号")]
  66. public string ItemNum { get; set; }
  67. /// <summary>
  68. /// 订单数量
  69. /// </summary>
  70. [Comment("订单数量")]
  71. public decimal? QtyOrded { get; set; }
  72. /// <summary>
  73. /// 报工数量
  74. /// </summary>
  75. [Comment("报工数量")]
  76. public decimal QtyComplete { get; set; }
  77. /// <summary>
  78. /// 工序清场时长(小时)
  79. /// </summary>
  80. [Comment("工序清场时长")]
  81. public decimal WaitTime { get; set; }
  82. /// <summary>
  83. /// 平行加工件数,下序开工前置数量
  84. /// </summary>
  85. [Comment("平行加工件数")]
  86. public int? OverlapUnits { get; set; }
  87. /// <summary>
  88. /// 状态:C为不可用状态
  89. /// </summary>
  90. [Comment("状态")]
  91. public string Status { get; set; }
  92. /// <summary>
  93. /// 是否换包
  94. /// </summary>
  95. [Comment("是否换包")]
  96. public int CommentIndex { get; set; }
  97. /// <summary>
  98. /// 是否有效:1-有效;0-无效
  99. /// </summary>
  100. [Comment("是否有效")]
  101. public bool IsActive { get; set; }
  102. /// <summary>
  103. /// 创建时间
  104. /// </summary>
  105. [Comment("创建时间")]
  106. public DateTime? CreateTime { get; set; }
  107. /// <summary>
  108. /// 工单主键
  109. /// </summary>
  110. [Comment("工单主键")]
  111. public long WorkOrdMasterRecID { get; set; }
  112. }
  113. }