新增预订舱dto和接口

usertest
jianghaiqing 5 months ago
parent 3308bf0bd1
commit 4404523b6a

@ -0,0 +1,486 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 预订舱台账
/// </summary>
public class BookingDeliveryRecordPageDto
{
/// <summary>
/// ID
/// </summary>
public long id { get; set; }
/// <summary>
/// 订舱ID
/// </summary>
public long bookingId { get; set; }
/// <summary>
/// 船公司代号
/// </summary>
public string carrierId { get; set; }
/// <summary>
/// 船公司
/// </summary>
public string carrier { get; set; }
/// <summary>
/// 合约号
/// </summary>
public string priceReference { get; set; }
/// <summary>
/// 产品类型
/// </summary>
public string productCode { get; set; }
/// <summary>
/// 请求类别
/// </summary>
public string sender { get; set; }
/// <summary>
/// 订舱公司名称(英文全称)
/// </summary>
public string bookedByCompanyName { get; set; }
/// <summary>
/// 订舱公司代码
/// </summary>
public string bookedByCompanyPartyCode { get; set; }
/// <summary>
/// 订舱公司联系人名称
/// </summary>
public string bookedByCompanyContact { get; set; }
/// <summary>
/// 订舱公司联系人邮箱
/// </summary>
public string bookedByCompanyEmail { get; set; }
/// <summary>
/// 当前订舱公司是否也是合约方 1-标识合约信息跟订舱公司一致0-标识有单独的合约方
/// </summary>
public bool isbookingPartOwnPrice { get; set; }
/// <summary>
/// 价格所有者公司名称
/// </summary>
public string priceOwnerCompanyName { get; set; }
/// <summary>
/// 价格所有者代码
/// </summary>
public string priceOwnerCompanyPartyCode { get; set; }
/// <summary>
/// 价格所有者公司联系人名称
/// </summary>
public string priceOwnerCompanyContact { get; set; }
/// <summary>
/// 价格所有者公司联系人邮箱
/// </summary>
public string priceOwnerCompanyContactEmail { get; set; }
/// <summary>
/// 承运人代码
/// </summary>
public string carrierCode { get; set; }
/// <summary>
/// 最早起运日期
/// </summary>
public Nullable<DateTime> earliestDepartureDate { get; set; }
/// <summary>
/// 出口服务类型
/// </summary>
public string exportServiceMode { get; set; }
/// <summary>
/// 进口服务类型
/// </summary>
public string importServiceMode { get; set; }
/// <summary>
/// 收货地城市英文名称
/// </summary>
public string placeReceiptCity { get; set; }
/// <summary>
/// 收货地UN地点代码
/// </summary>
public string placeReceiptUnlocCode { get; set; }
/// <summary>
/// 收货地代码
/// </summary>
public string placeReceiptId { get; set; }
/// <summary>
/// 收货地
/// </summary>
public string placeReceipt { get; set; }
/// <summary>
/// 交货地城市英文名称
/// </summary>
public string placeDeliveryCity { get; set; }
/// <summary>
/// 交货地UN地点代码
/// </summary>
public string placeDeliveryUnlocCode { get; set; }
/// <summary>
/// 预计开船日期
/// </summary>
public Nullable<DateTime> etd { get; set; }
/// <summary>
/// 预计到港日期
/// </summary>
public Nullable<DateTime> atd { get; set; }
/// <summary>
/// 船名
/// </summary>
public string vessel { get; set; }
/// <summary>
/// 船名代码
/// </summary>
public string vesselCode { get; set; }
/// <summary>
/// 航次号
/// </summary>
public string voyno { get; set; }
/// <summary>
/// 运输方式
/// </summary>
public string transportMode { get; set; }
/// <summary>
/// 重量
/// </summary>
public Nullable<int> totalCargoWeight { get; set; }
/// <summary>
/// 是否冷冻处理 1-是0-否
/// </summary>
public bool isReefer { get; set; }
/// <summary>
/// 温度探头的数量
/// </summary>
public Nullable<int> noOfProbes { get; set; }
/// <summary>
/// 设置温度
/// </summary>
public string tempSet { get; set; }
/// <summary>
/// 温度单位
/// </summary>
public string tempId { get; set; }
/// <summary>
/// 通风度
/// </summary>
public Nullable<int> vent { get; set; }
/// <summary>
/// 湿度
/// </summary>
public Nullable<int> humidity { get; set; }
/// <summary>
/// 货物标识
/// </summary>
public string cargoId { get; set; }
/// <summary>
/// 货物代码类型
/// </summary>
public string commodityCodeType { get; set; }
/// <summary>
/// 品名代码
/// </summary>
public string goodsCode { get; set; }
/// <summary>
/// 品名
/// </summary>
public string goodsName { get; set; }
/// <summary>
/// 货物类型
/// </summary>
public string cargoType { get; set; }
/// <summary>
/// 交货地代码
/// </summary>
public string placeDeliveryId { get; set; }
/// <summary>
/// 交货地
/// </summary>
public string placeDelivery { get; set; }
/// <summary>
/// 装货港代码
/// </summary>
public string portLoadId { get; set; }
/// <summary>
/// 装货港
/// </summary>
public string portLoad { get; set; }
/// <summary>
/// 卸货港代码
/// </summary>
public string portDischargeId { get; set; }
/// <summary>
/// 卸货港
/// </summary>
public string portDischarge { get; set; }
/// <summary>
/// 航线代码(船公司)
/// </summary>
public string laneCode { get; set; }
/// <summary>
/// 航线名称(船公司)
/// </summary>
public string laneName { get; set; }
/// <summary>
/// 承运方式 DIRECT_SHIP-直达TRANSFER_SHIP-中转
/// </summary>
public string carriageType { get; set; }
/// <summary>
/// 承运方式名称 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱
/// </summary>
public string carriageTypeName { get; set; }
/// <summary>
/// 订舱方式 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱
/// </summary>
public string bookingSlotType { get; set; }
/// <summary>
/// 订舱方式名称 CONTRACT_ORDER-合约订舱SPOT_ORDER-SPOT订舱
/// </summary>
public string bookingSlotTypeName { get; set; }
/// <summary>
/// 签单方式 ORIGINAL-正本TELEX-电放SEAWAY BILL-海运单;
/// </summary>
public string issueType { get; set; }
/// <summary>
/// 箱型箱量
/// </summary>
public string ctnStat { get; set; }
/// <summary>
/// 所在周数
/// </summary>
public string weekAt { get; set; }
/// <summary>
/// 危险品类别
/// </summary>
public string dClass { get; set; }
/// <summary>
/// 危险品编号
/// </summary>
public string duNo { get; set; }
/// <summary>
/// 危险品页号
/// </summary>
public string dPage { get; set; }
/// <summary>
/// 危险品标签
/// </summary>
public string dLabel { get; set; }
/// <summary>
/// 危险品联系人
/// </summary>
public string linkMan { get; set; }
/// <summary>
/// 预计运输天数
/// </summary>
public Nullable<int> transportEstDay { get; set; }
/// <summary>
/// 订舱回执ID
/// </summary>
public string requestAcknowledgementId { get; set; }
/// <summary>
/// 订舱回执预定号
/// </summary>
public string bookingReference { get; set; }
/// <summary>
/// 状态 SUCC-成功FAILURE-失败
/// </summary>
public string status { get; set; }
/// <summary>
/// 状态名称 SUCC-成功FAILURE-失败
/// </summary>
public string statusName { get; set; }
/// <summary>
/// 发送备注
/// </summary>
public string notes { get; set; }
/// <summary>
/// 发送时间
/// </summary>
public Nullable<DateTime> sendTime { get; set; }
/// <summary>
/// 是否定时任务
/// </summary>
public bool isJob { get; set; }
/// <summary>
/// 定时时间
/// </summary>
public Nullable<DateTime> jobTime { get; set; }
/// <summary>
/// 合约号主键
/// </summary>
public Nullable<long> priceReferenceId { get; set; }
/// <summary>
/// 合约号名称
/// </summary>
public string priceReferenceName { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedTime { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public Nullable<DateTime> UpdatedTime { get; set; }
/// <summary>
/// 创建人ID
/// </summary>
public long CreatedUserId { get; set; }
/// <summary>
/// 创建人名称
/// </summary>
public string CreatedUserName { get; set; }
/// <summary>
/// 修改人ID
/// </summary>
public long UpdatedUserId { get; set; }
/// <summary>
/// 修改人名称
/// </summary>
public string UpdatedUserName { get; set; }
/// <summary>
/// 我希望使用托运人自己的集装箱
/// </summary>
public bool isShipperOwned { get; set; }
/// <summary>
/// 我想使用进口退货集装箱或者其他三角集运选项
/// </summary>
public bool isImportReturned { get; set; }
/// <summary>
/// 是否已有BC
/// </summary>
public bool isRecvBC { get; set; }
/// <summary>
/// 最后BC接收时间
/// </summary>
public Nullable<DateTime> LstRecvBCDate { get; set; }
/// <summary>
/// 是否已有BookingCancellation
/// </summary>
public bool isRecvBKCancel { get; set; }
/// <summary>
/// 最后BookingCancellation接收时间
/// </summary>
public Nullable<DateTime> LstRecvBKCancelDate { get; set; }
/// <summary>
/// 预计航行天数
/// </summary>
public Nullable<int> estSailingDays { get; set; }
// <summary>
/// 主键ID
/// </summary>
public Nullable<long> PId { get; set; }
/// <summary>
/// 价格id, 可进一步通过API进行其他操作
/// </summary>
public string priceID { get; set; }
/// <summary>
/// 船期价格
/// </summary>
public Nullable<decimal> ShipRateTotalAmount { get; set; }
/// <summary>
/// 船期币别
/// </summary>
public string ShipRateTotalCurrency { get; set; }
/// <summary>
/// 订舱通道类型 CON_API-合约APISPOT_API-SPOT订舱EDI-EDI订舱
/// </summary>
public string bookingChannelType { get; set; }
/// <summary>
/// 订舱通道类型 CON_API-合约APISPOT_API-SPOT订舱EDI-EDI订舱
/// </summary>
public string bookingChannelTypeName { get; set; }
}
}

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 马士基API批量复制
/// </summary>
public class MSKAPIBookingCopyDto
{
/// <summary>
/// 被复制马士基API订舱主键
/// </summary>
public long originalId { get; set; }
/// <summary>
/// 操作类型 only_copy-只单票复制copy_edit-复制使用提交的编辑信息
/// </summary>
public string opType { get; set; }
/// <summary>
/// 编辑详情(弹出编辑框后修改的详情内容)
/// </summary>
public MSKBookingDto bookingDto { get; set; }
/// <summary>
/// 复制数量
/// </summary>
public int copyNum { get; set; } = 1;
}
}

