B2019-168: Change bar code for not continuous cases should only be applicable based on format flag
This commit is contained in:
parent
4c7d7b9621
commit
7b930fd143
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.
@ -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
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user