B2022-129: Barakah - New section type for meta section support, tabbing (location & numbering) & INITIAL header location
This commit is contained in:
@@ -4057,7 +4057,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (eds != null && eds.Count == 1 && eds[0].Type == 0)
|
||||
{
|
||||
ItemInfo srcItem = ItemInfo.Get(eds[0].ItemID);
|
||||
if (srcItem != null) // B2018-097 handle a null reference
|
||||
if (srcItem != null && ((srcItem.ActiveParent as ItemInfo) != null) && ((srcItem.ActiveParent) as ItemInfo).IsStep) // B2018-097 handle a null reference
|
||||
return ((srcItem.ActiveParent as ItemInfo).FormatStepData.TabData.IdentEdit.Contains("{Section Prefix}") && FormatStepData.TabData.IdentEdit.Contains("{Section Prefix}"));
|
||||
}
|
||||
return false;
|
||||
@@ -4878,6 +4878,8 @@ namespace VEPROMS.CSLA.Library
|
||||
level++;
|
||||
if (MyDocStyle != null && (MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_SkipTwoStepLevels) == E_DocStructStyle.DSS_SkipTwoStepLevels && level == 0)
|
||||
level += 2;
|
||||
// B2022-129: don't indent HLS when flag is on (Barakah - single column step attachment with meta sect)
|
||||
if (MyDocStyle != null && (MyDocStyle.AdjSectTitleLoc)) level--;
|
||||
if (level < 0) level = 0;
|
||||
ProfileTimer.Pop(profileDepth);
|
||||
return level;
|
||||
|
@@ -385,6 +385,18 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region AdjSectTitleLoc
|
||||
[Category("Miscellaneous")]
|
||||
[Description("Adjust Section Title Location")]
|
||||
private LazyLoad<bool> _AdjSectTitleLoc;
|
||||
public bool AdjSectTitleLoc // B2022-129: don't indent HLS when flag is on (Barakah - single column step attachment with meta sect)
|
||||
{
|
||||
get
|
||||
{
|
||||
return LazyLoad(ref _AdjSectTitleLoc, "@AdjSectTitleLoc");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region ShowAlarmPointWindowInfo
|
||||
[Category("Miscellaneous")]
|
||||
[Description("Show Alarm Point Table Info in Step Editor")]
|
||||
|
Reference in New Issue
Block a user