@ -0,0 +1,292 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 查询船期SPOT
/// </summary>
public class MSKAPISPOTScheduleRateResultShowDto
{
/// <summary>
/// 主键ID
/// </summary>
public long PId { get; set; }
/// <summary>
/// 船期MD5
/// </summary>
public string MD5 { get; set; }
/// <summary>
/// 价格id, 可进一步通过API进行其他操作
/// </summary>
public string priceID { get; set; }
/// <summary>
/// 币别
/// </summary>
public string TotalCurrency { get; set; }
/// <summary>
/// 金额
/// </summary>
public decimal totalAmount { get; set; }
/// <summary>
/// 金额格式化
/// </summary>
public string totalAmountShow { get; set; }
/// <summary>
/// 是否中转
/// </summary>
public bool isTransfer { get; set; }
/// <summary>
/// ETD
/// </summary>
public Nullable<DateTime> ETD { get; set; }
/// <summary>
/// ETA
/// </summary>
public Nullable<DateTime> ETA { get; set; }
/// <summary>
/// 城市名(始发地)
/// </summary>
public string orignCityName { get; set; }
/// <summary>
/// 地点的GEO ID(始发地)
/// </summary>
public string orignCarrierSiteGeoID { get; set; }
/// <summary>
/// 地点的CITY GEO ID(始发地)
/// </summary>
public string orignCarrierCityGeoID { get; set; }
/// <summary>
/// 地点的名称(始发地)
/// </summary>
public string orignLocationName { get; set; }
/// <summary>
/// 省
/// </summary>
public string originRegionName { get; set; }
/// <summary>
/// 国家代码(始发地)
/// </summary>
public string orignCountryCode { get; set; }
/// <summary>
///国家名称(始发地)
/// </summary>
public string originCountryName { get; set; }
/// <summary>
/// 位置类型(始发地)
/// </summary>
public string orignLocationType { get; set; }
/// <summary>
/// 五字码(始发地)
/// </summary>
public string orignUNLocationCode { get; set; }
/// <summary>
/// 区代码(始发地)
/// </summary>
public string orignUNRegionCode { get; set; }
/// <summary>
/// 城市名(目的地)
/// </summary>
public string deliveryCityName { get; set; }
/// <summary>
/// 地点的GEO ID(目的地)
/// </summary>
public string deliveryCarrierSiteGeoID { get; set; }
/// <summary>
/// 地点的CITY GEO ID(目的地)
/// </summary>
public string deliveryCarrierCityGeoID { get; set; }
/// <summary>
/// 地点的名称(目的地)
/// </summary>
public string deliveryLocationName { get; set; }
/// <summary>
/// 省
/// </summary>
public string deliveryRegionName { get; set; }
/// <summary>
/// 国家代码(目的地)
/// </summary>
public string deliveryCountryCode { get; set; }
/// <summary>
/// 国家名称(目的地)
/// </summary>
public string deliveryCountryName { get; set; }
/// <summary>
/// 位置类型(目的地)
/// </summary>
public string deliveryLocationType { get; set; }
/// <summary>
/// 五字码(目的地)
/// </summary>
public string deliveryUNLocationCode { get; set; }
/// <summary>
/// 区代码(目的地)
/// </summary>
public string deliveryUNRegionCode { get; set; }
/// <summary>
/// IMO
/// </summary>
public string vesselIMONumber { get; set; }
/// <summary>
/// 航次号
/// </summary>
public string carrierVesselCode { get; set; }
/// <summary>
/// 运输方式
/// </summary>
public string transportMode { get; set; }
/// <summary>
/// 船名
/// </summary>
public string vesselName { get; set; }
/// <summary>
/// 航次代码
/// </summary>
public string carrierDepartureVoyageNumber { get; set; }
/// <summary>
/// 承运人代码(MAEU, SEAU, SEJJ, MCPU, MAEI)
/// </summary>
public string vesselOperatorCarrierCode { get; set; }
/// <summary>
/// 行程天数
/// </summary>
public int days { get; set; }
/// <summary>
/// 航程明细
/// </summary>
public List<MSKAPISPOTScheduleRateResultShowLegsDto> Legs { get; set; }
}
public class MSKAPISPOTScheduleRateResultShowLegsDto
{
/// <summary>
/// 排序值
/// </summary>
public int SortNo { get; set; }
/// <summary>
/// 船名
/// </summary>
public string vesselName { get; set; }
/// <summary>
/// 航次
/// </summary>
public string VoyageNo { get; set; }
/// <summary>
/// ETD
/// </summary>
public Nullable<DateTime> ETD { get; set; }
/// <summary>
/// ATD
/// </summary>
public Nullable<DateTime> ETA { get; set; }
/// <summary>
/// 起始地
/// </summary>
public MSKAPISPOTScheduleRateResultShowLegsLocationDto From { get; set; }
/// <summary>
/// 目的地
/// </summary>
public MSKAPISPOTScheduleRateResultShowLegsLocationDto To { get; set; }
}
public class MSKAPISPOTScheduleRateResultShowLegsLocationDto
{
/// <summary>
/// 定位类型 From-起始地 To-目的地
/// </summary>
public string LocationType { get; set; }
/// <summary>
/// 码头定位ID
/// </summary>
public string SiteGeoId { get; set; }
/// <summary>
/// 城市定位ID
/// </summary>
public string CityGeoId { get; set; }
/// <summary>
///
/// </summary>
public string rkstCode { get; set; }
/// <summary>
/// 城市定位ID
/// </summary>
public string UnLocCode { get; set; }
/// <summary>
/// 码头全称
/// </summary>
public string SiteName { get; set; }
/// <summary>
/// 城市名
/// </summary>
public string CityName { get; set; }
/// <summary>
/// 省
/// </summary>
public string RegionName { get; set; }
/// <summary>
/// 特别行政区或国家代码
/// </summary>
public string CountryCode { get; set; }
/// <summary>
/// 特别行政区或国家名称
/// </summary>
public string CountryName { get; set; }
}
}

