Removed code added to allow 1-time fix to RO Values for Braidwood

This commit is contained in:
Rich
2014-02-10 21:07:13 +00:00
parent 246cd760e8
commit a20d109fd3
5 changed files with 8 additions and 20 deletions

View File

@@ -278,7 +278,7 @@ namespace VEPROMS.CSLA.Library
/// the current one.
/// <param name="docver" - hook into this doc version></param>
/// <returns>ROFst: Returns the created rofst object</returns>
public static ROFst UpdateRoFst(RODbInfo rdi, DocVersionAssociation dva, DocVersion docver, ROFstInfo origROFst, DocVersionInfo odv)
public static ROFst UpdateRoFst(RODbInfo rdi, DocVersionAssociation dva, DocVersion docver, ROFstInfo origROFst)
{
DirectoryInfo di = new DirectoryInfo(rdi.FolderPath);
string rofstfilepath = rdi.FolderPath + @"\ro.fst";
@@ -291,7 +291,7 @@ namespace VEPROMS.CSLA.Library
{
docver.DocVersionAssociations[0].MyROFst = rofst;
docver.Save();
UpdateROValuesText(origROFst, rofst, DocVersionInfo.Get(docver.VersionID), odv);
UpdateROValuesText(origROFst, rofst, DocVersionInfo.Get(docver.VersionID));
return rofst;
}
@@ -331,7 +331,7 @@ namespace VEPROMS.CSLA.Library
}
// Now update the usages: compare old to new rofsts and update usages accordingly, i.e. modified
// values, deleted ros, etc.
UpdateROValuesText(origROFst, rofst, DocVersionInfo.Get(docver.VersionID), odv);
UpdateROValuesText(origROFst, rofst, DocVersionInfo.Get(docver.VersionID));
return rofst;
}
}
@@ -357,16 +357,12 @@ namespace VEPROMS.CSLA.Library
}
return sb.ToString();
}
private static void UpdateROValuesText(ROFstInfo origROFstInfo, ROFst newROFst, DocVersionInfo dvi, DocVersionInfo odv)
private static void UpdateROValuesText(ROFstInfo origROFstInfo, ROFst newROFst, DocVersionInfo dvi)
{
string versionList = dvi.VersionID.ToString();
//DateTime dtStart = DateTime.Now;
//DateTime dtLast = DateTime.Now;
ROFSTLookup origLU;
if(odv != null)
origLU = new ROFSTLookup(origROFstInfo, odv);
else
origLU = new ROFSTLookup(origROFstInfo, dvi);
ROFSTLookup origLU = new ROFSTLookup(origROFstInfo, dvi);
//dtLast = ShowDuration(dtLast, "origLU");
ROFSTLookup newLU = new ROFSTLookup(newROFst, dvi);
//dtLast = ShowDuration(dtLast, "newLU");