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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
using DS.Module.Core ;
using FluentValidation ;
namespace DS.WMS.Core.Code.Dtos ;
/// <summary>
/// 航次信息请求实体
/// </summary>
public class CodeVoynoReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get ; set ; }
/// <summary>
/// 船名Id
/// </summary>
public long VesselId { get ; set ; }
/// <summary>
/// 航次
/// </summary>
public string VoyNo { get ; set ; } = "" ;
/// <summary>
/// 装货港
/// </summary>
public string LoadPort { get ; set ; } = "" ;
/// <summary>
/// 中转港
/// </summary>
public string EnterPort { get ; set ; } = "" ;
/// <summary>
/// 卸货港
/// </summary>
public string DischargePort { get ; set ; } = "" ;
/// <summary>
/// 开船日期
/// </summary>
public DateTime ? ETD { get ; set ; }
/// <summary>
/// 预抵日期
/// </summary>
public DateTime ? ETA { get ; set ; }
/// <summary>
/// ATD
/// </summary>
public DateTime ? ATD { get ; set ; }
/// <summary>
/// 截单时间
/// </summary>
public DateTime ? CloseDoDate { get ; set ; }
/// <summary>
/// 默认场站( 码头) Id
/// </summary>
public long YardId { get ; set ; }
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum ? Status { get ; set ; } = StatusEnum . Enable ;
/// <summary>
/// 备注
/// </summary>
public string Note { get ; set ; } = "" ;
}
/// <summary>
/// 验证
/// </summary>
public class CodeVoynoReqValidator : AbstractValidator < CodeVoynoReq >
{
/// <summary>
/// 构造函数
/// </summary>
public CodeVoynoReqValidator ( )
{
this . RuleFor ( o = > o . VoyNo )
. NotEmpty ( ) . WithName ( "航次" ) ;
}
}