using Furion.DistributedIDGenerator; using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ServiceProjectSyncWin { [Tenant("db_master")] [SugarTable("service_status_booking_sync_his")] [Description("用来记录旧服务状态同步日志")] public class ServiceStatusBookingSyncHisInfo { /// /// 主键 /// [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true)] public string PK_ID { get; set; } /// /// 服务状态原ID /// public long ORG_STATUS_ID { get; set; } /// /// 提单号 /// public string MBL_NO { get; set; } /// /// 船名 /// public string VESSEL { get; set; } /// /// 航次号 /// public string VOYNO { get; set; } /// /// 状态代码 /// public string STATUS_SKU_CODE { get; set; } /// /// 状态名称 /// public string STATUS_SKU_NAME { get; set; } /// /// 状态备注 /// public string STATUS_REMARK { get; set; } /// /// 状态值 /// public string STATUS_VAL { get; set; } /// /// 显示顺序号 /// public int SORT_NO { get; set; } /// /// 完成时间 /// public DateTime FINISH_TIME { get; set; } /// /// 完成人 /// public long FINISH_USER_ID { get; set; } /// /// 完成人名称 /// public string FINISH_USER_NAME { get; set; } /// /// 租户ID /// public long TENANT_ID { get; set; } /// /// 租户名称 /// public string TENANT_NAME { get; set; } /// /// 租户ID /// public long BOOKING_ID { get; set; } /// /// 状态 SUCC-成功 FAILURE-失败 /// public string STATUS { get; set; } /// /// 同步完成时间 /// public Nullable SYNC_TIME { get; set; } /// /// 同步结果 /// public string SYNC_RESULT { get; set; } } /// /// 租户表 /// [Tenant("db_master")] [SugarTable("sys_tenant")] [Description("租户表")] public class SysTenant:BaseEntity { /// /// 公司名称 /// [Required, MaxLength(30)] public string Name { get; set; } /// /// 管理员名称 /// [Required, MaxLength(20)] public string AdminName { get; set; } /// /// 主机 /// [MaxLength(100)] public string Host { get; set; } /// /// 电子邮箱 /// [MaxLength(20)] public string Email { get; set; } /// /// 电话 /// [MaxLength(20)] public string Phone { get; set; } /// /// 数据库连接 /// [MaxLength(200)] public string Connection { get; set; } /// /// 架构 /// [MaxLength(50)] public string Schema { get; set; } /// /// 备注 /// [MaxLength(100)] public string Remark { get; set; } /// /// 大简云公司ID /// [MaxLength(50)] public string CompId { get; set; } } /// /// 订舱货物状态 /// [Tenant("db_master")] [SugarTable("booking_goods_status")] [Description("订舱货物状态")] public class BookingGoodsStatus : BaseEntity { /// /// 租户id /// //[SugarColumn(ColumnDescription = "租户id")] public virtual long? TenantId { get; set; } /// /// 主键Id /// [SugarColumn(ColumnDescription = "Id主键", IsPrimaryKey = true)] // 注意是在这里定义你的公共实体 public virtual long Id { get; set; } /// /// 业务id /// public long? bookingId { get; set; } /// /// 货物状态配置ID 雪花id /// public long? ConfigId { get; set; } /// /// 完成时间 /// public DateTime? FinishTime { get; set; } /// /// 完成人 /// public string FinishUser { get; set; } /// /// 完成人ID /// public long? FinishUserId { get; set; } /// /// 是否公开 /// public bool IsPublic { get; set; } /// /// 附加数据 /// public string ExtData { get; set; } /// /// 备注 /// public string Remark { get; set; } } /// /// 订舱货物状态管理 /// [Tenant("db_master")] [SugarTable("booking_goods_status_config")] [Description("订舱货物状态管理")] public class BookingGoodsStatusConfig : BaseEntity { /// /// 租户id /// //[SugarColumn(ColumnDescription = "租户id")] public virtual long? TenantId { get; set; } /// /// 状态名称 /// public string StatusName { get; set; } /// /// 排序号 /// public int Sort { get; set; } /// /// 系统编码 /// public string SystemCode { get; set; } } /// /// 订舱主表 /// [Tenant("db_master")] [SugarTable("booking_order")] [Description("订舱主表")] public class BookingOrder : BaseEntity { /// /// 租户id /// //[SugarColumn(ColumnDescription = "租户id")] public virtual long? TenantId { get; set; } /// /// 第三方系统编号 /// //[Description("第三方系统编号")] public string BSNO { get; set; } /// /// 业务状态 /// //[Description("业务状态")] public string BSSTATUS { get; set; } /// /// 业务状态名称 /// //[Description("业务状态")] public string BSSTATUSNAME { get; set; } /// /// 业务日期 /// //[Description("业务日期")] public DateTime? BSDATE { get; set; } /// /// 主提单号 /// [Description("主提单号")] public string MBLNO { get; set; } /// /// 分提单号 /// [Description("分提单号")] public string HBLNO { get; set; } /// /// 业务编号 /// [Description("业务编号")] public string BOOKINGNO { get; set; } /// /// 合约号 /// [Description("合约号")] public string CONTRACTNO { get; set; } /// /// 客户合同号 /// [Description("客户合同号")] public string SERVICECONTRACTNO { get; set; } /// /// 发货人代码 /// //[Description("发货人代码")] public string SHIPPERID { get; set; } /// /// 收货人代码 /// //[Description("收货人代码")] public string CONSIGNEEID { get; set; } /// /// 通知人代码 /// //[Description("通知人代码")] public string NOTIFYPARTYID { get; set; } /// /// 发货人 /// [Description("发货人")] public string SHIPPER { get; set; } /// /// 收货人 /// [Description("收货人")] public string CONSIGNEE { get; set; } /// /// 通知人 /// [Description("通知人")] public string NOTIFYPARTY { get; set; } /// /// 第二通知人 /// [Description("第二通知人")] public string NOTIFYPARTY2 { get; set; } /// /// 场站代码 /// //[Description("场站代码")] public string YARDID { get; set; } /// /// 场站 /// [Description("场站")] public string YARD { get; set; } /// /// 船舶呼号 /// [Description("船舶呼号")] public string VESSELID { get; set; } /// /// 船名 /// [Description("船名")] public string VESSEL { get; set; } /// /// 海关航次 /// [Description("海关航次")] public string VOYNO { get; set; } /// /// 内部航次 /// [Description("内部航次")] public string VOYNOINNER { get; set; } /// /// 截港日期 /// [Description("截港日期")] public DateTime? CLOSINGDATE { get; set; } /// /// 截单日期 /// [Description("截单日期")] public DateTime? CLOSEDOCDATE { get; set; } /// /// 截VGM时间 /// [Description("截VGM时间")] public DateTime? CLOSEVGMDATE { get; set; } /// /// 收货地代码 /// //[Description("收货地代码")] public string PLACERECEIPTID { get; set; } /// /// 收货地 /// [Description("收货地")] public string PLACERECEIPT { get; set; } /// /// 起运港代码 /// [Description("起运港代码")] public string PORTLOADID { get; set; } /// /// 起运港 /// [Description("装货港")] public string PORTLOAD { get; set; } /// /// 卸货港代码 /// [Description("卸货港代码")] public string PORTDISCHARGEID { get; set; } /// /// 卸货港 /// [Description("卸货港")] public string PORTDISCHARGE { get; set; } /// /// 交货地代码 /// [Description("交货地代码")] public string PLACEDELIVERYID { get; set; } /// /// 交货地 /// [Description("交货地")] public string PLACEDELIVERY { get; set; } /// /// 目的地代码 /// [Description("目的地代码")] public string DESTINATIONID { get; set; } /// /// /// /// 目的地 /// [Description("目的地")] public string DESTINATION { get; set; } /// /// 提单份数 /// [Description("提单份数")] public string NOBILL { get; set; } /// /// 副本提单份数 /// [Description("副本提单份数")] public string COPYNOBILL { get; set; } /// /// 签单方式 /// [Description("签单方式")] public string ISSUETYPE { get; set; } /// /// 签单日期 /// [Description("签单日期")] public DateTime? ISSUEDATE { get; set; } /// /// 签单地点代码 /// [Description("签单地点代码")] public string ISSUEPLACEID { get; set; } /// /// 签单地点 /// [Description("签单地点")] public string ISSUEPLACE { get; set; } /// /// 付费方式 /// [Description("付费方式")] public string BLFRT { get; set; } /// /// 预付地点 /// [Description("预付地点")] public string PREPARDAT { get; set; } /// /// 到付地点 /// [Description("到付地点")] public string PAYABLEAT { get; set; } /// /// 运输条款 /// [Description("运输条款")] public string SERVICE { get; set; } /// /// 唛头 /// [Description("唛头")] public string MARKS { get; set; } /// /// HS代码 /// [Description("HS代码")] public string HSCODE { get; set; } /// /// 货描 /// [Description("货描")] public string DESCRIPTION { get; set; } /// /// 件数 /// [Description("件数")] public int? PKGS { get; set; } /// /// 包装 /// [Description("包装")] public string KINDPKGS { get; set; } /// /// 毛重 /// [Description("重量")] public decimal? KGS { get; set; } /// /// 尺码 /// [Description("尺码")] public decimal? CBM { get; set; } /// /// 件数大写 /// [Description("件数大写")] public string TOTALNO { get; set; } /// /// 箱型箱量 /// [Description("箱型箱量")] public string CNTRTOTAL { get; set; } /// /// 船公司代号 /// [Description("船公司代号")] public string CARRIERID { get; set; } /// /// 船公司 /// [Description("船公司")] public string CARRIER { get; set; } /// /// 货物标识 /// [Description("货物标识")] public string CARGOID { get; set; } /// /// 危险品类别 /// [Description("危险品类别")] public string DCLASS { get; set; } /// /// 危险品编号 /// [Description("危险品编号")] public string DUNNO { get; set; } /// /// 危险品页号 /// [Description("危险品页号")] public string DPAGE { get; set; } /// /// 危险品标签 /// [Description("危险品标签")] public string DLABEL { get; set; } /// /// 危险品联系人 /// [Description("危险品联系人")] public string LINKMAN { get; set; } /// /// 危险品联系电话 /// [Description("危险品联系电话")] public string DTEL { get; set; } /// /// 温度单位 /// [Description("温度单位")] public string TEMPID { get; set; } /// /// 设置温度 /// [Description("设置温度")] public string TEMPSET { get; set; } /// /// 通风度 /// [Description("通风度")] public string REEFERF { get; set; } /// /// 湿度 /// [Description("湿度")] public string HUMIDITY { get; set; } /// /// 最低温度 /// [Description("最低温度")] public string TEMPMIN { get; set; } /// /// 最高温度 /// [Description("最高温度")] public string TEMPMAX { get; set; } /// /// 是否SOC箱 /// [Description("是否SOC箱")] public bool? ISCONTAINERSOC { get; set; } /// /// SO备注 /// [Description("订舱备注")] public string SOREMARK { get; set; } /// /// SI备注 /// [Description("截单备注")] public string SIREMARK { get; set; } /// /// 场站备注 /// [Description("场站备注")] public string YARDREMARK { get; set; } /// /// 公司ID /// //[Description("公司ID")] public string COMPID { get; set; } /// /// 公司名称 /// [Description("公司名称")] public string COMPNAME { get; set; } /// /// 发货人名称 /// [Description("发货人名称")] public string SHIPPERNAME { get; set; } /// /// 发货人地址1 /// [Description("发货人地址1")] public string SHIPPERADDR1 { get; set; } /// /// 发货人地址2 /// [Description("发货人地址2")] public string SHIPPERADDR2 { get; set; } /// /// 发货人地址3 /// [Description("发货人地址3")] public string SHIPPERADDR3 { get; set; } /// /// 发货人城市 /// [Description("发货人城市")] public string SHIPPERCITY { get; set; } /// /// 发货人省份代码 /// [Description("发货人省份代码")] public string SHIPPERPROVINCE { get; set; } /// /// 发货人邮编 /// [Description("发货人邮编")] public string SHIPPERPOSTCODE { get; set; } /// /// 发货人国家代码 /// [Description("发货人国家代码")] public string SHIPPERCOUNTRY { get; set; } /// /// 发货人联系人 /// [Description("发货人联系人")] public string SHIPPERATTN { get; set; } /// /// 发货人电话 /// [Description("发货人电话")] public string SHIPPERTEL { get; set; } /// /// 收货人名称 /// [Description("收货人名称")] public string CONSIGNEENAME { get; set; } /// /// 收货人地址1 /// [Description("收货人地址1")] public string CONSIGNEEADDR1 { get; set; } /// /// 收货人地址2 /// [Description("收货人地址2")] public string CONSIGNEEADDR2 { get; set; } /// /// 收货人地址3 /// [Description("收货人地址3")] public string CONSIGNEEADDR3 { get; set; } /// /// 收货人城市 /// [Description("收货人城市")] public string CONSIGNEECITY { get; set; } /// /// 收货人省份代码 /// [Description("收货人省份代码")] public string CONSIGNEEPROVINCE { get; set; } /// /// 收货人邮编 /// [Description("收货人邮编")] public string CONSIGNEEPOSTCODE { get; set; } /// /// 收货人国家代码 /// [Description("收货人国家代码")] public string CONSIGNEERCOUNTRY { get; set; } /// /// 收货人联系人 /// [Description("收货人联系人")] public string CONSIGNEEATTN { get; set; } /// /// 收货人电话 /// [Description("收货人电话")] public string CONSIGNEETEL { get; set; } /// /// 通知人名称 /// [Description("通知人名称")] public string NOTIFYPARTYNAME { get; set; } /// /// 通知人地址1 /// [Description("通知人地址1")] public string NOTIFYPARTYADDR1 { get; set; } /// /// 通知人地址2 /// [Description("通知人地址2")] public string NOTIFYPARTYADDR2 { get; set; } /// /// 通知人地址3 /// [Description("通知人地址3")] public string NOTIFYPARTYADDR3 { get; set; } /// /// 通知人城市 /// [Description("通知人城市")] public string NOTIFYPARTYCITY { get; set; } /// /// 通知人省份代码 /// [Description("通知人省份代码")] public string NOTIFYPARTYPROVINCE { get; set; } /// /// 通知人邮编 /// [Description("通知人邮编")] public string NOTIFYPARTYPOSTCODE { get; set; } /// /// 通知人国家代码 /// [Description("通知人国家代码")] public string NOTIFYPARTYCOUNTRY { get; set; } /// /// 通知人联系人 /// [Description("通知人联系人")] public string NOTIFYPARTYATTN { get; set; } /// /// 通知人电话 /// [Description("通知人电话")] public string NOTIFYPARTYTEL { get; set; } /// /// PO号 /// [Description("PO号")] public string PONO { get; set; } /// /// 操作id /// public string OPID { get; set; } /// /// 单证id /// public string DOCID { get; set; } /// /// 操作 /// [Description("操作")] public string OP { get; set; } /// /// 单证 /// //[Description("单证")] public string DOC { get; set; } /// /// 销售ID /// public string SALEID { get; set; } /// /// 销售 /// [Description("销售")] public string SALE { get; set; } /// /// 客服ID /// public string CUSTSERVICEID { get; set; } /// /// 客服 /// [Description("客服")] public string CUSTSERVICE { get; set; } /// /// 委托单位 /// [Description("委托单位")] public string CUSTOMERNAME { get; set; } /// /// 订舱代理 /// [Description("订舱代理")] public string FORWARDER { get; set; } /// /// 船代 /// [Description("船代")] public string SHIPAGENCY { get; set; } /// /// 报关行 /// [Description("报关行")] public string CUSTOMSER { get; set; } /// /// 车队 /// [Description("车队")] public string TRUCKER { get; set; } /// /// 国外代理 /// [Description("国外代理")] public string AGENTID { get; set; } /// /// 客户ID /// public long? CUSTOMERID { get; set; } /// /// 订舱代理ID /// public string FORWARDERID { get; set; } /// /// 船代ID /// public string SHIPAGENCYID { get; set; } /// /// 报关行ID /// public string CUSTOMSERID { get; set; } /// /// 车队ID /// public string TRUCKERID { get; set; } /// /// 国外代理名称 /// [Description("国外代理名称")] public string AGENTNAME { get; set; } /// /// 委托方 /// [Description("委托方")] public string WEITUO { get; set; } /// /// 收货人DOOR地址 /// [Description("收货人DOOR地址")] public string CONSIGNEEDOORADDR { get; set; } /// /// 发货人DOOR地址 /// [Description("发货人DOOR地址")] public string SHIPPERDOORADDR { get; set; } /// /// SCAC代码 /// [Description("SCAC代码")] public string SCACCODE { get; set; } /// /// ITN编号 /// [Description("ITN编号")] public string ITNCODE { get; set; } /// /// 预付地点ID /// public string PREPARDATID { get; set; } /// /// 到付地点ID /// public string PAYABLEATID { get; set; } /// /// 订舱编号 /// [Description("订舱编号")] public string CUSTNO { get; set; } /// /// 中转港代码 /// [Description("中转港代码")] public string TRANSPORTID { get; set; } /// /// 中转港 /// [Description("中转港")] public string TRANSPORT { get; set; } /// /// 第三付款地 /// [Description("第三付款地")] public string THIRDPAYADDR { get; set; } /// /// 场站联系人 /// [Description("场站联系人")] public string YARDCONTRACT { get; set; } /// /// 场站联系人电话 /// [Description("场站联系人电话")] public string YARDCONTRACTTEL { get; set; } /// /// 场站联系人邮箱 /// [Description("场站联系人邮箱")] public string YARDCONTRACTEMAIL { get; set; } /// /// 费用自结 /// [Description("费用自结")] public bool? FEESELF { get; set; } /// /// 航线代码(船公司) /// [Description("航线代码")] public string LANECODE { get; set; } /// /// 航线名称(船公司) /// [Description("船司航线")] public string LANENAME { get; set; } /// /// 付款方 /// [Description("付款方")] public string FREIGHTPAYER { get; set; } /// /// 品名代码 /// [Description("品名代码")] public string GOODSCODE { get; set; } /// /// 品名 /// [Description("品名")] public string GOODSNAME { get; set; } /// /// 租户名称 /// //[Description("租户名称")] public string TenantName { get; set; } /// /// 主单ID /// //[Description("主单ID")] public long? ParentId { get; set; } /// /// 件数合计 /// [Description("件数合计")] public string PKGSTOTAL { get; set; } /// /// 毛重合计 /// [Description("毛重合计")] public string KGSTOTAL { get; set; } /// /// 尺寸合计 /// [Description("尺寸合计")] public string CBMTOTAL { get; set; } /// /// 航线操作ID /// public string ROUTEID { get; set; } /// /// 航线操作 /// [Description("航线操作")] public string ROUTE { get; set; } /// /// 仓库 /// [Description("仓库")] public string Warehouse { get; set; } /// /// 仓库ID /// public string WarehouseID { get; set; } /// /// ep号(作废,使用真提单号字段) /// [Description("ep号")] public string EPCode { get; set; } /// /// 航线 /// [Description("航线")] public string LineName { get; set; } /// /// 单证备注 /// [Description("单证备注")] public string DZRemark { get; set; } /// /// 操作备注 /// [Description("操作备注")] public string CZRemark { get; set; } /// /// 真提单号 /// [Description("真提单号")] public string TMBLNO { get; set; } /// /// 装运方式 /// [Description("装运方式")] public string ShippingMethod { get; set; } /// /// 航线管理 /// [Description("航线管理")] public string LineManage { get; set; } /// /// 航线管理ID /// public string LineManageID { get; set; } /// /// 最后下货纸比对状态 NO_DIFF-无异常;DIFF-有差异;NO_YARD-无场站数据;EXPT-异常 /// [Description("下货纸比对")] public string LstShipOrderCompareRlt { get; set; } /// /// 最后下货纸比对时间 /// public Nullable LstShipOrderCompareDate { get; set; } /// /// 最后下货纸比对批次号 /// public string LstShipOrderCompareId { get; set; } /// /// 最后下货纸比对状态 NO_DIFF-无异常;DIFF-有差异;NO_YARD-无场站数据;EXPT-异常 /// public string LstShipOrderCompareRltName { get; set; } /// /// 最后下货纸比对方式 MANUAL-手动 AUTO-自动 /// public string LstShipOrderCompareMode { get; set; } /// /// 是否占舱 /// [Description("是否占舱")] public string ZhanCangFlag { get; set; } /// /// 业务来源代码 /// public string SourceCode { get; set; } /// /// 业务来源名称 /// public string SourceName { get; set; } #region 船舶日期相关 /// /// 开船日期(船司提供的开船日期,操作填写) /// [Description("开船日期")] public DateTime? ETD { get; set; } /// /// 运港通ETD(爬取的ETD) /// [Description("ETD")] public DateTime? YgtETD { get; set; } /// /// 实际开船日期 /// [Description("实际开船日期")] public DateTime? ATD { get; set; } /// /// 预计到港日期(目的港) /// [Description("目的港ETA")] public DateTime? ETA { get; set; } /// /// 起始港预抵日期 /// [Description("预抵日期")] public DateTime? StartETA { get; set; } /// /// 起始港实际抵港 /// [Description("实际抵港")] public DateTime? StartATA { get; set; } /// /// 中转预抵 /// [Description("预抵日期")] public DateTime? MiddleETA { get; set; } /// /// 中转预计离港 /// [Description("中转预计离港")] public DateTime? MiddleETD { get; set; } /// /// 中转实际到港 /// [Description("中转实际到港")] public DateTime? MiddleATA { get; set; } /// /// 中转实际离港 /// [Description("中转实际离港")] public DateTime? MiddleATD { get; set; } /// /// 实际到港(目的港) /// [Description("实际到港")] public DateTime? ATA { get; set; } #endregion /// /// 申请箱使 /// [Description("申请箱使")] public string ShenQingXiangShi { get; set; } /// /// 三方付费 /// public string ThirdPay { get; set; } /// /// 三方付费Code /// public string ThirdPayCode { get; set; } /// /// 境外代理 /// public string ForeignAgent { get; set; } /// /// 版本号 /// public string VERSION { get; set; } /// /// 箱长 /// public decimal CtrnLength { get; set; } /// /// 箱宽 /// public decimal CtrnWidth { get; set; } /// /// 箱高 /// public decimal CtrnHeight { get; set; } /// /// 是否订阅运踪 0 没有订阅 1 订阅起运港 2 订阅目的港 3 订阅起运港目的港 /// public string IsBookingYZ { get; set; } /// /// 最后格式单比对状态 NO_DIFF-无异常;DIFF-有差异; /// public string LstDraftCompareRlt { get; set; } /// /// 最后格式单比对时间 /// public Nullable LstDraftCompareDate { get; set; } } public class BaseEntity { /// /// 主键Id /// [SugarColumn(ColumnDescription = "Id主键", IsPrimaryKey = true)] // 注意是在这里定义你的公共实体 public virtual long Id { get; set; } /// /// 创建时间 /// //[SugarColumn(ColumnDescription = "创建时间")] public virtual DateTime? CreatedTime { get; set; } /// /// 更新时间 /// //[SugarColumn(ColumnDescription = "更新时间")] public virtual DateTime? UpdatedTime { get; set; } /// /// 创建者Id /// //[SugarColumn(ColumnDescription = "创建者Id")] public virtual long? CreatedUserId { get; set; } /// /// 创建者名称 /// [MaxLength(20)] //[SugarColumn(ColumnDescription = "创建者名称")] public virtual string CreatedUserName { get; set; } /// /// 修改者Id /// //[SugarColumn(ColumnDescription = "修改者Id")] public virtual long? UpdatedUserId { get; set; } /// /// 修改者名称 /// [MaxLength(20)] //[SugarColumn(ColumnDescription = "修改者名称")] public virtual string UpdatedUserName { get; set; } /// /// 软删除 /// //[SugarColumn(ColumnDescription = "软删除")] public virtual bool IsDeleted { get; set; } = false; } /// /// 追踪报文 /// public class TrackingMessageInfo { /// /// 表头 /// public TrackingMessageHeadInfo Head { get; set; } /// /// 表体 /// public TrackingMessageMainInfo Main { get; set; } } public class TrackingMessageHeadInfo { /// /// 报文惟一主键 /// ///08dabd4e-dcc3-471a-8031-cf066ed0a8f4 public string GID { get; set; } = IDGen.NextID().ToString(); /// /// 报文类型 TASK-任务 /// /// TASK [Required(ErrorMessage = "必填")] public string MessageType { get; set; } /// /// 发送方代码 /// /// MAIL_PARSE [Required(ErrorMessage = "必填")] public string SenderId { get; set; } /// /// 发送方名称 /// /// 邮件解析 [Required(ErrorMessage = "必填")] public string SenderName { get; set; } /// /// 接收方代码 /// /// TaskManage [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-12-23 14:29:11 public string RequestDate { get; set; } /// /// 请求授权KEY /// /// testkey public string SenderKey { get; set; } /// /// 请求操作类型 AddOrModify-新增或更新 Cancel-取消 /// /// Add [Required(ErrorMessage = "必填")] public string RequestAction { get; set; } = "AddOrModify"; } public class TrackingMessageMainInfo { /// /// 业务系统代码 /// [Required(ErrorMessage = "必填")] public string BusiSystemCode { get; set; } /// /// 业务主键 /// public string BusiId { get; set; } /// /// 提单号 /// public string MBlNo { get; set; } /// /// 船名航次 /// public string VesselVoyno { get; set; } /// /// 订舱编号 /// public string OrderNo { get; set; } /// /// 操作触发人用户ID /// public string OperUserId { get; set; } /// /// 操作触发人用户名称 /// public string OperUserName { get; set; } /// /// 操作触发人租户ID /// public long OperTenantId { get; set; } /// /// 操作触发人租户名称 /// public string OperTenantName { get; set; } /// /// 状态操作类型 MANUAL-手工 AUTO-自动 /// public TrackingOperTypeEnum OpertType { get; set; } /// /// 推送类型 /// public TrackingPushTypeEnum PushType { get; set; } /// /// 来源类型 /// public TrackingSourceTypeEnum SourceType { get; set; } /// /// 服务项目列表 /// public List ProjectList { get; set; } /// /// 服务状态列表 /// public List StatusList { get; set; } } public enum TrackingOperTypeEnum { /// /// 自动 /// [Description("自动")] AUTO, /// /// 手工 /// [Description("手工")] MANUAL } public enum TrackingPushTypeEnum { /// /// 服务项目 /// [Description("服务项目")] Project, /// /// 服务状态 /// [Description("服务状态")] Status } public enum TrackingSourceTypeEnum { /// /// 人工 /// [Description("人工")] MANUAL, /// /// 自动 /// [Description("自动")] AUTO } /// /// 服务状态详情 /// public class TrackingMessageMainStatusInfo { /// /// 服务项目代码 /// public string ServiceProjectCode { get; set; } /// /// 服务项目名称 /// public string ServiceProjectName { get; set; } /// /// 状态代码 /// public string StatusCode { get; set; } /// /// 状态名称 /// public string StatusName { get; set; } /// /// 状态产生时间 /// public Nullable StatusDate { get; set; } /// /// 状态产生值 /// public string StatusVal { get; set; } /// /// 状态备注 /// public string Remark { get; set; } } /// /// 服务详情 /// public class TrackingMessageMainProjectInfo { /// /// 服务项目代码 /// public string ServiceProjectCode { get; set; } /// /// 服务项目名称 /// public string ServiceProjectName { get; set; } } /// /// 回执 /// public class TaskManageOrderResultDto { /// /// 是否成功 true=成功 false=失败 /// public bool succ { get; set; } = false; /// /// 状态 0-成功 /// public int status { get; set; } = 0; /// /// 返回消息 /// public string msg { get; set; } /// /// 返回校验明细 /// public object rows { get; set; } /// /// 返回单个对象 /// public object ext { get; set; } /// /// 返回单个对象 /// public object ext2 { get; set; } /// /// 是否超时 true-超时 false-未超时 /// public bool isTimeout { get; set; } = false; /// /// 执行日期 /// public string executeTime { get; set; } /// /// 批量执行统计详情 /// public string batchTotal { get; set; } /// /// 业务单号 /// public string bno { get; set; } } public class CommonRlt { public bool success { get; set; } public int code { get; set; } public string message { get; set; } public object data { get; set; } public long timestamp { get; set; } } }