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