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.
36 lines
1.5 KiB
36 lines
1.5 KiB
using FluentValidation;
|
|
|
|
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
|
|
|
|
public class PartInputValidator : AbstractValidator<PartInput>
|
|
{
|
|
public PartInputValidator()
|
|
{
|
|
RuleFor(x => x.Company).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.Site).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.Code).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.Name).MaximumLength(128);
|
|
RuleFor(x => x.Desc1).MaximumLength(128).NotNull();
|
|
RuleFor(x => x.Desc2).MaximumLength(128);
|
|
RuleFor(x => x.Status).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.CanMake).NotNull();
|
|
RuleFor(x => x.CanBuy).NotNull();
|
|
RuleFor(x => x.Um).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.AbcClass).MaximumLength(64);
|
|
RuleFor(x => x.ProdKind).MaximumLength(64);
|
|
RuleFor(x => x.PartType).MaximumLength(64);
|
|
RuleFor(x => x.PartCatalog).MaximumLength(64);
|
|
RuleFor(x => x.PartGroup).MaximumLength(64);
|
|
RuleFor(x => x.Color).MaximumLength(64);
|
|
RuleFor(x => x.Config).MaximumLength(128);
|
|
RuleFor(x => x.Project).MaximumLength(128);
|
|
RuleFor(x => x.Version).MaximumLength(64);
|
|
RuleFor(x => x.Eco).MaximumLength(128);
|
|
RuleFor(x => x.StdPackUm).MaximumLength(64);
|
|
RuleFor(x => x.StdPackQty);
|
|
RuleFor(x => x.ExtPackUm).MaximumLength(64);
|
|
RuleFor(x => x.ExtPackQty);
|
|
RuleFor(x => x.Remark).MaximumLength(4096);
|
|
RuleFor(x => x.TraceId).MaximumLength(64);
|
|
}
|
|
}
|
|
|