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.
24 lines
845 B
24 lines
845 B
using FluentValidation;
|
|
|
|
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
|
|
|
|
public class PoDetInputValidator : AbstractValidator<PoDetInput>
|
|
{
|
|
public PoDetInputValidator()
|
|
{
|
|
RuleFor(x => x.PoNbr).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.PoLine);
|
|
RuleFor(x => x.PartCode).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.Status).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.Um).MaximumLength(64);
|
|
RuleFor(x => x.OrderQty);
|
|
RuleFor(x => x.RcQty);
|
|
RuleFor(x => x.StdPackUm).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.StdPackQty);
|
|
RuleFor(x => x.VendPackUm).MaximumLength(64);
|
|
RuleFor(x => x.VendPackQty);
|
|
RuleFor(x => x.UmConv);
|
|
RuleFor(x => x.Consignment);
|
|
RuleFor(x => x.Remark).MaximumLength(4096);
|
|
}
|
|
}
|
|
|