-
+
-
-
+
@@ -310,7 +310,7 @@
@@ -1178,7 +1178,7 @@
$.ajax({
url: '@Url.Action("GetBarcodeOther", "PCS")',
dataType: 'json',
- data: { "itemNo": itemNo, "lotNo": lotNo, "num": planQTY },
+ data: { "itemNo": itemNo, "lotNo": lotNo, "num": planQTY ,"wipNo":'@Model.wipInfo.WipNO'},
cache: false,
type: "POST",
success: function (result) {
@@ -1220,8 +1220,13 @@
if (data._msg != undefined) {
parent.hg.msg(data._msg);
}
- $("#wipMAC_StartNO").val(data.mix);
- $("#wipMAC_EndNO").val(data.max);
+ else
+ {
+ $("#wipMAC_StartNO").val(data.mix);
+ $("#wipMAC_EndNO").val(data.max);
+ $("#wipMAC_StartNO").attr("readonly", "readonly");
+ $("#wipMAC_EndNO").attr("readonly", "readonly");
+ }
},
error: function (jqXHR, textStatus, errorThrown) {
alert("Found error when using Ajax!!");
diff --git a/AMESCoreStudio.Web/Views/PCS/PCS009R.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS009R.cshtml
index 53f82c93..32fb2365 100644
--- a/AMESCoreStudio.Web/Views/PCS/PCS009R.cshtml
+++ b/AMESCoreStudio.Web/Views/PCS/PCS009R.cshtml
@@ -57,7 +57,7 @@
@@ -67,7 +67,7 @@
@@ -77,7 +77,7 @@
@@ -91,7 +91,7 @@
@foreach (var index in Model.WinInfos)
{
-
+ |
工單號碼:
|
@@ -140,7 +140,7 @@
建置日期:
|
- @index.CreateDate
+ @DateTime.Parse(index.CreateDate).ToString("yyyy/MM/dd HH:mm:ss")
|
DATE CODE:
@@ -216,7 +216,7 @@
@index.User
|
- @index.InputDate
+ @DateTime.Parse(index.InputDate).ToString("yyyy/MM/dd HH:mm:ss")
|
}
@@ -243,7 +243,10 @@
組件料號
- 過站時間
+ 綁入人員
+ |
+
+ 綁入時間
|
@@ -264,7 +267,7 @@
@index.KpItemNo
- @index.CreateDate
+ @index.CreateDate.ToString("yyyy/MM/dd HH:mm:ss")
|
}
@@ -287,6 +290,9 @@
零件位置
|
+
+ 維修代碼
+ |
維修狀態
|
@@ -318,7 +324,7 @@
@index.ReplyUser
- @index.ReplyDate
+ @DateTime.Parse(index.ReplyDate).ToString("yyyy/MM/dd HH:mm:ss")
|
}
@@ -354,7 +360,7 @@
@index.OutfitNo
- @index.InputDate
+ @DateTime.Parse(index.InputDate).ToString("yyyy/MM/dd HH:mm:ss")
|
}
@@ -407,7 +413,7 @@
@index.CreateUser
- @index.CreateDate
+ @index.CreateDate.ToString("yyyy/MM/dd HH:mm:ss")
|
}
diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/NgInfoController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/NgInfoController.cs
index b185fb65..e930dce3 100644
--- a/AMESCoreStudio.WebApi/Controllers/AMES/NgInfoController.cs
+++ b/AMESCoreStudio.WebApi/Controllers/AMES/NgInfoController.cs
@@ -141,12 +141,25 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
var q = from q1 in _context.BarcodeInfoes.Where(w => w.BarcodeNo == id)
join q2 in _context.NgInfos on q1.BarcodeID equals q2.BarcodeID
join q3 in _context.NgComponents on q2.NgID equals q3.NgID
+ join q4 in _context.NGReasons on q3.NgNo.Replace("$","") equals q4.NGReasonNo
+ into s
+ from q4 in s.DefaultIfEmpty()
+ join q5 in _context.NgRepairs on q3.ComponentID equals q5.ComponentID
+ into s1
+ from q5 in s1.DefaultIfEmpty()
+ join q6 in _context.RMAReasons on q5.RepairNo equals q6.RMAReasonNo
+ into s2
+ from q6 in s2.DefaultIfEmpty()
select new NGInfoDto
{
StationName = q2.Station.StationName,
LocationNo = q3.LocationNo,
- NGNo = q3.NgNo,
+ NGNo = q3.NgNo.Replace("$",""),
+ NGNoDesc = q4.NGReasonDesc,
Status = q3.Status == 0 ? "尚未處理" : q3.Status == 1 ? "已維修處理" : "誤判",
+ RepairNo = q5.RepairNo,
+ RepairDesc = q5.RepairDesc,
+ RepairNoDesc = q6.RMAReasonDesc,
ReplyUser = q3.ReplyUserID.ToString(),
ReplyDate = q3.ReplyDate.ToString("yyyy/MM/dd")
};
diff --git a/AMESCoreStudio.WebApi/DTO/AMES/NGInfoDto.cs b/AMESCoreStudio.WebApi/DTO/AMES/NGInfoDto.cs
index 4c586611..194e7642 100644
--- a/AMESCoreStudio.WebApi/DTO/AMES/NGInfoDto.cs
+++ b/AMESCoreStudio.WebApi/DTO/AMES/NGInfoDto.cs
@@ -25,6 +25,11 @@ namespace AMESCoreStudio.WebApi.DTO.AMES
///
public string NGNo { get; set; }
+ ///
+ /// 不良代碼說明
+ ///
+ public string NGNoDesc { get; set; }
+
///
/// 零件位置
///
@@ -35,6 +40,21 @@ namespace AMESCoreStudio.WebApi.DTO.AMES
///
public string Status { get; set; }
+ ///
+ /// 維修代碼
+ ///
+ public string RepairNo { get; set; }
+
+ ///
+ /// 維修代碼說明
+ ///
+ public string RepairNoDesc { get; set; }
+
+ ///
+ /// 維修說明
+ ///
+ public string RepairDesc { get; set; }
+
///
/// 回覆人員
///