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.
22 lines
867 B
22 lines
867 B
using FluentValidation;
|
|
|
|
namespace Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Qad;
|
|
|
|
public class ReceiptDetInputValidator : AbstractValidator<ReceiptDetInput>
|
|
{
|
|
public ReceiptDetInputValidator()
|
|
{
|
|
RuleFor(x => x.PoLine).NotNull();
|
|
RuleFor(x => x.PartCode).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.PackingCode).MaximumLength(32).NotNull();
|
|
RuleFor(x => x.ContainerCode).MaximumLength(32);
|
|
RuleFor(x => x.Lot).MaximumLength(64).NotNull();
|
|
RuleFor(x => x.VendorLot).MaximumLength(64);
|
|
RuleFor(x => x.ProductionDate).MaximumLength(64);
|
|
RuleFor(x => x.Loc).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.Qty).NotNull();
|
|
RuleFor(x => x.Um).MaximumLength(64).NotEmpty();
|
|
RuleFor(x => x.Status).NotNull();
|
|
RuleFor(x => x.Remark).MaximumLength(4096);
|
|
}
|
|
}
|
|
|