using DS.Module.Core; using DS.Module.Core.Data; using SqlSugar; namespace DS.WMS.Core.Info.Entity; /// /// 往来单位-银行信息 /// [SugarTable("info_client_bank", "往来单位-银行信息")] public class InfoClientBank : BaseModelV2 { /// /// 往来单位id /// public long ClientId { get; set; } /// /// Desc:代码 /// [SugarColumn(ColumnDescription = "代码", Length = 50)] public string CodeName { get; set; } /// /// Desc:币别 /// [SugarColumn(ColumnDescription = "币别", Length = 20)] public string Currency { get; set; } /// /// Desc:银行名称 /// [SugarColumn(ColumnDescription = "银行名称", Length = 100, IsNullable = true)] public string BankName { get; set; } /// /// Desc:银行账户 /// [SugarColumn(ColumnDescription = "银行账户", Length = 100, IsNullable = true)] public string Account { get; set; } /// /// Desc:银行地址 /// [SugarColumn(ColumnDescription = "银行地址", Length = 500, IsNullable = true)] public string BankAddress { get; set; } /// /// Desc:财务软件代码 /// [SugarColumn(ColumnDescription = "财务软件代码", Length = 50, IsNullable = true)] public string FinanceSoftCode { get; set; } /// /// Desc:科目代码 /// [SugarColumn(ColumnDescription = "科目代码", Length = 20, IsNullable = true)] public string SubjectCode { get; set; } /// /// Desc:户头名称 /// [SugarColumn(ColumnDescription = "户头名称", Length = 100, IsNullable = true)] public string AccountName { get; set; } /// /// Desc:代理银行名称 /// [SugarColumn(ColumnDescription = "代理银行名称", Length = 20, IsNullable = true)] public string BankAgentName { get; set; } /// /// Desc:银行账号 /// [SugarColumn(ColumnDescription = "银行账号", Length = 100, IsNullable = true)] public string BankAccountNo { get; set; } /// /// Desc: 银行SWIFT /// [SugarColumn(ColumnDescription = "银行SWIFT", Length = 20, IsNullable = true)] public string SWIFT { get; set; } /// /// Desc: 国家Id /// [SugarColumn(ColumnDescription = "国家Id", IsNullable = true)] public long? CountryId { get; set; } /// /// 国家名称 /// [SugarColumn(ColumnDescription = "国家名称", Length = 50,IsNullable = true)] public string? CountryName { get; set; } /// /// Desc:是否开票默认账户 /// [SugarColumn(ColumnDescription = "是否开票默认账户")] public bool? IsInvoiceDefault { get; set; } = false; /// /// 状态 0启用 1禁用 /// [SugarColumn(ColumnDescription = "状态",DefaultValue = "0")] public StatusEnum? Status { get; set; } = StatusEnum.Enable; /// /// 机构Id /// [SugarColumn(ColumnDescription = "机构Id")] public long OrgId { get; set; } /// /// 发票抬头 /// [SugarColumn(ColumnDescription = "发票抬头", Length = 200, IsNullable = false)] public string InvoiceHeader { get; set; } = string.Empty; /// /// 开票税号 /// [SugarColumn(ColumnDescription = "开票税号", Length = 200, IsNullable = true)] public string? InvoiceTaxNo { get; set; } /// /// 开票地址 /// [SugarColumn(ColumnDescription = "开票地址", Length = 200, IsNullable = true)] public string? InvoiceAddress { get; set; } /// /// 开票电话 /// [SugarColumn(ColumnDescription = "开票电话", Length = 200, IsNullable = true)] public string? InvoiceTel { get; set; } /// /// 寄发票地址 /// [SugarColumn(ColumnDescription = "寄发票地址", Length = 200, IsNullable = true)] public string? SendInvoiceAddress { get; set; } /// /// 银行国际代码 /// [SugarColumn(ColumnDescription = "银行国际代码", Length = 150, IsNullable = true)] public string? SwiftCode { get; set; } ///// ///// 发票抬头 ///// //[Navigate(NavigateType.OneToMany, nameof(InvoiceHeader.RelativeId))] //public List? InvoiceHeaders { get; set; } }