IExcelHelper.cs 1.3 KB

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Text;
  5. using XYY.Core.Standard.ExcelHelper.MSExcelHelper;
  6. namespace XYY.Core.Standard.ExcelHelper.MSExcelHelper
  7. {
  8. public interface IExcelHelper
  9. {
  10. string OutData<Mapping, T>(List<T> data) where Mapping : MSExcelClassMapping<T>;
  11. string OutData<Mapping, T>(List<T> data, string fileName) where Mapping : MSExcelClassMapping<T>;
  12. List<T> LoadData<Mapping, T>(string fileName) where Mapping : MSExcelClassMapping<T>;
  13. List<T> LoadDataByByte<Mapping, T>(byte[] data) where Mapping : MSExcelClassMapping<T>;
  14. byte[] OutDataAsByte<Mapping, T>(List<T> data) where Mapping : MSExcelClassMapping<T>;
  15. byte[] OutDataAsByte<T, Mapping>(List<T> data, Mapping mapping) where Mapping : MSExcelClassMapping<T>;
  16. byte[] OutLocalTableDataByte(System.Data.DataTable data);
  17. string OutLocalTableData(System.Data.DataTable data);
  18. string OutLocalData<T, Mapping>(List<T> data, Mapping mapping) where Mapping : MSExcelClassMapping<T>;
  19. string OutLocalData<Mapping, T>(List<T> data) where Mapping : MSExcelClassMapping<T>;
  20. List<T> LoadDataAsStream<Mapping, T>(Stream stream) where Mapping : MSExcelClassMapping<T>;
  21. byte[] OutDataAsByte<T>(List<T> data, List<MSExcelClassMapping<T>> list);
  22. }
  23. }