调研信息表修改

This commit is contained in:
2026-08-13 17:32:28 +08:00
parent 8ee6365829
commit 61446541e3
5 changed files with 132 additions and 10 deletions
@@ -136,7 +136,7 @@ public static class ExcelExportHelper
#region sheet
// 打开模板文件
var templateFile = new FileStream(tplPath, FileMode.Open, FileAccess.Read);
using var templateFile = new FileStream(tplPath, FileMode.Open, FileAccess.Read);
// 获取文件流
var templateStream = new MemoryStream();
@@ -161,13 +161,13 @@ public static class ExcelExportHelper
if (removeExcelIndexList != null)
{
var worksheet = workbook.Worksheet(1); // 索引从1开始
foreach (int colIndex in removeExcelIndexList.OrderByDescending(t=>t))
foreach (int colIndex in removeExcelIndexList.OrderByDescending(t => t))
{
// 删除整列
worksheet.Column(colIndex).Delete();
}
}
//中文替换项目术语
if (data.TrialObjectNameList?.Count > 0)