|
@@ -71,8 +71,7 @@ namespace SAGA.MBI.ToolsData
|
|
|
{
|
|
|
string fullPah = floor.FullPath;
|
|
|
Document doc = ExternalDataWrapper.Current.UiApp.Application.OpenDocumentFile(fullPah);
|
|
|
-
|
|
|
- ExportItemGroup group =new ExportItemGroup(floor.ToString());
|
|
|
+ ExportItemGroup group =new ExportItemGroup(floor.ToString(),DalProjectTree.GetBuildingFloorName(floor.Id));
|
|
|
var systems = doc.GetElements<MEPSystem>();
|
|
|
foreach (var mepSystem in systems)
|
|
|
{
|
|
@@ -112,9 +111,9 @@ namespace SAGA.MBI.ToolsData
|
|
|
|
|
|
foreach (var context in contexts)
|
|
|
{
|
|
|
+
|
|
|
int index = 0;
|
|
|
- var floorName = context.FloorName;
|
|
|
- ISheet sheet = book.CreateSheet(floorName);
|
|
|
+ ISheet sheet = book.CreateSheet(context.BuildingFloorName);
|
|
|
|
|
|
#region 添加表头
|
|
|
|
|
@@ -147,7 +146,7 @@ namespace SAGA.MBI.ToolsData
|
|
|
row = sheet.CreateRow(index);
|
|
|
|
|
|
ICell cell = row.CreateCell(0, NPOI.SS.UserModel.CellType.String);
|
|
|
- cell.SetCellValue(floorName);
|
|
|
+ cell.SetCellValue(context.FloorName);
|
|
|
|
|
|
cell = row.CreateCell(1, NPOI.SS.UserModel.CellType.String);
|
|
|
cell.SetCellValue(type);
|
|
@@ -272,12 +271,14 @@ namespace SAGA.MBI.ToolsData
|
|
|
|
|
|
class ExportItemGroup
|
|
|
{
|
|
|
- public ExportItemGroup(string floorName)
|
|
|
+ public ExportItemGroup(string floorName,string buildingFloorName)
|
|
|
{
|
|
|
FloorName = floorName;
|
|
|
+ BuildingFloorName = buildingFloorName;
|
|
|
Items = new List<ExportItem>();
|
|
|
}
|
|
|
public List<ExportItem> Items { get; set; }
|
|
|
+ public string BuildingFloorName { get; set; }
|
|
|
public string FloorName { get; set; }
|
|
|
}
|
|
|
class ExportItem
|