diff --git a/AMESCoreStudio.Web/Controllers/FQCController.cs b/AMESCoreStudio.Web/Controllers/FQCController.cs index 781b11d8..8805aece 100644 --- a/AMESCoreStudio.Web/Controllers/FQCController.cs +++ b/AMESCoreStudio.Web/Controllers/FQCController.cs @@ -855,6 +855,7 @@ namespace AMESCoreStudio.Web.Controllers result_FQCResultMaster.Note = model.Note; result_FQCResultMaster.ECN_Memo = model.ECN_Memo; result_FQCResultMaster.InspectionStatus = model.InspectionStatus; + result_FQCResultMaster.PLM_ECN = model.PLMECN; await _fqcApi.PutFqcResultMaster(JsonConvert.SerializeObject(result_FQCResultMaster)); ModelState.AddModelError("error", "儲存成功!"); } diff --git a/AMESCoreStudio.Web/Views/FQC/FQC007.cshtml b/AMESCoreStudio.Web/Views/FQC/FQC007.cshtml index d28dfa51..18a9edc1 100644 --- a/AMESCoreStudio.Web/Views/FQC/FQC007.cshtml +++ b/AMESCoreStudio.Web/Views/FQC/FQC007.cshtml @@ -182,34 +182,45 @@
- +
-
-
- -
-
+
- +
-
-
-
- -
-
+
+ + + + +
+
+
- +
-
-
- -
-
+
@@ -644,6 +655,22 @@ }); } + // PLM_ECN + function GetPLM_ECN() { + $.ajax({ + url: `http://plm935fs01:50786/RMA_GetLocation/QueryLastReleaseECN?item=@Model.ItemNo`, + type: "Get", + data: {}, + success: function (result) { + alert(resut.d); + $('#PLMECN').val(result.d); + }, + error: function (result) { + alert(`呼叫API失敗`); + } + }); + } + $(document).ready(function () { var error = '@Html.ValidationMessage("error")'; $("#CustomerMedical").attr("disabled", "disabled"); @@ -653,7 +680,6 @@ parent.hg.msg(error); }; - let InhouseNo = $("#hInhouseNo").val().trim(); let SeqID = $("#hSeqID").val().trim(); let Result = '@Model.StatusName';