B2016-057 Don’t enable the Approve button if there are rev numbers that need fixed, C2018-008 Redesigned of the user interface to make less confusing, C2018-025 We were not checking for more than one procedure with the same procedure number when generating the consistency check procedure list.
C2018-026 Added a menu option off of the Versions tree node menu, to view the notes added when the approval or workflow stage was done
This commit is contained in:
@@ -14,6 +14,7 @@ using VEPROMS.CSLA.Library;
|
||||
using System.IO;
|
||||
using Volian.Base.Library;
|
||||
using DevComponents.DotNetBar;
|
||||
using JR.Utils.GUI.Forms; //C2018-026 show notes entered during approval or workflow stage
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@@ -1126,6 +1127,12 @@ namespace Volian.Controls.Library
|
||||
mir.Tag = ri;
|
||||
if (ri.LatestVersion.MyStage.IsApproved > 0 && (ri.RevisionID > lastApprovedRevisionID))
|
||||
lastApprovedRevisionID = ri.RevisionID;
|
||||
if (ri.Notes.Length > 0) //C2018-026 add the ability to show notes entered during approval or workflow stage in the sub-menu
|
||||
{
|
||||
MenuItem mirp = mir.MenuItems.Add("View Revision Stage Notes");
|
||||
mirp.Tag = ri;
|
||||
mirp.Click += new EventHandler(ViewRevisonStageNotes_Click);
|
||||
}
|
||||
if (ri.LatestVersion.PDF != null)
|
||||
{
|
||||
MenuItem mirp = mir.MenuItems.Add("View Procedure");
|
||||
@@ -1180,6 +1187,12 @@ namespace Volian.Controls.Library
|
||||
//mir.Click += new EventHandler(ApprovedRevision_Click);
|
||||
//added jcb 20111031
|
||||
//_MyLog.WarnFormat("Context Menu 1 b4ViewProc- {0}", GC.GetTotalMemory(true));
|
||||
if (ri.Notes.Length > 0) //C2018-026 add the ability to show notes entered during approval or workflow stage in the sub-menu
|
||||
{
|
||||
MenuItem mirp = mir.MenuItems.Add("View Revision Stage Notes");
|
||||
mirp.Tag = ri;
|
||||
mirp.Click += new EventHandler(ViewRevisonStageNotes_Click);
|
||||
}
|
||||
if (ri.LatestVersion.PDF != null)
|
||||
{
|
||||
MenuItem mirp = mir.MenuItems.Add("View Procedure");
|
||||
@@ -1300,6 +1313,15 @@ namespace Volian.Controls.Library
|
||||
OnViewPDF(sender, args);
|
||||
// System.Diagnostics.Process pps = System.Diagnostics.Process.Start(GetDocSummaryPdf(ri));
|
||||
}
|
||||
//C2018-026 show notes entered during approval or workflow stage
|
||||
private void ViewRevisonStageNotes_Click(object sender, EventArgs e)
|
||||
{
|
||||
MenuItem mi = sender as MenuItem;
|
||||
if (mi == null) return;
|
||||
RevisionInfo ri = mi.Tag as RevisionInfo;
|
||||
FlexibleMessageBox.Show(ri.Notes, "Revison Stage Notes", MessageBoxButtons.OK);
|
||||
}
|
||||
|
||||
//private string GetDocPdf(RevisionInfo ri, bool superceded)
|
||||
//{
|
||||
// string fileName = Volian.Base.Library.TmpFile.CreateFileName(ItemInfo.Get(ri.ItemID).DisplayNumber);
|
||||
|
Reference in New Issue
Block a user