b_bom_child_examine.cs 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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. /// Bom明细检查结果
  9. /// </summary>
  10. [CollectionName("dopbase", "b_bom_child_examine")]
  11. [Comment("Bom明细检查结果")]
  12. public class b_bom_child_examine : BaseEntity
  13. {
  14. /// <summary>
  15. /// 资源检查ID
  16. /// </summary>
  17. [Comment("资源检查ID")]
  18. public long? examine_id { get; set; }
  19. /// <summary>
  20. /// 本级id
  21. /// </summary>
  22. [Comment("本级id")]
  23. public long fid { get; set; }
  24. /// <summary>
  25. /// 父级id
  26. /// </summary>
  27. [Comment("父级id")]
  28. public long? parent_id { get; set; }
  29. /// <summary>
  30. /// bom明细主键
  31. /// </summary>
  32. [Comment("bom明细主键")]
  33. public long? bom_child_id { get; set; }
  34. /// <summary>
  35. /// 版本
  36. /// </summary>
  37. [StringLength(80)]
  38. [Comment("版本")]
  39. public string version { get; set; }
  40. /// <summary>
  41. /// bom编号
  42. /// </summary>
  43. [Comment("bom编号")]
  44. [StringLength(20)]
  45. public string bom_number { get; set; }
  46. /// <summary>
  47. /// 物料编号
  48. /// </summary>
  49. [Comment("物料编号")]
  50. [StringLength(80)]
  51. public string item_number { get; set; }
  52. /// <summary>
  53. /// level
  54. /// </summary>
  55. [Comment("level")]
  56. public int? level { get; set; }
  57. /// <summary>
  58. /// 订单行ID
  59. /// </summary>
  60. [Comment("订单行ID")]
  61. public long? sentry_id { get; set; }
  62. /// <summary>
  63. /// BOMid
  64. /// </summary>
  65. [Comment("BOMid")]
  66. public long? bom_id { get; set; }
  67. /// <summary>
  68. /// 项次号
  69. /// </summary>
  70. [Comment("项次号")]
  71. [StringLength(50)]
  72. public string num { get; set; }
  73. /// <summary>
  74. /// 排序使用
  75. /// </summary>
  76. [Comment("排序使用")]
  77. public long? num_order { get; set; }
  78. /// <summary>
  79. /// 类型 0标准件,1替代件
  80. /// </summary>
  81. [Comment("类型")]
  82. public int? type { get; set; }
  83. /// <summary>
  84. /// 物料id
  85. /// </summary>
  86. [Comment("物料id")]
  87. public long? item_id { get; set; }
  88. /// <summary>
  89. /// 物料名称
  90. /// </summary>
  91. [Comment("物料名称")]
  92. [StringLength(200)]
  93. public string item_name { get; set; }
  94. /// <summary>
  95. /// 规格型号
  96. /// </summary>
  97. [Comment("规格型号")]
  98. [StringLength(200)]
  99. public string model { get; set; }
  100. /// <summary>
  101. /// 单位
  102. /// </summary>
  103. [Comment("单位")]
  104. [StringLength(80)]
  105. public string unit { get; set; }
  106. /// <summary>
  107. /// 物料属性 0.配置类 1.自制 2.委外加工 3.外购 4.虚拟件
  108. /// </summary>
  109. [Comment("物料属性")]
  110. public int? erp_cls { get; set; }
  111. /// <summary>
  112. /// 物料属性名称
  113. /// </summary>
  114. [Comment("物料属性名称")]
  115. [StringLength(80)]
  116. public string erp_cls_name { get; set; }
  117. /// <summary>
  118. /// 是否倒冲
  119. /// </summary>
  120. [Comment("是否倒冲")]
  121. public int? backflush { get; set; }
  122. /// <summary>
  123. /// 单位用量
  124. /// </summary>
  125. [Comment("单位用量")]
  126. [Precision(23, 10)]
  127. public decimal? qty { get; set; }
  128. /// <summary>
  129. /// 库存数量
  130. /// </summary>
  131. [Comment("库存数量")]
  132. [Precision(23, 10)]
  133. public decimal? sqty { get; set; }
  134. /// <summary>
  135. /// 库存占用数量
  136. /// </summary>
  137. [Comment("库存占用数量")]
  138. [Precision(23, 10)]
  139. public decimal? use_qty { get; set; }
  140. /// <summary>
  141. /// 本级缺料数量
  142. /// </summary>
  143. [Comment("本级缺料数量")]
  144. [Precision(23, 10)]
  145. public decimal? self_lack_qty { get; set; }
  146. /// <summary>
  147. /// 缺料数量
  148. /// </summary>
  149. [Comment("缺料数量")]
  150. [Precision(23, 10)]
  151. public decimal? lack_qty { get; set; }
  152. /// <summary>
  153. /// 在制占用数量
  154. /// </summary>
  155. [Comment("在制占用数量")]
  156. [Precision(23, 10)]
  157. public decimal? mo_qty { get; set; }
  158. /// <summary>
  159. /// 自制数量
  160. /// </summary>
  161. [Comment("自制数量")]
  162. [Precision(23, 10)]
  163. public decimal? make_qty { get; set; }
  164. /// <summary>
  165. /// 采购数量
  166. /// </summary>
  167. [Comment("采购数量")]
  168. [Precision(23, 10)]
  169. public decimal? purchase_qty { get; set; }
  170. /// <summary>
  171. /// 采购明细占用数量
  172. /// </summary>
  173. [Comment("采购明细占用数量")]
  174. [Precision(23, 10)]
  175. public decimal? purchase_occupy_qty { get; set; }
  176. /// <summary>
  177. /// 委外数量
  178. /// </summary>
  179. [Comment("委外数量")]
  180. [Precision(23, 10)]
  181. public decimal? subcontracting_qty { get; set; }
  182. /// <summary>
  183. /// 齐套时间
  184. /// </summary>
  185. [Comment("齐套时间")]
  186. public DateTime? kitting_time { get; set; }
  187. /// <summary>
  188. /// 自制时长(天)
  189. /// </summary>
  190. [Comment("自制时长(天)")]
  191. public int? make_time { get; set; }
  192. /// <summary>
  193. /// 采购前置(需加上自制)
  194. /// </summary>
  195. [Comment("采购前置时间")]
  196. public int? pre_time { get; set; }
  197. /// <summary>
  198. /// 满足时间
  199. /// </summary>
  200. [Comment("满足时间")]
  201. public DateTime? satisfy_time { get; set; }
  202. /// <summary>
  203. /// 是否BOM
  204. /// </summary>
  205. [Comment("是否BOM")]
  206. public int? isbom { get; set; }
  207. /// <summary>
  208. /// 存在替代关系
  209. /// </summary>
  210. [Comment("存在替代关系")]
  211. public int? haveicsubs { get; set; }
  212. /// <summary>
  213. /// 群组代码
  214. /// </summary>
  215. [Comment("群组代码")]
  216. [StringLength(20)]
  217. public string substitute_code { get; set; }
  218. /// <summary>
  219. /// 群组优先级
  220. /// </summary>
  221. [Comment("群组优先级")]
  222. public int? substitute_all_num { get; set; }
  223. /// <summary>
  224. /// 替代策略
  225. /// </summary>
  226. [Comment("替代策略")]
  227. public int? substitute_strategy { get; set; }
  228. /// <summary>
  229. /// 替代方式
  230. /// </summary>
  231. [Comment("替代方式")]
  232. public int? substitute_mode { get; set; }
  233. /// <summary>
  234. /// 物料状态-- -1.无需求 0.缺料 1.充足 2.可制,时间满足 3.可制,时间不满足 4.采购 5.委外
  235. /// </summary>
  236. [Comment("物料状态")]
  237. public int? stock_state { get; set; }
  238. /// <summary>
  239. /// 单个产品总需要用量(含损耗率和固定损耗量)
  240. /// </summary>
  241. [Comment("单个产品总需要用量")]
  242. [Precision(23, 10)]
  243. public decimal? needCount { get; set; }
  244. /// <summary>
  245. /// 单个产品总需要用量(不含损耗率和固定损耗量)
  246. /// </summary>
  247. [Comment("总需要用量")]
  248. [Precision(23, 10)]
  249. public decimal? needCountNoloss { get; set; }
  250. /// <summary>
  251. /// 是否使用此物料
  252. /// </summary>
  253. [Comment("是否使用此物料")]
  254. public bool is_use { get; set; }
  255. /// <summary>
  256. /// 工序
  257. /// </summary>
  258. [Comment("工序")]
  259. public int Op { get; set; }
  260. /// <summary>
  261. /// 损耗率
  262. /// </summary>
  263. [Comment("损耗率")]
  264. [Precision(23, 10)]
  265. public decimal? scrap { get; set; }
  266. /// <summary>
  267. /// 固定损耗量
  268. /// </summary>
  269. [Comment("固定损耗量")]
  270. [Precision(12, 5)]
  271. public decimal? wastage { get; set; }
  272. }
  273. }