using DS.WMS.Core.Info.Dtos; using DS.WMS.Core.Op.Entity; using FluentValidation; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS.WMS.Core.Sys.Dtos { /// /// 根据单位代码获取数量及其他信息请求实体 /// public class UnitSelectInfoReq { /// /// 业务类型 1 海运出口 2 海运进口 /// public BusinessType BusinessType { get; set; } /// /// 业务Id /// public long BusinessId { get; set; } /// /// Desc:单位代码 /// public string Code { get; set; } } /// /// 验证 /// public class UnitSelectInfoReqReqValidator : AbstractValidator { /// /// 构造函数 /// public UnitSelectInfoReqReqValidator() { this.RuleFor(o => o.Code) .NotEmpty().WithName("单位代码"); this.RuleFor(o => o.BusinessId) .NotEmpty().WithName("业务Id"); this.RuleFor(o => o.BusinessType) .NotEmpty().WithName("业务类型"); } } /// /// 根据单位代码获取数量及其他信息返回实体 /// public class UnitSelectInfoRes { /// /// Desc:单位代码 /// public string Code { get; set; } /// /// 数量 /// public decimal? Quantity { get; set; } /// /// TEU /// public int TEU { get; set; } /// /// 自然箱 所有箱型的合计数 /// public int? CtnTotalNum { get; set; } } }