AdoS0SuppMaster.cs 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Supply;
  2. /// <summary>
  3. /// 供应商主数据(复刻 SuppMaster)
  4. /// </summary>
  5. [SugarTable("SuppMaster", "供应商主数据(复刻 SuppMaster)")]
  6. [SugarIndex("uk_SuppMaster_factory_supp", nameof(FactoryRefId), OrderByType.Asc, nameof(Supp), OrderByType.Asc, IsUnique = true)]
  7. public class AdoS0SuppMaster
  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 = "supp", ColumnDescription = "供应商编码", Length = 100)]
  18. public string Supp { get; set; } = string.Empty;
  19. [SugarColumn(ColumnName = "sort_name", ColumnDescription = "简称", Length = 200, IsNullable = true)]
  20. public string? SortName { get; set; }
  21. /// <summary>供应商库位(原 PurContact)</summary>
  22. [SugarColumn(ColumnName = "pur_contact", ColumnDescription = "供应商库位", Length = 100, IsNullable = true)]
  23. public string? PurContact { get; set; }
  24. [SugarColumn(ColumnName = "cr_terms", ColumnDescription = "支付方式", Length = 50, IsNullable = true)]
  25. public string? CrTerms { get; set; }
  26. [SugarColumn(ColumnName = "curr", ColumnDescription = "币别", Length = 20, IsNullable = true)]
  27. public string? Curr { get; set; }
  28. [SugarColumn(ColumnName = "type", ColumnDescription = "供应商类型", Length = 50, IsNullable = true)]
  29. public string? Type { get; set; }
  30. [SugarColumn(ColumnName = "tax_in", ColumnDescription = "含税", ColumnDataType = "boolean")]
  31. public bool TaxIn { get; set; } = true;
  32. [SugarColumn(ColumnName = "tax_class", ColumnDescription = "税类型", Length = 50, IsNullable = true)]
  33. public string? TaxClass { get; set; }
  34. [SugarColumn(ColumnName = "ap_start_day1", ColumnDescription = "对账周期1开始", IsNullable = true)]
  35. public int? APStartDay1 { get; set; }
  36. [SugarColumn(ColumnName = "ap_end_day1", ColumnDescription = "对账周期1结束", IsNullable = true)]
  37. public int? APEndDay1 { get; set; }
  38. [SugarColumn(ColumnName = "ap_start_day2", ColumnDescription = "对账周期2开始", IsNullable = true)]
  39. public int? APStartDay2 { get; set; }
  40. [SugarColumn(ColumnName = "ap_end_day2", ColumnDescription = "对账周期2结束", IsNullable = true)]
  41. public int? APEndDay2 { get; set; }
  42. [SugarColumn(ColumnName = "remark", ColumnDescription = "备注", Length = 1000, IsNullable = true)]
  43. public string? Remark { get; set; }
  44. [SugarColumn(ColumnName = "is_active", ColumnDescription = "是否启用", ColumnDataType = "boolean")]
  45. public bool IsActive { get; set; } = true;
  46. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  47. public string? CreateUser { get; set; }
  48. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
  49. public DateTime CreateTime { get; set; } = DateTime.Now;
  50. [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 100, IsNullable = true)]
  51. public string? UpdateUser { get; set; }
  52. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  53. public DateTime? UpdateTime { get; set; }
  54. /// <summary>列表展示:库位+库位说明拼接(展示字段,不落库)</summary>
  55. [SugarColumn(IsIgnore = true)]
  56. public string? LocationName { get; set; }
  57. /// <summary>列表展示:对账周期1开始(展示字段,不落库)</summary>
  58. [SugarColumn(IsIgnore = true)]
  59. public string? APStartDay1Text { get; set; }
  60. /// <summary>列表展示:对账周期1结束(展示字段,不落库)</summary>
  61. [SugarColumn(IsIgnore = true)]
  62. public string? APEndDay1Text { get; set; }
  63. /// <summary>列表展示:对账周期2开始(展示字段,不落库)</summary>
  64. [SugarColumn(IsIgnore = true)]
  65. public string? APStartDay2Text { get; set; }
  66. /// <summary>列表展示:对账周期2结束(展示字段,不落库)</summary>
  67. [SugarColumn(IsIgnore = true)]
  68. public string? APEndDay2Text { get; set; }
  69. }