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