| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- namespace Admin.NET.Plugin.AiDOP.Entity.S0.Supply;
- /// <summary>
- /// 供应商主数据(复刻 SuppMaster)
- /// </summary>
- [SugarTable("SuppMaster", "供应商主数据(复刻 SuppMaster)")]
- [SugarIndex("uk_SuppMaster_factory_supp", nameof(FactoryRefId), OrderByType.Asc, nameof(Supp), OrderByType.Asc, IsUnique = true)]
- public class AdoS0SuppMaster : ITenantIdFilter
- {
- [SugarColumn(ColumnName = "RecID", ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
- public long Id { get; set; }
- [SugarColumn(ColumnName = "company_ref_id", ColumnDescription = "关联公司 ID", ColumnDataType = "bigint")]
- public long CompanyRefId { get; set; }
- [SugarColumn(ColumnName = "factory_ref_id", ColumnDescription = "关联工厂 ID", ColumnDataType = "bigint")]
- public long FactoryRefId { get; set; }
- [SugarColumn(ColumnName = "Domain", ColumnDescription = "工厂域编码", Length = 50, IsNullable = true)]
- public string? DomainCode { get; set; }
- [SugarColumn(ColumnName = "Supp", ColumnDescription = "供应商编码", Length = 100)]
- public string Supp { get; set; } = string.Empty;
- [SugarColumn(ColumnName = "SortName", ColumnDescription = "简称", Length = 200, IsNullable = true)]
- public string? SortName { get; set; }
- [SugarColumn(ColumnName = "address", ColumnDescription = "地址", Length = 500, IsNullable = true)]
- public string? Address { get; set; }
- [SugarColumn(ColumnName = "contact", ColumnDescription = "联系人", Length = 200, IsNullable = true)]
- public string? Contact { get; set; }
- [SugarColumn(ColumnName = "position", ColumnDescription = "职务", Length = 200, IsNullable = true)]
- public string? Position { get; set; }
- [SugarColumn(ColumnName = "contact_info", ColumnDescription = "联系方式", Length = 200, IsNullable = true)]
- public string? ContactInfo { get; set; }
- [SugarColumn(ColumnName = "certification_level", ColumnDescription = "认证等级", Length = 100, IsNullable = true)]
- public string? CertificationLevel { get; set; }
- /// <summary>供应商库位(原 PurContact)</summary>
- [SugarColumn(ColumnName = "PurContact", ColumnDescription = "供应商库位", Length = 100, IsNullable = true)]
- public string? PurContact { get; set; }
- [SugarColumn(ColumnName = "CrTerms", ColumnDescription = "支付方式", Length = 50, IsNullable = true)]
- public string? CrTerms { get; set; }
- [SugarColumn(ColumnName = "Curr", ColumnDescription = "币别", Length = 20, IsNullable = true)]
- public string? Curr { get; set; }
- [SugarColumn(ColumnName = "Type", ColumnDescription = "供应商类型", Length = 50, IsNullable = true)]
- public string? Type { get; set; }
- [SugarColumn(ColumnName = "TaxIn", ColumnDescription = "含税", ColumnDataType = "boolean")]
- public bool TaxIn { get; set; } = true;
- [SugarColumn(ColumnName = "TaxClass", ColumnDescription = "税类型", Length = 50, IsNullable = true)]
- public string? TaxClass { get; set; }
- [SugarColumn(ColumnName = "APStartDay1", ColumnDescription = "对账周期1开始", IsNullable = true)]
- public int? APStartDay1 { get; set; }
- [SugarColumn(ColumnName = "APEndDay1", ColumnDescription = "对账周期1结束", IsNullable = true)]
- public int? APEndDay1 { get; set; }
- [SugarColumn(ColumnName = "APStartDay2", ColumnDescription = "对账周期2开始", IsNullable = true)]
- public int? APStartDay2 { get; set; }
- [SugarColumn(ColumnName = "APEndDay2", ColumnDescription = "对账周期2结束", IsNullable = true)]
- public int? APEndDay2 { get; set; }
- [SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", Length = 1000, IsNullable = true)]
- public string? Remark { get; set; }
- [SugarColumn(ColumnName = "IsActive", ColumnDescription = "是否启用", ColumnDataType = "boolean")]
- public bool IsActive { get; set; } = true;
- [SugarColumn(ColumnName = "CreateUser", ColumnDescription = "创建人", Length = 100, IsNullable = true)]
- public string? CreateUser { get; set; }
- [SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间")]
- public DateTime CreateTime { get; set; } = DateTime.Now;
- [SugarColumn(ColumnName = "UpdateUser", ColumnDescription = "更新人", Length = 100, IsNullable = true)]
- public string? UpdateUser { get; set; }
- [SugarColumn(ColumnName = "UpdateTime", ColumnDescription = "更新时间", IsNullable = true)]
- public DateTime? UpdateTime { get; set; }
- /// <summary>列表展示:库位+库位说明拼接(展示字段,不落库)</summary>
- [SugarColumn(IsIgnore = true)]
- public string? LocationName { get; set; }
- /// <summary>列表展示:对账周期1开始(展示字段,不落库)</summary>
- [SugarColumn(IsIgnore = true)]
- public string? APStartDay1Text { get; set; }
- /// <summary>列表展示:对账周期1结束(展示字段,不落库)</summary>
- [SugarColumn(IsIgnore = true)]
- public string? APEndDay1Text { get; set; }
- /// <summary>列表展示:对账周期2开始(展示字段,不落库)</summary>
- [SugarColumn(IsIgnore = true)]
- public string? APStartDay2Text { get; set; }
- /// <summary>列表展示:对账周期2结束(展示字段,不落库)</summary>
- [SugarColumn(IsIgnore = true)]
- public string? APEndDay2Text { get; set; }
- [SugarColumn(ColumnName = "tenant_id", IsNullable = true)]
- public long? TenantId { get; set; }
- }
|