| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- using Abp.AspNetCore.Mvc.Authorization;
- using Abp.Auditing;
- using Microsoft.AspNetCore.Mvc;
- using VberAdmin.Authorization;
- using VberAdmin.Controllers;
- using VberAdmin.Query;
- namespace VberAdmin.Web.Controllers;
- using Abp.Authorization;
- [AbpMvcAuthorize, DisableAuditing]
- public class BsController : VberAdminControllerBase
- {
- private readonly QueryAppService QueryApp;
- public BsController(QueryAppService queryApp)
- {
- QueryApp = queryApp;
- }
- public async Task<ActionResult> SysUser()
- {
- ViewBag.IsActive = await QueryApp.GetActiveStateSelectStr();
- ViewBag.IsActive2 = await QueryApp.GetActiveStateArrayStr();
- ViewBag.UserType = await QueryApp.GetUserTypeSelectStr(1);
- ViewBag.UserTypeAll = await QueryApp.GetUserTypeSelectStr();
- ViewBag.AccountType = await QueryApp.GetAccountTypeSelectStr();
- ViewBag.Gender = await QueryApp.GetGenderTypeSelectStr();
- ViewBag.Gender2 = await QueryApp.GetGenderTypeArrayStr();
- return View();
- }
- public async Task<ActionResult> SysRole()
- {
- ViewBag.RoleTypeAll = await QueryApp.GetRoleTypeSelectStr();
- ViewBag.RoleType = await QueryApp.GetRoleTypeSelectStr(1);
- ViewBag.AccountType = await QueryApp.GetAccountTypeSelectStr();
- return View();
- }
- [AbpMvcAuthorize(PermissionNames.VberSystemMgFunctionMg)]
- public async Task<ActionResult> Function()
- {
- ViewBag.FunctionType = await QueryApp.GetFunctionTypeSelectStr();
- return View();
- }
- [AbpMvcAuthorize(PermissionNames.VberSystemMgStateMgQuery)]
- public ActionResult State()
- {
- return View();
- }
- [AbpMvcAuthorize(PermissionNames.VberSystemMgSettingMg)]
- public ActionResult Setting()
- {
- return View();
- }
- [AbpMvcAuthorize(PermissionNames.VberSystemMgLogMg)]
- public ActionResult Log()
- {
- ViewBag.ServiceNames = QueryApp.GetLogServiceSelectStr();
- return View();
- }
- [AbpAllowAnonymous]
- public ActionResult Notification()
- {
- return View();
- }
- [AbpMvcAuthorize(PermissionNames.VberSystemMgHelpMg)]
- public async Task<ActionResult> Help()
- {
- ViewBag.HelpType = await QueryApp.GetHelpTypeSelectStr();
- ViewBag.FunctionMenu = await QueryApp.QueryFunctionPageSelectStr();
- return View();
- }
- public async Task<ActionResult> Tenant()
- {
- ViewBag.IsActive = await QueryApp.GetActiveStateSelectStr();
- ViewBag.IsActive2 = await QueryApp.GetActiveStateArrayStr();
- return View();
- }
- [AbpMvcAuthorize(PermissionNames.VberUserHelpInfo)]
- public ActionResult UserHelp()
- {
- return View();
- }
- }
|