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
838 B
22 lines
838 B
using FluentValidation;
|
|
|
|
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
|
|
|
|
public class SodDetInputValidator : AbstractValidator<SodDetInput>
|
|
{
|
|
public SodDetInputValidator()
|
|
{
|
|
RuleFor(x => x.TraceId).MaximumLength(64);
|
|
RuleFor(x => x.Company).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.Site).MaximumLength(64);
|
|
RuleFor(x => x.SoNbr).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.SoLine);
|
|
RuleFor(x => x.CustCode).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.PartCode).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.Um).MaximumLength(64);
|
|
RuleFor(x => x.StdPackQty).MaximumLength(64);
|
|
RuleFor(x => x.Loc).MaximumLength(64);
|
|
RuleFor(x => x.ShipTo).MaximumLength(128);
|
|
RuleFor(x => x.Remark).MaximumLength(4096);
|
|
}
|
|
}
|
|
|