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.
26 lines
970 B
26 lines
970 B
using FluentValidation;
|
|
|
|
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
|
|
|
|
public class PoMstrInputValidator : AbstractValidator<PoMstrInput>
|
|
{
|
|
public PoMstrInputValidator()
|
|
{
|
|
RuleFor(x => x.TraceId).MaximumLength(64);
|
|
RuleFor(x => x.Company).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.Site).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.PoNbr).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.VendorCode).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.ModType).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.Status).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.Consignment);
|
|
RuleFor(x => x.OrderDate);
|
|
RuleFor(x => x.DueDate);
|
|
RuleFor(x => x.TaxRate);
|
|
RuleFor(x => x.Contacts).MaximumLength(128);
|
|
RuleFor(x => x.Buyer);
|
|
RuleFor(x => x.Contract);
|
|
RuleFor(x => x.Project);
|
|
RuleFor(x => x.Remark).MaximumLength(4096);
|
|
}
|
|
}
|
|
|