Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/23/18 14:00:03 (6 years ago)
Author:
jzenisek
Message:

#2839

  • adapted handling of cascading revocations of project-user permissions and project-resource assignments: from deleting all AssignedJobResource (formerly) to deleting only entries which are effected by the previously mentioned revocations (now)
  • implemented job update (client side)
  • corrected & improved stateful project/resource selection dialog
  • corrected resource statistic calculation in project/resource selection dialog
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveResourceSelectorDialog.cs

    r15627 r15642  
    5555    }
    5656
    57     // currently selected projectId (initially persisted projectId)
     57    // currently selected projectId (initially the persisted projectId)
    5858    private Guid? selectedProjectId;
    5959    public Guid? SelectedProjectId {
     
    6161      set { selectedProjectId = value; }
    6262    }
     63
     64    // currently selected resourceIds (if null, perform lookup in HiveResourceSelector)
     65    private IEnumerable<Guid> selectedResourceIds;
     66    public IEnumerable<Guid> SelectedResourceIds {
     67      get { return selectedResourceIds; }
     68      set { selectedResourceIds = value; }
     69    }
     70
    6371
    6472
     
    135143    private void hiveResourceSelector_ProjectsTreeViewDoubleClicked(object sender, EventArgs e) {
    136144      if (hiveResourceSelector.SelectedProject == null) return;
     145      if (!hiveResourceSelector.AssignedResources.Any()) return;
    137146
    138147      DialogResult = DialogResult.OK;
     
    147156      hiveResourceSelector.ProjectId = projectId;
    148157      hiveResourceSelector.SelectedProjectId = selectedProjectId;
     158      hiveResourceSelector.SelectedResourceIds = selectedResourceIds;
    149159      var projectList = new ItemList<Project>(HiveServiceLocator.Instance.CallHiveService(s => s.GetProjects()));
    150160      hiveResourceSelector.Content = projectList;
Note: See TracChangeset for help on using the changeset viewer.