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($("