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:
Rich
2012-07-25 21:40:56 +00:00
parent bf9985110a
commit 68d862f71f
4 changed files with 92 additions and 37 deletions

View File

@@ -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);