AdoS0SuppMaster.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 : ITenantIdFilter
  8. {
  9. [SugarColumn(ColumnName = "RecID", 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", 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 = "SortName", ColumnDescription = "简称", Length = 200, IsNullable = true)]
  20. public string? SortName { get; set; }
  21. [SugarColumn(ColumnName = "address", ColumnDescription = "地址", Length = 500, IsNullable = true)]
  22. public string? Address { get; set; }
  23. [SugarColumn(ColumnName = "contact", ColumnDescription = "联系人", Length = 200, IsNullable = true)]
  24. public string? Contact { get; set; }
  25. [SugarColumn(ColumnName = "position", ColumnDescription = "职务", Length = 200, IsNullable = true)]
  26. public string? Position { get; set; }
  27. [SugarColumn(ColumnName = "contact_info", ColumnDescription = "联系方式", Length = 200, IsNullable = true)]
  28. public string? ContactInfo { get; set; }
  29. [SugarColumn(ColumnName = "certification_level", ColumnDescription = "认证等级", Length = 100, IsNullable = true)]
  30. public string? CertificationLevel { get; set; }
  31. /// <summary>供应商库位(原 PurContact)</summary>
  32. [SugarColumn(ColumnName = "PurContact", ColumnDescription = "供应商库位", Length = 100, IsNullable = true)]
  33. public string? PurContact { get; set; }
  34. [SugarColumn(ColumnName = "CrTerms", ColumnDescription = "支付方式", Length = 50, IsNullable = true)]
  35. public string? CrTerms { get; set; }
  36. [SugarColumn(ColumnName = "Curr", ColumnDescription = "币别", Length = 20, IsNullable = true)]
  37. public string? Curr { get; set; }
  38. [SugarColumn(ColumnName = "Type", ColumnDescription = "供应商类型", Length = 50, IsNullable = true)]
  39. public string? Type { get; set; }
  40. [SugarColumn(ColumnName = "TaxIn", ColumnDescription = "含税", ColumnDataType = "boolean")]
  41. public bool TaxIn { get; set; } = true;
  42. [SugarColumn(ColumnName = "TaxClass", ColumnDescription = "税类型", Length = 50, IsNullable = true)]
  43. public string? TaxClass { get; set; }
  44. [SugarColumn(ColumnName = "APStartDay1", ColumnDescription = "对账周期1开始", IsNullable = true)]
  45. public int? APStartDay1 { get; set; }
  46. [SugarColumn(ColumnName = "APEndDay1", ColumnDescription = "对账周期1结束", IsNullable = true)]
  47. public int? APEndDay1 { get; set; }
  48. [SugarColumn(ColumnName = "APStartDay2", ColumnDescription = "对账周期2开始", IsNullable = true)]
  49. public int? APStartDay2 { get; set; }
  50. [SugarColumn(ColumnName = "APEndDay2", ColumnDescription = "对账周期2结束", IsNullable = true)]
  51. public int? APEndDay2 { get; set; }
  52. [SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", Length = 1000, IsNullable = true)]
  53. public string? Remark { get; set; }
  54. [SugarColumn(ColumnName = "IsActive", ColumnDescription = "是否启用", ColumnDataType = "boolean")]
  55. public bool IsActive { get; set; } = true;
  56. [SugarColumn(ColumnName = "CreateUser", ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  57. public string? CreateUser { get; set; }
  58. [SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间")]
  59. public DateTime CreateTime { get; set; } = DateTime.Now;
  60. [SugarColumn(ColumnName = "UpdateUser", ColumnDescription = "更新人", Length = 100, IsNullable = true)]
  61. public string? UpdateUser { get; set; }
  62. [SugarColumn(ColumnName = "UpdateTime", ColumnDescription = "更新时间", IsNullable = true)]
  63. public DateTime? UpdateTime { get; set; }
  64. /// <summary>列表展示:库位+库位说明拼接(展示字段,不落库)</summary>
  65. [SugarColumn(IsIgnore = true)]
  66. public string? LocationName { get; set; }
  67. /// <summary>列表展示:对账周期1开始(展示字段,不落库)</summary>
  68. [SugarColumn(IsIgnore = true)]
  69. public string? APStartDay1Text { get; set; }
  70. /// <summary>列表展示:对账周期1结束(展示字段,不落库)</summary>
  71. [SugarColumn(IsIgnore = true)]
  72. public string? APEndDay1Text { get; set; }
  73. /// <summary>列表展示:对账周期2开始(展示字段,不落库)</summary>
  74. [SugarColumn(IsIgnore = true)]
  75. public string? APStartDay2Text { get; set; }
  76. /// <summary>列表展示:对账周期2结束(展示字段,不落库)</summary>
  77. [SugarColumn(IsIgnore = true)]
  78. public string? APEndDay2Text { get; set; }
  79. [SugarColumn(ColumnName = "tenant_id", IsNullable = true)]
  80. public long? TenantId { get; set; }
  81. }