Calvert Alarms: 2 consecutive Notes with Warning after did not print correctly.

This commit is contained in:
Kathy Ruffing 2014-08-18 13:32:57 +00:00
parent 0ac3d3291f
commit c24d6b94ea

View File

@ -3251,7 +3251,12 @@ namespace VEPROMS.CSLA.Library
prevTbFormat = MyPrevious.IsInRNO ? prevStepData.TabData.RNOIdentPrint : prevStepData.TabData.IdentPrint; prevTbFormat = MyPrevious.IsInRNO ? prevStepData.TabData.RNOIdentPrint : prevStepData.TabData.IdentPrint;
prevTbFormat = ReplaceStepToken(prevTbFormat); prevTbFormat = ReplaceStepToken(prevTbFormat);
} }
if (NextItem != null) bool specialCalvertAlarm = false;
if (ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm)
{
if (GetNextItem() != null && MyContent.Type != GetNextItem().MyContent.Type) specialCalvertAlarm = true;
}
if (NextItem != null && !specialCalvertAlarm)
{ {
nextStepData = NextItem.FormatStepData; nextStepData = NextItem.FormatStepData;
// tried to duplicate functionality from 16-bit code. // tried to duplicate functionality from 16-bit code.
@ -3361,8 +3366,8 @@ namespace VEPROMS.CSLA.Library
// tabbing correctly. // tabbing correctly.
if (ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm) if (ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm)
{ {
if (MyPrevious != null && MyContent.Type != MyPrevious.MyContent.Type) return true; if (MyPrevious != null && MyContent.Type != MyPrevious.MyContent.Type) return false;
if (GetNextItem() != null && MyContent.Type != GetNextItem().MyContent.Type) return true; if (GetNextItem() != null && MyContent.Type != GetNextItem().MyContent.Type) return false;
} }
if (!FormatStepData.MixCautionsAndNotes) return false; if (!FormatStepData.MixCautionsAndNotes) return false;