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