Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/18 15:51:41 (6 years ago)
Author:
jzenisek
Message:

#2839: Fixed several bugs and added project duration handling

  • fixed project duration handling (client- & service-side)
  • fixed tagging in HiveJobAdmin
  • added ProjectJobs view (under construction)
  • added necessary service methods
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectsView.cs

    r15953 r15966  
    100100        projectPermissionsView.Content = null;
    101101        projectResourcesView.Content = null;
     102        projectJobsView.Content = null;
    102103      } else {
    103104        BuildProjectTree(Content);
     
    115116      projectPermissionsView.Enabled = enabled;
    116117      projectResourcesView.Enabled = enabled;
     118      projectJobsView.Enabled = enabled;
    117119    }
    118120    #endregion
     
    228230        MessageBox.Show(
    229231          "Only empty projects can be deleted.",
     232          "HeuristicLab Hive Administrator",
     233          MessageBoxButtons.OK,
     234          MessageBoxIcon.Error);
     235        return;
     236      }
     237
     238      if (HiveAdminClient.Instance.Jobs.ContainsKey(selectedProject.Id)
     239        && HiveAdminClient.Instance.Jobs[selectedProject.Id] != null
     240        && HiveAdminClient.Instance.Jobs[selectedProject.Id].Any()) {
     241        MessageBox.Show(
     242          "There are " + HiveAdminClient.Instance.Jobs[selectedProject.Id].Count + " jobs using this project and/or child-projects. It is necessary to delete them before the project.",
    230243          "HeuristicLab Hive Administrator",
    231244          MessageBoxButtons.OK,
     
    442455      projectPermissionsView.Content = project;
    443456      projectResourcesView.Content = project;
     457      projectJobsView.Content = project;
    444458
    445459      bool projectIsNew = project != null && project.Id == Guid.Empty;
     
    454468      projectPermissionsView.Locked = locked;
    455469      projectResourcesView.Locked = locked;
     470      projectJobsView.Locked = locked;
    456471      selectedProject = project;
    457472    }
Note: See TracChangeset for help on using the changeset viewer.