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.
50 lines
1.1 KiB
50 lines
1.1 KiB
3 months ago
|
using FluentValidation;
|
||
|
using Kean.Domain.Stock.Models;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace Kean.Domain.Stock.Commands
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 入库命令
|
||
|
/// </summary>
|
||
|
public class ChangeStoragePropertyCommand : CommandValidator<ChangeStoragePropertyCommand>, ICommand
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 验证项
|
||
|
/// </summary>
|
||
|
protected override void Validation()
|
||
|
{
|
||
|
RuleFor(r => r.Serialno).NotEmpty().WithMessage("膜卷码不能为空");
|
||
|
RuleFor(r => r.Batch).NotEmpty().WithMessage("属性不能为空");
|
||
|
}
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
public string RequestNo
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
public string Serialno
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
public string FreezenStatus
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
public Batch Batch
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
}
|
||
|
}
|