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:
@@ -1638,14 +1638,15 @@ namespace RODBInterface
|
||||
public VlnXmlElement RODB_ReadRO(string tbl, string recid)
|
||||
{
|
||||
VlnXmlElement retele = null;
|
||||
string readstr = "SELECT ParentID, AccPageID, Info FROM " + tbl + " WHERE "+ ((recid==null)? "ParentID = '00000000'" : ("RecID = '" + recid + "'"));
|
||||
string readstr = "SELECT ParentID, AccPageID, Info FROM " + tbl + " WHERE "+ ((recid==null)? "RecType=3 and ParentID = '00000000'" : ("RecID = '" + recid + "'"));
|
||||
try
|
||||
{
|
||||
DBE.Command(readstr);
|
||||
DBE.Reader();
|
||||
|
||||
if (recid == null)
|
||||
DBE.Read(); // skip the first parentID record of 00000000
|
||||
// With the additional check for a recid=null, in the WHERE statement (above), we now longer need to check and skip for a null recid - jsj 4-17-2015
|
||||
//if (recid == null)
|
||||
// DBE.Read(); // skip the first parentID record of 00000000
|
||||
|
||||
if (DBE.Read())
|
||||
{
|
||||
|
@@ -1146,7 +1146,7 @@ namespace RODBInterface
|
||||
if (chldnode is VlnXmlElement)
|
||||
{
|
||||
VlnXmlElement elem = (VlnXmlElement) chldnode;
|
||||
// showStat.StatusMessage = elem.InnerText;
|
||||
showStat.StatusMessage = elem.InnerText;
|
||||
|
||||
// if it's a group, recurse through it.
|
||||
if (chldnode.Name == "vlnGroup")
|
||||
|
Reference in New Issue
Block a user