平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

64 lines
1.0 KiB

  1. //
  2. namespace SafeCampus.System;
  3. /// <summary>
  4. /// 文件导入通用输出
  5. /// </summary>
  6. public class ImportPreviewOutput<T> where T : class
  7. {
  8. /// <summary>
  9. /// 是否有错误
  10. /// </summary>
  11. public bool HasError { get; set; }
  12. /// <summary>
  13. /// 动态表头
  14. /// </summary>
  15. public List<TableColumns> TableColumns { get; set; } = new List<TableColumns>();
  16. /// <summary>
  17. /// 数据
  18. /// </summary>
  19. public List<T> Data { get; set; }
  20. }
  21. /// <summary>
  22. /// 动态表头
  23. /// </summary>
  24. public class TableColumns
  25. {
  26. /// <summary>
  27. /// 标题
  28. /// </summary>
  29. public string Title { get; set; }
  30. /// <summary>
  31. /// 数据源
  32. /// </summary>
  33. public string DataIndex { get; set; }
  34. /// <summary>
  35. /// 宽度
  36. /// </summary>
  37. public int Width { get; set; } = 120;
  38. /// <summary>
  39. /// 超过宽度将自动省略
  40. /// </summary>
  41. public bool Ellipsis { get; set; }
  42. /// <summary>
  43. /// 是否是日期格式
  44. /// </summary>
  45. public bool Date { get; set; }
  46. }