Ignore:
Timestamp:
01/22/09 15:42:57 (12 years ago)
Author:
aleitner
Message:

modified job details (#452)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.cs

    r1164 r1173  
    7474    /// <param name="e"></param>
    7575    private void TickSync(object obj, EventArgs e) {
    76       AddClients();
    77       AddJobs();
    78       AddUsers();
     76      Refresh();
    7977    }
    8078
     
    257255      lblJobCreated.Location = new Point(
    258256        lblJobCreated.Location.X, yPos);
    259       lblJobCreated.Text = "Created at "/* + currentJob.User.CreatedJob + */;
     257      lblJobCreated.Text = "Created at " + currentJob.DateCreated;
    260258      if (currentJob.ParentJob != null) {
    261259        yPos += 20;
     
    267265      lblPriorityJob.Location = new Point(
    268266        lblPriorityJob.Location.X, yPos);
    269       lblPriorityJob.Text = "Priority of job is " /* + currentJob.Priority */;
     267      lblPriorityJob.Text = "Priority of job is " + currentJob.Priority;
    270268      if (currentJob.Client != null) {
    271269        yPos += 20;
     
    276274        lblJobCalculationBegin.Location = new Point(
    277275          lblJobCalculationBegin.Location.X, yPos);
    278         lblJobCalculationBegin.Text = "Startet calculation at " /* + currentJob.User.CalculationBegin */;
     276        lblJobCalculationBegin.Text = "Startet calculation at " + currentJob.DateCalculated ;
     277       
     278        if (currentJob.State == State.finished) {
     279          yPos += 20;
     280          lblJobCalculationEnd.Location = new Point(
     281            lblJobCalculationEnd.Location.X, yPos);
     282
     283          IJobManager jobManager =
     284            ServiceLocator.GetJobManager();
     285
     286          ResponseObject<JobResult> jobRes = jobManager.GetLasJobResultOf(currentJob.Id);
     287
     288         
     289          lblJobCalculationEnd.Text = "Calculation ended at " + jobRes.Obj.DateFinished;
     290        }
     291      }                       
     292      if (currentJob.State != State.offline) {
    279293        yPos += 20;
    280         lblJobCalculationEnd.Location = new Point(
    281           lblJobCalculationEnd.Location.X, yPos);
    282         lblJobCalculationEnd.Text = "Calculation ended at " /* + currentJob.User.CalculationEnd */;
    283       }
    284       if (currentJob.State != State.offline) {
    285         yPos += 30;
    286294        lvSnapshots.Location = new Point(
    287295          lvSnapshots.Location.X, yPos);
Note: See TracChangeset for help on using the changeset viewer.