Example #1
0
 public RoleMenuController(IRoleAppService roleAppService, IMenuAppService menuAppService, IRoleMenuAppService roleMenuAppService, IMenuRepository menuRepository)
 {
     _roleAppService     = roleAppService;
     _menuAppService     = menuAppService;
     _roleMenuAppService = roleMenuAppService;
     _menuRepository     = menuRepository;
 }
Example #2
0
        public OpenAreaController(
            ICollaboratorAppService collaboratorPageAppService,
            IContactAppService contactAppService,
            IHomeAppService homeAppService,
            IHowToHelpAppService howToHelpAppService,
            ILanguageAppService languageAppService,
            ILogoAppService logoAppService,
            IMenuAppService menuAppService,
            IVolunteerAppService volunteerAppService,
            IWhoAreWeAppService whoAreWeAppService,
            IUrlHelper urlHelper)
        {
            _collaboratorPageAppService = collaboratorPageAppService;
            _contactAppService          = contactAppService;
            _homeAppService             = homeAppService;
            _howToHelpAppService        = howToHelpAppService;
            _languageAppService         = languageAppService;
            _logoAppService             = logoAppService;
            _menuAppService             = menuAppService;
            _volunteerAppService        = volunteerAppService;
            _whoAreWeAppService         = whoAreWeAppService;

            _languageEnricher = new LanguageEnricher(urlHelper);
            _logoEnricher     = new LogoEnricher(urlHelper);
            _menuEnricher     = new MenuEnricher(urlHelper);

            _collaboratorEnricher = new CollaboratorPageEnricher(urlHelper);
            _contactEnricher      = new ContactEnricher(urlHelper);
            _homeEnricher         = new HomeEnricher(urlHelper);
            _howToHelpEnricher    = new HowToHelpEnricher(urlHelper);
            _volunteerEnricher    = new VolunteerPageEnricher(urlHelper);
            _whoAreWeEnricher     = new WhoAreWeEnricher(urlHelper);
        }
Example #3
0
 public TopBarNavViewComponent(
     IUserNavigationManager userNavigationManager,
     IAbpSession abpSession, IMenuAppService menuAppService)
 {
     _abpSession     = abpSession;
     _menuAppService = menuAppService;
 }
Example #4
0
        public MenuItemService(IRepository<AuthorityMenuItemInfo, Guid> menuItemRepository, IMenuAppService menuAppService, ICacheHandler cache)
        {
            _menuItemRepository = menuItemRepository;
            _menuAppService =menuAppService;
            cacheHandler = cache;

        }
Example #5
0
        //根据数组查询菜单
        public static DataSet GetMenulist(string menu_ids)
        {
            IMenuAppService service  = IocManager.Instance.Resolve <IMenuAppService>();
            var             menuAttr = menu_ids.Split(',');
            List <Menu>     userList = new List <Menu>();

            foreach (var menuid in menuAttr)
            {
                int id = 0;
                int.TryParse(menuid, out id);
                var menuList = service.GetMenulist(id);
                if (menuList != null)
                {
                    menuList.ForEach(x => userList.Add(ConvertFromDto(x)));
                }
            }

            if (userList != null)
            {
                return(userList.ToDataSet <Menu>());
            }
            else
            {
                DataSet ds = new DataSet();
                return(ds);
            }
        }
Example #6
0
 public MenuController(
     IMenuAppService menuAppService,
     IUserRoleFinder userRoleFinder)
 {
     MenuAppService = menuAppService;
     UserRoleFinder = userRoleFinder;
 }
Example #7
0
 public MenuService(IMenuAppService menuAppService, IMenuDomainService menuDomainService,
                    IEmployeeDomainService employeeDomainService)
 {
     _menuAppService        = menuAppService;
     _menuDomainService     = menuDomainService;
     _employeeDomainService = employeeDomainService;
     _applicationEnginee    = new ApplicationEnginee();
 }
Example #8
0
 public MenuController(IMenuAppService menuService
                       , IAccountAppService accountService
                       , IUserContext userContext)
 {
     _menuService    = menuService;
     _accountService = accountService;
     _userContext    = userContext;
 }
Example #9
0
 public RoleController(IRoleAppService service, IMenuAppService menuAppService, IVerifyTokenAppService verifyTokenAppService, IHttpContextAccessor httpContextAccesor, IHttpClientFactory clientFactory)
     : base(clientFactory)
 {
     _service               = service;
     _menuAppService        = menuAppService;
     _verifyTokenAppService = verifyTokenAppService;
     _httpContextAccesor    = httpContextAccesor;
 }
Example #10
0
        public MenuAppServiceTest()
        {
            _menuAppService = LocalIocManager.Resolve <IMenuAppService>();

            UsingDbContext(context => new PageBuilder(context).Build());
            UsingDbContext(context => new PageDataBuilder(context).Build());
            UsingDbContext(context => new MenuBuilder(context).Build());
        }
 public SideBarNavViewComponent(
     IUserNavigationManager userNavigationManager,
     IMenuManager menuManager,
     IAbpSession abpSession, IMenuAppService menuAppService)
 {
     _userNavigationManager = userNavigationManager;
     _menuManager           = menuManager;
     _abpSession            = abpSession;
     _menuAppService        = menuAppService;
 }
