Added ability to unlock Corrective Actions when locked for editing.
This commit is contained in:
@ -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>
|
||||
///
|
||||
|
Reference in New Issue
Block a user