using System.Runtime.Serialization; using DS.Module.Core; using DS.Module.Core.Enums; using DS.Module.Core.Extensions; using DS.WMS.Core.Info.Entity; using Masuit.Tools.Systems; using SqlSugar; namespace DS.WMS.Core.Info.Dtos; /// /// 客户基本信息返回实体 /// public class ClientInfoRes { /// /// 主键Id /// public long Id { get; set; } /// /// Desc:客户代码 /// public string CodeName { get; set; } /// /// Desc:客户简称 /// public string ShortName { get; set; } /// /// Desc:客户中文名称或描述信息 /// public string Description { get; set; } /// /// Desc:客户英文简称 /// public string Name { get; set; } /// /// Desc:客户英文全称 /// public string EnFullName { get; set; } /// /// Desc:通讯地址 /// public string Address { get; set; } /// /// Desc:邮箱 /// public string Email { get; set; } /// /// Desc:网页 /// public string Web { get; set; } /// /// Desc:电话 /// public string Tel { get; set; } /// /// Desc:传真 /// public string Fax { get; set; } /// /// Desc:负责人 /// public string Chief { get; set; } /// /// Desc:国家 /// public string Country { get; set; } /// /// Desc:省或州 /// public string Province { get; set; } /// /// Desc:城市 /// public string City { get; set; } /// /// Desc:提单信息 /// public string BLContent { get; set; } /// /// Desc:是否停用 /// public bool IsStop { get; set; } /// /// Desc:等级 /// public string Level { get; set; } /// /// Desc:QQ /// public string QQ { get; set; } /// /// Desc:MSN /// public string MSN { get; set; } /// /// Desc:财务应收账款代码 /// public string FARCode { get; set; } /// /// Desc:财务应付账款代码 /// public string FAPCode { get; set; } /// /// Desc:冷藏费率 /// public string UnitPrice { get; set; } /// /// Desc:企业备案号 /// public string RegistrationNo { get; set; } /// /// Desc:财务序号 /// public string OrderNo { get; set; } /// /// Desc:纳税人识别号 /// public string TaxNo { get; set; } /// /// Desc:EDI代码 /// public string EDICode { get; set; } /// /// Desc:EDI代码2 /// public string EDICode2 { get; set; } /// /// Desc:EDI代码3 /// public string EDICode3 { get; set; } /// /// Desc:组织机构代码 /// public string OrganizationCode { get; set; } /// /// 所属集团ID /// public long? PcorpId { get; set; } /// /// Desc: 所属集团 /// public string PcorpName { get; set; } /// /// Desc:企业商检备案号 /// public string InspectionNo { get; set; } /// /// 审批状态值 /// public AuditStatusEnum AuditStatus { get; set; } /// /// 审批状态显示文本 /// public string AuditStatusText => AuditStatus.GetDescription(); /// /// 审批时间 /// public DateTime? AuditTime { get; set; } /// /// 审批意见 /// public string AuditNote { get; set; } /// /// Desc:默认付费方式 /// public string FeeFRT { get; set; } /// /// Desc:业务来源Id /// public long SourceId { get; set; } /// /// Desc:发票银行 /// public string InvoiceBank { get; set; } /// /// Desc:发票地址电话 /// public string InvoiceAddrTel { get; set; } /// /// 所属分部值 /// //[IgnoreDataMember] public string? SaleOrgId { get; set; } /// /// 所属分部 /// public long[] SaleOrgIdList => SaleOrgId.IsNullOrEmpty() ? [] : SaleOrgId.Split(',', StringSplitOptions.RemoveEmptyEntries).Select(long.Parse).ToArray(); /// /// 所属分部名称 /// public string? SaleOrgNames { get; set; } /// /// Desc:提成比例 /// public decimal CommissionRate { get; set; } /// /// Desc:分成比例 /// public decimal ProportionRate { get; set; } /// /// Desc:提成参与人 /// public long CommissionUserId { get; set; } /// /// Desc:运输公司列表 /// public string CarrierList { get; set; } /// /// Desc:集装箱尺寸 /// public string CtnType { get; set; } /// /// Desc:英文简称 /// public string EnShortName { get; set; } /// /// Desc:仓储费开始日期模式 /// public string WMSFeeRateType { get; set; } /// /// 状态 0 启用 1 禁用 /// public StatusEnum Status { get; set; } = StatusEnum.Enable; /// /// 备注 /// public string Note { get; set; } /// /// 创建时间 /// public DateTime CreateTime { get; set; } /// /// 客户标识 /// public ClientTagRes ClientTag { get; set; } /// /// 联系人列表 /// public List ClientContactList { get; set; } /// /// 揽货人Id /// public long? SaleId { get; set; } /// /// 揽货人 /// public string Sale { get; set; } /// /// Desc:单证 /// public long? Doc { get; set; } /// /// Desc:单证人员 /// public string DocName { get; set; } /// /// 操作员 /// public long? OperatorId { get; set; } /// /// 操作员名称 /// public string OperatorName { get; set; } /// /// 客服 /// public long? CustomerService { get; set; } /// /// 客服名称 /// public string CustomerServiceName { get; set; } /// /// 是否共享 /// public bool IsShared { get; set; } /// /// 开票方式 /// public InvoicingMethod? InvoicingMethod { get; set; } /// /// 开票方式描述 /// public string InvoicingMethodText => InvoicingMethod.HasValue ? InvoicingMethod.Value.GetDescription() : string.Empty; [IgnoreDataMember] public PushNotification Notification { get; set; } /// /// 推送设置 /// public PushNotification[]? Notifications { get { if (Notification == PushNotification.None) return []; return Notification.Split().Where(x => x != PushNotification.None).ToArray(); } } /// /// 是否超期扣单 /// public bool IsOverdueDeduction { get; set; } /// /// 超期天数 /// public int OverdueDays { get; set; } /// /// 是否押最后一单 /// public bool IsMortgageLastOrder { get; set; } /// /// 发票抬头 /// public List? InvoiceHeaders { get; set; } /// /// Desc:业务来源明细Id /// public long SourceDetailId { get; set; } /// /// Desc:业务来源名称 /// public string SourceName { get; set; } /// /// Desc:业务来源明细名称 /// public string SourceDetailName { get; set; } /// /// 所属分部名称 /// public string? SaleOrgName { get; set; } /// /// 服务项目代码 /// public string[]? ServiceItemCodes { get; set; } /// /// 是否为客户 /// public bool IsCustomer { get; set; } /// /// 是否为供应商 /// public bool IsSupplier { get; set; } /// /// 客户等级:A/B/C/D /// public string? Grade { get; set; } /// /// 注册资金 /// public decimal? RegisteredCapital { get; set; } /// /// 注册时间 /// public DateTime? RegistrationTime { get; set; } /// /// 默认联系人 /// public ClientContactRes? DefaultContact { get; set; } /// /// 最新账期 /// public ClientAccountDateRes? LastAccountDate { get; set; } }