@ -0,0 +1,442 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 马士基订舱请求
/// </summary>
public class MSKBookingDto
{
/// <summary>
/// 记录ID
/// </summary>
public Nullable<long> id { get; set; }
/// <summary>
/// 船公司代码
/// </summary>
public string carrierId { get; set; }
/// <summary>
/// 订舱ID
/// </summary>
public long bookingId { get; set; }
/// <summary>
/// 主键ID
/// </summary>
public long PId { get; set; }
/// <summary>
/// 船期MD5
/// </summary>
public string MD5 { get; set; }
/// <summary>
/// 合同唯一id
/// </summary>
[RegularExpression("[a-zA-Z0-9_/,-]{1,50}", ErrorMessage = " [a-zA-Z0-9_/,-]{1,50}")]
public string priceReference { get; set; }
/// <summary>
/// 产品类型(MaerskSpot, SealandSpot, MaerskContract)
/// </summary>
public string productCode { get; set; }
/// <summary>
/// 请求类别, 目前只能传 BOOKAPI
/// </summary>
public string sender { get; set; }
/// <summary>
/// 订舱公司名称
/// </summary>
public string bookedByCompanyName { get; set; }
/// <summary>
/// 承运人id,用于识别预定方
/// </summary>
public string bookedByMaerskPartyCode { get; set; }
/// <summary>
/// 订舱公司名称联系人姓名
/// </summary>
public string bookedByCompanyContactName { get; set; }
/// <summary>
/// 订舱公司名称联系人邮箱
/// </summary>
public string bookedByCompanyContactEmail { get; set; }
/// <summary>
/// 订舱公司名称联系人电话号码
/// </summary>
public string bookedByCompanyContactPhone { get; set; }
/// <summary>
/// 当前订舱公司是否也是合约方 true-标识合约信息跟订舱公司一致false-标识有单独的合约方
/// </summary>
public bool isBookingPartOwnPrice { get; set; }
/// <summary>
/// 价格所有者公司名称
/// </summary>
public string priceOwnerCompanyName { get; set; }
/// <summary>
/// 价格所有者id
/// </summary>
public string priceOwnerMaerskPartyCode { get; set; }
/// <summary>
/// 价格所有者联系人姓名
/// </summary>
public string priceOwnerContactName { get; set; }
/// <summary>
/// 价格所有者联系人邮箱
/// </summary>
public string priceOwnerContactEmail { get; set; }
/// <summary>
/// 价格所有者联系人电话号码
/// </summary>
public string priceOwnerContactPhone { get; set; }
/// <summary>
/// 价格所有者合约号
/// </summary>
public string priceOwnerReference { get; set; }
/// <summary>
/// 价格所有者合约号主键
/// </summary>
public string priceOwnerReferenceId { get; set; }
/// <summary>
/// 价格所有者合约号名称
/// </summary>
public string priceOwnerReferenceName { get; set; }
/// <summary>
/// 承运人代码MAEU, SEAU, SEJJ, MCPU, MAEI
/// </summary>
public string carrierCode { get; set; }
/// <summary>
/// 最早起运日期, 不可小于当前日期
/// </summary>
public Nullable<DateTime> earliestDepartureDate { get; set; }
/// <summary>
/// 出口服务类型(CY, SD, CFS)
/// </summary>
public string exportServiceMode { get; set; }
/// <summary>
/// 进口服务类型
/// </summary>
public string importServiceMode { get; set; }
/// <summary>
/// 收货地UN地点代码
/// </summary>
public string placeOfReceiptUnLocCode { get; set; }
/// <summary>
/// 收货地城市英文名称
/// </summary>
public string placeOfReceiptCityName { get; set; }
/// <summary>
/// 收货地国家代码
/// </summary>
public string placeOfReceiptCountryCode { get; set; }
/// <summary>
/// 交货地UN地点代码
/// </summary>
public string placeOfDeliveryUnLocCode { get; set; }
/// <summary>
/// 交货地城市英文名称
/// </summary>
public string placeOfDeliveryCityName { get; set; }
/// <summary>
/// 交货地国家代码
/// </summary>
public string placeOfDeliveryCountryCode { get; set; }
/// <summary>
/// 出发时间, ISO时间格式
/// </summary>
public Nullable<DateTime> originDepartureDateTimeLocal { get; set; }
/// <summary>
/// 到达时间, ISO时间格式
/// </summary>
public Nullable<DateTime> destinationArrivalDateTimeLocal { get; set; }
/// <summary>
/// 是否冷冻处理
/// </summary>
public bool isReefer { get; set; } = false;
/// <summary>
/// 温度探头的数量
/// </summary>
public Nullable<int> noOfProbes { get; set; }
/// <summary>
/// 温度
/// </summary>
public Nullable<decimal> temperature { get; set; }
/// <summary>
/// 通风
/// </summary>
[Range(0, 285)]
public Nullable<int> ventilation { get; set; }
/// <summary>
/// 湿度
/// </summary>
public Nullable<int> humidity { get; set; }
/// <summary>
/// 货物代码
/// </summary>
[RegularExpression("^[0-9]{6}$", ErrorMessage = "6")]
public string commodityCode { get; set; }
/// <summary>
/// 货物名称
/// </summary>
public string commodityName { get; set; }
/// <summary>
/// 货物类型, 箱型, 为REEFER 时, 需要上传reeferSettings参数中的温度,通风,湿度等(DRY, REEFER)
/// </summary>
public string cargoType { get; set; }
/// <summary>
/// 重量
/// </summary>
public Nullable<int> totalCargoWeight { get; set; }
/// <summary>
/// 货物总体积
/// </summary>
public Nullable<decimal> totalCargoVolume { get; set; }
/// <summary>
/// 货物代码类型, 目前只能传 MaerskCode
/// </summary>
public string commodityCodeType { get; set; }
/// <summary>
/// 船名代码
/// </summary>
public string carrierVesselCode { get; set; }
/// <summary>
/// 船名
/// </summary>
public string vesselName { get; set; }
/// <summary>
/// 航次号
/// </summary>
public string exportVoyageNumber { get; set; }
/// <summary>
/// 运输方式(BAR, BCO, DST, FEF, FEO, MVS, RCO, RR, SSH, TRK, VSF, VSL, VSM)
/// </summary>
public string transportMode { get; set; }
/// <summary>
/// 预计航行天数
/// </summary>
public Nullable<int> EstSailingDays { get; set; }
/// <summary>
/// 合约号主键
/// </summary>
public Nullable<long> priceReferenceId { get; set; }
/// <summary>
/// 合约号名称
/// </summary>
public string priceReferenceName { get; set; }
/// <summary>
/// 我希望使用托运人自己的集装箱
/// </summary>
public bool isShipperOwned { get; set; }
/// <summary>
/// 我想使用进口退货集装箱或者其他三角集运选项
/// </summary>
public bool isImportReturned { get; set; }
/// <summary>
/// 查询船期ID
/// </summary>
public string carrierProductId { get; set; }
/// <summary>
/// 是否不使用船期表订舱
/// </summary>
public bool isSendNoSchedule { get; set; } = false;
/// <summary>
/// 收货地国家名称
/// </summary>
public string placeOfReceiptCountryName { get; set; }
/// <summary>
/// 收货地行政名称
/// </summary>
public string placeOfReceiptRegionName { get; set; }
/// <summary>
/// 交货地国家名称
/// </summary>
public string placeOfDeliveryCountryName { get; set; }
/// <summary>
/// 交货地行政名称
/// </summary>
public string placeOfDeliveryRegionName { get; set; }
/// <summary>
/// 用户录入收货地UN地点代码
/// </summary>
public string userPlaceOfReceiptUnLocCode { get; set; }
/// <summary>
/// 用户录入收货地城市英文名称
/// </summary>
public string userPlaceOfReceiptCityName { get; set; }
/// <summary>
/// 用户录入收货地国家代码
/// </summary>
public string userPlaceOfReceiptCountryCode { get; set; }
// <summary>
/// 用户录入收货地国家名称
/// </summary>
public string userPlaceOfReceiptCountryName { get; set; }
/// <summary>
/// 用户录入收货地行政名称
/// </summary>
public string userPlaceOfReceiptRegionName { get; set; }
/// <summary>
/// 用户录入交货地国家名称
/// </summary>
public string userPlaceOfDeliveryCountryName { get; set; }
/// <summary>
/// 用户录入交货地行政名称
/// </summary>
public string userPlaceOfDeliveryRegionName { get; set; }
/// <summary>
/// 用户录入交货地UN地点代码
/// </summary>
public string userPlaceOfDeliveryUnLocCode { get; set; }
/// <summary>
/// 用户录入交货地城市英文名称
/// </summary>
public string userPlaceOfDeliveryCityName { get; set; }
/// <summary>
/// 用户录入交货地国家代码
/// </summary>
public string userPlaceOfDeliveryCountryCode { get; set; }
/// <summary>
/// 箱型箱量列表
/// </summary>
public List<MSKBookingCtnInfo> ctns { get; set; }
/// <summary>
/// 收货地定位ID
/// </summary>
public string carrierCollectionOriginGeoID { get; set; }
/// <summary>
/// 交货地定位ID
/// </summary>
public string carrierDeliveryDestinationGeoID { get; set; }
/// <summary>
/// 订舱通道类型 CON_API-合约APISPOT_API-SPOT订舱EDI-EDI订舱
/// </summary>
public string bookingChannelType { get; set; }
/// <summary>
/// 订舱通道类型 CON_API-合约APISPOT_API-SPOT订舱EDI-EDI订舱
/// </summary>
public string bookingChannelTypeName { get; set; }
/// <summary>
/// 选择的船期详情
/// </summary>
public SearchShipSailingScheduleResultDto selectedShipScheduleShow { get; set; }
}
public class MSKBookingCtnInfo
{
/// <summary>
/// 箱型
/// </summary>
public string ctnCode { get; set; }
/// <summary>
/// 箱型名称
/// </summary>
public string ctnName { get; set; }
/// <summary>
/// 箱量
/// </summary>
public Nullable<int> ctnNum { get; set; }
/// <summary>
/// 箱内重量
/// </summary>
public Nullable<decimal> ctnSufferWeight { get; set; }
/// <summary>
/// 集装箱主键
/// </summary>
public Nullable<long> id { get; set; }
/// <summary>
/// 对应船公司箱型
/// </summary>
public string carrierCtnCode { get; set; }
/// <summary>
/// 箱计量单位
/// </summary>
public string stuffingMeasurementType { get; set; }
/// <summary>
/// 重量或者体积的计量单位
/// </summary>
public string stuffingMeasurementUnit { get; set; }
}
}

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 马士基订舱回执
/// </summary>
public class MSKBookingResultDto
{
/// <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>
/// 马士基API订舱主键
/// </summary>
public Nullable<long> id { get; set; }
}
}

