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.
52 lines
1.1 KiB
52 lines
1.1 KiB
using FluentValidation;
|
|
|
|
namespace Kean.Domain.Stock.Commands
|
|
{
|
|
/// <summary>
|
|
/// 入库命令
|
|
/// </summary>
|
|
public class SetRollResultCommand : CommandValidator<SetRollResultCommand>, ICommand
|
|
{
|
|
/// <summary>
|
|
/// 膜卷号
|
|
/// </summary>
|
|
public string BatchNo
|
|
{
|
|
get; set;
|
|
}
|
|
/// <summary>
|
|
/// 结果标识
|
|
/// </summary>
|
|
public string Code
|
|
{ get; set; }
|
|
/// <summary>
|
|
/// 信息
|
|
/// </summary>
|
|
public string Message
|
|
{
|
|
get; set;
|
|
}
|
|
/// <summary>
|
|
/// 托盘条码
|
|
/// </summary>
|
|
public string Barcode
|
|
{
|
|
get; set;
|
|
}
|
|
/// <summary>
|
|
/// 操作者
|
|
/// </summary>
|
|
public int Operator
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 验证项
|
|
/// </summary>
|
|
protected override void Validation()
|
|
{
|
|
RuleFor(r => r.Code).NotEmpty().WithMessage("结果不允许空");
|
|
}
|
|
}
|
|
}
|