diff --git a/AMESCoreStudio.Web/Controllers/PCSController.cs b/AMESCoreStudio.Web/Controllers/PCSController.cs index 879f109f..dc6b03c2 100644 --- a/AMESCoreStudio.Web/Controllers/PCSController.cs +++ b/AMESCoreStudio.Web/Controllers/PCSController.cs @@ -713,6 +713,28 @@ namespace AMESCoreStudio.Web.Controllers ViewBag.GetSolderPasteList = SolderPaste; } + + /// + /// 工單資訊 系統工程資訊 Type + /// + /// + private void GetWipSystemTypeSelect(string SelectedValue = null) + { + List values = new List(); + if (SelectedValue != null) + { + values = SelectedValue.Split(',').ToList(); + } + var q = Enum.GetValues(typeof(Enums.EnumWipSystemType)).Cast() + .Select(s => new SelectListItem + { + Text = Enums.GetDisplayName(s).ToString(), + Value = Convert.ToInt32(Enum.Parse(typeof(Enums.EnumWipSystemType), s.ToString())).ToString() + }).ToList(); + + ViewBag.GetWipSystemTypeSelect = q; + } + /// /// PCS List1 共用 BIOS/Checksum /// @@ -1302,6 +1324,7 @@ namespace AMESCoreStudio.Web.Controllers GetPCBWorkingType(); GetSolderPaste(); GetWipType(); + GetWipSystemTypeSelect(); GetCustomerType(); GetPCSList1(); GetPCSOPList(); @@ -1331,6 +1354,7 @@ namespace AMESCoreStudio.Web.Controllers GetPCBWorkingType(); GetSolderPaste(); GetWipType(); + GetWipSystemTypeSelect(); GetCustomerType(); GetPCSList1(); GetPCSOPList(); @@ -1340,6 +1364,8 @@ namespace AMESCoreStudio.Web.Controllers GetCheckboxWipAttr(); #endregion + return View(); + model.ruleStations = await _pcsApi.GetRuleStationByWipNo(model.wipInfo.WipNO); model.wipBarcodes = await _pcsApi.GetWipBarcode(model.wipInfo.WipNO); var q1 = await _pcsApi.GetMaterialSopQuery(itemNo: model.wipAtt.ItemNO); diff --git a/AMESCoreStudio.Web/Enums/EnumPCS.cs b/AMESCoreStudio.Web/Enums/EnumPCS.cs index adad0d6c..36aa0b37 100644 --- a/AMESCoreStudio.Web/Enums/EnumPCS.cs +++ b/AMESCoreStudio.Web/Enums/EnumPCS.cs @@ -97,7 +97,7 @@ namespace AMESCoreStudio.Web /// 無 /// [Display(Name = "無")] - N + N } /// @@ -118,6 +118,61 @@ namespace AMESCoreStudio.Web B, } + /// + /// 工單資訊 系統工程資訊 Power mode + /// + public enum EnumWipSystemPMType + { + /// + /// H/W ATX + /// + [Display(Name = "H/W ATX")] + A = 1, + + /// + /// H/W ATX,S/W AT + /// + [Display(Name = "H/W ATX,S/W AT")] + B = 2, + + /// + /// H/W AT + /// + [Display(Name = "H/W AT")] + C = 3, + + } + + /// + /// 工單資訊 系統工程資訊 Type + /// + public enum EnumWipSystemType + { + /// + /// N/A + /// + [Display(Name = "N/A")] + A = 1, + + /// + /// Check + /// + [Display(Name = "Check")] + B = 2, + + /// + /// Program + /// + [Display(Name = "Program")] + C = 3, + + /// + /// 備註說明 + /// + [Display(Name = "備註說明")] + D = 4, + } + /// /// Get Enum Display /// diff --git a/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml index c1ecde94..354bb031 100644 --- a/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml +++ b/AMESCoreStudio.Web/Views/PCS/PCS003.cshtml @@ -670,16 +670,19 @@
- -
- -
+
+
+ +
+
+ +
@@ -713,6 +716,14 @@
+
+
+ +
+ +
+
+
diff --git a/AMESCoreStudio.WebApi/Models/AMES/WipSystem.cs b/AMESCoreStudio.WebApi/Models/AMES/WipSystem.cs index faba5ca0..eaf2dc5b 100644 --- a/AMESCoreStudio.WebApi/Models/AMES/WipSystem.cs +++ b/AMESCoreStudio.WebApi/Models/AMES/WipSystem.cs @@ -80,6 +80,23 @@ namespace AMESCoreStudio.WebApi.Models.AMES [Display(Name = "燒機備註")] public string BiMemo { get; set; } + /// + /// BIOS_Type + /// + [DataMember] + [Display(Name = "BIOS")] + [Column("BIOS_TYPE")] + public int BiosType { get; set; } = 1; + + /// + /// BIOS + /// + [DataMember] + [Display(Name = "BIOS")] + [Column("BIOS")] + [Required(ErrorMessage = "{0},不能空白")] + public string Bios { get; set; } + /// /// BIOS版本 /// @@ -129,6 +146,13 @@ namespace AMESCoreStudio.WebApi.Models.AMES [Display(Name = "是否為精包裝")] public string FinePackage { get; set; } + /// + /// EC_Type + /// + [DataMember] + [Column("EC_TYPE")] + public int ECType { get; set; } = 1; + /// /// EC /// @@ -138,6 +162,13 @@ namespace AMESCoreStudio.WebApi.Models.AMES [Display(Name = "EC")] public string Ec { get; set; } + /// + /// FW_Type + /// + [DataMember] + [Column("FW_TYPE")] + public int FWType { get; set; } = 1; + /// /// Firewall /// @@ -147,6 +178,13 @@ namespace AMESCoreStudio.WebApi.Models.AMES [Display(Name = "FW")] public string Fw { get; set; } + /// + /// EC_Type + /// + [DataMember] + [Column("FW1_TYPE")] + public int FW1Type { get; set; } = 1; + /// /// Firewall 1 /// @@ -156,6 +194,13 @@ namespace AMESCoreStudio.WebApi.Models.AMES [Display(Name = "FW1")] public string Fw1 { get; set; } + /// + /// FW2_Type + /// + [DataMember] + [Column("FW2_TYPE")] + public int FW2Type { get; set; } = 1; + /// /// Firewall 2 /// @@ -165,6 +210,13 @@ namespace AMESCoreStudio.WebApi.Models.AMES [Display(Name = "FW2")] public string Fw2 { get; set; } + /// + /// OS_Type + /// + [DataMember] + [Column("OS_TYPE")] + public int OsType { get; set; } = 1; + /// /// OS版本 ///