diff --git a/SolarPower/Views/Shared/_Layout.cshtml b/SolarPower/Views/Shared/_Layout.cshtml
index 7d43486..3f3945f 100644
--- a/SolarPower/Views/Shared/_Layout.cshtml
+++ b/SolarPower/Views/Shared/_Layout.cshtml
@@ -177,13 +177,13 @@
}
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin
- || ViewBag.auths.Contains("StationOverview_UpToDate")
- || ViewBag.auths.Contains("StationOverview_Info")
- || ViewBag.auths.Contains("StationOverview_InverterInfo")
- || ViewBag.auths.Contains("StationOverview_Inverter")
- || ViewBag.auths.Contains("StationOverview_History")
- || ViewBag.auths.Contains("StationOverview_Exception")
- || ViewBag.auths.Contains("StationOverview_OperationRecord"))
+ || ViewBag.auths.Contains("StationOverview_UpToDate")
+ || ViewBag.auths.Contains("StationOverview_Info")
+ || ViewBag.auths.Contains("StationOverview_InverterInfo")
+ || ViewBag.auths.Contains("StationOverview_Inverter")
+ || ViewBag.auths.Contains("StationOverview_History")
+ || ViewBag.auths.Contains("StationOverview_Exception")
+ || ViewBag.auths.Contains("StationOverview_OperationRecord"))
{
@@ -196,13 +196,13 @@
}
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin
- || ViewBag.auths.Contains("StationOverview_UpToDate")
- || ViewBag.auths.Contains("StationOverview_Info")
- || ViewBag.auths.Contains("StationOverview_InverterInfo")
- || ViewBag.auths.Contains("StationOverview_Inverter")
- || ViewBag.auths.Contains("StationOverview_History")
- || ViewBag.auths.Contains("StationOverview_Exception")
- || ViewBag.auths.Contains("StationOverview_OperationRecord"))
+ || ViewBag.auths.Contains("StationOverview_UpToDate")
+ || ViewBag.auths.Contains("StationOverview_Info")
+ || ViewBag.auths.Contains("StationOverview_InverterInfo")
+ || ViewBag.auths.Contains("StationOverview_Inverter")
+ || ViewBag.auths.Contains("StationOverview_History")
+ || ViewBag.auths.Contains("StationOverview_Exception")
+ || ViewBag.auths.Contains("StationOverview_OperationRecord"))
{
@@ -244,9 +244,9 @@
}
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin
- || ViewBag.auths.Contains("AnalysisStationCombine")
- || ViewBag.auths.Contains("AnalysisStationInfo")
- || ViewBag.auths.Contains("AnalysisInverter"))
+ || ViewBag.auths.Contains("AnalysisStationCombine")
+ || ViewBag.auths.Contains("AnalysisStationInfo")
+ || ViewBag.auths.Contains("AnalysisInverter"))
{
@@ -282,10 +282,10 @@
}
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin
- || ViewBag.auths.Contains("StationReport")
- || ViewBag.auths.Contains("ElectricitySoldRecord")
- || ViewBag.auths.Contains("PowerGeneration")
- || ViewBag.auths.Contains("NoticeSchedule"))
+ || ViewBag.auths.Contains("StationReport")
+ || ViewBag.auths.Contains("ElectricitySoldRecord")
+ || ViewBag.auths.Contains("PowerGeneration")
+ || ViewBag.auths.Contains("NoticeSchedule"))
{
@@ -348,22 +348,7 @@
}
- @if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("PowerStationManager"))
- {
-
-
-
- 電站管理
-
-
-
- }
+
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("Operation") || ViewBag.auths.Contains("OperationRecord"))
{
@@ -392,6 +377,22 @@
}
+ @if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("PowerStationManager"))
+ {
+
+
+
+ 電站管理
+
+
+
+ }
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("Company") || ViewBag.auths.Contains("User") || ViewBag.auths.Contains("Role") || ViewBag.auths.Contains("User"))@*TODO修改定時任務權限*@
{