using DS.Module.Core; using FluentValidation; using SqlSugar; namespace DS.WMS.Core.Code.Dtos; /// /// 集装箱信息请求实体 /// public class CodeCtnReq { /// /// 主键Id /// public long Id { get; set; } /// /// 集装箱尺寸 /// public string CtnSize { get; set; } = ""; /// /// 集装箱类型 /// public string CtnType { get; set; }= ""; /// /// 表现形式 /// public string CtnName { get; set; }= ""; /// /// EDI代码 /// public string EdiCode { get; set; }= ""; /// /// 箱皮重 /// public decimal CtnWeight { get; set; }= 0; /// /// 中文说明 /// public string CnExplain { get; set; }= ""; /// /// 英文说明 /// public string EnExplain { get; set; }= ""; /// /// AFR代码 /// public string AfrCode { get; set; }= ""; /// /// 默认限重 /// public decimal LimitWeight { get; set; } = 0; /// /// TEU /// public decimal TEU { get; set; }= 0; /// /// 排序号 /// public int? OrderNo { get; set; } = 100; /// /// 状态 0 启用 1 禁用 /// public StatusEnum? Status { get; set; } = StatusEnum.Enable; /// /// 备注 /// public string Note { get; set; } = ""; } /// /// 验证 /// public class CodeCtnReqValidator : AbstractValidator { /// /// 构造函数 /// public CodeCtnReqValidator() { this.RuleFor(o => o.CtnName) .NotEmpty().WithName("表现形式"); } }