You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
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
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据单位代码获取数量及其他信息请求实体
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class UnitSelectInfoReq
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 业务类型 1 海运出口 2 海运进口
|
|
|
|
|
/// </summary>
|
|
|
|
|
public BusinessType BusinessType { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 业务Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long BusinessId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:单位代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Code { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 验证
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class UnitSelectInfoReqReqValidator : AbstractValidator<UnitSelectInfoReq>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 构造函数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public UnitSelectInfoReqReqValidator()
|
|
|
|
|
{
|
|
|
|
|
this.RuleFor(o => o.Code)
|
|
|
|
|
.NotEmpty().WithName("单位代码");
|
|
|
|
|
this.RuleFor(o => o.BusinessId)
|
|
|
|
|
.NotEmpty().WithName("业务Id");
|
|
|
|
|
this.RuleFor(o => o.BusinessType)
|
|
|
|
|
.NotEmpty().WithName("业务类型");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据单位代码获取数量及其他信息返回实体
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class UnitSelectInfoRes
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:单位代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Code { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public decimal? Quantity { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// TEU
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int TEU { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 自然箱 所有箱型的合计数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? CtnTotalNum { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|