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.
20 lines
729 B
20 lines
729 B
2 years ago
|
using FluentValidation;
|
||
|
|
||
|
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
|
||
|
|
||
|
public class VendPartInputValidator : AbstractValidator<VendPartInput>
|
||
|
{
|
||
|
public VendPartInputValidator()
|
||
|
{
|
||
|
RuleFor(x => x.TraceId).MaximumLength(64);
|
||
|
RuleFor(x => x.Company).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.Site).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.VendorCode).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.PartCode).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.VendPartCode).MaximumLength(128).NotEmpty();
|
||
|
RuleFor(x => x.VendPackQty);
|
||
|
RuleFor(x => x.VendPackUm).MaximumLength(64);
|
||
|
RuleFor(x => x.Remark).MaximumLength(4096);
|
||
|
}
|
||
|
}
|