using NPOI.SS.UserModel; namespace YBEE.EQM.Application; /// /// 导出 Excel 定义 /// public class ExportExcelDto { /// /// 是否XLSX格式 /// public bool IsXlsx { get; set; } = true; /// /// 工作表名称 /// public string SheetName { get; set; } = "Sheet1"; /// /// 文件名 /// public string FileName { get; set; } /// /// 标题 /// public string Title { get; set; } /// /// 标题高度 /// public short? TitleHeight { get; set; } /// /// 行高 /// public short? RowHeight { get; set; } /// /// 列头高度 /// public short? ColumnHeaderHeight { get; set; } /// /// 包含导出时间 /// public bool IncludeExportTime { get; set; } = true; /// /// 摘要 /// public string Summary { get; set; } = ""; /// /// 列定义 /// public List> Columns { get; set; } /// /// 数据行 /// public List Items { get; set; } /// /// 自定义概要 /// public Func BuildSummary { get; set; } /// /// 设置Sheet属性 /// public Action SetSheet { get; set; } /// /// 字体大小 /// public double FontSize { get; set; } = 10; /// /// 标题字体大小 /// public double TitleFontSize { get; set; } = 16; /// /// 表头行高 /// public short HeaderHeight { get; set; } = ExportExcelCellStyle.DefaultRowHeight; }