b_order_detail.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel.DataAnnotations;
  5. namespace Business.Domain
  6. {
  7. /// <summary>
  8. /// 物料齐套明细
  9. /// </summary>
  10. [CollectionName("dopbase", "b_order_detail")]
  11. [Comment("物料齐套明细")]
  12. public class b_order_detail : BaseEntity
  13. {
  14. /// <summary>
  15. /// 工单齐套检查id
  16. /// </summary>
  17. [Comment("工单齐套检查id")]
  18. public long? order_examine_id { get; set; }
  19. /// <summary>
  20. /// 本级id
  21. /// </summary>
  22. [Comment("本级id")]
  23. public long fid { get; set; }
  24. /// <summary>
  25. /// 父级
  26. /// </summary>
  27. [Comment("父级")]
  28. public long? parent_id { get; set; }
  29. /// <summary>
  30. /// 物料id
  31. /// </summary>
  32. [Comment("物料id")]
  33. public long? item_id { get; set; }
  34. /// <summary>
  35. /// bom编号
  36. /// </summary>
  37. [Comment("bom编号")]
  38. public string bom_number { get; set; }
  39. /// <summary>
  40. /// 物料编号
  41. /// </summary>
  42. [Comment("物料编号")]
  43. public string item_number { get; set; }
  44. /// <summary>
  45. /// 物料名称
  46. /// </summary>
  47. [Comment("物料名称")]
  48. public string item_name { get; set; }
  49. /// <summary>
  50. /// 项次号
  51. /// </summary>
  52. [Comment("项次号")]
  53. [StringLength(50)]
  54. public string num { get; set; }
  55. /// <summary>
  56. /// 排序使用
  57. /// </summary>
  58. [Comment("排序使用")]
  59. public long? num_order { get; set; }
  60. /// <summary>
  61. /// 用量
  62. /// </summary>
  63. [Comment("用量")]
  64. [Precision(23, 10)]
  65. public decimal? qty { get; set; }
  66. /// <summary>
  67. /// 本级缺料数量
  68. /// </summary>
  69. [Comment("本级缺料数量")]
  70. [Precision(23, 10)]
  71. public decimal? self_lack_qty { get; set; }
  72. /// <summary>
  73. /// 库存数量
  74. /// </summary>
  75. [Comment("库存数量")]
  76. [Precision(23, 10)]
  77. public decimal? sqty { get; set; }
  78. /// <summary>
  79. /// 库存占用数量
  80. /// </summary>
  81. [Comment("库存占用数量")]
  82. [Precision(23, 10)]
  83. public decimal? use_qty { get; set; }
  84. /// <summary>
  85. /// 在制占用数量
  86. /// </summary>
  87. [Comment("在制占用数量")]
  88. [Precision(23, 10)]
  89. public decimal? mo_qty { get; set; }
  90. /// <summary>
  91. /// 自制数量
  92. /// </summary>
  93. [Comment("自制数量")]
  94. [Precision(23, 10)]
  95. public decimal? make_qty { get; set; }
  96. /// <summary>
  97. /// 采购数量
  98. /// </summary>
  99. [Comment("采购数量")]
  100. [Precision(23, 10)]
  101. public decimal? purchase_qty { get; set; }
  102. /// <summary>
  103. /// 采购明细占用数量
  104. /// </summary>
  105. [Comment("采购明细占用数量")]
  106. [Precision(23, 10)]
  107. public decimal? purchase_occupy_qty { get; set; }
  108. /// <summary>
  109. /// 委外数量
  110. /// </summary>
  111. [Comment("委外数量")]
  112. [Precision(23, 10)]
  113. public decimal? subcontracting_qty { get; set; }
  114. /// <summary>
  115. /// 齐套时间
  116. /// </summary>
  117. [Comment("齐套时间")]
  118. public DateTime? kitting_time { get; set; }
  119. /// <summary>
  120. /// 群组代码
  121. /// </summary>
  122. [Comment("群组代码")]
  123. public string substitute_code { get; set; }
  124. /// <summary>
  125. /// 替代策略
  126. /// </summary>
  127. [Comment("替代策略")]
  128. public int? substitute_strategy { get; set; }
  129. /// <summary>
  130. /// 替代方式
  131. /// </summary>
  132. [Comment("替代方式")]
  133. public int? substitute_mode { get; set; }
  134. /// <summary>
  135. /// 是否使用此物料
  136. /// </summary>
  137. [Comment("是否使用此物料")]
  138. public bool? is_use { get; set; }
  139. }
  140. }