Added support for Point Beach’s format flag DiffContActBox for their asterisked boxes
Added new method to ‘GetNextItem’ for an iteminfo so that next item is found in memory, not get from database
This commit is contained in:
parent
6af7bd7463
commit
154dbeabb8
@ -434,6 +434,28 @@ namespace VEPROMS.CSLA.Library
|
|||||||
foreach (ItemInfo ii in pi.MyItems)
|
foreach (ItemInfo ii in pi.MyItems)
|
||||||
SetParentSectionAndDocVersion(ii, itemInfo, (itemInfo as SectionInfo) ?? sectionInfo, procInfo, docVersionInfo);
|
SetParentSectionAndDocVersion(ii, itemInfo, (itemInfo as SectionInfo) ?? sectionInfo, procInfo, docVersionInfo);
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 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).
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
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)
|
internal static void SetParentSectionAndDocVersionPageNum(ItemInfo itemInfo, IVEDrillDownReadOnly itemParent, SectionInfo sectionInfo, ProcedureInfo procInfo, DocVersionInfo docVersionInfo, TransitionLookup tranLookup)
|
||||||
{
|
{
|
||||||
if (itemInfo.MyContent.ContentPartCount > 0)
|
if (itemInfo.MyContent.ContentPartCount > 0)
|
||||||
|
@ -3193,6 +3193,14 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return LazyLoad(ref _ImmStepHdrCol, "@ImmStepHdrCol");
|
return LazyLoad(ref _ImmStepHdrCol, "@ImmStepHdrCol");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private LazyLoad<bool> _DiffContActBox;
|
||||||
|
public bool DiffContActBox
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return LazyLoad(ref _DiffContActBox, "@DiffContActBox");
|
||||||
|
}
|
||||||
|
}
|
||||||
private LazyLoad<int?> _SecColHdrforActPMode;
|
private LazyLoad<int?> _SecColHdrforActPMode;
|
||||||
public int? SecColHdrforActPMode
|
public int? SecColHdrforActPMode
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user