- Timestamp:
- 01/08/09 14:33:22 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/JobAdapter.cs
r1029 r1092 92 92 job.Client = null; 93 93 94 if (!row.Is StatusNull())95 job.State = (State)Enum.Parse(job.State.GetType(), row. Status);94 if (!row.IsJobStateNull()) 95 job.State = (State)Enum.Parse(job.State.GetType(), row.JobState); 96 96 else 97 97 job.State = State.nullState; 98 99 if (!row.IsPercentageNull()) 100 job.Percentage = row.Percentage; 101 else 102 job.Percentage = 0.0; 98 103 99 104 return job; … … 124 129 125 130 if (job.State != State.nullState) 126 row.Status = job.State.ToString(); 127 else 128 row.SetStatusNull(); 131 row.JobState = job.State.ToString(); 132 else 133 row.SetJobStateNull(); 134 135 row.Percentage = job.Percentage; 129 136 } 130 137 … … 214 221 return from job in 215 222 cache.AsEnumerable<dsHiveServer.JobRow>() 216 where !job.Is StatusNull() &&217 job. Status== state.ToString()223 where !job.IsJobStateNull() && 224 job.JobState == state.ToString() 218 225 select job; 219 226 });
Note: See TracChangeset
for help on using the changeset viewer.