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
Location:
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveResourceSelector.cs

    r15956 r15966  
    4848    private const string ADDED_SELECTION_TAG = " [added selection]";
    4949    private const string REMOVED_SELECTION_TAG = " [removed selection]";
     50    private const string SELECTED_TAG = " [selected]";
    5051    private const string INCLUDED_TAG = " [included]";
    5152    private const string ADDED_INCLUDE_TAG = " [added include]";
     
    537538        if (newAssignedResources.Select(x => x.Id).Contains(newResource.Id)) {
    538539          newNode.Checked = true;
     540          if(!addedAssignments.Select(x => x.Id).Contains(newResource.Id) && !removedAssignments.Select(x => x.Id).Contains(newResource.Id)) {
     541            newNode.Text += SELECTED_TAG;
     542          }
    539543        } else if (newIncludedResources.Select(x => x.Id).Contains(newResource.Id)) {
    540544          newNode.Checked = true;
     
    702706          if (newAssignedResources.Select(x => x.Id).Contains(resource.Id)) {
    703707            n.Checked = true;
     708            if (!addedAssignments.Select(x => x.Id).Contains(resource.Id) && !removedAssignments.Select(x => x.Id).Contains(resource.Id)) {
     709              n.Text += SELECTED_TAG;
     710            }
    704711          } else if (newIncludedResources.Select(x => x.Id).Contains(resource.Id)) {
    705712            n.Checked = true;
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs

    r15920 r15966  
    479479
    480480    private void updateButton_Click(object sender, EventArgs e) {
     481      if (Content.ExecutionState == ExecutionState.Stopped) {
     482        MessageBox.Show("Job cannot be updated once it stopped.", "HeuristicLab Hive Job Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);
     483        return;
     484      }
     485
    481486      HiveClient.UpdateJob(
    482487        (Exception ex) => ErrorHandling.ShowErrorDialog(this, "Update failed.", ex),
Note: See TracChangeset for help on using the changeset viewer.