Continuous Action Summary logic
This commit is contained in:
@@ -2746,8 +2746,12 @@ namespace Volian.Print.Library
|
||||
if (KeepOnParentLine(itemInfo)) yoff = parent.YOffset;
|
||||
}
|
||||
float yOffOrig = yoff;
|
||||
// Save step text information to be used to create a PlaceKeeper (Calver Cliffs)
|
||||
BuildPlacekeeper(parent, itemInfo);
|
||||
//BuildContinuousActionSummary(parent, itemInfo); - under construction - jsj
|
||||
|
||||
// Save step text information to be used to create a Continuous Action Summary
|
||||
BuildContinuousActionSummary(parent, itemInfo);
|
||||
|
||||
if (itemInfo.ActiveFormat.MyStepSectionLayoutData.BoxLeftAdj != null)
|
||||
_MyBoxLeftAdj = float.Parse(itemInfo.ActiveFormat.MyStepSectionLayoutData.BoxLeftAdj);
|
||||
ShowSectionTitles = formatInfo.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.ShowSectionTitles || itemInfo.MyDocStyle.ShowSectionTitles;
|
||||
@@ -3886,55 +3890,21 @@ namespace Volian.Print.Library
|
||||
|
||||
private void BuildContinuousActionSummary(vlnParagraph parent, ItemInfo itemInfo)
|
||||
{
|
||||
if (itemInfo.InList(41553,41472,41447))
|
||||
Console.WriteLine("Stop");
|
||||
//if (itemInfo is SectionInfo) //&& (itemInfo as SectionInfo).SectionConfig.Section_Placekeeper.ToUpper() != "N") // if is a section type and the section is marked to create placekeeper
|
||||
//{
|
||||
// MyContAct = new pkParagraph(this);
|
||||
// if (parent != null && parent.MyItemInfo.IsSection)
|
||||
// parent.MyContAct = MyContAct;
|
||||
//}
|
||||
//else if (parent != null && parent.MyContAct != null && itemInfo is StepInfo)//InList(parent.MyItemInfo.ItemID, 513, 514, 519, 520, 525))
|
||||
//{
|
||||
// StepConfig sc = itemInfo.MyConfig as StepConfig;
|
||||
// if (sc != null && sc.Step_CAS == true)
|
||||
// {
|
||||
// if (itemInfo.IsCautionPart || itemInfo.IsNotePart)
|
||||
// MyContAct = parent.MyContAct.AddCautionsAndNotes(this);
|
||||
// else
|
||||
// MyContAct = parent.MyContAct.AddChild(this);
|
||||
// }
|
||||
//}
|
||||
if (itemInfo is SectionInfo) //&& (itemInfo as SectionInfo).SectionConfig.Section_Placekeeper.ToUpper() != "N") // if is a section type and the section is marked to create placekeeper
|
||||
if (itemInfo is SectionInfo)
|
||||
{
|
||||
MyContAct = new pkParagraph(this);
|
||||
if (parent != null && parent.MyItemInfo.IsSection)
|
||||
parent.MyContAct = MyContAct;
|
||||
}
|
||||
else if (itemInfo is StepInfo)//InList(parent.MyItemInfo.ItemID, 513, 514, 519, 520, 525))
|
||||
else if (itemInfo is StepInfo)
|
||||
{
|
||||
StepConfig sc = itemInfo.MyConfig as StepConfig;
|
||||
if (sc != null && sc.Step_CAS == true)
|
||||
if ((sc != null && sc.Step_CAS == "True") || ((sc == null || sc.Step_CAS == null) && itemInfo.IncludeOnContActSum))
|
||||
{
|
||||
//if (parent != null && parent.MyContAct == null)
|
||||
// parent.MyContAct = new pkParagraph(parent);
|
||||
// save this step info for use on the Continuous Action Summary
|
||||
vlnParagraph tparent = parent;
|
||||
while (tparent != null && tparent.MyContAct == null)// .MyParent != null && tparent.MyParent.MyContAct == null) //&& tparent.MyParent.MyItemInfo is StepInfo)//tparent.MyParent.MyContAct == null)
|
||||
{
|
||||
//if (tparent.MyParent.MyContAct != null)
|
||||
// tparent.MyContAct = tparent.MyParent.MyContAct.AddChild(tparent);
|
||||
//else
|
||||
//{
|
||||
//}
|
||||
//if (tparent.MyParent.MyContAct == null)
|
||||
// tparent.MyParent.MyContAct = new pkParagraph(tparent.MyParent);
|
||||
//tparent.MyParent.MyContAct.AddChild(tparent);
|
||||
while (tparent != null && tparent.MyContAct == null)
|
||||
tparent = tparent.MyParent;
|
||||
}
|
||||
//if (parent.MyContAct == null)
|
||||
//{
|
||||
// parent.MyContAct = new pkParagraph(parent);
|
||||
//}
|
||||
if (parent.MyContAct != null)
|
||||
{
|
||||
if (itemInfo.IsCautionPart || itemInfo.IsNotePart)
|
||||
|
Reference in New Issue
Block a user