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.

136 lines
5.0 KiB
C#

using Myshipping.Core.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myshipping.Application
{
public interface IParaService
{
/// <summary>
/// 保存品名参数
/// </summary>
/// <param name="model">品名参数</param>
/// <returns>返回回执</returns>
Task<long> SaveParaGoodsInfo(ParaGoodsDto model);
/// <summary>
/// 作废品名参数
/// </summary>
/// <param name="Ids">品名参数主键数组</param>
/// <returns>返回回执</returns>
Task<string> DeleteParaGoodsInfo(long[] Ids);
/// <summary>
/// 主键获取品名参数
/// </summary>
/// <param name="Id">品名主键</param>
/// <returns>返回回执</returns>
Task<ParaGoodsShowDto> GetParaGoodsInfo(long Id);
/// <summary>
/// 检索品名参数
/// </summary>
/// <param name="queryItem">检索值</param>
/// <param name="top">默认最大行数</param>
/// <returns>返回回执</returns>
Task<List<ParaGoodsShowDto>> QueryParaGoodsInfo(string queryItem, int top = 10);
/// <summary>
/// 品名参数台账查询
/// </summary>
/// <param name="QuerySearch">品名参数台账查询请求</param>
/// <returns>返回结果</returns>
Task<dynamic> GetParaGoodsPageAsync(QueryParaGoodsDto QuerySearch);
/// <summary>
/// 保存品名分类参数
/// </summary>
/// <param name="model">品名分类参数</param>
/// <returns>返回回执</returns>
Task<long> SaveParaGoodsCategoryInfo(ParaGoodsCategoryDto model);
/// <summary>
/// 主键获取品名分类参数
/// </summary>
/// <param name="Id">品名分类主键</param>
/// <returns>返回回执</returns>
Task<ParaGoodsCategoryShowDto> GetParaGoodsCategoryInfo(long Id);
/// <summary>
/// 检索品名分类参数
/// </summary>
/// <param name="queryItem">检索值</param>
/// <param name="top">默认最大行数</param>
/// <returns>返回回执</returns>
Task<List<ParaGoodsCategoryShowDto>> QueryParaGoodsCategoryInfo(string queryItem, int top = 10);
/// <summary>
/// 作废品名分类参数
/// </summary>
/// <param name="Ids">品名分类参数主键数组</param>
/// <returns>返回回执</returns>
Task<string> DeleteParaGoodsCategoryInfo(long[] Ids);
/// <summary>
/// 品名分类参数台账查询
/// </summary>
/// <param name="QuerySearch">品名分类参数台账查询请求</param>
/// <returns>返回结果</returns>
Task<dynamic> GetParaGoodsCategoryPageAsync(QueryParaGoodsCategoryDto QuerySearch);
/// <summary>
/// 保存约号参数
/// </summary>
/// <param name="model">约号参数</param>
/// <returns>返回回执</returns>
Task<long> SaveParaContractNoInfo(ParaContractNoDto model);
/// <summary>
/// 主键获取约号参数
/// </summary>
/// <param name="Id">约号主键</param>
/// <returns>返回回执</returns>
Task<ParaContractNoShowDto> GetParaContractNoInfo(long Id);
/// <summary>
/// 检索约号参数
/// </summary>
/// <param name="queryItem">检索值</param>
/// <param name="top">默认最大行数</param>
/// <param name="carrier">船公司代码</param>
/// <param name="lane">航线代码</param>
/// <param name="lanecname">航线中文</param>
/// <param name="pod">目的港代码</param>
/// <returns>返回回执</returns>
Task<List<ParaContractNoShowDto>> QuerytParaContractNoInfo(string queryItem, int top = 10,
string carrier = "", string lane = "", string lanecname = "", string pod = "");
/// <summary>
/// 作废约号参数
/// </summary>
/// <param name="Ids">约号参数主键数组</param>
/// <returns>返回回执</returns>
Task<string> DeleteParaContractNoInfo(long[] Ids);
/// <summary>
/// 约号参数台账查询
/// </summary>
/// <param name="QuerySearch">约号参数台账查询请求</param>
/// <returns>返回结果</returns>
Task<dynamic> GetParaContractNoPageAsync(QueryParaContractNoDto QuerySearch);
/// <summary>
/// 检索车队参数
/// </summary>
/// <param name="queryItem">检索值</param>
/// <param name="queryType">检索类型 fleet-车队默认customs_broker-报关行</param>
/// <param name="top">默认最大行数</param>
/// <returns>返回回执</returns>
//Task<List<DjyCustomerDto>> QuerytDjyCustomerInfo(string queryItem, string queryType = "fleet", int top = 10);
}
}