|
|
@ -6,24 +6,26 @@ public class ReceiptCreateDtoValidator : AbstractValidator<ReceiptCreateDTO> |
|
|
|
{ |
|
|
|
public ReceiptCreateDtoValidator() |
|
|
|
{ |
|
|
|
RuleFor(q => q.RcNumber).NotEmpty().MaximumLength(64); |
|
|
|
RuleFor(q => q.RcNumber).MaximumLength(64).NotEmpty(); |
|
|
|
RuleFor(q => q.AsnNumber).MaximumLength(64); |
|
|
|
RuleFor(q => q.PoNumber).MaximumLength(64); |
|
|
|
RuleFor(q => q.SupplierCode).NotEmpty().MaximumLength(64); |
|
|
|
RuleFor(q => q.RcType).NotNull().MaximumLength(64); |
|
|
|
RuleFor(q => q.SupplierCode).MaximumLength(64).NotEmpty(); |
|
|
|
RuleFor(q => q.RcType).MaximumLength(64).NotNull(); |
|
|
|
RuleFor(q => q.Warehouse).MaximumLength(64); |
|
|
|
RuleFor(q => q.Dock).MaximumLength(64); |
|
|
|
RuleFor(q => q.ReceiveDate).NotNull(); |
|
|
|
RuleFor(q => q.ReceiveTime); |
|
|
|
RuleFor(q => q.PoLine).MaximumLength(64); |
|
|
|
RuleFor(q => q.PartCode).NotEmpty().MaximumLength(64); |
|
|
|
RuleFor(q => q.Lot).NotNull().MaximumLength(64); |
|
|
|
RuleFor(q => q.PartCode).MaximumLength(64).NotEmpty(); |
|
|
|
RuleFor(q => q.Lot).MaximumLength(64).NotNull(); |
|
|
|
RuleFor(q => q.SupplierLot).NotNull(); |
|
|
|
RuleFor(q => q.Uom).NotNull().MaximumLength(64); |
|
|
|
RuleFor(q => q.Uom).MaximumLength(64).NotNull(); |
|
|
|
RuleFor(q => q.ReceiveQty).NotNull(); |
|
|
|
RuleFor(q => q.SupplierPackConvertRate).NotNull(); |
|
|
|
RuleFor(q => q.Remark).MaximumLength(4096); |
|
|
|
RuleFor(q => q.Site).NotEmpty().MaximumLength(64); |
|
|
|
RuleFor(q => q.Company).NotEmpty().MaximumLength(64); |
|
|
|
RuleFor(q => q.Site).MaximumLength(64).NotEmpty(); |
|
|
|
RuleFor(q => q.Company).MaximumLength(64).NotEmpty(); |
|
|
|
RuleFor(x => x.TraceId).MaximumLength(64).NotEmpty(); |
|
|
|
|
|
|
|
} |
|
|
|
} |