B2019-011 Better align the First level sub step tab with the high level step tab
This commit is contained in:
parent
29f2e34fd8
commit
b874d9e92e
@ -4007,7 +4007,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
tbformat = (lv == 0) ? "{numeric}." : "{alpha}.";
|
tbformat = (lv == 0) ? "{numeric}." : "{alpha}.";
|
||||||
}
|
}
|
||||||
bool trimTabStart = false;
|
bool trimTabStart = false;
|
||||||
|
bool dontTrimParentTabBeforeAppending = false; // B2019-011 for Barakah Alarm format
|
||||||
if (useSubStepTabs || tbformat.IndexOf("{seq}") > -1)
|
if (useSubStepTabs || tbformat.IndexOf("{seq}") > -1)
|
||||||
{
|
{
|
||||||
// If the document style has the flag DSS_UnNumLikeRoman, don't do the normal tab, change to alpha
|
// If the document style has the flag DSS_UnNumLikeRoman, don't do the normal tab, change to alpha
|
||||||
@ -4041,6 +4041,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
tbformat = seqtabs[itmp].PrintTabFormat; // seqtab in 16bit, i.e. '. or )' etc.
|
tbformat = seqtabs[itmp].PrintTabFormat; // seqtab in 16bit, i.e. '. or )' etc.
|
||||||
else
|
else
|
||||||
tbformat = tbformat.Replace("{seq}", seqtabs[itmp].PrintTabFormat);
|
tbformat = tbformat.Replace("{seq}", seqtabs[itmp].PrintTabFormat);
|
||||||
|
dontTrimParentTabBeforeAppending = seqtabs[itmp].DontTrimParentTabBeforeAppending; // B2019-011 put in for Barakah Alarm format to better align the first level sub step with the high level step
|
||||||
|
|
||||||
string tbtoken = seqtabs[localPrintLevel % seqtabs.MaxIndex].TabToken; // seqstart in 16bit, number/letter
|
string tbtoken = seqtabs[localPrintLevel % seqtabs.MaxIndex].TabToken; // seqstart in 16bit, number/letter
|
||||||
|
|
||||||
// if the tab has a character before the token, trim the front of tab:
|
// if the tab has a character before the token, trim the front of tab:
|
||||||
@ -4076,7 +4078,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
else if (myparent.IsSection || myparent.IsHigh || myparent.IsSequential || (myparent.IsRNOPart && myparent.FormatStepData.NumberHighLevel && tbformat.ToUpper().Contains("WPAR")))
|
else if (myparent.IsSection || myparent.IsHigh || myparent.IsSequential || (myparent.IsRNOPart && myparent.FormatStepData.NumberHighLevel && tbformat.ToUpper().Contains("WPAR")))
|
||||||
{
|
{
|
||||||
parentTab = myparent.MyTab.CleanText.Trim();
|
parentTab = (dontTrimParentTabBeforeAppending) ? myparent.MyTab.CleanText : myparent.MyTab.CleanText.Trim(); // B2019-011 for Barakah Alarm format adde the don't trim flag
|
||||||
if ((((MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_AddDotZeroStdHLS) == E_DocStructStyle.DSS_AddDotZeroStdHLS) && myparent.MyContent.Type == 20002) ||
|
if ((((MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_AddDotZeroStdHLS) == E_DocStructStyle.DSS_AddDotZeroStdHLS) && myparent.MyContent.Type == 20002) ||
|
||||||
(myparent.IsStepPart && myparent.FormatStepData.AppendDotZero)) // F2018-022 Added step type flag to append a ".0" to the end of the high level step - put in for Westinghouse single column format (wst1), B2018-119 only do this for steps
|
(myparent.IsStepPart && myparent.FormatStepData.AppendDotZero)) // F2018-022 Added step type flag to append a ".0" to the end of the high level step - put in for Westinghouse single column format (wst1), B2018-119 only do this for steps
|
||||||
parentTab = parentTab.Replace(".0", ""); // this was added in, remove for substeps.
|
parentTab = parentTab.Replace(".0", ""); // this was added in, remove for substeps.
|
||||||
|
@ -4324,6 +4324,14 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return LazyLoad(ref _TabFormat, "@PrintTabFormat");
|
return LazyLoad(ref _TabFormat, "@PrintTabFormat");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private LazyLoad<bool> _DontTrimParentTabBeforeAppending; // B2019-011 for Barakah Alarm format
|
||||||
|
public bool DontTrimParentTabBeforeAppending
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return LazyLoad(ref _DontTrimParentTabBeforeAppending, "@DontTrimParentTabBeforeAppending");
|
||||||
|
}
|
||||||
|
}
|
||||||
public override string GetPDDisplayName()
|
public override string GetPDDisplayName()
|
||||||
{ return string.Format("Index [{0}]",Index); }
|
{ return string.Format("Index [{0}]",Index); }
|
||||||
public override string GetPDDescription()
|
public override string GetPDDescription()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user