Changed how ROFSTLookup object was obtained based on correct DocVersion

Changed how RoFst date time is compared to actual ro.fst file date time
This commit is contained in:
Rich
2014-02-07 17:37:51 +00:00
parent 7ab6604534
commit f864d03eec
5 changed files with 20 additions and 18 deletions

View File

@@ -1607,7 +1607,7 @@ namespace VEPROMS.CSLA.Library
if (cont.ContentRoUsageCount > 0)
{
ROFstInfo myrofst = tmp.MyContent.ContentItems[0].MyProcedure.MyDocVersion.DocVersionAssociations[0].MyROFst;
ROFSTLookup mylookup = myrofst.ROFSTLookup;
ROFSTLookup mylookup = myrofst.GetROFSTLookup(tmp.MyContent.ContentItems[0].MyProcedure.MyDocVersion);
foreach (ContentRoUsage ro in cont.ContentRoUsages)
{
RoUsageInfo rou = RoUsageInfo.Get(ro.ROUsageID);
@@ -1807,7 +1807,7 @@ namespace VEPROMS.CSLA.Library
ctmp.Save();
}
ROFstInfo myrofst = tmp.ContentItems[0].MyProcedure.MyDocVersion.DocVersionAssociations[0].MyROFst;
ROFSTLookup mylookup = myrofst.ROFSTLookup;
ROFSTLookup mylookup = myrofst.GetROFSTLookup(tmp.ContentItems[0].MyProcedure.MyDocVersion);
foreach(RoUsageInfo rou in tmp.ContentRoUsages)
{
ROFSTLookup.rochild rocc = mylookup.GetRoChild12(rou.ROID);