You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookingHeChuan/ServiceProjectSyncWin/Entities/SyncEntities.cs

1678 lines
46 KiB
C#

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