AdoS0ItemPackMaster.cs 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Warehouse;
  2. /// <summary>
  3. /// 零件包装规格主数据(复刻 ItemPackMaster)
  4. /// </summary>
  5. [SugarTable("ItemPackMaster", "零件包装规格主数据(复刻 ItemPackMaster)")]
  6. [SugarIndex("uk_ItemPackMaster_domain_itemnum", nameof(DomainCode), OrderByType.Asc, nameof(ItemNum), OrderByType.Asc, IsUnique = true)]
  7. public class AdoS0ItemPackMaster
  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)]
  16. public string DomainCode { get; set; } = string.Empty;
  17. [SugarColumn(ColumnName = "item_num", ColumnDescription = "物料编码", Length = 100)]
  18. public string ItemNum { get; set; } = string.Empty;
  19. [SugarColumn(ColumnName = "packing_qty", ColumnDescription = "包装数量", IsNullable = true)]
  20. public decimal? PackingQty { get; set; }
  21. [SugarColumn(ColumnName = "small_packing_qty", ColumnDescription = "小包装数量", IsNullable = true)]
  22. public decimal? SmallPackingQty { get; set; }
  23. [SugarColumn(ColumnName = "packing_type", ColumnDescription = "包装类型", Length = 50, IsNullable = true)]
  24. public string? PackingType { get; set; }
  25. [SugarColumn(ColumnName = "net_weight", ColumnDescription = "净重", IsNullable = true)]
  26. public decimal? NetWeight { get; set; }
  27. [SugarColumn(ColumnName = "weight_um", ColumnDescription = "重量单位", Length = 20, IsNullable = true)]
  28. public string? WeightUM { get; set; }
  29. [SugarColumn(ColumnName = "length", ColumnDescription = "长", IsNullable = true)]
  30. public decimal? Length { get; set; }
  31. [SugarColumn(ColumnName = "width", ColumnDescription = "宽", IsNullable = true)]
  32. public decimal? Width { get; set; }
  33. [SugarColumn(ColumnName = "high", ColumnDescription = "高", IsNullable = true)]
  34. public decimal? High { get; set; }
  35. [SugarColumn(ColumnName = "iss_specific", ColumnDescription = "发料特性", Length = 50, IsNullable = true)]
  36. public string? IssSpecific { get; set; }
  37. [SugarColumn(ColumnName = "cust_item", ColumnDescription = "客户物料号", Length = 100, IsNullable = true)]
  38. public string? CustItem { get; set; }
  39. [SugarColumn(ColumnName = "remark", ColumnDescription = "备注", Length = 500, IsNullable = true)]
  40. public string? Remark { get; set; }
  41. [SugarColumn(ColumnName = "is_active", ColumnDescription = "是否启用", ColumnDataType = "boolean")]
  42. public bool IsActive { get; set; } = true;
  43. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  44. public string? CreateUser { get; set; }
  45. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
  46. public DateTime CreateTime { get; set; } = DateTime.Now;
  47. [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 100, IsNullable = true)]
  48. public string? UpdateUser { get; set; }
  49. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  50. public DateTime? UpdateTime { get; set; }
  51. /// <summary>列表展示:物料名称(不落库,来自 ItemMaster.Descr)</summary>
  52. [SugarColumn(IsIgnore = true)]
  53. public string? ItemDescr { get; set; }
  54. /// <summary>列表展示:物料型号(不落库,来自 ItemMaster.Descr1)</summary>
  55. [SugarColumn(IsIgnore = true)]
  56. public string? ItemDescr1 { get; set; }
  57. }