using DS.Module.Core;
using FluentValidation;
namespace DS.WMS.Core.Code.Dtos;
///
/// 航次信息请求实体
///
public class CodeVoynoReq
{
///
/// 主键Id
///
public long Id { get; set; }
///
/// 船名Id
///
public long VesselId { get; set; }
///
/// 航次
///
public string VoyNo { get; set; } = "";
///
/// 装货港
///
public string LoadPort { get; set; }= "";
///
/// 中转港
///
public string EnterPort { get; set; }= "";
///
/// 卸货港
///
public string DischargePort { get; set; }= "";
///
/// 开船日期
///
public DateTime? ETD { get; set; }
///
/// 预抵日期
///
public DateTime? ETA { get; set; }
///
/// ATD
///
public DateTime? ATD { get; set; }
///
/// 截单时间
///
public DateTime? CloseDoDate { get; set; }
///
/// 默认场站(码头)Id
///
public long YardId { get; set; }
///
/// 状态 0 启用 1 禁用
///
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
///
/// 备注
///
public string Note { get; set; } = "";
}
///
/// 验证
///
public class CodeVoynoReqValidator : AbstractValidator
{
///
/// 构造函数
///
public CodeVoynoReqValidator()
{
this.RuleFor(o => o.VoyNo)
.NotEmpty().WithName("航次");
}
}