增加数量验证
This commit is contained in:
@@ -43,6 +43,7 @@ namespace WMS.Web.Core.Dto.ChangeBoxRecord
|
||||
/// 数量
|
||||
///</summary>
|
||||
[Required(ErrorMessage = "数量不能为空")]
|
||||
[Range(0.999999999, 10000000000, ErrorMessage = "数量必须大于等于1")]
|
||||
public decimal Qty { get; set; }
|
||||
/// <summary>
|
||||
/// 序列号
|
||||
|
||||
@@ -24,6 +24,7 @@ namespace WMS.Web.Core.Dto.MoveBoxRecord
|
||||
/// 数量
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "数量不能为空")]
|
||||
[Range(0.999999999, 10000000000, ErrorMessage = "数量必须大于等于1")]
|
||||
public decimal Qty { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ namespace WMS.Web.Core.Dto.OutStock
|
||||
/// <summary>
|
||||
/// 出库数量
|
||||
///</summary>
|
||||
[Range(0.999999999, 10000000000, ErrorMessage = "数量必须大于等于1")]
|
||||
public decimal Qty { get; set; }
|
||||
/// <summary>
|
||||
/// 箱Id
|
||||
|
||||
Reference in New Issue
Block a user