From 154dbeabb834383ca7e2270781e74216fe2d1e23 Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 24 Feb 2014 17:35:07 +0000 Subject: [PATCH] =?UTF-8?q?Added=20support=20for=20Point=20Beach=E2=80=99s?= =?UTF-8?q?=20format=20flag=20DiffContActBox=20for=20their=20asterisked=20?= =?UTF-8?q?boxes=20Added=20new=20method=20to=20=E2=80=98GetNextItem?= =?UTF-8?q?=E2=80=99=20for=20an=20iteminfo=20so=20that=20next=20item=20is?= =?UTF-8?q?=20found=20in=20memory,=20not=20get=20from=20database?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VEPROMS.CSLA.Library/Extension/ItemExt.cs | 22 +++++++++++++++++++ .../Format/PlantFormat.cs | 8 +++++++ 2 files changed, 30 insertions(+) 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 {