BsController.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using Abp.AspNetCore.Mvc.Authorization;
  2. using Abp.Auditing;
  3. using Microsoft.AspNetCore.Mvc;
  4. using VberAdmin.Authorization;
  5. using VberAdmin.Controllers;
  6. using VberAdmin.Query;
  7. namespace VberAdmin.Web.Controllers;
  8. using Abp.Authorization;
  9. [AbpMvcAuthorize, DisableAuditing]
  10. public class BsController : VberAdminControllerBase
  11. {
  12. private readonly QueryAppService QueryApp;
  13. public BsController(QueryAppService queryApp)
  14. {
  15. QueryApp = queryApp;
  16. }
  17. public async Task<ActionResult> SysUser()
  18. {
  19. ViewBag.IsActive = await QueryApp.GetActiveStateSelectStr();
  20. ViewBag.IsActive2 = await QueryApp.GetActiveStateArrayStr();
  21. ViewBag.UserType = await QueryApp.GetUserTypeSelectStr(1);
  22. ViewBag.UserTypeAll = await QueryApp.GetUserTypeSelectStr();
  23. ViewBag.AccountType = await QueryApp.GetAccountTypeSelectStr();
  24. ViewBag.Gender = await QueryApp.GetGenderTypeSelectStr();
  25. ViewBag.Gender2 = await QueryApp.GetGenderTypeArrayStr();
  26. return View();
  27. }
  28. public async Task<ActionResult> SysRole()
  29. {
  30. ViewBag.RoleTypeAll = await QueryApp.GetRoleTypeSelectStr();
  31. ViewBag.RoleType = await QueryApp.GetRoleTypeSelectStr(1);
  32. ViewBag.AccountType = await QueryApp.GetAccountTypeSelectStr();
  33. return View();
  34. }
  35. [AbpMvcAuthorize(PermissionNames.VberSystemMgFunctionMg)]
  36. public async Task<ActionResult> Function()
  37. {
  38. ViewBag.FunctionType = await QueryApp.GetFunctionTypeSelectStr();
  39. return View();
  40. }
  41. [AbpMvcAuthorize(PermissionNames.VberSystemMgStateMgQuery)]
  42. public ActionResult State()
  43. {
  44. return View();
  45. }
  46. [AbpMvcAuthorize(PermissionNames.VberSystemMgSettingMg)]
  47. public ActionResult Setting()
  48. {
  49. return View();
  50. }
  51. [AbpMvcAuthorize(PermissionNames.VberSystemMgLogMg)]
  52. public ActionResult Log()
  53. {
  54. ViewBag.ServiceNames = QueryApp.GetLogServiceSelectStr();
  55. return View();
  56. }
  57. [AbpAllowAnonymous]
  58. public ActionResult Notification()
  59. {
  60. return View();
  61. }
  62. [AbpMvcAuthorize(PermissionNames.VberSystemMgHelpMg)]
  63. public async Task<ActionResult> Help()
  64. {
  65. ViewBag.HelpType = await QueryApp.GetHelpTypeSelectStr();
  66. ViewBag.FunctionMenu = await QueryApp.QueryFunctionPageSelectStr();
  67. return View();
  68. }
  69. public async Task<ActionResult> Tenant()
  70. {
  71. ViewBag.IsActive = await QueryApp.GetActiveStateSelectStr();
  72. ViewBag.IsActive2 = await QueryApp.GetActiveStateArrayStr();
  73. return View();
  74. }
  75. [AbpMvcAuthorize(PermissionNames.VberUserHelpInfo)]
  76. public ActionResult UserHelp()
  77. {
  78. return View();
  79. }
  80. }