using FluentValidation;
using System;
using System.Collections.Generic;
namespace Kean.Domain.Stock.Commands
{
///
/// 冻结/解冻前期命令
///
public class PreSetQcStatusCommand : CommandValidator, ICommand
{
///
/// 冻结/可用状态
///
public bool Enable
{
get; set;
}
///
/// 物料编码
///
public int? GoodsCode
{
get; set;
}
///
/// 批次
///
public string Batch
{
get; set;
}
///
/// 生产日期
///
public DateTime? ManufacturingDateFrom
{
get; set;
}
///
/// 生产日期
///
public DateTime? ManufacturingDateTo
{
get; set;
}
///
/// 入库时间
///
public DateTime? InboundTimeFrom
{
get; set;
}
///
/// 入库时间
///
public DateTime? InboundTimeTo
{
get; set;
}
///
/// 托盘条码
///
public string Barcode { get; set; }
///
/// 冻结原因
///
public string Supplier
{
get; set;
}
///
/// 操作者
///
public int Operator
{
get; set;
}
///
/// 验证项
///
protected override void Validation()
{
//RuleFor(r => r.Barcode).NotEmpty().WithMessage("托盘条码不允许空");
}
///
/// 更新数量
///
public int BarcodeCount
{
get; set;
}
///
/// 更新数量
///
public IEnumerable BarcodeList
{
get; set;
}
}
}