Added support for Wolf Creek Background Indent Used by a number of plants

This commit is contained in:
Rich
2016-05-27 18:06:28 +00:00
parent f4609c2f50
commit 65ba080983
2 changed files with 25 additions and 5 deletions

View File

@@ -3819,6 +3819,22 @@ namespace VEPROMS.CSLA.Library
}
return false;
}
// Function to find if in part of a Background Step
public bool IsPartOfBackgroundStep()
{
if (ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.WolfCreekBackgroundFormat)
{
ItemInfo itm = this;
while (itm.MyPrevious != null)
{
if (itm.MyPrevious.IsBackgroundStep()) return true;
if (itm.MyPrevious != null && itm.MyPrevious.IsStep && itm.MyPrevious.FormatStepData.Type.ToUpper() == "TITLEWITHTEXTBELOW" && FormatStepData.Type.ToUpper() != "IMPLICITOR") return true;
itm = itm.MyPrevious;
}
return false;
}
return false;
}
private bool InNote()
{
// walk up until procedure level and if finding a note type, return true, otherwise false.