|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.Module.Core.Data;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Op.Entity.TaskInteraction
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 任务邮件发送配置
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarTable("business_task_mail", "任务邮件发送配置")]
|
|
|
|
|
public class BusinessTaskMail : BaseModelV2<long>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 任务类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "任务类型", IsNullable = false)]
|
|
|
|
|
public TaskBaseTypeEnum TaskType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 任务状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "任务状态", IsNullable = false)]
|
|
|
|
|
public TaskStatusEnum TaskStatus { 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>
|
|
|
|
|
/// 机构ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "机构ID", IsNullable = false)]
|
|
|
|
|
public long OrgId { 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.OneToMany, nameof(BusinessTaskMailAttachment.TaskMailId))]
|
|
|
|
|
public List<BusinessTaskMailAttachment>? Attachments { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|