F2022-024 – added the menu option to generate a Time Critical Action Summary report
This commit is contained in:
parent
3cbac32745
commit
bfeed42a59
@ -491,6 +491,11 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
if (CreateContinuousActionSummary != null) CreateContinuousActionSummary(sender, args);
|
if (CreateContinuousActionSummary != null) CreateContinuousActionSummary(sender, args);
|
||||||
}
|
}
|
||||||
|
public event vlnTreeViewEvent CreateTimeCriticalActionSummary;
|
||||||
|
private void OnCreateTimeCriticalActionSummary(object sender, vlnTreeEventArgs args)
|
||||||
|
{
|
||||||
|
if (CreateTimeCriticalActionSummary != null) CreateTimeCriticalActionSummary(sender, args);
|
||||||
|
}
|
||||||
public event vlnTreeViewEvent PrintProcedure;
|
public event vlnTreeViewEvent PrintProcedure;
|
||||||
private void OnPrintProcedure(object sender, vlnTreeEventArgs args)
|
private void OnPrintProcedure(object sender, vlnTreeEventArgs args)
|
||||||
{
|
{
|
||||||
@ -824,6 +829,7 @@ namespace Volian.Controls.Library
|
|||||||
if (pri.MyDocVersion.MultiUnitCount > 1)
|
if (pri.MyDocVersion.MultiUnitCount > 1)
|
||||||
{
|
{
|
||||||
MenuItem micas = new MenuItem("Create Continuous Action Summary");
|
MenuItem micas = new MenuItem("Create Continuous Action Summary");
|
||||||
|
MenuItem mitcas = new MenuItem("Create Time Critical Action Summary"); //F2022-024 added menu option
|
||||||
MenuItem mip = new MenuItem("Print");
|
MenuItem mip = new MenuItem("Print");
|
||||||
MenuItem mia = new MenuItem("Approve");
|
MenuItem mia = new MenuItem("Approve");
|
||||||
int k = 0;
|
int k = 0;
|
||||||
@ -841,8 +847,12 @@ namespace Volian.Controls.Library
|
|||||||
MenuItem mc = micas.MenuItems.Add(s, new EventHandler(miMultiUnit_Click));
|
MenuItem mc = micas.MenuItems.Add(s, new EventHandler(miMultiUnit_Click));
|
||||||
mc.Enabled = procAppl;
|
mc.Enabled = procAppl;
|
||||||
mc.Tag = k;
|
mc.Tag = k;
|
||||||
|
MenuItem mtc = mitcas.MenuItems.Add(s, new EventHandler(miMultiUnit_Click));
|
||||||
|
mtc.Enabled = procAppl;
|
||||||
|
mtc.Tag = k;
|
||||||
}
|
}
|
||||||
cm.MenuItems.Add(micas);
|
cm.MenuItems.Add(micas);
|
||||||
|
cm.MenuItems.Add(mitcas);
|
||||||
cm.MenuItems.Add(mip);
|
cm.MenuItems.Add(mip);
|
||||||
AddShowChangeBarsAfterMenuItem(cm.MenuItems, pri);
|
AddShowChangeBarsAfterMenuItem(cm.MenuItems, pri);
|
||||||
cm.MenuItems.Add(mia);
|
cm.MenuItems.Add(mia);
|
||||||
@ -851,6 +861,7 @@ namespace Volian.Controls.Library
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
cm.MenuItems.Add("Create Continuous Action Summary", new EventHandler(mi_Click));
|
cm.MenuItems.Add("Create Continuous Action Summary", new EventHandler(mi_Click));
|
||||||
|
cm.MenuItems.Add("Create Time Critical Action Summary", new EventHandler(mi_Click));
|
||||||
cm.MenuItems.Add("Print", new EventHandler(mi_Click));
|
cm.MenuItems.Add("Print", new EventHandler(mi_Click));
|
||||||
AddShowChangeBarsAfterMenuItem(cm.MenuItems, pri);
|
AddShowChangeBarsAfterMenuItem(cm.MenuItems, pri);
|
||||||
cm.MenuItems.Add("Approve", new EventHandler(mi_Click));
|
cm.MenuItems.Add("Approve", new EventHandler(mi_Click));
|
||||||
@ -1185,11 +1196,13 @@ namespace Volian.Controls.Library
|
|||||||
|
|
||||||
if (tn.VEObject as ProcedureInfo != null)
|
if (tn.VEObject as ProcedureInfo != null)
|
||||||
{
|
{
|
||||||
|
// F2022-024 added Time Critical Action Summary option
|
||||||
foreach (MenuItem itm in cm.MenuItems)
|
foreach (MenuItem itm in cm.MenuItems)
|
||||||
{
|
{
|
||||||
if(itm.Text == "Procedure Specific Information" || itm.Text == "New Section" || itm.Text == "Approve" || itm.Text == "Open" ||
|
if(itm.Text == "Procedure Specific Information" || itm.Text == "New Section" || itm.Text == "Approve" || itm.Text == "Open" ||
|
||||||
itm.Text == "Copy" || itm.Text == "Delete" || itm.Text == "Properties..." || itm.Text == "Replace Existing Procedure" ||
|
itm.Text == "Copy" || itm.Text == "Delete" || itm.Text == "Properties..." || itm.Text == "Replace Existing Procedure" ||
|
||||||
itm.Text.StartsWith("Showing Change Bars Starting") || itm.Text == "Create Continuous Action Summary" || itm.Text == "Export Procedure")
|
itm.Text.StartsWith("Showing Change Bars Starting") || itm.Text == "Create Continuous Action Summary" ||
|
||||||
|
itm.Text == "Create Time Critical Action Summary" || itm.Text == "Export Procedure")
|
||||||
itm.Enabled = false;
|
itm.Enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1726,6 +1739,9 @@ namespace Volian.Controls.Library
|
|||||||
case "Create Continuous Action Summary":
|
case "Create Continuous Action Summary":
|
||||||
OnCreateContinuousActionSummary(this, new vlnTreeEventArgs(SelectedNode as VETreeNode, null,0,mi.Text,(int)mi.Tag));
|
OnCreateContinuousActionSummary(this, new vlnTreeEventArgs(SelectedNode as VETreeNode, null,0,mi.Text,(int)mi.Tag));
|
||||||
break;
|
break;
|
||||||
|
case "Create Tiime Critical Action Summary":
|
||||||
|
OnCreateTimeCriticalActionSummary(this, new vlnTreeEventArgs(SelectedNode as VETreeNode, null,0,mi.Text,(int)mi.Tag));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (mip.Text.StartsWith("Showing Change Bars Starting"))
|
if (mip.Text.StartsWith("Showing Change Bars Starting"))
|
||||||
OnSelectDateToStartChangeBars(this, new vlnTreeEventArgs(SelectedNode as VETreeNode, null, 0));
|
OnSelectDateToStartChangeBars(this, new vlnTreeEventArgs(SelectedNode as VETreeNode, null, 0));
|
||||||
@ -1970,6 +1986,10 @@ namespace Volian.Controls.Library
|
|||||||
case "Create Continuous Action Summary":
|
case "Create Continuous Action Summary":
|
||||||
OnCreateContinuousActionSummary(this, new vlnTreeEventArgs(SelectedNode as VETreeNode, null,0));
|
OnCreateContinuousActionSummary(this, new vlnTreeEventArgs(SelectedNode as VETreeNode, null,0));
|
||||||
break;
|
break;
|
||||||
|
// F2022-024 Time Critical Action Summary
|
||||||
|
case "Create Time Critical Action Summary":
|
||||||
|
OnCreateTimeCriticalActionSummary(this, new vlnTreeEventArgs(SelectedNode as VETreeNode, null,0));
|
||||||
|
break;
|
||||||
// B2017-243 added the following two Cannot Paste items when dealing with enhanced documents
|
// B2017-243 added the following two Cannot Paste items when dealing with enhanced documents
|
||||||
// when then user selects these menu items a message box will appear giving more information as to why it cannot be pasted
|
// when then user selects these menu items a message box will appear giving more information as to why it cannot be pasted
|
||||||
case "CANNOT PASTE HERE. Click for more information...":
|
case "CANNOT PASTE HERE. Click for more information...":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user