using DS.Module.Core; using DS.Module.Core.Extensions; using Masuit.Tools.Systems; using SqlSugar; namespace DS.WMS.Core.Op.Dtos.TaskInteraction { /// /// 关联任务DTO /// public class BusinessTaskDto { /// /// 任务类型 /// public TaskBaseTypeEnum TaskType { get; set; } /// /// 任务类型名称 /// public string TaskTypeName => TaskType.GetDescription(); /// /// 任务状态 /// public TaskStatusEnum TaskStatus { get; set; } /// /// 下一任务类型 /// public TaskBaseTypeEnum? NextType { get; set; } /// /// 下一任务类型名称 /// public string? NextTypeName => NextType?.GetDescription(); /// /// 接收人ID列表 /// public string? RecvUsers { get; set; } /// /// 获取接收人用户ID列表 /// public long[] RecvUserIdArray => RecvUsers.IsNullOrEmpty() ? [] : RecvUsers.Split(',', StringSplitOptions.RemoveEmptyEntries).Select(long.Parse).ToArray(); /// /// 创建人ID /// public long CreateBy { get; set; } /// /// 创建时间 /// public DateTime CreateTime { get; set; } /// /// 驳回审批理由 /// public string? RejectReason { get; set; } } }