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.

63 lines
1.6 KiB
C#

1 month ago
using DS.Module.Core;
using DS.WMS.Core.Op.Dtos;
1 month ago
using DS.WMS.Core.Op.Dtos.Cargoo;
1 month ago
using DS.WMS.Core.Op.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.EDI
{
1 month ago
/// <summary>
/// Cargoo 帮助类
/// </summary>
public class CargooAPIHelper
{
1 month ago
#region 生成Cargoo报文(根据订舱详情生成报文)
/// <summary>
/// 生成Cargoo报文(根据订舱详情生成报文)
/// </summary>
1 month ago
/// <param name="bookingId">订单ID</param>
/// <param name="cargooStatusEnum">状态枚举</param>
1 month ago
/// <returns></returns>
1 month ago
public async Task<DataResult<CargooShipmentDto>> GetCargooShipmentDto(long bookingId, CargooStatusEnum cargooStatusEnum)
1 month ago
{
CargooShipmentDto dto = new CargooShipmentDto();
1 month ago
try
{
}
catch (Exception ex)
{
}
return DataResult<CargooShipmentDto>.Success(dto);
}
#endregion
/// <summary>
/// 发送Cargoo报文
/// </summary>
/// <param name="bookingId"></param>
/// <returns></returns>
1 month ago
public async Task<DataResult> SendCargooShipment(long bookingId, CargooStatusEnum cargooStatusEnum)
1 month ago
{
try
{
1 month ago
var dto = await GetCargooShipmentDto(bookingId, cargooStatusEnum);
1 month ago
}
catch (Exception ex)
{
}
return DataResult.Successed("");
}
}
}