excel导出修改

dev
cjy 4 weeks ago
parent 3830c3e804
commit 1d392d82c9

@ -17,6 +17,7 @@ using OfficeOpenXml;
using NPOI.Util;
using NPOI.SS.UserModel;
using NPOI.HPSF;
using DS.Module.Core.Extensions;
namespace DS.Module.ExcelModule
{
@ -81,7 +82,18 @@ namespace DS.Module.ExcelModule
{
var columnSet = req.ColumnSets[n];
var key = columnSet.DataIndex;
info.Add(columnSet.Title, temp[key]);
if (temp[key].ObjToString().ToLower()== "false")
{
info.Add(columnSet.Title, "否");
}
if (temp[key].ObjToString().ToLower() == "true")
{
info.Add(columnSet.Title, "是");
}
else
{
info.Add(columnSet.Title, temp[key]);
}
}
values.Add(info);
}

Loading…
Cancel
Save