ic_planTest.cs 4.7 KB

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