AdoS0Material.cs 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Sales;
  2. /// <summary>
  3. /// 物料主数据(S0 Sales / sales_material)
  4. /// </summary>
  5. [SugarTable("ado_s0_sales_material", "S0 物料主数据")]
  6. public class AdoS0Material
  7. {
  8. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  9. public long Id { get; set; }
  10. [SugarColumn(ColumnDescription = "关联公司 ID", ColumnDataType = "bigint")]
  11. public long CompanyRefId { get; set; }
  12. [SugarColumn(ColumnDescription = "关联工厂 ID", ColumnDataType = "bigint")]
  13. public long FactoryRefId { get; set; }
  14. [SugarColumn(ColumnDescription = "物料编码", Length = 100)]
  15. public string Code { get; set; } = string.Empty;
  16. [SugarColumn(ColumnDescription = "物料名称", Length = 200)]
  17. public string Name { get; set; } = string.Empty;
  18. [SugarColumn(ColumnDescription = "英文名称", Length = 200, IsNullable = true)]
  19. public string? NameEn { get; set; }
  20. [SugarColumn(ColumnDescription = "物料类型", Length = 100, IsNullable = true)]
  21. public string? MaterialType { get; set; }
  22. [SugarColumn(ColumnDescription = "单位", Length = 50, IsNullable = true)]
  23. public string? Unit { get; set; }
  24. [SugarColumn(ColumnDescription = "规格型号", Length = 200, IsNullable = true)]
  25. public string? Spec { get; set; }
  26. [SugarColumn(ColumnDescription = "计划类别", Length = 100, IsNullable = true)]
  27. public string? PlCategory { get; set; }
  28. [SugarColumn(ColumnDescription = "图纸编号", Length = 100, IsNullable = true)]
  29. public string? DrawingNo { get; set; }
  30. [SugarColumn(ColumnDescription = "语言版本", Length = 50, IsNullable = true)]
  31. public string? Language { get; set; }
  32. [SugarColumn(ColumnDescription = "业务版本", Length = 50, IsNullable = true)]
  33. public string? BizVersion { get; set; }
  34. [SugarColumn(ColumnDescription = "产品编码", Length = 100, IsNullable = true)]
  35. public string? ProductCode { get; set; }
  36. [SugarColumn(ColumnDescription = "物料属性", Length = 50, IsNullable = true)]
  37. public string? MaterialAttribute { get; set; }
  38. [SugarColumn(ColumnDescription = "默认库位 ID", ColumnDataType = "bigint", IsNullable = true)]
  39. public long? DefaultLocationId { get; set; }
  40. [SugarColumn(ColumnDescription = "默认货架 ID", ColumnDataType = "bigint", IsNullable = true)]
  41. public long? DefaultRackId { get; set; }
  42. [SugarColumn(ColumnDescription = "库存类型编码", Length = 50, IsNullable = true)]
  43. public string? StockTypeCode { get; set; }
  44. [SugarColumn(ColumnDescription = "安全库存", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  45. public decimal? SafetyStock { get; set; }
  46. [SugarColumn(ColumnDescription = "保质期(天)", IsNullable = true)]
  47. public int? ShelfLifeDays { get; set; }
  48. [SugarColumn(ColumnDescription = "到期预警天数", IsNullable = true)]
  49. public int? ExpireWarningDays { get; set; }
  50. [SugarColumn(ColumnDescription = "采购提前期(天)", IsNullable = true)]
  51. public int? PurchaseLeadDays { get; set; }
  52. [SugarColumn(ColumnDescription = "最小订货量", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  53. public decimal? MinOrderQty { get; set; }
  54. [SugarColumn(ColumnDescription = "最大订货量", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  55. public decimal? MaxOrderQty { get; set; }
  56. [SugarColumn(ColumnDescription = "订货倍数", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  57. public decimal? OrderMultiple { get; set; }
  58. [SugarColumn(ColumnDescription = "备料提前期(天)", IsNullable = true)]
  59. public int? PreparationLeadDays { get; set; }
  60. [SugarColumn(ColumnDescription = "按需采购", ColumnDataType = "boolean")]
  61. public bool IsOnDemand { get; set; }
  62. [SugarColumn(ColumnDescription = "特殊需求类型", Length = 50, IsNullable = true)]
  63. public string? SpecialReqType { get; set; }
  64. [SugarColumn(ColumnDescription = "需检验", ColumnDataType = "boolean")]
  65. public bool IsInspectionRequired { get; set; }
  66. [SugarColumn(ColumnDescription = "检验天数", IsNullable = true)]
  67. public int? InspectionDays { get; set; }
  68. [SugarColumn(ColumnDescription = "关键物料", ColumnDataType = "boolean")]
  69. public bool IsKeyMaterial { get; set; }
  70. [SugarColumn(ColumnDescription = "主要物料", ColumnDataType = "boolean")]
  71. public bool IsMainMaterial { get; set; }
  72. [SugarColumn(ColumnDescription = "需预处理", ColumnDataType = "boolean")]
  73. public bool IsPreprocess { get; set; }
  74. [SugarColumn(ColumnDescription = "自动批次", ColumnDataType = "boolean")]
  75. public bool IsAutoBatch { get; set; }
  76. [SugarColumn(ColumnDescription = "需打标签", ColumnDataType = "boolean")]
  77. public bool IsLabelRequired { get; set; }
  78. [SugarColumn(ColumnDescription = "批次先进先出提醒", ColumnDataType = "boolean")]
  79. public bool IsBatchFifoReminder { get; set; }
  80. [SugarColumn(ColumnDescription = "批次先进先出严格", ColumnDataType = "boolean")]
  81. public bool IsBatchFifoStrict { get; set; }
  82. [SugarColumn(ColumnDescription = "库存周转率", ColumnDataType = "decimal(18,5)", IsNullable = true)]
  83. public decimal? InventoryTurnoverRate { get; set; }
  84. [SugarColumn(ColumnDescription = "禁用状态", Length = 20)]
  85. public string ForbidStatus { get; set; } = "normal";
  86. [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
  87. public string? Remark { get; set; }
  88. [SugarColumn(ColumnDescription = "启用", ColumnDataType = "boolean")]
  89. public bool IsEnabled { get; set; } = true;
  90. [SugarColumn(ColumnDescription = "创建时间")]
  91. public DateTime CreatedAt { get; set; } = DateTime.Now;
  92. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  93. public DateTime? UpdatedAt { get; set; }
  94. }