diff --git a/AMESCoreStudio.Web/Controllers/PCSController.cs b/AMESCoreStudio.Web/Controllers/PCSController.cs
index 1427d37e..aeee2dd4 100644
--- a/AMESCoreStudio.Web/Controllers/PCSController.cs
+++ b/AMESCoreStudio.Web/Controllers/PCSController.cs
@@ -6196,6 +6196,21 @@ namespace AMESCoreStudio.Web.Controllers
});
}
}
+ // 差異SOP F
+ if (wipSOP.Where(w => w.UnitNo == stationUnit && w.SOPType == "F").Any())
+ {
+ var wipSOPTypeF = wipSOP.Where(w => w.UnitNo == stationUnit && w.SOPType == "F")
+ .OrderByDescending(w => w.UpdateTime).FirstOrDefault();
+ var Esop = await _pcsApi.GetDocEsopViewByNo(wipSOPTypeF.SOPName);
+ if (Esop.Count != 0)
+ {
+ model.Sops.Add(new PCS021ViewModel_SOP
+ {
+ SopName = "差異SOP",
+ SopPath = $@"/DocEsop/{Esop.FirstOrDefault().file_path}"
+ });
+ }
+ }
// 暫行SOP D
if (wipSOP.Where(w => w.UnitNo == stationUnit && w.SOPType == "D").Any())
{
diff --git a/AMESCoreStudio.WebApi/Enums/EnumPCS.cs b/AMESCoreStudio.WebApi/Enums/EnumPCS.cs
index 075de1b7..2d712cd7 100644
--- a/AMESCoreStudio.WebApi/Enums/EnumPCS.cs
+++ b/AMESCoreStudio.WebApi/Enums/EnumPCS.cs
@@ -344,6 +344,12 @@ namespace AMESCoreStudio.WebApi.Enum
///
[Display(Name = "REWORK")]
E = 5,
+
+ ///
+ /// 差異SOP
+ ///
+ [Display(Name = "差異SOP")]
+ F = 6,
}
///