@ -0,0 +1,54 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// MSK SPOT 订舱初始加载详情
/// </summary>
public class MSKSPOTBookingInitDto
{
/// <summary>
/// 订舱方备案编号(马士基)
/// </summary>
public string bookedByMaerskPartyCode { get; set; }
/// <summary>
/// 订舱方备案全称(马士基)
/// </summary>
public string bookedByCompanyName { get; set; }
/// <summary>
/// 订舱方联系人(马士基)
/// </summary>
public string bookedByCompanyContactName { get; set; }
/// <summary>
/// 订舱方联系邮箱(马士基)
/// </summary>
public string bookedByCompanyContactEmail { get; set; }
/// <summary>
/// 持约方备案代码(马士基)
/// </summary>
public string priceOwnerMaerskPartyCode { get; set; }
/// <summary>
/// 持约方备案全称(马士基)
/// </summary>
public string priceOwnerCompanyName { get; set; }
/// <summary>
/// 订舱方联系人(马士基)
/// </summary>
public string priceOwnerContactName { get; set; }
/// <summary>
/// 订舱方联系邮箱(马士基)
/// </summary>
public string priceOwnerContactEmail { get; set; }
}
}

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 商品名称检索请求
/// </summary>
public class QueryCommoditiesDto
{
/// <summary>
/// 商品名称
/// </summary>
public string commodityName { get; set; }
/// <summary>
/// 船公司代码
/// </summary>
public string carrierId { get; set; }
}
}

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 检索始发地、目的港口信息
/// </summary>
public class QueryLocationsDto
{
/// <summary>
/// 港口或城市名称
/// </summary>
public string cityName { get; set; }
/// <summary>
/// 船公司代码
/// </summary>
public string carrierId { get; set; }
/// <summary>
/// 服务船公司代码MAEU, SEAU, SEJJ, MCPU, MAEI carrierId=MSK时必填
/// </summary>
public string carrierCode { get; set; } = "MAEU";
}
}

