ReplenishmentROPWeekPlan.cs 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace Business.Domain
  5. {
  6. /// <summary>
  7. ///补货模型ROP
  8. /// </summary>
  9. [Comment("补货模型ROP周计划")]
  10. [Index(nameof(number), nameof(tenant_id), nameof(fversion),nameof(planmonth), nameof(factory_id), IsUnique = true)]
  11. public class ReplenishmentROPWeekPlan : BaseEntity
  12. {
  13. /// <summary>
  14. /// 物料编码
  15. /// </summary>
  16. [StringLength(80)]
  17. [Comment("物料编码")]
  18. public string number { get; set; }
  19. /// <summary>
  20. /// 物料名称
  21. /// </summary>
  22. [StringLength(200)]
  23. [Comment("物料名称")]
  24. public string name { get; set; }
  25. /// <summary>
  26. /// 规格型号
  27. /// </summary>
  28. [StringLength(200)]
  29. [Comment("规格型号")]
  30. public string model { get; set; }
  31. /// <summary>
  32. /// 生命周期
  33. /// </summary>
  34. [StringLength(50)]
  35. public string? lifecycle { get; set; }
  36. /// <summary>
  37. /// 市场
  38. /// </summary>
  39. [StringLength(50)]
  40. public string? area { get; set; }
  41. /// <summary>
  42. /// 物料属性:0.配置类 1.自制 2.委外加工 3.外购 4.虚拟件
  43. /// </summary>
  44. [Comment("物料属性")]
  45. public int? erp_cls { get; set; }
  46. /// <summary>
  47. /// 版本号
  48. /// </summary>
  49. [StringLength(80)]
  50. [Comment("版本号")]
  51. public string? fversion { get; set; }
  52. /// <summary>
  53. /// 计划发货数量
  54. /// </summary>
  55. [Precision(20, 8)]
  56. [Comment("发货计划")]
  57. public decimal? plan_out_qty { get; set; }
  58. /// <summary>
  59. /// 月均需求
  60. /// </summary>
  61. [Precision(20, 8)]
  62. [Comment("月均需求")]
  63. public decimal? monthl_avg_demand { get; set; }
  64. /// <summary>
  65. /// 月均需求标准方差
  66. /// </summary>
  67. [Precision(20, 8)]
  68. [Comment("月均需求标准方差")]
  69. public decimal? monthl_avg_demand_variance { get; set; }
  70. /// <summary>
  71. /// 月均出库
  72. /// </summary>
  73. [Precision(20, 8)]
  74. [Comment("月均出库")]
  75. public decimal? monthl_avg_outstock { get; set; }
  76. /// <summary>
  77. /// 供应前置期参数(天)
  78. /// </summary>
  79. [Precision(20, 8)]
  80. [Comment("供应前置期参数(天)")]
  81. public decimal? supply_leadtime { get; set; }
  82. /// <summary>
  83. /// ABC分类
  84. /// </summary>
  85. [StringLength(8)]
  86. [Comment("ABC分类")]
  87. public string? abc { get; set; }
  88. /// <summary>
  89. /// FMR分类
  90. /// </summary>
  91. [StringLength(8)]
  92. [Comment("FMR分类")]
  93. public string? fmr { get; set; }
  94. /// <summary>
  95. /// Z服务水平参数
  96. /// </summary>
  97. [Precision(20, 8)]
  98. [Comment("Z服务水平参数")]
  99. public decimal? service_level_pct { get; set; }
  100. /// <summary>
  101. /// 存货周转率
  102. /// </summary>
  103. [Precision(20, 8)]
  104. [Comment("存货周转率")]
  105. public decimal? stock_turnover { get; set; }
  106. /// <summary>
  107. /// 最小包装
  108. /// </summary>
  109. [Precision(20, 8)]
  110. [Comment("最小包装")]
  111. public decimal? min_pack_qty { get; set; }
  112. /// <summary>
  113. /// 最小批量
  114. /// </summary>
  115. [Precision(20, 8)]
  116. [Comment("最小批量")]
  117. public decimal? moq { get; set; }
  118. /// <summary>
  119. /// 安全库存
  120. /// </summary>
  121. [Precision(20, 8)]
  122. [Comment("安全库存")]
  123. public decimal? security_stock { get; set; }
  124. /// <summary>
  125. /// 圆整后供应批量
  126. /// </summary>
  127. [Precision(20, 8)]
  128. [Comment("圆整后供应批量")]
  129. public decimal? eop { get; set; }
  130. /// <summary>
  131. /// 重新订货点
  132. /// </summary>
  133. [Precision(20, 8)]
  134. [Comment("重新订货点")]
  135. public decimal? rop_computed { get; set; }
  136. /// <summary>
  137. /// 月均出库最高库存
  138. /// </summary>
  139. [Precision(20, 8)]
  140. [Comment("月均出库最高库存")]
  141. public decimal? max_stock_level { get; set; }
  142. /// <summary>
  143. /// 修正后重新订货点
  144. /// </summary>
  145. [Precision(20, 8)]
  146. [Comment("修正后重新订货点")]
  147. public decimal? rop_revised { get; set; }
  148. /// <summary>
  149. /// 该月触发补货量
  150. /// </summary>
  151. [Precision(20, 8)]
  152. [Comment("该月触发补货量")]
  153. public decimal? montheop1 { get; set; }
  154. /// <summary>
  155. /// 该月触发安全库存补货量
  156. /// </summary>
  157. [Precision(20, 8)]
  158. [Comment("该月触发安全库存补货量")]
  159. public decimal? montheop2 { get; set; }
  160. /// <summary>
  161. /// 可用库存
  162. /// </summary>
  163. [Precision(20, 8)]
  164. [Comment("可用库存")]
  165. public decimal? avaStockQty { get; set; }
  166. /// <summary>
  167. /// 销售/渠道
  168. /// </summary>
  169. [Comment("销售/渠道")]
  170. public string distributionchannel { get; set; }
  171. /// <summary>
  172. /// 年份
  173. /// </summary>
  174. [Comment("年份")]
  175. public int? year { get; set; }
  176. /// <summary>
  177. /// 月份
  178. /// </summary>
  179. [Comment("月份")]
  180. public int? month { get; set; }
  181. /// <summary>
  182. /// 计划年月
  183. /// </summary>
  184. [Comment("计划年月")]
  185. public string planmonth { get; set; }
  186. /// <summary>
  187. /// 产品线
  188. /// </summary>
  189. [StringLength(128)]
  190. [Comment("产品线")]
  191. public string? ProdLine { get; set; }
  192. /// <summary>
  193. /// 产品系列
  194. /// </summary>
  195. [StringLength(128)]
  196. [Comment("产品系列")]
  197. public string? ProdRange { get; set; }
  198. /// <summary>
  199. /// 语种
  200. /// </summary>
  201. [StringLength(128)]
  202. [Comment("语种")]
  203. public string? Languages { get; set; }
  204. }
  205. }