|
|
@ -462,6 +462,9 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
await GetNGReasonList(); |
|
|
|
await GetRepairResponsibleUnitList(); |
|
|
|
|
|
|
|
var userID = HttpContext.Request.Cookies["UserID"]; |
|
|
|
HttpContext.Response.Cookies.Append("UserID4REP001", userID.ToString()); |
|
|
|
|
|
|
|
REP001ViewModel model = new REP001ViewModel(); |
|
|
|
var result1 = await _repApi.GetNgComponent(id); |
|
|
|
|
|
|
@ -564,7 +567,8 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
{ |
|
|
|
IResultModel result; |
|
|
|
var userID = ""; |
|
|
|
HttpContext.Request.Cookies.TryGetValue("UserID", out userID); |
|
|
|
userID = HttpContext.Request.Cookies["UserID4REP001"]; |
|
|
|
//HttpContext.Request.Cookies.TryGetValue("UserID", out userID);
|
|
|
|
int user_id = 0; |
|
|
|
if (userID != null) |
|
|
|
{ |
|
|
@ -824,6 +828,7 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
HttpContext.Response.Cookies.Delete("UserID4REP001"); |
|
|
|
|
|
|
|
return View("REP001R", model); |
|
|
|
//return RedirectToAction("REP001V", "REP", new { id = model.ngComponent.NgID });
|
|
|
|