diff --git a/ProgramManager/src/Application/GozareshgirProgramManager.Application/_Common/Constants/ProgramManagerPermissionCode.cs b/ProgramManager/src/Application/GozareshgirProgramManager.Application/_Common/Constants/ProgramManagerPermissionCode.cs index f5578ea2..3449f4f0 100644 --- a/ProgramManager/src/Application/GozareshgirProgramManager.Application/_Common/Constants/ProgramManagerPermissionCode.cs +++ b/ProgramManager/src/Application/GozareshgirProgramManager.Application/_Common/Constants/ProgramManagerPermissionCode.cs @@ -4,30 +4,233 @@ namespace GozareshgirProgramManager.Application._Common.Constants; public static class ProgramManagerPermissionCode { - + /// + /// دسترسی به بخش مدیریت پروژه + /// public const int Code = 99; + #region DeveloperUsers[تب کاربران برنامه نویسی] /// - ///بخش اجرا + /// تب کاربران برنامه نویسی + /// + public static class DeveloperUsers + { + public const int Code = 9900; + + /// + /// تب تعیین حقوق + /// + public static class SalaryDetermination + { + public const int Code = 990001; + + /// + /// تعیین زمان + /// + public const int WorkingHoursDetermination = 990001; + } + + /// + /// تب وضعیت کارکرد + /// + public static class WorkingStatus + { + public const int Code = 990002; + } + + /// + /// تب فیش حقوقی + /// + public static class Checkout + { + public const int Code = 990003; + + /// + /// ایجاد فیش + /// + public const int Create = 99000301; + + /// + /// حذف تکی فیش + /// + public const int SingleDeletion = 99000302; + + /// + /// حذف گروهی فیش ها + /// + public const int GroupDeletion = 99000303; + + /// + /// محاسبه مجدد گروهی فیش ها + /// + public const int GroupReCompute = 99000304; + + /// + /// محاسبه مجدد تکی فیش + /// + public const int SingleReCompute = 99000305; + + } + + } + + #endregion + + #region ProgramManager[تب مدیریت پروژه] + + /// + /// تب مدیریت پروژه + /// + public static class ProgramManager + { + public const int Code = 9901; + + /// + /// ایجاد پروژه + /// + public static class CreateProject + { + public const int Code = 9901; + } + + /// + /// همه پروژه ها + /// + public static class AllProjects + { + public const int Code = 990102; + + } + + /// + /// تعیین کاربر + /// + public static class UserDetermination + { + public const int Code = 990106; + } + + /// + /// تعیین زمان پروژه + /// + public static class ProjectTimeSetting + { + public const int Code = 990107; + } + + /// + /// ویرایش پروژه + /// + public static class EditProject + { + public const int Code = 990108; + } + + /// + /// حذف پروژه + /// + public static class DeleteProject + { + public const int Code = 990109; + } + + /// + /// ایجاد بخش اصلی + /// + public static class CreateMainSection + { + public const int Code = 990110; + } + + /// + /// ایجاد بخش فرعی + /// + public static class CreateSubSection + { + public const int Code = 990111; + } + } + + #endregion + + #region Board[تب اجرا] + + /// + ///تب اجرا /// public static class Board { - public const int Code = 991; + public const int Code = 9902; /// /// تب همه /// public static class All { - public const int Code = 99101; + public const int Code = 990201; + } - /// - /// دیدن همه تسک ها - /// - public const int ViewAll = 9910101; + /// + /// آماده اجرا + /// + public static class ReadyToRun + { + public const int Code = 990202; + } + + /// + /// در حال اجرا + /// + public static class Running + { + public const int Code = 990203; + } + + + /// + /// نیمه کاره + /// + public static class Unfinished + { + public const int Code = 990204; + } + + /// + /// اتمام اجرا + /// + public static class Finished + { + public const int Code = 990204; + } + + /// + /// دیدن پروژه همه کاربران + /// + public static class ViewAllUsersProjects + { + public const int Code = 990206; + } + + /// + /// ارجاع به دیگران + /// + public static class ReferralToOthers + { + public const int Code = 990207; + } + + /// + /// چت + /// + public static class Chat + { + public const int Code = 990208; } } - + + #endregion + + public static List GetAllCodes() { var result = new List(); diff --git a/ServiceHost/Areas/Admin/Pages/Accounts/Account/CreateRole.cshtml b/ServiceHost/Areas/Admin/Pages/Accounts/Account/CreateRole.cshtml index 398e2b56..e276aecf 100644 --- a/ServiceHost/Areas/Admin/Pages/Accounts/Account/CreateRole.cshtml +++ b/ServiceHost/Areas/Admin/Pages/Accounts/Account/CreateRole.cshtml @@ -1014,7 +1014,7 @@ - + @* @@ -1024,111 +1024,281 @@ - + *@ - + - مدیریت برنامه نویسان - - + مدیریت پروژه + + + + - مدیریت پروژه - + تب کاربران برنامه نویسی + + + - ایجاد پروژه + تب تعیین حقوق + + + + تعیین زمان + + + + + + + + + تب وضعیت کارکرد + + + + + + + + + + تب فیش حقوقی + + + + ایجاد فیش + + + حذف تکی فیش + + + حذف گروهی فیش ها + + + محاسبه مجدد گروهی فیش ها + + + محاسبه مجدد تکی فیش + + + + + + + + + + + + تب مدیریت پروژه + + + + + + ایجاد پروژه - - + + + - ستون لیست پروژه ها - - - تعیین کاربر - - - توضیحات - - - ویرایش - - - حذف - + همه پروژه ها + - + - ستون بخش اصلی + پروژه های آماده برنامه ریزی - - تعیین کاربر - - - توضیحات - - - ویرایش - - - حذف - + - + - ستون بخش اصلی + پروژه های در حال اجرا - - تعیین کاربر - - - توضیحات - - - ویرایش - - - حذف - + - - + + + + + + + پروژه های به اتمام رسیده + + + + + + + + + تعیین کاربر + + + + + + + + + + تعیین زمان پروژه + + + + + + + + + + ویرایش پروژه + + + + + + + + + + حذف پروژه + + + + + + + + + + + ایجاد بخش اصلی + + + + + + + + + + + ایجاد بخش فرعی + + + + + + + - همه + تب اجرا + + + + + + + + همه + + + + + + + + + آماده اجرا + + + + + + + + + + در حال اجرا + + + + + + + + + + نیمه کاره + + + + + + + + + + + نیمه کاره + + + + + + + + + + دیدن پروژه همه کاربران + + + + + + + + + + ارجاع به دیگران + + + + + + + + + + چت + + + + - - آماده اجرا - - - در حال اجرا - - - نیمه کاره - - - اتمام اجرا - - @@ -1324,6 +1494,13 @@ name="PmPermissions[${pmIndex}]" value="${chk.checked ? chk.value : 0}"> `); + if(chk.checked && chk.value == 99){ + $("#hiddenInput").append(` + `); + normalIndex++; + } pmIndex++; } else { $("#hiddenInput").append(` diff --git a/ServiceHost/Areas/Admin/Pages/Accounts/Account/EditRole.cshtml b/ServiceHost/Areas/Admin/Pages/Accounts/Account/EditRole.cshtml index da948964..b1e53af0 100644 --- a/ServiceHost/Areas/Admin/Pages/Accounts/Account/EditRole.cshtml +++ b/ServiceHost/Areas/Admin/Pages/Accounts/Account/EditRole.cshtml @@ -1017,124 +1017,282 @@ - + - پروگرام منیجر + مدیریت پروژه - - - - - - - - - - - - مدیریت برنامه نویسان - + + - مدیریت پروژه + تب کاربران برنامه نویسی + + - ایجاد پروژه + تب تعیین حقوق + + + + تعیین زمان + + + + + + + + + تب وضعیت کارکرد + - + - ستون لیست پروژه ها + تب فیش حقوقی + - تعیین کاربر + ایجاد فیش - توضیحات + حذف تکی فیش - ویرایش + حذف گروهی فیش ها - حذف - - - - - - - - ستون بخش اصلی - - - تعیین کاربر + محاسبه مجدد گروهی فیش ها - توضیحات - - - ویرایش - - - حذف - - - - - - - - ستون بخش اصلی - - - تعیین کاربر - - - توضیحات - - - ویرایش - - - حذف + محاسبه مجدد تکی فیش - + + + + - همه + تب مدیریت پروژه + + + + + + ایجاد پروژه - - آماده اجرا + + + - در حال اجرا + + + + همه پروژه ها + + - نیمه کاره + + + + پروژه های آماده برنامه ریزی + + + - اتمام اجرا + + + + پروژه های در حال اجرا + + + + + + + + + + پروژه های به اتمام رسیده + + + + + + + + + تعیین کاربر + + + + + + + + + + تعیین زمان پروژه + + + + + + + + + + ویرایش پروژه + + + + + + + + + + حذف پروژه + + + + + + + + + + + ایجاد بخش اصلی + + + + + + + + + + + ایجاد بخش فرعی + + + + + + + + + تب اجرا + + + + + + + + همه + + + + + + + + + آماده اجرا + + + + + + + + + + در حال اجرا + + + + + + + + + + نیمه کاره + + + + + + + + + + + نیمه کاره + + + + + + + + + + دیدن پروژه همه کاربران + + + + + + + + + + ارجاع به دیگران + + + + + + + + + + چت + + + + + + + @@ -1378,6 +1536,13 @@ name="PmPermissions[${pmIndex}]" value="${chk.checked ? chk.value : 0}"> `); + if(chk.checked && chk.value == 99){ + $("#hiddenInput").append(` + `); + normalIndex++; + } pmIndex++; } else { $("#hiddenInput").append(` diff --git a/ServiceHost/Areas/Admin/Pages/Shared/_Menu.cshtml b/ServiceHost/Areas/Admin/Pages/Shared/_Menu.cshtml index b1f15662..90b8007a 100644 --- a/ServiceHost/Areas/Admin/Pages/Shared/_Menu.cshtml +++ b/ServiceHost/Areas/Admin/Pages/Shared/_Menu.cshtml @@ -518,7 +518,7 @@ - پروگرام منیجر + مدیریت پروژه diff --git a/ServiceHost/Areas/AdminNew/Pages/Shared/_Menu.cshtml b/ServiceHost/Areas/AdminNew/Pages/Shared/_Menu.cshtml index 2aa0ccd4..7e246091 100644 --- a/ServiceHost/Areas/AdminNew/Pages/Shared/_Menu.cshtml +++ b/ServiceHost/Areas/AdminNew/Pages/Shared/_Menu.cshtml @@ -671,7 +671,7 @@ - پروگرام منیجر + مدیریت پروژه diff --git a/ServiceHost/Properties/launchSettings.json b/ServiceHost/Properties/launchSettings.json index d7381591..788962e4 100644 --- a/ServiceHost/Properties/launchSettings.json +++ b/ServiceHost/Properties/launchSettings.json @@ -19,7 +19,7 @@ "sqlDebugging": true, "dotnetRunMessages": "true", "nativeDebugging": true, - "applicationUrl": "https://localhost:5004;http://localhost:5003;https://192.168.0.117:5006", + "applicationUrl": "https://localhost:5004;http://localhost:5003;", "jsWebView2Debugging": false, "hotReloadEnabled": true },