ic_factory_details.cs 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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 Business.Model.MES.IC
  8. {
  9. /// <summary>
  10. /// 工厂物料明细表
  11. /// </summary>
  12. [CollectionName("dopbase", "ic_factory_details")]
  13. [Comment("工厂物料明细表")]
  14. public class ic_factory_details : BaseEntity
  15. {
  16. public ic_factory_details(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? factory_fode { get; set; }
  37. /// <summary>
  38. /// 特殊备注
  39. /// </summary>
  40. [StringLength(1000)]
  41. [Comment("特殊备注")]
  42. public string? note { get; set; }
  43. /// <summary>
  44. /// 产品线
  45. /// </summary>
  46. [StringLength(80)]
  47. [Comment("产品线")]
  48. public string? product_line { get; set; }
  49. /// <summary>
  50. /// 领料类型
  51. /// </summary>
  52. [Comment("领料类型")]
  53. public long? pick_type { get; set; }
  54. /// <summary>
  55. /// 是否采用业务批次管理
  56. /// </summary>
  57. [Comment("是否采用业务批次管理")]
  58. public int? batch_manager { get; set; }
  59. /// <summary>
  60. /// 是否需要库龄管理
  61. /// </summary>
  62. [Comment("是否需要库龄管理")]
  63. public int? stock_time { get; set; }
  64. /// <summary>
  65. /// 盘点周期单位
  66. /// </summary>
  67. [StringLength(80)]
  68. [Comment("盘点周期单位")]
  69. public string? check_cycunit { get; set; }
  70. /// <summary>
  71. /// 盘点周期
  72. /// </summary>
  73. [Precision(23, 10)]
  74. [Comment("盘点周期")]
  75. public decimal? check_cycle { get; set; }
  76. /// <summary>
  77. /// 每周_月第天
  78. /// </summary>
  79. [Comment("每周_月第天")]
  80. public int? days_per { get; set; }
  81. /// <summary>
  82. /// 上次盘点日期
  83. /// </summary>
  84. [Comment("上次盘点日期")]
  85. public DateTime? last_checkdate { get; set; }
  86. /// <summary>
  87. /// 默认待检仓库
  88. /// </summary>
  89. [Comment("默认待检仓库")]
  90. public long? default_chkloc { get; set; }
  91. /// <summary>
  92. /// 默认待检仓位
  93. /// </summary>
  94. [Comment("默认待检仓位")]
  95. public long? default_chksp { get; set; }
  96. /// <summary>
  97. /// 默认仓库
  98. /// </summary>red]
  99. [Comment("默认仓库")]
  100. public long? default_loc { get; set; }
  101. /// <summary>
  102. /// 默认仓位
  103. /// </summary>
  104. [Comment("默认仓位")]
  105. public long? default_sp { get; set; }
  106. /// <summary>
  107. /// 货架信息
  108. /// </summary>
  109. [StringLength(80)]
  110. [Comment("货架信息")]
  111. public string? item_shelve { get; set; }
  112. /// <summary>
  113. /// 默认仓管员
  114. /// </summary>
  115. [StringLength(80)]
  116. [Comment("默认仓管员")]
  117. public string? default_manager { get; set; }
  118. /// <summary>
  119. /// 最低存量
  120. /// </summary>
  121. [Precision(23, 10)]
  122. [Comment("最低存量")]
  123. public decimal? low_limit { get; set; }
  124. /// <summary>
  125. /// 最高存量
  126. /// </summary>
  127. [Precision(23, 10)]
  128. [Comment("最高存量")]
  129. public decimal? high_limit { get; set; }
  130. /// <summary>
  131. /// 最大订货量
  132. /// </summary>
  133. [Precision(23, 10)]
  134. [Comment("最大订货量")]
  135. public decimal? qty_max { get; set; }
  136. /// <summary>
  137. /// 日消耗量
  138. /// </summary>
  139. [Precision(23, 10)]
  140. [Comment("日消耗量")]
  141. public decimal? daily_consume { get; set; }
  142. /// <summary>
  143. /// 库存备注
  144. /// </summary>
  145. [StringLength(1000)]
  146. [Comment("库存备注")]
  147. public string? warehouse_note { get; set; }
  148. /// <summary>
  149. /// 工单发料时间/天
  150. /// </summary>
  151. [Precision(23, 10)]
  152. [Comment("工单发料时间/天")]
  153. public decimal? ordissu_days { get; set; }
  154. /// <summary>
  155. /// 原材料收货处理时间/天
  156. /// </summary>
  157. [Precision(23, 10)]
  158. [Comment("原材料收货处理时间/天")]
  159. public decimal? raw_matreceiv_days { get; set; }
  160. /// <summary>
  161. /// 成品入库时间/天
  162. /// </summary>
  163. [Precision(23, 10)]
  164. [Comment("成品入库时间/天")]
  165. public decimal? prdenter_days { get; set; }
  166. /// <summary>
  167. /// 原材料入库时间/天
  168. /// </summary>
  169. [Precision(23, 10)]
  170. [Comment("原材料入库时间/天")]
  171. public decimal? mat_enter_days { get; set; }
  172. /// <summary>
  173. /// 成品发货时间/天
  174. /// </summary>
  175. [Precision(23, 10)]
  176. [Comment("成品发货时间/天")]
  177. public decimal? prd_out_days { get; set; }
  178. /// <summary>
  179. /// 运输中提前期_天
  180. /// </summary>
  181. [Comment("运输中提前期_天")]
  182. [Required]
  183. [DefaultValue(0)]
  184. [Precision(23, 10)]
  185. public decimal? transportation_leadtime { get; set; }
  186. /// <summary>
  187. /// 仓库中提前期_天
  188. /// </summary>
  189. [Comment("仓库中提前期_天")]
  190. [Required]
  191. [DefaultValue(0)]
  192. [Precision(23, 10)]
  193. public decimal? stock_leadtime { get; set; }
  194. /// <summary>
  195. /// 生产中提前期_天
  196. /// </summary>
  197. [Comment("生产中提前期_天")]
  198. [Required]
  199. [DefaultValue(0)]
  200. [Precision(23, 10)]
  201. public decimal? production_leadtime { get; set; }
  202. /// <summary>
  203. /// 下单前置期_天
  204. /// </summary>
  205. [Comment("下单前置期_天")]
  206. [Required]
  207. [DefaultValue(0)]
  208. [Precision(23, 10)]
  209. public decimal? order_leadtime { get; set; }
  210. /// <summary>
  211. /// 最小包装量
  212. /// </summary>
  213. [Comment("最小包装量")]
  214. [Required]
  215. [DefaultValue(0)]
  216. [Precision(23, 10)]
  217. public decimal? minpackqty { get; set; }
  218. /// <summary>
  219. /// 最小订单量
  220. /// </summary>
  221. [Comment("最小订单量")]
  222. [Required]
  223. [DefaultValue(0)]
  224. [Precision(23, 10)]
  225. public decimal? minorderqty { get; set; }
  226. /// <summary>
  227. /// 是否倒冲
  228. /// </summary>
  229. [Comment("是否倒冲")]
  230. public int? isbackflush { get; set; }
  231. /// <summary>
  232. /// 生产负责人
  233. /// </summary>
  234. [StringLength(80)]
  235. [Comment("生产负责人")]
  236. public string? product_principal { get; set; }
  237. /// <summary>
  238. /// 倒冲仓库
  239. /// </summary>
  240. [StringLength(80)]
  241. [Comment("倒冲仓库")]
  242. public string? back_flush_stock { get; set; }
  243. /// <summary>
  244. /// 倒冲仓位
  245. /// </summary>
  246. [StringLength(80)]
  247. [Comment("倒冲仓位")]
  248. public string? back_flush_sp { get; set; }
  249. /// <summary>
  250. /// 投料自动取整
  251. /// </summary>
  252. [Comment("投料自动取整")]
  253. public int? put_integer { get; set; }
  254. /// <summary>
  255. /// 计算ID
  256. /// </summary>
  257. [Comment("计算id")]
  258. [NotMapped]
  259. public long? bang_id { get; set; }
  260. }
  261. }