diff --git a/AMESCoreStudio.Web/Controllers/QRSController.cs b/AMESCoreStudio.Web/Controllers/QRSController.cs index f11c11f2..55115ef8 100644 --- a/AMESCoreStudio.Web/Controllers/QRSController.cs +++ b/AMESCoreStudio.Web/Controllers/QRSController.cs @@ -834,14 +834,16 @@ namespace AMESCoreStudio.Web.Controllers return Json(new Table() { count = 0, data = null }); } - public IActionResult QRS012() + public IActionResult QRS012(string id) { + ViewBag.WipNo = id; return View(); } - public async Task GetWipAlarmsByType(int alarmTypeID, int page = 0, int limit = 10) + public async Task GetWipAlarmsByType(int alarmTypeID, string wipNO, int page = 0, int limit = 10) { - var result = await _repApi.GetWipAlarmsByType(alarmTypeID, page, limit); + //var result = await _repApi.GetWipAlarmsByType(alarmTypeID, page, limit); + var result = await _repApi.GetWipAlarm2(alarmTypeID, wipNO, page, limit); if (result.DataTotal > 0) { diff --git a/AMESCoreStudio.Web/Controllers/REPController.cs b/AMESCoreStudio.Web/Controllers/REPController.cs index ef3a4151..8e11b251 100644 --- a/AMESCoreStudio.Web/Controllers/REPController.cs +++ b/AMESCoreStudio.Web/Controllers/REPController.cs @@ -1346,7 +1346,6 @@ namespace AMESCoreStudio.Web.Controllers public async Task GetLocation4REP012ListAsync(string id) { - string[] param = id.Split('_'); var result = await _repApi.GetLocation4REP012(param[0], param[1], param[2], param[3], param[4], param[5], param[6], param[7], param[8], param[9]); diff --git a/AMESCoreStudio.Web/HttpApis/AMES/IREP.cs b/AMESCoreStudio.Web/HttpApis/AMES/IREP.cs index a647aa35..b0a5b7ba 100644 --- a/AMESCoreStudio.Web/HttpApis/AMES/IREP.cs +++ b/AMESCoreStudio.Web/HttpApis/AMES/IREP.cs @@ -238,6 +238,13 @@ namespace AMESCoreStudio.Web [WebApiClient.Attributes.HttpGet("api/WipAlarms/Type/{id}")] ITask> GetWipAlarmsByType(int id, int page = 0, int limit = 10); + /// + /// 根据警報類別ID+工單號碼獲取警報資料 + /// + /// + [WebApiClient.Attributes.HttpGet("api/WipAlarms/GetWipAlarm2")] + ITask> GetWipAlarm2(int alarmTypeID, string wipNO, int page = 0, int limit = 10); + #endregion #region REP006 報廢轉出資料輸入 diff --git a/AMESCoreStudio.Web/Views/QRS/QRS012.cshtml b/AMESCoreStudio.Web/Views/QRS/QRS012.cshtml index 6c625fe2..e7febaaf 100644 --- a/AMESCoreStudio.Web/Views/QRS/QRS012.cshtml +++ b/AMESCoreStudio.Web/Views/QRS/QRS012.cshtml @@ -21,6 +21,12 @@ +
+ +
+ +
+