Set the Error Log file name to include the name of the database and the current date and time
Save and Restore the setting to create Red PDFs from MSWORD Show the total Process Time for the Complete Process For individual Phases allow the user to decide if they want backups to be created Set the Database connection string from the settings for individual phases Handle null condition so that the code doesn't bomb Handle relative RO paths in the Proc.INI file Correct the total Step Count by subtracting the number of Sections
This commit is contained in:
@@ -37,8 +37,19 @@ namespace DataLoader
|
||||
img_prefix = ele.GetAttribute("Graphics");
|
||||
}
|
||||
}
|
||||
if (roDbpath == null || roDbpath == "" || roDbpath.ToLower() == @"..\ro")
|
||||
roDbpath = fstPath.Substring(0, fstPath.LastIndexOf('\\')) + @"\ro";
|
||||
DirectoryInfo di2 = new DirectoryInfo(fstPath);
|
||||
roDbpath = roDbpath ?? "";
|
||||
if (roDbpath == "")
|
||||
roDbpath = @"..\ro";
|
||||
while(roDbpath.StartsWith(@"..\"))
|
||||
{
|
||||
di2=di2.Parent;
|
||||
roDbpath = roDbpath.Substring(3);
|
||||
}
|
||||
DirectoryInfo [] dis = di2.GetDirectories(roDbpath);
|
||||
if (dis.Length > 0) roDbpath = dis[0].FullName;
|
||||
//if (roDbpath == null || roDbpath == "")
|
||||
// roDbpath = fstPath.Substring(0, fstPath.LastIndexOf('\\')) + @"\ro";
|
||||
|
||||
// first see if this rodb has been migrated (another dataset may have migrated it)
|
||||
rodb = RODb.GetByFolderPath(roDbpath);
|
||||
|
Reference in New Issue
Block a user