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