Warn user that approving a procedure with the same rev number of an existing Approved Procedure will cause the existing approved version to be replaced

This commit is contained in:
Rich 2016-11-08 17:01:15 +00:00
parent 5f5e5c3478
commit c582c25882

View File

@ -1084,6 +1084,9 @@ namespace VEPROMS
}
else if (revision.Notes != RevNote || revision.RevisionDate != ap.RevDate)
{
//C2016-036 - Inform the user that an existing approved version will be replaced
if (MessageBox.Show("Replace Existing Revision " + ap.RevNumber + "\r\n\r\nChange the Rev Number to create a new revision.", "Replace Existing", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.Cancel)
return false;
revision.Notes = RevNote;
revision.RevisionDate = ap.RevDate;
revision = revision.Save();
@ -1104,6 +1107,9 @@ namespace VEPROMS
}
else if (revision.Notes != RevNote || revision.RevisionDate != ap.RevDate)
{
//C2016-036 - Inform the user that an existing approved version will be replaced
if (MessageBox.Show("Replace Existing Revision " + ap.RevNumber + "\r\n\r\nChange the Rev Number to create a new revision.", "Replace Existing", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.Cancel)
return false;
revision.Notes = RevNote;
revision.RevisionDate = ap.RevDate;
revision = revision.Save();