Add right click menu item for a procedure and a folder with a working draft to process transition report.
This commit is contained in:
parent
688c286296
commit
c1fcb88627
@ -445,6 +445,11 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (ExportImportProcedureSets != null) ExportImportProcedureSets(sender, args);
|
||||
}
|
||||
public event vlnTreeViewEvent PrintTransitionReport;
|
||||
private void OnPrintTransitionReport(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
if (PrintTransitionReport != null) PrintTransitionReport(sender, args);
|
||||
}
|
||||
public event vlnTreeViewEvent NodeNew;
|
||||
private void OnNodeNew(object sender, vlnTreeEventArgs args)
|
||||
{
|
||||
@ -512,6 +517,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (e.Button == MouseButtons.Right)
|
||||
{
|
||||
Console.WriteLine("dts mouse down; {0}", DateTime.Now.ToLongTimeString());
|
||||
OwnerInfoList oil = null;
|
||||
OwnerInfo oi = null;
|
||||
VETreeNode tn = this.GetNodeAt(new Point(e.X, e.Y)) as VETreeNode;
|
||||
@ -553,6 +559,8 @@ namespace Volian.Controls.Library
|
||||
if (fi.FolderDocVersionCount == 0) cm.MenuItems.Add("New Folder", new EventHandler(mi_Click));
|
||||
if (fi.ChildFolderCount == 0 && !fi.HasWorkingDraft) cm.MenuItems.Add("Create Working Draft", new EventHandler(mi_Click));
|
||||
}
|
||||
if (fi.HasWorkingDraft)
|
||||
cm.MenuItems.Add("Print Transition Report", new EventHandler(mi_Click));
|
||||
}
|
||||
else if (tn.VEObject as DocVersionInfo != null) // DocVersions can only contain procs
|
||||
{
|
||||
@ -641,6 +649,7 @@ namespace Volian.Controls.Library
|
||||
if (ui.IsAdministrator() || ui.IsSetAdministrator(dvi))
|
||||
{
|
||||
MenuItem urv = cm.MenuItems.Add("Update RO Values", new EventHandler(mi_Click));
|
||||
Console.WriteLine("dts mouse down NewerRoFst; {0}", DateTime.Now.ToLongTimeString());
|
||||
urv.Enabled = dvi.NewerRoFst;
|
||||
}
|
||||
}
|
||||
@ -714,6 +723,7 @@ namespace Volian.Controls.Library
|
||||
AddApprovedRevisions(cm.MenuItems, pri);
|
||||
}
|
||||
}
|
||||
cm.MenuItems.Add("Print Transition Report", new EventHandler(mi_Click));
|
||||
}
|
||||
else if (tn.VEObject as SectionInfo != null)
|
||||
{
|
||||
@ -1147,6 +1157,11 @@ namespace Volian.Controls.Library
|
||||
CollapseProcedures();
|
||||
return;
|
||||
}
|
||||
if (mi.Text == "Print Transition Report")
|
||||
{
|
||||
OnPrintTransitionReport(this, new vlnTreeEventArgs(SelectedNode as VETreeNode));
|
||||
return;
|
||||
}
|
||||
if (mi.Text == "Export Procedure Set" || mi.Text == "Export Procedure")
|
||||
{
|
||||
OnExportImportProcedureSets(this, new vlnTreeEventArgs(SelectedNode as VETreeNode, null, 0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user