Ejemplo n.º 1
0
 public MenuController(IMenusService menusService, IMenuInfoService menuInfoService, GeneralFunctions generalFunctions, IListInfoService listInfoService, IListsService listsService)
 {
     _menusService     = menusService;
     _menuInfoService  = menuInfoService;
     _generalFunctions = generalFunctions;
     _listsService     = listsService;
     _listInfoService  = listInfoService;
 }
Ejemplo n.º 2
0
 public ContentController(IContentsService contentsService, IContentInfoService contentInfoService, IContentClassesService contentClassesService,
                          IContentImagesService contentImagesService, GeneralFunctions generalFunctions, IMenusService menusService, IMenuInfoService menuInfoService)
 {
     _contentsService       = contentsService;
     _contentInfoService    = contentInfoService;
     _contentClassesService = contentClassesService;
     _contentImagesService  = contentImagesService;
     _generalFunctions      = generalFunctions;
     _menusService          = menusService;
     _menuInfoService       = menuInfoService;
 }
 //private readonly IUserInfoService userService;
 public ManagerController(
     ILogger <ManagerController> logger,
     IEFCoreService efCoreService,
     IMenuButtonService menuButtonService,
     IMenuInfoService menuInfoService,
     IRoleInfoService roleInfoService,
     IRoleMenuService roleMenuService,
     IUserInfoService userInfoService,
     IUserRoleService userRoleService
     )
 {
     _logger            = logger;
     _EFCoreService     = efCoreService;
     _menuButtonService = menuButtonService;
     _menuInfoService   = menuInfoService;
     _roleInfoService   = roleInfoService;
     _roleMenuService   = roleMenuService;
     _userInfoService   = userInfoService;
     _userRoleService   = userRoleService;
 }
Ejemplo n.º 4
0
        public string ListContentsMenu(string resource, IMenusService menusService, IMenuInfoService menuInfoService)
        {
            string strHtml  = "";
            int    parentID = 0;

            var menus    = menusService.GetAll();
            var menuInfo = menuInfoService.GetAll();

            var model = (from m in menus
                         join mI in menuInfo on m.MenuID equals mI.MenuID
                         where m.ParentID == parentID
                         select new MenuListVM
            {
                MenuID = m.MenuID,
                Menu = mI.Menu
            }
                         ).ToList();

            foreach (var item in model)
            {
                strHtml += "<li>";
                strHtml += string.Format(@"<input id= ""{0}"" type=""checkbox"" />< label for= ""vicepresident""> {1} </label>", item.MenuID, item.Menu);
                strHtml += "</li>";
            }



            //

            //<li>
            //    <input id="profil" type="checkbox" /><label for="vicepresident">Profil</label>
            //    <ul>
            //        <li><input id="hakkimizda" type="checkbox" /><label for="manager4">Hakkımızda</label></li>
            //        <li><input id="degerlerimiz" type="checkbox" /><label for="manager5">Değerlerimiz</label></li>
            //    </ul>
            //</li>



            return(strHtml);
        }
Ejemplo n.º 5
0
 public UserMenuRoleService(IRepository <UserMenuRole, DataContext> Repository, IMapper mapper, IMenuInfoService menuInfoService, IUserService userService) : base(Repository, mapper)
 {
     _menuInfoService = menuInfoService;
     _userService     = userService;
 }
Ejemplo n.º 6
0
 public MenuInfoController(IMenuInfoService _service)
 {
     service = _service;
 }
 public CommonMethodsController(IUserService userService, IMenuInfoService menuInfoService)
 {
     _userService     = userService;
     _menuInfoService = menuInfoService;
 }
Ejemplo n.º 8
0
 public MenuRecursion(IMenusService menusService, IMenuInfoService menuInfoService)
 {
     _menusService    = menusService;
     _menuInfoService = menuInfoService;
     allMenuItems     = GetMenuItems();
 }
Ejemplo n.º 9
0
 /// <summary>
 /// 菜单信息
 /// </summary>
 /// <param name="service">IMenuInfoService</param>
 public MenuInfoController(IMenuInfoService service)
 {
     _service = service;
 }