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.

89 lines
2.9 KiB
C#

using DS.Module.Core;
using DS.WMS.Core.Code.Entity;
using DS.WMS.Core.Op.Dtos;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Op.Interface
{
public interface ISeaExportCommonService
{
/// <summary>
/// 获取第三方账户
/// </summary>
/// <param name="type"></param>
/// <param name="userId"></param>
/// <param name="tenantDb"></param>
/// <param name="customerId"></param>
/// <returns></returns>
public CodeThirdParty GetCodeThirdParty(string type, string userId, SqlSugarScopeProvider tenantDb, long customerId = 0);
/// <summary>
/// 获取客户结算方式及结算日期
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public DataResult<CustomerStlRes> GetCustomerStlInfo(CustomerStlReq req);
/// <summary>
/// 设置货物状态完成
/// </summary>
/// <param name="code"></param>
/// <param name="bookingId"></param>
/// <returns></returns>
public Task SetGoodsStatus(string code, long bookingId);
/// <summary>
/// 发送XHZ
/// </summary>
/// <param name="bookingId"></param>
/// <param name="filerole"></param>
/// <returns></returns>
public Task<DataResult> XHZSend(
long bookingId, string filerole);
/// <summary>
/// 更新订舱的状态
/// </summary>
/// <param name="bookingId">订舱主键</param>
/// <param name="code">状态代码</param>
/// <param name="name">状态名称</param>
/// <returns></returns>
public Task SaveBookingStatus(long bookingId, string code, string name);
/// <summary>
/// 获取船公司代码
/// </summary>
/// <param name="Id"></param>
/// <param name="tenantDb"></param>
/// <returns></returns>
public string GetCarrierCode(long Id, SqlSugarScopeProvider tenantDb);
/// <summary>
/// 获取港口代码
/// </summary>
/// <param name="Id"></param>
/// <param name="tenantDb"></param>
/// <returns></returns>
public string GetPortCode(long Id, SqlSugarScopeProvider tenantDb);
/// <summary>
/// 获取系统配置信息
/// </summary>
/// <param name="code"></param>
/// <returns></returns>
public Task<DataResult<string>> GetConfigData(string code);
/// <summary>
/// 获取往来单位代码 有EDICode返 无返回CodeName
/// </summary>
/// <param name="Id"></param>
/// <param name="tenantDb"></param>
/// <param name="isEDI"></param>
/// <returns></returns>
public string GetClientCode(long Id, SqlSugarScopeProvider tenantDb, bool isEDI = true);
}
}