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.
28 lines
1.1 KiB
28 lines
1.1 KiB
2 years ago
|
using FluentValidation;
|
||
|
|
||
|
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
|
||
|
|
||
|
public class AsnMstrInputValidator : AbstractValidator<AsnMstrInput>
|
||
|
{
|
||
|
public AsnMstrInputValidator()
|
||
|
{
|
||
|
RuleFor(x => x.TraceId).MaximumLength(64);
|
||
|
RuleFor(x => x.Company).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.Site).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.AsnNbr).MaximumLength(64).NotNull();
|
||
|
RuleFor(x => x.RpNbr).MaximumLength(64);
|
||
|
RuleFor(x => x.PoNbr).MaximumLength(64).NotNull();
|
||
|
RuleFor(x => x.VendorCode).MaximumLength(128).NotEmpty();
|
||
|
RuleFor(x => x.Status).MaximumLength(64).NotNull();
|
||
|
RuleFor(x => x.Contacts).MaximumLength(64);
|
||
|
RuleFor(x => x.Phone).MaximumLength(64);
|
||
|
RuleFor(x => x.TruckNbr).MaximumLength(64);
|
||
|
RuleFor(x => x.Whse).MaximumLength(64);
|
||
|
RuleFor(x => x.Dock).MaximumLength(64);
|
||
|
RuleFor(x => x.ShipDate);
|
||
|
RuleFor(x => x.DueDate);
|
||
|
RuleFor(x => x.TimeWindow).MaximumLength(64);
|
||
|
RuleFor(x => x.Remark).MaximumLength(4096);
|
||
|
}
|
||
|
}
|