AdoS0ItemMaster.cs 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Sales;
  2. /// <summary>
  3. /// 物料主数据(复刻 ItemMaster)
  4. /// </summary>
  5. [SugarTable("ItemMaster", "物料主数据(复刻 ItemMaster)")]
  6. [SugarIndex("uk_ItemMaster_factory_item", nameof(FactoryRefId), OrderByType.Asc, nameof(ItemNum), OrderByType.Asc, IsUnique = true)]
  7. public class AdoS0ItemMaster
  8. {
  9. [SugarColumn(ColumnName = "rec_id", ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  10. public long Id { get; set; }
  11. [SugarColumn(ColumnName = "company_ref_id", ColumnDescription = "关联公司 ID", ColumnDataType = "bigint")]
  12. public long CompanyRefId { get; set; }
  13. [SugarColumn(ColumnName = "factory_ref_id", ColumnDescription = "关联工厂 ID", ColumnDataType = "bigint")]
  14. public long FactoryRefId { get; set; }
  15. [SugarColumn(ColumnName = "domain_code", ColumnDescription = "工厂域编码", Length = 50, IsNullable = true)]
  16. public string? DomainCode { get; set; }
  17. [SugarColumn(ColumnName = "item_num", ColumnDescription = "物料编码", Length = 100)]
  18. public string ItemNum { get; set; } = string.Empty;
  19. [SugarColumn(ColumnName = "descr", ColumnDescription = "物料名称", Length = 200)]
  20. public string Descr { get; set; } = string.Empty;
  21. [SugarColumn(ColumnName = "descr1", ColumnDescription = "规格型号", Length = 200, IsNullable = true)]
  22. public string? Descr1 { get; set; }
  23. [SugarColumn(ColumnName = "pkg_code", ColumnDescription = "语种", Length = 50, IsNullable = true)]
  24. public string? PkgCode { get; set; }
  25. [SugarColumn(ColumnName = "um", ColumnDescription = "单位", Length = 50, IsNullable = true)]
  26. public string? UM { get; set; }
  27. [SugarColumn(ColumnName = "pur_mfg", ColumnDescription = "P/L件", Length = 100, IsNullable = true)]
  28. public string? PurMfg { get; set; }
  29. [SugarColumn(ColumnName = "drawing", ColumnDescription = "图号", Length = 100, IsNullable = true)]
  30. public string? Drawing { get; set; }
  31. [SugarColumn(ColumnName = "item_type", ColumnDescription = "物料类型", Length = 100, IsNullable = true)]
  32. public string? ItemType { get; set; }
  33. [SugarColumn(ColumnName = "location", ColumnDescription = "默认库位", Length = 100, IsNullable = true)]
  34. public string? Location { get; set; }
  35. [SugarColumn(ColumnName = "default_shelf", ColumnDescription = "默认货架", Length = 100, IsNullable = true)]
  36. public string? DefaultShelf { get; set; }
  37. [SugarColumn(ColumnName = "key_item", ColumnDescription = "关键物料", ColumnDataType = "boolean")]
  38. public bool KeyItem { get; set; }
  39. [SugarColumn(ColumnName = "net_weight", ColumnDescription = "净重", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  40. public decimal? NetWeight { get; set; }
  41. [SugarColumn(ColumnName = "net_weight_um", ColumnDescription = "净重单位", Length = 50, IsNullable = true)]
  42. public string? NetWeightUM { get; set; }
  43. [SugarColumn(ColumnName = "inspect", ColumnDescription = "检验", ColumnDataType = "boolean")]
  44. public bool Inspect { get; set; }
  45. [SugarColumn(ColumnName = "pur_lt", ColumnDescription = "供应提前期", IsNullable = true)]
  46. public int? PurLT { get; set; }
  47. [SugarColumn(ColumnName = "ins_lt", ColumnDescription = "检验天数", IsNullable = true)]
  48. public int? InsLT { get; set; }
  49. [SugarColumn(ColumnName = "mfg_lt", ColumnDescription = "备料提前期", IsNullable = true)]
  50. public int? MfgLT { get; set; }
  51. [SugarColumn(ColumnName = "length", ColumnDescription = "长度", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  52. public decimal? Length { get; set; }
  53. [SugarColumn(ColumnName = "size", ColumnDescription = "尺寸", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  54. public decimal? Size { get; set; }
  55. [SugarColumn(ColumnName = "size_um", ColumnDescription = "尺寸单位", Length = 50, IsNullable = true)]
  56. public string? SizeUM { get; set; }
  57. [SugarColumn(ColumnName = "issue_policy", ColumnDescription = "是否前处理", ColumnDataType = "boolean")]
  58. public bool IssuePolicy { get; set; }
  59. [SugarColumn(ColumnName = "mfgmttr", ColumnDescription = "备料提前期(天)", IsNullable = true)]
  60. public int? MfgMttr { get; set; }
  61. [SugarColumn(ColumnName = "location_type", ColumnDescription = "库存类型", Length = 50, IsNullable = true)]
  62. public string? LocationType { get; set; }
  63. [SugarColumn(ColumnName = "commodity_code", ColumnDescription = "商品代码", Length = 100, IsNullable = true)]
  64. public string? CommodityCode { get; set; }
  65. [SugarColumn(ColumnName = "rev", ColumnDescription = "版本", Length = 50, IsNullable = true)]
  66. public string? Rev { get; set; }
  67. [SugarColumn(ColumnName = "max_ord", ColumnDescription = "最大订单", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  68. public decimal? MaxOrd { get; set; }
  69. [SugarColumn(ColumnName = "min_ord", ColumnDescription = "最小订单", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  70. public decimal? MinOrd { get; set; }
  71. [SugarColumn(ColumnName = "ord_mult", ColumnDescription = "订单倍数", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  72. public decimal? OrdMult { get; set; }
  73. [SugarColumn(ColumnName = "min_ord_sales", ColumnDescription = "起订量", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  74. public decimal? MinOrdSales { get; set; }
  75. [SugarColumn(ColumnName = "auto_lot_nums", ColumnDescription = "自动批次号", ColumnDataType = "boolean")]
  76. public bool AutoLotNums { get; set; }
  77. [SugarColumn(ColumnName = "install", ColumnDescription = "是否打标", ColumnDataType = "boolean")]
  78. public bool Install { get; set; }
  79. [SugarColumn(ColumnName = "safety_stk", ColumnDescription = "安全库存", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  80. public decimal? SafetyStk { get; set; }
  81. [SugarColumn(ColumnName = "days_between_pm", ColumnDescription = "保质期(天)", IsNullable = true)]
  82. public int? DaysBetweenPM { get; set; }
  83. [SugarColumn(ColumnName = "expire_alarm_day", ColumnDescription = "过期预警天数", IsNullable = true)]
  84. public int? ExpireAlarmDay { get; set; }
  85. [SugarColumn(ColumnName = "stock_turn_over", ColumnDescription = "存货周转率", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  86. public decimal? StockTurnOver { get; set; }
  87. [SugarColumn(ColumnName = "lot_serial_control", ColumnDescription = "批次先进先出提醒", ColumnDataType = "boolean")]
  88. public bool LotSerialControl { get; set; }
  89. [SugarColumn(ColumnName = "allocate_single_lot", ColumnDescription = "批次先进先出强控", ColumnDataType = "boolean")]
  90. public bool AllocateSingleLot { get; set; }
  91. [SugarColumn(ColumnName = "status", ColumnDescription = "状态", Length = 50)]
  92. public string Status { get; set; } = "normal";
  93. [SugarColumn(ColumnName = "planner", ColumnDescription = "计划员", Length = 100, IsNullable = true)]
  94. public string? Planner { get; set; }
  95. [SugarColumn(ColumnName = "trace_detail", ColumnDescription = "按需发料", ColumnDataType = "boolean")]
  96. public bool TraceDetail { get; set; }
  97. [SugarColumn(ColumnName = "is_main_mas", ColumnDescription = "是否主材", ColumnDataType = "boolean")]
  98. public bool IsMainMas { get; set; }
  99. [SugarColumn(ColumnName = "remark", ColumnDescription = "备注", Length = 1000, IsNullable = true)]
  100. public string? Remark { get; set; }
  101. [SugarColumn(ColumnName = "emt_type", ColumnDescription = "特殊采购类型", Length = 50, IsNullable = true)]
  102. public string? EMTType { get; set; }
  103. [SugarColumn(ColumnName = "owner_application", ColumnDescription = "物料属性", Length = 100, IsNullable = true)]
  104. public string? OwnerApplication { get; set; }
  105. [SugarColumn(ColumnName = "bom_design", ColumnDescription = "BOM设计周期(天)", IsNullable = true)]
  106. public int? BOMDesign { get; set; }
  107. [SugarColumn(ColumnName = "routing_des", ColumnDescription = "工艺设计周期(天)", IsNullable = true)]
  108. public int? RoutingDes { get; set; }
  109. [SugarColumn(ColumnName = "is_active", ColumnDescription = "是否生效", ColumnDataType = "boolean")]
  110. public bool IsActive { get; set; } = true;
  111. [SugarColumn(ColumnName = "is_confirm", ColumnDescription = "是否确认", ColumnDataType = "boolean")]
  112. public bool IsConfirm { get; set; }
  113. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  114. public string? CreateUser { get; set; }
  115. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
  116. public DateTime CreateTime { get; set; } = DateTime.Now;
  117. [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 100, IsNullable = true)]
  118. public string? UpdateUser { get; set; }
  119. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  120. public DateTime? UpdateTime { get; set; }
  121. /// <summary>列表展示:库位+库位说明拼接(不落库;无 LocationMaster 时仅库位)</summary>
  122. [SugarColumn(IsIgnore = true)]
  123. public string? LocationDescr { get; set; }
  124. }