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.
156 lines
3.3 KiB
C#
156 lines
3.3 KiB
C#
using DS.Module.Core;
|
|
using FluentValidation;
|
|
using SqlSugar;
|
|
|
|
namespace DS.WMS.ContainerManagement.Info.Dtos;
|
|
|
|
/// <summary>
|
|
/// 集装箱当前状态 请求实体
|
|
/// </summary>
|
|
public class CM_CurrentStateReq
|
|
{
|
|
/// <summary>
|
|
/// 主键Id
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
/// <summary>
|
|
/// 集装箱号
|
|
/// </summary>
|
|
public string Cntrno { get; set; }
|
|
|
|
// <summary>
|
|
/// Desc:箱型
|
|
/// </summary>
|
|
public string Ctnall { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:新旧箱 空白/used/new
|
|
/// </summary>
|
|
public string UsedState { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:箱主
|
|
/// </summary>
|
|
public string CtnOwner { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Desc:业务所属分部
|
|
/// </summary>
|
|
public string Corpid { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:箱来源: 自有箱/短租租入/长租租入/买箱
|
|
/// </summary>
|
|
public string CtnSource { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:箱业务状态: 短租租出 长租租出 单程 卖箱
|
|
/// </summary>
|
|
public string CtnBizState { get; set; } = "0";
|
|
|
|
/// <summary>
|
|
/// Desc:箱业务编号:当前
|
|
/// </summary>
|
|
public string Billno { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:关联放箱单号
|
|
/// </summary>
|
|
public string CtnReleaseNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:箱状态
|
|
/// </summary>
|
|
public string CtnState { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:箱损坏/维修状态
|
|
/// </summary>
|
|
public string CtnBreakState { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Desc:是否上线(是否管理中)
|
|
/// </summary>
|
|
public Int16 IsOnline { get; set; } = 0;
|
|
/// <summary>
|
|
/// Desc:空重箱
|
|
/// </summary>
|
|
public bool? IsHeavy { get; set; } = false;
|
|
/// <summary>
|
|
/// Desc:当前港口
|
|
/// </summary>
|
|
public string Portid { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:码头或场站
|
|
/// </summary>
|
|
public string Depot { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:运输工具
|
|
/// </summary>
|
|
public string VehicleName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:当前业务编号
|
|
/// </summary>
|
|
public string Mblno { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Desc:业务委托单位
|
|
/// </summary>
|
|
public string CustomerName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Desc:ETD
|
|
/// </summary>
|
|
public DateTime? ETD { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:ETD
|
|
/// </summary>
|
|
public DateTime? ETA { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Desc:状态时间
|
|
/// </summary>
|
|
public DateTime? StateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 箱皮重
|
|
/// </summary>
|
|
public decimal? CtnWeight { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Desc:生产日期
|
|
/// </summary>
|
|
public DateTime? ProductionDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 箱初期成本
|
|
/// </summary>
|
|
public decimal? CtnValue_Base { get; set; } = 0;
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 验证
|
|
/// </summary>
|
|
public class CM_CurrentStateReqValidator : AbstractValidator<CM_CurrentStateReq>
|
|
{
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public CM_CurrentStateReqValidator()
|
|
{
|
|
this.RuleFor(o => o.Cntrno)
|
|
.NotEmpty().WithName("集装箱号");
|
|
this.RuleFor(o => o.Ctnall)
|
|
.NotEmpty().WithName("箱型");
|
|
}
|
|
} |