From cb2a559068f7e04ebb50976e695f771be25391fc Mon Sep 17 00:00:00 2001 From: Marvin Date: Fri, 2 Dec 2022 10:36:05 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E7=9B=B4=E9=80=9A=E7=8E=87?= =?UTF-8?q?,=E4=BF=AE=E6=94=B9F/T=E7=AB=99=E5=88=A5=E9=82=8F=E8=BC=AF?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E8=A3=BD=E7=A8=8B=E5=88=A5=202.=E4=BF=AE?= =?UTF-8?q?=E6=94=B9iRepair=E6=9F=A5=E8=A9=A2,=E5=A2=9E=E5=8A=A0=E5=B7=A5?= =?UTF-8?q?=E5=96=AE=E6=9F=A5=E8=A9=A2=E6=A2=9D=E4=BB=B6=203.=E4=BF=AE?= =?UTF-8?q?=E6=94=B9iRepair=E5=A2=9E=E5=8A=A0=E8=AD=A6=E5=A0=B1=E9=8F=88?= =?UTF-8?q?=E6=8E=A5url,"=E8=AD=A6=E5=A0=B1=E9=8F=88=E6=8E=A5:"=20+=20webS?= =?UTF-8?q?iteUrl=20+=20"/QRS/QRS012/"=20+=20wip=5Fno=203.1.appsettings.js?= =?UTF-8?q?on=E5=A2=9E=E5=8A=A0=E5=8F=83=E6=95=B8WebSiteUrl,=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E7=B6=B2=E7=AB=99url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/QRSController.cs | 8 ++- .../Controllers/REPController.cs | 1 - AMESCoreStudio.Web/HttpApis/AMES/IREP.cs | 7 +++ AMESCoreStudio.Web/Views/QRS/QRS012.cshtml | 10 +++- .../AMES/NgComponentsController.cs | 2 + .../Controllers/AMES/NgRepairsController.cs | 5 ++ .../Controllers/AMES/WipAlarmsController.cs | 55 +++++++++++++++++++ .../Controllers/BAS/StationsesController.cs | 2 + AMESCoreStudio.WebApi/appsettings.json | 1 + 9 files changed, 85 insertions(+), 6 deletions(-) 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 @@ +
+ +
+ +
+