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.
18 lines
631 B
18 lines
631 B
using FluentValidation;
|
|
|
|
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
|
|
|
|
public class LocInputValidator : AbstractValidator<LocInput>
|
|
{
|
|
public LocInputValidator()
|
|
{
|
|
RuleFor(x => x.TraceId).MaximumLength(64);
|
|
RuleFor(x => x.Company).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.Site).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.Whse).MaximumLength(64);
|
|
RuleFor(x => x.Code).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.Desc).MaximumLength(128);
|
|
RuleFor(x => x.Type).MaximumLength(64);
|
|
RuleFor(x => x.Remark).MaximumLength(4096);
|
|
}
|
|
}
|
|
|