ReplenishmentWeekPlan.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. using Business.Domain;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace Business.StructuredDB.Replenishment
  10. {
  11. /// <summary>
  12. /// 周生产计划
  13. /// </summary>
  14. public class ReplenishmentWeekPlan : BaseEntity
  15. {
  16. /// <summary>
  17. /// 排序编码(优先级)
  18. /// </summary>
  19. [Comment("排序编码(优先级)")]
  20. public int OrderNum { get; set; }
  21. /// <summary>
  22. /// 市场
  23. /// </summary>
  24. [StringLength(128)]
  25. [Comment("市场")]
  26. public string Area { get; set; }
  27. /// <summary>
  28. /// 开工日期
  29. /// </summary>
  30. [Comment("开工日期")]
  31. public DateTime PlanStartDate { get; set; }
  32. /// <summary>
  33. /// 开工日期星期
  34. /// </summary>
  35. [StringLength(128)]
  36. [Comment("开工日期星期")]
  37. public string Week { get; set; }
  38. /// <summary>
  39. /// 订单号
  40. /// </summary>
  41. [StringLength(128)]
  42. [Comment("订单号")]
  43. public string OrderNO { get; set; }
  44. /// <summary>
  45. /// 生产指令
  46. /// </summary>
  47. [StringLength(128)]
  48. [Comment("生产指令")]
  49. public string ProductionOrder { get; set; }
  50. /// <summary>
  51. /// SAP工单号
  52. /// </summary>
  53. [StringLength(128)]
  54. [Comment("SAP工单号")]
  55. public string SAPOrderNO { get; set; }
  56. /// <summary>
  57. /// 指令类型
  58. /// </summary>
  59. [StringLength(128)]
  60. [Comment("指令类型")]
  61. public string OrderType { get; set; }
  62. /// <summary>
  63. /// 生产批次
  64. /// </summary>
  65. [StringLength(128)]
  66. [Comment("生产批次")]
  67. public string ProductionBatch { get; set; }
  68. /// <summary>
  69. /// 生产状态
  70. /// </summary>
  71. [StringLength(128)]
  72. [Comment("生产状态")]
  73. public string ProductionStatus { get; set; }
  74. /// <summary>
  75. /// 产品线
  76. /// </summary>
  77. [StringLength(128)]
  78. [Comment("产品线")]
  79. public string ProdLine { get; set; }
  80. /// <summary>
  81. /// 产品系列
  82. /// </summary>
  83. [StringLength(128)]
  84. [Comment("产品系列")]
  85. public string ProdRange { get; set; }
  86. /// <summary>
  87. /// 车间线体(产线)
  88. /// </summary>
  89. [StringLength(128)]
  90. [Comment("车间线体(产线)")]
  91. public string Line { get; set; }
  92. /// <summary>
  93. /// 物料编码
  94. /// </summary>
  95. [StringLength(128)]
  96. [Comment("物料编码")]
  97. public string ItemNumber { get; set; }
  98. /// <summary>
  99. /// 规格型号
  100. /// </summary>
  101. [StringLength(128)]
  102. [Comment("规格型号")]
  103. public string Model { get; set; }
  104. /// <summary>
  105. /// 语种
  106. /// </summary>
  107. [StringLength(128)]
  108. [Comment("语种")]
  109. public string Languages { get; set; }
  110. /// <summary>
  111. /// 计划数量
  112. /// </summary>
  113. [Precision(18,5)]
  114. [Comment("计划数量")]
  115. public decimal Qty { get; set; }
  116. /// <summary>
  117. /// 物料情况
  118. /// </summary>
  119. [StringLength(128)]
  120. [Comment("物料情况")]
  121. public string ItemStatus { get; set; }
  122. /// <summary>
  123. /// 预计齐套时间
  124. /// </summary>
  125. [Precision(18, 5)]
  126. [Comment("预计齐套时间")]
  127. public DateTime PlanKittingDate { get; set; }
  128. /// <summary>
  129. /// 灭菌开始日期
  130. /// </summary>
  131. [Precision(18, 5)]
  132. [Comment("灭菌开始日期")]
  133. public DateTime SterilizationDate { get; set; }
  134. /// <summary>
  135. /// 成品入库日期
  136. /// </summary>
  137. [Precision(18, 5)]
  138. [Comment("成品入库日期")]
  139. public DateTime InStockDate { get; set; }
  140. /// <summary>
  141. /// 组装工时
  142. /// </summary>
  143. [Precision(18, 5)]
  144. [Comment("组装工时")]
  145. public decimal AssembleHours { get; set; }
  146. /// <summary>
  147. /// 热封工时
  148. /// </summary>
  149. [Precision(18, 5)]
  150. [Comment("热封工时")]
  151. public decimal HeatSealHours { get; set; }
  152. /// <summary>
  153. /// 包装工时
  154. /// </summary>
  155. [Precision(18, 5)]
  156. [Comment("包装工时")]
  157. public decimal PackageHours { get; set; }
  158. /// <summary>
  159. /// 总工时
  160. /// </summary>
  161. [Precision(18, 5)]
  162. [Comment("包装工时")]
  163. public decimal TotalHours { get; set; }
  164. }
  165. }