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.
29 lines
1.2 KiB
29 lines
1.2 KiB
3 years ago
|
using FluentValidation;
|
||
|
|
||
|
namespace Win_in.Sfs.Scp.WebApi;
|
||
|
|
||
3 years ago
|
public class ReceiptCreateDtoValidator : AbstractValidator<ReceiptCreateDTO>
|
||
3 years ago
|
{
|
||
3 years ago
|
public ReceiptCreateDtoValidator()
|
||
3 years ago
|
{
|
||
|
RuleFor(q => q.RcNumber).NotEmpty().MaximumLength(64);
|
||
|
RuleFor(q => q.AsnNumber).NotEmpty().MaximumLength(64);
|
||
|
RuleFor(q => q.PoNumber).MaximumLength(64);
|
||
|
RuleFor(q => q.SupplierCode).NotEmpty().MaximumLength(64);
|
||
|
RuleFor(q => q.RcType).NotEmpty().MaximumLength(64);
|
||
|
RuleFor(q => q.Warehouse).MaximumLength(64);
|
||
|
RuleFor(q => q.Dock).MaximumLength(64);
|
||
|
RuleFor(q => q.ReceiveDate).NotEmpty();
|
||
|
RuleFor(q => q.ReceiveTime);
|
||
|
RuleFor(q => q.PoLine).MaximumLength(64);
|
||
|
RuleFor(q => q.PartCode).NotEmpty().MaximumLength(64);
|
||
|
RuleFor(q => q.Lot).NotEmpty().MaximumLength(64);
|
||
|
RuleFor(q => q.SupplierLot).NotEmpty();
|
||
|
RuleFor(q => q.Uom).NotEmpty().MaximumLength(64);
|
||
|
RuleFor(q => q.ReceiveQty).NotEmpty();
|
||
|
RuleFor(q => q.SupplierPackConvertRate).NotEmpty();
|
||
|
RuleFor(q => q.Remark).MaximumLength(4096);
|
||
|
RuleFor(q => q.Site).NotEmpty().MaximumLength(64);
|
||
|
RuleFor(q => q.Company).NotEmpty().MaximumLength(64);
|
||
|
}
|
||
|
}
|