Example #12
0
 public LayoutController(
     IUserNavigationManager userNavigationManager,
     IMultiTenancyConfig multiTenancyConfig,
     ILanguageManager languageManager,
     IMenuAppService menuAppService
     )
 {
     _userNavigationManager = userNavigationManager;
     _multiTenancyConfig    = multiTenancyConfig;
     _languageManager       = languageManager;
     _menuAppService        = menuAppService;
 }
 public UserController(IUserAppService userAppService,
                       IRoleAppService roleAppService,
                       IMenuAppService menuAppService,
                       IDepartmentAppService departmentAppService,
                       IUserRepository userRepository)
 {
     _departmentAppService = departmentAppService;
     _userAppService       = userAppService;
     _roleAppService       = roleAppService;
     _menuAppService       = menuAppService;
     _userRepository       = userRepository;
 }
 public MenuDomainService(IOrganizationMenuAppService organizationMenuAppService, IRoleMenuAppService roleMenuAppService,
                          IEmployeeMenuAppService employeeMenuAppService, IRelationOrganizationEmployeeAppService relationOrganizationEmployeeAppService,
                          IRelationEmployeeRoleAppService relationEmployeeRoleAppService, IMenuAppService menuAppService)
 {
     _applicationEnginee                     = new ApplicationEnginee();
     _organizationMenuAppService             = organizationMenuAppService;
     _roleMenuAppService                     = roleMenuAppService;
     _employeeMenuAppService                 = employeeMenuAppService;
     _relationOrganizationEmployeeAppService = relationOrganizationEmployeeAppService;
     _relationEmployeeRoleAppService         = relationEmployeeRoleAppService;
     _menuAppService = menuAppService;
 }
Example #15
0
        public static Menu GetModel(int menu_id)
        {
            IMenuAppService service = IocManager.Instance.Resolve <IMenuAppService>();

            if (service == null)
            {
                return(null);;
            }
            else
            {
                var menuDto = service.GetModel(menu_id);
                return(ConvertFromDto(menuDto));
            }
        }
Example #16
0
 public EmployeeDomainService(IOrganizationAppService organizationAppService, IRoleAppService roleAppService,
                              IRelationOrganizationEmployeeAppService relationOrganizationEmployeeAppService, IRelationEmployeeRoleAppService relationEmployeeRoleAppService,
                              IEmployeeAppService employeeAppService, IOrganizationElementAppService organizationElementAppService, IRoleElementAppService roleElementAppService,
                              IEmployeeElementAppService employeeElementAppService, IOrganizationMenuAppService organizationMenuAppService,
                              IRoleMenuAppService roleMenuAppService, IEmployeeMenuAppService employeeMenuAppService,
                              IModuleElementAppService moduleElementAppService, IMenuAppService menuAppService, IModuleAppService moduleAppService)
 {
     _organizationAppService = organizationAppService;
     _roleAppService         = roleAppService;
     _relationOrganizationEmployeeAppService = relationOrganizationEmployeeAppService;
     _relationEmployeeRoleAppService         = relationEmployeeRoleAppService;
     _employeeAppService            = employeeAppService;
     _organizationElementAppService = organizationElementAppService;
     _roleElementAppService         = roleElementAppService;
     _employeeElementAppService     = employeeElementAppService;
     _organizationMenuAppService    = organizationMenuAppService;
     _roleMenuAppService            = roleMenuAppService;
     _employeeMenuAppService        = employeeMenuAppService;
     _moduleElementAppService       = moduleElementAppService;
     _menuAppService     = menuAppService;
     _moduleAppService   = moduleAppService;
     _applicationEnginee = new ApplicationEnginee();
 }
Example #17
0
 public MenuController(IMenuAppService menuAppService, IHttpClientFactory clientFactory)
     : base(clientFactory)
 {
     _menuAppService = menuAppService;
 }
Example #18
0
 public MenuController(IMenuAppService service)
 {
     _service = service;
 }
 public NavigationViewComponent(IMenuAppService menuAppService, IUserAppService userAppService)
 {
     _menuAppService = menuAppService;
     _userAppService = userAppService;
 }
Example #20
0
 //构造函数
 public ItemBaseOnHardwareEditViewComponent(IMenuAppService menuAppService)
 {
     _menuAppService = menuAppService;
 }
Example #21
0
 public HomeController(IMenuAppService menuAppService)
 {
     _menuAppService = menuAppService;
 }
Example #22
0
 public MenuFilter(IMenuAppService menuAppService, IHostingEnvironment hostingEnvironment)
 {
     _menuAppService     = menuAppService;
     _hostingEnvironment = hostingEnvironment;
 }
Example #23
0
 //构造函数
 public UserEditViewComponent(IMenuAppService menuAppService)
 {
     _menuAppService = menuAppService;
 }
Example #24
0
 public MenuController(IMenuAppService appService)
 {
     _appService = appService;
 }
 //构造函数
 public MenuAddViewComponent(IMenuAppService menuAppService)
 {
     _menuAppService = menuAppService;
 }
Example #26
0
 public MenuController(IMenuAppService _menuAppService)
 {
     menuAppService = _menuAppService;
 }
Example #27
0
 public MenuApp(IMenuAppService menuAppService)
 {
     _menuAppService = menuAppService;
 }
Example #28
0
 public MenuController(IMenuAppService menuAppService, Vic.Core.Application.IServices.IUserAppService userAppService)
 {
     _menuAppService = menuAppService;
 }
Example #29
0
 //构造函数
 public MenuDeleteViewComponent(IMenuAppService menuAppService)
 {
     _menuAppService = menuAppService;
 }
Example #30
0
 public MenuController(IMenuAppService menuService
                       , UserContext userContext)
 {
     _menuService = menuService;
     _userContext = userContext;
 }
Example #31
0
 public RoleService(IRepository<AuthorityRoleInfo, Guid> roleRepository, IMenuAppService menuAppService, ICacheHandler cache)
 {
     _roleRepository = roleRepository;
     _menuAppService = menuAppService;
     cacheHandler = cache;
 }
Example #32
0
 public MenuController(IMenuAppService menuAppService)
 {
     _menuAppService = menuAppService;
 }
Example #33
0
 public TodosController(IMenuAppService todoAppService)
 {
     _todoAppService = todoAppService;
 }