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
768 B
20 lines
768 B
2 years ago
|
using FluentValidation;
|
||
|
|
||
|
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
|
||
|
|
||
|
public class PrhHistInputValidator : AbstractValidator<PrhHistInput>
|
||
|
{
|
||
|
public PrhHistInputValidator()
|
||
|
{
|
||
|
RuleFor(x => x.TraceId).MaximumLength(64);
|
||
|
RuleFor(x => x.Company).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.AsnNumber).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.PackageNumber).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.PalletNumber).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.AsnNumber).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.Lot).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.LocationCode).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.Remark).MaximumLength(4096);
|
||
|
}
|
||
|
}
|