diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index 345f3895..c6c95db5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -434,6 +434,28 @@ namespace VEPROMS.CSLA.Library foreach (ItemInfo ii in pi.MyItems) SetParentSectionAndDocVersion(ii, itemInfo, (itemInfo as SectionInfo) ?? sectionInfo, procInfo, docVersionInfo); } + /// + /// The following method is used only in print because the 'printed' data is loaded into + /// memory before printing. Find the next item from memory (do not go out to database). + /// + /// + public ItemInfo GetNextItem() + { + ItemInfo mypar = this.MyParent as ItemInfo; + if (mypar == null) return null; + if (mypar.MyContent.ContentPartCount > 0) + foreach (PartInfo pi in mypar.MyContent.ContentParts) + { + bool foundMe = false; + foreach (ItemInfo ii in pi.MyItems) + { + if (foundMe) return ii; + if (ii.ItemID == ItemID) // found the current item for which we want to get next. + foundMe = true; + } + } + return null; + } internal static void SetParentSectionAndDocVersionPageNum(ItemInfo itemInfo, IVEDrillDownReadOnly itemParent, SectionInfo sectionInfo, ProcedureInfo procInfo, DocVersionInfo docVersionInfo, TransitionLookup tranLookup) { if (itemInfo.MyContent.ContentPartCount > 0) diff --git a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs index beb3c443..97491e38 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/PlantFormat.cs @@ -3193,6 +3193,14 @@ namespace VEPROMS.CSLA.Library return LazyLoad(ref _ImmStepHdrCol, "@ImmStepHdrCol"); } } + private LazyLoad _DiffContActBox; + public bool DiffContActBox + { + get + { + return LazyLoad(ref _DiffContActBox, "@DiffContActBox"); + } + } private LazyLoad _SecColHdrforActPMode; public int? SecColHdrforActPMode {