Added property ChildrenProcessed to record how many procedures are found to process
Added code to display message box when no procedures are found to be processed and terminates the processing. Utilized ChildrenProcessed property when processing procedures Added format changes to correct remaining Braidwood issues Added code to resolve unit information in section transition Modified page break logic to resolve issue with Braidwood deviation documents Added code to resolve page number when section is a word document section Added check to verify location was not already in list prior to adding it to list Reduced number of instances of Volian flexgrid during printing
This commit is contained in:
@@ -331,6 +331,8 @@ namespace DataLoader
|
||||
{
|
||||
vb.LoadChildren(vs.GetChildren(vb.ToString()));
|
||||
List<vlnObject> lv = vb.Children;
|
||||
if (vb.Children.Count == 0)
|
||||
frmMain.AddError("No children found for {0}", vb.Path);
|
||||
foreach (vlnObject vbc in lv)
|
||||
{
|
||||
if (vbc.Path.ToUpper().StartsWith(OnlyThisFolder) || OnlyThisFolder.StartsWith(vbc.Path.ToUpper()))
|
||||
@@ -341,6 +343,7 @@ namespace DataLoader
|
||||
return;
|
||||
frmMain.Status = "Loading " + vbc.Title;
|
||||
MigrateChildren(vbc, vs, dbConn, idc, tnc);
|
||||
frmMain.ChildrenProcessed++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -72,6 +72,12 @@ namespace DataLoader
|
||||
Application.DoEvents();
|
||||
}
|
||||
}
|
||||
private int _ChildrenProcessed;
|
||||
public int ChildrenProcessed
|
||||
{
|
||||
get { return _ChildrenProcessed; }
|
||||
set { _ChildrenProcessed = value; }
|
||||
}
|
||||
private frmErrors _MyFrmErrors = null;
|
||||
public frmErrors MyFrmErrors
|
||||
{
|
||||
@@ -817,6 +823,7 @@ namespace DataLoader
|
||||
}
|
||||
private void completeToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
ChildrenProcessed = 0;
|
||||
ProcessFailed = false;
|
||||
ProcessComplete = true;
|
||||
ProcessTime = DateTime.Now;
|
||||
@@ -824,6 +831,11 @@ namespace DataLoader
|
||||
// Phase 1 - Convert dBase to SQL
|
||||
btnConvert_Click(this, new System.EventArgs());
|
||||
if (ProcessFailed) return;
|
||||
if (ChildrenProcessed == 0)
|
||||
{
|
||||
MessageBox.Show("No children found to convert. Check vlnControl.xml file. Process complete");
|
||||
return;
|
||||
}
|
||||
mb.Append("dBase Conversion Complete");
|
||||
Status = "Backing up Phase 1 Data";
|
||||
Backup("_" + MySettings.Phase1Suffix);
|
||||
|
Reference in New Issue
Block a user