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.
77 lines
1.6 KiB
77 lines
1.6 KiB
3 months ago
|
using FluentValidation;
|
||
|
using Kean.Domain.Stock.Models;
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace Kean.Domain.Task.Commands
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 创建申请出库命令
|
||
|
/// </summary>
|
||
|
public class PreApplyOutCommand : CommandValidator<PreApplyOutCommand>, ICommand
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 申请编号
|
||
|
/// </summary>
|
||
|
public string RequestNo
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
/// <summary>
|
||
|
///
|
||
|
/// </summary>
|
||
|
public Batch Batch
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 成品编码
|
||
|
/// </summary>
|
||
|
public string Code
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 目标库区
|
||
|
/// </summary>
|
||
|
public string Target
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 申请人
|
||
|
/// </summary>
|
||
|
public string Postuser
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 验证项
|
||
|
/// </summary>
|
||
|
protected override void Validation()
|
||
|
{
|
||
|
RuleFor(r => r.RequestNo).NotEmpty().WithMessage("申请编码不允许空");
|
||
|
RuleFor(r => r.Target).NotEmpty().WithMessage("目标库位不允许空");
|
||
|
RuleFor(r => r.Code).NotEmpty().WithMessage("成品编码不允许空");
|
||
|
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 托盘条码
|
||
|
/// </summary>
|
||
|
public string Barcode
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 数量
|
||
|
/// </summary>
|
||
|
public string Qty
|
||
|
{
|
||
|
get; set;
|
||
|
}
|
||
|
}
|
||
|
}
|