Exemplo n.º 1
0
 private void LoadNavigationBar()
 {
     var request = new MenuRequest {NavigationGroupCode = "Project"};
     var response = new MenuFactory().GetNavigationItemList(request);
     if (response.NavigationItemList != null)
     {
         LinkItemsWithGroups(navBarGroupProject, response.NavigationItemList);
     }
 }
Exemplo n.º 2
0
 public NavigationGroup getNavigationGroupByCode(MenuRequest request)
 {
     var response = new NavigationGroup();
     var tmpMenuGroup = Olympus._Nerv.Latches.Where(x => x.Code == request.NavigationGroupCode).FirstOrDefault();
     if (tmpMenuGroup != null)
     {
         response.Id = tmpMenuGroup.Id;
     }
     return response;
 }
Exemplo n.º 3
0
 public MenuResponse getNavigationItemsByGroupCode(MenuRequest request)
 {
     var response = new MenuResponse();
     var navigationGroup = getNavigationGroupByCode(request);
     if (navigationGroup != null)
     {
         response.NavigationItemList = new List<NavigationItem>();
         foreach (var item in Olympus._Nerv.Latches.Where(x => x.LatchParent == navigationGroup.Id).ToList())
         {
             NavigationItem tmpNavItem = new NavigationItem();
             tmpNavItem.Code = item.Code;
             tmpNavItem.Caption = item.Caption;
             response.NavigationItemList.Add(tmpNavItem);
         }
     }
     return response;
 }
Exemplo n.º 4
0
 public MenuResponse GetNavigationItemList(MenuRequest request)
 {
     return _menuService.getNavigationItemsByGroupCode(request);
 }