Added ability to unlock Corrective Actions when locked for editing.

This commit is contained in:
Daniel Wathen
2023-03-02 11:54:50 -07:00
parent adad38b849
commit a2b2e04f1f
12 changed files with 382 additions and 265 deletions

View File

@ -321,6 +321,25 @@ namespace Fab2ApprovalSystem.Controllers
return View(ca);
}
public void ReleaseLockOnDocumentAdmin(int issueID)
{
try
{
caDMO.ReleaseLockOnDocument(-1, issueID);
}
catch (Exception e)
{
try
{
Functions.WriteEvent(@User.Identity.Name + "\r\n ReleaseLockOnDocument CA\r\n" + issueID.ToString() + "\r\n" + e.Message, System.Diagnostics.EventLogEntryType.Error);
}
catch { }
caDMO.ReleaseLockOnDocument(-1, issueID);
}
}
/// <summary>
///