Commit 7418bfc9 authored by Koolapong Kongpitak's avatar Koolapong Kongpitak
Browse files

Add duplicate instruction

Showing with 9 additions and 0 deletions
+9 -0
......@@ -956,6 +956,15 @@ namespace SYSCore.Controllers
return Json(new { Result = "Done" });
}
catch (OracleException ex)
{
if (ex.Number == 20001)
{
return Json(new { Result = "Fail", Message = "DUPLICATE_INSTRUCTION" });
}
throw (ex);
}
catch (Exception ex)
{
oOracledb.WriteLog("ErrorHandle", ex.Message, "SaveReportProblemPart");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment