using FluentValidation;
using Kean.Domain.Stock.Models;
using System;
using System.Collections.Generic;
namespace Kean.Domain.Stock.Commands
{
///
/// 入库命令
///
public class SetQcStatusCommand : CommandValidator, ICommand
{
///
/// 托盘条码
///
public string Barcode { get; set; }
///
/// 冻结/可用状态
///
public bool Enable
{
get; set;
}
///
/// 库存行
///
public IEnumerable Lines { get; set; }
///
/// 操作者
///
public int Operator { get; set; }
///
/// 标签
///
public string Tag { get; set; }
///
/// 备注
///
public string Message
{
get; set;
}
///
/// 时间戳
///
internal DateTime? Timestamp { get; set; }
///
/// 验证项
///
protected override void Validation()
{
RuleFor(r => r.Barcode).NotEmpty().WithMessage("托盘条码不允许空");
}
}
}