Added ability to unlock Corrective Actions when locked for editing.
This commit is contained in:
.vs/Fab2ApprovalSystem
FileContentIndex
17d07c06-c751-4057-8038-625eff7d9f45.vsidx87b89757-701e-43d9-8dac-6b71b74b18a7.vsidx9f432593-2d58-4094-bcba-f4559dc8e991.vsidxb1b06aa2-337d-4b25-b834-714517ed0fe0.vsidx
v17
Fab2ApprovalSystem
Controllers
DMO
Models
Views
@ -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