|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.WMS.Core.Op.Dtos;
|
|
|
|
|
using DS.WMS.Core.Op.Dtos.Cargoo;
|
|
|
|
|
using DS.WMS.Core.Op.Entity;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
@ -18,9 +19,10 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 生成Cargoo报文(根据订舱详情生成报文)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="bookingId"></param>
|
|
|
|
|
/// <param name="bookingId">订单ID</param>
|
|
|
|
|
/// <param name="cargooStatusEnum">状态枚举</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task<DataResult<CargooShipmentDto>> GetCargooShipmentDto(long bookingId)
|
|
|
|
|
public async Task<DataResult<CargooShipmentDto>> GetCargooShipmentDto(long bookingId, CargooStatusEnum cargooStatusEnum)
|
|
|
|
|
{
|
|
|
|
|
CargooShipmentDto dto = new CargooShipmentDto();
|
|
|
|
|
|
|
|
|
@ -42,11 +44,12 @@ namespace DS.WMS.Core.Op.EDI
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="bookingId"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task<DataResult> SendCargooShipment(long bookingId)
|
|
|
|
|
public async Task<DataResult> SendCargooShipment(long bookingId, CargooStatusEnum cargooStatusEnum)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
var dto = await GetCargooShipmentDto(bookingId);
|
|
|
|
|
var dto = await GetCargooShipmentDto(bookingId, cargooStatusEnum);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|