56 lines
2.3 KiB
C#
56 lines
2.3 KiB
C#
using Npoi.Mapper;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WMS.Web.Core.Dto;
|
|
using WMS.Web.Domain.Values;
|
|
|
|
namespace WMS.Web.Domain.IService
|
|
{
|
|
public interface IExportExcelService
|
|
{
|
|
/// <summary>
|
|
/// 全字段导出数据
|
|
/// </summary>
|
|
/// <typeparam name="Response"></typeparam>
|
|
/// <typeparam name="Request"></typeparam>
|
|
/// <param name="request"></param>
|
|
/// <param name="fileName"></param>
|
|
/// <param name="mapper"></param>
|
|
/// <param name="userId"></param>
|
|
/// <param name="companyId"></param>
|
|
/// <param name="type"></param>
|
|
/// <param name="supplierId"></param>
|
|
/// <returns></returns>
|
|
Task ExportAll<Response, Request>(Request request, string fileName, int userId,int companyId, FileDownLoadOrderType type, Mapper mapper = null, int? supplierId = null) where Request : PaginationBaseRequestDto;
|
|
/// <summary>
|
|
/// 列表字段导出数据
|
|
/// </summary>
|
|
/// <typeparam name="Response"></typeparam>
|
|
/// <typeparam name="Request"></typeparam>
|
|
/// <param name="request"></param>
|
|
/// <param name="fileName"></param>
|
|
/// <param name="mapper"></param>
|
|
/// <param name="userId"></param>
|
|
/// <param name="companyId"></param>
|
|
/// <param name="type"></param>
|
|
/// <param name="supplierId"></param>
|
|
/// <returns></returns>
|
|
Task ExportList<Response, Request>(Request request, string fileName, int userId, int companyId, FileDownLoadOrderType type, Mapper mapper = null, int? supplierId = null) where Request : PaginationBaseRequestDto;
|
|
/// <summary>
|
|
/// 列表页导出数据
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
/// <param name="dataList"></param>
|
|
/// <param name="fileName"></param>
|
|
/// <param name="mapper"></param>
|
|
/// <param name="userId"></param>
|
|
/// <param name="type"></param>
|
|
/// <param name="companyId"></param>
|
|
/// <param name="supplierId"></param>
|
|
/// <returns></returns>
|
|
Task Export<T>(List<T> dataList, string fileName,int userId,int companyId, FileDownLoadOrderType type, Mapper mapper = null, int? supplierId = null);
|
|
}
|
|
}
|