@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 查询港口回执信息
/// </summary>
public class QueryLocationsResultDto
{
/// <summary>
/// 港口的国家代码
/// </summary>
public string countryCode { get; set; }
/// <summary>
/// 国家名称
/// </summary>
public string countryName { get; set; }
/// <summary>
/// 城市名
/// </summary>
public string cityName { get; set; }
/// <summary>
/// 地点类型
/// </summary>
public string locationType { get; set; }
/// <summary>
/// 地点名名
/// </summary>
public string locationName { get; set; }
/// <summary>
/// 地点id
/// </summary>
public string carrierGeoID { get; set; }
/// <summary>
/// 港口五子码, 在订舱等业务时,港口信息一般填写这个
/// </summary>
public string UNLocationCode { get; set; }
/// <summary>
/// 区域代码
/// </summary>
public string UNRegionCode { get; set; }
/// <summary>
/// 区域名称
/// </summary>
public string UNRegionName { get; set; }
}
}

@ -0,0 +1,154 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 检索船期请求
/// </summary>
public class QueryShipSailingScheduleDto
{
/// <summary>
/// 船公司代码
/// </summary>
public string carrierId { get; set; }
/// <summary>
/// 起始地的GEO ID
/// </summary>
public string carrierCollectionOriginGeoID { get; set; }
/// <summary>
/// 目的地的GEO ID
/// </summary>
public string carrierDeliveryDestinationGeoID { get; set; }
/// <summary>
/// 起始地国家代码(英文)
/// </summary>
public string collectionOriginCountryCode { get; set; }
/// <summary>
/// 起始地城市名
/// </summary>
public string collectionOriginCityName { get; set; }
/// <summary>
/// 起始地国家名称(英文)
/// </summary>
public string collectionOriginCountryName { get; set; }
/// <summary>
/// 起始地五字码
/// </summary>
public string collectionOriginUNLocationCode { get; set; }
/// <summary>
/// 起始地区代码
/// </summary>
public string collectionOriginUNRegionCode { get; set; }
/// <summary>
/// 起始地区名称
/// </summary>
public string collectionOriginUNRegionName { get; set; }
/// <summary>
/// 目的地国家代码 二字码
/// </summary>
public string deliveryDestinationCountryCode { get; set; }
/// <summary>
/// 目的地城市名称
/// </summary>
public string deliveryDestinationCityName { get; set; }
/// <summary>
/// 目的地国家名称 二字码
/// </summary>
public string deliveryDestinationCountryName { get; set; }
/// <summary>
/// 目的都五字码
/// </summary>
public string deliveryDestinationUNLocationCode { get; set; }
/// <summary>
/// 目的地区代码
/// </summary>
public string deliveryDestinationUNRegionCode { get; set; }
/// <summary>
/// 目的地区名称
/// </summary>
public string deliveryDestinationUNRegionName { get; set; }
/// <summary>
/// 承运人代码MAEU, SEAU, SEJJ, MCPU, MAEI
/// </summary>
public string vesselOperatorCarrierCode { get; set; }
/// <summary>
/// 货物类型代码DRY, REEFER
/// </summary>
public string cargoType { get; set; }
/// <summary>
/// 箱型代码
/// </summary>
public string ISOEquipmentCode { get; set; }
/// <summary>
/// 箱重量
/// </summary>
public string stuffingWeight { get; set; }
/// <summary>
/// 重量单位KGS, LBS
/// </summary>
public string weightMeasurementUnit { get; set; }
/// <summary>
/// 箱体积
/// </summary>
public int stuffingVolume { get; set; }
/// <summary>
/// 体积单位MTQ, FTQ
/// </summary>
public string volumeMeasurementUnit { get; set; }
/// <summary>
/// 出口服务代码CY, SD, CFS
/// </summary>
public string exportServiceMode { get; set; }
/// <summary>
/// 进口服务代码CY, SD, CFS
/// </summary>
public string importServiceMode { get; set; }
/// <summary>
/// 开始时间
/// </summary>
public string startDate { get; set; }
/// <summary>
/// 开始时间类型D, A
/// </summary>
public string startDateType { get; set; }
/// <summary>
/// 请求产品信息的时间段P1W, P2W, P3W, P4W, P5W, P6W, P7W, P8W
/// </summary>
public string dateRange { get; set; }
/// <summary>
/// 船舶标志代号
/// </summary>
public string vesselFlagCode { get; set; }
}
}

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 商品检索结果
/// </summary>
public class SearchCommodityResultDto
{
/// <summary>
/// 商品名称
/// </summary>
public string commodityName { get; set; }
/// <summary>
/// 商品代码
/// </summary>
public string commodityCode { get; set; }
/// <summary>
/// 货物品类
/// </summary>
public string[] cargoTypes { get; set; }
}
}

