|
|
|
@ -20,12 +20,12 @@ namespace DS.WMS.Core.Op.Dtos.TaskInteraction
|
|
|
|
|
/// </summary>
|
|
|
|
|
public BusinessType BusinessType { get; set; }
|
|
|
|
|
|
|
|
|
|
TaskBaseTypeEnum _defaultTaskType = TaskBaseTypeEnum.NOT_SPECIFIED;
|
|
|
|
|
static readonly TaskBaseTypeEnum _defaultTaskType = TaskBaseTypeEnum.NOT_SPECIFIED;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 任务类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public TaskBaseTypeEnum TaskType => string.IsNullOrEmpty(TaskTypeName) ? _defaultTaskType : Enum.Parse<TaskBaseTypeEnum>(TaskTypeName);
|
|
|
|
|
public TaskBaseTypeEnum TaskType => string.IsNullOrEmpty(TaskTypeName) ? _defaultTaskType : Enum.Parse<TaskBaseTypeEnum>(TaskTypeName);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 任务类型名称
|
|
|
|
@ -39,7 +39,7 @@ namespace DS.WMS.Core.Op.Dtos.TaskInteraction
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public virtual IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
|
|
|
|
|
{
|
|
|
|
|
if (BusinessId == 0)
|
|
|
|
|
if (BusinessId == 0)
|
|
|
|
|
{
|
|
|
|
|
yield return new ValidationResult($"参数 {nameof(BusinessId)} 不能为空");
|
|
|
|
|
}
|
|
|
|
|