From 53117382acc6b2807c5aac89e0ffefd469042e03 Mon Sep 17 00:00:00 2001 From: Yiru Date: Mon, 2 Oct 2023 12:40:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=B7=A1=E6=AA=A2=E4=BD=9C?= =?UTF-8?q?=E6=A5=AD=E6=9F=A5=E8=A9=A2PLM=5FECN=E5=A4=B1=E6=95=97=E5=95=8F?= =?UTF-8?q?=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/SPCController.cs | 9 +++ AMESCoreStudio.Web/HttpApis/AMES/ISPC.cs | 6 ++ AMESCoreStudio.Web/Views/SPC/SPC005C.cshtml | 65 ++++++++++--------- AMESCoreStudio.Web/Views/SPC/SPC005U.cshtml | 29 +++++++-- 4 files changed, 74 insertions(+), 35 deletions(-) diff --git a/AMESCoreStudio.Web/Controllers/SPCController.cs b/AMESCoreStudio.Web/Controllers/SPCController.cs index 87fd3cbc..441e4322 100644 --- a/AMESCoreStudio.Web/Controllers/SPCController.cs +++ b/AMESCoreStudio.Web/Controllers/SPCController.cs @@ -1267,6 +1267,15 @@ namespace AMESCoreStudio.Web.Controllers //return Json(new Result() { success = true, msg = "資料有誤!!" }); } + + [HttpPost] + public async Task SPC005GetPLMECN(string ItemNo) + { + IResultModel result; + result = await _spcApi.GetPLMEcn(ItemNo); + return Json(result); + } + [ResponseCache(Duration = 0)] [HttpGet] public async Task GetInspectionResultMastersAsync() diff --git a/AMESCoreStudio.Web/HttpApis/AMES/ISPC.cs b/AMESCoreStudio.Web/HttpApis/AMES/ISPC.cs index 51999830..b81750ea 100644 --- a/AMESCoreStudio.Web/HttpApis/AMES/ISPC.cs +++ b/AMESCoreStudio.Web/HttpApis/AMES/ISPC.cs @@ -338,6 +338,12 @@ namespace AMESCoreStudio.Web ITask> PutInspectionResultDetailForType([FromBody, RawJsonContent] string model); + /// + /// FQC007 取PLM ECN + /// + /// + [WebApiClient.Attributes.HttpGet("api/GetPLMData/Get_PLM_ECN")] + ITask> GetPLMEcn(string ItemNo); #endregion diff --git a/AMESCoreStudio.Web/Views/SPC/SPC005C.cshtml b/AMESCoreStudio.Web/Views/SPC/SPC005C.cshtml index 0c9be70a..82769dc8 100644 --- a/AMESCoreStudio.Web/Views/SPC/SPC005C.cshtml +++ b/AMESCoreStudio.Web/Views/SPC/SPC005C.cshtml @@ -69,10 +69,10 @@
- + @@ -113,12 +113,12 @@
@*
-
- @Html.ValidationMessage("error") - - -
-
*@ +
+ @Html.ValidationMessage("error") + + +
+ *@
@@ -172,7 +172,7 @@ @* *@ - + } diff --git a/AMESCoreStudio.Web/Views/SPC/SPC005U.cshtml b/AMESCoreStudio.Web/Views/SPC/SPC005U.cshtml index e3290084..0635a7fd 100644 --- a/AMESCoreStudio.Web/Views/SPC/SPC005U.cshtml +++ b/AMESCoreStudio.Web/Views/SPC/SPC005U.cshtml @@ -56,10 +56,10 @@
- + @@ -180,7 +180,7 @@ *@ - + }