From a4c768f855d55256cefb2c3afaeab64bbd4fe785 Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 27 Apr 2022 01:42:16 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E6=AD=A3=E5=B7=A5=E5=96=AE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=B7=9A=E5=88=A5=E9=A1=AF=E7=A4=BA=E9=8C=AF?= =?UTF-8?q?=E8=AA=A4=202.=20=E7=94=9F=E7=94=A2=E6=AD=B7=E7=A8=8B=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/PCSController.cs | 12 +++++++++- .../ViewModels/PCS/PCS009RViewModel.cs | 2 +- AMESCoreStudio.Web/Views/PCS/PCS003.cshtml | 5 +++- AMESCoreStudio.Web/Views/PCS/PCS009R.cshtml | 20 +++++++++++++--- .../AMES/BarcodeStationController.cs | 23 +++++++++++-------- .../Controllers/AMES/WipKpsController.cs | 4 +++- AMESCoreStudio.WebApi/DTO/AMES/WipKpDto.cs | 6 +++++ .../Models/AMES/BarcodeStation.cs | 7 ++++++ 8 files changed, 63 insertions(+), 16 deletions(-) diff --git a/AMESCoreStudio.Web/Controllers/PCSController.cs b/AMESCoreStudio.Web/Controllers/PCSController.cs index 29ea8b62..ed02b258 100644 --- a/AMESCoreStudio.Web/Controllers/PCSController.cs +++ b/AMESCoreStudio.Web/Controllers/PCSController.cs @@ -2679,7 +2679,7 @@ namespace AMESCoreStudio.Web.Controllers Station = barcodestation.GetRuleStation.StationDesc, RuleStation = barcodestation.RuleStatus, SysType = barcodestation.Systype, - User = barcodestation.CreateUserID.ToString(), + User = barcodestation.UserName, InputDate = barcodestation.CreateDate.ToString() }); } @@ -2696,6 +2696,16 @@ namespace AMESCoreStudio.Web.Controllers InputDate = barcodeitem.CreateDate.ToString() }); } + var wipKp = await _pcsApi.GetWipKpByWipNo(result.WinInfos.FirstOrDefault().WipNo); + wipKp = wipKp.OrderBy(o => o.KpSeq).ToList(); + int i = 0; + foreach(var item in result.BarCodeKPs.OrderBy(o => o.InputDate)) + { + item.KPItemNo = wipKp[i].KpName; + item.No = wipKp[i].KpNoName; + i++; + } + // 治具清單 var barcodeoutfits = await _pcsApi.GetBarcodeOutfitByBarcodeNo(model.BarCodeNo); diff --git a/AMESCoreStudio.Web/ViewModels/PCS/PCS009RViewModel.cs b/AMESCoreStudio.Web/ViewModels/PCS/PCS009RViewModel.cs index c0ce5eeb..c9faca86 100644 --- a/AMESCoreStudio.Web/ViewModels/PCS/PCS009RViewModel.cs +++ b/AMESCoreStudio.Web/ViewModels/PCS/PCS009RViewModel.cs @@ -184,7 +184,7 @@ namespace AMESCoreStudio.Web.ViewModels.PCS public class BarCodeKP { /// - /// 編號 + /// 編號名稱 /// public string No { get; set; } diff --git a/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml index cc92133e..429a5ad1 100644 --- a/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml +++ b/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml @@ -1265,11 +1265,14 @@ success: function (result) { console.info(result.data); + var value = $("#wipInfo_LineID").val(); $("#wipInfo_LineID").empty();//清空下拉框的值 $.each(result.data, function (index, item) { $("#wipInfo_LineID").append($("