using System.ComponentModel; using DS.Module.Core.Data; using SqlSugar; namespace DS.WMS.Core.Op.Entity.TaskInteraction { /// /// 任务邮件发送配置 /// [SugarTable("business_task_mail", "任务邮件发送配置")] public class BusinessTaskMail : BaseOrgModelV2 { /// /// 单据类型 /// [SugarColumn(ColumnDescription = "单据类型")] public DocumentType DocumentType { get; set; } /// /// 自定义名称 /// [SugarColumn(ColumnDescription = "自定义名称", Length = 100, IsNullable = true)] public string? Name { get; set; } /// /// 主题模板 /// [SugarColumn(ColumnDescription = "主题", Length = 200, IsNullable = false)] public string Title { get; set; } = string.Empty; /// /// 内容模板 /// [SugarColumn(ColumnDescription = "内容", ColumnDataType = "text", IsNullable = false)] public string Content { get; set; } = string.Empty; /// /// 客户名称 /// [SugarColumn(ColumnDescription = "客户名称", Length = 200, IsNullable = true)] public string? CustomerName { get; set; } /// /// 接收人设置 /// [Navigate(NavigateType.OneToOne, nameof(Id))] public BusinessTaskMailReceiver? Receiver { get; set; } /// /// 发送人设置 /// [Navigate(NavigateType.OneToOne, nameof(Id))] public BusinessTaskMailSender? Sender { get; set; } /// /// 抄送人设置 /// [Navigate(NavigateType.OneToOne, nameof(Id))] public BusinessTaskMailCC? CC { get; set; } /// /// 附件设置 /// [Navigate(NavigateType.OneToMany, nameof(BusinessTaskAttachment.TaskMailId))] public List? Attachments { get; set; } } /// /// 单据类型 /// public enum DocumentType { /// /// 自定义 /// [Description("自定义")] Custom = 0, /// /// 订舱委托 /// [Description("订舱委托")] BookingNote = 1, /// /// BC /// [Description("BC")] BC = 2, /// /// BN /// [Description("BN")] BN = 3, /// /// 提单确认 /// [Description("提单确认")] BLConfirmation = 4, /// /// 提单留底 /// [Description("提单留底")] BLRetention = 5, /// /// 费用确认 /// [Description("费用确认")] CostConfirmation = 6, } }