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.

77 lines
2.2 KiB
C#

using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Fee.Dtos;
using DS.WMS.Core.Fee.Entity;
namespace DS.WMS.Core.Fee.Interface
{
/// <summary>
/// 往来单位费用模板
/// </summary>
public interface IFeeCustTemplateService
{
/// <summary>
/// 根据业务ID与类型生成费用
/// </summary>
/// <param name="etd">开船日</param>
/// <returns></returns>
Task GenerateFeesAsync(DateTime etd);
/// <summary>
/// 导入费用模板
/// </summary>
/// <param name="models"></param>
/// <returns></returns>
Task<DataResult> ImportAsync(IEnumerable<FeeCustTemplateModel> models);
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
Task<DataResult<List<FeeCustTemplate>>> GetListAsync(PageRequest request);
/// <summary>
/// 详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<DataResult<FeeCustTemplate>> GetAsync(long id);
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
Task<DataResult> EditAsync(FeeCustTemplate model);
/// <summary>
/// 批量编辑模板
/// </summary>
/// <param name="list"></param>
/// <returns></returns>
Task<DataResult> BulkEditAsync(List<FeeCustTemplate> list);
/// <summary>
/// 批量编辑模板明细
/// </summary>
/// <param name="details"></param>
/// <returns></returns>
Task<DataResult> BulkEditDetailsAsync(List<FeeCustTemplateDetail> details);
/// <summary>
/// 复制模板
/// </summary>
/// <param name="ids"></param>
/// <returns></returns>
Task<DataResult> CopyAsync(params long[] ids);
/// <summary>
/// 根据ID批量删除
/// </summary>
/// <param name="ids"></param>
/// <returns></returns>
Task<DataResult> DeleteAsync(params long[] ids);
}
}