@ -0,0 +1,84 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Dtos
{
/// <summary>
/// 查询船期回执
/// </summary>
public class SearchShipSailingScheduleResultDto : MSKAPISPOTScheduleRateResultShowDto
{
/// <summary>
/// 产品id
/// </summary>
public string carrierProductId { get; set; }
/// <summary>
/// 产品序号
/// </summary>
public string carrierProductSequenceId { get; set; }
/// <summary>
/// 起运地rkst代码
/// </summary>
public string originRkstCode { get; set; }
/// <summary>
/// 起运地geoID
/// </summary>
public string originGeoId { get; set; }
/// <summary>
/// 起运地五子码
/// </summary>
public string originUnLocCode { get; set; }
/// <summary>
/// 起运地城市名
/// </summary>
public string originCityName { get; set; }
/// <summary>
/// 起运地区名
/// </summary>
public string originRegionName { get; set; }
/// <summary>
/// 起运地国家名
/// </summary>
public string originCountryName { get; set; }
/// <summary>
/// 目的地rkst代码
/// </summary>
public string destinationRkstCode { get; set; }
/// <summary>
/// 目的地geoID
/// </summary>
public string destinationGeoId { get; set; }
/// <summary>
/// 目的地五子码
/// </summary>
public string destinationUnLocCode { get; set; }
/// <summary>
/// 目的地城市名
/// </summary>
public string destinationCityName { get; set; }
/// <summary>
/// 目的地区名
/// </summary>
public string destinationRegionName { get; set; }
/// <summary>
/// 目的地国家名
/// </summary>
public string destinationCountryName { get; set; }
}
}

