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.
22 lines
751 B
22 lines
751 B
3 years ago
|
using FluentValidation;
|
||
|
|
||
|
namespace Win_in.Sfs.Scp.WebApi;
|
||
|
|
||
|
public class CreatePurchaseOrderDetailValidator : AbstractValidator<PurchaseOrderDetailDTO>
|
||
|
{
|
||
|
public CreatePurchaseOrderDetailValidator()
|
||
|
{
|
||
|
RuleFor(q => q.PoNumber).NotEmpty().MaximumLength(64);
|
||
|
RuleFor(q => q.PoLine).NotEmpty().MaximumLength(64);
|
||
|
RuleFor(q => q.PartCode).NotEmpty().MaximumLength(64);
|
||
|
RuleFor(q => q.Uom).NotEmpty().MaximumLength(64);
|
||
|
RuleFor(q => q.OrderQty).NotEmpty();
|
||
|
RuleFor(q => q.StdPackQty).NotEmpty();
|
||
|
RuleFor(q => q.SupplierPackConvertRate);
|
||
|
RuleFor(q => q.IsConsignment).NotEmpty();
|
||
|
RuleFor(q => q.LineStatus).NotEmpty();
|
||
|
RuleFor(q => q.Remark).MaximumLength(4096);
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|