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
641 B
19 lines
641 B
2 years ago
|
using FluentValidation;
|
||
|
|
||
|
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
|
||
|
|
||
|
public class ProdLineInputValidator : AbstractValidator<ProdLineInput>
|
||
|
{
|
||
|
public ProdLineInputValidator()
|
||
|
{
|
||
|
RuleFor(x => x.TraceId).MaximumLength(64);
|
||
|
RuleFor(x => x.Company).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.Site).MaximumLength(128).NotEmpty();
|
||
|
RuleFor(x => x.Code).MaximumLength(128).NotEmpty();
|
||
|
RuleFor(x => x.Desc).MaximumLength(128);
|
||
|
RuleFor(x => x.Part).MaximumLength(128).NotNull();
|
||
|
RuleFor(x => x.Rate);
|
||
|
RuleFor(x => x.Remark).MaximumLength(4096);
|
||
|
}
|
||
|
}
|