|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
-
- //
-
-
-
-
-
-
-
-
- namespace SafeCampus.System;
-
- /// <summary>
- /// 文件导入通用输出
- /// </summary>
- public class ImportPreviewOutput<T> where T : class
- {
- /// <summary>
- /// 是否有错误
- /// </summary>
- public bool HasError { get; set; }
-
- /// <summary>
- /// 动态表头
- /// </summary>
- public List<TableColumns> TableColumns { get; set; } = new List<TableColumns>();
-
- /// <summary>
- /// 数据
- /// </summary>
- public List<T> Data { get; set; }
- }
-
- /// <summary>
- /// 动态表头
- /// </summary>
- public class TableColumns
- {
- /// <summary>
- /// 标题
- /// </summary>
- public string Title { get; set; }
-
- /// <summary>
- /// 数据源
- /// </summary>
- public string DataIndex { get; set; }
-
- /// <summary>
- /// 宽度
- /// </summary>
- public int Width { get; set; } = 120;
-
- /// <summary>
- /// 超过宽度将自动省略
- /// </summary>
- public bool Ellipsis { get; set; }
-
- /// <summary>
- /// 是否是日期格式
- /// </summary>
- public bool Date { get; set; }
- }
|