using System; using System.Collections.Generic; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Crm.Core.MsgTool.Domain.Dto { public class MsgToolTaskDto { /// /// 任务id /// public decimal PKID { get; set; } /// /// 任务发起人 /// [JsonIgnore] public decimal CreateEid { get; set; } /// /// 任务发起人 /// public string? Creator { get; set; } /// /// 任务接收人 /// public string? Receiver { get; set; } /// /// 任务接收人 /// public decimal ReceiverEid { get; set; } /// /// 任务名称 /// public string? PlanName { get; set; } /// /// 发送内容 /// public string? JsonData { get; set; } /// /// 发送内容 /// public string? SendData { get; set; } public string GroupName { get; set; } /// /// 发送类型 /// [JsonIgnore] public string? SendType { get; set; } /// /// 发送类型 /// public string? SendTypeName { get { return SendType switch { "now" => "立即发布", "tim" => "定时发布", "daily" => "每天循环", "week" => "每周循环", "month" => "每月循环", _ => "未知", }; } } /// /// 群发数量 /// public int Count { get; set; } public int UNENABLED { get; set; } /// /// 成功数 /// public int SuccessCount { get; set; } /// /// 失败数 /// public int FailCount { get; set; } /// /// 状态 /// public MsgToolTaskStatus Status { get; set; } public MsgToolTaskExeStatus ExeStatus { get; set; } public DateTime? PLANEXETIME { get; set; } //计划执行时间 /// /// StatusName /// public string StatusName { get { return ExeStatus.GetDescription(); } } /// /// 备注 /// public string? Remark { get; set; } /// /// 执行时间 /// public DateTime? ExecTime { get; set; } /// /// 执行结束时间 /// public DateTime? ExitTime { get; set; } /// /// 周期 /// public string? Cycle { get; set; } /// /// 周期周期次数 /// public int CycleCount { get; set; } /// /// 截止时间 /// public DateTime? DUEDATE { get; set; } /// /// 创建时间 /// public DateTime? Ctime { get; set; } public int? TaskType { get; set; } public virtual ICollection MsgToolTaskCmds { get; set; } } }