using FluentValidation;
using Kean.Domain.Stock.Models;
using System;
using System.Collections.Generic;
namespace Kean.Domain.Task.Commands
{
///
/// 创建申请出库命令
///
public class ApplyOutCommand : CommandValidator, ICommand
{
///
/// 库房
///
public int Warehouse { get; set; }
///
/// 托盘条码
///
public string Barcode { get; set; }
///
/// 目标位置
///
public object Destination { get; set; }
public object Original
{
get; set;
}
///
/// 优先级
///
public int? Priority { get; set; }
///
/// 操作者
///
public int Operator { get; set; }
///
/// 是否手动
///
public bool Manual { get; set; }
///
/// 标签
///
public string Tag { get; set; }
///
/// 前续连接
///
public int? Previous { get; set; }
///
/// 物料
///
public IEnumerable Materials { get; set; }
///
///
///
public Batch Batch
{
get; set;
}
///
/// 时间戳
///
internal DateTime? Timestamp { get; set; }
///
/// 验证项
///
protected override void Validation()
{
RuleFor(r => r.Destination).NotEmpty().WithMessage("目标位置不允许空");
}
///
/// 标识
///
[Output]
public int Id { get; private set; }
///
/// 事务
///
public string Transaction
{
get; set;
}
///
/// 申请编号
///
public string RequestNo
{
get; set;
}
///
/// 极片卷数量
///
public int Qty
{
get; set;
}
///
/// 物料属性 状态
///
public string Qc
{
get; set;
}
///
/// 物料属性 是否可用
///
public bool enable
{
get; set;
}
///
/// 物料属性 是否本地
///
public string IsLocal
{
get; set;
}
///
/// 备注
///
public string Remark
{
get; set;
}
}
}