ReplenishmentWeekPlan.cs 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. [Precision(18,5)]
  21. public decimal Priority { get; set; }
  22. /// <summary>
  23. /// 市场
  24. /// </summary>
  25. [StringLength(128)]
  26. [Comment("市场")]
  27. public string? Area { get; set; }
  28. /// <summary>
  29. /// 开工日期
  30. /// </summary>
  31. [Comment("开工日期")]
  32. public DateTime? PlanStartDate { get; set; }
  33. /// <summary>
  34. /// 开工日期星期
  35. /// </summary>
  36. [StringLength(128)]
  37. [Comment("开工日期星期")]
  38. public string? Week { get; set; }
  39. /// <summary>
  40. /// 计算星期(标识已经计算的周次)
  41. /// </summary>
  42. [StringLength(128)]
  43. [Comment("计算星期")]
  44. public string? CalcWeek { get; set; }
  45. /// <summary>
  46. /// 订单号
  47. /// </summary>
  48. [StringLength(128)]
  49. [Comment("订单号")]
  50. public string? OrderNO { get; set; }
  51. /// <summary>
  52. /// 生产指令
  53. /// </summary>
  54. [StringLength(128)]
  55. [Comment("生产指令")]
  56. public string? ProductionOrder { get; set; }
  57. /// <summary>
  58. /// SAP工单号
  59. /// </summary>
  60. [StringLength(128)]
  61. [Comment("SAP工单号")]
  62. public string? SAPOrderNO { get; set; }
  63. /// <summary>
  64. /// 指令类型
  65. /// </summary>
  66. [StringLength(128)]
  67. [Comment("指令类型")]
  68. public string OrderType { get; set; }
  69. /// <summary>
  70. /// 生产批次
  71. /// </summary>
  72. [StringLength(128)]
  73. [Comment("生产批次")]
  74. public string? ProductionBatch { get; set; }
  75. /// <summary>
  76. /// 发布状态
  77. /// </summary>
  78. [StringLength(128)]
  79. [Comment("发布状态")]
  80. public string? ProductionStatus { get; set; }
  81. /// <summary>
  82. /// 产品线
  83. /// </summary>
  84. [StringLength(128)]
  85. [Comment("产品线")]
  86. public string? ProdLine { get; set; }
  87. /// <summary>
  88. /// 产品系列
  89. /// </summary>
  90. [StringLength(128)]
  91. [Comment("产品系列")]
  92. public string? ProdRange { get; set; }
  93. /// <summary>
  94. /// 车间线体(产线)
  95. /// </summary>
  96. [StringLength(128)]
  97. [Comment("车间线体(产线)")]
  98. public string? Line { get; set; }
  99. /// <summary>
  100. /// 物料编码
  101. /// </summary>
  102. [StringLength(128)]
  103. [Comment("物料编码")]
  104. public string ItemNumber { get; set; }
  105. /// <summary>
  106. /// 规格型号
  107. /// </summary>
  108. [StringLength(128)]
  109. [Comment("规格型号")]
  110. public string? Model { get; set; }
  111. /// <summary>
  112. /// 语种
  113. /// </summary>
  114. [StringLength(128)]
  115. [Comment("语种")]
  116. public string? Languages { get; set; }
  117. /// <summary>
  118. /// 计划数量
  119. /// </summary>
  120. [Precision(18,5)]
  121. [Comment("计划数量")]
  122. public decimal Qty { get; set; }
  123. /// <summary>
  124. /// 物料情况
  125. /// </summary>
  126. [StringLength(128)]
  127. [Comment("物料情况")]
  128. public string? ItemStatus { get; set; }
  129. /// <summary>
  130. /// 预计齐套时间
  131. /// </summary>
  132. [Precision(18, 5)]
  133. [Comment("预计齐套时间")]
  134. public DateTime? PlanKittingDate { get; set; }
  135. /// <summary>
  136. /// 灭菌开始日期
  137. /// </summary>
  138. [Precision(18, 5)]
  139. [Comment("灭菌开始日期")]
  140. public DateTime? SterilizationDate { get; set; }
  141. /// <summary>
  142. /// 成品入库日期
  143. /// </summary>
  144. [Precision(18, 5)]
  145. [Comment("成品入库日期")]
  146. public DateTime? InStockDate { get; set; }
  147. /// <summary>
  148. /// 组装工时
  149. /// </summary>
  150. [Precision(18, 5)]
  151. [Comment("组装工时")]
  152. public decimal AssembleHours { get; set; }
  153. /// <summary>
  154. /// 热封工时
  155. /// </summary>
  156. [Precision(18, 5)]
  157. [Comment("热封工时")]
  158. public decimal HeatSealHours { get; set; }
  159. /// <summary>
  160. /// 包装工时
  161. /// </summary>
  162. [Precision(18, 5)]
  163. [Comment("包装工时")]
  164. public decimal PackageHours { get; set; }
  165. /// <summary>
  166. /// 总工时
  167. /// </summary>
  168. [Precision(18, 5)]
  169. [Comment("包装工时")]
  170. public decimal TotalHours { get; set; }
  171. /// <summary>
  172. /// 销售/渠道
  173. /// </summary>
  174. public string DistributionChannel { get; set; }
  175. /// <summary>
  176. /// 是否为周补货计划,Y/N
  177. /// </summary>
  178. public string IsReplenishmentModel { get; set; }
  179. //周生产计划的年
  180. public int? Year { get; set; }
  181. //周生产计划的月份
  182. public int? Month { get; set; }
  183. //周生产计划在月份中的周次,0,1,2,3
  184. public int? WeekSeq { get; set; }
  185. //计划年月
  186. public string? PlanMonth { get; set; }
  187. /// <summary>
  188. /// 父计划id
  189. /// </summary>
  190. public string ParentIds { get; set; }
  191. /// <summary>
  192. /// 父物料总需求数
  193. /// </summary>
  194. [Precision(18, 5)]
  195. [Comment("父物料总需求数")]
  196. public decimal? ParentNeedCount { get; set; }
  197. /// <summary>
  198. /// 总库存
  199. /// </summary>
  200. [Precision(18, 5)]
  201. [Comment("总库存")]
  202. public decimal? StokcQty { get; set; }
  203. /// <summary>
  204. /// 总在制
  205. /// </summary>
  206. [Precision(18, 5)]
  207. [Comment("总在制")]
  208. public decimal? ProdcutQty { get; set; }
  209. }
  210. }