using DS.Module.Core; using DS.Module.Core.Data; using DS.Module.Core.Enums; using SqlSugar; namespace DS.WMS.Core.Info.Entity; /// /// 往来单位基本信息 /// [SugarTable("info_client", "往来单位基本信息")] public class InfoClient : BaseModelV2 { /// /// 客户代码(助记码) /// [SugarColumn(ColumnDescription = "客户代码", IsNullable = false, Length = 20)] public string CodeName { get; set; } /// /// Desc:客户简称 /// [SugarColumn(ColumnDescription = "客户简称", IsNullable = false, Length = 20)] public string ShortName { get; set; } /// /// Desc:客户中文名称或描述信息 /// [SugarColumn(ColumnDescription = "客户中文名称或描述信息", IsNullable = true, Length = 50)] public string? Description { get; set; } /// /// Desc:客户英文简称 /// [SugarColumn(ColumnDescription = "客户英文简称", IsNullable = true, Length = 50)] public string? Name { get; set; } /// /// Desc:客户英文全称 /// [SugarColumn(ColumnDescription = "客户英文全称", IsNullable = true, Length = 50)] public string? EnFullName { get; set; } /// /// Desc:客户状态 /// [SugarColumn(ColumnDescription = "客户状态", DefaultValue = "0")] public int? Status { get; set; } = 0; /// /// Desc:通讯地址 /// [SugarColumn(ColumnDescription = "通讯地址", IsNullable = true, Length = 1000)] public string? Address { get; set; } /// /// Desc:邮箱 /// [SugarColumn(ColumnDescription = "邮箱", Length = 50)] public string Email { get; set; } /// /// Desc:网页 /// [SugarColumn(ColumnDescription = "网页", IsNullable = true, Length = 50)] public string? Web { get; set; } /// /// Desc:电话 /// [SugarColumn(ColumnDescription = "电话", IsNullable = true, Length = 50)] public string? Tel { get; set; } /// /// Desc:传真 /// [SugarColumn(ColumnDescription = "传真", IsNullable = true, Length = 50)] public string? Fax { get; set; } /// /// Desc:负责人 /// [SugarColumn(ColumnDescription = "负责人", IsNullable = true, Length = 20)] public string? Chief { get; set; } /// /// Desc:所属揽货人 /// [SugarColumn(ColumnDescription = "所属揽货人", IsNullable = true)] public long? SaleId { get; set; } /// /// Desc:所属操作人 /// [SugarColumn(ColumnDescription = "所属操作人", IsNullable = true)] public long? Op { get; set; } /// /// Desc:所属单证 /// [SugarColumn(ColumnDescription = "所属单证", IsNullable = true)] public long? Doc { get; set; } /// /// Desc:国家 /// [SugarColumn(ColumnDescription = "国家", Length = 50, IsNullable = true)] public string? Country { get; set; } /// /// Desc:省或州 /// [SugarColumn(ColumnDescription = "省或州", Length = 50, IsNullable = true)] public string? Province { get; set; } /// /// Desc:城市 /// [SugarColumn(ColumnDescription = "城市", Length = 50, IsNullable = true)] public string? City { get; set; } /// /// Desc:提单信息 /// [SugarColumn(ColumnDescription = "提单信息", Length = 600, IsNullable = true)] public string? BLContent { get; set; } /// /// Desc:是否停用该客户信息 /// [SugarColumn(ColumnDescription = "是否停用该客户信息", DefaultValue = "0")] public bool IsStop { get; set; } ///// ///// Desc:发票抬头1 ///// //[SugarColumn(ColumnDescription = "发票抬头1", Length = 60, IsNullable = true)] //public string BillRises1 { get; set; } ///// ///// Desc:发票抬头2 ///// //[SugarColumn(ColumnDescription = "发票抬头2", Length = 60, IsNullable = true)] //public string BillRises2 { get; set; } ///// ///// Desc:美元支票抬头 ///// //[SugarColumn(ColumnDescription = "美元支票抬头", Length = 60, IsNullable = true)] //public string USDBillRises { get; set; } ///// ///// Desc:人民币支票抬头 ///// //[SugarColumn(ColumnDescription = "人民币支票抬头", Length = 60, IsNullable = true)] //public string RMBBillRises { get; set; } ///// ///// Desc:人民币开户银行 ///// //[SugarColumn(ColumnDescription = "人民币开户银行", Length = 60, IsNullable = true)] //public string RMBBank { get; set; } ///// ///// Desc:人民币账号 ///// //[SugarColumn(ColumnDescription = "人民币账号", Length = 30, IsNullable = true)] //public string RMBAccount { get; set; } ///// ///// Desc:人民币联机行号 ///// //[SugarColumn(ColumnDescription = "人民币联机行号", Length = 20, IsNullable = true)] //public string RMBOnlineNO { get; set; } ///// ///// Desc:美元开户银行 ///// //[SugarColumn(ColumnDescription = "美元开户银行", Length = 60, IsNullable = true)] //public string USDBank { get; set; } ///// ///// Desc:美元账号 ///// //[SugarColumn(ColumnDescription = "美元账号", Length = 30, IsNullable = true)] //public string USDAccount { get; set; } ///// ///// Desc:美元联机行号 ///// //[SugarColumn(ColumnDescription = "美元联机行号", Length = 20, IsNullable = true)] //public string USDOnlineNO { get; set; } ///// ///// Desc:自定义属性1 ///// //[SugarColumn(ColumnDescription = "自定义属性1", Length = 12, IsNullable = true)] //public string CustomAttributes1 { get; set; } ///// ///// Desc:自定义属性2 ///// //[SugarColumn(ColumnDescription = "自定义属性2", Length = 12, IsNullable = true)] //public string CustomAttributes2 { get; set; } ///// ///// Desc:美元信用最大金额 ///// //[SugarColumn(ColumnDescription = "美元信用最大金额", Length = 18, DecimalDigits = 2, DefaultValue = "0")] //public decimal? USDMaxAmountCredit { get; set; } = 0; ///// ///// Desc:人民币信用最大金额 ///// //[SugarColumn(ColumnDescription = "人民币信用最大金额", Length = 18, DecimalDigits = 2, DefaultValue = "0")] //public decimal? RMBMaxAmountCredit { get; set; } = 0; ///// ///// Desc:信用最大金额(RMB+USD) ///// //[SugarColumn(ColumnDescription = "信用最大金额(RMB+USD)", Length = 18, DecimalDigits = 2, DefaultValue = "0")] //public decimal? MaxAmountCredit { get; set; } = 0; ///// ///// Desc:结算方式编码 ///// //[SugarColumn(ColumnDescription = "结算方式编码", Length = 30, IsNullable = true)] //public string StlName { get; set; } ///// ///// Desc:美金汇率 ///// //[SugarColumn(ColumnDescription = "美金汇率", Length = 18, DecimalDigits = 2, DefaultValue = "0")] //public decimal? USDExchangeRate { get; set; } ///// ///// Desc:月结算时间 ///// //[SugarColumn(ColumnDescription = "月结算时间", Length = 2, IsNullable = true)] //public string StlDate { get; set; } ///// ///// Desc:上半月结算时间 ///// //[SugarColumn(ColumnDescription = "上半月结算时间", Length = 2, IsNullable = true)] //public string StlFirstHalfDate { get; set; } ///// ///// Desc:下半月结算时间 ///// //[SugarColumn(ColumnDescription = "下半月结算时间", Length = 2, IsNullable = true)] //public string StlMiddleDate { get; set; } ///// ///// Desc:票结结算时间 ///// //[SugarColumn(ColumnDescription = "发票结算时间", Length = 2, IsNullable = true)] //public string InvoiceStlDate { get; set; } /// /// Desc:等级 /// [SugarColumn(ColumnDescription = "等级", Length = 1, IsNullable = true)] public string? Level { get; set; } /// /// Desc:QQ /// [SugarColumn(ColumnDescription = "QQ", Length = 50, IsNullable = true)] public string? QQ { get; set; } /// /// Desc:MSN /// [SugarColumn(ColumnDescription = "MSN", Length = 50, IsNullable = true)] public string? MSN { get; set; } /// /// Desc:财务应收账款代码 /// [SugarColumn(ColumnDescription = "财务应收账款代码", Length = 50, IsNullable = true)] public string? FARCode { get; set; } /// /// Desc:财务应付账款代码 /// [SugarColumn(ColumnDescription = "财务应付账款代码", Length = 50, IsNullable = true)] public string? FAPCode { get; set; } /// /// Desc:冷藏费率 /// [SugarColumn(ColumnDescription = "冷藏费率", Length = 50, DefaultValue = "0", IsNullable = true)] public string? UnitPrice { get; set; } /// /// Desc:企业备案号 /// [SugarColumn(ColumnDescription = "企业备案号", Length = 50, IsNullable = true)] public string? RegistrationNo { get; set; } /// /// Desc:财务序号 /// [SugarColumn(ColumnDescription = "财务序号", Length = 50, IsNullable = true)] public string? OrderNo { get; set; } /// /// Desc:纳税人识别号 /// [SugarColumn(ColumnDescription = "纳税人识别号", Length = 30, IsNullable = true)] public string? TaxNo { get; set; } /// /// Desc:EDI代码 /// [SugarColumn(ColumnDescription = "EDI代码", Length = 20, IsNullable = true)] public string? EDICode { get; set; } /// /// Desc:EDI代码2 /// [SugarColumn(ColumnDescription = "EDI代码2", Length = 20, IsNullable = true)] public string? EDICode2 { get; set; } /// /// Desc:EDI代码3 /// [SugarColumn(ColumnDescription = "EDI代码3", Length = 20, IsNullable = true)] public string? EDICode3 { get; set; } /// /// Desc:组织机构代码 /// [SugarColumn(ColumnDescription = "组织机构代码", Length = 50, IsNullable = true)] public string? OrganizationCode { get; set; } /// /// 所属集团ID /// [SugarColumn(ColumnDescription = "所属集团ID", IsNullable = true)] public long? PcorpId { get; set; } /// /// Desc: 所属集团 /// [SugarColumn(ColumnDescription = "所属集团", Length = 50, IsNullable = true)] public string? PcorpName { get; set; } /// /// Desc:企业商检备案号 /// [SugarColumn(ColumnDescription = "商检备案号", Length = 50, IsNullable = true)] public string? InspectionNo { get; set; } /// /// 审批状态 /// [SugarColumn(ColumnDescription = "审批状态", DefaultValue = "0")] public AuditStatusEnum AuditStatus { get; set; } = AuditStatusEnum.Approve; /// /// 审批时间 /// [SugarColumn(ColumnDescription = "审批时间", IsNullable = true)] public DateTime? AuditTime { get; set; } /// /// 审批意见 /// [SugarColumn(ColumnDescription = "审批意见", Length = 100, IsNullable = true)] public string? AuditNote { get; set; } /// /// Desc:默认付费方式 /// [SugarColumn(ColumnDescription = "默认付费方式", Length = 20, IsNullable = true)] public string? FeeFRT { get; set; } /// /// Desc:业务来源Id /// [SugarColumn(ColumnDescription = "业务来源Id")] public long SourceId { get; set; } /// /// Desc:发票银行 /// [SugarColumn(ColumnDescription = "发票银行", Length = 150, IsNullable = true)] public string? InvoiceBank { get; set; } /// /// Desc:发票地址电话 /// [SugarColumn(ColumnDescription = "发票地址电话", Length = 200, IsNullable = true)] public string? InvoiceAddrTel { get; set; } /// /// 所属分部 /// [SugarColumn(ColumnDescription = "所属分部", IsNullable = true)] public string? SaleOrgId { get; set; } /// /// Desc:提成比例 /// [SugarColumn(ColumnDescription = "提成比例", Length = 18, DecimalDigits = 2, DefaultValue = "0")] public decimal CommissionRate { get; set; } = 0; /// /// Desc:分成比例 /// [SugarColumn(ColumnDescription = "分成比例", Length = 18, DecimalDigits = 2, DefaultValue = "0")] public decimal ProportionRate { get; set; } = 0; /// /// Desc:提成参与人 /// [SugarColumn(ColumnDescription = "提成参与人", IsNullable = true)] public long? CommissionUserId { get; set; } /// /// Desc:运输公司列表 /// [SugarColumn(ColumnDescription = "运输公司列表", Length = 200, IsNullable = true)] public string? CarrierList { get; set; } /// /// Desc:集装箱尺寸 /// [SugarColumn(ColumnDescription = "集装箱尺寸", Length = 50, IsNullable = true)] public string? CtnType { get; set; } /// /// Desc: 客服 /// [SugarColumn(ColumnDescription = "客服")] public long CustomerService { get; set; } /// /// Desc:英文简称 /// [SugarColumn(ColumnDescription = "英文简称", Length = 50, IsNullable = true)] public string? EnShortName { get; set; } /// /// Desc:仓储费开始日期模式 /// [SugarColumn(ColumnDescription = "仓储费开始日期模式", Length = 50, IsNullable = true)] public string? WMSFeeRateType { get; set; } /// /// 揽货人名字 /// [SugarColumn(ColumnDescription = "揽货人名字", Length = 50, IsNullable = true)] public string? SaleName { get; set; } /// /// 操作名字 /// [SugarColumn(ColumnDescription = "操作名字", Length = 50, IsNullable = true)] public string? OpName { get; set; } /// /// 单证名字 /// [SugarColumn(ColumnDescription = "单证名字", Length = 50, IsNullable = true)] public string? DocName { get; set; } /// /// 客服名字 /// [SugarColumn(ColumnDescription = "客服名字", Length = 50, IsNullable = true)] public string? CustomerServiceName { get; set; } /// /// 是否共享 /// [SugarColumn(ColumnDescription = "是否共享", IsNullable = false, DefaultValue = "0")] public bool IsShared { get; set; } /// /// 机构Id /// [SugarColumn(ColumnDescription = "机构Id")] public long OrgId { get; set; } /// /// 开票方式 /// [SugarColumn(ColumnDescription = "开票方式", IsNullable = true)] public InvoicingMethod? InvoicingMethod { get; set; } /// /// 推送通知 /// [SugarColumn(ColumnDescription = "推送通知")] public PushNotification Notification { get; set; } /// /// 是否超期扣单 /// [SugarColumn(ColumnDescription = "是否超期扣单", DefaultValue = "1")] public bool IsOverdueDeduction { get; set; } /// /// 超期天数 /// [SugarColumn(ColumnDescription = "超期天数")] public int OverdueDays { get; set; } /// /// 是否押最后一单 /// [SugarColumn(ColumnDescription = "是否押最后一单", DefaultValue = "1")] public bool IsMortgageLastOrder { get; set; } /// /// 发票抬头 /// [Navigate(NavigateType.OneToMany, nameof(InvoiceHeader.RelativeId))] public List? InvoiceHeaders { get; set; } /// /// Desc:业务来源明细Id /// [SugarColumn(ColumnDescription = "业务来源明细Id")] public long SourceDetailId { get; set; } /// /// Desc:业务来源名称 /// [SugarColumn(ColumnDescription = "业务来源名称", Length = 100, IsNullable = true)] public string SourceName { get; set; } /// /// Desc:业务来源明细名称 /// [SugarColumn(ColumnDescription = "业务来源明细名称",Length =100,IsNullable = true)] public string SourceDetailName { get; set; } }