From 100c9367ede323b59e0558d44e51011a9f0e1589 Mon Sep 17 00:00:00 2001 From: SamSys Date: Sun, 1 Jun 2025 15:30:02 +0330 Subject: [PATCH 1/3] editRole --- .../Pages/Accounts/Account/EditRole.cshtml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/ServiceHost/Areas/Admin/Pages/Accounts/Account/EditRole.cshtml b/ServiceHost/Areas/Admin/Pages/Accounts/Account/EditRole.cshtml index 11e2f5b0..888dc7a5 100644 --- a/ServiceHost/Areas/Admin/Pages/Accounts/Account/EditRole.cshtml +++ b/ServiceHost/Areas/Admin/Pages/Accounts/Account/EditRole.cshtml @@ -478,7 +478,15 @@ - @*ایجاد عناوین مقادیر سالانه*@ + @*حضورغیاب*@ +
+ + + +
+ @*ایجاد عناوین مقادیر سالانه*@
- @* تشخیص چهره *@ -
- - -
+ @* گزارشات *@
- @* تشخیص چهره *@ -
- - + + @*لیست کاربران کلاینت*@ +
+ + + +
+ +
+
+ +
+
+ +
+
+ +
+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ @* گزارشات *@
+ + @*لیست کاربران کلاینت*@ +
+ + + +
+ +
+
+ +
+
+ +
+
+ +
+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ @* گزارشات *@
diff --git a/ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml b/ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml index c8b06c30..0f24648c 100644 --- a/ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml +++ b/ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml @@ -3,12 +3,14 @@ @using Microsoft.EntityFrameworkCore @using _0_Framework.Application @model ServiceHost.Areas.Admin.Pages.Accounts.Account.IndexModel +@inject IAuthHelper _AuthHelper; @{ var i = 1; var j = 1; var r = 1; + var permissionList = _AuthHelper.GetPermissions(); //string colaps = "in"; //string act = "active"; } @@ -64,11 +66,11 @@
-

+

ایجاد کاربر جدید

-

+

ایجاد نقش جدید

@@ -99,17 +101,17 @@
@*==================================================================Adminusers=====*@ -
+
@@ -298,7 +301,7 @@
@*==================================================================roles=====*@ -
+
@@ -367,7 +370,7 @@
@*==================================================================Clientusers=====*@ -
+
@@ -485,27 +488,27 @@ j++; } - + ورود به کلاینت - - @if (item.IsActiveString == "true" && item.Role != "مدیر سیستم") { - + } else if (item.IsActiveString == "false") { - + } From 61e2bdaaf59ea8a4afd11a6a8965fecda9acf103 Mon Sep 17 00:00:00 2001 From: SamSys Date: Sun, 1 Jun 2025 16:42:35 +0330 Subject: [PATCH 3/3] add permission --- ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml b/ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml index 0f24648c..5ca79e88 100644 --- a/ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml +++ b/ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml @@ -101,7 +101,7 @@