|
@@ -167,34 +167,14 @@ namespace SAGA.MBI.ToolsData.ModeCheck
|
|
|
|
|
|
#region 添加数据
|
|
|
int index = 3;
|
|
|
- //添加 共检查XXX条数据,未通过检查的如下 提示
|
|
|
- IRow rowTip = sheet.CreateRow(index - 1);
|
|
|
- rowTip.AddCell(0, $"总检查{Results.Count}条数据,未通过检查的如下", DataCheckNPOIStyle.Title);
|
|
|
- //IRow row4 = sheet.CreateRow(index);
|
|
|
- //row4.HeightInPoints = 15;
|
|
|
-
|
|
|
- //row4.AddCell(0, "楼层本地名称", DataCheckNPOIStyle.Title);
|
|
|
- //row4.AddCell(1, "文件名", DataCheckNPOIStyle.Title);
|
|
|
- //row4.AddCell(2, "文件地址", DataCheckNPOIStyle.Title);
|
|
|
- //row4.AddCell(3, "族名称", DataCheckNPOIStyle.Title);
|
|
|
- //row4.AddCell(4, "类型", DataCheckNPOIStyle.Title);
|
|
|
- //row4.AddCell(5, "ID", DataCheckNPOIStyle.Title);
|
|
|
- //row4.AddCell(6, "通过", DataCheckNPOIStyle.Title);
|
|
|
- //row4.AddCell(7, "备注(失败原因)", DataCheckNPOIStyle.Title);
|
|
|
foreach (FamilyNameCheckResult result in Results)
|
|
|
{
|
|
|
- SagaSignCheckResult rbase = result.RBase as SagaSignCheckResult;
|
|
|
- if (rbase == null)
|
|
|
- continue;
|
|
|
//全部显示
|
|
|
//if (result.IsRight) continue;
|
|
|
index++;
|
|
|
IRow rowN = sheet.CreateRow(index);
|
|
|
DataCheckNPOIStyle style = result.IsRight ? DataCheckNPOIStyle.Content : DataCheckNPOIStyle.Error;
|
|
|
int c = 0;
|
|
|
- rowN.AddCell(c++, rbase.RFloorName, style);
|
|
|
- rowN.AddCell(c++, rbase.RFileName, style);
|
|
|
- rowN.AddCell(c++, rbase.RPath, style);
|
|
|
rowN.AddCell(c++, result.FamilyName, style);
|
|
|
rowN.AddCell(c++, result.Type.GetDescription(), style);
|
|
|
string rowN4 = result.IsRight ? "通过" : "不通过";
|