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:
Rich
2014-01-30 21:00:18 +00:00
parent cad3c3d6ee
commit 60234adaf2
7 changed files with 45 additions and 13 deletions

View File

@@ -1303,6 +1303,7 @@ namespace Volian.Print.Library
// from the beginning of the step.
// Note that yLocation is negative to have items in descending
// order so that adding yTop decrements their values.
if(!myList[stepLevel].ContainsKey(yTop - yLocation))
myList[stepLevel].Add(yTop - yLocation, para);
}
if (myList[stepLevel].Count == 0)
@@ -1666,9 +1667,9 @@ namespace Volian.Print.Library
float yForCheckoff = yoff; //0; - default checkoff row is same as FIRST line of text
// if dropCheckoff is true, then the checkoff is place on the same of row as the LAST line of text
bool dropCheckoff = itemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.CheckOffData.DropCheckOff;
VlnFlexGrid myFlexGrid = new VlnFlexGrid(1, 1);
if (itemInfo.MyContent.MyGrid != null)
{
VlnFlexGrid myFlexGrid = new VlnFlexGrid(1, 1);
myFlexGrid.LoadGrid(itemInfo);
MyGrid = new vlnTable(myFlexGrid, cb);
Height = MyGrid.Height;
@@ -1900,9 +1901,9 @@ namespace Volian.Print.Library
float yoffadj = 0;
if (itemInfo.Tables[0].IsTable)
{
VlnFlexGrid fg = new VlnFlexGrid(1, 1);
fg.LoadGrid(itemInfo.Tables[0]);
if (fg.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None && !fg.TopRowHasBorder())
//VlnFlexGrid fg = myFlexGrid;
//fg.LoadGrid(itemInfo.Tables[0]);
if (myFlexGrid.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None && !myFlexGrid.TopRowHasBorder())
yoffadj = -SixLinesPerInch;
}