You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1012 B
41 lines
1012 B
using FluentValidation;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Kean.Domain.Task.Commands
|
|
{
|
|
/// <summary>
|
|
/// 创建禁用命令
|
|
/// </summary>
|
|
public class EmergencyCommand : CommandValidator<EmergencyCommand>, ICommand
|
|
{
|
|
/// <summary>
|
|
/// 站台
|
|
/// </summary>
|
|
public string StationCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 模式
|
|
/// </summary>
|
|
public string StationModel
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 1-WMS更改时标记为1; 2-WCS读取后标记为2
|
|
/// </summary>
|
|
public string stationStatus
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 验证项
|
|
/// </summary>
|
|
protected override void Validation()
|
|
{
|
|
RuleFor(r => r.StationCode).NotEmpty().WithMessage("应急站台不允许空");
|
|
RuleFor(r => r.StationModel).NotEmpty().WithMessage("模式不允许空");
|
|
}
|
|
}
|
|
}
|