Corrected processing of RO values in grids when printing individual unit of multiunit site

Added SetData method to GridInfo class to allow updating grid data
Added GetNonCached method to GridInfo class to allowing retrieving noncached grid data
Added code to retrieve noncached grid data during printing of procedure with grids
This commit is contained in:
Rich
2014-01-10 03:14:04 +00:00
parent c97f0d38e0
commit 3c7c853d00
3 changed files with 47 additions and 6 deletions

View File

@@ -427,6 +427,8 @@ namespace VEPROMS.CSLA.Library
itemInfo.ActiveSection = sectionInfo;
itemInfo.MyProcedure = procInfo;
itemInfo.MyDocVersion = docVersionInfo;
if (itemInfo.MyContent.ContentGridCount > 0)
itemInfo.MyContent.LoadNonCachedGrid();
if (itemInfo.MyContent.ContentPartCount > 0)
foreach (PartInfo pi in itemInfo.MyContent.ContentParts)
foreach (ItemInfo ii in pi.MyItems)
@@ -460,6 +462,8 @@ namespace VEPROMS.CSLA.Library
ROFSTLookup lookup = rofstinfo.ROFSTLookup;
lookup.DocVersionInfo = docVersionInfo;
//DateTime dts = DateTime.Now;
if (itemInfo.MyContent.ContentGridCount > 0)
itemInfo.MyContent.LoadNonCachedGrid();
if (itemInfo.MyContent.ContentRoUsageCount > 0)
{
foreach (RoUsageInfo rousage in itemInfo.MyContent.ContentRoUsages)