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.
26 lines
901 B
26 lines
901 B
2 years ago
|
using FluentValidation;
|
||
|
|
||
|
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
|
||
|
|
||
|
public class BomInputValidator : AbstractValidator<BomInput>
|
||
|
{
|
||
|
public BomInputValidator()
|
||
|
{
|
||
|
RuleFor(x => x.TraceId).MaximumLength(64);
|
||
|
RuleFor(x => x.Company).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.ParentCode).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.ComponentCode).MaximumLength(64).NotEmpty();
|
||
|
RuleFor(x => x.ComponentQty); //.ScalePrecision(4,13)
|
||
|
RuleFor(x => x.Reference).MaximumLength(128);
|
||
|
RuleFor(x => x.StartDate);
|
||
|
RuleFor(x => x.EndDate);
|
||
|
RuleFor(x => x.Type).MaximumLength(128);
|
||
|
RuleFor(x => x.Op);
|
||
|
RuleFor(x => x.ScrapPct);
|
||
|
RuleFor(x => x.SeqNumber);
|
||
|
RuleFor(x => x.OptionGroup);
|
||
|
RuleFor(x => x.Process);
|
||
|
RuleFor(x => x.Remark).MaximumLength(4096);
|
||
|
}
|
||
|
}
|