ExcelModel.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.IO;
  6. namespace EMIS.Utility
  7. {
  8. public class CellItem
  9. {
  10. public int Row { get; set; }
  11. public int Col { get; set; }
  12. public string Value { get; set; }
  13. }
  14. public class ListItem
  15. {
  16. public int StartRow { get; set; }
  17. public int StartColumn { get; set; }
  18. public int EndColumn { get; set; }
  19. public string[][] Values { get; set; }
  20. }
  21. public class PictureItem
  22. {
  23. public int StartRow { get; set; }
  24. public int StartColumn { get; set; }
  25. public int EndRow { get; set; }
  26. public int EndColumn { get; set; }
  27. public Stream Picture { get; set; }
  28. }
  29. public class PageItem
  30. {
  31. public PageItem()
  32. {
  33. CellItemList = new List<CellItem>();
  34. ListItemList = new List<ListItem>();
  35. PictureItemList = new List<PictureItem>();
  36. ColumnWidthList = new Dictionary<int, double>();
  37. }
  38. public string Name { get; set; }
  39. public List<CellItem> CellItemList { get; set; }
  40. public List<ListItem> ListItemList { get; set; }
  41. public List<PictureItem> PictureItemList { get; set; }
  42. public IDictionary<int, double> ColumnWidthList { get; set; }
  43. }
  44. }