Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/23/10 10:50:26 (14 years ago)
Author:
kgrading
Message:

implemented the server on the client, using push & force push, added refresh buttons, added auto calender methods that traverse the tree... (#908)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/ClientDao.cs

    r3011 r3203  
    3838              select EntityToDto(job.Client, null)).SingleOrDefault();
    3939    }
    40  
     40
     41    public void SetServerSideCalendar(ClientDto client, Guid clientGroupId) {
     42      Client dbclient = Context.Clients.SingleOrDefault(c => c.ResourceId.Equals(client.Id));
     43      dbclient.UseCalendarFromResourceId = clientGroupId;
     44      dbclient.CalendarSyncStatus = Enum.GetName(typeof(CalendarState), CalendarState.Fetch);
     45      Context.SubmitChanges();
     46    }
     47
    4148    public ClientDto Insert(ClientDto info) {
    4249      Client c = DtoToEntity(info, null);     
     
    7986      target.Resource.Name = source.Name;
    8087      target.Resource.ResourceId = source.Id;
    81 
     88      target.CalendarSyncStatus = Enum.GetName(typeof(CalendarState), source.CalendarSyncStatus);
    8289      target.Login = source.Login;
    8390      target.Memory = source.Memory;
     
    96103      target.FreeMemory = source.FreeMemory;
    97104      target.Id = source.ResourceId;
     105      target.CalendarSyncStatus = (CalendarState) Enum.Parse(typeof (CalendarState), source.CalendarSyncStatus);
    98106      target.Login = source.Login;
    99107      target.Memory = source.Memory;
     
    103111      target.State = (State) Enum.Parse(typeof (State), source.Status);
    104112      return target;
    105     }
     113    } 
    106114  }
    107115}
Note: See TracChangeset for help on using the changeset viewer.