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.
30 lines
1.2 KiB
30 lines
1.2 KiB
using FluentValidation;
|
|
|
|
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
|
|
|
|
public class AsnDetInputValidator : AbstractValidator<AsnDetInput>
|
|
{
|
|
public AsnDetInputValidator()
|
|
{
|
|
RuleFor(x => x.AsnNbr).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.PoNbr).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.PoLine);
|
|
RuleFor(x => x.PartCode).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.Lot);
|
|
RuleFor(x => x.Qty);
|
|
RuleFor(x => x.ProductionDate);
|
|
RuleFor(x => x.WareClass).MaximumLength(64);
|
|
RuleFor(x => x.WareCode).MaximumLength(64);
|
|
RuleFor(x => x.StdPackQty);
|
|
RuleFor(x => x.PoUm).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.LocUm).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.UmConv);
|
|
RuleFor(x => x.PartType).MaximumLength(64);
|
|
RuleFor(x => x.Supplierlot).MaximumLength(64);
|
|
RuleFor(x => x.Status).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.LabelCode).MaximumLength(64);
|
|
RuleFor(x => x.EntireBarCode).MaximumLength(4096); //EntireBarcode
|
|
RuleFor(x => x.PalletLabelCode).MaximumLength(64);
|
|
RuleFor(x => x.Remark).MaximumLength(4096);
|
|
}
|
|
}
|
|
|