From 3f9d7f5a4ad51c0aedb8958c2e1a5006d711b1ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A8=81=E5=8B=9D=20=E5=BC=B5?= Date: Tue, 6 Feb 2024 13:38:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=AE=A1=E7=90=86=E8=80=85?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/ManagerController.cs | 31 + .../Views/Manager/Manager_Index.cshtml | 531 +++++++++++++++++ .../Views/Manager/Manager_Violation.cshtml | 552 ++++++++++++++++++ Parking_spaces/Views/Manager/Map_RTSP.cshtml | 8 + .../Manager/Single_violation_detail.cshtml | 378 ++++++++++++ .../Views/Manager/Yuntech_in_car.cshtml | 310 ++++++++++ .../Parking_spaces_total_table.cshtml | 5 +- .../Views/Shared/_Layout_Manager.cshtml | 477 +++++++++++++++ 8 files changed, 2291 insertions(+), 1 deletion(-) create mode 100644 Parking_spaces/Controllers/ManagerController.cs create mode 100644 Parking_spaces/Views/Manager/Manager_Index.cshtml create mode 100644 Parking_spaces/Views/Manager/Manager_Violation.cshtml create mode 100644 Parking_spaces/Views/Manager/Map_RTSP.cshtml create mode 100644 Parking_spaces/Views/Manager/Single_violation_detail.cshtml create mode 100644 Parking_spaces/Views/Manager/Yuntech_in_car.cshtml create mode 100644 Parking_spaces/Views/Shared/_Layout_Manager.cshtml diff --git a/Parking_spaces/Controllers/ManagerController.cs b/Parking_spaces/Controllers/ManagerController.cs new file mode 100644 index 0000000..a652b2f --- /dev/null +++ b/Parking_spaces/Controllers/ManagerController.cs @@ -0,0 +1,31 @@ +using Microsoft.AspNetCore.Mvc; + +namespace Parking_spaces.Controllers +{ + public class ManagerController : Controller + { + public IActionResult Manager_Index() + { + return View(); + } + public IActionResult Manager_Violation() + { + return View(); + } + public IActionResult Single_violation_detail(string id) + { + ViewBag.parking_spaces_name = id; + return View(); + } + + public IActionResult Yuntech_in_car() + { + return View(); + } + + public IActionResult Map_RTSP(string id) + { + return View(); + } + } +} diff --git a/Parking_spaces/Views/Manager/Manager_Index.cshtml b/Parking_spaces/Views/Manager/Manager_Index.cshtml new file mode 100644 index 0000000..58e35bb --- /dev/null +++ b/Parking_spaces/Views/Manager/Manager_Index.cshtml @@ -0,0 +1,531 @@ + +@{ + ViewData["Title"] = "Manager_Index"; + Layout = "~/Views/Shared/_Layout_Manager.cshtml"; +} + +

管理員模式

+ + + +
+ +
+
+
+
+ 每日違規數量 + +
+
+
+
+ +
+
+
+
+ + +
+
+
+
+ 每日車流量 +
+
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Parking_spaces/Views/Manager/Manager_Violation.cshtml b/Parking_spaces/Views/Manager/Manager_Violation.cshtml new file mode 100644 index 0000000..532c6d6 --- /dev/null +++ b/Parking_spaces/Views/Manager/Manager_Violation.cshtml @@ -0,0 +1,552 @@ + +@{ + ViewData["Title"] = "Manager_Violation"; + Layout = "~/Views/Shared/_Layout_Manager.cshtml"; +} + +

校園總違規區域

+ +
+ + + + + + + + + + + + + + + +
+ 總違規區域 + + +
+
+ + +
+ +
+
+
+
+ 每日違規數量 + +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ 違規次數 + +
+
+
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Parking_spaces/Views/Manager/Map_RTSP.cshtml b/Parking_spaces/Views/Manager/Map_RTSP.cshtml new file mode 100644 index 0000000..da57bfe --- /dev/null +++ b/Parking_spaces/Views/Manager/Map_RTSP.cshtml @@ -0,0 +1,8 @@ + +@{ + ViewData["Title"] = "Map_RTSP"; + Layout = "~/Views/Shared/_Layout_Manager.cshtml"; +} + +

Map_RTSP

+ diff --git a/Parking_spaces/Views/Manager/Single_violation_detail.cshtml b/Parking_spaces/Views/Manager/Single_violation_detail.cshtml new file mode 100644 index 0000000..ddffa8b --- /dev/null +++ b/Parking_spaces/Views/Manager/Single_violation_detail.cshtml @@ -0,0 +1,378 @@ + +@{ + ViewData["Title"] = "Single_violation_detail"; + Layout = "~/Views/Shared/_Layout_Engineering.cshtml"; + var parking_spaces_name = ViewBag.parking_spaces_name; +} + + +

違規車輛

+ +
+ 起始時間 : + 結束時間 : + + + + + + + + + + + + + + + + + + + +
+ 違規區域 + + 車牌號碼 + + 時間 +
+
+ + +
+ + + +

+ + + + + + + + + + + + + + + +
+ 違規區域 + + 車牌號碼 + + 進入圖片 + + 違規圖片 + + 時間 +
+ + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Parking_spaces/Views/Manager/Yuntech_in_car.cshtml b/Parking_spaces/Views/Manager/Yuntech_in_car.cshtml new file mode 100644 index 0000000..18f94ac --- /dev/null +++ b/Parking_spaces/Views/Manager/Yuntech_in_car.cshtml @@ -0,0 +1,310 @@ + +@{ + ViewData["Title"] = "Yuntech_in_car"; + Layout = "~/Views/Shared/_Layout_Manager.cshtml"; +} + +

進入車輛

+ + +
+ 起始時間 : + 結束時間 : + + + + + + + + + + + + + + + + + + + +
+ 區域 + + 車牌號碼 + + 時間 +
+
+ + +
+ + + + +

+ + + + + + + + + + + + + + +
+ 區域 + + 車牌號碼 + + 進入圖片 + + 時間 +
+ + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Parking_spaces/Views/Park_spaces/Parking_spaces_total_table.cshtml b/Parking_spaces/Views/Park_spaces/Parking_spaces_total_table.cshtml index 2e995af..00bd175 100644 --- a/Parking_spaces/Views/Park_spaces/Parking_spaces_total_table.cshtml +++ b/Parking_spaces/Views/Park_spaces/Parking_spaces_total_table.cshtml @@ -249,7 +249,7 @@ } else if (position == "manager") { //document.getElementById("position_id").innerHTML = "

校園總停車區域-管理者模式

' - document.getElementById("position_id").innerHTML = '校園總停車區域-管理者模式' + document.getElementById("position_id").innerHTML = "

校園總停車區域-管理者模式

' } else{ document.getElementById("position_id").innerHTML ='校園總停車區域' @@ -364,6 +364,9 @@ function engineer_mode() { window.location = "/Engineering/Engineering_Index"; } + function manager_mode() { + window.location = "/Manager/Manager_Index"; + } diff --git a/Parking_spaces/Views/Shared/_Layout_Manager.cshtml b/Parking_spaces/Views/Shared/_Layout_Manager.cshtml new file mode 100644 index 0000000..dc38781 --- /dev/null +++ b/Parking_spaces/Views/Shared/_Layout_Manager.cshtml @@ -0,0 +1,477 @@ + + + + + + + + + + + + 工程模式 + + + + + + + + + + + + + + + +
+ + + + + +
+ + +
+ + + + + +
+ @RenderBody() +
+ + +
+ + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file