You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
3.1 KiB
C#

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