檔案名稱 | 檔案路徑 | -預覽 | -下載 | +備註 | +- 預覽 + @index.Remark + | + 預覽 下載 + 刪除 | } @@ -1306,7 +1312,6 @@ // 刪除出貨序號 $("#DeleteBarcodeOther").click(function (event) { - layer.confirm('確定是否要刪除出貨序號?', { btn: ['確定', '取消'] }, function () { @@ -1359,7 +1364,7 @@ else { var contactdiv = '
---|---|---|---|---|---|
${data.mix} | -${data.max} | ${data.max} | `; $('#MACTable').append(contactdiv); } }, @@ -1485,6 +1490,40 @@ $(obj).attr("href", filePath); }; + // 檔案刪除 + function deleteFile(obj) { + layer.confirm('確定是否要刪除該筆檔案?', { + btn: ['確定', '取消'] + }, function () { + layer.closeAll('dialog'); + var FileName = $(obj).closest("TR").find('span[id*=FileName]').text(); + $.ajax({ + url: '@Url.Action("DeleteWipInfoBlobByFileName", "PCS")', + dataType: 'json', + data: { "wipNo": '@Model.wipInfo.WipNO', "fileName": FileName }, + cache: false, + type: "POST", + success: function (result) { + // 錯誤訊息 + if (!result.success) { + parent.hg.msg(result.msg); + } + else { + $("#wipBarcodeOther_StartNO").val(''); + $("#wipBarcodeOther_EndNO").val(''); + } + }, + error: function (jqXHR, textStatus, errorThrown) { + alert("檔案刪除失敗,請洽系統管理員!!"); + } + }); + }) + var Path = $(obj).closest("TR").find('span[id*=Filepath]').text(); + var FileName = $(obj).closest("TR").find('span[id*=FileName]').text(); + filePath = `/PCS/FileDownload?Path=${Path}&FileName=${FileName}`; + $(obj).attr("href", filePath); + } + function getFlowRuleList(data) { $.ajax( { @@ -1921,7 +1960,31 @@ }); }); - + + // 更新ECN or ECR + function GetPLM_ECN() { + $.ajax({ + url: "@Url.Action("FQC007GetPLMECN", "FQC")", + type: "Post", + data: { "ItemNo": '@Model.wipAtt.ItemNO' }, + success: function (result) { + if (result.success) { + var result_msg = result.msg; + if ('@Model.wipAtt.ItemNO') + layer.confirm('比對與PLM ECN/ECR不一樣,確定更新ECN/ECR嗎?', { + btn: ['確定', '取消'] + }, + $("#wipAtt_ECN").val(result_msg); + } + else { + parent.hg.msg(result.msg); + } + }, + error: function (result) { + parent.hg.msg(`呼叫API失敗`); + } + }); + } } diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/FqcInhouseMasterController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/FqcInhouseMasterController.cs index 0df8e41c..1581fb20 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/FqcInhouseMasterController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/FqcInhouseMasterController.cs @@ -263,7 +263,7 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES SpecialPo = q2.SpecialPo, StatusName = q1.Status == "P" ? string.IsNullOrWhiteSpace(q2.SpecialPo) ? "允收Pass" : "特採允收" : q1.Status == "R" ? "批退Reject" : "", FqcID = q2.WipNo == null ? 0 : q2.FqcID, - InhouseMemo = q2.InhouseMemo, + InhouseMemo = q1.InhouseMemo, ManualQaMeno = q2.ManualQaMeno, QaMeno = q2.QaMeno, CustomerNo = q4.CustomerNO, diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfoBlobController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfoBlobController.cs index 86a39ab6..6b31b862 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfoBlobController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfoBlobController.cs @@ -94,8 +94,8 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES { ResultModel