You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

172 lines
3.6 KiB
C#

using FluentValidation;
namespace DS.WMS.Core.WmsModule.Dtos;
public class WmsOutDoGoodsInput
{
public Guid WMSDODETAILID { get; set; }
/// <summary>
///
/// </summary>
public Guid? WMSDOID { get; set; }
/// <summary>
///
/// </summary>
public Guid? WMSPLANDETAILID { get; set; }
/// <summary>
///
/// </summary>
public string MATERIALNO { get; set; }
public string GoodsId { get; set; } = "";
/// <summary>
///
/// </summary>
public string GOODSCODE { get; set; }= "";
/// <summary>
///
/// </summary>
public string GOODSNAME { get; set; }= "";
/// <summary>
///
/// </summary>
public string GOODSHSCODE { get; set; }= "";
/// <summary>
///
/// </summary>
public string GOODSMODEL { get; set; }= "";
/// <summary>
/// 批次号
/// </summary>
public string GOODSMODEL2 { get; set; }= "";
/// <summary>
///
/// </summary>
public string MBLNO { get; set; }= "";
/// <summary>
///
/// </summary>
public string CNTRNO { get; set; }= "";
/// <summary>
///
/// </summary>
public string STOREHOUSE { get; set; }= "";
/// <summary>
///
/// </summary>
public string AREACODE { get; set; }= "";
/// <summary>
///
/// </summary>
public decimal? KGS { get; set; }
/// <summary>
///
/// </summary>
public decimal? CBM { get; set; }
/// <summary>
///
/// </summary>
public decimal? PKGS { get; set; }
/// <summary>
///
/// </summary>
public string KINDPKGS { get; set; }= "";
/// <summary>
///
/// </summary>
public string STORAGEUNIT { get; set; }= "";
/// <summary>
///
/// </summary>
public decimal? STORAGEUNITCOUNT { get; set; }= 0;
/// <summary>
///
/// </summary>
public string RULEUNIT { get; set; }= "";
/// <summary>
///
/// </summary>
public decimal? RULEUNITCOUNT { get; set; }= 0;
/// <summary>
///
/// </summary>
public Guid? WMSID { get; set; }
/// <summary>
///
/// </summary>
public Guid? WMSPHYSICSID { get; set; }
/// <summary>
///
/// </summary>
public decimal? NETWEIGHT { get; set; }= 0;
/// <summary>
///
/// </summary>
public string CUSTOMNO { get; set; }= "";
/// <summary>
///
/// </summary>
public string TRUCKNO { get; set; }= "";
/// <summary>
///
/// </summary>
public DateTime? DETAILDODATE { get; set; }
/// <summary>
///
/// </summary>
public bool? CLEARWMS { get; set; }
/// <summary>
///
/// </summary>
public decimal? SMALLPKGS { get; set; }= 0;
/// <summary>
///
/// </summary>
public decimal? MINPKGS { get; set; } = 0;
}
/// <summary>
/// 验证
/// </summary>
public class WmsOutDoGoodsInputValidator : AbstractValidator<WmsOutDoGoodsInput>
{
/// <summary>
/// 构造函数
/// </summary>
public WmsOutDoGoodsInputValidator()
{
this.RuleFor(o => o.PKGS)
.GreaterThan(0).WithName("件数必须大于零");
this.RuleFor(o => o.STORAGEUNITCOUNT)
.GreaterThan(0).WithMessage("计费数量必须大于0");
}
}