Removed code added to allow 1-time fix to RO Values for Braidwood
This commit is contained in:
parent
246cd760e8
commit
a20d109fd3
@ -229,8 +229,6 @@ namespace VEPROMS
|
||||
UpdateFormats(parameter.Substring(4));
|
||||
else if (parameter.ToUpper().StartsWith("/UF"))
|
||||
UpdateFormats(null);
|
||||
else if (parameter.ToUpper().StartsWith("/ODV="))
|
||||
tv.OverrideDocVersionID = int.Parse(parameter.Substring(5, parameter.Length - 5));
|
||||
}
|
||||
VETreeNode tn = VETreeNode.GetFolder(1);
|
||||
tv.Nodes.Add(tn);
|
||||
|
@ -849,7 +849,7 @@ namespace VEPROMS
|
||||
}
|
||||
Cursor = Cursors.WaitCursor;
|
||||
SelectedROFst.ROTableUpdate += new ROFstInfoROTableUpdateEvent(roFstInfo_ROTableUpdate);
|
||||
ROFst newrofst = ROFstInfo.UpdateRoFst(rdi, dva, _DocVersionConfig.MyDocVersion, SelectedROFst, null);
|
||||
ROFst newrofst = ROFstInfo.UpdateRoFst(rdi, dva, _DocVersionConfig.MyDocVersion, SelectedROFst);
|
||||
SelectedROFst.ROTableUpdate -= new ROFstInfoROTableUpdateEvent(roFstInfo_ROTableUpdate);
|
||||
ppBtnUpRoVals.Enabled = _DocVersionConfig.MyDocVersion.NewerRoFst;
|
||||
Cursor = Cursors.Default;
|
||||
|
@ -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");
|
||||
|
@ -1747,7 +1747,7 @@ namespace Volian.Controls.Library
|
||||
using (DocVersion dv = DocVersion.Get(MyDVI.VersionID))
|
||||
{
|
||||
roFstInfo.ROTableUpdate += new ROFstInfoROTableUpdateEvent(roFstInfo_ROTableUpdate);
|
||||
ROFst newrofst = ROFstInfo.UpdateRoFst(roFstInfo.MyRODb, dv.DocVersionAssociations[0], dv, roFstInfo, null);
|
||||
ROFst newrofst = ROFstInfo.UpdateRoFst(roFstInfo.MyRODb, dv.DocVersionAssociations[0], dv, roFstInfo);
|
||||
roFstInfo.ROTableUpdate -= new ROFstInfoROTableUpdateEvent(roFstInfo_ROTableUpdate);
|
||||
StepPanelTabDisplayEventArgs args = new StepPanelTabDisplayEventArgs("DisplayROUpdateROFST");
|
||||
MyEditItem.MyStepPanel.OnTabDisplay(sender, args);
|
||||
|
@ -317,12 +317,6 @@ namespace Volian.Controls.Library
|
||||
#endregion
|
||||
public partial class vlnTreeView : TreeView
|
||||
{
|
||||
private int _OverrideDocVersionID = 0;
|
||||
public int OverrideDocVersionID
|
||||
{
|
||||
get { return _OverrideDocVersionID; }
|
||||
set { _OverrideDocVersionID = value; }
|
||||
}
|
||||
private SessionInfo _MySessionInfo;
|
||||
public SessionInfo MySessionInfo
|
||||
{
|
||||
@ -1299,7 +1293,7 @@ namespace Volian.Controls.Library
|
||||
using (DocVersion dv = DocVersion.Get(MyDVI.VersionID))
|
||||
{
|
||||
roFstInfo.ROTableUpdate += new ROFstInfoROTableUpdateEvent(roFstInfo_ROTableUpdate);
|
||||
ROFst newrofst = ROFstInfo.UpdateRoFst(roFstInfo.MyRODb, dv.DocVersionAssociations[0], dv, roFstInfo, OverrideDocVersionID > 0 ? DocVersionInfo.Get(OverrideDocVersionID) : null);
|
||||
ROFst newrofst = ROFstInfo.UpdateRoFst(roFstInfo.MyRODb, dv.DocVersionAssociations[0], dv, roFstInfo);
|
||||
roFstInfo.ROTableUpdate -= new ROFstInfoROTableUpdateEvent(roFstInfo_ROTableUpdate);
|
||||
StepPanelTabDisplayEventArgs args = new StepPanelTabDisplayEventArgs("DisplayROUpdateROFST");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user