Changeset 3022
- Timestamp:
- 03/14/10 20:59:36 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 11 added
- 2 deleted
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Common/3.2/HeuristicLab.Hive.Client.Common-3.2.csproj
r2006 r3022 67 67 </PropertyGroup> 68 68 <ItemGroup> 69 <Reference Include="Calendar.DayView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">70 <SpecificVersion>False</SpecificVersion>71 <HintPath>.\Calendar.DayView.dll</HintPath>72 </Reference>73 69 <Reference Include="System" /> 74 70 <Reference Include="System.Core"> -
trunk/sources/HeuristicLab.Hive.Client.Console/3.2/HeuristicLab.Hive.Client.Console-3.2.csproj
r2069 r3022 70 70 <Reference Include="Calendar.DayView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 71 71 <SpecificVersion>False</SpecificVersion> 72 <HintPath>..\..\HeuristicLab.Hive.C lient.Common\3.2\Calendar.DayView.dll</HintPath>72 <HintPath>..\..\HeuristicLab.Hive.Contracts\3.2\Calendar.DayView.dll</HintPath> 73 73 </Reference> 74 74 <Reference Include="System" /> … … 144 144 <DependentUpon>Recurrence.cs</DependentUpon> 145 145 </Compile> 146 <Compile Include="RecurrentEvent.cs" />147 146 <Compile Include="Service References\ClientService\Reference.cs"> 148 147 <AutoGen>True</AutoGen> -
trunk/sources/HeuristicLab.Hive.Client.Core/3.2/Core.cs
r3011 r3022 104 104 DetermineAction(container); 105 105 } 106 Console.WriteLine("ended!");106 System.Console.WriteLine("ended"); 107 107 } 108 108 -
trunk/sources/HeuristicLab.Hive.Client.Core/3.2/HeuristicLab.Hive.Client.Core-3.2.csproj
r2009 r3022 68 68 <Reference Include="Calendar.DayView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 69 69 <SpecificVersion>False</SpecificVersion> 70 <HintPath>..\..\HeuristicLab.Hive.C lient.Common\3.2\Calendar.DayView.dll</HintPath>70 <HintPath>..\..\HeuristicLab.Hive.Contracts\3.2\Calendar.DayView.dll</HintPath> 71 71 </Reference> 72 72 <Reference Include="System" /> -
trunk/sources/HeuristicLab.Hive.Contracts/3.2/HeuristicLab.Hive.Contracts-3.2.csproj
r3011 r3022 87 87 <ItemGroup> 88 88 <Compile Include="ApplicationConstants.cs" /> 89 <Compile Include="BusinessObjects\AppointmentDto.cs" /> 89 90 <Compile Include="BusinessObjects\CachedHivePluginInfoDto.cs" /> 90 91 <Compile Include="BusinessObjects\ClientGroupDto.cs" /> … … 100 101 <Compile Include="BusinessObjects\ClientDto.cs" /> 101 102 <Compile Include="BusinessObjects\ClientConfigDto.cs" /> 103 <Compile Include="RecurrentEvent.cs" /> 102 104 <Compile Include="ResponseSerializedJob.cs" /> 103 105 <Compile Include="MultiStream.cs" /> -
trunk/sources/HeuristicLab.Hive.Contracts/3.2/Interfaces/IClientManager.cs
r3011 r3022 55 55 [OperationContract] 56 56 ResponseList<UpTimeStatisticsDto> GetAllUpTimeStatistics(); 57 [OperationContract] 58 ResponseList<AppointmentDto> GetUptimeCalendarForResource(Guid guid); 59 60 [OperationContract] 61 Response SetUptimeCalendarForResource(Guid guid, IEnumerable<AppointmentDto> appointments); 57 62 } 58 63 } -
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HeuristicLab.Hive.Server.Console-3.2.csproj
r2065 r3022 68 68 </PropertyGroup> 69 69 <ItemGroup> 70 <Reference Include="Calendar.DayView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 71 <SpecificVersion>False</SpecificVersion> 72 <HintPath>..\..\HeuristicLab.Hive.Contracts\3.2\Calendar.DayView.dll</HintPath> 73 </Reference> 70 74 <Reference Include="System" /> 71 75 <Reference Include="System.Core"> … … 107 111 <DependentUpon>AddProject.cs</DependentUpon> 108 112 </Compile> 113 <Compile Include="CgCalendar.cs"> 114 <SubType>Form</SubType> 115 </Compile> 116 <Compile Include="CgCalendar.Designer.cs"> 117 <DependentUpon>CgCalendar.cs</DependentUpon> 118 </Compile> 109 119 <Compile Include="Changes.cs" /> 110 120 <Compile Include="HiveServerConsole.cs"> … … 139 149 <DependentUpon>AddProject.cs</DependentUpon> 140 150 </EmbeddedResource> 151 <EmbeddedResource Include="CgCalendar.resx"> 152 <DependentUpon>CgCalendar.cs</DependentUpon> 153 </EmbeddedResource> 141 154 <EmbeddedResource Include="HiveServerConsole.resx"> 142 155 <DependentUpon>HiveServerConsole.cs</DependentUpon> … … 153 166 <Generator>ResXFileCodeGenerator</Generator> 154 167 <LastGenOutput>Resources.Designer.cs</LastGenOutput> 168 <SubType>Designer</SubType> 169 </EmbeddedResource> 170 <EmbeddedResource Include="Recurrence.resx"> 171 <DependentUpon>Recurrence.cs</DependentUpon> 155 172 <SubType>Designer</SubType> 156 173 </EmbeddedResource> … … 170 187 <DependentUpon>Settings.settings</DependentUpon> 171 188 <DesignTimeSharedInput>True</DesignTimeSharedInput> 189 </Compile> 190 <Compile Include="Recurrence.cs"> 191 <SubType>Form</SubType> 192 </Compile> 193 <Compile Include="Recurrence.Designer.cs"> 194 <DependentUpon>Recurrence.cs</DependentUpon> 172 195 </Compile> 173 196 <Compile Include="ServiceLocator.cs" /> -
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.Designer.cs
r2007 r3022 88 88 this.tcManagementConsole = new System.Windows.Forms.TabControl(); 89 89 this.checkBox1 = new System.Windows.Forms.CheckBox(); 90 this.menuItemOpenCalendar = new System.Windows.Forms.ToolStripMenuItem(); 90 91 this.menuStrip1.SuspendLayout(); 91 92 this.plClientDetails.SuspendLayout(); … … 130 131 this.closeToolStripMenuItem}); 131 132 this.informationToolStripMenuItem.Name = "informationToolStripMenuItem"; 132 this.informationToolStripMenuItem.Size = new System.Drawing.Size( 81, 20);133 this.informationToolStripMenuItem.Size = new System.Drawing.Size(90, 20); 133 134 this.informationToolStripMenuItem.Text = "Management"; 134 135 // … … 137 138 this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem"; 138 139 this.refreshToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.R))); 139 this.refreshToolStripMenuItem.Size = new System.Drawing.Size(1 62, 22);140 this.refreshToolStripMenuItem.Size = new System.Drawing.Size(154, 22); 140 141 this.refreshToolStripMenuItem.Text = "Refresh"; 141 142 this.refreshToolStripMenuItem.Click += new System.EventHandler(this.Refresh_Click); … … 144 145 // 145 146 this.closeToolStripMenuItem.Name = "closeToolStripMenuItem"; 146 this.closeToolStripMenuItem.Size = new System.Drawing.Size(1 62, 22);147 this.closeToolStripMenuItem.Size = new System.Drawing.Size(154, 22); 147 148 this.closeToolStripMenuItem.Text = "Close"; 148 149 this.closeToolStripMenuItem.Click += new System.EventHandler(this.Close_Click); … … 155 156 this.projectToolStripMenuItem}); 156 157 this.addToolStripMenuItem.Name = "addToolStripMenuItem"; 157 this.addToolStripMenuItem.Size = new System.Drawing.Size( 38, 20);158 this.addToolStripMenuItem.Size = new System.Drawing.Size(41, 20); 158 159 this.addToolStripMenuItem.Text = "Add"; 159 160 // … … 162 163 this.jobToolStripMenuItem.Name = "jobToolStripMenuItem"; 163 164 this.jobToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.J))); 164 this.jobToolStripMenuItem.Size = new System.Drawing.Size(15 7, 22);165 this.jobToolStripMenuItem.Size = new System.Drawing.Size(152, 22); 165 166 this.jobToolStripMenuItem.Text = "Job"; 166 167 this.jobToolStripMenuItem.Click += new System.EventHandler(this.AddJob_Click); … … 170 171 this.groupToolStripMenuItem.Name = "groupToolStripMenuItem"; 171 172 this.groupToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.G))); 172 this.groupToolStripMenuItem.Size = new System.Drawing.Size(15 7, 22);173 this.groupToolStripMenuItem.Size = new System.Drawing.Size(152, 22); 173 174 this.groupToolStripMenuItem.Text = "Group"; 174 175 this.groupToolStripMenuItem.Click += new System.EventHandler(this.groupToolStripMenuItem_Click); … … 178 179 this.projectToolStripMenuItem.Name = "projectToolStripMenuItem"; 179 180 this.projectToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P))); 180 this.projectToolStripMenuItem.Size = new System.Drawing.Size(15 7, 22);181 this.projectToolStripMenuItem.Size = new System.Drawing.Size(152, 22); 181 182 this.projectToolStripMenuItem.Text = "Project"; 182 183 this.projectToolStripMenuItem.Click += new System.EventHandler(this.projectToolStripMenuItem_Click); … … 189 190 this.listToolStripMenuItem}); 190 191 this.viewToolStripMenuItem.Name = "viewToolStripMenuItem"; 191 this.viewToolStripMenuItem.Size = new System.Drawing.Size(4 1, 20);192 this.viewToolStripMenuItem.Size = new System.Drawing.Size(44, 20); 192 193 this.viewToolStripMenuItem.Text = "View"; 193 194 // … … 198 199 this.largeIconsToolStripMenuItem.Name = "largeIconsToolStripMenuItem"; 199 200 this.largeIconsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D1))); 200 this.largeIconsToolStripMenuItem.Size = new System.Drawing.Size(17 9, 22);201 this.largeIconsToolStripMenuItem.Size = new System.Drawing.Size(174, 22); 201 202 this.largeIconsToolStripMenuItem.Text = "Large Icons"; 202 203 this.largeIconsToolStripMenuItem.Click += new System.EventHandler(this.largeIconsToolStripMenuItem_Click); … … 206 207 this.smallIconsToolStripMenuItem.Name = "smallIconsToolStripMenuItem"; 207 208 this.smallIconsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D2))); 208 this.smallIconsToolStripMenuItem.Size = new System.Drawing.Size(17 9, 22);209 this.smallIconsToolStripMenuItem.Size = new System.Drawing.Size(174, 22); 209 210 this.smallIconsToolStripMenuItem.Text = "Small Icons"; 210 211 this.smallIconsToolStripMenuItem.Click += new System.EventHandler(this.smallIconsToolStripMenuItem_Click); … … 214 215 this.listToolStripMenuItem.Name = "listToolStripMenuItem"; 215 216 this.listToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D3))); 216 this.listToolStripMenuItem.Size = new System.Drawing.Size(17 9, 22);217 this.listToolStripMenuItem.Size = new System.Drawing.Size(174, 22); 217 218 this.listToolStripMenuItem.Text = "List"; 218 219 this.listToolStripMenuItem.Click += new System.EventHandler(this.listToolStripMenuItem_Click); … … 547 548 this.menuItemGetSnapshot}); 548 549 this.contextMenuJob.Name = "contextMenuJob"; 549 this.contextMenuJob.Size = new System.Drawing.Size(1 51, 48);550 this.contextMenuJob.Size = new System.Drawing.Size(145, 48); 550 551 // 551 552 // menuItemAbortJob 552 553 // 553 554 this.menuItemAbortJob.Name = "menuItemAbortJob"; 554 this.menuItemAbortJob.Size = new System.Drawing.Size(1 50, 22);555 this.menuItemAbortJob.Size = new System.Drawing.Size(144, 22); 555 556 this.menuItemAbortJob.Text = "Abort"; 556 557 // … … 558 559 // 559 560 this.menuItemGetSnapshot.Name = "menuItemGetSnapshot"; 560 this.menuItemGetSnapshot.Size = new System.Drawing.Size(1 50, 22);561 this.menuItemGetSnapshot.Size = new System.Drawing.Size(144, 22); 561 562 this.menuItemGetSnapshot.Text = "Get Snapshot"; 562 563 // … … 653 654 this.contextMenuGroup.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 654 655 this.menuItemAddGroup, 655 this.menuItemDeleteGroup}); 656 this.menuItemDeleteGroup, 657 this.menuItemOpenCalendar}); 656 658 this.contextMenuGroup.Name = "contextMenuJob"; 657 this.contextMenuGroup.Size = new System.Drawing.Size(1 49, 48);659 this.contextMenuGroup.Size = new System.Drawing.Size(154, 92); 658 660 // 659 661 // menuItemAddGroup 660 662 // 661 663 this.menuItemAddGroup.Name = "menuItemAddGroup"; 662 this.menuItemAddGroup.Size = new System.Drawing.Size(1 48, 22);664 this.menuItemAddGroup.Size = new System.Drawing.Size(153, 22); 663 665 this.menuItemAddGroup.Text = "Add Group"; 664 666 // … … 666 668 // 667 669 this.menuItemDeleteGroup.Name = "menuItemDeleteGroup"; 668 this.menuItemDeleteGroup.Size = new System.Drawing.Size(1 48, 22);670 this.menuItemDeleteGroup.Size = new System.Drawing.Size(153, 22); 669 671 this.menuItemDeleteGroup.Text = "Delete Group"; 670 672 // … … 703 705 this.checkBox1.Text = "checkBox1"; 704 706 this.checkBox1.UseVisualStyleBackColor = true; 707 // 708 // menuItemOpenCalendar 709 // 710 this.menuItemOpenCalendar.Name = "menuItemOpenCalendar"; 711 this.menuItemOpenCalendar.Size = new System.Drawing.Size(153, 22); 712 this.menuItemOpenCalendar.Text = "Open Calendar"; 705 713 // 706 714 // HiveServerManagementConsole … … 810 818 private System.Windows.Forms.ToolStripMenuItem groupToolStripMenuItem; 811 819 private System.Windows.Forms.ToolStripMenuItem projectToolStripMenuItem; 820 private System.Windows.Forms.ToolStripMenuItem menuItemOpenCalendar; 812 821 } 813 822 } -
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.cs
r3013 r3022 129 129 }; 130 130 131 menuItemOpenCalendar.Click += (s, e) => { 132 if (tvClientControl.SelectedNode != null) { 133 CgCalendar cal = new CgCalendar(((ClientGroupDto)tvClientControl.SelectedNode.Tag).Id); 134 cal.Show(); 135 } 136 }; 137 138 131 139 // drag item to treeview 132 140 lvClientControl.ItemDrag += delegate(object sender, ItemDragEventArgs e) { … … 683 691 contextMenuGroup.Items.Add(menuItemAddGroup); 684 692 contextMenuGroup.Items.Add(menuItemDeleteGroup); 693 contextMenuGroup.Items.Add(menuItemOpenCalendar); 685 694 } 686 695 } else { -
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.resx
r2007 r3022 129 129 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 130 130 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABo 131 FwAAAk1TRnQBSQFMAgEBBAEAAQ kBAAEEAQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo131 FwAAAk1TRnQBSQFMAgEBBAEAAQwBAAEMAQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo 132 132 AwABgAMAAUADAAEBAQABCAYAASAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA 133 133 AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 … … 239 239 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 240 240 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAO 241 DgAAAk1TRnQBSQFMAgEBAwEAAQ QBAAEEAQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo241 DgAAAk1TRnQBSQFMAgEBAwEAAQwBAAEMAQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo 242 242 AwABgAMAASADAAEBAQABCAYAARAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA 243 243 AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 … … 312 312 <value> 313 313 iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 314 YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAABcQ wAA315 XE MBOS4mtwAAA5dJREFUSEullslPU1EUxtVVSyeGoOgWYWViomGB0YUbE7fGxODGuPEfMHFjgpowaDQy316 Kl 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 330 ysmLkjulowAAAABJRU5ErkJggg== 331 331 </value> 332 332 </data> … … 342 342 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 343 343 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABy 344 DAAAAk1TRnQBSQFMAgEBBAEAAQ kBAAEEAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo344 DAAAAk1TRnQBSQFMAgEBBAEAAQwBAAEMAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo 345 345 AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA 346 346 AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 … … 398 398 </value> 399 399 </data> 400 <metadata name="updaterWoker.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">401 <value>388, 41</value>402 </metadata>403 400 <metadata name="contextMenuJob.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 404 401 <value>246, 40</value> … … 412 409 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 413 410 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABq 414 CQAAAk1TRnQBSQFMAgEBAwEAAQ QBAAEEAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo411 CQAAAk1TRnQBSQFMAgEBAwEAAQwBAAEMAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo 415 412 AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA 416 413 AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 … … 455 452 </value> 456 453 </data> 454 <metadata name="updaterWoker.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 455 <value>388, 41</value> 456 </metadata> 457 457 </root> -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientManager.cs
r3011 r3022 1 1 #region License Information 2 2 3 /* HeuristicLab 3 4 * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL) … … 18 19 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 20 */ 21 20 22 #endregion 21 23 … … 33 35 34 36 namespace HeuristicLab.Hive.Server.Core { 35 class ClientManager: IClientManager { 36 37 //ISessionFactory factory; 38 List<ClientGroup> clientGroups; 37 internal class ClientManager : IClientManager { 38 private List<ClientGroup> clientGroups; 39 39 40 40 public ClientManager() { 41 //factory = ServiceLocator.GetSessionFactory();42 43 41 clientGroups = new List<ClientGroup>(); 44 42 } … … 51 49 /// <returns></returns> 52 50 public ResponseList<ClientDto> GetAllClients() { 53 /*ISession session = factory.GetSessionForCurrentThread(); 54 55 try { 56 57 IClientAdapter clientAdapter = 58 session.GetDataAdapter<ClientDto, IClientAdapter>();*/ 59 60 ResponseList<ClientDto> response = new ResponseList<ClientDto>(); 61 62 response.List = new List<ClientDto>(DaoLocator.ClientDao.FindAll()); 63 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_GET_ALL_CLIENTS; 64 response.Success = true; 65 66 return response; 67 /*} 68 finally { 69 if (session != null) 70 session.EndSession(); 71 }*/ 51 ResponseList<ClientDto> response = new ResponseList<ClientDto>(); 52 53 response.List = new List<ClientDto>(DaoLocator.ClientDao.FindAll()); 54 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_GET_ALL_CLIENTS; 55 response.Success = true; 56 57 return response; 72 58 } 73 59 … … 77 63 /// <returns></returns> 78 64 public ResponseList<ClientGroup> GetAllClientGroups() { 79 /*ISession session = factory.GetSessionForCurrentThread(); 80 81 try { 82 IClientGroupAdapter clientGroupAdapter = 83 session.GetDataAdapter<ClientGroup, IClientGroupAdapter>(); 84 IClientAdapter clientAdapter = 85 session.GetDataAdapter<ClientDto, IClientAdapter>();*/ 86 ResponseList<ClientGroup> response = new ResponseList<ClientGroup>(); 87 88 List<ClientGroup> allClientGroups = new List<ClientGroup>(DaoLocator.ClientGroupDao.FindAllWithSubGroupsAndClients()); 89 ClientGroup emptyClientGroup = new ClientGroup(); 90 IEnumerable<ClientDto> groupLessClients = DaoLocator.ClientDao.FindAllClientsWithoutGroup(); 91 if (groupLessClients != null) { 92 foreach (ClientDto currClient in groupLessClients) { 93 emptyClientGroup.Resources.Add(currClient); 94 } 65 ResponseList<ClientGroup> response = new ResponseList<ClientGroup>(); 66 67 List<ClientGroup> allClientGroups = 68 new List<ClientGroup>(DaoLocator.ClientGroupDao.FindAllWithSubGroupsAndClients()); 69 ClientGroup emptyClientGroup = new ClientGroup(); 70 IEnumerable<ClientDto> groupLessClients = DaoLocator.ClientDao.FindAllClientsWithoutGroup(); 71 if (groupLessClients != null) { 72 foreach (ClientDto currClient in groupLessClients) { 73 emptyClientGroup.Resources.Add(currClient); 95 74 } 96 emptyClientGroup.Id = Guid.Empty; 97 allClientGroups.Add(emptyClientGroup); 98 99 response.List = allClientGroups; 100 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_GET_ALL_CLIENTGROUPS; 101 response.Success = true; 102 103 return response; 104 /* } 105 finally { 106 if (session != null) 107 session.EndSession(); 108 }*/ 75 } 76 emptyClientGroup.Id = Guid.Empty; 77 allClientGroups.Add(emptyClientGroup); 78 79 response.List = allClientGroups; 80 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_GET_ALL_CLIENTGROUPS; 81 response.Success = true; 82 83 return response; 109 84 } 110 85 … … 121 96 /// <returns></returns> 122 97 public ResponseObject<ClientGroup> AddClientGroup(ClientGroup clientGroup) { 123 /*ISession session = factory.GetSessionForCurrentThread(); 124 125 try { 126 IClientGroupAdapter clientGroupAdapter = 127 session.GetDataAdapter<ClientGroup, IClientGroupAdapter>();*/ 128 129 ResponseObject<ClientGroup> response = new ResponseObject<ClientGroup>(); 130 131 if (clientGroup.Id != Guid.Empty) { 132 response.Success = false; 133 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_ID_MUST_NOT_BE_SET; 134 } else { 135 clientGroup = DaoLocator.ClientGroupDao.Insert(clientGroup); 136 //clientGroupAdapter.Update(clientGroup); 137 response.Obj = clientGroup; 138 response.Success = true; 139 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_ADDED; 140 } 141 142 return response; 143 /*} 144 finally { 145 if (session != null) 146 session.EndSession(); 147 } */ 98 ResponseObject<ClientGroup> response = new ResponseObject<ClientGroup>(); 99 100 if (clientGroup.Id != Guid.Empty) { 101 response.Success = false; 102 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_ID_MUST_NOT_BE_SET; 103 } 104 else { 105 clientGroup = DaoLocator.ClientGroupDao.Insert(clientGroup); 106 //clientGroupAdapter.Update(clientGroup); 107 response.Obj = clientGroup; 108 response.Success = true; 109 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_ADDED; 110 } 111 112 return response; 148 113 } 149 114 … … 155 120 /// <returns></returns> 156 121 public Response AddResourceToGroup(Guid clientGroupId, ResourceDto resource) { 157 /*ISession session = factory.GetSessionForCurrentThread(); 158 159 try { 160 IClientGroupAdapter clientGroupAdapter = 161 session.GetDataAdapter<ClientGroup, IClientGroupAdapter>();*/ 162 163 Response response = new Response(); 164 165 ClientGroup clientGroup = DaoLocator.ClientGroupDao.FindById(clientGroupId); 166 if (clientGroup == null) { 167 response.Success = false; 168 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST; 122 Response response = new Response(); 123 124 ClientGroup clientGroup = DaoLocator.ClientGroupDao.FindById(clientGroupId); 125 if (clientGroup == null) { 126 response.Success = false; 127 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST; 128 return response; 129 } 130 clientGroup.Resources.Add(resource); 131 DaoLocator.ClientGroupDao.AddRessourceToClientGroup(resource.Id, clientGroup.Id); 132 //clientGroupAdapter.Update(clientGroup); 133 134 response.Success = true; 135 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_ADDED_TO_GROUP; 136 137 return response; 138 } 139 140 /// <summary> 141 /// Remove a resource from a group 142 /// </summary> 143 /// <param name="clientGroupId"></param> 144 /// <param name="resourceId"></param> 145 /// <returns></returns> 146 public Response DeleteResourceFromGroup(Guid clientGroupId, Guid resourceId) { 147 Response response = new Response(); 148 149 ClientGroup clientGroup = DaoLocator.ClientGroupDao.FindById(clientGroupId); 150 if (clientGroup == null) { 151 response.Success = false; 152 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST; 153 return response; 154 } 155 foreach (ResourceDto resource in clientGroup.Resources) { 156 if (resource.Id == resourceId) { 157 clientGroup.Resources.Remove(resource); 158 DaoLocator.ClientGroupDao.RemoveRessourceFromClientGroup(resource.Id, clientGroup.Id); 159 //clientGroupAdapter.Update(clientGroup); 160 response.Success = true; 161 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_REMOVED; 169 162 return response; 170 163 } 171 clientGroup.Resources.Add(resource); 172 DaoLocator.ClientGroupDao.AddRessourceToClientGroup(resource.Id, clientGroup.Id); 173 //clientGroupAdapter.Update(clientGroup); 174 164 } 165 response.Success = false; 166 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_NOT_FOUND; 167 168 return response; 169 } 170 171 public ResponseObject<List<ClientGroup>> GetAllGroupsOfResource(Guid resourceId) { 172 ResponseObject<List<ClientGroup>> response = new ResponseObject<List<ClientGroup>>(); 173 174 ClientDto client = DaoLocator.ClientDao.FindById(resourceId); 175 if (client != null) { 176 List<ClientGroup> groupsOfClient = new List<ClientGroup>(DaoLocator.ClientGroupDao.MemberOf(client)); 177 response.Obj = groupsOfClient; 175 178 response.Success = true; 176 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_ADDED_TO_GROUP; 177 179 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_GET_GROUPS_OF_CLIENT; 180 } 181 else { 182 response.Obj = new List<ClientGroup>(); 183 response.Success = false; 184 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_NOT_FOUND; 185 } 186 187 return response; 188 } 189 190 public Response DeleteClientGroup(Guid clientGroupId) { 191 Response response = new Response(); 192 193 ClientGroup clientGroup = DaoLocator.ClientGroupDao.FindById(clientGroupId); 194 if (clientGroup == null) { 195 response.Success = false; 196 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST; 178 197 return response; 179 198 } 180 /*finally { 181 if (session != null) 182 session.EndSession(); 183 } 184 } */ 185 186 /// <summary> 187 /// Remove a resource from a group 188 /// </summary> 189 /// <param name="clientGroupId"></param> 190 /// <param name="resourceId"></param> 191 /// <returns></returns> 192 public Response DeleteResourceFromGroup(Guid clientGroupId, Guid resourceId) { 193 /*ISession session = factory.GetSessionForCurrentThread(); 194 195 try { 196 IClientGroupAdapter clientGroupAdapter = 197 session.GetDataAdapter<ClientGroup, IClientGroupAdapter>();*/ 198 199 Response response = new Response(); 200 201 ClientGroup clientGroup = DaoLocator.ClientGroupDao.FindById(clientGroupId); 202 if (clientGroup == null) { 203 response.Success = false; 204 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST; 205 return response; 206 } 207 foreach (ResourceDto resource in clientGroup.Resources) { 208 if (resource.Id == resourceId) { 209 clientGroup.Resources.Remove(resource); 210 DaoLocator.ClientGroupDao.RemoveRessourceFromClientGroup(resource.Id, clientGroup.Id); 211 //clientGroupAdapter.Update(clientGroup); 212 response.Success = true; 213 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_REMOVED; 214 return response; 215 } 216 } 217 response.Success = false; 218 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_NOT_FOUND; 219 220 return response; 221 } 222 /*finally { 223 if (session != null) 224 session.EndSession(); 225 } 226 } */ 227 228 public ResponseObject<List<ClientGroup>> GetAllGroupsOfResource(Guid resourceId) { 229 /*ISession session = factory.GetSessionForCurrentThread(); 230 231 try { 232 IClientGroupAdapter clientGroupAdapter = 233 session.GetDataAdapter<ClientGroup, IClientGroupAdapter>(); 234 IClientAdapter clientAdapter = 235 session.GetDataAdapter<ClientDto, IClientAdapter>();*/ 236 237 ResponseObject<List<ClientGroup>> response = new ResponseObject<List<ClientGroup>>(); 238 239 ClientDto client = DaoLocator.ClientDao.FindById(resourceId); 240 if (client != null) { 241 List<ClientGroup> groupsOfClient = new List<ClientGroup>(DaoLocator.ClientGroupDao.MemberOf(client)); 242 response.Obj = groupsOfClient; 243 response.Success = true; 244 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_GET_GROUPS_OF_CLIENT; 245 } else { 246 response.Obj = new List<ClientGroup>(); 247 response.Success = false; 248 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_NOT_FOUND; 249 } 250 251 return response; 252 } 253 /*finally { 254 if (session != null) 255 session.EndSession(); 256 } 257 } */ 258 259 public Response DeleteClientGroup(Guid clientGroupId) { 260 /*ISession session = factory.GetSessionForCurrentThread(); 261 262 try { 263 IClientGroupAdapter clientGroupAdapter = 264 session.GetDataAdapter<ClientGroup, IClientGroupAdapter>();*/ 265 266 Response response = new Response(); 267 268 ClientGroup clientGroup = DaoLocator.ClientGroupDao.FindById(clientGroupId); 269 if (clientGroup == null) { 270 response.Success = false; 271 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST; 272 return response; 273 } 274 275 DaoLocator.ClientGroupDao.Delete(clientGroup); 276 277 response.Success = true; 278 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DELETED; 279 return response; 280 281 }/* finally { 282 if (session != null) 283 session.EndSession(); 284 } 285 } */ 286 199 200 DaoLocator.ClientGroupDao.Delete(clientGroup); 201 202 response.Success = true; 203 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_CLIENTGROUP_DELETED; 204 return response; 205 } 206 207 public ResponseList<AppointmentDto> GetUptimeCalendarForResource(Guid guid) { 208 ResponseList<AppointmentDto> response = new ResponseList<AppointmentDto>(); 209 response.List = new List<AppointmentDto>(DaoLocator.UptimeCalendarDao.GetUptimeCalendarForResource(guid)); 210 response.Success = true; 211 return response; 212 } 213 214 public Response SetUptimeCalendarForResource(Guid guid, IEnumerable<AppointmentDto> appointments) { 215 DaoLocator.UptimeCalendarDao.SetUptimeCalendarForResource(guid, appointments); 216 return new Response {Success = true}; 217 } 287 218 #endregion 288 219 } -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/DaoLocator.cs
r3011 r3022 13 13 [ThreadStatic] private static IJobDao jobDao; 14 14 [ThreadStatic] private static IPluginInfoDao pluginInfoDao; 15 [ThreadStatic] private static IUptimeCalendarDao uptimeCalendarDao; 15 16 16 17 public static IClientDao ClientDao { … … 54 55 } 55 56 57 public static IUptimeCalendarDao UptimeCalendarDao { 58 get { 59 if (uptimeCalendarDao == null) 60 uptimeCalendarDao = new UptimeCalendarDao(); 61 return uptimeCalendarDao; 62 } 63 } 64 56 65 public static void DestroyContext() { 57 66 if (ContextFactory.Context != null) { -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ServerConsoleFacade.cs
r3011 r3022 172 172 } 173 173 174 public ResponseList<AppointmentDto> GetUptimeCalendarForResource(Guid guid) { 175 return clientManager.GetUptimeCalendarForResource(guid); 176 } 177 178 public Response SetUptimeCalendarForResource(Guid guid, IEnumerable<AppointmentDto> appointments) { 179 return clientManager.SetUptimeCalendarForResource(guid, appointments); 180 } 174 181 } 175 182 } -
trunk/sources/HeuristicLab.Hive.Server.DataAccess/3.2/HeuristicLab.Hive.Server.DataAccess-3.2.csproj
r3011 r3022 85 85 <Compile Include="IPluginInfoDao.cs" /> 86 86 <Compile Include="IProjectAdapter.cs" /> 87 <Compile Include="IUptimeCalendarDao.cs" /> 87 88 <Compile Include="Properties\AssemblyInfo.cs" /> 88 89 <Compile Include="HiveServerDataAccessPlugin.cs" /> -
trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/HeuristicLab.Hive.Server.LINQDataAccess-3.2.csproj
r3011 r3022 105 105 <DependentUpon>Settings.settings</DependentUpon> 106 106 </Compile> 107 <Compile Include="UptimeCalendarDao.cs" /> 107 108 </ItemGroup> 108 109 <ItemGroup> -
trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/Hive.dbml
r3018 r3022 77 77 <Association Name="Resource_ClientGroup_Resource" Member="ClientGroup_Resources" ThisKey="ResourceId" OtherKey="ResourceId" Type="ClientGroup_Resource" /> 78 78 <Association Name="Resource_Client" Member="Client" ThisKey="ResourceId" OtherKey="ResourceId" Type="Client" Cardinality="One" /> 79 <Association Name="Resource_UptimeCalendar" Member="UptimeCalendars" ThisKey="ResourceId" OtherKey="ResourceId" Type="UptimeCalendar" /> 79 80 </Type> 80 81 </Table> … … 120 121 </Type> 121 122 </Table> 123 <Table Name="dbo.UptimeCalendar" Member="UptimeCalendars"> 124 <Type Name="UptimeCalendar"> 125 <Column Name="UptimeCalendarId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" /> 126 <Column Name="ResourceId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" /> 127 <Column Name="StartDate" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" /> 128 <Column Name="EndDate" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" /> 129 <Column Name="AllDayEvent" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" /> 130 <Column Name="Recurring" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" /> 131 <Column Name="RecurringId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" /> 132 <Association Name="Resource_UptimeCalendar" Member="Resource" ThisKey="ResourceId" OtherKey="ResourceId" Type="Resource" IsForeignKey="true" DeleteRule="CASCADE" DeleteOnNull="true" /> 133 </Type> 134 </Table> 122 135 </Database> -
trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/Hive.dbml.layout
r3018 r3022 71 71 </nodes> 72 72 </associationConnector> 73 <associationConnector edgePoints="[(4. 4375 : 5.75); (4.4375 : 5.1362939453125)]" fixedFrom="NotFixed" fixedTo="NotFixed">73 <associationConnector edgePoints="[(4.78125 : 5.75); (4.78125 : 5.1362939453125)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 74 74 <AssociationMoniker Name="/HiveDataContext/Resource/Resource_AssignedResource" /> 75 75 <nodes> … … 105 105 </nodes> 106 106 </associationConnector> 107 <associationConnector edgePoints="[(4. 5 : 6.94399251302083); (4.5 : 7.625)]" fixedFrom="NotFixed" fixedTo="NotFixed">107 <associationConnector edgePoints="[(4.78125 : 6.94399251302083); (4.78125 : 7.625)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 108 108 <AssociationMoniker Name="/HiveDataContext/Resource/Resource_Client" /> 109 109 <nodes> … … 125 125 </nestedChildShapes> 126 126 </classShape> 127 <associationConnector edgePoints="[(10 : 6.5); (10 : 4.34375); (5.5 : 4.34375)]" fixedFrom=" Algorithm" fixedTo="Algorithm">127 <associationConnector edgePoints="[(10 : 6.5); (10 : 4.34375); (5.5 : 4.34375)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 128 128 <AssociationMoniker Name="/HiveDataContext/Job/Job_AssignedResource" /> 129 129 <nodes> … … 132 132 </nodes> 133 133 </associationConnector> 134 <associationConnector edgePoints="[(11 : 9.37580485026042); (12 : 9.37580485026042)]" fixedFrom=" Algorithm" fixedTo="Algorithm">134 <associationConnector edgePoints="[(11 : 9.37580485026042); (12 : 9.37580485026042)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 135 135 <AssociationMoniker Name="/HiveDataContext/Job/Job_RequiredPlugin" /> 136 136 <nodes> … … 139 139 </nodes> 140 140 </associationConnector> 141 <associationConnector edgePoints="[(5.625 : 8.91270182291667); (9 : 8.91270182291667)]" fixedFrom=" Algorithm" fixedTo="Algorithm">141 <associationConnector edgePoints="[(5.625 : 8.91270182291667); (9 : 8.91270182291667)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 142 142 <AssociationMoniker Name="/HiveDataContext/Client/Client_Job" /> 143 143 <nodes> … … 153 153 </nodes> 154 154 </associationConnector> 155 <associationConnector edgePoints="[(8.25 : 11.0969962565104); (9.32336288461538 : 11.0969962565104); (9.32336288461538 : 10.0016097005208)]" fixedFrom=" Algorithm" fixedTo="Algorithm">155 <associationConnector edgePoints="[(8.25 : 11.0969962565104); (9.32336288461538 : 11.0969962565104); (9.32336288461538 : 10.0016097005208)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 156 156 <AssociationMoniker Name="/HiveDataContext/Project/Project_Job" /> 157 157 <nodes> … … 160 160 </nodes> 161 161 </associationConnector> 162 <classShape Id="9ae82b5f-6e47-4a8e-8350-f7312381bb3b" absoluteBounds="0.625, 5.125, 2, 2.1554996744791666"> 163 <DataClassMoniker Name="/HiveDataContext/UptimeCalendar" /> 164 <nestedChildShapes> 165 <elementListCompartment Id="7469c6a3-4cb2-41c2-82b9-6999782218dd" absoluteBounds="0.64000000000000012, 5.585, 1.9700000000000002, 1.5954996744791665" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" /> 166 </nestedChildShapes> 167 </classShape> 168 <associationConnector edgePoints="[(3.375 : 6.34699625651042); (2.625 : 6.34699625651042)]" fixedFrom="Algorithm" fixedTo="Algorithm"> 169 <AssociationMoniker Name="/HiveDataContext/Resource/Resource_UptimeCalendar" /> 170 <nodes> 171 <classShapeMoniker Id="e44e8355-4290-42f0-8b46-4473e91e504b" /> 172 <classShapeMoniker Id="9ae82b5f-6e47-4a8e-8350-f7312381bb3b" /> 173 </nodes> 174 </associationConnector> 162 175 </nestedChildShapes> 163 176 </ordesignerObjectsDiagram> -
trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/Hive.designer.cs
r3018 r3022 64 64 partial void UpdateJob(Job instance); 65 65 partial void DeleteJob(Job instance); 66 partial void InsertUptimeCalendar(UptimeCalendar instance); 67 partial void UpdateUptimeCalendar(UptimeCalendar instance); 68 partial void DeleteUptimeCalendar(UptimeCalendar instance); 66 69 #endregion 67 70 … … 181 184 { 182 185 return this.GetTable<Job>(); 186 } 187 } 188 189 public System.Data.Linq.Table<UptimeCalendar> UptimeCalendars 190 { 191 get 192 { 193 return this.GetTable<UptimeCalendar>(); 183 194 } 184 195 } … … 604 615 } 605 616 606 [Column(Storage="_UpDownTimeCalendar", DbType="Xml", CanBeNull=true,UpdateCheck=UpdateCheck.Never)]617 [Column(Storage="_UpDownTimeCalendar", DbType="Xml", UpdateCheck=UpdateCheck.Never)] 607 618 public System.Xml.Linq.XElement UpDownTimeCalendar 608 619 { … … 1499 1510 private EntityRef<Client> _Client; 1500 1511 1512 private EntitySet<UptimeCalendar> _UptimeCalendars; 1513 1501 1514 #region Extensibility Method Definitions 1502 1515 partial void OnLoaded(); … … 1515 1528 this._ClientGroup_Resources = new EntitySet<ClientGroup_Resource>(new Action<ClientGroup_Resource>(this.attach_ClientGroup_Resources), new Action<ClientGroup_Resource>(this.detach_ClientGroup_Resources)); 1516 1529 this._Client = default(EntityRef<Client>); 1530 this._UptimeCalendars = new EntitySet<UptimeCalendar>(new Action<UptimeCalendar>(this.attach_UptimeCalendars), new Action<UptimeCalendar>(this.detach_UptimeCalendars)); 1517 1531 OnCreated(); 1518 1532 } … … 1642 1656 } 1643 1657 1658 [Association(Name="Resource_UptimeCalendar", Storage="_UptimeCalendars", ThisKey="ResourceId", OtherKey="ResourceId")] 1659 public EntitySet<UptimeCalendar> UptimeCalendars 1660 { 1661 get 1662 { 1663 return this._UptimeCalendars; 1664 } 1665 set 1666 { 1667 this._UptimeCalendars.Assign(value); 1668 } 1669 } 1670 1644 1671 public event PropertyChangingEventHandler PropertyChanging; 1645 1672 … … 1681 1708 1682 1709 private void detach_ClientGroup_Resources(ClientGroup_Resource entity) 1710 { 1711 this.SendPropertyChanging(); 1712 entity.Resource = null; 1713 } 1714 1715 private void attach_UptimeCalendars(UptimeCalendar entity) 1716 { 1717 this.SendPropertyChanging(); 1718 entity.Resource = this; 1719 } 1720 1721 private void detach_UptimeCalendars(UptimeCalendar entity) 1683 1722 { 1684 1723 this.SendPropertyChanging(); … … 2278 2317 } 2279 2318 2280 [Column(Storage="_SerializedJob", DbType="VarBinary(MAX)", CanBeNull=true,UpdateCheck=UpdateCheck.Never)]2319 [Column(Storage="_SerializedJob", DbType="VarBinary(MAX)", UpdateCheck=UpdateCheck.Never)] 2281 2320 public System.Data.Linq.Binary SerializedJob 2282 2321 { … … 2659 2698 } 2660 2699 } 2700 2701 [Table(Name="dbo.UptimeCalendar")] 2702 public partial class UptimeCalendar : INotifyPropertyChanging, INotifyPropertyChanged 2703 { 2704 2705 private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); 2706 2707 private System.Guid _UptimeCalendarId; 2708 2709 private System.Guid _ResourceId; 2710 2711 private System.DateTime _StartDate; 2712 2713 private System.DateTime _EndDate; 2714 2715 private bool _AllDayEvent; 2716 2717 private bool _Recurring; 2718 2719 private System.Guid _RecurringId; 2720 2721 private EntityRef<Resource> _Resource; 2722 2723 #region Extensibility Method Definitions 2724 partial void OnLoaded(); 2725 partial void OnValidate(System.Data.Linq.ChangeAction action); 2726 partial void OnCreated(); 2727 partial void OnUptimeCalendarIdChanging(System.Guid value); 2728 partial void OnUptimeCalendarIdChanged(); 2729 partial void OnResourceIdChanging(System.Guid value); 2730 partial void OnResourceIdChanged(); 2731 partial void OnStartDateChanging(System.DateTime value); 2732 partial void OnStartDateChanged(); 2733 partial void OnEndDateChanging(System.DateTime value); 2734 partial void OnEndDateChanged(); 2735 partial void OnAllDayEventChanging(bool value); 2736 partial void OnAllDayEventChanged(); 2737 partial void OnRecurringChanging(bool value); 2738 partial void OnRecurringChanged(); 2739 partial void OnRecurringIdChanging(System.Guid value); 2740 partial void OnRecurringIdChanged(); 2741 #endregion 2742 2743 public UptimeCalendar() 2744 { 2745 this._Resource = default(EntityRef<Resource>); 2746 OnCreated(); 2747 } 2748 2749 [Column(Storage="_UptimeCalendarId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] 2750 public System.Guid UptimeCalendarId 2751 { 2752 get 2753 { 2754 return this._UptimeCalendarId; 2755 } 2756 set 2757 { 2758 if ((this._UptimeCalendarId != value)) 2759 { 2760 this.OnUptimeCalendarIdChanging(value); 2761 this.SendPropertyChanging(); 2762 this._UptimeCalendarId = value; 2763 this.SendPropertyChanged("UptimeCalendarId"); 2764 this.OnUptimeCalendarIdChanged(); 2765 } 2766 } 2767 } 2768 2769 [Column(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL")] 2770 public System.Guid ResourceId 2771 { 2772 get 2773 { 2774 return this._ResourceId; 2775 } 2776 set 2777 { 2778 if ((this._ResourceId != value)) 2779 { 2780 if (this._Resource.HasLoadedOrAssignedValue) 2781 { 2782 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 2783 } 2784 this.OnResourceIdChanging(value); 2785 this.SendPropertyChanging(); 2786 this._ResourceId = value; 2787 this.SendPropertyChanged("ResourceId"); 2788 this.OnResourceIdChanged(); 2789 } 2790 } 2791 } 2792 2793 [Column(Storage="_StartDate", DbType="DateTime NOT NULL")] 2794 public System.DateTime StartDate 2795 { 2796 get 2797 { 2798 return this._StartDate; 2799 } 2800 set 2801 { 2802 if ((this._StartDate != value)) 2803 { 2804 this.OnStartDateChanging(value); 2805 this.SendPropertyChanging(); 2806 this._StartDate = value; 2807 this.SendPropertyChanged("StartDate"); 2808 this.OnStartDateChanged(); 2809 } 2810 } 2811 } 2812 2813 [Column(Storage="_EndDate", DbType="DateTime NOT NULL")] 2814 public System.DateTime EndDate 2815 { 2816 get 2817 { 2818 return this._EndDate; 2819 } 2820 set 2821 { 2822 if ((this._EndDate != value)) 2823 { 2824 this.OnEndDateChanging(value); 2825 this.SendPropertyChanging(); 2826 this._EndDate = value; 2827 this.SendPropertyChanged("EndDate"); 2828 this.OnEndDateChanged(); 2829 } 2830 } 2831 } 2832 2833 [Column(Storage="_AllDayEvent", DbType="Bit NOT NULL")] 2834 public bool AllDayEvent 2835 { 2836 get 2837 { 2838 return this._AllDayEvent; 2839 } 2840 set 2841 { 2842 if ((this._AllDayEvent != value)) 2843 { 2844 this.OnAllDayEventChanging(value); 2845 this.SendPropertyChanging(); 2846 this._AllDayEvent = value; 2847 this.SendPropertyChanged("AllDayEvent"); 2848 this.OnAllDayEventChanged(); 2849 } 2850 } 2851 } 2852 2853 [Column(Storage="_Recurring", DbType="Bit NOT NULL")] 2854 public bool Recurring 2855 { 2856 get 2857 { 2858 return this._Recurring; 2859 } 2860 set 2861 { 2862 if ((this._Recurring != value)) 2863 { 2864 this.OnRecurringChanging(value); 2865 this.SendPropertyChanging(); 2866 this._Recurring = value; 2867 this.SendPropertyChanged("Recurring"); 2868 this.OnRecurringChanged(); 2869 } 2870 } 2871 } 2872 2873 [Column(Storage="_RecurringId", DbType="UniqueIdentifier")] 2874 public System.Guid RecurringId 2875 { 2876 get 2877 { 2878 return this._RecurringId; 2879 } 2880 set 2881 { 2882 if ((this._RecurringId != value)) 2883 { 2884 this.OnRecurringIdChanging(value); 2885 this.SendPropertyChanging(); 2886 this._RecurringId = value; 2887 this.SendPropertyChanged("RecurringId"); 2888 this.OnRecurringIdChanged(); 2889 } 2890 } 2891 } 2892 2893 [Association(Name="Resource_UptimeCalendar", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")] 2894 public Resource Resource 2895 { 2896 get 2897 { 2898 return this._Resource.Entity; 2899 } 2900 set 2901 { 2902 Resource previousValue = this._Resource.Entity; 2903 if (((previousValue != value) 2904 || (this._Resource.HasLoadedOrAssignedValue == false))) 2905 { 2906 this.SendPropertyChanging(); 2907 if ((previousValue != null)) 2908 { 2909 this._Resource.Entity = null; 2910 previousValue.UptimeCalendars.Remove(this); 2911 } 2912 this._Resource.Entity = value; 2913 if ((value != null)) 2914 { 2915 value.UptimeCalendars.Add(this); 2916 this._ResourceId = value.ResourceId; 2917 } 2918 else 2919 { 2920 this._ResourceId = default(System.Guid); 2921 } 2922 this.SendPropertyChanged("Resource"); 2923 } 2924 } 2925 } 2926 2927 public event PropertyChangingEventHandler PropertyChanging; 2928 2929 public event PropertyChangedEventHandler PropertyChanged; 2930 2931 protected virtual void SendPropertyChanging() 2932 { 2933 if ((this.PropertyChanging != null)) 2934 { 2935 this.PropertyChanging(this, emptyChangingEventArgs); 2936 } 2937 } 2938 2939 protected virtual void SendPropertyChanged(String propertyName) 2940 { 2941 if ((this.PropertyChanged != null)) 2942 { 2943 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 2944 } 2945 } 2946 } 2661 2947 } 2662 2948 #pragma warning restore 1591
Note: See TracChangeset
for help on using the changeset viewer.