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.

637 lines
25 KiB
C#

using DS.Module.Core.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Entity
{
/// <summary>
/// 预订舱记录表
/// </summary>
[SqlSugar.SugarTable("op_sea_space_booking_order", "预订舱记录表")]
public class SpaceBookingOrder : BaseModel<long>
{
/// <summary>
/// 订舱id
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "订舱id", IsNullable = true)]
public Nullable<long> BookingId { get; set; }
/// <summary>
/// 船公司代号
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "船公司代号", Length = 20, IsNullable = true)]
public string CarrierCode { get; set; }
/// <summary>
/// 船公司名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "船公司名称", Length = 20, IsNullable = true)]
public string CarrierName { get; set; }
/// <summary>
/// 合约号主键
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "合约号主键", IsNullable = true)]
public Nullable<long> PriceReferenceId { get; set; }
/// <summary>
/// 合约号
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "合约号", Length = 64, IsNullable = true)]
public string PriceReference { get; set; }
/// <summary>
/// 合约号名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "合约号名称", Length = 100, IsNullable = true)]
public string PriceReferenceName { get; set; }
/// <summary>
/// 产品类型
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "产品类型", Length = 64, IsNullable = true)]
public string ProductCode { get; set; }
/// <summary>
/// 请求类别
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "请求类别", Length = 64, IsNullable = true)]
public string Sender { get; set; }
/// <summary>
/// 订舱公司名称(英文全称)
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "订舱公司名称(英文全称)", Length = 200, IsNullable = true)]
public string BookedByCompanyName { get; set; }
/// <summary>
/// 订舱公司代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "订舱公司名称(英文全称)", Length = 200, IsNullable = true)]
public string BookedByCompanyPartyCode { get; set; }
/// <summary>
/// 订舱公司联系人名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "订舱公司联系人名称", Length = 200, IsNullable = true)]
public string BookedByCompanyContact { get; set; }
/// <summary>
/// 订舱公司联系人邮箱
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "订舱公司联系人邮箱", Length = 100, IsNullable = true)]
public string BookedByCompanyContactEmail{ get; set; }
/// <summary>
/// 当前订舱公司是否也是合约方 1-标识合约信息跟订舱公司一致0-标识有单独的合约方
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "当前订舱公司是否也是合约方 1-标识合约信息跟订舱公司一致0-标识有单独的合约方", Length = 100, IsNullable = true, DefaultValue = "0")]
public bool IsBookingPartOwnPrice { get; set; } = false;
/// <summary>
/// 价格所有者公司名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "价格所有者公司名称", Length = 200, IsNullable = true)]
public string PriceOwnerCompanyName { get; set; }
/// <summary>
/// 价格所有者代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "价格所有者代码", Length = 64, IsNullable = true)]
public string PriceOwnerCompanyPartyCode { get; set; }
/// <summary>
/// 价格所有者公司联系人名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "价格所有者公司联系人名称", Length = 200, IsNullable = true)]
public string PriceOwnerCompanyContact { get; set; }
/// <summary>
/// 价格所有者公司联系人邮箱
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "价格所有者公司联系人邮箱", Length = 100, IsNullable = true)]
public string PriceOwnerCompanyContactEmail { get; set; }
/// <summary>
/// 价格所有者合约号主键
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "价格所有者合约号主键", IsNullable = true)]
public Nullable<long> PriceOwnerReferenceId { get; set; }
/// <summary>
/// 价格所有者合约号
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "价格所有者合约号", Length = 64, IsNullable = true)]
public string PriceOwnerReference { get; set; }
/// <summary>
/// 价格所有者合约号名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "价格所有者合约号名称", Length = 100, IsNullable = true)]
public string PriceOwnerReferenceName { get; set; }
/// <summary>
/// 承运人代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "承运人代码", Length = 64, IsNullable = true)]
public string APICarrierCode { get; set; }
/// <summary>
/// 最早起运日期
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "最早起运日期", IsNullable = true)]
public Nullable<DateTime> EarliestDepartureDate{ get; set; }
/// <summary>
/// 出口服务类型
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "出口服务类型", Length = 10, IsNullable = true)]
public string ExportServiceMode { get; set; }
/// <summary>
/// 进口服务类型
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "进口服务类型", Length = 10, IsNullable = true)]
public string ImportServiceMode { get; set; }
/// <summary>
/// 收货地城市英文名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "收货地城市英文名称", Length = 120, IsNullable = true)]
public string PlaceReceiptCity { get; set; }
/// <summary>
/// 收货地UN地点代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "收货地UN地点代码", Length = 10, IsNullable = true)]
public string PlaceReceiptUnlocCode { get; set; }
/// <summary>
/// 收货地国家代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "收货地国家代码", Length = 3, IsNullable = true)]
public string PlaceReceiptCountryCode { get; set; }
/// <summary>
/// 收货地代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "收货地代码", Length = 5, IsNullable = true)]
public string PlaceReceiptId { get; set; }
/// <summary>
/// 收货地
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "收货地", Length = 120, IsNullable = true)]
public string PlaceReceipt { get; set; }
/// <summary>
/// 交货地城市英文名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "交货地城市英文名称", Length = 120, IsNullable = true)]
public string PlaceDeliveryCity { get; set; }
/// <summary>
/// 交货地UN地点代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "交货地UN地点代码", Length = 10, IsNullable = true)]
public string PlaceDeliveryUnlocCode { get; set; }
/// <summary>
/// 交货地国家代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "交货地国家代码", Length = 3, IsNullable = true)]
public string PlaceDeliveryCountryCode { get; set; }
/// <summary>
/// 预计开船日期
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "预计开船日期", IsNullable = true)]
public Nullable<DateTime> ETD { get; set; }
/// <summary>
/// 预计到港日期
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "预计到港日期", IsNullable = true)]
public Nullable<DateTime> ETA { get; set; }
/// <summary>
/// 预计航行天数
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "预计航行天数", IsNullable = true)]
public Nullable<int> EstSailingDays { get; set; }
/// <summary>
/// 船名
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "船名", Length = 30, IsNullable = true)]
public string Vessel { get; set; }
/// <summary>
/// 船名代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "船名代码", Length = 30, IsNullable = true)]
public string VesselCode { get; set; }
/// <summary>
/// 航次号
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "航次号", Length = 20, IsNullable = true)]
public string Voyno { get; set; }
/// <summary>
/// 运输方式
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "运输方式", Length = 20, IsNullable = true)]
public string TransportMode { get; set; }
/// <summary>
/// 重量
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "重量", IsNullable = true)]
public Nullable<int> TotalCargoWeight { get; set; }
/// <summary>
/// 是否冷冻处理 1-是0-否
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "是否冷冻处理 1-是0-否", IsNullable = true, DefaultValue = "0")]
public bool IsReefer { get; set; }
/// <summary>
/// 温度探头的数量
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "温度探头的数量", IsNullable = true)]
public Nullable<int> NoOfProbes { get; set; }
/// <summary>
/// 设置温度
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "设置温度", Length = 5, IsNullable = true)]
public string TempSet { get; set; }
/// <summary>
/// 温度单位
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "温度单位", Length = 1, IsNullable = true)]
public string TempId { get; set; }
/// <summary>
/// 通风度
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "通风度", IsNullable = true)]
public Nullable<int> Vent { get; set; }
/// <summary>
/// 湿度
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "湿度", IsNullable = true)]
public Nullable<int> Humidity { get; set; }
/// <summary>
/// 货物标识
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "货物标识", Length = 1, IsNullable = true)]
public string CargoId { get; set; }
/// <summary>
/// 货物代码类型
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "货物代码类型", Length = 30, IsNullable = true)]
public string CommodityCodeType { get; set; }
/// <summary>
/// 品名代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "品名代码", Length = 30, IsNullable = true)]
public string GoodsCode { get; set; }
/// <summary>
/// 品名
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "品名", Length = 120, IsNullable = true)]
public string GoodsName { get; set; }
/// <summary>
/// 货物类型
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "货物类型", Length = 30, IsNullable = true)]
public string CargoType { get; set; }
/// <summary>
/// 托运人自己的集装箱
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "托运人自己的集装箱", IsNullable = true, DefaultValue = "0")]
public bool IsShipperOwner { get; set; } = false;
/// <summary>
/// 进口退货集装箱或者其他三角集运
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "进口退货集装箱或者其他三角集运", IsNullable = true, DefaultValue = "0")]
public bool IsImportReturned { get; set; } = false;
/// <summary>
/// 交货地代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "交货地代码", Length = 5, IsNullable = true)]
public string PlaceDeliveryId { get; set; }
/// <summary>
/// 交货地
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "交货地", Length = 120, IsNullable = true)]
public string PlaceDelivery { get; set; }
/// <summary>
/// 装货港代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "装货港代码", Length = 5, IsNullable = true)]
public string PortloadId { get; set; }
/// <summary>
/// 装货港
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "装货港", Length = 120, IsNullable = true)]
public string Portload { get; set; }
/// <summary>
/// 卸货港代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "卸货港代码", Length = 5, IsNullable = true)]
public string PortDischargeId { get; set; }
/// <summary>
/// 卸货港
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "卸货港", Length = 120, IsNullable = true)]
public string PortDischarge { get; set; }
/// <summary>
/// 航线代码(船公司)
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "航线代码(船公司)", Length = 40, IsNullable = true)]
public string LaneCode { get; set; }
/// <summary>
/// 航线名称(船公司)
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "航线名称(船公司)", Length = 100, IsNullable = true)]
public string LaneName { get; set; }
/// <summary>
/// 承运方式 DIRECT_SHIP-直达TRANSFER_SHIP-中转
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "承运方式 DIRECT_SHIP-直达TRANSFER_SHIP-中转", Length = 20, IsNullable = true)]
public string CarriageType { get; set; }
/// <summary>
/// 承运方式名称 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "承运方式名称 DIRECT_SHIP-直达TRANSFER_SHIP-中转", Length = 40, IsNullable = true)]
public string CarriageTypeName { get; set; }
/// <summary>
/// 订舱方式 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "订舱方式 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱", Length = 20, IsNullable = true)]
public string BookingSlotType { get; set; }
/// <summary>
/// 订舱方式名称 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "订舱方式名称 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱", Length = 40, IsNullable = true)]
public string BookingSlotTypeName { get; set; }
/// <summary>
/// 签单方式 ORIGINAL-正本TELEX-电放SEAWAY BILL-海运单;
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "签单方式 ORIGINAL-正本TELEX-电放SEAWAY BILL-海运单;", Length = 20, IsNullable = true)]
public string IssueType { get; set; }
/// <summary>
/// 箱型箱量
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "箱型箱量", Length = 200, IsNullable = true)]
public string CtnStat { get; set; }
/// <summary>
/// 所在周数
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "所在周数", Length = 10, IsNullable = true)]
public string WeekAt { get; set; }
/// <summary>
/// 发送时间
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "发送时间", IsNullable = true)]
public Nullable<DateTime> SendTime { get; set; }
/// <summary>
/// 是否定时任务 1-是 0-否
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "是否定时任务 1-是 0-否", IsNullable = true, DefaultValue = "0")]
public bool IsJob { get; set; } = false;
/// <summary>
/// 定时任务启动时间
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "发送时间", IsNullable = true)]
public Nullable<DateTime> JobTime { get; set; }
/// <summary>
/// 危险品类别
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "危险品类别", Length = 5, IsNullable = true)]
public string DClass { get; set; }
/// <summary>
/// 危险品编号
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "危险品编号", Length = 16, IsNullable = true)]
public string DUnno { get; set; }
/// <summary>
/// 危险品页号
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "危险品页号", Length = 7, IsNullable = true)]
public string DPage { get; set; }
/// <summary>
/// 危险品标签
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "危险品标签", Length = 32, IsNullable = true)]
public string DLabel { get; set; }
/// <summary>
/// 危险品联系人
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "危险品联系人", Length = 35, IsNullable = true)]
public string LinkMan { get; set; }
/// <summary>
/// 预计运输天数
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "预计运输天数", IsNullable = true)]
public Nullable<int> TransportEstDay { get; set; }
/// <summary>
/// 订舱回执ID
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "订舱回执ID", Length = 64, IsNullable = true)]
public string RequestAcknowledgementId { get; set; }
/// <summary>
/// 订舱回执预定号
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "订舱回执预定号", Length = 64, IsNullable = true)]
public string BookingReference { get; set; }
/// <summary>
/// 状态 SUCC-成功FAILURE-失败
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "状态 SUCC-成功FAILURE-失败", Length = 20, IsNullable = true)]
public string Status { get; set; }
/// <summary>
/// 状态名称 SUCC-成功FAILURE-失败
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "状态名称 SUCC-成功FAILURE-失败", Length = 64, IsNullable = true)]
public string StatusName { get; set; }
/// <summary>
/// 发送备注
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "状态名称 SUCC-成功FAILURE-失败", Length = 500, IsNullable = true)]
public string Notes { get; set; }
/// <summary>
/// 是否已有BC
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "是否已有BC", IsNullable = true, DefaultValue = "0")]
public bool IsRecvBC { get; set; } = false;
/// <summary>
/// 最后BC接收时间
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "最后BC接收时间", IsNullable = true)]
public Nullable<DateTime> LstRecvBCDate { get; set; }
/// <summary>
/// 是否已有BookingCancellation
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "是否已有BookingCancellation", IsNullable = true, DefaultValue = "0")]
public bool IsRecvBKCancel { get; set; }
/// <summary>
/// 最后BookingCancellation接收时间
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "最后BookingCancellation接收时间", IsNullable = true)]
public Nullable<DateTime> LstRecvBKCancelDate { get; set; }
/// <summary>
/// 船期ID
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "船期ID", Length = 15, IsNullable = true)]
public string CarrierProductId { get; set; }
/// <summary>
/// 是否不使用船期表订舱
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "是否不使用船期表订舱", IsNullable = true, DefaultValue = "0")]
public bool IsSendNoSchedule { get; set; } = false;
/// <summary>
/// 收货地国家名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "收货地国家名称", Length = 64, IsNullable = true)]
public string PlaceReceiptCountryName { get; set; }
/// <summary>
/// 收货地行政名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "收货地行政名称", Length = 64, IsNullable = true)]
public string PlaceReceiptRegionName { get; set; }
/// <summary>
/// 交货地国家名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "交货地国家名称", Length = 64, IsNullable = true)]
public string PlaceDeliveryCountryName { get; set; }
/// <summary>
/// 交货地行政名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "交货地行政名称", Length = 64, IsNullable = true)]
public string PlaceDeliveryRegionName { get; set; }
/// <summary>
/// 订舱通道类型
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "订舱通道类型", Length = 20, IsNullable = true)]
public string BookingChannelType { get; set; }
/// <summary>
/// 订舱通道类型名称
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "订舱通道类型名称", Length = 50, IsNullable = true)]
public string BookingChannelTypeName { get; set; }
/// <summary>
/// 价格IDSPOT专用对应单个船期
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "价格IDSPOT专用对应单个船期", Length = 50, IsNullable = true)]
public string PriceId { get; set; }
/// <summary>
/// 船期金额
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "船期金额", Length = 19, DecimalDigits = 2, IsNullable = true)]
public Nullable<decimal> ShipRateTotalAmount { get; set; }
/// <summary>
/// 船期币别
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "船期币别", Length = 10, IsNullable = true)]
public string ShipRateTotalCurrency { get; set; }
/// <summary>
/// 船期PID
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "船期PID", IsNullable = true)]
public Nullable<long> ShipRatePId { get; set; }
/// <summary>
/// 船期MD5
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "船期MD5", Length = 64, IsNullable = true)]
public string ShipRateMD5 { get; set; }
/// <summary>
/// 收货地定位ID
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "收货地定位ID", Length = 50, IsNullable = true)]
public string PlaceReceiptGeoId { get; set; }
/// <summary>
/// 交货地定位ID
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "交货地定位ID", Length = 50, IsNullable = true)]
public string PlaceDeliveryGeoId { get; set; }
4 months ago
/// <summary>
/// 船公司主键
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "船公司主键", IsNullable = true)]
public Nullable<long> CarrierId { get; set; }
/// <summary>
/// 承运人代码
/// </summary>
[SqlSugar.SugarColumn(ColumnDescription = "承运人代码", Length = 20, IsNullable = true)]
public string vesselCarrierCode { get; set; }
}
}