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.
 
 
 
 
 
 

19 lines
727 B

using FluentValidation;
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
public class CustPartInputValidator : AbstractValidator<CustPartInput>
{
public CustPartInputValidator()
{
RuleFor(x => x.TraceId).MaximumLength(64);
RuleFor(x => x.Company).MaximumLength(64).NotEmpty();
RuleFor(x => x.Site).MaximumLength(64).NotEmpty();
RuleFor(x => x.CustCode).MaximumLength(64).NotEmpty();
RuleFor(x => x.PartCode).MaximumLength(64).NotEmpty();
RuleFor(x => x.CustPartCode).MaximumLength(128).NotEmpty();
RuleFor(x => x.CustPackQty);
RuleFor(x => x.CustPackUm).MaximumLength(64);
RuleFor(x => x.Remark).MaximumLength(4096);
}
}