using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Myshipping.Application { public class TaskMessageInfoDto { /// /// 表头 /// public TaskMessageHead Head { get; set; } /// /// 表体 /// public TaskMessageMain Main { get; set; } } /// /// 报文表体 /// public class TaskMessageMain { /// /// 业务惟一主键 /// public string BusiPKId { get; set; } /// /// 比对ID /// public string TaskCompareId { get; set; } /// /// 用户ID /// public string UserId { get; set; } /// /// 用户名称 /// public string UserName { get; set; } /// /// 用户邮件 /// public string UserEmail { get; set; } /// /// 租户ID /// public string TenantId { get; set; } /// /// 租户名称 /// public string TenantName { get; set; } /// /// 场站代码 /// public string YardCode { get; set; } /// /// 场站中文名称 /// public string YardCName { get; set; } /// /// 船名英文名 /// public string VesselName { get; set; } /// /// 船名中文名 /// public string VesselCName { get; set; } /// /// 航次号 /// public string VoyNo { get; set; } /// /// 主提单号 /// public string MasterBlNo { get; set; } /// /// 分提单号 /// public string HouseBlNo { get; set; } /// /// 订舱编号 /// public string BookingNo { get; set; } /// /// 起运港代码 /// public string PortLoadId { get; set; } /// /// 起运港 /// public string PortLoad { get; set; } /// /// 卸货港代码 /// public string PortDischargeId { get; set; } /// /// 卸货港 /// public string PortDischarge { get; set; } /// /// 中转港代码 /// public string TransportId { get; set; } /// /// 中转港 /// public string Transport { get; set; } /// /// 交货地代码 /// public string PlaceDeliveryId { get; set; } /// /// 交货地 /// public string PlaceDelivery { get; set; } /// /// 目的港代码 /// public string DestinationId { get; set; } /// /// 目的港 /// public string Destination { get; set; } /// /// 件数 /// public Int32 PKGs { get; set; } /// /// 毛重 /// public Nullable KGs { get; set; } /// /// 尺码 /// public Nullable CBM { get; set; } /// /// 主等级(危险品) /// public string DClass { get; set; } /// /// 国际危险品编号(危险品) /// public string DUNNo { get; set; } /// /// 副等级(危险品) /// public string FuDClass { get; set; } /// /// 副国际危险品编号(危险品) /// public string FuDUNNo { get; set; } /// /// 海污(危险品) /// public string HaiWu { get; set; } /// /// 温度(冻柜) /// public string TempSet { get; set; } /// /// 通风(冻柜) /// public string Reeferf { get; set; } /// /// 湿度(冻柜) /// public string Humidity { get; set; } /// /// 货描 /// public string GoodsDescription { get; set; } /// /// 船公司代码 /// public string CarrierCode { get; set; } /// /// 箱信息列表 /// public List ContaList { get; set; } } /// /// 箱信息 /// public class TaskMessageCtnInfo { /// /// 集装箱箱型代码 /// public string ContaType { get; set; } /// /// 集装箱箱型名称 /// public string ContaTypeName { get; set; } /// /// 集装箱箱号 /// public string ContaNo { get; set; } /// /// 铅封号 /// public string SealNo { get; set; } /// /// 包装 /// public string KindPKGs { get; set; } /// /// 皮重 /// public string TareWeight { get; set; } /// /// 件数 /// public Int32 PKGs { get; set; } /// /// 毛重 /// public Nullable KGs { get; set; } /// /// 尺码 /// public Nullable CBM { get; set; } /// /// 箱量 /// public int CtnNum { get; set; } } /// /// 报文表头 /// public class TaskMessageHead : WebAPIHeadBase { } public class WebAPIHeadBase { /// /// 报文惟一主键 /// /// 08dab66c-96a1-4f90-8606-2626e06202ad [Required(ErrorMessage = "必填")] public string GID { get; set; } /// /// 报文类型 BUSI_RULE-业务规则校验 /// /// BUSI_RULE [Required(ErrorMessage = "必填")] public string MessageType { get; set; } /// /// 发送方代码 /// /// CUSTOMER1 [Required(ErrorMessage = "必填")] public string SenderId { get; set; } /// /// 发送方名称 /// /// 企业A [Required(ErrorMessage = "必填")] public string SenderName { get; set; } /// /// 接收方代码 /// /// RulesEngine [Required(ErrorMessage = "必填")] public string ReceiverId { get; set; } /// /// 接收方名称 /// /// 大简云规则引擎 [Required(ErrorMessage = "必填")] public string ReceiverName { get; set; } /// /// 请求方登录TOKEN(可以是真实的登录人TOKEN或者是服务模拟登录人TOKEN) /// /// eyJhbGciOiJSUzI1NiIsImtpZCI6IkQ1RTkxMDI5OUU0RURFNUZEM0EwNTJBMEFDRDUzMUQzIiwidHlwIjoiYXQrand0In0 public string Token { get; set; } /// /// 版本号 默认1.0 /// /// 1.0 [Required(ErrorMessage = "必填")] public string Version { get; set; } = "1.0"; /// /// 请求时间 /// /// 2022-10-10 10:00:00 public string RequestDate { get; set; } /// /// 请求操作类型 /// /// Add [Required(ErrorMessage = "必填")] public string RequestAction { get; set; } = "Add"; } }