ReplenishmentROP.cs 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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(long_period),nameof(short_period),nameof(isparam), nameof(seqno),nameof(zero_based_seqno), nameof(factory_id), IsUnique = true)]
  11. public class ReplenishmentROP : 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? actual_period_start_instock { get; set; }
  58. /// <summary>
  59. /// 计划发货数量
  60. /// </summary>
  61. [Precision(20, 8)]
  62. [Comment("发货计划")]
  63. public decimal? plan_out_qty { get; set; }
  64. /// <summary>
  65. /// 实际发货 为空或-1时表示不适用,为0时表示没有发货记录。注意能区分这两种形式
  66. /// </summary>
  67. [Precision(20, 8)]
  68. [Comment("实际发货")]
  69. public decimal? actual_out_qty { get; set; }
  70. /// <summary>
  71. /// 计划生产
  72. /// </summary>
  73. [Precision(20, 8)]
  74. [Comment("计划生产")]
  75. public decimal? plan_in { get; set; }
  76. /// <summary>
  77. /// 实际生产
  78. /// </summary>
  79. [Precision(20, 8)]
  80. [Comment("实际生产")]
  81. public decimal? actual_in { get; set; }
  82. /// <summary>
  83. /// 计划期末库存
  84. /// </summary>
  85. [Precision(20, 8)]
  86. [Comment("计划期末库存")]
  87. public decimal? plan_period_end_instock { get; set; }
  88. /// <summary>
  89. /// 实际期末库存
  90. /// </summary>
  91. [Precision(20, 8)]
  92. [Comment("实际期末库存")]
  93. public decimal? actual_period_end_instock { get; set; }
  94. /// <summary>
  95. /// 库存偏差
  96. /// </summary>
  97. [Precision(20, 8)]
  98. [Comment("库存偏差")]
  99. public decimal? instock_deviation { get; set; }
  100. /// <summary>
  101. /// 年份
  102. /// </summary>
  103. [Comment("年份")]
  104. public int? year { get; set; }
  105. /// <summary>
  106. /// 长周期:年Y月M周W
  107. /// </summary>
  108. [StringLength(8)]
  109. [Comment("长周期")]
  110. public string? long_period { get; set; }
  111. /// <summary>
  112. /// 短周期:月M周W日D
  113. /// </summary>
  114. [StringLength(8)]
  115. [Comment("短周期")]
  116. public string? short_period { get; set; }
  117. /// <summary>
  118. /// 序次号,短在长中间的序次号,在补货模型中,长周期都是年,短周期是月(1~12), 或周(1~53)
  119. /// </summary>
  120. [Comment("序次号,短在长中间的序次号,在补货模型中,长周期都是年,短周期是月(1~12), 或周(1~53)")]
  121. public int? seqno { get; set; }
  122. /// <summary>
  123. /// 计算辅助列,由于月和周是分别的记录,都可以区分开。 当前周期为0,前后到h ~f每个周期末动态修改方便计算使用
  124. /// </summary>
  125. [Comment("计算辅助列,由于月和周是分别的记录,都可以区分开。当前周期为0,前后到h ~f每个周期末动态修改方便计算使用")]
  126. public int? zero_based_seqno { get; set; }
  127. /// <summary>
  128. /// 周期开始日期
  129. /// </summary>
  130. [Comment("周期开始日期")]
  131. public DateTime? period_start_date { get; set; }
  132. /// <summary>
  133. /// 周期结束日期
  134. /// </summary>
  135. [Comment("周期结束日期")]
  136. public DateTime? period_end_date { get; set; }
  137. /// <summary>
  138. /// 月均需求
  139. /// </summary>
  140. [Precision(20, 8)]
  141. [Comment("月均需求")]
  142. public decimal? monthl_avg_demand { get; set; }
  143. /// <summary>
  144. /// 月均需求标准方差
  145. /// </summary>
  146. [Precision(20, 8)]
  147. [Comment("月均需求标准方差")]
  148. public decimal? monthl_avg_demand_variance { get; set; }
  149. /// <summary>
  150. /// 月均出库
  151. /// </summary>
  152. [Precision(20, 8)]
  153. [Comment("月均出库")]
  154. public decimal? monthl_avg_outstock { get; set; }
  155. /// <summary>
  156. /// 供应前置期参数(天)
  157. /// </summary>
  158. [Precision(20, 8)]
  159. [Comment("供应前置期参数(天)")]
  160. public decimal? supply_leadtime { get; set; }
  161. /// <summary>
  162. /// ABC分类
  163. /// </summary>
  164. [StringLength(8)]
  165. [Comment("ABC分类")]
  166. public string? abc { get; set; }
  167. /// <summary>
  168. /// FMR分类
  169. /// </summary>
  170. [StringLength(8)]
  171. [Comment("FMR分类")]
  172. public string? fmr { get; set; }
  173. /// <summary>
  174. /// Z服务水平参数
  175. /// </summary>
  176. [Precision(20, 8)]
  177. [Comment("Z服务水平参数")]
  178. public decimal? service_level_pct { get; set; }
  179. /// <summary>
  180. /// 存货周转率
  181. /// </summary>
  182. [Precision(20, 8)]
  183. [Comment("存货周转率")]
  184. public decimal? stock_turnover { get; set; }
  185. /// <summary>
  186. /// 最小包装
  187. /// </summary>
  188. [Precision(20, 8)]
  189. [Comment("最小包装")]
  190. public decimal? min_pack_qty { get; set; }
  191. /// <summary>
  192. /// 最小批量
  193. /// </summary>
  194. [Precision(20, 8)]
  195. [Comment("最小批量")]
  196. public decimal? moq { get; set; }
  197. /// <summary>
  198. /// 安全库存
  199. /// </summary>
  200. [Precision(20, 8)]
  201. [Comment("安全库存")]
  202. public decimal? security_stock { get; set; }
  203. /// <summary>
  204. /// 圆整后供应批量
  205. /// </summary>
  206. [Precision(20, 8)]
  207. [Comment("圆整后供应批量")]
  208. public decimal? eop { get; set; }
  209. /// <summary>
  210. /// 重新订货点
  211. /// </summary>
  212. [Precision(20, 8)]
  213. [Comment("重新订货点")]
  214. public decimal? rop_computed { get; set; }
  215. /// <summary>
  216. /// 月均出库最高库存
  217. /// </summary>
  218. [Precision(20, 8)]
  219. [Comment("月均出库最高库存")]
  220. public decimal? max_stock_level { get; set; }
  221. /// <summary>
  222. /// 修正后重新订货点
  223. /// </summary>
  224. [Precision(20, 8)]
  225. [Comment("修正后重新订货点")]
  226. public decimal? rop_revised { get; set; }
  227. /// <summary>
  228. /// 销售/渠道
  229. /// </summary>
  230. [Comment("销售/渠道")]
  231. public string distributionchannel { get; set; }
  232. /// <summary>
  233. /// 是否是计算参数,默认为否,是的话一月更新一次
  234. /// </summary>
  235. [Comment("是否是计算参数,默认为否,是的话一月更新一次")]
  236. public bool isparam { get; set; }
  237. }
  238. }