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.
92 lines
2.5 KiB
C#
92 lines
2.5 KiB
C#
using DS.Module.Core;
|
|
using DS.Module.Core.Data;
|
|
using DS.WMS.Core.Code.Dtos;
|
|
using DS.WMS.Core.Map.Dtos;
|
|
|
|
namespace DS.WMS.Core.Code.Interface;
|
|
|
|
public interface ICodeCtnService
|
|
{
|
|
/// <summary>
|
|
/// 列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
DataResult<List<CodeCtnRes>> GetListByPage(PageRequest request);
|
|
|
|
|
|
/// <summary>
|
|
/// 编辑
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
DataResult EditCodeCtn(CodeCtnReq req);
|
|
|
|
/// <summary>
|
|
/// 获取详情
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
DataResult<CodeCtnRes> GetCodeCtnInfo(string id);
|
|
/// <summary>
|
|
/// 列表
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
DataResult<List<CodeCtnRes>> GetClientListByPage(PageRequest request);
|
|
/// <summary>
|
|
/// 编辑-客户端
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
DataResult EditClientCodeCtn(CodeCtnReq req);
|
|
/// <summary>
|
|
/// 获取详情 -客户端
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
public DataResult<CodeCtnRes> GetClientCodeCtnInfo(string id);
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// 获取集装箱列表-基础库
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <returns></returns>
|
|
DataResult<List<CodeCtnRes>> GetCodeCtnList(PageRequest request);
|
|
/// <summary>
|
|
/// 导入集装箱列表
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
DataResult ImportCodeCtn(IdModel req);
|
|
|
|
/// <summary>
|
|
/// 获取当前租户已有的集装箱
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public DataResult<List<string>> GetExistCodeCtnList();
|
|
|
|
/// <summary>
|
|
/// 批量删除
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
public DataResult BatchDelCodeCtn(IdModel req);
|
|
|
|
/// <summary>
|
|
/// 获取箱型基础数据
|
|
/// </summary>
|
|
/// <param name="isFromCache">是否从缓存提取 true-从缓存读取 false-从数据库读取</param>
|
|
/// <returns>返回箱型基础数据列表</returns>
|
|
Task<DataResult<List<CodeCtnRes>>> GetAllList(bool isFromCache = true);
|
|
|
|
/// <summary>
|
|
/// 加载到缓存
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<DataResult> LoadCache();
|
|
|
|
public bool ValidateContainerNumber(string containerNumber);
|
|
} |