Added ability to delete Corrective Actions through the list page.

This commit is contained in:
Daniel Wathen
2023-02-13 15:12:18 -07:00
parent bf59afdc1b
commit 09543b8474
6 changed files with 27 additions and 10 deletions

View File

@ -405,6 +405,9 @@ namespace Fab2ApprovalSystem.Controllers
ldDMO.DeleteLotDisposition(issue.IssueID);
else if (dType == GlobalVars.DocumentType.ECN)
ecnDMO.DeleteDocument(issue.IssueID, int.Parse(Session[GlobalVars.SESSION_USERID].ToString()), "ECN");
else if (dType == GlobalVars.DocumentType.CorrectiveAction)
ldDMO.DeleteCADocument(issue.IssueID, int.Parse(Session[GlobalVars.SESSION_USERID].ToString()), "Corrective Action");
return Json(new[] { issue }.ToDataSourceResult(request, ModelState));
}