F2018-025 Treat the HSL with a “.0’ as a section number/title and the first level substeps as high level steps, adjusting the tab numbering and positions accordingly through all the substep levels

This commit is contained in:
2018-04-11 19:44:37 +00:00
parent c93cee7f20
commit 89128764b7
3 changed files with 28 additions and 3 deletions

View File

@@ -1665,8 +1665,8 @@ namespace VEPROMS.CSLA.Library
{
get
{
if (ItemID == 95759 && _FromType == null)
Console.WriteLine("\"Null FromType\",{0},{1},\"{2}\",{3}", ItemID, MyContent.Type, DisplayNumber, MyItemInfoUnique);
//if (ItemID == 95759 && _FromType == null)
// Console.WriteLine("\"Null FromType\",{0},{1},\"{2}\",{3}", ItemID, MyContent.Type, DisplayNumber, MyItemInfoUnique);
return _FromType;
}
set { _FromType = value; }
@@ -3986,6 +3986,17 @@ namespace VEPROMS.CSLA.Library
localPrintLevel += 5;
}
int itmp = (localPrintLevel + PrintBias + OffsetTab) % seqtabs.MaxIndex;
// F2018-025 Westinghouse when a high level step is used as a section number/title,
// adjust the step/substep numbering where the first level substep uses the high level step tabbing format
// and the following sub-substeps tabbing format are "shifted" accordingly (ex should look like ASS-101 Attachment 1 section 4 tabbing)
if (!IsHigh && MyHLS != null && MyHLS.FormatStepData.AppendDotZero)
{
if (localPrintLevel > 1)
{
localPrintLevel--;
itmp = (localPrintLevel + PrintBias + OffsetTab) % seqtabs.MaxIndex;
}
}
if (!tbformat.Contains(@"{!C"))
tbformat = seqtabs[itmp].PrintTabFormat; // seqtab in 16bit, i.e. '. or )' etc.
else