Better status messages during the retrieval of data for the report
Improved the Select statement used to get RO data from the database Status message added
This commit is contained in:
@@ -29,6 +29,7 @@ using System.Windows.Forms;
|
||||
using System.IO;
|
||||
using System.Data;
|
||||
using RODBInterface;
|
||||
using VlnStatus;
|
||||
|
||||
|
||||
// CmpRpt reads data for the RO database and puts the data into the
|
||||
@@ -98,7 +99,6 @@ namespace CmpRpt
|
||||
string recid=null;
|
||||
string tbl=null;
|
||||
RODB myrodb=null;
|
||||
|
||||
// the next two lists contain group headers for the reports.
|
||||
ArrayList headers = new ArrayList();
|
||||
ArrayList reversehdrs = new ArrayList();
|
||||
@@ -148,8 +148,13 @@ namespace CmpRpt
|
||||
success = myrodb.RODB_GetRootGroups(rootXml);
|
||||
if (success == false) return;
|
||||
|
||||
VlnStatusBar showStatBar = new VlnStatusBar("Complete Referenced Object Report");
|
||||
showStatBar.BarMax = roIDList.Length;
|
||||
showStatBar.StatMsg = "Retrieving RO Information";
|
||||
int inc = 1;
|
||||
foreach (string roid in roIDList)
|
||||
{
|
||||
showStatBar.BarValue = inc++;
|
||||
Application.DoEvents();
|
||||
tbl = roid.Substring(0, 4);
|
||||
recid = (roid.Length > 4) ? roid.Substring(4, 8) : null;
|
||||
@@ -225,7 +230,7 @@ namespace CmpRpt
|
||||
headers.Clear();
|
||||
reversehdrs.Clear();
|
||||
}// end foreach roid
|
||||
|
||||
showStatBar.Dispose();
|
||||
}
|
||||
|
||||
private static string BuildROList(string[] args)
|
||||
|
Reference in New Issue
Block a user