B2019-168: Change bar code for not continuous cases should only be applicable based on format flag

This commit is contained in:
Kathy Ruffing 2019-11-11 14:04:38 +00:00
parent 4c7d7b9621
commit 7b930fd143
10 changed files with 11 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -2187,6 +2187,14 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _ChangeBarsOnLinkedText, "@ChangeBarsOnLinkedText");
}
}
private LazyLoad<bool> _SeparateChangeBarsForDiffNotesCautions;
public bool SeparateChangeBarsForDiffNotesCautions
{
get
{
return LazyLoad(ref _SeparateChangeBarsForDiffNotesCautions, "@SeparateChangeBarsForDiffNotesCautions");
}
}
}
#endregion
#endregion

View File

@ -131,7 +131,9 @@ namespace Volian.Print.Library
// the separator must exist and the previous must have a change bar.
// B2019-055 added check if the previous caution or note have the same type number
if ((sep != "") && (tmp.Text == sep) && parent.MyItemInfo.MyPrevious != null && parent.MyItemInfo.MyPrevious.HasChangeBar && (parent.MyItemInfo.MyContent.Type == parent.MyItemInfo.MyPrevious.MyContent.Type))
// B2019-168 added format flag 'SeparateChangeBarsForDiffNotesCautions' to control when fix for B2019-055 would take affect
if ((sep != "") && (tmp.Text == sep) && parent.MyItemInfo.MyPrevious != null && parent.MyItemInfo.MyPrevious.HasChangeBar
&& (!parent.MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.SeparateChangeBarsForDiffNotesCautions || parent.MyItemInfo.MyContent.Type == parent.MyItemInfo.MyPrevious.MyContent.Type))
{
if (MyPageHelper.MyParagraphs.ContainsKey(parent.MyItemInfo.MyPrevious.ItemID))
{