@ -0,0 +1,116 @@
using DS.Module.Core;
using DS.WMS.Core.Op.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Interface
{
/// <summary>
/// 马士基API订舱
/// </summary>
public interface ISpaceBookingMSKAPIService
{
/// <summary>
/// 检索海运船期详情
/// </summary>
/// <param name="model">请求船期详情</param>
/// <returns>返回船期结果</returns>
Task<DataResult<List<SearchShipSailingScheduleResultDto>>> SearchShipSailingSchedule(QueryShipSailingScheduleDto model);
/// <summary>
/// 发送马士基订舱请求
/// </summary>
/// <param name="model">请求订舱详情</param>
/// <returns>返回检索结果</returns>
Task<DataResult<MSKBookingResultDto>> SendMSKBooking(MSKBookingDto model);
/// <summary>
/// 检索商品名称
/// </summary>
/// <param name="model">请求详情</param>
/// <returns>返回检索结果</returns>
Task<DataResult<List<SearchCommodityResultDto>>> SearchCommodities(QueryCommoditiesDto model);
/// <summary>
/// 检索始发地、目的港口信息
/// </summary>
/// <param name="model">请求详情</param>
/// <returns>返回检索结果</returns>
Task<DataResult<List<QueryLocationsResultDto>>> SearchLocations(QueryLocationsDto model);
/// <summary>
/// 马士基API订舱台账
/// </summary>
/// <param name="QuerySearch">查询条件</param>
/// <returns>返回台账列表</returns>
Task<DataResult<List<BookingDeliveryRecordPageDto>>> GetPageAsync(PageRequest QuerySearch);
/// <summary>
/// 获取马士基API订舱详情
/// </summary>
/// <param name="id">马士基API订舱ID</param>
/// <returns>返回详情</returns>
Task<DataResult<MSKBookingDto>> GetInfo(long id);
/// <summary>
/// 保存
/// </summary>
/// <param name="model">请求订舱详情</param>
/// <returns>返回ID</returns>
Task<DataResult<long>> Save(MSKBookingDto model);
/// <summary>
/// 删除
/// </summary>
/// <param name="id">请求订舱ID</param>
/// <returns></returns>
Task<DataResult> Delete(long id);
/// <summary>
/// 批量发送API前调取校验预警
/// </summary>
/// <param name="ids">马士基API订舱ID组</param>
/// <returns>返回提示信息</returns>
Task<DataResult<string>> CheckWarningBatchSend(long[] ids);
/// <summary>
/// 批量发送
/// </summary>
/// <param name="ids">马士基API订舱ID组</param>
/// <returns>返回执行结果消息</returns>
Task<DataResult<string>> BatchSend(long[] ids);
/// <summary>
/// 批量复制前调取校验预警
/// </summary>
/// <param name="model">马士基API批量复制指定数据</param>
/// <returns>返回提示信息</returns>
Task<DataResult<string>> CheckWarningBatchCopy(MSKAPIBookingCopyDto model);
/// <summary>
/// 批量复制
/// </summary>
/// <param name="model">马士基API批量复制指定数据</param>
/// <returns>返回执行结果消息</returns>
Task<DataResult<string>> BatchCopy(MSKAPIBookingCopyDto model);
/// <summary>
/// 同步BC状态BC,Cancellation
/// </summary>
/// <param name="mblno">提单号</param>
/// <param name="tenantId">租户ID</param>
/// <param name="opTypeName">操作类型 BC-同步BC状态 Cancellation-同步取消状态</param>
/// <returns>返回回执</returns>
Task<DataResult<MSKBookingResultDto>> SyncBCInfo(string mblno, long tenantId, string opTypeName = "BookingConfirmation");
/// <summary>
/// 获取初始化页面默认值
/// </summary>
/// <returns>返回详情</returns>
Task<DataResult<MSKSPOTBookingInitDto>> GetInitInfo();
}
}

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Interface
{
public interface ISpaceBookingMSKSPOTAPIService
{
}
}
Loading…
Cancel
Save