53 lines
1.1 KiB
53 lines
1.1 KiB
3 months ago
|
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("结果不允许空");
|
||
|
}
|
||
|
}
|
||
|
}
|