Beefed up the logic that determines if we need to strip the “S” from the end of the CAUTIOS or NOTES tab.
This commit is contained in:
parent
65ba080983
commit
0166b06209
@ -1575,7 +1575,10 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return includeOnCAS;
|
return includeOnCAS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public bool IsSameType(ItemInfo cmpItmInfo)
|
||||||
|
{
|
||||||
|
return (((int)MyContent.Type) % 10000) == (((int)cmpItmInfo.MyContent.Type) % 10000);
|
||||||
|
}
|
||||||
public bool IsCautionOrNotePart
|
public bool IsCautionOrNotePart
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -4045,7 +4048,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
// use of the MixCautionsAndNotes format flag - no bullet is used, if more that one replace the tab
|
// use of the MixCautionsAndNotes format flag - no bullet is used, if more that one replace the tab
|
||||||
// with a bullet. Also, if only one in group and tab text ends with 'S', remove it:
|
// with a bullet. Also, if only one in group and tab text ends with 'S', remove it:
|
||||||
bool mixCandN = MixCautionNotesDiffType();
|
bool mixCandN = MixCautionNotesDiffType();
|
||||||
if ((MyPrevious == null && (nextItem == null || specialCalvertAlarm)) || mixCandN || FormatStepData.SeparateBox)
|
if (((MyPrevious == null || !this.IsSameType(MyPrevious)) && ((nextItem == null || !this.IsSameType(nextItem)) || specialCalvertAlarm)) || mixCandN || FormatStepData.SeparateBox)
|
||||||
{
|
{
|
||||||
if (_MyHeader.CleanText.ToUpper().EndsWith("S"))
|
if (_MyHeader.CleanText.ToUpper().EndsWith("S"))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user