mo_ic_plan.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. using Business.Core.Attributes;
  2. using Bussiness.MongoModel;
  3. using Microsoft.EntityFrameworkCore;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7. namespace Bussiness.MongoModel.MES.IC
  8. {
  9. /// <summary>
  10. /// 物料采购计划表
  11. /// </summary>
  12. [CollectionName("dopbase", "mo_ic_plan")]
  13. [Comment("物料采购计划表")]
  14. public class mo_ic_plan : MoBaseEntity
  15. {
  16. /// <summary>
  17. /// 物料id
  18. /// </summary>
  19. [Required]
  20. [Comment("物料id")]
  21. public long icitem_id { get; set; }
  22. /// <summary>
  23. /// 物料名称
  24. /// </summary>
  25. [StringLength(80)]
  26. [Comment("物料名称")]
  27. public string? icitem_name { get; set; }
  28. /// <summary>
  29. /// 计划员
  30. /// </summary>
  31. [StringLength(80)]
  32. [Comment("计划员")]
  33. public string? planner_name { get; set; }
  34. /// <summary>
  35. /// 计划员_工号
  36. /// </summary>
  37. [StringLength(80)]
  38. [Comment("计划员_工号")]
  39. public string? planner_num { get; set; }
  40. /// <summary>
  41. /// 工厂编码
  42. /// </summary>
  43. [StringLength(80)]
  44. [Comment("工厂编码")]
  45. public string? factory_code { get; set; }
  46. /// <summary>
  47. /// 固定提前期(天)
  48. /// </summary>
  49. [Precision(20, 8)]
  50. [Comment("固定提前期(天)")]
  51. public decimal? fix_leadtime { get; set; }
  52. /// <summary>
  53. /// 计划策略
  54. /// </summary>
  55. [Comment("计划策略")]
  56. public int plan_trategy { get; set; }
  57. /// <summary>
  58. /// 订货策略
  59. /// </summary>
  60. [Comment("订货策略")]
  61. public int order_trategy { get; set; }
  62. /// <summary>
  63. /// 订货间隔期_天
  64. /// </summary>
  65. [Precision(20, 8)]
  66. [Comment("订货间隔期_天")]
  67. public decimal? order_inter_val { get; set; }
  68. /// <summary>
  69. /// 变动提前期
  70. /// </summary>
  71. [Precision(20, 8)]
  72. [Comment("变动提前期")]
  73. public decimal? lead_time { get; set; }
  74. /// <summary>
  75. /// 变动提前期批量
  76. /// </summary>
  77. [Precision(20, 8)]
  78. [Comment("变动提前期批量")]
  79. public decimal? bat_change_economy { get; set; }
  80. /// <summary>
  81. /// 累计提前期
  82. /// </summary>
  83. [Precision(20, 8)]
  84. [Comment("累计提前期")]
  85. public decimal? total_tqq { get; set; }
  86. /// <summary>
  87. /// 再订货点
  88. /// </summary>
  89. [StringLength(80)]
  90. [Comment("再订货点")]
  91. public string? order_point { get; set; }
  92. /// <summary>
  93. /// 设置为固定再订货点
  94. /// </summary>
  95. [Comment("设置为固定再订货点")]
  96. public int isfixedreorder { get; set; }
  97. /// <summary>
  98. /// 安全库存数量
  99. /// </summary>
  100. [Precision(20, 8)]
  101. [Comment("安全库存数量")]
  102. public decimal? secinv { get; set; }
  103. /// <summary>
  104. /// 安全库存触发采购比例
  105. /// </summary>
  106. [Precision(20, 8)]
  107. [Comment("安全库存触发采购比例")]
  108. public decimal? secinv_ratio { get; set; }
  109. /// <summary>
  110. /// 是否需要进行订补货计划的运算
  111. /// </summary>
  112. [Comment("是否需要进行订补货计划的运算")]
  113. public int book_plan { get; set; }
  114. /// <summary>
  115. /// 辅助属性参与计划运算
  116. /// </summary>
  117. [Comment("辅助属性参与计划运算")]
  118. public int aux_prop_plan { get; set; }
  119. /// <summary>
  120. /// 计划备注
  121. /// </summary>
  122. [StringLength(1000)]
  123. [Comment("计划备注")]
  124. public string? plannote { get; set; }
  125. /// <summary>
  126. /// 自检提前期
  127. /// </summary>
  128. [Precision(20, 8)]
  129. [Comment("自检提前期")]
  130. public decimal? self_inspection_date { get; set; }
  131. /// <summary>
  132. /// 入库提前期
  133. /// </summary>
  134. [Precision(20, 8)]
  135. [Comment("入库提前期")]
  136. public decimal? Warehousing_date { get; set; }
  137. /// <summary>
  138. /// 发运提前期
  139. /// </summary>
  140. [Precision(20, 8)]
  141. [Comment("发运提前期")]
  142. public decimal? Shipping_date { get; set; }
  143. }
  144. }