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) + { + + + - - - @foreach (var index in Model.wipBarcodes) - { - - - - - } - -
+ 起始生產序號 + - 結束生產序號 - + 結束生產序號 +
+ @index.StartNO + + @index.EndNO +
- @index.StartNO - - @index.EndNO -
+ } + + @*
-
- -
- -
-
-
-
- -
-
- +
+ +
+ +
+
-
+
+ +
+
+ +
-
-
*@ +
*@
@@ -1374,7 +1374,8 @@ }); SelectKPNo += ''; var contactdiv = '' + - '' + + '' + + '' + ''+SelectKPNo+'' + '' + '' + @@ -1400,7 +1401,8 @@ }); Select += ''; var contactdiv = '' + - '' + + '' + + '' + '' + '' + Select + '' + '刪除' + @@ -1428,7 +1430,8 @@ }); SelectSOPType += ''; var contactdiv = '' + - '' + + '' + + '' + '' + '' + SelectSOPType + '' + '' + Select + '' + @@ -1442,9 +1445,15 @@ // Table 刪除 function Remove(button) { //Determine the reference of the Row using the Button. - var row = $(button).closest("TR"); - var table = $(button).closest("TABLE")[0]; //$("#KPTable")[0]; - table.deleteRow(row[0].rowIndex); + hg.confirm("確認要刪除此筆資料嗎?", function () { + var row = $(button).closest("TR"); + var id = $(button).closest("TR").find('input[type=hidden]').val(); + var table = $(button).closest("TABLE")[0]; //$("#KPTable")[0]; + $(button).closest("TR").find('input[type=hidden]').val(id + "_"); + alert($(button).closest("TR").find('input[type=hidden]').val()); + row.hide(); + }); + //table.deleteRow(row[0].rowIndex); }; //生產單位選單 diff --git a/AMESCoreStudio.Web/Views/PCS/PCS021.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS021.cshtml index 55f3658f..edf86d85 100644 --- a/AMESCoreStudio.Web/Views/PCS/PCS021.cshtml +++ b/AMESCoreStudio.Web/Views/PCS/PCS021.cshtml @@ -217,7 +217,7 @@ - +