Changeset 15819 for branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive/3.3/HiveAdminClient.cs
- Timestamp:
- 02/27/18 23:20:14 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive/3.3/HiveAdminClient.cs
r15813 r15819 65 65 } 66 66 67 private IItemList<AssignedProjectResource> projectResourceAssignments; 68 public IItemList<AssignedProjectResource> ProjectResourceAssignments { 69 get { return projectResourceAssignments; } 70 } 71 67 72 private Dictionary<Guid, HashSet<Project>> projectAncestors; 68 73 public Dictionary<Guid, HashSet<Project>> ProjectAncestors { … … 110 115 resources = new ItemList<Resource>(); 111 116 projects = new ItemList<Project>(); 117 projectResourceAssignments = new ItemList<AssignedProjectResource>(); 112 118 113 119 projectAncestors = new Dictionary<Guid, HashSet<Project>>(); … … 120 126 service.GetSlavesForAdministration().ForEach(s => resources.Add(s)); 121 127 service.GetProjectsForAdministration().ForEach(p => projects.Add(p)); 128 var projectIds = projects.Select(p => p.Id).ToList(); 129 if(projectIds.Any()) 130 service.GetAssignedResourcesForProjectsAdministration(projectIds) 131 .ForEach(a => projectResourceAssignments.Add(a)); 122 132 }); 123 133
Note: See TracChangeset
for help on using the changeset viewer.