Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/12/10 10:57:21 (14 years ago)
Author:
kgrading
Message:

changed the complete DAL to LINQ 2 SQL (with the exception of the job streaming), did a lot of refactoring, Introduced DTOs (that are named DTOs for better understanding), added the spring.NET Interceptor, reintroduced transactions and cleaned up the whole JobResult thing and updated a part of the config merger (#830)

File:
1 edited

Legend:

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

    r2092 r3011  
    1 #region License Information
     1#region License Information
    22/* HeuristicLab
    33 * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     
    4343    public event addDelegate addJobEvent;
    4444
    45     ResponseList<Project> projects = null;
     45    ResponseList<ProjectDto> projects = null;
    4646    IJobManager jobManager;
    4747    IClientManager clientManager;
    48     ResponseList<ClientGroup> clientGroups;
     48    ResponseList<ClientGroupDto> clientGroups;
    4949
    5050    Dictionary<Guid, string> clients = null;
     
    6969      cbProject.Items.Add("none");
    7070      cbProject.SelectedIndex = 0;
    71       foreach (Project project in projects.List) {
     71      foreach (ProjectDto project in projects.List) {
    7272        cbProject.Items.Add(project.Name);
    7373      }
     
    8686
    8787    private void AddClientGroups() {
    88      foreach (ClientGroup cg in clientGroups.List) {
     88     foreach (ClientGroupDto cg in clientGroups.List) {
    8989       if (cg.Id != Guid.Empty)
    9090       clients.Add(cg.Id, cg.Name);
     
    9393    }
    9494
    95     private void AddClientOrGroup(ClientGroup clientGroup) {
    96       foreach (Resource resource in clientGroup.Resources) {
    97         if (resource is ClientGroup) {
     95    private void AddClientOrGroup(ClientGroupDto clientGroup) {
     96      foreach (ResourceDto resource in clientGroup.Resources) {
     97        if (resource is ClientGroupDto) {
    9898          if (resource.Id != Guid.Empty)
    9999          clients.Add(resource.Id, resource.Name);
    100           AddClientOrGroup(resource as ClientGroup);
     100          AddClientOrGroup(resource as ClientGroupDto);
    101101        }
    102102      }
     
    110110        if (numJobs > 0) {
    111111          for (int i = 0; i < numJobs; i++) {
    112             Job job = new Job { State = State.offline, CoresNeeded = 1 };
     112            JobDto job = new JobDto { State = State.offline, CoresNeeded = 1 };
    113113           
    114114            // if project selected (0 -> none)
Note: See TracChangeset for help on using the changeset viewer.