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.
96 lines
1.9 KiB
96 lines
1.9 KiB
using FluentValidation;
|
|
using Kean.Domain.Stock.Models;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Kean.Domain.Stock.Commands
|
|
{
|
|
/// <summary>
|
|
/// 入库命令
|
|
/// </summary>
|
|
public class PreScanInboundCommand : CommandValidator<PreScanInboundCommand>, ICommand
|
|
{
|
|
/// <summary>
|
|
/// 申请编号
|
|
/// </summary>
|
|
public string RequestNo
|
|
{
|
|
get; set;
|
|
}
|
|
/// <summary>
|
|
/// 托盘条码
|
|
/// </summary>
|
|
public string Barcode { get; set; }
|
|
/// <summary>
|
|
/// sfc码
|
|
/// </summary>
|
|
public string[] Sfc
|
|
{
|
|
get; set;
|
|
}
|
|
/// <summary>
|
|
/// 原库区
|
|
/// </summary>
|
|
public string Source
|
|
{
|
|
get; set;
|
|
}
|
|
/// <summary>
|
|
/// 申请人
|
|
/// </summary>
|
|
public string Postuser
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 验证项
|
|
/// </summary>
|
|
protected override void Validation()
|
|
{
|
|
RuleFor(r => r.Barcode).NotEmpty().WithMessage("托盘条码不允许空");
|
|
RuleFor(r => r.Source).NotEmpty().WithMessage("目标地址不允许空");
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 操作者
|
|
/// </summary>
|
|
public int Operator
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
public object Remark
|
|
{
|
|
get; set;
|
|
}
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string Qc
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public string Tag
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public bool AgvApplyInFlag
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 库存行
|
|
/// </summary>
|
|
public IEnumerable<Batch> Batchs
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
}
|