Browse Source

Bug 再次查看汇总报表,特别项目勾选保持一致时,升级汇总数据库Bug

MaiXinRong 9 years ago
parent
commit
4c588dd337
1 changed files with 14 additions and 1 deletions
  1. 14 1
      Report/ProjGather/rpgGatherData.pas

+ 14 - 1
Report/ProjGather/rpgGatherData.pas

@@ -192,9 +192,22 @@ begin
 end;
 
 function TrpgGatherData.GetCurSpecialProjCount: Integer;
+var
+  sgsTables: TStringList;
+  iTable: Integer;
 begin
   Result := 0;
-
+  sgsTables := TStringList.Create;
+  try
+    FConnection.GetTableNames(sgsTables);
+    for iTable := 0 to sgsTables.Count - 1 do
+    begin
+      if Pos(SBills_SProj, sgsTables.Strings[iTable]) > 0 then
+        Inc(Result);
+    end;
+  finally
+    sgsTables.Free;
+  end;
 end;
 
 procedure TrpgGatherData.LoadRelaData(AProjectID: Integer);