mo_ic_item.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. namespace Business.Domain
  6. {
  7. /// <summary>
  8. /// 物料详情
  9. /// </summary>
  10. [CollectionName("dopbase", "mo_ic_item")]
  11. [Comment("物料详情")]
  12. public class mo_ic_item : MoBaseEntity
  13. {
  14. /// <summary>
  15. /// 物料编码
  16. /// </summary>
  17. [StringLength(80)]
  18. [Comment("物料编码")]
  19. public string? number { get; set; }
  20. /// <summary>
  21. /// 物料名称
  22. /// </summary>
  23. [StringLength(80)]
  24. [Comment("物料名称")]
  25. public string? name { get; set; }
  26. /// <summary>
  27. /// 规格型号
  28. /// </summary>
  29. [StringLength(200)]
  30. [Comment("规格型号")]
  31. public string? model { get; set; }
  32. /// <summary>
  33. /// 全名
  34. /// </summary>
  35. [StringLength(255)]
  36. [Comment("全名")]
  37. public string? full_name { get; set; }
  38. /// <summary>
  39. /// fms旧料号
  40. /// </summary>
  41. [StringLength(80)]
  42. [Comment("fms旧料号")]
  43. public string? fms_number { get; set; }
  44. /// <summary>
  45. /// erp旧料号
  46. /// </summary>
  47. [StringLength(80)]
  48. [Comment("erp旧料号")]
  49. public string? erp_oldnumber { get; set; }
  50. /// <summary>
  51. /// 图号
  52. /// </summary>
  53. [StringLength(80)]
  54. [Comment("图号")]
  55. public string? chart_number { get; set; }
  56. /// <summary>
  57. /// 版本号
  58. /// </summary>
  59. [StringLength(80)]
  60. [Comment("版本号")]
  61. public string? fversion { get; set; }
  62. /// <summary>
  63. /// 盒贴规格
  64. /// </summary>
  65. [StringLength(200)]
  66. [Comment("盒贴规格")]
  67. public string? box_model { get; set; }
  68. /// <summary>
  69. /// 物料属性
  70. /// </summary>
  71. [Comment("物料属性")]
  72. public int? erp_cls { get; set; }
  73. /// <summary>
  74. /// 物料属性名称
  75. /// </summary>
  76. [StringLength(80)]
  77. [Comment("物料属性")]
  78. public string? erp_cls_name { get; set; }
  79. /// <summary>
  80. /// 单位
  81. /// </summary>
  82. [StringLength(80)]
  83. [Comment("单位")]
  84. public string? unit { get; set; }
  85. /// <summary>
  86. /// 物料等级
  87. /// </summary>
  88. [Comment("物料等级")]
  89. public long? item_level { get; set; }
  90. /// <summary>
  91. /// 单位标准工时_小时
  92. /// </summary>
  93. [Precision(23, 10)]
  94. [Comment("单位标准工时_小时")]
  95. public decimal? standard_manhour { get; set; }
  96. /// <summary>
  97. /// 单位材料定额_元
  98. /// </summary>
  99. [Precision(23, 10)]
  100. [Comment("单位材料定额_元")]
  101. public decimal? unititem_amount { get; set; }
  102. /// <summary>
  103. /// 来源
  104. /// </summary>
  105. [StringLength(200)]
  106. [Comment("来源")]
  107. public string? source { get; set; }
  108. /// <summary>
  109. /// 是否为设备
  110. /// </summary>
  111. [Comment("是否为设备")]
  112. public int? is_equipment { get; set; }
  113. /// <summary>
  114. /// 单位包装数量
  115. /// </summary>
  116. [Precision(23, 10)]
  117. [Comment("单位包装数量")]
  118. public decimal? unit_qty { get; set; }
  119. /// <summary>
  120. /// 是否关键件
  121. /// </summary>
  122. [Comment("是否关键件")]
  123. public int? iskeyitem { get; set; }
  124. /// <summary>
  125. /// 毛重
  126. /// </summary>
  127. [Precision(23, 10)]
  128. [Comment("毛重")]
  129. public decimal? gross_weight { get; set; }
  130. /// <summary>
  131. /// 净重
  132. /// </summary>
  133. [Precision(23, 10)]
  134. [Comment("净重")]
  135. public decimal? net_weight { get; set; }
  136. /// <summary>
  137. /// 重量单位
  138. /// </summary>
  139. [StringLength(80)]
  140. [Comment("重量单位")]
  141. public string? maund { get; set; }
  142. /// <summary>
  143. /// 长度
  144. /// </summary>
  145. [Precision(23, 10)]
  146. [Comment("长度")]
  147. public decimal? length { get; set; }
  148. /// <summary>
  149. /// 长度单位
  150. /// </summary>
  151. [StringLength(80)]
  152. [Comment("长度单位")]
  153. public string? cubic_measure { get; set; }
  154. /// <summary>
  155. /// 宽度
  156. /// </summary>
  157. [Precision(23, 10)]
  158. [Comment("宽度")]
  159. public decimal? width { get; set; }
  160. /// <summary>
  161. /// 高度
  162. /// </summary>
  163. [Precision(23, 10)]
  164. [Comment("高度")]
  165. public decimal? height { get; set; }
  166. /// <summary>
  167. /// 体积
  168. /// </summary>
  169. [Precision(23, 10)]
  170. [Comment("体积")]
  171. public decimal? size { get; set; }
  172. /// <summary>
  173. /// 允许采购
  174. /// </summary>
  175. [Comment("允许采购")]
  176. public int? allowpur { get; set; }
  177. /// <summary>
  178. /// 允许销售
  179. /// </summary>
  180. [Comment("允许销售")]
  181. public int? allowsale { get; set; }
  182. /// <summary>
  183. /// 允许生产
  184. /// </summary>
  185. [Comment("允许生产")]
  186. public int? allowmanu { get; set; }
  187. /// <summary>
  188. /// 允许委外
  189. /// </summary>
  190. [Comment("允许委外")]
  191. public int? allowout { get; set; }
  192. /// <summary>
  193. /// 批号管理
  194. /// </summary>
  195. [Comment("批号管理")]
  196. public int? allowbatch { get; set; }
  197. /// <summary>
  198. /// 序列号管理
  199. /// </summary>
  200. [Comment("序列号管理")]
  201. public int? allowserial { get; set; }
  202. /// <summary>
  203. /// 图片
  204. /// </summary>
  205. [StringLength(80)]
  206. [Comment("图片")]
  207. public string? photo { get; set; }
  208. /// <summary>
  209. /// 领料类型
  210. /// </summary>
  211. [Comment("领料类型")]
  212. public long? picktype { get; set; }
  213. /// <summary>
  214. /// 出库类型
  215. /// </summary>
  216. [Comment("出库类型")]
  217. public long? output_type_id { get; set; }
  218. /// <summary>
  219. /// 启用预警
  220. /// </summary>
  221. [Comment("启用预警")]
  222. public int? enable_warning { get; set; }
  223. /// <summary>
  224. /// 生命周期状态:1-成熟品,2-新品,3-重点新品,4-退市
  225. /// </summary>
  226. [Comment("生命周期状态")]
  227. public int? life_state { get; set; }
  228. /// <summary>
  229. /// 经济生产批量
  230. /// </summary>
  231. [Comment("经济生产批量")]
  232. [Precision(23, 10)]
  233. public decimal? moq { get; set; }
  234. /// <summary>
  235. /// 最大生产批量
  236. /// </summary>
  237. [Comment("最大生产批量")]
  238. [Precision(23, 10)]
  239. public decimal? maq { get; set; }
  240. /// <summary>
  241. /// 是否备料前预处理
  242. /// </summary>
  243. [Comment("是否备料前预处理")]
  244. public int? is_clean { get; set; }
  245. /// <summary>
  246. /// 预处理提前期(天)
  247. /// </summary>
  248. [Comment("预处理提前期")]
  249. [Precision(23, 10)]
  250. public decimal? clean_leadtime { get; set; }
  251. /// <summary>
  252. /// 工序委外提前期/灭菌提前期(天)
  253. /// </summary>
  254. [Comment("工序委外提前期")]
  255. [Precision(23, 10)]
  256. public decimal? sterilize_leadtime { get; set; }
  257. /// <summary>
  258. /// 平台调拨提前期(天)
  259. /// </summary>
  260. [Comment("平台调拨提前期")]
  261. [Precision(23, 10)]
  262. public decimal? transfer_leadtime { get; set; }
  263. /// <summary>
  264. /// 标准工期(天)
  265. /// </summary>
  266. [Comment("标准工期")]
  267. [Precision(23, 10)]
  268. public decimal? standard_period { get; set; }
  269. /// <summary>
  270. /// FMR分类:F-F类,M-M类,R-R类
  271. /// </summary>
  272. [Comment("FMR分类")]
  273. public string? fmr { get; set; }
  274. /// <summary>
  275. /// ABC分类:A-A类,B-B类,C-C类
  276. /// </summary>
  277. [Comment("ABC分类")]
  278. public string? abc { get; set; }
  279. //ic_plan
  280. ///// <summary>
  281. ///// 物料id
  282. ///// </summary>
  283. //[Required]
  284. //[Comment("物料id")]
  285. //public long icitem_id { get; set; }
  286. ///// <summary>
  287. ///// 物料名称
  288. ///// </summary>
  289. //[StringLength(80)]
  290. //[Comment("物料名称")]
  291. //public string? icitem_name { get; set; }
  292. ///// <summary>
  293. ///// 计划员
  294. ///// </summary>
  295. //[StringLength(80)]
  296. //[Comment("计划员")]
  297. //public string? planner_name { get; set; }
  298. ///// <summary>
  299. ///// 计划员_工号
  300. ///// </summary>
  301. //[StringLength(80)]
  302. //[Comment("计划员_工号")]
  303. //public string? planner_num { get; set; }
  304. ///// <summary>
  305. ///// 工厂编码
  306. ///// </summary>
  307. //[StringLength(80)]
  308. //[Comment("工厂编码")]
  309. //public string? factory_code { get; set; }
  310. /// <summary>
  311. /// 固定提前期(天)
  312. /// </summary>
  313. [Precision(23, 10)]
  314. [Comment("固定提前期(天)")]
  315. public decimal? fix_leadtime { get; set; }
  316. /// <summary>
  317. /// 计划策略
  318. /// </summary>
  319. [Comment("计划策略")]
  320. public int? plan_trategy { get; set; }
  321. /// <summary>
  322. /// 订货策略
  323. /// </summary>
  324. [Comment("订货策略")]
  325. public int? order_trategy { get; set; }
  326. /// <summary>
  327. /// 订货间隔期_天
  328. /// </summary>
  329. [Precision(23, 10)]
  330. [Comment("订货间隔期_天")]
  331. public decimal? order_inter_val { get; set; }
  332. /// <summary>
  333. /// 变动提前期
  334. /// </summary>
  335. [Precision(23, 10)]
  336. [Comment("变动提前期")]
  337. public decimal? lead_time { get; set; }
  338. /// <summary>
  339. /// 变动提前期批量
  340. /// </summary>
  341. [Precision(23, 10)]
  342. [Comment("变动提前期批量")]
  343. public decimal? bat_change_economy { get; set; }
  344. /// <summary>
  345. /// 累计提前期
  346. /// </summary>
  347. [Precision(23, 10)]
  348. [Comment("累计提前期")]
  349. public decimal? total_tqq { get; set; }
  350. /// <summary>
  351. /// 再订货点
  352. /// </summary>
  353. [Precision(23, 10)]
  354. [Comment("再订货点")]
  355. public decimal? order_point { get; set; }
  356. /// <summary>
  357. /// 设置为固定再订货点
  358. /// </summary>
  359. [Comment("设置为固定再订货点")]
  360. public int? isfixedreorder { get; set; }
  361. /// <summary>
  362. /// 安全库存数量
  363. /// </summary>
  364. [Precision(23, 10)]
  365. [Comment("安全库存数量")]
  366. public decimal? secinv { get; set; }
  367. /// <summary>
  368. /// 安全库存触发采购比例
  369. /// </summary>
  370. [Precision(23, 10)]
  371. [Comment("安全库存触发采购比例")]
  372. public decimal? secinv_ratio { get; set; }
  373. /// <summary>
  374. /// 是否需要进行订补货计划的运算
  375. /// </summary>
  376. //[Comment("是否需要进行订补货计划的运算")]
  377. //public int? book_plan { get; set; }
  378. /// <summary>
  379. /// 辅助属性参与计划运算
  380. /// </summary>
  381. //[Comment("辅助属性参与计划运算")]
  382. //public int? aux_prop_plan { get; set; }
  383. /// <summary>
  384. /// 计划备注
  385. /// </summary>
  386. //[StringLength(1000)]
  387. //[Comment("计划备注")]
  388. //public string? plannote { get; set; }
  389. /// <summary>
  390. /// 计算ID
  391. /// </summary>
  392. //[Comment("计算id")]
  393. //[NotMapped]
  394. //public long? bang_id { get; set; }
  395. /// <summary>
  396. /// 自检提前期
  397. /// </summary>
  398. [Precision(23, 10)]
  399. [Comment("自检提前期")]
  400. public decimal? self_inspection_date { get; set; }
  401. /// <summary>
  402. /// 入库提前期
  403. /// </summary>
  404. [Precision(23, 10)]
  405. [Comment("入库提前期")]
  406. public decimal? Warehousing_date { get; set; }
  407. /// <summary>
  408. /// 发运提前期
  409. /// </summary>
  410. [Precision(23, 10)]
  411. [Comment("发运提前期")]
  412. public decimal? Shipping_date { get; set; }
  413. //ic_factory_details
  414. /// <summary>
  415. /// 物料id
  416. /// </summary>
  417. //[Required]
  418. //[Comment("物料id")]
  419. //public long icitem_id { get; set; }
  420. ///// <summary>
  421. ///// 物料名称
  422. ///// </summary>
  423. //[StringLength(80)]
  424. //[Comment("物料名称")]
  425. //public string? icitem_name { get; set; }
  426. /// <summary>
  427. /// 工厂编码
  428. /// </summary>
  429. //[StringLength(80)]
  430. //[Comment("工厂编码")]
  431. //public string? factory_fode { get; set; }
  432. /// <summary>
  433. /// 特殊备注
  434. /// </summary>
  435. //[StringLength(1000)]
  436. //[Comment("特殊备注")]
  437. //public string? note { get; set; }
  438. /// <summary>
  439. /// 产品线
  440. /// </summary>
  441. [StringLength(80)]
  442. [Comment("产品线")]
  443. public string? product_line { get; set; }
  444. /// <summary>
  445. /// 领料类型
  446. /// </summary>
  447. //[Required]
  448. //[Comment("领料类型")]
  449. //public long pick_type { get; set; }
  450. /// <summary>
  451. /// 是否采用业务批次管理
  452. /// </summary>
  453. [Comment("是否采用业务批次管理")]
  454. public int batch_manager { get; set; }
  455. /// <summary>
  456. /// 是否需要库龄管理
  457. /// </summary>
  458. //[Comment("是否需要库龄管理")]
  459. //public int stock_time { get; set; }
  460. /// <summary>
  461. /// 盘点周期单位
  462. /// </summary>
  463. //[StringLength(80)]
  464. //[Comment("盘点周期单位")]
  465. //public string? check_cycunit { get; set; }
  466. /// <summary>
  467. /// 盘点周期
  468. /// </summary>
  469. //[Precision(23, 10)]
  470. //[Comment("盘点周期")]
  471. //public decimal? check_cycle { get; set; }
  472. /// <summary>
  473. /// 每周_月第天
  474. /// </summary>
  475. //[Comment("每周_月第天")]
  476. //public int days_per { get; set; }
  477. /// <summary>
  478. /// 上次盘点日期
  479. /// </summary>
  480. //[Comment("上次盘点日期")]
  481. //public DateTime? last_checkdate { get; set; }
  482. ///// <summary>
  483. /// 默认待检仓库
  484. /// </summary>
  485. //[Required]
  486. //[Comment("默认待检仓库")]
  487. //public long default_chkloc { get; set; }
  488. /// <summary>
  489. /// 默认待检仓位
  490. /// </summary>
  491. //[Required]
  492. //[Comment("默认待检仓位")]
  493. //public long default_chksp { get; set; }
  494. /// <summary>
  495. /// 默认仓库
  496. /// </summary>
  497. //[Required]
  498. //[Comment("默认仓库")]
  499. //public long default_loc { get; set; }
  500. /// <summary>
  501. /// 默认仓位
  502. /// </summary>
  503. //[Required]
  504. //[Comment("默认仓位")]
  505. //public long default_sp { get; set; }
  506. /// <summary>
  507. /// 货架信息
  508. /// </summary>
  509. //[StringLength(80)]
  510. //[Comment("货架信息")]
  511. //public string? item_shelve { get; set; }
  512. /// <summary>
  513. /// 默认仓管员
  514. /// </summary>
  515. //[StringLength(80)]
  516. //[Comment("默认仓管员")]
  517. //public string? default_manager { get; set; }
  518. /// <summary>
  519. /// 最低存量
  520. /// </summary>
  521. //[Precision(23, 10)]
  522. //[Comment("最低存量")]
  523. //public decimal? low_limit { get; set; }
  524. /// <summary>
  525. /// 最高存量
  526. /// </summary>
  527. //[Precision(23, 10)]
  528. //[Comment("最高存量")]
  529. //public decimal? high_limit { get; set; }
  530. /// <summary>
  531. /// 最大订货量
  532. /// </summary>
  533. //[Precision(23, 10)]
  534. //[Comment("最大订货量")]
  535. //public decimal? qty_max { get; set; }
  536. /// <summary>
  537. /// 日消耗量
  538. /// </summary>
  539. //[Precision(23, 10)]
  540. //[Comment("日消耗量")]
  541. //public decimal? daily_consume { get; set; }
  542. /// <summary>
  543. /// 库存备注
  544. /// </summary>
  545. //[StringLength(1000)]
  546. //[Comment("库存备注")]
  547. //public string? warehouse_note { get; set; }
  548. /// <summary>
  549. /// 工单发料时间/天
  550. /// </summary>
  551. [Precision(23, 10)]
  552. [Comment("工单发料时间/天")]
  553. public decimal? ordissu_days { get; set; }
  554. ///// <summary>
  555. ///// 原材料收货处理时间/天
  556. ///// </summary>
  557. //[Precision(23, 10)]
  558. //[Comment("原材料收货处理时间/天")]
  559. //public decimal? raw_matreceiv_days { get; set; }
  560. ///// <summary>
  561. ///// 成品入库时间/天
  562. ///// </summary>
  563. //[Precision(23, 10)]
  564. //[Comment("成品入库时间/天")]
  565. //public decimal? prdenter_days { get; set; }
  566. ///// <summary>
  567. ///// 原材料入库时间/天
  568. ///// </summary>
  569. //[Precision(23, 10)]
  570. //[Comment("原材料入库时间/天")]
  571. //public decimal? mat_enter_days { get; set; }
  572. ///// <summary>
  573. ///// 成品发货时间/天
  574. ///// </summary>
  575. //[Precision(23, 10)]
  576. //[Comment("成品发货时间/天")]
  577. //public decimal? prd_out_days { get; set; }
  578. /// <summary>
  579. /// 运输中提前期_天
  580. /// </summary>
  581. [Comment("运输中提前期_天")]
  582. [Required]
  583. [DefaultValue(0)]
  584. [Precision(23, 10)]
  585. public decimal? transportation_leadtime { get; set; }
  586. /// <summary>
  587. /// 仓库中提前期_天
  588. /// </summary>
  589. [Comment("仓库中提前期_天")]
  590. [Required]
  591. [DefaultValue(0)]
  592. [Precision(23, 10)]
  593. public decimal? stock_leadtime { get; set; }
  594. /// <summary>
  595. /// 生产中提前期_天
  596. /// </summary>
  597. [Comment("生产中提前期_天")]
  598. [Required]
  599. [DefaultValue(0)]
  600. [Precision(23, 10)]
  601. public decimal? production_leadtime { get; set; }
  602. /// <summary>
  603. /// 下单前置期_天
  604. /// </summary>
  605. [Comment("下单前置期_天")]
  606. [Required]
  607. [DefaultValue(0)]
  608. [Precision(23, 10)]
  609. public decimal? order_leadtime { get; set; }
  610. /// <summary>
  611. /// 最小包装量
  612. /// </summary>
  613. [Comment("最小包装量")]
  614. [Required]
  615. [DefaultValue(0)]
  616. [Precision(23, 10)]
  617. public decimal? minpackqty { get; set; }
  618. /// <summary>
  619. /// 最小订单量
  620. /// </summary>
  621. [Comment("最小订单量")]
  622. [Required]
  623. [DefaultValue(0)]
  624. [Precision(23, 10)]
  625. public decimal? minorderqty { get; set; }
  626. /// <summary>
  627. /// 是否倒冲
  628. /// </summary>
  629. [Comment("是否倒冲")]
  630. public int? isbackflush { get; set; }
  631. /// <summary>
  632. /// 生产负责人
  633. /// </summary>
  634. //[StringLength(80)]
  635. //[Comment("生产负责人")]
  636. //public string? product_principal { get; set; }
  637. /// <summary>
  638. /// 倒冲仓库
  639. /// </summary>
  640. //[StringLength(80)]
  641. //[Comment("倒冲仓库")]
  642. //public string? back_flush_stock { get; set; }
  643. /// <summary>
  644. /// 倒冲仓位
  645. /// </summary>
  646. //[StringLength(80)]
  647. //[Comment("倒冲仓位")]
  648. //public string? back_flush_sp { get; set; }
  649. /// <summary>
  650. /// 投料自动取整
  651. /// </summary>
  652. [Comment("投料自动取整")]
  653. public int? put_integer { get; set; }
  654. /// <summary>
  655. /// RS50成品 RS30 组件 RS11 原材料 RS12 零件 RS13 包装材料 RS14 辅料 RS15 低值易耗品 RS99 虚拟物料
  656. /// </summary>
  657. [StringLength(80)]
  658. [Comment("物料类型")]
  659. public string? item_type { get; set; }
  660. /// <summary>
  661. /// 供应提前期
  662. /// </summary>
  663. [Comment("供应提前期")]
  664. [Required]
  665. [DefaultValue(0)]
  666. [Precision(23, 10)]
  667. public int PurLT { get; set; }
  668. /// <summary>
  669. /// bom设计时间
  670. /// </summary>
  671. [Comment("bom设计时间")]
  672. [DefaultValue(0)]
  673. public decimal? BOMDesignTime { get; set; }
  674. /// <summary>
  675. /// 工艺设计时间
  676. /// </summary>
  677. [Comment("工艺设计时间")]
  678. [DefaultValue(0)]
  679. public decimal? RoutingDesignTime { get; set; }
  680. }
  681. }