diff --git a/SolarPower/Views/Company/Index.cshtml b/SolarPower/Views/Company/Index.cshtml
index d46f785..3aee15d 100644
--- a/SolarPower/Views/Company/Index.cshtml
+++ b/SolarPower/Views/Company/Index.cshtml
@@ -250,6 +250,9 @@
'render': function (data, type, full, meta) {
return '
';
}
+ },{
+ 'targets': 8,
+ 'visible': false
}],
"language": {
"emptyTable": "查無資料",
diff --git a/SolarPower/Views/PowerStation/Index.cshtml b/SolarPower/Views/PowerStation/Index.cshtml
index d1cb700..cd0b781 100644
--- a/SolarPower/Views/PowerStation/Index.cshtml
+++ b/SolarPower/Views/PowerStation/Index.cshtml
@@ -1,5 +1,5 @@
@{
- ViewData["MainNum"] = "6";
+ ViewData["MainNum"] = "8";
ViewData["SubNum"] = "1";
ViewData["Title"] = "電站管理";
}
diff --git a/SolarPower/Views/Shared/_Layout.cshtml b/SolarPower/Views/Shared/_Layout.cshtml
index 731544d..e98362d 100644
--- a/SolarPower/Views/Shared/_Layout.cshtml
+++ b/SolarPower/Views/Shared/_Layout.cshtml
@@ -154,12 +154,12 @@
-->
}
@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"))
{
@@ -295,38 +295,38 @@
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("StationReport"))
{
- -
-
- 電站報表
-
-
+ -
+
+ 電站報表
+
+
}
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("ElectricitySoldRecord"))
{
- -
-
- 台電售電記錄
-
-
+ -
+
+ 台電售電記錄
+
+
}
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("PowerGeneration"))
{
- -
-
- 電廠發電效能統計
-
-
+ -
+
+ 電廠發電效能統計
+
+
}
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("NoticeSchedule"))
{
- -
-
- 報告發送記錄
-
-
+ -
+
+ 報告發送記錄
+
+
}
@@ -348,8 +348,23 @@
}
-
- @if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("PowerStation") || ViewBag.auths.Contains("Operation") || ViewBag.auths.Contains("OperationRecord"))
+ @if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("PowerStation"))
+ {
+
+
+
+ 電站管理
+
+
+
+ }
+ @if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("Operation") || ViewBag.auths.Contains("OperationRecord"))
{
@@ -357,14 +372,7 @@
運維管理
- @if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("PowerStation"))
- {
- -
-
- 電站管理
-
-
- }
+
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("Operation"))
{
-
@@ -410,21 +418,21 @@
}
@*@if (ViewBag.auths.Contains("User"))
- {
- -
-
- 功能清單
-
-
- }
- @if (ViewBag.auths.Contains("User"))
- {
- -
-
- 定時任務設定
-
-
- }*@
+ {
+ -
+
+ 功能清單
+
+
+ }
+ @if (ViewBag.auths.Contains("User"))
+ {
+ -
+
+ 定時任務設定
+
+
+ }*@
}