Compare commits

...

5 Commits

2 changed files with 8 additions and 8 deletions
@@ -29,6 +29,9 @@ namespace VEPROMS
InitializeComponent(); InitializeComponent();
_MySessionInfo = sessionInfo; _MySessionInfo = sessionInfo;
// When opening Admin tools Check tab will be default.
this.sideNavItmCheck.Checked = true;
if (sideNavItmDelete.Checked) if (sideNavItmDelete.Checked)
{ {
AdminToolType = (E_AdminToolType)4; AdminToolType = (E_AdminToolType)4;
@@ -2547,6 +2547,7 @@ namespace VEPROMS.CSLA.Library
newItemInfo.UpdateTransitionText(); newItemInfo.UpdateTransitionText();
newItemInfo.UpdateROText(); newItemInfo.UpdateROText();
newItemInfo.UpdatePastedStepTransitionText(); newItemInfo.UpdatePastedStepTransitionText();
// Add to tree // Add to tree
if (newItemInfo.NextItem != null) if (newItemInfo.NextItem != null)
{ {
@@ -2564,14 +2565,10 @@ namespace VEPROMS.CSLA.Library
} }
else else
{ {
//Create tree node for copied procedure when no other procedures exist in the folder //Create tree node for copied procedure when no other procedures exist in the working draft (treeNodeReplace)
VETreeNode vtn = treeNodeReplace as VETreeNode; VETreeNode tn = null;
DocVersionInfo dvi = vtn.VEObject as DocVersionInfo; tn = new VETreeNode(newItemInfo);
treeNodeReplace.Nodes.Add(tn);
ItemInfo newProc = dvi.PasteChild(copyStartID);
VETreeNode tn1 = new VETreeNode(newProc);
treeNodeReplace.Nodes.Add(tn1); // add tree node to end of list.
treeNodeReplace = tn1;
} }
return newItemInfo; return newItemInfo;
} }