From 7f907d5f57092d1efc5dd85c0affe64dc0453e20 Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 14 Feb 2023 22:10:42 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E6=94=B9=E9=81=8E=E7=AB=99=20KP?= =?UTF-8?q?=5FMAC=E5=88=A4=E6=96=B7=202.=20FQC=E6=8A=BD=E9=A9=97=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=AC=84=E4=BD=8D=E5=8A=A0=E5=A4=A7=203.=20=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E7=AC=AC=E4=B8=80=E7=AB=99SOP=E6=B2=92=E6=9C=89?= =?UTF-8?q?=E9=A1=AF=E7=A4=BA=E5=87=BA=E4=BE=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.Web/Controllers/PCSController.cs | 10 +++++++--- .../Controllers/BLL/BarCodeCheckController.cs | 4 ++-- AMESCoreStudio.WebApi/Models/AMES/FqcResultMaster.cs | 10 +++++----- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/AMESCoreStudio.Web/Controllers/PCSController.cs b/AMESCoreStudio.Web/Controllers/PCSController.cs index e02ac3db..88afd57f 100644 --- a/AMESCoreStudio.Web/Controllers/PCSController.cs +++ b/AMESCoreStudio.Web/Controllers/PCSController.cs @@ -6116,6 +6116,12 @@ namespace AMESCoreStudio.Web.Controllers var q = await _pcsApi.GetWipInfoByWipNO(model.WipNO); q = q.Where(w => w.UnitNO == model.UnitNO).ToList(); + // 工單流程ID 取站別 + var ruleStations = await GetRuleStationByFlowRuleID(model.FlowRuleID); + var StationNameSt = ""; // 作業站名稱代碼 提供不二過 + if (model.Station == 0) + model.Station = ruleStations.FirstOrDefault().StationID; + // 取作業站的生產製程 var stationUnit = string.Empty; var station = await _basApi.GetStations(model.Station); @@ -6150,9 +6156,7 @@ namespace AMESCoreStudio.Web.Controllers return View("PCS021", model); } - // 工單流程ID 取站別 - var ruleStations = await GetRuleStationByFlowRuleID(model.FlowRuleID); - var StationNameSt = ""; // 作業站名稱代碼 提供不二過 + if (model.Station != 0) { if (ruleStations.Where(w => w.StationID == model.Station).Any()) diff --git a/AMESCoreStudio.WebApi/Controllers/BLL/BarCodeCheckController.cs b/AMESCoreStudio.WebApi/Controllers/BLL/BarCodeCheckController.cs index ef53a76d..232417ce 100644 --- a/AMESCoreStudio.WebApi/Controllers/BLL/BarCodeCheckController.cs +++ b/AMESCoreStudio.WebApi/Controllers/BLL/BarCodeCheckController.cs @@ -281,7 +281,7 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES #endregion #region 判斷MAC區間 - if (q_Kp.KpNo.ToUpper().Contains("MAC")) + if (q_Kp.KpNo.ToUpper() == "MAC") { var wipMAC = await wipMACController.GetWipMAC(barCodeCheckDto.wipNo); @@ -1929,7 +1929,7 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES #endregion #region 判斷MAC區間 - if (wipKpsItem.KpNo.ToUpper().Contains("MAC")) + if (wipKpsItem.KpNo.ToUpper() == "MAC") { WipMACController wipMACController = new WipMACController(_context); var wipMAC = await wipMACController.GetWipMAC(barcodeItemKPDto.WipNo); diff --git a/AMESCoreStudio.WebApi/Models/AMES/FqcResultMaster.cs b/AMESCoreStudio.WebApi/Models/AMES/FqcResultMaster.cs index 1d9ffbec..62271d60 100644 --- a/AMESCoreStudio.WebApi/Models/AMES/FqcResultMaster.cs +++ b/AMESCoreStudio.WebApi/Models/AMES/FqcResultMaster.cs @@ -228,7 +228,7 @@ namespace AMESCoreStudio.WebApi.Models.AMES [DataMember] [Display(Name = "OS")] [Column("OS")] - [StringLength(20)] + [StringLength(50)] public string OS { get; set; } /// @@ -237,7 +237,7 @@ namespace AMESCoreStudio.WebApi.Models.AMES [DataMember] [Display(Name = "CPU test")] [Column("CPU")] - [StringLength(20)] + [StringLength(50)] public string CPU { get; set; } /// @@ -246,7 +246,7 @@ namespace AMESCoreStudio.WebApi.Models.AMES [DataMember] [Display(Name = "RAM test")] [Column("RAM")] - [StringLength(20)] + [StringLength(50)] public string RAM { get; set; } /// @@ -255,7 +255,7 @@ namespace AMESCoreStudio.WebApi.Models.AMES [DataMember] [Display(Name = "BIOS")] [Column("BIOS")] - [StringLength(20)] + [StringLength(50)] public string BIOS { get; set; } /// @@ -264,7 +264,7 @@ namespace AMESCoreStudio.WebApi.Models.AMES [DataMember] [Display(Name = "檢驗儀器編號")] [Column("OUTFIT_NO")] - [StringLength(20)] + [StringLength(50)] public string OutfitNo { get; set; } ///