diff --git a/AMESCoreStudio.Web/Controllers/PCSController.cs b/AMESCoreStudio.Web/Controllers/PCSController.cs
index 87eca8b2..057cbe0a 100644
--- a/AMESCoreStudio.Web/Controllers/PCSController.cs
+++ b/AMESCoreStudio.Web/Controllers/PCSController.cs
@@ -1429,7 +1429,7 @@ namespace AMESCoreStudio.Web.Controllers
Title = item.Title,
CreateUserID = UserID,
UpdateUserID = UserID
- };
+ };
await _pcsApi.PostWipKp(JsonConvert.SerializeObject(wipKp));
}
@@ -1446,7 +1446,7 @@ namespace AMESCoreStudio.Web.Controllers
PartNo = item.StationType,
CreateUserID = UserID,
UpdateUserID = UserID
- };
+ };
await _pcsApi.PostWipOutfit(JsonConvert.SerializeObject(wipOutfit));
}
@@ -1464,7 +1464,7 @@ namespace AMESCoreStudio.Web.Controllers
SOPType = item.SopType,
CreateUserID = UserID,
UpdateUserID = UserID
- };
+ };
await _pcsApi.PostWipSop(JsonConvert.SerializeObject(wipSop));
}
}
@@ -3482,7 +3482,12 @@ namespace AMESCoreStudio.Web.Controllers
int i = 0;
foreach (var KeyPartItem in model.Inputs)
{
-
+ if (i + KpItemQty > model.WipKps.Count())
+ {
+ Msg = "已刷超過組件數量";
+ Success = false;
+ return Json(new Result() { success = Success, msg = Msg, data = Data });
+ }
keyParts.Add(new BarCodeCheckDto.inputItem
{
inputType = KeyPartItem.Contains("$") ? "NG" : model.WipKps[i + KpItemQty].KpNo,
diff --git a/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml
index c1c56275..3e61c246 100644
--- a/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml
+++ b/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml
@@ -233,47 +233,47 @@
@* 序號編碼sheet *@
-
-
-
-
- 起始生產序號
- |
+
+
+
+
+ 起始生產序號
+ |
-
- 結束生產序號
- |
+
+ 結束生產序號
+ |
+
+
+
+ @foreach (var index in Model.wipBarcodes)
+ {
+
+
+ @index.StartNO
+ |
+
+ @index.EndNO
+ |
-
-
- @foreach (var index in Model.wipBarcodes)
- {
-
-
- @index.StartNO
- |
-
- @index.EndNO
- |
-
- }
-
-
+ }
+
+
@*
*@