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