b_bom_child_examine.cs 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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(100)]
  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 fqc_occupy_qty { get; set; }
  182. /// <summary>
  183. /// 委外数量
  184. /// </summary>
  185. [Comment("委外数量")]
  186. [Precision(23, 10)]
  187. public decimal? subcontracting_qty { get; set; }
  188. /// <summary>
  189. /// 齐套时间
  190. /// </summary>
  191. [Comment("齐套时间")]
  192. public DateTime? kitting_time { get; set; }
  193. /// <summary>
  194. /// 自制时长(天)
  195. /// </summary>
  196. [Comment("自制时长(天)")]
  197. public int? make_time { get; set; }
  198. /// <summary>
  199. /// 采购前置(需加上自制)
  200. /// </summary>
  201. [Comment("采购前置时间")]
  202. public int? pre_time { get; set; }
  203. /// <summary>
  204. /// 满足时间
  205. /// </summary>
  206. [Comment("满足时间")]
  207. public DateTime? satisfy_time { get; set; }
  208. /// <summary>
  209. /// 是否BOM
  210. /// </summary>
  211. [Comment("是否BOM")]
  212. public int? isbom { get; set; }
  213. /// <summary>
  214. /// 存在替代关系
  215. /// </summary>
  216. [Comment("存在替代关系")]
  217. public int? haveicsubs { get; set; }
  218. /// <summary>
  219. /// 群组代码
  220. /// </summary>
  221. [Comment("群组代码")]
  222. [StringLength(20)]
  223. public string substitute_code { get; set; }
  224. /// <summary>
  225. /// 群组优先级
  226. /// </summary>
  227. [Comment("群组优先级")]
  228. public int? substitute_all_num { get; set; }
  229. /// <summary>
  230. /// 替代策略
  231. /// </summary>
  232. [Comment("替代策略")]
  233. public int? substitute_strategy { get; set; }
  234. /// <summary>
  235. /// 替代方式
  236. /// </summary>
  237. [Comment("替代方式")]
  238. public int? substitute_mode { get; set; }
  239. /// <summary>
  240. /// 物料状态-- -1.无需求 0.缺料 1.充足 2.可制,时间满足 3.可制,时间不满足 4.采购 5.委外
  241. /// </summary>
  242. [Comment("物料状态")]
  243. public int? stock_state { get; set; }
  244. /// <summary>
  245. /// 物料齐套状态-- -1.库存可满足 2.在途可满足 3.在制可满足 4.承诺交期可满足 5.不齐套
  246. /// </summary>
  247. public int? kitting_state { get; set; }
  248. /// <summary>
  249. /// 单个产品总需要用量(含损耗率和固定损耗量)
  250. /// </summary>
  251. [Comment("单个产品总需要用量")]
  252. [Precision(23, 10)]
  253. public decimal? needCount { get; set; }
  254. /// <summary>
  255. /// 单个产品总需要用量(不含损耗率和固定损耗量)
  256. /// </summary>
  257. [Comment("总需要用量")]
  258. [Precision(23, 10)]
  259. public decimal? needCountNoloss { get; set; }
  260. /// <summary>
  261. /// 是否使用此物料
  262. /// </summary>
  263. [Comment("是否使用此物料")]
  264. public bool is_use { get; set; }
  265. /// <summary>
  266. /// 工序
  267. /// </summary>
  268. [Comment("工序")]
  269. public int Op { get; set; }
  270. /// <summary>
  271. /// 损耗率
  272. /// </summary>
  273. [Comment("损耗率")]
  274. [Precision(23, 10)]
  275. public decimal? scrap { get; set; }
  276. /// <summary>
  277. /// 固定损耗量
  278. /// </summary>
  279. [Comment("固定损耗量")]
  280. [Precision(12, 5)]
  281. public decimal? wastage { get; set; }
  282. }
  283. }