B2017-192: SAMG Supplemental facing page, incorrect steps on facing pages depending on page breaks of steps.
This commit is contained in:
@@ -6977,27 +6977,36 @@ namespace VEPROMS.CSLA.Library
|
||||
[Serializable()]
|
||||
public partial class SectionInfo : ItemInfo, IVEDrillDownReadOnly
|
||||
{
|
||||
// B2017-192: The two dictionaries were introduced so that the lists off of the section were always found
|
||||
// by the print code that determines what sup info steps go on the facing pages (the code was accessing the
|
||||
// incorrect cached step section sometimes, so the list was not found.
|
||||
// Keeps track of itemids for supplemental info steps where their associated steps would have page breaks.
|
||||
private List<int> _StepSectPageBreaksForSupInfo = null;
|
||||
private static Dictionary<int, List<int>> _LookupStepSectPageBreaksForSupInfo = new Dictionary<int, List<int>>();
|
||||
public static void ResetLookupStepSectPageBreaksForSupInfo()
|
||||
{
|
||||
_LookupStepSectPageBreaksForSupInfo.Clear();
|
||||
}
|
||||
public List<int> StepSectPageBreaksForSupInfo
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_StepSectPageBreaksForSupInfo == null) _StepSectPageBreaksForSupInfo = new List<int>();
|
||||
return _StepSectPageBreaksForSupInfo;
|
||||
if (!_LookupStepSectPageBreaksForSupInfo.ContainsKey(ItemID)) _LookupStepSectPageBreaksForSupInfo.Add(ItemID, new List<int>());
|
||||
return _LookupStepSectPageBreaksForSupInfo[ItemID];
|
||||
}
|
||||
set { _StepSectPageBreaksForSupInfo = value; }
|
||||
}
|
||||
// Keeps track of step section itemids where page breaks occur
|
||||
private List<int> _StepSectPageBreaks = null;
|
||||
private static Dictionary<int, List<int>> _LookupStepSectPageBreaks = new Dictionary<int, List<int>>();
|
||||
public static void ResetLookupStepSectPageBreaks()
|
||||
{
|
||||
_LookupStepSectPageBreaks.Clear();
|
||||
}
|
||||
public List<int> StepSectPageBreaks
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_StepSectPageBreaks == null) _StepSectPageBreaks = new List<int>();
|
||||
return _StepSectPageBreaks;
|
||||
if (!_LookupStepSectPageBreaks.ContainsKey(ItemID)) _LookupStepSectPageBreaks.Add(ItemID, new List<int>());
|
||||
return _LookupStepSectPageBreaks[ItemID];
|
||||
}
|
||||
set { _StepSectPageBreaks = value; }
|
||||
}
|
||||
// Determine if this section contains any Supplemental information steps. This is used for print to determine
|
||||
// whether some of the supinfo processing needs to occur.
|
||||
|
Reference in New Issue
Block a user