From 2216fba3cc0585064f370ae8348bf6b90ef99e5a Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期二, 03 九月 2024 18:03:34 +0800
Subject: [PATCH] 修复一些bug

---
 _Main/BL/Type_LocalCell_DemandComparison/StaticMethod_FillRows.qbl |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/_Main/BL/Type_LocalCell_DemandComparison/StaticMethod_FillRows.qbl b/_Main/BL/Type_LocalCell_DemandComparison/StaticMethod_FillRows.qbl
index 391100a..f056d05 100644
--- a/_Main/BL/Type_LocalCell_DemandComparison/StaticMethod_FillRows.qbl
+++ b/_Main/BL/Type_LocalCell_DemandComparison/StaticMethod_FillRows.qbl
@@ -3,6 +3,7 @@
 StaticMethod FillRows (
   const GeneralExcelImportAndExportDataTable general,
   Strings rowKeys,
+  NamedValueTree rowKeyIndexTree,
   NamedValueTree rowTree,
   constcontent GeneralExcelImportAndExportDataRows rows
 )
@@ -30,7 +31,14 @@
       tempHandle := rowTree.GetHandle( rowKey );
       rowTree.Root().AddChild( tempHandle ,i);
       rows.Add( tempRowKeyCell1.GeneralExcelImportAndExportDataRow());
-      rowKeys.Add( rowKey );
+      
+      rowKeyHanlde := rowKeyIndexTree.GetHandle( rowKey );
+      rowKeyIndex := guard( rowKeyIndexTree.Root().Child( rowKeyHanlde ),null( NamedValue ));
+      if( isnull( rowKeyIndex )){
+        rowKeys.Add( rowKey );
+        rowKeyIndexTree.Root().AddChild( rowKeyHanlde,rowKeys.Size() - 1 );
+      }
+      
     }
   *]
 }

--
Gitblit v1.9.3