C2014-006: for BGE alarms, transition to window should have window with HLS text

Fix B2015-211 (pagination flag to fix step text from overlapping bottom continue message)
This commit is contained in:
Kathy Ruffing 2016-06-27 13:18:00 +00:00
parent 4906031916
commit 7e2d6ca977
3 changed files with 17 additions and 1 deletions

View File

@ -1133,7 +1133,13 @@ namespace VEPROMS.CSLA.Library
ItemInfo secitm = TranGetSectionItem(tb._ToItem);
if ((!((tb._TransUI & E_TransUI.StepAllowNone) == E_TransUI.StepAllowNone)) || tb._ToItem.MyContent.Type > 20000)
{
if (tb.HasText)
if (tb._FormatData.PrintData.SpecialCaseCalvertAlarm && tb._ToItem.IsHigh && tb._ToItem.FormatStepData.StepEditData.TypeMenu.MenuItem.ToUpper().Contains("WINDOW"))
{
//use text rather than tab: (BGE Alarm window transitions - C2014-006)
tb.ReplaceToken(Tab(tb._ToItem, true) + ' ' + tb._ToItem.DisplayText);
return true;
}
else if (tb.HasText)
{
// check for transition that goes to a procedure step section with title of 'Procedure steps' followed
// by ', Step'. This should output as 'Procedure step xyz' rather than 'Procedure steps, step xyz'

View File

@ -768,6 +768,14 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _SpecialCaseCalvertAlarm, "@SpecialCaseCalvertAlarm");
}
}
private LazyLoad<bool> _SpecialCaseCalvertPagination;
public bool SpecialCaseCalvertPagination
{
get
{
return LazyLoad(ref _SpecialCaseCalvertPagination, "@SpecialCaseCalvertPagination");
}
}
private LazyLoad<bool> _WCNTraining;
public bool WCNTraining
{

View File

@ -1194,6 +1194,8 @@ namespace Volian.Print.Library
yAddForBtmMsg = myBottomMsgSpace;
else
yAddForBtmMsg = 0;
// The following was added to fix B2015-211: step text was overlapping bottom continue message
if (myPara.MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertPagination) yAddForBtmMsg = -myBottomMsgSpace;
spaceOnPage += yAddForBtmMsg;
if (!IsIP3Format)
{