Copy all fields from Library Document when converting a Library Document to a Stand-alone Document
Added code to update the Procedure Panel when a Word Section is added. Created a method to find a ProcedureDisplayTabItem for a specific item Added code to Reset the Tab when a Section's Number is changed. Added code to Reset a Procedures Parts when a Panel is Reset Added an event for a Node being added.
This commit is contained in:
@@ -465,7 +465,7 @@ namespace VEPROMS
|
||||
{
|
||||
// make new document with 'no' libtitle - use libtitle for the doc title. Then link this
|
||||
// to the item...
|
||||
Document doc = Document.MakeDocument(null, doclibinfo.DocContent, null, null, null);
|
||||
Document doc = Document.MakeDocument(null, doclibinfo.DocContent,doclibinfo.DocAscii,doclibinfo.Config,doclibinfo.DocPdf);
|
||||
_SectionConfig.MySection.MyContent.MyEntry.MyDocument = doc;
|
||||
}
|
||||
ppCmbxLibDoc.Items.Clear();
|
||||
|
@@ -149,6 +149,7 @@ namespace VEPROMS
|
||||
tv.Nodes.Add(tn);
|
||||
tv.NodeOpenProperty += new vlnTreeViewPropertyEvent(tv_NodeOpenProperty);
|
||||
tv.NodeSelect += new Volian.Controls.Library.vlnTreeViewEvent(tv_NodeSelect);
|
||||
tv.NodeNew += new vlnTreeViewEvent(tv_NodeNew);
|
||||
tv.OpenItem += new vlnTreeViewItemInfoEvent(tv_OpenItem);
|
||||
tv.DeleteItemInfo += new vlnTreeViewItemInfoDeleteEvent(tv_DeleteItemInfo);
|
||||
tv.InsertItemInfo += new vlnTreeViewItemInfoInsertEvent(tv_InsertItemInfo);
|
||||
@@ -331,7 +332,20 @@ namespace VEPROMS
|
||||
}
|
||||
// The following code is used to setup the user interface depending on what
|
||||
// is selected on the tree view (see vlnTreeView.cs)
|
||||
private void tv_NodeSelect(object sender, Volian.Controls.Library.vlnTreeEventArgs args)
|
||||
void tv_NodeNew(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
VETreeNode vNode = (VETreeNode)args.Node;
|
||||
IVEDrillDownReadOnly veObj = vNode.VEObject;
|
||||
SectionInfo mySection = veObj as SectionInfo;
|
||||
if (mySection.MyContent.MyEntry != null)
|
||||
{
|
||||
// if it is a word section, find the DisplayTabItem;
|
||||
DisplayTabItem tabItem = tc.GetProcDisplayTabItem(mySection);
|
||||
if(tabItem != null)tabItem.MyStepTabPanel.MyStepPanel.Reset();
|
||||
}
|
||||
SetupNodes((VETreeNode)args.Node);
|
||||
}
|
||||
private void tv_NodeSelect(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
SetupNodes((VETreeNode)args.Node);
|
||||
}
|
||||
|
Reference in New Issue
Block a user