diff --git a/AMESCoreStudio.Web/Controllers/FQCController.cs b/AMESCoreStudio.Web/Controllers/FQCController.cs index e7817f5b..a6110834 100644 --- a/AMESCoreStudio.Web/Controllers/FQCController.cs +++ b/AMESCoreStudio.Web/Controllers/FQCController.cs @@ -1231,8 +1231,22 @@ namespace AMESCoreStudio.Web.Controllers var result = await _fqcApi.GetFqcQuery(model.InhouseNo, model.SeqID); var fqcItem = result.Data.FirstOrDefault(); - // Fail數量 小於0 才要判斷抽樣數量 && 不等於免驗 - if (fqcItem.FailQty <= 0 && fqcItem.InspectionStatus != "C") + // 判斷工單類型為無序號工單 + if (fqcItem.InspectionStatus == "D") + { + var wipinfo = await _pcsApi.GetWipInfoByWipNO(fqcItem.WipNo); + if (wipinfo.Count != 0) + { + if (wipinfo.FirstOrDefault().WipType != "N") + { + var _msg = "工單類型不是無序號工單,檢驗類型不能選擇無序號廠驗"; + return RedirectToAction("Refresh", "Home", new { msg = _msg }); + } + } + } + + // Fail數量 小於0 才要判斷抽樣數量 && 不等於免驗||無序號廠驗 + if (fqcItem.FailQty <= 0 && (fqcItem.InspectionStatus != "C" || fqcItem.InspectionStatus != "D")) { // 抽驗數量 大於 本批次送驗量 if (fqcItem.QcQty > fqcItem.InhouseQty) @@ -1290,8 +1304,8 @@ namespace AMESCoreStudio.Web.Controllers var FqcQuery = await _fqcApi.GetFqcQuery(model.InhouseNo, model.SeqID); var fqcItem = FqcQuery.Data.FirstOrDefault(); - // 免驗排除 - if (fqcItem.InspectionStatus != "C") + // 免驗||無序號廠驗排除 + if (fqcItem.InspectionStatus != "C" || fqcItem.InspectionStatus != "D") { // 判斷狀態選擇 if (fqcItem.FailQty >= fqcItem.ReQty) diff --git a/AMESCoreStudio.Web/Controllers/PCSController.cs b/AMESCoreStudio.Web/Controllers/PCSController.cs index 9361ac0b..4724ed6d 100644 --- a/AMESCoreStudio.Web/Controllers/PCSController.cs +++ b/AMESCoreStudio.Web/Controllers/PCSController.cs @@ -589,6 +589,10 @@ namespace AMESCoreStudio.Web.Controllers { Text = "R:重工工單", Value = "R", + }, + new SelectListItem() { + Text = "N:無序號工單", + Value = "N", } }; diff --git a/AMESCoreStudio.Web/Views/FQC/FQC007.cshtml b/AMESCoreStudio.Web/Views/FQC/FQC007.cshtml index e8b37001..890d1a0a 100644 --- a/AMESCoreStudio.Web/Views/FQC/FQC007.cshtml +++ b/AMESCoreStudio.Web/Views/FQC/FQC007.cshtml @@ -15,7 +15,7 @@ color: #009688; } .aa input { - font-size: 18px; + font-size: 14px; color: #0600f0; } @@ -116,13 +116,13 @@ -