using FluentValidation;
using Kean.Domain.Stock.Models;
using System.Collections.Generic;
namespace Kean.Domain.Stock.Commands
{
///
/// 入库命令
///
public class SendAGVCommand : CommandValidator, ICommand
{
///
/// 托盘条码
///
public string Barcode
{
get; set;
}
///
/// 目标位置
///
public int Destination
{
get; set;
}
///
/// 库存行
///
public IEnumerable Lines
{
get; set;
}
///
/// 标签
///
public string Tag
{
get; set;
}
///
/// 验证项
///
protected override void Validation()
{
RuleFor(r => r.Barcode).NotEmpty().WithMessage("托盘条码不允许空");
}
}
}