From 9447a8a09f87d6ea2cb62860021c595386668eec Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 20 Feb 2019 22:55:15 +0200 Subject: A lot of work !!! --- .../MachineService/MachineStudio_Controller_TST.cs | 78 ++++++++++++++++++ .../MachineService/PPC_Controller_TST.cs | 95 ++++++++++++++++++++++ 2 files changed, 173 insertions(+) create mode 100644 Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs create mode 100644 Software/Visual_Studio/Tango.UnitTesting/MachineService/PPC_Controller_TST.cs (limited to 'Software/Visual_Studio/Tango.UnitTesting/MachineService') diff --git a/Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs new file mode 100644 index 000000000..8a126df2e --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs @@ -0,0 +1,78 @@ +using System; +using System.Security.Authentication; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Tango.BL; +using Tango.MachineStudio.Common.Web; +using Tango.Transport.Web; +using System.Linq; + +namespace Tango.UnitTesting.Web +{ + [TestClass] + [TestCategory("Machine Service - Machine Studio")] + public class MachineStudio_Controller_TST + { + private const string address = "http://localhost:51581"; + + [TestMethod] + public void Login_and_check_for_updates() + { + //First test the more primitive web clients. + + IWebTransportClient client = new WebTransportClient(); + + var res1 = client.PostJson($"{address}/api/MachineStudio/Login", new LoginRequest() + { + Email = "TestUser@twine-s.com", + Password = "ASJH_asdjkl1234", + Version = "1.0.0.0" + }).Result; + + String token = res1.AccessToken; + client.AuthenticationToken = token; + + var res2 = client.PostJson($"{address}/api/MachineStudio/CheckForUpdates", new CheckForUpdatesRequest() + { + Version = "1.0.0.0" + }).ConfigureAwait(false).GetAwaiter().GetResult(); + + //Check updates are available.. + Assert.IsTrue(res2.IsUpdateAvailable); + + + //Now check the dedicated machine studio client. + MachineStudioWebClient msClient = new MachineStudioWebClient(address, null); + + //Should throw an exception without login first (no token specified..) + Assert.ThrowsException(() => + { + var res3 = msClient.CheckForUpdates(new CheckForUpdatesRequest() + { + Version = "1.0.0.0" + }).GetAwaiter().GetResult(); + }); + + //Perform a login. + var res4 = msClient.Login(new LoginRequest() + { + Email = "TestUser@twine-s.com", + Password = "ASJH_asdjkl1234", + Version = "1.0.0.0" + }).Result; + + //Validate the data source received. + using (ObservablesContext db = ObservablesContext.CreateDefault(res4.DataSource)) + { + var user = db.Users.Single(x => x.Email.ToLower() == "TestUser@twine-s.com"); + } + + //Check updates are not available.. + var res5 = msClient.CheckForUpdates(new CheckForUpdatesRequest() + { + Version = "100.0.0.0" + }).Result; + + Assert.IsFalse(res5.IsUpdateAvailable); + } + } +} diff --git a/Software/Visual_Studio/Tango.UnitTesting/MachineService/PPC_Controller_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/MachineService/PPC_Controller_TST.cs new file mode 100644 index 000000000..23ab74f3b --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/MachineService/PPC_Controller_TST.cs @@ -0,0 +1,95 @@ +using System; +using System.Security.Authentication; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Tango.BL; +using Tango.Transport.Web; +using System.Linq; +using Tango.PPC.Common.Web; +using Tango.Core.IO; + +namespace Tango.UnitTesting.Web +{ + [TestClass] + [TestCategory("Machine Service - PPC")] + public class PPC_Controller_TST + { + private const string address = "http://localhost:51581"; + + [TestMethod] + public void Login_and_setup() + { + //Now check the dedicated machine studio client. + PPCWebClient client = new PPCWebClient(address, null); + + //Should throw an exception without login first (no token specified..) + Assert.ThrowsException(() => + { + var res1 = client.MachineSetup(new MachineSetupRequest() + { + + }).GetAwaiter().GetResult(); + }); + + //Perform a login with user mode. + var res2 = client.Login(new LoginRequest() + { + Mode = LoginMode.User, + Email = "TestUser@twine-s.com", + Password = "ASJH_asdjkl1234", + }).Result; + + //Should throw exception about serial number not found. + Assert.ThrowsException(() => + { + var res3 = client.Login(new LoginRequest() + { + Mode = LoginMode.Machine, + SerialNumber = "NOT_EXISTING_SERIAL_NUMBER", + }).GetAwaiter().GetResult(); + }); + + //Perform a login with machine mode. + var res4 = client.Login(new LoginRequest() + { + Mode = LoginMode.Machine, + SerialNumber = "0003", + }).Result; + + //Should return setup information + var res5 = client.MachineSetup(new MachineSetupRequest() + { + SerialNumber = "0003", + }).GetAwaiter().GetResult(); + + //Now get DEV data source using the machine studio client in order to validate the setup information. + MachineStudio.Common.Web.MachineStudioWebClient msClient = new MachineStudio.Common.Web.MachineStudioWebClient(address, null); + var res6 = msClient.Login(new MachineStudio.Common.Web.LoginRequest() + { + Email = "TestUser@twine-s.com", + Password = "ASJH_asdjkl1234", + }).Result; + + var dataSource = res6.DataSource; + + using (ObservablesContext db = ObservablesContext.CreateDefault(dataSource)) + { + var machine = db.Machines.Single(x => x.SerialNumber == "0003"); + + Assert.AreEqual(res5.IsDemo, machine.IsDemo); + Assert.AreEqual(res5.OSKey, machine.OsKey); + Assert.AreEqual(res5.SetupActivation, machine.SetupActivation); + Assert.AreEqual(res5.SetupFirmware, machine.SetupFirmware); + Assert.AreEqual(res5.SetupFPGA, machine.SetupFpga); + Assert.AreEqual(res5.SetupRemoteAssistance, machine.SetupRemoteAssistance); + Assert.AreEqual(res5.SetupUWF, machine.SetupUwf); + } + + + var tempFile = TemporaryManager.Default.CreateFile(); + StorageBlobDownloader downloader = new StorageBlobDownloader(res5.BlobAddress, tempFile); + downloader.Download().Wait(); + + tempFile.Delete(); + } + } +} -- cgit v1.3.1 From 17612c08da93c75d4c941a643bc7602c18f351d8 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Sat, 23 Feb 2019 20:15:36 +0200 Subject: Implemented auto DTO generation. Implemented mapping of DTO <=> Observables. Organization of unit tests. Removed DELETED from ADDRESS & CONTACT. --- Software/DB/Tango.mdf | Bin 75497472 -> 75497472 bytes Software/DB/Tango_log.ldf | Bin 22675456 -> 22675456 bytes .../Build/Shortcuts/Machine Emulator.lnk | Bin 1445 -> 1530 bytes .../Build/Shortcuts/Machine Studio.lnk | Bin 1516 -> 1581 bytes .../Build/Shortcuts/Proto Compiler GUI.lnk | Bin 1444 -> 1529 bytes .../Build/Shortcuts/Stubs Execution GUI.lnk | Bin 1462 -> 1547 bytes .../Build/Shortcuts/Transport Router.lnk | Bin 1493 -> 1578 bytes .../PPC/Tango.PPC.Common/Publish/PPCPublisher.cs | 9 +- .../Web/MachineVersionsResponse.cs | 5 +- .../PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs | 9 +- Software/Visual_Studio/Tango.BL/DTO/AddressDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/AddressDTOBase.cs | 81 + .../DTO/ApplicationDisplayPanelVersionDTO.cs | 14 + .../DTO/ApplicationDisplayPanelVersionDTOBase.cs | 41 + .../Tango.BL/DTO/ApplicationFirmwareVersionDTO.cs | 14 + .../DTO/ApplicationFirmwareVersionDTOBase.cs | 41 + .../Tango.BL/DTO/ApplicationOsVersionDTO.cs | 14 + .../Tango.BL/DTO/ApplicationOsVersionDTOBase.cs | 41 + .../Visual_Studio/Tango.BL/DTO/BrushStopDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/BrushStopDTOBase.cs | 281 ++ .../Visual_Studio/Tango.BL/DTO/CartridgeTypeDTO.cs | 14 + .../Tango.BL/DTO/CartridgeTypeDTOBase.cs | 41 + Software/Visual_Studio/Tango.BL/DTO/CatDTO.cs | 14 + Software/Visual_Studio/Tango.BL/DTO/CatDTOBase.cs | 57 + Software/Visual_Studio/Tango.BL/DTO/CctDTO.cs | 14 + Software/Visual_Studio/Tango.BL/DTO/CctDTOBase.cs | 73 + .../Visual_Studio/Tango.BL/DTO/ColorCatalogDTO.cs | 14 + .../Tango.BL/DTO/ColorCatalogDTOBase.cs | 153 + .../Visual_Studio/Tango.BL/DTO/ColorSpaceDTO.cs | 14 + .../Tango.BL/DTO/ColorSpaceDTOBase.cs | 57 + .../Visual_Studio/Tango.BL/DTO/ConfigurationDTO.cs | 19 + .../Tango.BL/DTO/ConfigurationDTOBase.cs | 65 + Software/Visual_Studio/Tango.BL/DTO/ContactDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/ContactDTOBase.cs | 73 + Software/Visual_Studio/Tango.BL/DTO/CustomerDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/CustomerDTOBase.cs | 41 + .../Visual_Studio/Tango.BL/DTO/DispenserDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/DispenserDTOBase.cs | 81 + .../Visual_Studio/Tango.BL/DTO/DispenserTypeDTO.cs | 14 + .../Tango.BL/DTO/DispenserTypeDTOBase.cs | 49 + .../Tango.BL/DTO/EmbeddedFirmwareVersionDTO.cs | 14 + .../Tango.BL/DTO/EmbeddedFirmwareVersionDTOBase.cs | 41 + .../Visual_Studio/Tango.BL/DTO/EventTypeDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/EventTypeDTOBase.cs | 118 + .../Visual_Studio/Tango.BL/DTO/FiberShapeDTO.cs | 14 + .../Tango.BL/DTO/FiberShapeDTOBase.cs | 41 + .../Visual_Studio/Tango.BL/DTO/FiberSynthDTO.cs | 14 + .../Tango.BL/DTO/FiberSynthDTOBase.cs | 41 + .../Tango.BL/DTO/HardwareBlowerDTO.cs | 14 + .../Tango.BL/DTO/HardwareBlowerDTOBase.cs | 73 + .../Tango.BL/DTO/HardwareBlowerTypeDTO.cs | 14 + .../Tango.BL/DTO/HardwareBlowerTypeDTOBase.cs | 49 + .../Tango.BL/DTO/HardwareBreakSensorDTO.cs | 14 + .../Tango.BL/DTO/HardwareBreakSensorDTOBase.cs | 65 + .../Tango.BL/DTO/HardwareBreakSensorTypeDTO.cs | 14 + .../Tango.BL/DTO/HardwareBreakSensorTypeDTOBase.cs | 49 + .../Tango.BL/DTO/HardwareDancerDTO.cs | 14 + .../Tango.BL/DTO/HardwareDancerDTOBase.cs | 129 + .../Tango.BL/DTO/HardwareDancerTypeDTO.cs | 14 + .../Tango.BL/DTO/HardwareDancerTypeDTOBase.cs | 49 + .../Visual_Studio/Tango.BL/DTO/HardwareMotorDTO.cs | 14 + .../Tango.BL/DTO/HardwareMotorDTOBase.cs | 246 ++ .../Tango.BL/DTO/HardwareMotorTypeDTO.cs | 14 + .../Tango.BL/DTO/HardwareMotorTypeDTOBase.cs | 57 + .../Tango.BL/DTO/HardwarePidControlDTO.cs | 14 + .../Tango.BL/DTO/HardwarePidControlDTOBase.cs | 201 + .../Tango.BL/DTO/HardwarePidControlTypeDTO.cs | 14 + .../Tango.BL/DTO/HardwarePidControlTypeDTOBase.cs | 49 + .../Tango.BL/DTO/HardwareSpeedSensorDTO.cs | 14 + .../Tango.BL/DTO/HardwareSpeedSensorDTOBase.cs | 65 + .../Tango.BL/DTO/HardwareSpeedSensorTypeDTO.cs | 14 + .../Tango.BL/DTO/HardwareSpeedSensorTypeDTOBase.cs | 49 + .../Tango.BL/DTO/HardwareVersionDTO.cs | 14 + .../Tango.BL/DTO/HardwareVersionDTOBase.cs | 41 + .../Tango.BL/DTO/HardwareWinderDTO.cs | 14 + .../Tango.BL/DTO/HardwareWinderDTOBase.cs | 57 + .../Tango.BL/DTO/HardwareWinderTypeDTO.cs | 14 + .../Tango.BL/DTO/HardwareWinderTypeDTOBase.cs | 49 + Software/Visual_Studio/Tango.BL/DTO/IdsPackDTO.cs | 18 + .../Visual_Studio/Tango.BL/DTO/IdsPackDTOBase.cs | 89 + .../Tango.BL/DTO/IdsPackFormulaDTO.cs | 14 + .../Tango.BL/DTO/IdsPackFormulaDTOBase.cs | 57 + Software/Visual_Studio/Tango.BL/DTO/JobDTO.cs | 14 + Software/Visual_Studio/Tango.BL/DTO/JobDTOBase.cs | 270 ++ Software/Visual_Studio/Tango.BL/DTO/JobRunDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/JobRunDTOBase.cs | 78 + .../Tango.BL/DTO/LinearMassDensityUnitDTO.cs | 14 + .../Tango.BL/DTO/LinearMassDensityUnitDTOBase.cs | 41 + .../Visual_Studio/Tango.BL/DTO/LiquidTypeDTO.cs | 14 + .../Tango.BL/DTO/LiquidTypeDTOBase.cs | 57 + .../Tango.BL/DTO/LiquidTypesRmlDTO.cs | 14 + .../Tango.BL/DTO/LiquidTypesRmlDTOBase.cs | 49 + Software/Visual_Studio/Tango.BL/DTO/MachineDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/MachineDTOBase.cs | 201 + .../Tango.BL/DTO/MachineStudioVersionDTO.cs | 14 + .../Tango.BL/DTO/MachineStudioVersionDTOBase.cs | 57 + .../Tango.BL/DTO/MachineVersionDTO.cs | 14 + .../Tango.BL/DTO/MachineVersionDTOBase.cs | 49 + .../Visual_Studio/Tango.BL/DTO/MachinesEventDTO.cs | 14 + .../Tango.BL/DTO/MachinesEventDTOBase.cs | 73 + .../Tango.BL/DTO/MediaConditionDTO.cs | 14 + .../Tango.BL/DTO/MediaConditionDTOBase.cs | 41 + .../Visual_Studio/Tango.BL/DTO/MediaMaterialDTO.cs | 14 + .../Tango.BL/DTO/MediaMaterialDTOBase.cs | 41 + .../Visual_Studio/Tango.BL/DTO/MediaPurposDTO.cs | 14 + .../Tango.BL/DTO/MediaPurposDTOBase.cs | 41 + .../Visual_Studio/Tango.BL/DTO/MidTankTypeDTO.cs | 14 + .../Tango.BL/DTO/MidTankTypeDTOBase.cs | 49 + .../Visual_Studio/Tango.BL/DTO/OrganizationDTO.cs | 14 + .../Tango.BL/DTO/OrganizationDTOBase.cs | 49 + .../Visual_Studio/Tango.BL/DTO/PermissionDTO.cs | 14 + .../Tango.BL/DTO/PermissionDTOBase.cs | 49 + .../Tango.BL/DTO/ProcessParametersTableDTO.cs | 14 + .../Tango.BL/DTO/ProcessParametersTableDTOBase.cs | 201 + .../DTO/ProcessParametersTablesGroupDTO.cs | 14 + .../DTO/ProcessParametersTablesGroupDTOBase.cs | 57 + Software/Visual_Studio/Tango.BL/DTO/RmlDTO.cs | 14 + Software/Visual_Studio/Tango.BL/DTO/RmlDTOBase.cs | 209 + Software/Visual_Studio/Tango.BL/DTO/RoleDTO.cs | 14 + Software/Visual_Studio/Tango.BL/DTO/RoleDTOBase.cs | 49 + .../Tango.BL/DTO/RolesPermissionDTO.cs | 14 + .../Tango.BL/DTO/RolesPermissionDTOBase.cs | 41 + Software/Visual_Studio/Tango.BL/DTO/SegmentDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/SegmentDTOBase.cs | 57 + Software/Visual_Studio/Tango.BL/DTO/SpoolDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/SpoolDTOBase.cs | 73 + .../Visual_Studio/Tango.BL/DTO/SpoolTypeDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/SpoolTypeDTOBase.cs | 73 + .../Tango.BL/DTO/SyncConfigurationDTO.cs | 14 + .../Tango.BL/DTO/SyncConfigurationDTOBase.cs | 24 + .../Visual_Studio/Tango.BL/DTO/TangoVersionDTO.cs | 14 + .../Tango.BL/DTO/TangoVersionDTOBase.cs | 65 + .../Tango.BL/DTO/TechControllerDTO.cs | 14 + .../Tango.BL/DTO/TechControllerDTOBase.cs | 73 + .../Visual_Studio/Tango.BL/DTO/TechDispenserDTO.cs | 14 + .../Tango.BL/DTO/TechDispenserDTOBase.cs | 49 + .../Visual_Studio/Tango.BL/DTO/TechHeaterDTO.cs | 14 + .../Tango.BL/DTO/TechHeaterDTOBase.cs | 49 + Software/Visual_Studio/Tango.BL/DTO/TechIoDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/TechIoDTOBase.cs | 113 + .../Visual_Studio/Tango.BL/DTO/TechMonitorDTO.cs | 14 + .../Tango.BL/DTO/TechMonitorDTOBase.cs | 97 + .../Visual_Studio/Tango.BL/DTO/TechValveDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/TechValveDTOBase.cs | 78 + Software/Visual_Studio/Tango.BL/DTO/UserDTO.cs | 14 + Software/Visual_Studio/Tango.BL/DTO/UserDTOBase.cs | 81 + .../Visual_Studio/Tango.BL/DTO/UsersRoleDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/UsersRoleDTOBase.cs | 41 + .../Visual_Studio/Tango.BL/DTO/WindingMethodDTO.cs | 14 + .../Tango.BL/DTO/WindingMethodDTOBase.cs | 49 + .../Visual_Studio/Tango.BL/Entities/AddressBase.cs | 38 - .../Visual_Studio/Tango.BL/Entities/ContactBase.cs | 38 - .../Visual_Studio/Tango.BL/IObservableEntityDTO.cs | 17 + .../Visual_Studio/Tango.BL/ObservableEntityDTO.cs | 211 + .../Tango.BL/ObservablesContext.Views.cs | 4395 -------------------- .../Tango.BL/ObservablesEntitiesAdapter.cs | 4 +- Software/Visual_Studio/Tango.BL/Tango.BL.csproj | 145 +- .../Visual_Studio/Tango.CodeGeneration/Class.cs | 5 + .../Tango.CodeGeneration/EntityCodeFile.cs | 5 - .../Tango.CodeGeneration/EntityDTOCodeFile.cs | 19 + .../EntityInheritedDTOCodeFile.cs | 23 + .../Visual_Studio/Tango.CodeGeneration/Property.cs | 5 + .../Tango.CodeGeneration.csproj | 6 +- .../Templates/EntityDTOCodeFile.cshtml | 44 + .../Templates/EntityInheritedDTOCodeFile.cshtml | 24 + .../Visual_Studio/Tango.DAL.Remote/DB/ADDRESS.cs | 1 - .../Visual_Studio/Tango.DAL.Remote/DB/CONTACT.cs | 1 - .../Tango.DAL.Remote/DB/RemoteADO.Designer.cs | 2 +- .../Tango.DAL.Remote/DB/RemoteADO.edmx | 6 - .../Tango.DAL.Remote/DB/RemoteADO.edmx.diagram | 140 +- .../Visual_Studio/Tango.UnitTesting/BL/DTO_TST.cs | 42 + .../Tango.UnitTesting/Core/TemporaryManager_TST.cs | 34 + .../Tango.UnitTesting/Embroidery/Embroidery_TST.cs | 31 + .../Tango.UnitTesting/Embroidery_TST.cs | 31 - .../Integration/JobDescriptionFile_TST.cs | 65 + .../Tango.UnitTesting/Integration_TST.cs | 65 - .../Tango.UnitTesting/Logging/Parsing_TST.cs | 34 + .../Visual_Studio/Tango.UnitTesting/Logging_TST.cs | 34 - .../MachineService/MachineStudio_Controller_TST.cs | 2 +- .../MachineService/PPC_Controller_TST.cs | 6 +- .../Tango.UnitTesting/MachineService_TST.cs | 65 - .../MachineStudio/MachineStudio_TST.cs | 147 + .../Tango.UnitTesting/MachineStudio_TST.cs | 147 - .../Tango.UnitTesting/Protobuf_TST.cs | 132 - .../SQLExaminer/SQLExaminer_TST.cs | 395 ++ .../Tango.UnitTesting/SQLExaminer_TST.cs | 395 -- .../Tango.UnitTesting/Scripting_TST.cs | 45 - .../Visual_Studio/Tango.UnitTesting/TFS/TFS_TST.cs | 145 + .../Visual_Studio/Tango.UnitTesting/TFS_TST.cs | 145 - .../Tango.UnitTesting/Tango.UnitTesting.csproj | 21 +- .../Tango.UnitTesting/Temporary_TST.cs | 34 - .../ObservablesGenerator.cs | 37 +- .../Controllers/PPCController.cs | 3 +- 193 files changed, 7932 insertions(+), 5678 deletions(-) create mode 100644 Software/Visual_Studio/Tango.BL/DTO/AddressDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/AddressDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ApplicationDisplayPanelVersionDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ApplicationDisplayPanelVersionDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ApplicationFirmwareVersionDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ApplicationFirmwareVersionDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ApplicationOsVersionDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ApplicationOsVersionDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/BrushStopDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/BrushStopDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/CartridgeTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/CartridgeTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/CatDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/CatDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/CctDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/CctDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ColorCatalogDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ColorCatalogDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ColorSpaceDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ColorSpaceDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ConfigurationDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ConfigurationDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ContactDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ContactDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/CustomerDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/CustomerDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/DispenserDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/DispenserDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/DispenserTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/DispenserTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/EmbeddedFirmwareVersionDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/EmbeddedFirmwareVersionDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/EventTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/EventTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/FiberShapeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/FiberShapeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/FiberSynthDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/FiberSynthDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareDancerDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareDancerDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareDancerTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareDancerTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareMotorDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareMotorDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareMotorTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareMotorTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareVersionDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareVersionDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareWinderDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareWinderDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareWinderTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/HardwareWinderTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/IdsPackDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/IdsPackDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/IdsPackFormulaDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/IdsPackFormulaDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/JobDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/JobDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/JobRunDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/JobRunDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/LinearMassDensityUnitDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/LinearMassDensityUnitDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/LiquidTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/LiquidTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/LiquidTypesRmlDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/LiquidTypesRmlDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MachineDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MachineDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MachineStudioVersionDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MachineStudioVersionDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MachineVersionDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MachineVersionDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MachinesEventDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MachinesEventDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MediaConditionDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MediaConditionDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MediaMaterialDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MediaMaterialDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MediaPurposDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MediaPurposDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MidTankTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/MidTankTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/OrganizationDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/OrganizationDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/PermissionDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/PermissionDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTableDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTableDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTablesGroupDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTablesGroupDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/RmlDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/RmlDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/RoleDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/RoleDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/RolesPermissionDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/RolesPermissionDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/SegmentDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/SegmentDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/SpoolDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/SpoolDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/SpoolTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/SpoolTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/SyncConfigurationDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/SyncConfigurationDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TangoVersionDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TangoVersionDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TechControllerDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TechControllerDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TechDispenserDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TechDispenserDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TechHeaterDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TechHeaterDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TechIoDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TechIoDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TechMonitorDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TechMonitorDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TechValveDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/TechValveDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/UserDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/UserDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/UsersRoleDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/UsersRoleDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/WindingMethodDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/WindingMethodDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/IObservableEntityDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/ObservableEntityDTO.cs delete mode 100644 Software/Visual_Studio/Tango.BL/ObservablesContext.Views.cs create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/EntityDTOCodeFile.cs create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/EntityInheritedDTOCodeFile.cs create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityDTOCodeFile.cshtml create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityInheritedDTOCodeFile.cshtml create mode 100644 Software/Visual_Studio/Tango.UnitTesting/BL/DTO_TST.cs create mode 100644 Software/Visual_Studio/Tango.UnitTesting/Core/TemporaryManager_TST.cs create mode 100644 Software/Visual_Studio/Tango.UnitTesting/Embroidery/Embroidery_TST.cs delete mode 100644 Software/Visual_Studio/Tango.UnitTesting/Embroidery_TST.cs create mode 100644 Software/Visual_Studio/Tango.UnitTesting/Integration/JobDescriptionFile_TST.cs delete mode 100644 Software/Visual_Studio/Tango.UnitTesting/Integration_TST.cs create mode 100644 Software/Visual_Studio/Tango.UnitTesting/Logging/Parsing_TST.cs delete mode 100644 Software/Visual_Studio/Tango.UnitTesting/Logging_TST.cs delete mode 100644 Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs create mode 100644 Software/Visual_Studio/Tango.UnitTesting/MachineStudio/MachineStudio_TST.cs delete mode 100644 Software/Visual_Studio/Tango.UnitTesting/MachineStudio_TST.cs delete mode 100644 Software/Visual_Studio/Tango.UnitTesting/Protobuf_TST.cs create mode 100644 Software/Visual_Studio/Tango.UnitTesting/SQLExaminer/SQLExaminer_TST.cs delete mode 100644 Software/Visual_Studio/Tango.UnitTesting/SQLExaminer_TST.cs delete mode 100644 Software/Visual_Studio/Tango.UnitTesting/Scripting_TST.cs create mode 100644 Software/Visual_Studio/Tango.UnitTesting/TFS/TFS_TST.cs delete mode 100644 Software/Visual_Studio/Tango.UnitTesting/TFS_TST.cs delete mode 100644 Software/Visual_Studio/Tango.UnitTesting/Temporary_TST.cs (limited to 'Software/Visual_Studio/Tango.UnitTesting/MachineService') diff --git a/Software/DB/Tango.mdf b/Software/DB/Tango.mdf index 6432b8be6..a50e98776 100644 Binary files a/Software/DB/Tango.mdf and b/Software/DB/Tango.mdf differ diff --git a/Software/DB/Tango_log.ldf b/Software/DB/Tango_log.ldf index 1b855c2f5..63616d500 100644 Binary files a/Software/DB/Tango_log.ldf and b/Software/DB/Tango_log.ldf differ diff --git a/Software/Visual_Studio/Build/Shortcuts/Machine Emulator.lnk b/Software/Visual_Studio/Build/Shortcuts/Machine Emulator.lnk index 2edf815e9..20ad50570 100644 Binary files a/Software/Visual_Studio/Build/Shortcuts/Machine Emulator.lnk and b/Software/Visual_Studio/Build/Shortcuts/Machine Emulator.lnk differ diff --git a/Software/Visual_Studio/Build/Shortcuts/Machine Studio.lnk b/Software/Visual_Studio/Build/Shortcuts/Machine Studio.lnk index cd233d031..a1eb6ae58 100644 Binary files a/Software/Visual_Studio/Build/Shortcuts/Machine Studio.lnk and b/Software/Visual_Studio/Build/Shortcuts/Machine Studio.lnk differ diff --git a/Software/Visual_Studio/Build/Shortcuts/Proto Compiler GUI.lnk b/Software/Visual_Studio/Build/Shortcuts/Proto Compiler GUI.lnk index 6b545ae45..37b68bcf8 100644 Binary files a/Software/Visual_Studio/Build/Shortcuts/Proto Compiler GUI.lnk and b/Software/Visual_Studio/Build/Shortcuts/Proto Compiler GUI.lnk differ diff --git a/Software/Visual_Studio/Build/Shortcuts/Stubs Execution GUI.lnk b/Software/Visual_Studio/Build/Shortcuts/Stubs Execution GUI.lnk index 0ba8de137..0b46f425e 100644 Binary files a/Software/Visual_Studio/Build/Shortcuts/Stubs Execution GUI.lnk and b/Software/Visual_Studio/Build/Shortcuts/Stubs Execution GUI.lnk differ diff --git a/Software/Visual_Studio/Build/Shortcuts/Transport Router.lnk b/Software/Visual_Studio/Build/Shortcuts/Transport Router.lnk index f5fa9e87c..04c0b9bb2 100644 Binary files a/Software/Visual_Studio/Build/Shortcuts/Transport Router.lnk and b/Software/Visual_Studio/Build/Shortcuts/Transport Router.lnk differ diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Publish/PPCPublisher.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Publish/PPCPublisher.cs index 49e0a89c3..1a6c57607 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Publish/PPCPublisher.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Publish/PPCPublisher.cs @@ -83,7 +83,14 @@ namespace Tango.PPC.Common.Publish /// public String GetLocalVersion() { - return FileVersionInfo.GetVersionInfo(GetPPCExecutablePath()).ProductVersion; + if (File.Exists(GetPPCExecutablePath())) + { + return FileVersionInfo.GetVersionInfo(GetPPCExecutablePath()).ProductVersion; + } + else + { + return "0.0.0.0"; + } } /// diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/MachineVersionsResponse.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/MachineVersionsResponse.cs index 8d321f303..83d5913dc 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/MachineVersionsResponse.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/MachineVersionsResponse.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Tango.BL.DTO; using Tango.BL.Entities; using Tango.Transport.Web; @@ -10,11 +11,11 @@ namespace Tango.PPC.Common.Web { public class MachineVersionsResponse : WebResponseMessage { - public List MachineVersions { get; set; } + public List MachineVersions { get; set; } public MachineVersionsResponse() { - MachineVersions = new List(); + MachineVersions = new List(); } } } diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs index ff07cb7a7..98b35ed3f 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs @@ -16,6 +16,7 @@ using System.Threading.Tasks; using System.Windows; using System.Windows.Data; using Tango.BL; +using Tango.BL.DTO; using Tango.BL.Entities; using Tango.Core; using Tango.Core.Commands; @@ -45,15 +46,15 @@ namespace Tango.PPC.Publisher.UI set { _options = value; RaisePropertyChangedAuto(); } } - private List _machineVersions; - public List MachineVersions + private List _machineVersions; + public List MachineVersions { get { return _machineVersions; } set { _machineVersions = value; RaisePropertyChangedAuto(); } } - private MachineVersion _selectedMachineVersion; - public MachineVersion SelectedMachineVersion + private MachineVersionDTO _selectedMachineVersion; + public MachineVersionDTO SelectedMachineVersion { get { return _selectedMachineVersion; } set { _selectedMachineVersion = value; RaisePropertyChangedAuto(); OnSelectedMachineVersionChanged(); } diff --git a/Software/Visual_Studio/Tango.BL/DTO/AddressDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/AddressDTO.cs new file mode 100644 index 000000000..22c56c7b2 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/AddressDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class AddressDTO : AddressDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/AddressDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/AddressDTOBase.cs new file mode 100644 index 000000000..41bd9175a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/AddressDTOBase.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class AddressDTOBase : ObservableEntityDTO + { + + /// + /// address string + /// + public String AddressString + { + get; set; + } + + /// + /// locality + /// + public String Locality + { + get; set; + } + + /// + /// country + /// + public String Country + { + get; set; + } + + /// + /// city + /// + public String City + { + get; set; + } + + /// + /// state + /// + public String State + { + get; set; + } + + /// + /// country code + /// + public String CountryCode + { + get; set; + } + + /// + /// postal code + /// + public String PostalCode + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ApplicationDisplayPanelVersionDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/ApplicationDisplayPanelVersionDTO.cs new file mode 100644 index 000000000..35bd070a0 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ApplicationDisplayPanelVersionDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class ApplicationDisplayPanelVersionDTO : ApplicationDisplayPanelVersionDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ApplicationDisplayPanelVersionDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/ApplicationDisplayPanelVersionDTOBase.cs new file mode 100644 index 000000000..353d08e65 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ApplicationDisplayPanelVersionDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class ApplicationDisplayPanelVersionDTOBase : ObservableEntityDTO + { + + /// + /// version + /// + public Double Version + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ApplicationFirmwareVersionDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/ApplicationFirmwareVersionDTO.cs new file mode 100644 index 000000000..c2447f0fe --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ApplicationFirmwareVersionDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class ApplicationFirmwareVersionDTO : ApplicationFirmwareVersionDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ApplicationFirmwareVersionDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/ApplicationFirmwareVersionDTOBase.cs new file mode 100644 index 000000000..e462d29c2 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ApplicationFirmwareVersionDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class ApplicationFirmwareVersionDTOBase : ObservableEntityDTO + { + + /// + /// version + /// + public Double Version + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ApplicationOsVersionDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/ApplicationOsVersionDTO.cs new file mode 100644 index 000000000..d427266ca --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ApplicationOsVersionDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class ApplicationOsVersionDTO : ApplicationOsVersionDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ApplicationOsVersionDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/ApplicationOsVersionDTOBase.cs new file mode 100644 index 000000000..44f245e55 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ApplicationOsVersionDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class ApplicationOsVersionDTOBase : ObservableEntityDTO + { + + /// + /// version + /// + public Double Version + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/BrushStopDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/BrushStopDTO.cs new file mode 100644 index 000000000..447509ba7 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/BrushStopDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class BrushStopDTO : BrushStopDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/BrushStopDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/BrushStopDTOBase.cs new file mode 100644 index 000000000..c5e72a905 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/BrushStopDTOBase.cs @@ -0,0 +1,281 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class BrushStopDTOBase : ObservableEntityDTO + { + + /// + /// segment guid + /// + public String SegmentGuid + { + get; set; + } + + /// + /// color space guid + /// + public String ColorSpaceGuid + { + get; set; + } + + /// + /// offset percent + /// + public Double OffsetPercent + { + get; set; + } + + /// + /// stop index + /// + public Int32 StopIndex + { + get; set; + } + + /// + /// cyan + /// + public Double Cyan + { + get; set; + } + + /// + /// magenta + /// + public Double Magenta + { + get; set; + } + + /// + /// yellow + /// + public Double Yellow + { + get; set; + } + + /// + /// black + /// + public Double Black + { + get; set; + } + + /// + /// red + /// + public Int32 Red + { + get; set; + } + + /// + /// green + /// + public Int32 Green + { + get; set; + } + + /// + /// blue + /// + public Int32 Blue + { + get; set; + } + + /// + /// l + /// + public Double L + { + get; set; + } + + /// + /// a + /// + public Double A + { + get; set; + } + + /// + /// b + /// + public Double B + { + get; set; + } + + /// + /// v0 + /// + public Double V0 + { + get; set; + } + + /// + /// v0 div + /// + public Int32 V0Div + { + get; set; + } + + /// + /// v1 + /// + public Double V1 + { + get; set; + } + + /// + /// v1 div + /// + public Int32 V1Div + { + get; set; + } + + /// + /// v2 + /// + public Double V2 + { + get; set; + } + + /// + /// v2 div + /// + public Int32 V2Div + { + get; set; + } + + /// + /// v3 + /// + public Double V3 + { + get; set; + } + + /// + /// v3 div + /// + public Int32 V3Div + { + get; set; + } + + /// + /// v4 + /// + public Double V4 + { + get; set; + } + + /// + /// v4 div + /// + public Int32 V4Div + { + get; set; + } + + /// + /// v5 + /// + public Double V5 + { + get; set; + } + + /// + /// v5 div + /// + public Int32 V5Div + { + get; set; + } + + /// + /// v6 + /// + public Double V6 + { + get; set; + } + + /// + /// v6 div + /// + public Int32 V6Div + { + get; set; + } + + /// + /// v7 + /// + public Double V7 + { + get; set; + } + + /// + /// v7 div + /// + public Int32 V7Div + { + get; set; + } + + /// + /// corrected + /// + public Boolean Corrected + { + get; set; + } + + /// + /// color catalog guid + /// + public String ColorCatalogGuid + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/CartridgeTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/CartridgeTypeDTO.cs new file mode 100644 index 000000000..7e07e0dd9 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/CartridgeTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class CartridgeTypeDTO : CartridgeTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/CartridgeTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/CartridgeTypeDTOBase.cs new file mode 100644 index 000000000..d25053f21 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/CartridgeTypeDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class CartridgeTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/CatDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/CatDTO.cs new file mode 100644 index 000000000..43d24848b --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/CatDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class CatDTO : CatDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/CatDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/CatDTOBase.cs new file mode 100644 index 000000000..31de24ec0 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/CatDTOBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class CatDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// machine guid + /// + public String MachineGuid + { + get; set; + } + + /// + /// rml guid + /// + public String RmlGuid + { + get; set; + } + + /// + /// liquid type guid + /// + public String LiquidTypeGuid + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/CctDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/CctDTO.cs new file mode 100644 index 000000000..96fc02a9e --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/CctDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class CctDTO : CctDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/CctDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/CctDTOBase.cs new file mode 100644 index 000000000..b0529dd3d --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/CctDTOBase.cs @@ -0,0 +1,73 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class CctDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + /// + /// forward file name + /// + public String ForwardFileName + { + get; set; + } + + /// + /// inverse file name + /// + public String InverseFileName + { + get; set; + } + + /// + /// version + /// + public Double Version + { + get; set; + } + + /// + /// rml guid + /// + public String RmlGuid + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ColorCatalogDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/ColorCatalogDTO.cs new file mode 100644 index 000000000..012e7aede --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ColorCatalogDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class ColorCatalogDTO : ColorCatalogDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ColorCatalogDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/ColorCatalogDTOBase.cs new file mode 100644 index 000000000..d5ac72833 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ColorCatalogDTOBase.cs @@ -0,0 +1,153 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class ColorCatalogDTOBase : ObservableEntityDTO + { + + /// + /// rml guid + /// + public String RmlGuid + { + get; set; + } + + /// + /// color space guid + /// + public String ColorSpaceGuid + { + get; set; + } + + /// + /// color code + /// + public Int32 ColorCode + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// color group + /// + public String ColorGroup + { + get; set; + } + + /// + /// cyan + /// + public Double Cyan + { + get; set; + } + + /// + /// magenta + /// + public Double Magenta + { + get; set; + } + + /// + /// yellow + /// + public Double Yellow + { + get; set; + } + + /// + /// black + /// + public Double Black + { + get; set; + } + + /// + /// red + /// + public Int32 Red + { + get; set; + } + + /// + /// green + /// + public Int32 Green + { + get; set; + } + + /// + /// blue + /// + public Int32 Blue + { + get; set; + } + + /// + /// l + /// + public Double L + { + get; set; + } + + /// + /// a + /// + public Double A + { + get; set; + } + + /// + /// b + /// + public Double B + { + get; set; + } + + /// + /// process parameters table index + /// + public Int32 ProcessParametersTableIndex + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ColorSpaceDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/ColorSpaceDTO.cs new file mode 100644 index 000000000..9c5ca3a6a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ColorSpaceDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class ColorSpaceDTO : ColorSpaceDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ColorSpaceDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/ColorSpaceDTOBase.cs new file mode 100644 index 000000000..02913f174 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ColorSpaceDTOBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class ColorSpaceDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + /// + /// is catalog + /// + public Boolean IsCatalog + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ConfigurationDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/ConfigurationDTO.cs new file mode 100644 index 000000000..605a905db --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ConfigurationDTO.cs @@ -0,0 +1,19 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class ConfigurationDTO : ConfigurationDTOBase + { + public List IdsPacks { get; set; } + + public ConfigurationDTO() + { + IdsPacks = new List(); + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ConfigurationDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/ConfigurationDTOBase.cs new file mode 100644 index 000000000..2863c28c6 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ConfigurationDTOBase.cs @@ -0,0 +1,65 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class ConfigurationDTOBase : ObservableEntityDTO + { + + /// + /// application os version guid + /// + public String ApplicationOsVersionGuid + { + get; set; + } + + /// + /// application firmware version guid + /// + public String ApplicationFirmwareVersionGuid + { + get; set; + } + + /// + /// application display panel version guid + /// + public String ApplicationDisplayPanelVersionGuid + { + get; set; + } + + /// + /// embedded firmware version guid + /// + public String EmbeddedFirmwareVersionGuid + { + get; set; + } + + /// + /// hardware version guid + /// + public String HardwareVersionGuid + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ContactDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/ContactDTO.cs new file mode 100644 index 000000000..0b2f8e412 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ContactDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class ContactDTO : ContactDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ContactDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/ContactDTOBase.cs new file mode 100644 index 000000000..6258c6196 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ContactDTOBase.cs @@ -0,0 +1,73 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class ContactDTOBase : ObservableEntityDTO + { + + /// + /// first name + /// + public String FirstName + { + get; set; + } + + /// + /// last name + /// + public String LastName + { + get; set; + } + + /// + /// full name + /// + public String FullName + { + get; set; + } + + /// + /// email + /// + public String Email + { + get; set; + } + + /// + /// phone number + /// + public String PhoneNumber + { + get; set; + } + + /// + /// fax + /// + public String Fax + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/CustomerDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/CustomerDTO.cs new file mode 100644 index 000000000..5e6853548 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/CustomerDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class CustomerDTO : CustomerDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/CustomerDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/CustomerDTOBase.cs new file mode 100644 index 000000000..93926fd87 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/CustomerDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class CustomerDTOBase : ObservableEntityDTO + { + + /// + /// organization guid + /// + public String OrganizationGuid + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/DispenserDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/DispenserDTO.cs new file mode 100644 index 000000000..890c87f7b --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/DispenserDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class DispenserDTO : DispenserDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/DispenserDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/DispenserDTOBase.cs new file mode 100644 index 000000000..16e19d78a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/DispenserDTOBase.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class DispenserDTOBase : ObservableEntityDTO + { + + /// + /// serial number + /// + public String SerialNumber + { + get; set; + } + + /// + /// dispenser type guid + /// + public String DispenserTypeGuid + { + get; set; + } + + /// + /// nl per pulse + /// + public Double NlPerPulse + { + get; set; + } + + /// + /// part number + /// + public String PartNumber + { + get; set; + } + + /// + /// pcb serial + /// + public String PcbSerial + { + get; set; + } + + /// + /// pcb version + /// + public String PcbVersion + { + get; set; + } + + /// + /// production date + /// + public Nullable ProductionDate + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/DispenserTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/DispenserTypeDTO.cs new file mode 100644 index 000000000..1da97c32e --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/DispenserTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class DispenserTypeDTO : DispenserTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/DispenserTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/DispenserTypeDTOBase.cs new file mode 100644 index 000000000..43b4b89a4 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/DispenserTypeDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class DispenserTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// capacity + /// + public Double Capacity + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/EmbeddedFirmwareVersionDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/EmbeddedFirmwareVersionDTO.cs new file mode 100644 index 000000000..de80d750f --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/EmbeddedFirmwareVersionDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class EmbeddedFirmwareVersionDTO : EmbeddedFirmwareVersionDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/EmbeddedFirmwareVersionDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/EmbeddedFirmwareVersionDTOBase.cs new file mode 100644 index 000000000..b0ffd66b5 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/EmbeddedFirmwareVersionDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class EmbeddedFirmwareVersionDTOBase : ObservableEntityDTO + { + + /// + /// version + /// + public Double Version + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/EventTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/EventTypeDTO.cs new file mode 100644 index 000000000..ce7e3de27 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/EventTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class EventTypeDTO : EventTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/EventTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/EventTypeDTOBase.cs new file mode 100644 index 000000000..6dcc6ffd1 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/EventTypeDTOBase.cs @@ -0,0 +1,118 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + + /// + /// + /// + + public abstract class EventTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// title + /// + public String Title + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + /// + /// technical description + /// + public String TechnicalDescription + { + get; set; + } + + /// + /// component index + /// + public Int32 ComponentIndex + { + get; set; + } + + /// + /// event category + /// + public Int32 EventCategory + { + get; set; + } + + /// + /// event group + /// + public Int32 EventGroup + { + get; set; + } + + /// + /// event notification time + /// + public Int32 EventNotificationTime + { + get; set; + } + + /// + /// event actions + /// + public String EventActions + { + get; set; + } + + /// + /// requires user intervention + /// + public Boolean RequiresUserIntervention + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/FiberShapeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/FiberShapeDTO.cs new file mode 100644 index 000000000..4f05f9047 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/FiberShapeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class FiberShapeDTO : FiberShapeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/FiberShapeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/FiberShapeDTOBase.cs new file mode 100644 index 000000000..6da3a4dae --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/FiberShapeDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class FiberShapeDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/FiberSynthDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/FiberSynthDTO.cs new file mode 100644 index 000000000..97762c781 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/FiberSynthDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class FiberSynthDTO : FiberSynthDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/FiberSynthDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/FiberSynthDTOBase.cs new file mode 100644 index 000000000..26e3e9fd6 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/FiberSynthDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class FiberSynthDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerDTO.cs new file mode 100644 index 000000000..be8a50ca1 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareBlowerDTO : HardwareBlowerDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerDTOBase.cs new file mode 100644 index 000000000..4420c2d2c --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerDTOBase.cs @@ -0,0 +1,73 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwareBlowerDTOBase : ObservableEntityDTO + { + + /// + /// hardware blower type guid + /// + public String HardwareBlowerTypeGuid + { + get; set; + } + + /// + /// hardware version guid + /// + public String HardwareVersionGuid + { + get; set; + } + + /// + /// enabled + /// + public Boolean Enabled + { + get; set; + } + + /// + /// voltage + /// + public Double Voltage + { + get; set; + } + + /// + /// heating voltage + /// + public Double HeatingVoltage + { + get; set; + } + + /// + /// active + /// + public Boolean Active + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerTypeDTO.cs new file mode 100644 index 000000000..edb863339 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareBlowerTypeDTO : HardwareBlowerTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerTypeDTOBase.cs new file mode 100644 index 000000000..5adbc89dc --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareBlowerTypeDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwareBlowerTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorDTO.cs new file mode 100644 index 000000000..968070be0 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareBreakSensorDTO : HardwareBreakSensorDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorDTOBase.cs new file mode 100644 index 000000000..0bd7501bb --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorDTOBase.cs @@ -0,0 +1,65 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwareBreakSensorDTOBase : ObservableEntityDTO + { + + /// + /// hardware break sensor type guid + /// + public String HardwareBreakSensorTypeGuid + { + get; set; + } + + /// + /// hardware version guid + /// + public String HardwareVersionGuid + { + get; set; + } + + /// + /// enabled + /// + public Boolean Enabled + { + get; set; + } + + /// + /// de bounce time milli + /// + public Int32 DeBounceTimeMilli + { + get; set; + } + + /// + /// active + /// + public Boolean Active + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorTypeDTO.cs new file mode 100644 index 000000000..2ae74a293 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareBreakSensorTypeDTO : HardwareBreakSensorTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorTypeDTOBase.cs new file mode 100644 index 000000000..83f2237de --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareBreakSensorTypeDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwareBreakSensorTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareDancerDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareDancerDTO.cs new file mode 100644 index 000000000..1963ae9d7 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareDancerDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareDancerDTO : HardwareDancerDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareDancerDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareDancerDTOBase.cs new file mode 100644 index 000000000..d19ace08a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareDancerDTOBase.cs @@ -0,0 +1,129 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwareDancerDTOBase : ObservableEntityDTO + { + + /// + /// hardware dancer type guid + /// + public String HardwareDancerTypeGuid + { + get; set; + } + + /// + /// hardware version guid + /// + public String HardwareVersionGuid + { + get; set; + } + + /// + /// gradual + /// + public Boolean Gradual + { + get; set; + } + + /// + /// k + /// + public Double K + { + get; set; + } + + /// + /// x + /// + public Double X + { + get; set; + } + + /// + /// pulse per mm spring + /// + public Int32 PulsePerMmSpring + { + get; set; + } + + /// + /// maximal movement mm + /// + public Int32 MaximalMovementMm + { + get; set; + } + + /// + /// zero point + /// + public Int32 ZeroPoint + { + get; set; + } + + /// + /// resolution bits + /// + public Int32 ResolutionBits + { + get; set; + } + + /// + /// arm length + /// + public Int32 ArmLength + { + get; set; + } + + /// + /// assembly direction right + /// + public Boolean AssemblyDirectionRight + { + get; set; + } + + /// + /// accelerate on tension raise + /// + public Boolean AccelerateOnTensionRaise + { + get; set; + } + + /// + /// active + /// + public Boolean Active + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareDancerTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareDancerTypeDTO.cs new file mode 100644 index 000000000..afda842d3 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareDancerTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareDancerTypeDTO : HardwareDancerTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareDancerTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareDancerTypeDTOBase.cs new file mode 100644 index 000000000..f89aab6a3 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareDancerTypeDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwareDancerTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareMotorDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareMotorDTO.cs new file mode 100644 index 000000000..41d53bf2a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareMotorDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareMotorDTO : HardwareMotorDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareMotorDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareMotorDTOBase.cs new file mode 100644 index 000000000..2a05afbfa --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareMotorDTOBase.cs @@ -0,0 +1,246 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + + /// + /// + /// + + public abstract class HardwareMotorDTOBase : ObservableEntityDTO + { + + /// + /// hardware motor type guid + /// + public String HardwareMotorTypeGuid + { + get; set; + } + + /// + /// hardware version guid + /// + public String HardwareVersionGuid + { + get; set; + } + + /// + /// min frequency + /// + public Int32 MinFrequency + { + get; set; + } + + /// + /// max frequency + /// + public Int32 MaxFrequency + { + get; set; + } + + /// + /// set micro step + /// + public Int32 SetMicroStep + { + get; set; + } + + /// + /// micro step + /// + public Int32 MicroStep + { + get; set; + } + + /// + /// max change slope + /// + public Double MaxChangeSlope + { + get; set; + } + + /// + /// high length micro second + /// + public Double HighLengthMicroSecond + { + get; set; + } + + /// + /// speed master + /// + public Boolean SpeedMaster + { + get; set; + } + + /// + /// pulse per round + /// + public Int32 PulsePerRound + { + get; set; + } + + /// + /// pulley radius + /// + public Double PulleyRadius + { + get; set; + } + + /// + /// config word + /// + public Int32 ConfigWord + { + get; set; + } + + /// + /// direction thread wize + /// + public Boolean DirectionThreadWize + { + get; set; + } + + /// + /// kval hold + /// + public Int32 KvalHold + { + get; set; + } + + /// + /// kval run + /// + public Int32 KvalRun + { + get; set; + } + + /// + /// kval acc + /// + public Int32 KvalAcc + { + get; set; + } + + /// + /// kval dec + /// + public Int32 KvalDec + { + get; set; + } + + /// + /// over current threshold + /// + public Int32 OverCurrentThreshold + { + get; set; + } + + /// + /// stall threshold + /// + public Int32 StallThreshold + { + get; set; + } + + /// + /// thermal compensation factor + /// + public Int32 ThermalCompensationFactor + { + get; set; + } + + /// + /// low speed optimization + /// + public Boolean LowSpeedOptimization + { + get; set; + } + + /// + /// st slp + /// + public Int32 StSlp + { + get; set; + } + + /// + /// int spd + /// + public Int32 IntSpd + { + get; set; + } + + /// + /// fn slp acc + /// + public Int32 FnSlpAcc + { + get; set; + } + + /// + /// fn slp dec + /// + public Int32 FnSlpDec + { + get; set; + } + + /// + /// fs spd + /// + public Int32 FsSpd + { + get; set; + } + + /// + /// active + /// + public Boolean Active + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareMotorTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareMotorTypeDTO.cs new file mode 100644 index 000000000..8ae0456ff --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareMotorTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareMotorTypeDTO : HardwareMotorTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareMotorTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareMotorTypeDTOBase.cs new file mode 100644 index 000000000..277d66fb8 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareMotorTypeDTOBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwareMotorTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + /// + /// supports homing + /// + public Boolean SupportsHoming + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlDTO.cs new file mode 100644 index 000000000..bd6e344a7 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwarePidControlDTO : HardwarePidControlDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlDTOBase.cs new file mode 100644 index 000000000..639c32640 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlDTOBase.cs @@ -0,0 +1,201 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwarePidControlDTOBase : ObservableEntityDTO + { + + /// + /// hardware pid control type guid + /// + public String HardwarePidControlTypeGuid + { + get; set; + } + + /// + /// hardware version guid + /// + public String HardwareVersionGuid + { + get; set; + } + + /// + /// output proportional power limit + /// + public Double OutputProportionalPowerLimit + { + get; set; + } + + /// + /// output proportional band + /// + public Double OutputProportionalBand + { + get; set; + } + + /// + /// integral time + /// + public Double IntegralTime + { + get; set; + } + + /// + /// derivative time + /// + public Double DerivativeTime + { + get; set; + } + + /// + /// sensor correction adjustment + /// + public Double SensorCorrectionAdjustment + { + get; set; + } + + /// + /// sensor min value + /// + public Double SensorMinValue + { + get; set; + } + + /// + /// sensor max value + /// + public Double SensorMaxValue + { + get; set; + } + + /// + /// set point ramp rateor soft start ramp + /// + public Double SetPointRampRateorSoftStartRamp + { + get; set; + } + + /// + /// set point control output rate + /// + public Double SetPointControlOutputRate + { + get; set; + } + + /// + /// control output type + /// + public Double ControlOutputType + { + get; set; + } + + /// + /// ssr control output type + /// + public Double SsrControlOutputType + { + get; set; + } + + /// + /// output on off hysteresis value + /// + public Double OutputOnOffHysteresisValue + { + get; set; + } + + /// + /// process variable sampling rate + /// + public Double ProcessVariableSamplingRate + { + get; set; + } + + /// + /// pv input filter factor mode + /// + public Double PvInputFilterFactorMode + { + get; set; + } + + /// + /// output proportional cycle time + /// + public Int32 OutputProportionalCycleTime + { + get; set; + } + + /// + /// ac heaters half cycle time + /// + public Int32 AcHeatersHalfCycleTime + { + get; set; + } + + /// + /// proportional gain + /// + public Double ProportionalGain + { + get; set; + } + + /// + /// pid active + /// + public Boolean PidActive + { + get; set; + } + + /// + /// epsilon + /// + public Double Epsilon + { + get; set; + } + + /// + /// active + /// + public Boolean Active + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlTypeDTO.cs new file mode 100644 index 000000000..8c7a255af --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwarePidControlTypeDTO : HardwarePidControlTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlTypeDTOBase.cs new file mode 100644 index 000000000..f8d6427e7 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwarePidControlTypeDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwarePidControlTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorDTO.cs new file mode 100644 index 000000000..14eae14ae --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareSpeedSensorDTO : HardwareSpeedSensorDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorDTOBase.cs new file mode 100644 index 000000000..d6b793951 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorDTOBase.cs @@ -0,0 +1,65 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwareSpeedSensorDTOBase : ObservableEntityDTO + { + + /// + /// hardware speed sensor type guid + /// + public String HardwareSpeedSensorTypeGuid + { + get; set; + } + + /// + /// hardware version guid + /// + public String HardwareVersionGuid + { + get; set; + } + + /// + /// resolution bits + /// + public Int32 ResolutionBits + { + get; set; + } + + /// + /// perimeter + /// + public Double Perimeter + { + get; set; + } + + /// + /// active + /// + public Boolean Active + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorTypeDTO.cs new file mode 100644 index 000000000..4fe54ad33 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareSpeedSensorTypeDTO : HardwareSpeedSensorTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorTypeDTOBase.cs new file mode 100644 index 000000000..9bac8891a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareSpeedSensorTypeDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwareSpeedSensorTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareVersionDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareVersionDTO.cs new file mode 100644 index 000000000..55065b301 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareVersionDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareVersionDTO : HardwareVersionDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareVersionDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareVersionDTOBase.cs new file mode 100644 index 000000000..84f75210e --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareVersionDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwareVersionDTOBase : ObservableEntityDTO + { + + /// + /// version + /// + public Double Version + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareWinderDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareWinderDTO.cs new file mode 100644 index 000000000..a65d81791 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareWinderDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareWinderDTO : HardwareWinderDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareWinderDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareWinderDTOBase.cs new file mode 100644 index 000000000..38c094824 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareWinderDTOBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwareWinderDTOBase : ObservableEntityDTO + { + + /// + /// hardware winder type guid + /// + public String HardwareWinderTypeGuid + { + get; set; + } + + /// + /// hardware version guid + /// + public String HardwareVersionGuid + { + get; set; + } + + /// + /// millimeter per rotation + /// + public Int32 MillimeterPerRotation + { + get; set; + } + + /// + /// active + /// + public Boolean Active + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareWinderTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareWinderTypeDTO.cs new file mode 100644 index 000000000..5e311dc0a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareWinderTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class HardwareWinderTypeDTO : HardwareWinderTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/HardwareWinderTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/HardwareWinderTypeDTOBase.cs new file mode 100644 index 000000000..e3550040e --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/HardwareWinderTypeDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class HardwareWinderTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/IdsPackDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/IdsPackDTO.cs new file mode 100644 index 000000000..3ca1e798b --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/IdsPackDTO.cs @@ -0,0 +1,18 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class IdsPackDTO : IdsPackDTOBase + { + public CartridgeTypeDTO CartridgeType { get; set; } + public IdsPackFormulaDTO IdsPackFormula { get; set; } + public LiquidTypeDTO LiquidType { get; set; } + public MidTankTypeDTO MidTankType { get; set; } + public DispenserDTO Dispenser { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/IdsPackDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/IdsPackDTOBase.cs new file mode 100644 index 000000000..b25d09b26 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/IdsPackDTOBase.cs @@ -0,0 +1,89 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class IdsPackDTOBase : ObservableEntityDTO + { + + /// + /// configuration guid + /// + public String ConfigurationGuid + { + get; set; + } + + /// + /// dispenser guid + /// + public String DispenserGuid + { + get; set; + } + + /// + /// liquid type guid + /// + public String LiquidTypeGuid + { + get; set; + } + + /// + /// cartridge type guid + /// + public String CartridgeTypeGuid + { + get; set; + } + + /// + /// mid tank type guid + /// + public String MidTankTypeGuid + { + get; set; + } + + /// + /// ids pack formula guid + /// + public String IdsPackFormulaGuid + { + get; set; + } + + /// + /// pack index + /// + public Int32 PackIndex + { + get; set; + } + + /// + /// is empty + /// + public Boolean IsEmpty + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/IdsPackFormulaDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/IdsPackFormulaDTO.cs new file mode 100644 index 000000000..ac40d9c66 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/IdsPackFormulaDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class IdsPackFormulaDTO : IdsPackFormulaDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/IdsPackFormulaDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/IdsPackFormulaDTOBase.cs new file mode 100644 index 000000000..739e13096 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/IdsPackFormulaDTOBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class IdsPackFormulaDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + /// + /// auto calculated + /// + public Boolean AutoCalculated + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/JobDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/JobDTO.cs new file mode 100644 index 000000000..137d7b4b3 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/JobDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class JobDTO : JobDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/JobDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/JobDTOBase.cs new file mode 100644 index 000000000..f2e919926 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/JobDTOBase.cs @@ -0,0 +1,270 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + + /// + /// + /// + + public abstract class JobDTOBase : ObservableEntityDTO + { + + /// + /// creation date + /// + public DateTime CreationDate + { + get; set; + } + + /// + /// last run + /// + public Nullable LastRun + { + get; set; + } + + /// + /// machine guid + /// + public String MachineGuid + { + get; set; + } + + /// + /// user guid + /// + public String UserGuid + { + get; set; + } + + /// + /// rml guid + /// + public String RmlGuid + { + get; set; + } + + /// + /// winding method guid + /// + public String WindingMethodGuid + { + get; set; + } + + /// + /// spool type guid + /// + public String SpoolTypeGuid + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + /// + /// inter segment length + /// + public Double InterSegmentLength + { + get; set; + } + + /// + /// enable inter segment + /// + public Boolean EnableInterSegment + { + get; set; + } + + /// + /// enable lubrication + /// + public Boolean EnableLubrication + { + get; set; + } + + /// + /// job index + /// + public Int32 JobIndex + { + get; set; + } + + /// + /// estimated duration mili + /// + public Int32 EstimatedDurationMili + { + get; set; + } + + /// + /// has embroidery file + /// + public Boolean HasEmbroideryFile + { + get; set; + } + + /// + /// embroidery file name + /// + public String EmbroideryFileName + { + get; set; + } + + /// + /// status + /// + public Int32 Status + { + get; set; + } + + /// + /// color space guid + /// + public String ColorSpaceGuid + { + get; set; + } + + /// + /// number of units + /// + public Int32 NumberOfUnits + { + get; set; + } + + /// + /// type + /// + public Int32 Type + { + get; set; + } + + /// + /// customer guid + /// + public String CustomerGuid + { + get; set; + } + + /// + /// spools distribution + /// + public Int32 SpoolsDistribution + { + get; set; + } + + /// + /// number of heads + /// + public Int32 NumberOfHeads + { + get; set; + } + + /// + /// sample units or meters + /// + public Int32 SampleUnitsOrMeters + { + get; set; + } + + /// + /// fine tuning status + /// + public Int32 FineTuningStatus + { + get; set; + } + + /// + /// fine tuning approve date + /// + public Nullable FineTuningApproveDate + { + get; set; + } + + /// + /// sample dye status + /// + public Int32 SampleDyeStatus + { + get; set; + } + + /// + /// sample dye approve date + /// + public Nullable SampleDyeApproveDate + { + get; set; + } + + /// + /// editing state + /// + public Int32 EditingState + { + get; set; + } + + /// + /// length percentage factor + /// + public Double LengthPercentageFactor + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/JobRunDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/JobRunDTO.cs new file mode 100644 index 000000000..229c7feac --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/JobRunDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class JobRunDTO : JobRunDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/JobRunDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/JobRunDTOBase.cs new file mode 100644 index 000000000..112694e1a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/JobRunDTOBase.cs @@ -0,0 +1,78 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + + /// + /// + /// + + public abstract class JobRunDTOBase : ObservableEntityDTO + { + + /// + /// job guid + /// + public String JobGuid + { + get; set; + } + + /// + /// start date + /// + public DateTime StartDate + { + get; set; + } + + /// + /// end date + /// + public DateTime EndDate + { + get; set; + } + + /// + /// status + /// + public Int32 Status + { + get; set; + } + + /// + /// end position + /// + public Double EndPosition + { + get; set; + } + + /// + /// failed message + /// + public String FailedMessage + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/LinearMassDensityUnitDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/LinearMassDensityUnitDTO.cs new file mode 100644 index 000000000..c768e7de7 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/LinearMassDensityUnitDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class LinearMassDensityUnitDTO : LinearMassDensityUnitDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/LinearMassDensityUnitDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/LinearMassDensityUnitDTOBase.cs new file mode 100644 index 000000000..ae82c1c83 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/LinearMassDensityUnitDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class LinearMassDensityUnitDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/LiquidTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/LiquidTypeDTO.cs new file mode 100644 index 000000000..cec4185fc --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/LiquidTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class LiquidTypeDTO : LiquidTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/LiquidTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/LiquidTypeDTOBase.cs new file mode 100644 index 000000000..9fb5406e3 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/LiquidTypeDTOBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class LiquidTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// version + /// + public Double Version + { + get; set; + } + + /// + /// color + /// + public Int32 Color + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/LiquidTypesRmlDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/LiquidTypesRmlDTO.cs new file mode 100644 index 000000000..787a00391 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/LiquidTypesRmlDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class LiquidTypesRmlDTO : LiquidTypesRmlDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/LiquidTypesRmlDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/LiquidTypesRmlDTOBase.cs new file mode 100644 index 000000000..badbaf0bc --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/LiquidTypesRmlDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class LiquidTypesRmlDTOBase : ObservableEntityDTO + { + + /// + /// liquid type guid + /// + public String LiquidTypeGuid + { + get; set; + } + + /// + /// rml guid + /// + public String RmlGuid + { + get; set; + } + + /// + /// max nl per cm + /// + public Double MaxNlPerCm + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MachineDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/MachineDTO.cs new file mode 100644 index 000000000..41eca6693 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MachineDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class MachineDTO : MachineDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MachineDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/MachineDTOBase.cs new file mode 100644 index 000000000..3a75cf256 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MachineDTOBase.cs @@ -0,0 +1,201 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class MachineDTOBase : ObservableEntityDTO + { + + /// + /// serial number + /// + public String SerialNumber + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// production date + /// + public DateTime ProductionDate + { + get; set; + } + + /// + /// organization guid + /// + public String OrganizationGuid + { + get; set; + } + + /// + /// machine version guid + /// + public String MachineVersionGuid + { + get; set; + } + + /// + /// configuration guid + /// + public String ConfigurationGuid + { + get; set; + } + + /// + /// default rml guid + /// + public String DefaultRmlGuid + { + get; set; + } + + /// + /// loaded rml guid + /// + public String LoadedRmlGuid + { + get; set; + } + + /// + /// target job types + /// + public String TargetJobTypes + { + get; set; + } + + /// + /// target color space codes + /// + public String TargetColorSpaceCodes + { + get; set; + } + + /// + /// default color space guid + /// + public String DefaultColorSpaceGuid + { + get; set; + } + + /// + /// default segment length + /// + public Double DefaultSegmentLength + { + get; set; + } + + /// + /// default spool type guid + /// + public String DefaultSpoolTypeGuid + { + get; set; + } + + /// + /// os key + /// + public String OsKey + { + get; set; + } + + /// + /// auto login + /// + public Boolean AutoLogin + { + get; set; + } + + /// + /// auto check for updates + /// + public Boolean AutoCheckForUpdates + { + get; set; + } + + /// + /// setup activation + /// + public Boolean SetupActivation + { + get; set; + } + + /// + /// setup remote assistance + /// + public Boolean SetupRemoteAssistance + { + get; set; + } + + /// + /// setup uwf + /// + public Boolean SetupUwf + { + get; set; + } + + /// + /// setup firmware + /// + public Boolean SetupFirmware + { + get; set; + } + + /// + /// setup fpga + /// + public Boolean SetupFpga + { + get; set; + } + + /// + /// is demo + /// + public Boolean IsDemo + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MachineStudioVersionDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/MachineStudioVersionDTO.cs new file mode 100644 index 000000000..c956c6613 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MachineStudioVersionDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class MachineStudioVersionDTO : MachineStudioVersionDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MachineStudioVersionDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/MachineStudioVersionDTOBase.cs new file mode 100644 index 000000000..c64e8d5a0 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MachineStudioVersionDTOBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class MachineStudioVersionDTOBase : ObservableEntityDTO + { + + /// + /// version + /// + public String Version + { + get; set; + } + + /// + /// blob name + /// + public String BlobName + { + get; set; + } + + /// + /// comments + /// + public String Comments + { + get; set; + } + + /// + /// user guid + /// + public String UserGuid + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MachineVersionDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/MachineVersionDTO.cs new file mode 100644 index 000000000..ab179dcd7 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MachineVersionDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class MachineVersionDTO : MachineVersionDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MachineVersionDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/MachineVersionDTOBase.cs new file mode 100644 index 000000000..d8a33da14 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MachineVersionDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class MachineVersionDTOBase : ObservableEntityDTO + { + + /// + /// version + /// + public Double Version + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// prototype machine data + /// + public String PrototypeMachineData + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MachinesEventDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/MachinesEventDTO.cs new file mode 100644 index 000000000..629f13af2 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MachinesEventDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class MachinesEventDTO : MachinesEventDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MachinesEventDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/MachinesEventDTOBase.cs new file mode 100644 index 000000000..8a044f7e8 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MachinesEventDTOBase.cs @@ -0,0 +1,73 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class MachinesEventDTOBase : ObservableEntityDTO + { + + /// + /// host name + /// + public String HostName + { + get; set; + } + + /// + /// machine guid + /// + public String MachineGuid + { + get; set; + } + + /// + /// event type guid + /// + public String EventTypeGuid + { + get; set; + } + + /// + /// user guid + /// + public String UserGuid + { + get; set; + } + + /// + /// date time + /// + public DateTime DateTime + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MediaConditionDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/MediaConditionDTO.cs new file mode 100644 index 000000000..9ef6842bb --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MediaConditionDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class MediaConditionDTO : MediaConditionDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MediaConditionDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/MediaConditionDTOBase.cs new file mode 100644 index 000000000..beb9fd849 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MediaConditionDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class MediaConditionDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MediaMaterialDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/MediaMaterialDTO.cs new file mode 100644 index 000000000..4021bb7d4 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MediaMaterialDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class MediaMaterialDTO : MediaMaterialDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MediaMaterialDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/MediaMaterialDTOBase.cs new file mode 100644 index 000000000..1364df830 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MediaMaterialDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class MediaMaterialDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MediaPurposDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/MediaPurposDTO.cs new file mode 100644 index 000000000..b52282794 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MediaPurposDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class MediaPurposDTO : MediaPurposDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MediaPurposDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/MediaPurposDTOBase.cs new file mode 100644 index 000000000..8445f54f5 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MediaPurposDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class MediaPurposDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MidTankTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/MidTankTypeDTO.cs new file mode 100644 index 000000000..33a671856 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MidTankTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class MidTankTypeDTO : MidTankTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/MidTankTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/MidTankTypeDTOBase.cs new file mode 100644 index 000000000..d2db00675 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/MidTankTypeDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class MidTankTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// liter capacity + /// + public Double LiterCapacity + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/OrganizationDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/OrganizationDTO.cs new file mode 100644 index 000000000..0378ac70a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/OrganizationDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class OrganizationDTO : OrganizationDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/OrganizationDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/OrganizationDTOBase.cs new file mode 100644 index 000000000..a98311e0c --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/OrganizationDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class OrganizationDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// contact guid + /// + public String ContactGuid + { + get; set; + } + + /// + /// address guid + /// + public String AddressGuid + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/PermissionDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/PermissionDTO.cs new file mode 100644 index 000000000..6ea90c4a1 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/PermissionDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class PermissionDTO : PermissionDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/PermissionDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/PermissionDTOBase.cs new file mode 100644 index 000000000..79d82f78a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/PermissionDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class PermissionDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTableDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTableDTO.cs new file mode 100644 index 000000000..9959b2254 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTableDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class ProcessParametersTableDTO : ProcessParametersTableDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTableDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTableDTOBase.cs new file mode 100644 index 000000000..e8892c64a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTableDTOBase.cs @@ -0,0 +1,201 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class ProcessParametersTableDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// dyeing speed + /// + public Double DyeingSpeed + { + get; set; + } + + /// + /// min ink uptake + /// + public Double MinInkUptake + { + get; set; + } + + /// + /// max ink uptake + /// + public Double MaxInkUptake + { + get; set; + } + + /// + /// feeder tension + /// + public Double FeederTension + { + get; set; + } + + /// + /// puller tension + /// + public Double PullerTension + { + get; set; + } + + /// + /// winder tension + /// + public Double WinderTension + { + get; set; + } + + /// + /// mixer temp + /// + public Double MixerTemp + { + get; set; + } + + /// + /// head zone1 temp + /// + public Double HeadZone1Temp + { + get; set; + } + + /// + /// head zone2 temp + /// + public Double HeadZone2Temp + { + get; set; + } + + /// + /// head zone3 temp + /// + public Double HeadZone3Temp + { + get; set; + } + + /// + /// head zone4 temp + /// + public Double HeadZone4Temp + { + get; set; + } + + /// + /// head zone5 temp + /// + public Double HeadZone5Temp + { + get; set; + } + + /// + /// head zone6 temp + /// + public Double HeadZone6Temp + { + get; set; + } + + /// + /// dryer air flow + /// + public Double DryerAirFlow + { + get; set; + } + + /// + /// dryer zone1 temp + /// + public Double DryerZone1Temp + { + get; set; + } + + /// + /// dryer zone2 temp + /// + public Double DryerZone2Temp + { + get; set; + } + + /// + /// dryer zone3 temp + /// + public Double DryerZone3Temp + { + get; set; + } + + /// + /// dryer buffer length + /// + public Double DryerBufferLength + { + get; set; + } + + /// + /// head air flow + /// + public Double HeadAirFlow + { + get; set; + } + + /// + /// process parameters tables group guid + /// + public String ProcessParametersTablesGroupGuid + { + get; set; + } + + /// + /// table index + /// + public Int32 TableIndex + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTablesGroupDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTablesGroupDTO.cs new file mode 100644 index 000000000..8419055c7 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTablesGroupDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class ProcessParametersTablesGroupDTO : ProcessParametersTablesGroupDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTablesGroupDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTablesGroupDTOBase.cs new file mode 100644 index 000000000..79fdeb659 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ProcessParametersTablesGroupDTOBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class ProcessParametersTablesGroupDTOBase : ObservableEntityDTO + { + + /// + /// rml guid + /// + public String RmlGuid + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// active + /// + public Boolean Active + { + get; set; + } + + /// + /// save date + /// + public DateTime SaveDate + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/RmlDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/RmlDTO.cs new file mode 100644 index 000000000..ef4950fda --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/RmlDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class RmlDTO : RmlDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/RmlDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/RmlDTOBase.cs new file mode 100644 index 000000000..fe29999ab --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/RmlDTOBase.cs @@ -0,0 +1,209 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class RmlDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// manufacturer + /// + public String Manufacturer + { + get; set; + } + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// white point l + /// + public Double WhitePointL + { + get; set; + } + + /// + /// white point a + /// + public Double WhitePointA + { + get; set; + } + + /// + /// white point b + /// + public Double WhitePointB + { + get; set; + } + + /// + /// media material guid + /// + public String MediaMaterialGuid + { + get; set; + } + + /// + /// media purpose guid + /// + public String MediaPurposeGuid + { + get; set; + } + + /// + /// media condition guid + /// + public String MediaConditionGuid + { + get; set; + } + + /// + /// linear mass density unit guid + /// + public String LinearMassDensityUnitGuid + { + get; set; + } + + /// + /// fiber shape guid + /// + public String FiberShapeGuid + { + get; set; + } + + /// + /// fiber synth guid + /// + public String FiberSynthGuid + { + get; set; + } + + /// + /// fiber size + /// + public Double FiberSize + { + get; set; + } + + /// + /// number of fibers + /// + public Int32 NumberOfFibers + { + get; set; + } + + /// + /// plies per fiber + /// + public Int32 PliesPerFiber + { + get; set; + } + + /// + /// plies per thread + /// + public Int32 PliesPerThread + { + get; set; + } + + /// + /// twisted + /// + public Boolean Twisted + { + get; set; + } + + /// + /// air entanglement + /// + public Boolean AirEntanglement + { + get; set; + } + + /// + /// lubricant + /// + public Boolean Lubricant + { + get; set; + } + + /// + /// tensile strength + /// + public Double TensileStrength + { + get; set; + } + + /// + /// elongation at break percentage + /// + public Double ElongationAtBreakPercentage + { + get; set; + } + + /// + /// estimated thread diameter + /// + public Double EstimatedThreadDiameter + { + get; set; + } + + /// + /// rank + /// + public Int32 Rank + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/RoleDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/RoleDTO.cs new file mode 100644 index 000000000..064697f6f --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/RoleDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class RoleDTO : RoleDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/RoleDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/RoleDTOBase.cs new file mode 100644 index 000000000..0ac0aaa89 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/RoleDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class RoleDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/RolesPermissionDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/RolesPermissionDTO.cs new file mode 100644 index 000000000..785808578 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/RolesPermissionDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class RolesPermissionDTO : RolesPermissionDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/RolesPermissionDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/RolesPermissionDTOBase.cs new file mode 100644 index 000000000..2fd623659 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/RolesPermissionDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class RolesPermissionDTOBase : ObservableEntityDTO + { + + /// + /// role guid + /// + public String RoleGuid + { + get; set; + } + + /// + /// permission guid + /// + public String PermissionGuid + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/SegmentDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/SegmentDTO.cs new file mode 100644 index 000000000..1db99be23 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/SegmentDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class SegmentDTO : SegmentDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/SegmentDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/SegmentDTOBase.cs new file mode 100644 index 000000000..fba251a63 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/SegmentDTOBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class SegmentDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// job guid + /// + public String JobGuid + { + get; set; + } + + /// + /// length + /// + public Double Length + { + get; set; + } + + /// + /// segment index + /// + public Int32 SegmentIndex + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/SpoolDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/SpoolDTO.cs new file mode 100644 index 000000000..bf25d1e71 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/SpoolDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class SpoolDTO : SpoolDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/SpoolDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/SpoolDTOBase.cs new file mode 100644 index 000000000..346fc4e6d --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/SpoolDTOBase.cs @@ -0,0 +1,73 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class SpoolDTOBase : ObservableEntityDTO + { + + /// + /// spool type guid + /// + public String SpoolTypeGuid + { + get; set; + } + + /// + /// machine guid + /// + public String MachineGuid + { + get; set; + } + + /// + /// start offset pulses + /// + public Int32 StartOffsetPulses + { + get; set; + } + + /// + /// backing rate + /// + public Int32 BackingRate + { + get; set; + } + + /// + /// segment offset pulses + /// + public Int32 SegmentOffsetPulses + { + get; set; + } + + /// + /// bottom backing rate + /// + public Int32 BottomBackingRate + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/SpoolTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/SpoolTypeDTO.cs new file mode 100644 index 000000000..fc76b991f --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/SpoolTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class SpoolTypeDTO : SpoolTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/SpoolTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/SpoolTypeDTOBase.cs new file mode 100644 index 000000000..6edd26e22 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/SpoolTypeDTOBase.cs @@ -0,0 +1,73 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class SpoolTypeDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// length + /// + public Double Length + { + get; set; + } + + /// + /// weight + /// + public Double Weight + { + get; set; + } + + /// + /// diameter + /// + public Double Diameter + { + get; set; + } + + /// + /// rotations per passage + /// + public Double RotationsPerPassage + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/SyncConfigurationDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/SyncConfigurationDTO.cs new file mode 100644 index 000000000..f64c8a6fd --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/SyncConfigurationDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class SyncConfigurationDTO : SyncConfigurationDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/SyncConfigurationDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/SyncConfigurationDTOBase.cs new file mode 100644 index 000000000..94a46c217 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/SyncConfigurationDTOBase.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class SyncConfigurationDTOBase : ObservableEntityDTO + { + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TangoVersionDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/TangoVersionDTO.cs new file mode 100644 index 000000000..b4395dc1e --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TangoVersionDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class TangoVersionDTO : TangoVersionDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TangoVersionDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/TangoVersionDTOBase.cs new file mode 100644 index 000000000..a1995fc74 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TangoVersionDTOBase.cs @@ -0,0 +1,65 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class TangoVersionDTOBase : ObservableEntityDTO + { + + /// + /// version + /// + public String Version + { + get; set; + } + + /// + /// blob name + /// + public String BlobName + { + get; set; + } + + /// + /// comments + /// + public String Comments + { + get; set; + } + + /// + /// user guid + /// + public String UserGuid + { + get; set; + } + + /// + /// machine version guid + /// + public String MachineVersionGuid + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TechControllerDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/TechControllerDTO.cs new file mode 100644 index 000000000..727858e1d --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TechControllerDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class TechControllerDTO : TechControllerDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TechControllerDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/TechControllerDTOBase.cs new file mode 100644 index 000000000..0a3b53942 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TechControllerDTOBase.cs @@ -0,0 +1,73 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class TechControllerDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + /// + /// min + /// + public Double Min + { + get; set; + } + + /// + /// max + /// + public Double Max + { + get; set; + } + + /// + /// units + /// + public String Units + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TechDispenserDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/TechDispenserDTO.cs new file mode 100644 index 000000000..2d4b62dc6 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TechDispenserDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class TechDispenserDTO : TechDispenserDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TechDispenserDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/TechDispenserDTOBase.cs new file mode 100644 index 000000000..727153403 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TechDispenserDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class TechDispenserDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TechHeaterDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/TechHeaterDTO.cs new file mode 100644 index 000000000..f0d60c2d0 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TechHeaterDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class TechHeaterDTO : TechHeaterDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TechHeaterDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/TechHeaterDTOBase.cs new file mode 100644 index 000000000..a0b435ad4 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TechHeaterDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class TechHeaterDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TechIoDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/TechIoDTO.cs new file mode 100644 index 000000000..f69327df0 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TechIoDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class TechIoDTO : TechIoDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TechIoDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/TechIoDTOBase.cs new file mode 100644 index 000000000..bd2f7d495 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TechIoDTOBase.cs @@ -0,0 +1,113 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class TechIoDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// type + /// + public Int32 Type + { + get; set; + } + + /// + /// designator + /// + public String Designator + { + get; set; + } + + /// + /// asm + /// + public String Asm + { + get; set; + } + + /// + /// interface name + /// + public String InterfaceName + { + get; set; + } + + /// + /// sensor + /// + public String Sensor + { + get; set; + } + + /// + /// init value + /// + public Double InitValue + { + get; set; + } + + /// + /// averaging + /// + public Int32 Averaging + { + get; set; + } + + /// + /// min + /// + public Double Min + { + get; set; + } + + /// + /// max + /// + public Double Max + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TechMonitorDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/TechMonitorDTO.cs new file mode 100644 index 000000000..df127dffb --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TechMonitorDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class TechMonitorDTO : TechMonitorDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TechMonitorDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/TechMonitorDTOBase.cs new file mode 100644 index 000000000..97d939832 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TechMonitorDTOBase.cs @@ -0,0 +1,97 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class TechMonitorDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + /// + /// min + /// + public Double Min + { + get; set; + } + + /// + /// max + /// + public Double Max + { + get; set; + } + + /// + /// units + /// + public String Units + { + get; set; + } + + /// + /// points per frame + /// + public Int32 PointsPerFrame + { + get; set; + } + + /// + /// multi channel + /// + public Boolean MultiChannel + { + get; set; + } + + /// + /// channel count + /// + public Int32 ChannelCount + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TechValveDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/TechValveDTO.cs new file mode 100644 index 000000000..6402a6ea8 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TechValveDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class TechValveDTO : TechValveDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/TechValveDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/TechValveDTOBase.cs new file mode 100644 index 000000000..2e28dfce7 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/TechValveDTOBase.cs @@ -0,0 +1,78 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + + /// + /// + /// + + public abstract class TechValveDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + /// + /// type + /// + public Int32 Type + { + get; set; + } + + /// + /// state1 + /// + public String State1 + { + get; set; + } + + /// + /// state2 + /// + public String State2 + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/UserDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/UserDTO.cs new file mode 100644 index 000000000..f7e94e2ca --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/UserDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class UserDTO : UserDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/UserDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/UserDTOBase.cs new file mode 100644 index 000000000..30f4eca26 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/UserDTOBase.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class UserDTOBase : ObservableEntityDTO + { + + /// + /// deleted + /// + public Boolean Deleted + { + get; set; + } + + /// + /// email + /// + public String Email + { + get; set; + } + + /// + /// password + /// + public String Password + { + get; set; + } + + /// + /// organization guid + /// + public String OrganizationGuid + { + get; set; + } + + /// + /// contact guid + /// + public String ContactGuid + { + get; set; + } + + /// + /// address guid + /// + public String AddressGuid + { + get; set; + } + + /// + /// last login + /// + public Nullable LastLogin + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/UsersRoleDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/UsersRoleDTO.cs new file mode 100644 index 000000000..71540b3c8 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/UsersRoleDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class UsersRoleDTO : UsersRoleDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/UsersRoleDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/UsersRoleDTOBase.cs new file mode 100644 index 000000000..317ba884f --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/UsersRoleDTOBase.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class UsersRoleDTOBase : ObservableEntityDTO + { + + /// + /// user guid + /// + public String UserGuid + { + get; set; + } + + /// + /// role guid + /// + public String RoleGuid + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/WindingMethodDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/WindingMethodDTO.cs new file mode 100644 index 000000000..e3329a573 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/WindingMethodDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class WindingMethodDTO : WindingMethodDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/WindingMethodDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/WindingMethodDTOBase.cs new file mode 100644 index 000000000..409da8b4b --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/WindingMethodDTOBase.cs @@ -0,0 +1,49 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class WindingMethodDTOBase : ObservableEntityDTO + { + + /// + /// code + /// + public Int32 Code + { + get; set; + } + + /// + /// name + /// + public String Name + { + get; set; + } + + /// + /// description + /// + public String Description + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/AddressBase.cs b/Software/Visual_Studio/Tango.BL/Entities/AddressBase.cs index 6266c7778..4a96510da 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/AddressBase.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/AddressBase.cs @@ -25,8 +25,6 @@ namespace Tango.BL.Entities public abstract class AddressBase : ObservableEntity
{ - public event EventHandler DeletedChanged; - public event EventHandler AddressStringChanged; public event EventHandler LocalityChanged; @@ -45,33 +43,6 @@ namespace Tango.BL.Entities public event EventHandler> UsersChanged; - protected Boolean _deleted; - - /// - /// Gets or sets the addressbase deleted. - /// - - [Column("DELETED")] - - public Boolean Deleted - { - get - { - return _deleted; - } - - set - { - if (_deleted != value) - { - _deleted = value; - - OnDeletedChanged(value); - - } - } - } - protected String _addressstring; /// @@ -311,15 +282,6 @@ namespace Tango.BL.Entities } } - /// - /// Called when the Deleted has changed. - /// - protected virtual void OnDeletedChanged(Boolean deleted) - { - DeletedChanged?.Invoke(this, deleted); - RaisePropertyChanged(nameof(Deleted)); - } - /// /// Called when the AddressString has changed. /// diff --git a/Software/Visual_Studio/Tango.BL/Entities/ContactBase.cs b/Software/Visual_Studio/Tango.BL/Entities/ContactBase.cs index 19326fafd..20e684270 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/ContactBase.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/ContactBase.cs @@ -25,8 +25,6 @@ namespace Tango.BL.Entities public abstract class ContactBase : ObservableEntity { - public event EventHandler DeletedChanged; - public event EventHandler FirstNameChanged; public event EventHandler LastNameChanged; @@ -43,33 +41,6 @@ namespace Tango.BL.Entities public event EventHandler> UsersChanged; - protected Boolean _deleted; - - /// - /// Gets or sets the contactbase deleted. - /// - - [Column("DELETED")] - - public Boolean Deleted - { - get - { - return _deleted; - } - - set - { - if (_deleted != value) - { - _deleted = value; - - OnDeletedChanged(value); - - } - } - } - protected String _firstname; /// @@ -282,15 +253,6 @@ namespace Tango.BL.Entities } } - /// - /// Called when the Deleted has changed. - /// - protected virtual void OnDeletedChanged(Boolean deleted) - { - DeletedChanged?.Invoke(this, deleted); - RaisePropertyChanged(nameof(Deleted)); - } - /// /// Called when the FirstName has changed. /// diff --git a/Software/Visual_Studio/Tango.BL/IObservableEntityDTO.cs b/Software/Visual_Studio/Tango.BL/IObservableEntityDTO.cs new file mode 100644 index 000000000..7d8e85b99 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/IObservableEntityDTO.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL +{ + public interface IObservableEntityDTO + { + int ID { get; set; } + + String Guid { get; set; } + + DateTime LastUpdated { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.BL/ObservableEntityDTO.cs b/Software/Visual_Studio/Tango.BL/ObservableEntityDTO.cs new file mode 100644 index 000000000..5950a3cd2 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/ObservableEntityDTO.cs @@ -0,0 +1,211 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL +{ + public abstract class ObservableEntityDTO : IObservableEntityDTO, IEquatable where T : IObservableEntity where DTO : ObservableEntityDTO + { + public int ID { get; set; } + + public String Guid { get; set; } + + public DateTime LastUpdated { get; set; } + + public static DTO FromObservable(T observable) + { + if (observable == null) return null; + + var dto = Activator.CreateInstance(); + + foreach (var prop in typeof(DTO).GetProperties()) + { + var observableProp = typeof(T).GetProperty(prop.Name); + if (observableProp != null) + { + if (prop.PropertyType.IsPrimitive || prop.PropertyType.IsValueType || prop.PropertyType == typeof(String)) + { + prop.SetValue(dto, observableProp.GetValue(observable)); + } + else if (!prop.PropertyType.IsGenericType) + { + prop.SetValue(dto, prop.PropertyType.GetMethod(nameof(FromObservable), BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy).Invoke(null, new object[] { observableProp.GetValue(observable) })); + } + else + { + IList collection = Activator.CreateInstance(prop.PropertyType) as IList; + IList source = observableProp.GetValue(observable) as IList; + + foreach (var item in source) + { + collection.Add(prop.PropertyType.GenericTypeArguments[0].GetMethod(nameof(FromObservable), BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy).Invoke(null, new object[] { item })); + } + + prop.SetValue(dto, collection); + } + } + } + + return dto; + } + + public T ToObservable() + { + T observable = Activator.CreateInstance(); + MapToObservable(observable); + return observable; + } + + public void MapToObservable(T observable) + { + foreach (var prop in typeof(DTO).GetProperties()) + { + var observableProp = typeof(T).GetProperty(prop.Name); + if (observableProp != null) + { + if (prop.PropertyType.IsPrimitive || prop.PropertyType.IsValueType || prop.PropertyType == typeof(String)) + { + observableProp.SetValue(observable, prop.GetValue(this)); + } + else if (!prop.PropertyType.IsGenericType) + { + var propInstance = prop.GetValue(this); + + if (propInstance != null) + { + var observableInstance = observableProp.GetValue(observable); + + if (observableInstance == null) + { + observableInstance = Activator.CreateInstance(observableProp.PropertyType); + observableProp.SetValue(observable, observableInstance); + } + + var method = prop.PropertyType.GetRuntimeMethod(nameof(MapToObservable), new Type[] { observableProp.PropertyType }); + method.Invoke(propInstance, new object[] { observableInstance }); + } + } + else + { + IList collection = prop.GetValue(this) as IList; + IList observableCollection = observableProp.GetValue(observable) as IList; + + if (collection != null) + { + foreach (var item in collection) + { + bool found = false; + + foreach (var o in observableCollection) + { + var dtoItem = item as IObservableEntityDTO; + var observableItem = o as IObservableEntity; + + if (dtoItem.Guid.Equals(observableItem.Guid)) + { + var method = dtoItem.GetType().GetRuntimeMethod(nameof(MapToObservable), new Type[] { observableItem.GetType() }); + method.Invoke(dtoItem, new object[] { observableItem }); + found = true; + break; + } + } + + if (!found) + { + var observableItem = Activator.CreateInstance(observableProp.PropertyType.GenericTypeArguments[0]); + var method = item.GetType().GetRuntimeMethod(nameof(MapToObservable), new Type[] { observableItem.GetType() }); + method.Invoke(item, new object[] { observableItem }); + observableCollection.Add(observableItem); + } + } + } + } + } + } + } + + public bool EqualsToObservable(T observable) + { + if (observable == null) return false; + + foreach (var prop in typeof(DTO).GetProperties()) + { + var observableProp = typeof(T).GetProperty(prop.Name); + if (observableProp != null) + { + if (prop.PropertyType.IsPrimitive || prop.PropertyType.IsValueType || prop.PropertyType == typeof(String)) + { + var observableValue = observableProp.GetValue(observable); + var dtoValue = prop.GetValue(this); + + if (dtoValue == null && observableValue != null) return false; + if (dtoValue != null && observableValue == null) return false; + + if (dtoValue != null && observableValue != null) + { + if (!dtoValue.Equals(observableValue)) + { + return false; + } + } + } + else if (!prop.PropertyType.IsGenericType) + { + var propInstance = prop.GetValue(this); + var observableInstance = observableProp.GetValue(observable); + if (propInstance == null && observableInstance != null) return false; + + if (propInstance != null) + { + var method = prop.PropertyType.GetRuntimeMethod(nameof(EqualsToObservable), new Type[] { observableInstance.GetType() }); + + if (!((bool)method.Invoke(propInstance, new object[] { observableInstance }))) + { + return false; + } + } + } + else + { + IList source = observableProp.GetValue(observable) as IList; + IList collection = prop.GetValue(this) as IList; + + if (collection == null && source != null) return false; + if (source == null && collection != null) return false; + + if (source != null && collection != null) + { + if (source.Count != collection.Count) return false; + + for (int i = 0; i < source.Count; i++) + { + var item = collection[i]; + var itemSource = source[i]; + + var method = item.GetType().GetRuntimeMethod(nameof(EqualsToObservable), new Type[] { itemSource.GetType() }); + + if (item == null && itemSource != null) return false; + + if (!((bool)method.Invoke(item, new object[] { itemSource }))) + { + return false; + } + } + } + } + } + } + + return true; + } + + public bool Equals(T observable) + { + return EqualsToObservable(observable); + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/ObservablesContext.Views.cs b/Software/Visual_Studio/Tango.BL/ObservablesContext.Views.cs deleted file mode 100644 index 035166337..000000000 --- a/Software/Visual_Studio/Tango.BL/ObservablesContext.Views.cs +++ /dev/null @@ -1,4395 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System.Data.Entity.Infrastructure.MappingViews; - -[assembly: DbMappingViewCacheTypeAttribute( - typeof(Tango.BL.ObservablesContext), - typeof(Edm_EntityMappingGeneratedViews.ViewsForBaseEntitySets0d16b15979dfe51121471eb5a4f154efd8d2725e999a657f5a837ed4cce78ba6))] - -namespace Edm_EntityMappingGeneratedViews -{ - using System; - using System.CodeDom.Compiler; - using System.Data.Entity.Core.Metadata.Edm; - - /// - /// Implements a mapping view cache. - /// - [GeneratedCode("Entity Framework Power Tools", "0.9.0.0")] - internal sealed class ViewsForBaseEntitySets0d16b15979dfe51121471eb5a4f154efd8d2725e999a657f5a837ed4cce78ba6 : DbMappingViewCache - { - /// - /// Gets a hash value computed over the mapping closure. - /// - public override string MappingHashValue - { - get { return "0d16b15979dfe51121471eb5a4f154efd8d2725e999a657f5a837ed4cce78ba6"; } - } - - /// - /// Gets a view corresponding to the specified extent. - /// - /// The extent. - /// The mapping view, or null if the extent is not associated with a mapping view. - public override DbMappingView GetView(EntitySetBase extent) - { - if (extent == null) - { - throw new ArgumentNullException("extent"); - } - - var extentName = extent.EntityContainer.Name + "." + extent.Name; - - if (extentName == "CodeFirstDatabase.Address") - { - return GetView0(); - } - - if (extentName == "CodeFirstDatabase.Organization") - { - return GetView1(); - } - - if (extentName == "CodeFirstDatabase.Contact") - { - return GetView2(); - } - - if (extentName == "CodeFirstDatabase.User") - { - return GetView3(); - } - - if (extentName == "CodeFirstDatabase.Job") - { - return GetView4(); - } - - if (extentName == "CodeFirstDatabase.ColorSpace") - { - return GetView5(); - } - - if (extentName == "CodeFirstDatabase.BrushStop") - { - return GetView6(); - } - - if (extentName == "CodeFirstDatabase.ColorCatalog") - { - return GetView7(); - } - - if (extentName == "CodeFirstDatabase.Rml") - { - return GetView8(); - } - - if (extentName == "CodeFirstDatabase.Cat") - { - return GetView9(); - } - - if (extentName == "CodeFirstDatabase.LiquidType") - { - return GetView10(); - } - - if (extentName == "CodeFirstDatabase.IdsPack") - { - return GetView11(); - } - - if (extentName == "CodeFirstDatabase.CartridgeType") - { - return GetView12(); - } - - if (extentName == "CodeFirstDatabase.Configuration") - { - return GetView13(); - } - - if (extentName == "CodeFirstDatabase.ApplicationDisplayPanelVersion") - { - return GetView14(); - } - - if (extentName == "CodeFirstDatabase.ApplicationFirmwareVersion") - { - return GetView15(); - } - - if (extentName == "CodeFirstDatabase.ApplicationOsVersion") - { - return GetView16(); - } - - if (extentName == "CodeFirstDatabase.EmbeddedFirmwareVersion") - { - return GetView17(); - } - - if (extentName == "CodeFirstDatabase.HardwareVersion") - { - return GetView18(); - } - - if (extentName == "CodeFirstDatabase.HardwareBlower") - { - return GetView19(); - } - - if (extentName == "CodeFirstDatabase.HardwareBlowerType") - { - return GetView20(); - } - - if (extentName == "CodeFirstDatabase.HardwareBreakSensor") - { - return GetView21(); - } - - if (extentName == "CodeFirstDatabase.HardwareBreakSensorType") - { - return GetView22(); - } - - if (extentName == "CodeFirstDatabase.HardwareDancer") - { - return GetView23(); - } - - if (extentName == "CodeFirstDatabase.HardwareDancerType") - { - return GetView24(); - } - - if (extentName == "CodeFirstDatabase.HardwareMotor") - { - return GetView25(); - } - - if (extentName == "CodeFirstDatabase.HardwareMotorType") - { - return GetView26(); - } - - if (extentName == "CodeFirstDatabase.HardwarePidControl") - { - return GetView27(); - } - - if (extentName == "CodeFirstDatabase.HardwarePidControlType") - { - return GetView28(); - } - - if (extentName == "CodeFirstDatabase.HardwareSpeedSensor") - { - return GetView29(); - } - - if (extentName == "CodeFirstDatabase.HardwareSpeedSensorType") - { - return GetView30(); - } - - if (extentName == "CodeFirstDatabase.HardwareWinder") - { - return GetView31(); - } - - if (extentName == "CodeFirstDatabase.HardwareWinderType") - { - return GetView32(); - } - - if (extentName == "CodeFirstDatabase.Machine") - { - return GetView33(); - } - - if (extentName == "CodeFirstDatabase.SpoolType") - { - return GetView34(); - } - - if (extentName == "CodeFirstDatabase.Spool") - { - return GetView35(); - } - - if (extentName == "CodeFirstDatabase.MachinesEvent") - { - return GetView36(); - } - - if (extentName == "CodeFirstDatabase.EventType") - { - return GetView37(); - } - - if (extentName == "CodeFirstDatabase.MachineVersion") - { - return GetView38(); - } - - if (extentName == "CodeFirstDatabase.TangoVersion") - { - return GetView39(); - } - - if (extentName == "CodeFirstDatabase.Dispenser") - { - return GetView40(); - } - - if (extentName == "CodeFirstDatabase.DispenserType") - { - return GetView41(); - } - - if (extentName == "CodeFirstDatabase.IdsPackFormula") - { - return GetView42(); - } - - if (extentName == "CodeFirstDatabase.MidTankType") - { - return GetView43(); - } - - if (extentName == "CodeFirstDatabase.LiquidTypesRml") - { - return GetView44(); - } - - if (extentName == "CodeFirstDatabase.Cct") - { - return GetView45(); - } - - if (extentName == "CodeFirstDatabase.FiberShape") - { - return GetView46(); - } - - if (extentName == "CodeFirstDatabase.FiberSynth") - { - return GetView47(); - } - - if (extentName == "CodeFirstDatabase.LinearMassDensityUnit") - { - return GetView48(); - } - - if (extentName == "CodeFirstDatabase.MediaCondition") - { - return GetView49(); - } - - if (extentName == "CodeFirstDatabase.MediaMaterial") - { - return GetView50(); - } - - if (extentName == "CodeFirstDatabase.MediaPurpos") - { - return GetView51(); - } - - if (extentName == "CodeFirstDatabase.ProcessParametersTablesGroup") - { - return GetView52(); - } - - if (extentName == "CodeFirstDatabase.ProcessParametersTable") - { - return GetView53(); - } - - if (extentName == "CodeFirstDatabase.Segment") - { - return GetView54(); - } - - if (extentName == "CodeFirstDatabase.Customer") - { - return GetView55(); - } - - if (extentName == "CodeFirstDatabase.JobRun") - { - return GetView56(); - } - - if (extentName == "CodeFirstDatabase.WindingMethod") - { - return GetView57(); - } - - if (extentName == "CodeFirstDatabase.MachineStudioVersion") - { - return GetView58(); - } - - if (extentName == "CodeFirstDatabase.UsersRole") - { - return GetView59(); - } - - if (extentName == "CodeFirstDatabase.Role") - { - return GetView60(); - } - - if (extentName == "CodeFirstDatabase.RolesPermission") - { - return GetView61(); - } - - if (extentName == "CodeFirstDatabase.Permission") - { - return GetView62(); - } - - if (extentName == "ObservablesContext.Addresses") - { - return GetView63(); - } - - if (extentName == "ObservablesContext.Organizations") - { - return GetView64(); - } - - if (extentName == "ObservablesContext.Contacts") - { - return GetView65(); - } - - if (extentName == "ObservablesContext.Users") - { - return GetView66(); - } - - if (extentName == "ObservablesContext.Jobs") - { - return GetView67(); - } - - if (extentName == "ObservablesContext.ColorSpaces") - { - return GetView68(); - } - - if (extentName == "ObservablesContext.BrushStops") - { - return GetView69(); - } - - if (extentName == "ObservablesContext.ColorCatalogs") - { - return GetView70(); - } - - if (extentName == "ObservablesContext.Rmls") - { - return GetView71(); - } - - if (extentName == "ObservablesContext.Cats") - { - return GetView72(); - } - - if (extentName == "ObservablesContext.LiquidTypes") - { - return GetView73(); - } - - if (extentName == "ObservablesContext.IdsPacks") - { - return GetView74(); - } - - if (extentName == "ObservablesContext.CartridgeTypes") - { - return GetView75(); - } - - if (extentName == "ObservablesContext.Configurations") - { - return GetView76(); - } - - if (extentName == "ObservablesContext.ApplicationDisplayPanelVersions") - { - return GetView77(); - } - - if (extentName == "ObservablesContext.ApplicationFirmwareVersions") - { - return GetView78(); - } - - if (extentName == "ObservablesContext.ApplicationOsVersions") - { - return GetView79(); - } - - if (extentName == "ObservablesContext.EmbeddedFirmwareVersions") - { - return GetView80(); - } - - if (extentName == "ObservablesContext.HardwareVersions") - { - return GetView81(); - } - - if (extentName == "ObservablesContext.HardwareBlowers") - { - return GetView82(); - } - - if (extentName == "ObservablesContext.HardwareBlowerTypes") - { - return GetView83(); - } - - if (extentName == "ObservablesContext.HardwareBreakSensors") - { - return GetView84(); - } - - if (extentName == "ObservablesContext.HardwareBreakSensorTypes") - { - return GetView85(); - } - - if (extentName == "ObservablesContext.HardwareDancers") - { - return GetView86(); - } - - if (extentName == "ObservablesContext.HardwareDancerTypes") - { - return GetView87(); - } - - if (extentName == "ObservablesContext.HardwareMotors") - { - return GetView88(); - } - - if (extentName == "ObservablesContext.HardwareMotorTypes") - { - return GetView89(); - } - - if (extentName == "ObservablesContext.HardwarePidControls") - { - return GetView90(); - } - - if (extentName == "ObservablesContext.HardwarePidControlTypes") - { - return GetView91(); - } - - if (extentName == "ObservablesContext.HardwareSpeedSensors") - { - return GetView92(); - } - - if (extentName == "ObservablesContext.HardwareSpeedSensorTypes") - { - return GetView93(); - } - - if (extentName == "ObservablesContext.HardwareWinders") - { - return GetView94(); - } - - if (extentName == "ObservablesContext.HardwareWinderTypes") - { - return GetView95(); - } - - if (extentName == "ObservablesContext.Machines") - { - return GetView96(); - } - - if (extentName == "ObservablesContext.SpoolTypes") - { - return GetView97(); - } - - if (extentName == "ObservablesContext.Spools") - { - return GetView98(); - } - - if (extentName == "ObservablesContext.MachinesEvents") - { - return GetView99(); - } - - if (extentName == "ObservablesContext.EventTypes") - { - return GetView100(); - } - - if (extentName == "ObservablesContext.MachineVersions") - { - return GetView101(); - } - - if (extentName == "ObservablesContext.TangoVersions") - { - return GetView102(); - } - - if (extentName == "ObservablesContext.Dispensers") - { - return GetView103(); - } - - if (extentName == "ObservablesContext.DispenserTypes") - { - return GetView104(); - } - - if (extentName == "ObservablesContext.IdsPackFormulas") - { - return GetView105(); - } - - if (extentName == "ObservablesContext.MidTankTypes") - { - return GetView106(); - } - - if (extentName == "ObservablesContext.LiquidTypesRmls") - { - return GetView107(); - } - - if (extentName == "ObservablesContext.Ccts") - { - return GetView108(); - } - - if (extentName == "ObservablesContext.FiberShapes") - { - return GetView109(); - } - - if (extentName == "ObservablesContext.FiberSynths") - { - return GetView110(); - } - - if (extentName == "ObservablesContext.LinearMassDensityUnits") - { - return GetView111(); - } - - if (extentName == "ObservablesContext.MediaConditions") - { - return GetView112(); - } - - if (extentName == "ObservablesContext.MediaMaterials") - { - return GetView113(); - } - - if (extentName == "ObservablesContext.MediaPurposes") - { - return GetView114(); - } - - if (extentName == "ObservablesContext.ProcessParametersTablesGroups") - { - return GetView115(); - } - - if (extentName == "ObservablesContext.ProcessParametersTables") - { - return GetView116(); - } - - if (extentName == "ObservablesContext.Segments") - { - return GetView117(); - } - - if (extentName == "ObservablesContext.Customers") - { - return GetView118(); - } - - if (extentName == "ObservablesContext.JobRuns") - { - return GetView119(); - } - - if (extentName == "ObservablesContext.WindingMethods") - { - return GetView120(); - } - - if (extentName == "ObservablesContext.MachineStudioVersions") - { - return GetView121(); - } - - if (extentName == "ObservablesContext.UsersRoles") - { - return GetView122(); - } - - if (extentName == "ObservablesContext.Roles") - { - return GetView123(); - } - - if (extentName == "ObservablesContext.RolesPermissions") - { - return GetView124(); - } - - if (extentName == "ObservablesContext.Permissions") - { - return GetView125(); - } - - if (extentName == "CodeFirstDatabase.SyncConfiguration") - { - return GetView126(); - } - - if (extentName == "ObservablesContext.SyncConfigurations") - { - return GetView127(); - } - - if (extentName == "CodeFirstDatabase.Sysdiagram") - { - return GetView128(); - } - - if (extentName == "ObservablesContext.Sysdiagrams") - { - return GetView129(); - } - - if (extentName == "CodeFirstDatabase.TechController") - { - return GetView130(); - } - - if (extentName == "ObservablesContext.TechControllers") - { - return GetView131(); - } - - if (extentName == "CodeFirstDatabase.TechDispenser") - { - return GetView132(); - } - - if (extentName == "ObservablesContext.TechDispensers") - { - return GetView133(); - } - - if (extentName == "CodeFirstDatabase.TechHeater") - { - return GetView134(); - } - - if (extentName == "ObservablesContext.TechHeaters") - { - return GetView135(); - } - - if (extentName == "CodeFirstDatabase.TechIo") - { - return GetView136(); - } - - if (extentName == "ObservablesContext.TechIos") - { - return GetView137(); - } - - if (extentName == "CodeFirstDatabase.TechMonitor") - { - return GetView138(); - } - - if (extentName == "ObservablesContext.TechMonitors") - { - return GetView139(); - } - - if (extentName == "CodeFirstDatabase.TechValve") - { - return GetView140(); - } - - if (extentName == "ObservablesContext.TechValves") - { - return GetView141(); - } - - return null; - } - - /// - /// Gets the view for CodeFirstDatabase.Address. - /// - /// The mapping view. - private static DbMappingView GetView0() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Address - [CodeFirstDatabaseSchema.Address](T1.Address_GUID, T1.Address_DELETED, T1.[Address.ADDRESS_STRING], T1.Address_LOCALITY, T1.Address_COUNTRY, T1.Address_CITY, T1.Address_STATE, T1.[Address.COUNTRY_CODE], T1.[Address.POSTAL_CODE], T1.Address_ID, T1.[Address.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Address_GUID, - T.Deleted AS Address_DELETED, - T.AddressString AS [Address.ADDRESS_STRING], - T.Locality AS Address_LOCALITY, - T.Country AS Address_COUNTRY, - T.City AS Address_CITY, - T.State AS Address_STATE, - T.CountryCode AS [Address.COUNTRY_CODE], - T.PostalCode AS [Address.POSTAL_CODE], - T.ID AS Address_ID, - T.LastUpdated AS [Address.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Addresses AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Organization. - /// - /// The mapping view. - private static DbMappingView GetView1() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Organization - [CodeFirstDatabaseSchema.Organization](T1.Organization_GUID, T1.Organization_NAME, T1.[Organization.CONTACT_GUID], T1.[Organization.ADDRESS_GUID], T1.Organization_ID, T1.[Organization.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Organization_GUID, - T.Name AS Organization_NAME, - T.ContactGuid AS [Organization.CONTACT_GUID], - T.AddressGuid AS [Organization.ADDRESS_GUID], - T.ID AS Organization_ID, - T.LastUpdated AS [Organization.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Organizations AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Contact. - /// - /// The mapping view. - private static DbMappingView GetView2() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Contact - [CodeFirstDatabaseSchema.Contact](T1.Contact_GUID, T1.Contact_DELETED, T1.[Contact.FIRST_NAME], T1.[Contact.LAST_NAME], T1.[Contact.FULL_NAME], T1.Contact_EMAIL, T1.[Contact.PHONE_NUMBER], T1.Contact_FAX, T1.Contact_ID, T1.[Contact.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Contact_GUID, - T.Deleted AS Contact_DELETED, - T.FirstName AS [Contact.FIRST_NAME], - T.LastName AS [Contact.LAST_NAME], - T.FullName AS [Contact.FULL_NAME], - T.Email AS Contact_EMAIL, - T.PhoneNumber AS [Contact.PHONE_NUMBER], - T.Fax AS Contact_FAX, - T.ID AS Contact_ID, - T.LastUpdated AS [Contact.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Contacts AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.User. - /// - /// The mapping view. - private static DbMappingView GetView3() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing User - [CodeFirstDatabaseSchema.User](T1.User_GUID, T1.User_DELETED, T1.User_EMAIL, T1.User_PASSWORD, T1.[User.ORGANIZATION_GUID], T1.[User.CONTACT_GUID], T1.[User.ADDRESS_GUID], T1.[User.LAST_LOGIN], T1.User_ID, T1.[User.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS User_GUID, - T.Deleted AS User_DELETED, - T.Email AS User_EMAIL, - T.Password AS User_PASSWORD, - T.OrganizationGuid AS [User.ORGANIZATION_GUID], - T.ContactGuid AS [User.CONTACT_GUID], - T.AddressGuid AS [User.ADDRESS_GUID], - T.LastLogin AS [User.LAST_LOGIN], - T.ID AS User_ID, - T.LastUpdated AS [User.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Users AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Job. - /// - /// The mapping view. - private static DbMappingView GetView4() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Job - [CodeFirstDatabaseSchema.Job](T1.Job_GUID, T1.[Job.CREATION_DATE], T1.[Job.LAST_RUN], T1.[Job.MACHINE_GUID], T1.[Job.USER_GUID], T1.[Job.RML_GUID], T1.[Job.WINDING_METHOD_GUID], T1.[Job.SPOOL_TYPE_GUID], T1.Job_NAME, T1.Job_DESCRIPTION, T1.[Job.INTER_SEGMENT_LENGTH], T1.[Job.ENABLE_INTER_SEGMENT], T1.[Job.ENABLE_LUBRICATION], T1.[Job.JOB_INDEX], T1.[Job.ESTIMATED_DURATION_MILI], T1.[Job.HAS_EMBROIDERY_FILE], T1.[Job.EMBROIDERY_FILE_DATA], T1.[Job.EMBROIDERY_FILE_NAME], T1.[Job.EMBROIDERY_JPEG], T1.Job_STATUS, T1.[Job.COLOR_SPACE_GUID], T1.[Job.NUMBER_OF_UNITS], T1.Job_TYPE, T1.[Job.CUSTOMER_GUID], T1.[Job.SPOOLS_DISTRIBUTION], T1.[Job.NUMBER_OF_HEADS], T1.[Job.SAMPLE_UNITS_OR_METERS], T1.[Job.FINE_TUNING_STATUS], T1.[Job.FINE_TUNING_APPROVE_DATE], T1.[Job.SAMPLE_DYE_STATUS], T1.[Job.SAMPLE_DYE_APPROVE_DATE], T1.[Job.EDITING_STATE], T1.[Job.LENGTH_PERCENTAGE_FACTOR], T1.Job_ID, T1.[Job.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Job_GUID, - T.CreationDate AS [Job.CREATION_DATE], - T.LastRun AS [Job.LAST_RUN], - T.MachineGuid AS [Job.MACHINE_GUID], - T.UserGuid AS [Job.USER_GUID], - T.RmlGuid AS [Job.RML_GUID], - T.WindingMethodGuid AS [Job.WINDING_METHOD_GUID], - T.SpoolTypeGuid AS [Job.SPOOL_TYPE_GUID], - T.Name AS Job_NAME, - T.Description AS Job_DESCRIPTION, - T.InterSegmentLength AS [Job.INTER_SEGMENT_LENGTH], - T.EnableInterSegment AS [Job.ENABLE_INTER_SEGMENT], - T.EnableLubrication AS [Job.ENABLE_LUBRICATION], - T.JobIndex AS [Job.JOB_INDEX], - T.EstimatedDurationMili AS [Job.ESTIMATED_DURATION_MILI], - T.HasEmbroideryFile AS [Job.HAS_EMBROIDERY_FILE], - T.EmbroideryFileData AS [Job.EMBROIDERY_FILE_DATA], - T.EmbroideryFileName AS [Job.EMBROIDERY_FILE_NAME], - T.EmbroideryJpeg AS [Job.EMBROIDERY_JPEG], - T.Status AS Job_STATUS, - T.ColorSpaceGuid AS [Job.COLOR_SPACE_GUID], - T.NumberOfUnits AS [Job.NUMBER_OF_UNITS], - T.Type AS Job_TYPE, - T.CustomerGuid AS [Job.CUSTOMER_GUID], - T.SpoolsDistribution AS [Job.SPOOLS_DISTRIBUTION], - T.NumberOfHeads AS [Job.NUMBER_OF_HEADS], - T.SampleUnitsOrMeters AS [Job.SAMPLE_UNITS_OR_METERS], - T.FineTuningStatus AS [Job.FINE_TUNING_STATUS], - T.FineTuningApproveDate AS [Job.FINE_TUNING_APPROVE_DATE], - T.SampleDyeStatus AS [Job.SAMPLE_DYE_STATUS], - T.SampleDyeApproveDate AS [Job.SAMPLE_DYE_APPROVE_DATE], - T.EditingState AS [Job.EDITING_STATE], - T.LengthPercentageFactor AS [Job.LENGTH_PERCENTAGE_FACTOR], - T.ID AS Job_ID, - T.LastUpdated AS [Job.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Jobs AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.ColorSpace. - /// - /// The mapping view. - private static DbMappingView GetView5() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ColorSpace - [CodeFirstDatabaseSchema.ColorSpace](T1.ColorSpace_GUID, T1.ColorSpace_CODE, T1.ColorSpace_NAME, T1.ColorSpace_DESCRIPTION, T1.[ColorSpace.IS_CATALOG], T1.ColorSpace_THUMBNAIL, T1.ColorSpace_ID, T1.[ColorSpace.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS ColorSpace_GUID, - T.Code AS ColorSpace_CODE, - T.Name AS ColorSpace_NAME, - T.Description AS ColorSpace_DESCRIPTION, - T.IsCatalog AS [ColorSpace.IS_CATALOG], - T.Thumbnail AS ColorSpace_THUMBNAIL, - T.ID AS ColorSpace_ID, - T.LastUpdated AS [ColorSpace.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.ColorSpaces AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.BrushStop. - /// - /// The mapping view. - private static DbMappingView GetView6() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing BrushStop - [CodeFirstDatabaseSchema.BrushStop](T1.BrushStop_GUID, T1.[BrushStop.SEGMENT_GUID], T1.[BrushStop.COLOR_SPACE_GUID], T1.[BrushStop.OFFSET_PERCENT], T1.[BrushStop.STOP_INDEX], T1.BrushStop_CYAN, T1.BrushStop_MAGENTA, T1.BrushStop_YELLOW, T1.BrushStop_BLACK, T1.BrushStop_RED, T1.BrushStop_GREEN, T1.BrushStop_BLUE, T1.BrushStop_L, T1.BrushStop_A, T1.BrushStop_B, T1.BrushStop_V0, T1.[BrushStop.V0_DIV], T1.BrushStop_V1, T1.[BrushStop.V1_DIV], T1.BrushStop_V2, T1.[BrushStop.V2_DIV], T1.BrushStop_V3, T1.[BrushStop.V3_DIV], T1.BrushStop_V4, T1.[BrushStop.V4_DIV], T1.BrushStop_V5, T1.[BrushStop.V5_DIV], T1.BrushStop_V6, T1.[BrushStop.V6_DIV], T1.BrushStop_V7, T1.[BrushStop.V7_DIV], T1.BrushStop_CORRECTED, T1.[BrushStop.COLOR_CATALOG_GUID], T1.BrushStop_ID, T1.[BrushStop.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS BrushStop_GUID, - T.SegmentGuid AS [BrushStop.SEGMENT_GUID], - T.ColorSpaceGuid AS [BrushStop.COLOR_SPACE_GUID], - T.OffsetPercent AS [BrushStop.OFFSET_PERCENT], - T.StopIndex AS [BrushStop.STOP_INDEX], - T.Cyan AS BrushStop_CYAN, - T.Magenta AS BrushStop_MAGENTA, - T.Yellow AS BrushStop_YELLOW, - T.Black AS BrushStop_BLACK, - T.Red AS BrushStop_RED, - T.Green AS BrushStop_GREEN, - T.Blue AS BrushStop_BLUE, - T.L AS BrushStop_L, - T.A AS BrushStop_A, - T.B AS BrushStop_B, - T.V0 AS BrushStop_V0, - T.V0Div AS [BrushStop.V0_DIV], - T.V1 AS BrushStop_V1, - T.V1Div AS [BrushStop.V1_DIV], - T.V2 AS BrushStop_V2, - T.V2Div AS [BrushStop.V2_DIV], - T.V3 AS BrushStop_V3, - T.V3Div AS [BrushStop.V3_DIV], - T.V4 AS BrushStop_V4, - T.V4Div AS [BrushStop.V4_DIV], - T.V5 AS BrushStop_V5, - T.V5Div AS [BrushStop.V5_DIV], - T.V6 AS BrushStop_V6, - T.V6Div AS [BrushStop.V6_DIV], - T.V7 AS BrushStop_V7, - T.V7Div AS [BrushStop.V7_DIV], - T.Corrected AS BrushStop_CORRECTED, - T.ColorCatalogGuid AS [BrushStop.COLOR_CATALOG_GUID], - T.ID AS BrushStop_ID, - T.LastUpdated AS [BrushStop.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.BrushStops AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.ColorCatalog. - /// - /// The mapping view. - private static DbMappingView GetView7() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ColorCatalog - [CodeFirstDatabaseSchema.ColorCatalog](T1.ColorCatalog_GUID, T1.[ColorCatalog.RML_GUID], T1.[ColorCatalog.COLOR_SPACE_GUID], T1.[ColorCatalog.COLOR_CODE], T1.ColorCatalog_NAME, T1.[ColorCatalog.COLOR_GROUP], T1.ColorCatalog_CYAN, T1.ColorCatalog_MAGENTA, T1.ColorCatalog_YELLOW, T1.ColorCatalog_BLACK, T1.ColorCatalog_RED, T1.ColorCatalog_GREEN, T1.ColorCatalog_BLUE, T1.ColorCatalog_L, T1.ColorCatalog_A, T1.ColorCatalog_B, T1.[ColorCatalog.PROCESS_PARAMETERS_TABLE_INDEX], T1.ColorCatalog_ID, T1.[ColorCatalog.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS ColorCatalog_GUID, - T.RmlGuid AS [ColorCatalog.RML_GUID], - T.ColorSpaceGuid AS [ColorCatalog.COLOR_SPACE_GUID], - T.ColorCode AS [ColorCatalog.COLOR_CODE], - T.Name AS ColorCatalog_NAME, - T.ColorGroup AS [ColorCatalog.COLOR_GROUP], - T.Cyan AS ColorCatalog_CYAN, - T.Magenta AS ColorCatalog_MAGENTA, - T.Yellow AS ColorCatalog_YELLOW, - T.Black AS ColorCatalog_BLACK, - T.Red AS ColorCatalog_RED, - T.Green AS ColorCatalog_GREEN, - T.Blue AS ColorCatalog_BLUE, - T.L AS ColorCatalog_L, - T.A AS ColorCatalog_A, - T.B AS ColorCatalog_B, - T.ProcessParametersTableIndex AS [ColorCatalog.PROCESS_PARAMETERS_TABLE_INDEX], - T.ID AS ColorCatalog_ID, - T.LastUpdated AS [ColorCatalog.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.ColorCatalogs AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Rml. - /// - /// The mapping view. - private static DbMappingView GetView8() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Rml - [CodeFirstDatabaseSchema.Rml](T1.Rml_GUID, T1.Rml_NAME, T1.Rml_MANUFACTURER, T1.Rml_CODE, T1.[Rml.WHITE_POINT_L], T1.[Rml.WHITE_POINT_A], T1.[Rml.WHITE_POINT_B], T1.[Rml.MEDIA_MATERIAL_GUID], T1.[Rml.MEDIA_PURPOSE_GUID], T1.[Rml.MEDIA_CONDITION_GUID], T1.[Rml.LINEAR_MASS_DENSITY_UNIT_GUID], T1.[Rml.FIBER_SHAPE_GUID], T1.[Rml.FIBER_SYNTH_GUID], T1.[Rml.FIBER_SIZE], T1.[Rml.NUMBER_OF_FIBERS], T1.[Rml.PLIES_PER_FIBER], T1.[Rml.PLIES_PER_THREAD], T1.Rml_TWISTED, T1.[Rml.AIR_ENTANGLEMENT], T1.Rml_LUBRICANT, T1.[Rml.TENSILE_STRENGTH], T1.[Rml.ELONGATION_AT_BREAK_PERCENTAGE], T1.[Rml.ESTIMATED_THREAD_DIAMETER], T1.Rml_RANK, T1.Rml_THUMBNAIL, T1.Rml_ID, T1.[Rml.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Rml_GUID, - T.Name AS Rml_NAME, - T.Manufacturer AS Rml_MANUFACTURER, - T.Code AS Rml_CODE, - T.WhitePointL AS [Rml.WHITE_POINT_L], - T.WhitePointA AS [Rml.WHITE_POINT_A], - T.WhitePointB AS [Rml.WHITE_POINT_B], - T.MediaMaterialGuid AS [Rml.MEDIA_MATERIAL_GUID], - T.MediaPurposeGuid AS [Rml.MEDIA_PURPOSE_GUID], - T.MediaConditionGuid AS [Rml.MEDIA_CONDITION_GUID], - T.LinearMassDensityUnitGuid AS [Rml.LINEAR_MASS_DENSITY_UNIT_GUID], - T.FiberShapeGuid AS [Rml.FIBER_SHAPE_GUID], - T.FiberSynthGuid AS [Rml.FIBER_SYNTH_GUID], - T.FiberSize AS [Rml.FIBER_SIZE], - T.NumberOfFibers AS [Rml.NUMBER_OF_FIBERS], - T.PliesPerFiber AS [Rml.PLIES_PER_FIBER], - T.PliesPerThread AS [Rml.PLIES_PER_THREAD], - T.Twisted AS Rml_TWISTED, - T.AirEntanglement AS [Rml.AIR_ENTANGLEMENT], - T.Lubricant AS Rml_LUBRICANT, - T.TensileStrength AS [Rml.TENSILE_STRENGTH], - T.ElongationAtBreakPercentage AS [Rml.ELONGATION_AT_BREAK_PERCENTAGE], - T.EstimatedThreadDiameter AS [Rml.ESTIMATED_THREAD_DIAMETER], - T.Rank AS Rml_RANK, - T.Thumbnail AS Rml_THUMBNAIL, - T.ID AS Rml_ID, - T.LastUpdated AS [Rml.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Rmls AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Cat. - /// - /// The mapping view. - private static DbMappingView GetView9() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Cat - [CodeFirstDatabaseSchema.Cat](T1.Cat_GUID, T1.Cat_NAME, T1.[Cat.MACHINE_GUID], T1.[Cat.RML_GUID], T1.[Cat.LIQUID_TYPE_GUID], T1.Cat_DATA, T1.Cat_ID, T1.[Cat.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Cat_GUID, - T.Name AS Cat_NAME, - T.MachineGuid AS [Cat.MACHINE_GUID], - T.RmlGuid AS [Cat.RML_GUID], - T.LiquidTypeGuid AS [Cat.LIQUID_TYPE_GUID], - T.Data AS Cat_DATA, - T.ID AS Cat_ID, - T.LastUpdated AS [Cat.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Cats AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.LiquidType. - /// - /// The mapping view. - private static DbMappingView GetView10() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing LiquidType - [CodeFirstDatabaseSchema.LiquidType](T1.LiquidType_GUID, T1.LiquidType_CODE, T1.LiquidType_NAME, T1.LiquidType_VERSION, T1.LiquidType_COLOR, T1.LiquidType_ID, T1.[LiquidType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS LiquidType_GUID, - T.Code AS LiquidType_CODE, - T.Name AS LiquidType_NAME, - T.Version AS LiquidType_VERSION, - T.Color AS LiquidType_COLOR, - T.ID AS LiquidType_ID, - T.LastUpdated AS [LiquidType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.LiquidTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.IdsPack. - /// - /// The mapping view. - private static DbMappingView GetView11() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing IdsPack - [CodeFirstDatabaseSchema.IdsPack](T1.IdsPack_GUID, T1.[IdsPack.CONFIGURATION_GUID], T1.[IdsPack.DISPENSER_GUID], T1.[IdsPack.LIQUID_TYPE_GUID], T1.[IdsPack.CARTRIDGE_TYPE_GUID], T1.[IdsPack.MID_TANK_TYPE_GUID], T1.[IdsPack.IDS_PACK_FORMULA_GUID], T1.[IdsPack.PACK_INDEX], T1.[IdsPack.IS_EMPTY], T1.IdsPack_ID, T1.[IdsPack.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS IdsPack_GUID, - T.ConfigurationGuid AS [IdsPack.CONFIGURATION_GUID], - T.DispenserGuid AS [IdsPack.DISPENSER_GUID], - T.LiquidTypeGuid AS [IdsPack.LIQUID_TYPE_GUID], - T.CartridgeTypeGuid AS [IdsPack.CARTRIDGE_TYPE_GUID], - T.MidTankTypeGuid AS [IdsPack.MID_TANK_TYPE_GUID], - T.IdsPackFormulaGuid AS [IdsPack.IDS_PACK_FORMULA_GUID], - T.PackIndex AS [IdsPack.PACK_INDEX], - T.IsEmpty AS [IdsPack.IS_EMPTY], - T.ID AS IdsPack_ID, - T.LastUpdated AS [IdsPack.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.IdsPacks AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.CartridgeType. - /// - /// The mapping view. - private static DbMappingView GetView12() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing CartridgeType - [CodeFirstDatabaseSchema.CartridgeType](T1.CartridgeType_GUID, T1.CartridgeType_CODE, T1.CartridgeType_NAME, T1.CartridgeType_ID, T1.[CartridgeType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS CartridgeType_GUID, - T.Code AS CartridgeType_CODE, - T.Name AS CartridgeType_NAME, - T.ID AS CartridgeType_ID, - T.LastUpdated AS [CartridgeType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.CartridgeTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Configuration. - /// - /// The mapping view. - private static DbMappingView GetView13() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Configuration - [CodeFirstDatabaseSchema.Configuration](T1.Configuration_GUID, T1.[Configuration.APPLICATION_OS_VERSION_GUID], T1.[Configuration.APPLICATION_FIRMWARE_VERSION_GUID], T1.[Configuration.APPLICATION_DISPLAY_PANEL_VERSION_GUID], T1.[Configuration.EMBEDDED_FIRMWARE_VERSION_GUID], T1.[Configuration.HARDWARE_VERSION_GUID], T1.Configuration_ID, T1.[Configuration.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Configuration_GUID, - T.ApplicationOsVersionGuid AS [Configuration.APPLICATION_OS_VERSION_GUID], - T.ApplicationFirmwareVersionGuid AS [Configuration.APPLICATION_FIRMWARE_VERSION_GUID], - T.ApplicationDisplayPanelVersionGuid AS [Configuration.APPLICATION_DISPLAY_PANEL_VERSION_GUID], - T.EmbeddedFirmwareVersionGuid AS [Configuration.EMBEDDED_FIRMWARE_VERSION_GUID], - T.HardwareVersionGuid AS [Configuration.HARDWARE_VERSION_GUID], - T.ID AS Configuration_ID, - T.LastUpdated AS [Configuration.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Configurations AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.ApplicationDisplayPanelVersion. - /// - /// The mapping view. - private static DbMappingView GetView14() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ApplicationDisplayPanelVersion - [CodeFirstDatabaseSchema.ApplicationDisplayPanelVersion](T1.ApplicationDisplayPanelVersion_GUID, T1.ApplicationDisplayPanelVersion_VERSION, T1.ApplicationDisplayPanelVersion_NAME, T1.ApplicationDisplayPanelVersion_ID, T1.[ApplicationDisplayPanelVersion.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS ApplicationDisplayPanelVersion_GUID, - T.Version AS ApplicationDisplayPanelVersion_VERSION, - T.Name AS ApplicationDisplayPanelVersion_NAME, - T.ID AS ApplicationDisplayPanelVersion_ID, - T.LastUpdated AS [ApplicationDisplayPanelVersion.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.ApplicationDisplayPanelVersions AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.ApplicationFirmwareVersion. - /// - /// The mapping view. - private static DbMappingView GetView15() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ApplicationFirmwareVersion - [CodeFirstDatabaseSchema.ApplicationFirmwareVersion](T1.ApplicationFirmwareVersion_GUID, T1.ApplicationFirmwareVersion_VERSION, T1.ApplicationFirmwareVersion_NAME, T1.ApplicationFirmwareVersion_ID, T1.[ApplicationFirmwareVersion.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS ApplicationFirmwareVersion_GUID, - T.Version AS ApplicationFirmwareVersion_VERSION, - T.Name AS ApplicationFirmwareVersion_NAME, - T.ID AS ApplicationFirmwareVersion_ID, - T.LastUpdated AS [ApplicationFirmwareVersion.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.ApplicationFirmwareVersions AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.ApplicationOsVersion. - /// - /// The mapping view. - private static DbMappingView GetView16() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ApplicationOsVersion - [CodeFirstDatabaseSchema.ApplicationOsVersion](T1.ApplicationOsVersion_GUID, T1.ApplicationOsVersion_VERSION, T1.ApplicationOsVersion_NAME, T1.ApplicationOsVersion_ID, T1.[ApplicationOsVersion.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS ApplicationOsVersion_GUID, - T.Version AS ApplicationOsVersion_VERSION, - T.Name AS ApplicationOsVersion_NAME, - T.ID AS ApplicationOsVersion_ID, - T.LastUpdated AS [ApplicationOsVersion.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.ApplicationOsVersions AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.EmbeddedFirmwareVersion. - /// - /// The mapping view. - private static DbMappingView GetView17() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing EmbeddedFirmwareVersion - [CodeFirstDatabaseSchema.EmbeddedFirmwareVersion](T1.EmbeddedFirmwareVersion_GUID, T1.EmbeddedFirmwareVersion_VERSION, T1.EmbeddedFirmwareVersion_NAME, T1.EmbeddedFirmwareVersion_ID, T1.[EmbeddedFirmwareVersion.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS EmbeddedFirmwareVersion_GUID, - T.Version AS EmbeddedFirmwareVersion_VERSION, - T.Name AS EmbeddedFirmwareVersion_NAME, - T.ID AS EmbeddedFirmwareVersion_ID, - T.LastUpdated AS [EmbeddedFirmwareVersion.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.EmbeddedFirmwareVersions AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareVersion. - /// - /// The mapping view. - private static DbMappingView GetView18() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareVersion - [CodeFirstDatabaseSchema.HardwareVersion](T1.HardwareVersion_GUID, T1.HardwareVersion_VERSION, T1.HardwareVersion_NAME, T1.HardwareVersion_ID, T1.[HardwareVersion.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareVersion_GUID, - T.Version AS HardwareVersion_VERSION, - T.Name AS HardwareVersion_NAME, - T.ID AS HardwareVersion_ID, - T.LastUpdated AS [HardwareVersion.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareVersions AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareBlower. - /// - /// The mapping view. - private static DbMappingView GetView19() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareBlower - [CodeFirstDatabaseSchema.HardwareBlower](T1.HardwareBlower_GUID, T1.[HardwareBlower.HARDWARE_BLOWER_TYPE_GUID], T1.[HardwareBlower.HARDWARE_VERSION_GUID], T1.HardwareBlower_ENABLED, T1.HardwareBlower_VOLTAGE, T1.[HardwareBlower.HEATING_VOLTAGE], T1.HardwareBlower_ACTIVE, T1.HardwareBlower_ID, T1.[HardwareBlower.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareBlower_GUID, - T.HardwareBlowerTypeGuid AS [HardwareBlower.HARDWARE_BLOWER_TYPE_GUID], - T.HardwareVersionGuid AS [HardwareBlower.HARDWARE_VERSION_GUID], - T.Enabled AS HardwareBlower_ENABLED, - T.Voltage AS HardwareBlower_VOLTAGE, - T.HeatingVoltage AS [HardwareBlower.HEATING_VOLTAGE], - T.Active AS HardwareBlower_ACTIVE, - T.ID AS HardwareBlower_ID, - T.LastUpdated AS [HardwareBlower.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareBlowers AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareBlowerType. - /// - /// The mapping view. - private static DbMappingView GetView20() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareBlowerType - [CodeFirstDatabaseSchema.HardwareBlowerType](T1.HardwareBlowerType_GUID, T1.HardwareBlowerType_CODE, T1.HardwareBlowerType_NAME, T1.HardwareBlowerType_DESCRIPTION, T1.HardwareBlowerType_ID, T1.[HardwareBlowerType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareBlowerType_GUID, - T.Code AS HardwareBlowerType_CODE, - T.Name AS HardwareBlowerType_NAME, - T.Description AS HardwareBlowerType_DESCRIPTION, - T.ID AS HardwareBlowerType_ID, - T.LastUpdated AS [HardwareBlowerType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareBlowerTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareBreakSensor. - /// - /// The mapping view. - private static DbMappingView GetView21() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareBreakSensor - [CodeFirstDatabaseSchema.HardwareBreakSensor](T1.HardwareBreakSensor_GUID, T1.[HardwareBreakSensor.HARDWARE_BREAK_SENSOR_TYPE_GUID], T1.[HardwareBreakSensor.HARDWARE_VERSION_GUID], T1.HardwareBreakSensor_ENABLED, T1.[HardwareBreakSensor.DE_BOUNCE_TIME_MILLI], T1.HardwareBreakSensor_ACTIVE, T1.HardwareBreakSensor_ID, T1.[HardwareBreakSensor.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareBreakSensor_GUID, - T.HardwareBreakSensorTypeGuid AS [HardwareBreakSensor.HARDWARE_BREAK_SENSOR_TYPE_GUID], - T.HardwareVersionGuid AS [HardwareBreakSensor.HARDWARE_VERSION_GUID], - T.Enabled AS HardwareBreakSensor_ENABLED, - T.DeBounceTimeMilli AS [HardwareBreakSensor.DE_BOUNCE_TIME_MILLI], - T.Active AS HardwareBreakSensor_ACTIVE, - T.ID AS HardwareBreakSensor_ID, - T.LastUpdated AS [HardwareBreakSensor.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareBreakSensors AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareBreakSensorType. - /// - /// The mapping view. - private static DbMappingView GetView22() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareBreakSensorType - [CodeFirstDatabaseSchema.HardwareBreakSensorType](T1.HardwareBreakSensorType_GUID, T1.HardwareBreakSensorType_CODE, T1.HardwareBreakSensorType_NAME, T1.HardwareBreakSensorType_DESCRIPTION, T1.HardwareBreakSensorType_ID, T1.[HardwareBreakSensorType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareBreakSensorType_GUID, - T.Code AS HardwareBreakSensorType_CODE, - T.Name AS HardwareBreakSensorType_NAME, - T.Description AS HardwareBreakSensorType_DESCRIPTION, - T.ID AS HardwareBreakSensorType_ID, - T.LastUpdated AS [HardwareBreakSensorType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareBreakSensorTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareDancer. - /// - /// The mapping view. - private static DbMappingView GetView23() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareDancer - [CodeFirstDatabaseSchema.HardwareDancer](T1.HardwareDancer_GUID, T1.[HardwareDancer.HARDWARE_DANCER_TYPE_GUID], T1.[HardwareDancer.HARDWARE_VERSION_GUID], T1.HardwareDancer_GRADUAL, T1.HardwareDancer_K, T1.HardwareDancer_X, T1.[HardwareDancer.PULSE_PER_MM_SPRING], T1.[HardwareDancer.MAXIMAL_MOVEMENT_MM], T1.[HardwareDancer.ZERO_POINT], T1.[HardwareDancer.RESOLUTION_BITS], T1.[HardwareDancer.ARM_LENGTH], T1.[HardwareDancer.ASSEMBLY_DIRECTION_RIGHT], T1.[HardwareDancer.ACCELERATE_ON_TENSION_RAISE], T1.HardwareDancer_ACTIVE, T1.HardwareDancer_ID, T1.[HardwareDancer.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareDancer_GUID, - T.HardwareDancerTypeGuid AS [HardwareDancer.HARDWARE_DANCER_TYPE_GUID], - T.HardwareVersionGuid AS [HardwareDancer.HARDWARE_VERSION_GUID], - T.Gradual AS HardwareDancer_GRADUAL, - T.K AS HardwareDancer_K, - T.X AS HardwareDancer_X, - T.PulsePerMmSpring AS [HardwareDancer.PULSE_PER_MM_SPRING], - T.MaximalMovementMm AS [HardwareDancer.MAXIMAL_MOVEMENT_MM], - T.ZeroPoint AS [HardwareDancer.ZERO_POINT], - T.ResolutionBits AS [HardwareDancer.RESOLUTION_BITS], - T.ArmLength AS [HardwareDancer.ARM_LENGTH], - T.AssemblyDirectionRight AS [HardwareDancer.ASSEMBLY_DIRECTION_RIGHT], - T.AccelerateOnTensionRaise AS [HardwareDancer.ACCELERATE_ON_TENSION_RAISE], - T.Active AS HardwareDancer_ACTIVE, - T.ID AS HardwareDancer_ID, - T.LastUpdated AS [HardwareDancer.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareDancers AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareDancerType. - /// - /// The mapping view. - private static DbMappingView GetView24() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareDancerType - [CodeFirstDatabaseSchema.HardwareDancerType](T1.HardwareDancerType_GUID, T1.HardwareDancerType_CODE, T1.HardwareDancerType_NAME, T1.HardwareDancerType_DESCRIPTION, T1.HardwareDancerType_ID, T1.[HardwareDancerType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareDancerType_GUID, - T.Code AS HardwareDancerType_CODE, - T.Name AS HardwareDancerType_NAME, - T.Description AS HardwareDancerType_DESCRIPTION, - T.ID AS HardwareDancerType_ID, - T.LastUpdated AS [HardwareDancerType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareDancerTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareMotor. - /// - /// The mapping view. - private static DbMappingView GetView25() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareMotor - [CodeFirstDatabaseSchema.HardwareMotor](T1.HardwareMotor_GUID, T1.[HardwareMotor.HARDWARE_MOTOR_TYPE_GUID], T1.[HardwareMotor.HARDWARE_VERSION_GUID], T1.[HardwareMotor.MIN_FREQUENCY], T1.[HardwareMotor.MAX_FREQUENCY], T1.[HardwareMotor.SET_MICRO_STEP], T1.[HardwareMotor.MICRO_STEP], T1.[HardwareMotor.MAX_CHANGE_SLOPE], T1.[HardwareMotor.HIGH_LENGTH_MICRO_SECOND], T1.[HardwareMotor.SPEED_MASTER], T1.[HardwareMotor.PULSE_PER_ROUND], T1.[HardwareMotor.PULLEY_RADIUS], T1.[HardwareMotor.CONFIG_WORD], T1.[HardwareMotor.DIRECTION_THREAD_WIZE], T1.[HardwareMotor.KVAL_HOLD], T1.[HardwareMotor.KVAL_RUN], T1.[HardwareMotor.KVAL_ACC], T1.[HardwareMotor.KVAL_DEC], T1.[HardwareMotor.OVER_CURRENT_THRESHOLD], T1.[HardwareMotor.STALL_THRESHOLD], T1.[HardwareMotor.THERMAL_COMPENSATION_FACTOR], T1.[HardwareMotor.LOW_SPEED_OPTIMIZATION], T1.[HardwareMotor.ST_SLP], T1.[HardwareMotor.INT_SPD], T1.[HardwareMotor.FN_SLP_ACC], T1.[HardwareMotor.FN_SLP_DEC], T1.[HardwareMotor.FS_SPD], T1.HardwareMotor_ACTIVE, T1.HardwareMotor_ID, T1.[HardwareMotor.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareMotor_GUID, - T.HardwareMotorTypeGuid AS [HardwareMotor.HARDWARE_MOTOR_TYPE_GUID], - T.HardwareVersionGuid AS [HardwareMotor.HARDWARE_VERSION_GUID], - T.MinFrequency AS [HardwareMotor.MIN_FREQUENCY], - T.MaxFrequency AS [HardwareMotor.MAX_FREQUENCY], - T.SetMicroStep AS [HardwareMotor.SET_MICRO_STEP], - T.MicroStep AS [HardwareMotor.MICRO_STEP], - T.MaxChangeSlope AS [HardwareMotor.MAX_CHANGE_SLOPE], - T.HighLengthMicroSecond AS [HardwareMotor.HIGH_LENGTH_MICRO_SECOND], - T.SpeedMaster AS [HardwareMotor.SPEED_MASTER], - T.PulsePerRound AS [HardwareMotor.PULSE_PER_ROUND], - T.PulleyRadius AS [HardwareMotor.PULLEY_RADIUS], - T.ConfigWord AS [HardwareMotor.CONFIG_WORD], - T.DirectionThreadWize AS [HardwareMotor.DIRECTION_THREAD_WIZE], - T.KvalHold AS [HardwareMotor.KVAL_HOLD], - T.KvalRun AS [HardwareMotor.KVAL_RUN], - T.KvalAcc AS [HardwareMotor.KVAL_ACC], - T.KvalDec AS [HardwareMotor.KVAL_DEC], - T.OverCurrentThreshold AS [HardwareMotor.OVER_CURRENT_THRESHOLD], - T.StallThreshold AS [HardwareMotor.STALL_THRESHOLD], - T.ThermalCompensationFactor AS [HardwareMotor.THERMAL_COMPENSATION_FACTOR], - T.LowSpeedOptimization AS [HardwareMotor.LOW_SPEED_OPTIMIZATION], - T.StSlp AS [HardwareMotor.ST_SLP], - T.IntSpd AS [HardwareMotor.INT_SPD], - T.FnSlpAcc AS [HardwareMotor.FN_SLP_ACC], - T.FnSlpDec AS [HardwareMotor.FN_SLP_DEC], - T.FsSpd AS [HardwareMotor.FS_SPD], - T.Active AS HardwareMotor_ACTIVE, - T.ID AS HardwareMotor_ID, - T.LastUpdated AS [HardwareMotor.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareMotors AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareMotorType. - /// - /// The mapping view. - private static DbMappingView GetView26() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareMotorType - [CodeFirstDatabaseSchema.HardwareMotorType](T1.HardwareMotorType_GUID, T1.HardwareMotorType_CODE, T1.HardwareMotorType_NAME, T1.HardwareMotorType_DESCRIPTION, T1.[HardwareMotorType.SUPPORTS_HOMING], T1.HardwareMotorType_ID, T1.[HardwareMotorType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareMotorType_GUID, - T.Code AS HardwareMotorType_CODE, - T.Name AS HardwareMotorType_NAME, - T.Description AS HardwareMotorType_DESCRIPTION, - T.SupportsHoming AS [HardwareMotorType.SUPPORTS_HOMING], - T.ID AS HardwareMotorType_ID, - T.LastUpdated AS [HardwareMotorType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareMotorTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwarePidControl. - /// - /// The mapping view. - private static DbMappingView GetView27() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwarePidControl - [CodeFirstDatabaseSchema.HardwarePidControl](T1.HardwarePidControl_GUID, T1.[HardwarePidControl.HARDWARE_PID_CONTROL_TYPE_GUID], T1.[HardwarePidControl.HARDWARE_VERSION_GUID], T1.[HardwarePidControl.OUTPUT_PROPORTIONAL_POWER_LIMIT], T1.[HardwarePidControl.OUTPUT_PROPORTIONAL_BAND], T1.[HardwarePidControl.INTEGRAL_TIME], T1.[HardwarePidControl.DERIVATIVE_TIME], T1.[HardwarePidControl.SENSOR_CORRECTION_ADJUSTMENT], T1.[HardwarePidControl.SENSOR_MIN_VALUE], T1.[HardwarePidControl.SENSOR_MAX_VALUE], T1.[HardwarePidControl.SET_POINT_RAMP_RATEOR_SOFT_START_RAMP], T1.[HardwarePidControl.SET_POINT_CONTROL_OUTPUT_RATE], T1.[HardwarePidControl.CONTROL_OUTPUT_TYPE], T1.[HardwarePidControl.SSR_CONTROL_OUTPUT_TYPE], T1.[HardwarePidControl.OUTPUT_ON_OFF_HYSTERESIS_VALUE], T1.[HardwarePidControl.PROCESS_VARIABLE_SAMPLING_RATE], T1.[HardwarePidControl.PV_INPUT_FILTER_FACTOR_MODE], T1.[HardwarePidControl.OUTPUT_PROPORTIONAL_CYCLE_TIME], T1.[HardwarePidControl.AC_HEATERS__HALF_CYCLE_TIME], T1.[HardwarePidControl.PROPORTIONAL_GAIN], T1.[HardwarePidControl.PID_ACTIVE], T1.HardwarePidControl_EPSILON, T1.HardwarePidControl_ACTIVE, T1.HardwarePidControl_ID, T1.[HardwarePidControl.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwarePidControl_GUID, - T.HardwarePidControlTypeGuid AS [HardwarePidControl.HARDWARE_PID_CONTROL_TYPE_GUID], - T.HardwareVersionGuid AS [HardwarePidControl.HARDWARE_VERSION_GUID], - T.OutputProportionalPowerLimit AS [HardwarePidControl.OUTPUT_PROPORTIONAL_POWER_LIMIT], - T.OutputProportionalBand AS [HardwarePidControl.OUTPUT_PROPORTIONAL_BAND], - T.IntegralTime AS [HardwarePidControl.INTEGRAL_TIME], - T.DerivativeTime AS [HardwarePidControl.DERIVATIVE_TIME], - T.SensorCorrectionAdjustment AS [HardwarePidControl.SENSOR_CORRECTION_ADJUSTMENT], - T.SensorMinValue AS [HardwarePidControl.SENSOR_MIN_VALUE], - T.SensorMaxValue AS [HardwarePidControl.SENSOR_MAX_VALUE], - T.SetPointRampRateorSoftStartRamp AS [HardwarePidControl.SET_POINT_RAMP_RATEOR_SOFT_START_RAMP], - T.SetPointControlOutputRate AS [HardwarePidControl.SET_POINT_CONTROL_OUTPUT_RATE], - T.ControlOutputType AS [HardwarePidControl.CONTROL_OUTPUT_TYPE], - T.SsrControlOutputType AS [HardwarePidControl.SSR_CONTROL_OUTPUT_TYPE], - T.OutputOnOffHysteresisValue AS [HardwarePidControl.OUTPUT_ON_OFF_HYSTERESIS_VALUE], - T.ProcessVariableSamplingRate AS [HardwarePidControl.PROCESS_VARIABLE_SAMPLING_RATE], - T.PvInputFilterFactorMode AS [HardwarePidControl.PV_INPUT_FILTER_FACTOR_MODE], - T.OutputProportionalCycleTime AS [HardwarePidControl.OUTPUT_PROPORTIONAL_CYCLE_TIME], - T.AcHeatersHalfCycleTime AS [HardwarePidControl.AC_HEATERS__HALF_CYCLE_TIME], - T.ProportionalGain AS [HardwarePidControl.PROPORTIONAL_GAIN], - T.PidActive AS [HardwarePidControl.PID_ACTIVE], - T.Epsilon AS HardwarePidControl_EPSILON, - T.Active AS HardwarePidControl_ACTIVE, - T.ID AS HardwarePidControl_ID, - T.LastUpdated AS [HardwarePidControl.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwarePidControls AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwarePidControlType. - /// - /// The mapping view. - private static DbMappingView GetView28() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwarePidControlType - [CodeFirstDatabaseSchema.HardwarePidControlType](T1.HardwarePidControlType_GUID, T1.HardwarePidControlType_CODE, T1.HardwarePidControlType_NAME, T1.HardwarePidControlType_DESCRIPTION, T1.HardwarePidControlType_ID, T1.[HardwarePidControlType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwarePidControlType_GUID, - T.Code AS HardwarePidControlType_CODE, - T.Name AS HardwarePidControlType_NAME, - T.Description AS HardwarePidControlType_DESCRIPTION, - T.ID AS HardwarePidControlType_ID, - T.LastUpdated AS [HardwarePidControlType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwarePidControlTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareSpeedSensor. - /// - /// The mapping view. - private static DbMappingView GetView29() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareSpeedSensor - [CodeFirstDatabaseSchema.HardwareSpeedSensor](T1.HardwareSpeedSensor_GUID, T1.[HardwareSpeedSensor.HARDWARE_SPEED_SENSOR_TYPE_GUID], T1.[HardwareSpeedSensor.HARDWARE_VERSION_GUID], T1.[HardwareSpeedSensor.RESOLUTION_BITS], T1.HardwareSpeedSensor_PERIMETER, T1.HardwareSpeedSensor_ACTIVE, T1.HardwareSpeedSensor_ID, T1.[HardwareSpeedSensor.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareSpeedSensor_GUID, - T.HardwareSpeedSensorTypeGuid AS [HardwareSpeedSensor.HARDWARE_SPEED_SENSOR_TYPE_GUID], - T.HardwareVersionGuid AS [HardwareSpeedSensor.HARDWARE_VERSION_GUID], - T.ResolutionBits AS [HardwareSpeedSensor.RESOLUTION_BITS], - T.Perimeter AS HardwareSpeedSensor_PERIMETER, - T.Active AS HardwareSpeedSensor_ACTIVE, - T.ID AS HardwareSpeedSensor_ID, - T.LastUpdated AS [HardwareSpeedSensor.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareSpeedSensors AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareSpeedSensorType. - /// - /// The mapping view. - private static DbMappingView GetView30() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareSpeedSensorType - [CodeFirstDatabaseSchema.HardwareSpeedSensorType](T1.HardwareSpeedSensorType_GUID, T1.HardwareSpeedSensorType_CODE, T1.HardwareSpeedSensorType_NAME, T1.HardwareSpeedSensorType_DESCRIPTION, T1.HardwareSpeedSensorType_ID, T1.[HardwareSpeedSensorType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareSpeedSensorType_GUID, - T.Code AS HardwareSpeedSensorType_CODE, - T.Name AS HardwareSpeedSensorType_NAME, - T.Description AS HardwareSpeedSensorType_DESCRIPTION, - T.ID AS HardwareSpeedSensorType_ID, - T.LastUpdated AS [HardwareSpeedSensorType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareSpeedSensorTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareWinder. - /// - /// The mapping view. - private static DbMappingView GetView31() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareWinder - [CodeFirstDatabaseSchema.HardwareWinder](T1.HardwareWinder_GUID, T1.[HardwareWinder.HARDWARE_WINDER_TYPE_GUID], T1.[HardwareWinder.HARDWARE_VERSION_GUID], T1.[HardwareWinder.MILLIMETER_PER_ROTATION], T1.HardwareWinder_ACTIVE, T1.HardwareWinder_ID, T1.[HardwareWinder.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareWinder_GUID, - T.HardwareWinderTypeGuid AS [HardwareWinder.HARDWARE_WINDER_TYPE_GUID], - T.HardwareVersionGuid AS [HardwareWinder.HARDWARE_VERSION_GUID], - T.MillimeterPerRotation AS [HardwareWinder.MILLIMETER_PER_ROTATION], - T.Active AS HardwareWinder_ACTIVE, - T.ID AS HardwareWinder_ID, - T.LastUpdated AS [HardwareWinder.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareWinders AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.HardwareWinderType. - /// - /// The mapping view. - private static DbMappingView GetView32() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareWinderType - [CodeFirstDatabaseSchema.HardwareWinderType](T1.HardwareWinderType_GUID, T1.HardwareWinderType_CODE, T1.HardwareWinderType_NAME, T1.HardwareWinderType_DESCRIPTION, T1.HardwareWinderType_ID, T1.[HardwareWinderType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS HardwareWinderType_GUID, - T.Code AS HardwareWinderType_CODE, - T.Name AS HardwareWinderType_NAME, - T.Description AS HardwareWinderType_DESCRIPTION, - T.ID AS HardwareWinderType_ID, - T.LastUpdated AS [HardwareWinderType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.HardwareWinderTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Machine. - /// - /// The mapping view. - private static DbMappingView GetView33() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Machine - [CodeFirstDatabaseSchema.Machine](T1.Machine_GUID, T1.[Machine.SERIAL_NUMBER], T1.Machine_NAME, T1.[Machine.PRODUCTION_DATE], T1.[Machine.ORGANIZATION_GUID], T1.[Machine.MACHINE_VERSION_GUID], T1.[Machine.CONFIGURATION_GUID], T1.[Machine.DEFAULT_RML_GUID], T1.[Machine.LOADED_RML_GUID], T1.[Machine.TARGET_JOB_TYPES], T1.[Machine.TARGET_COLOR_SPACE_CODES], T1.[Machine.DEFAULT_COLOR_SPACE_GUID], T1.[Machine.DEFAULT_SEGMENT_LENGTH], T1.[Machine.DEFAULT_SPOOL_TYPE_GUID], T1.[Machine.OS_KEY], T1.[Machine.AUTO_LOGIN], T1.[Machine.AUTO_CHECK_FOR_UPDATES], T1.[Machine.SETUP_ACTIVATION], T1.[Machine.SETUP_REMOTE_ASSISTANCE], T1.[Machine.SETUP_UWF], T1.[Machine.SETUP_FIRMWARE], T1.[Machine.SETUP_FPGA], T1.[Machine.IS_DEMO], T1.Machine_ID, T1.[Machine.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Machine_GUID, - T.SerialNumber AS [Machine.SERIAL_NUMBER], - T.Name AS Machine_NAME, - T.ProductionDate AS [Machine.PRODUCTION_DATE], - T.OrganizationGuid AS [Machine.ORGANIZATION_GUID], - T.MachineVersionGuid AS [Machine.MACHINE_VERSION_GUID], - T.ConfigurationGuid AS [Machine.CONFIGURATION_GUID], - T.DefaultRmlGuid AS [Machine.DEFAULT_RML_GUID], - T.LoadedRmlGuid AS [Machine.LOADED_RML_GUID], - T.TargetJobTypes AS [Machine.TARGET_JOB_TYPES], - T.TargetColorSpaceCodes AS [Machine.TARGET_COLOR_SPACE_CODES], - T.DefaultColorSpaceGuid AS [Machine.DEFAULT_COLOR_SPACE_GUID], - T.DefaultSegmentLength AS [Machine.DEFAULT_SEGMENT_LENGTH], - T.DefaultSpoolTypeGuid AS [Machine.DEFAULT_SPOOL_TYPE_GUID], - T.OsKey AS [Machine.OS_KEY], - T.AutoLogin AS [Machine.AUTO_LOGIN], - T.AutoCheckForUpdates AS [Machine.AUTO_CHECK_FOR_UPDATES], - T.SetupActivation AS [Machine.SETUP_ACTIVATION], - T.SetupRemoteAssistance AS [Machine.SETUP_REMOTE_ASSISTANCE], - T.SetupUwf AS [Machine.SETUP_UWF], - T.SetupFirmware AS [Machine.SETUP_FIRMWARE], - T.SetupFpga AS [Machine.SETUP_FPGA], - T.IsDemo AS [Machine.IS_DEMO], - T.ID AS Machine_ID, - T.LastUpdated AS [Machine.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Machines AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.SpoolType. - /// - /// The mapping view. - private static DbMappingView GetView34() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing SpoolType - [CodeFirstDatabaseSchema.SpoolType](T1.SpoolType_GUID, T1.SpoolType_CODE, T1.SpoolType_NAME, T1.SpoolType_LENGTH, T1.SpoolType_WEIGHT, T1.SpoolType_DIAMETER, T1.[SpoolType.ROTATIONS_PER_PASSAGE], T1.SpoolType_ID, T1.[SpoolType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS SpoolType_GUID, - T.Code AS SpoolType_CODE, - T.Name AS SpoolType_NAME, - T.Length AS SpoolType_LENGTH, - T.Weight AS SpoolType_WEIGHT, - T.Diameter AS SpoolType_DIAMETER, - T.RotationsPerPassage AS [SpoolType.ROTATIONS_PER_PASSAGE], - T.ID AS SpoolType_ID, - T.LastUpdated AS [SpoolType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.SpoolTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Spool. - /// - /// The mapping view. - private static DbMappingView GetView35() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Spool - [CodeFirstDatabaseSchema.Spool](T1.Spool_GUID, T1.[Spool.SPOOL_TYPE_GUID], T1.[Spool.MACHINE_GUID], T1.[Spool.START_OFFSET_PULSES], T1.[Spool.BACKING_RATE], T1.[Spool.SEGMENT_OFFSET_PULSES], T1.[Spool.BOTTOM_BACKING_RATE], T1.Spool_ID, T1.[Spool.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Spool_GUID, - T.SpoolTypeGuid AS [Spool.SPOOL_TYPE_GUID], - T.MachineGuid AS [Spool.MACHINE_GUID], - T.StartOffsetPulses AS [Spool.START_OFFSET_PULSES], - T.BackingRate AS [Spool.BACKING_RATE], - T.SegmentOffsetPulses AS [Spool.SEGMENT_OFFSET_PULSES], - T.BottomBackingRate AS [Spool.BOTTOM_BACKING_RATE], - T.ID AS Spool_ID, - T.LastUpdated AS [Spool.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Spools AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.MachinesEvent. - /// - /// The mapping view. - private static DbMappingView GetView36() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MachinesEvent - [CodeFirstDatabaseSchema.MachinesEvent](T1.MachinesEvent_GUID, T1.[MachinesEvent.HOST_NAME], T1.[MachinesEvent.MACHINE_GUID], T1.[MachinesEvent.EVENT_TYPE_GUID], T1.[MachinesEvent.USER_GUID], T1.[MachinesEvent.DATE_TIME], T1.MachinesEvent_DESCRIPTION, T1.MachinesEvent_ID, T1.[MachinesEvent.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS MachinesEvent_GUID, - T.HostName AS [MachinesEvent.HOST_NAME], - T.MachineGuid AS [MachinesEvent.MACHINE_GUID], - T.EventTypeGuid AS [MachinesEvent.EVENT_TYPE_GUID], - T.UserGuid AS [MachinesEvent.USER_GUID], - T.DateTime AS [MachinesEvent.DATE_TIME], - T.Description AS MachinesEvent_DESCRIPTION, - T.ID AS MachinesEvent_ID, - T.LastUpdated AS [MachinesEvent.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.MachinesEvents AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.EventType. - /// - /// The mapping view. - private static DbMappingView GetView37() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing EventType - [CodeFirstDatabaseSchema.EventType](T1.EventType_GUID, T1.EventType_CODE, T1.EventType_NAME, T1.EventType_TITLE, T1.EventType_DESCRIPTION, T1.[EventType.TECHNICAL_DESCRIPTION], T1.[EventType.COMPONENT_INDEX], T1.[EventType.EVENT_CATEGORY], T1.[EventType.EVENT_GROUP], T1.[EventType.EVENT_NOTIFICATION_TIME], T1.[EventType.EVENT_ACTIONS], T1.[EventType.REQUIRES_USER_INTERVENTION], T1.EventType_ID, T1.[EventType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS EventType_GUID, - T.Code AS EventType_CODE, - T.Name AS EventType_NAME, - T.Title AS EventType_TITLE, - T.Description AS EventType_DESCRIPTION, - T.TechnicalDescription AS [EventType.TECHNICAL_DESCRIPTION], - T.ComponentIndex AS [EventType.COMPONENT_INDEX], - T.EventCategory AS [EventType.EVENT_CATEGORY], - T.EventGroup AS [EventType.EVENT_GROUP], - T.EventNotificationTime AS [EventType.EVENT_NOTIFICATION_TIME], - T.EventActions AS [EventType.EVENT_ACTIONS], - T.RequiresUserIntervention AS [EventType.REQUIRES_USER_INTERVENTION], - T.ID AS EventType_ID, - T.LastUpdated AS [EventType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.EventTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.MachineVersion. - /// - /// The mapping view. - private static DbMappingView GetView38() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MachineVersion - [CodeFirstDatabaseSchema.MachineVersion](T1.MachineVersion_GUID, T1.MachineVersion_VERSION, T1.MachineVersion_NAME, T1.[MachineVersion.PROTOTYPE_MACHINE_DATA], T1.MachineVersion_ID, T1.[MachineVersion.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS MachineVersion_GUID, - T.Version AS MachineVersion_VERSION, - T.Name AS MachineVersion_NAME, - T.PrototypeMachineData AS [MachineVersion.PROTOTYPE_MACHINE_DATA], - T.ID AS MachineVersion_ID, - T.LastUpdated AS [MachineVersion.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.MachineVersions AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.TangoVersion. - /// - /// The mapping view. - private static DbMappingView GetView39() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TangoVersion - [CodeFirstDatabaseSchema.TangoVersion](T1.TangoVersion_GUID, T1.TangoVersion_VERSION, T1.[TangoVersion.BLOB_NAME], T1.TangoVersion_COMMENTS, T1.[TangoVersion.USER_GUID], T1.[TangoVersion.MACHINE_VERSION_GUID], T1.TangoVersion_ID, T1.[TangoVersion.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS TangoVersion_GUID, - T.Version AS TangoVersion_VERSION, - T.BlobName AS [TangoVersion.BLOB_NAME], - T.Comments AS TangoVersion_COMMENTS, - T.UserGuid AS [TangoVersion.USER_GUID], - T.MachineVersionGuid AS [TangoVersion.MACHINE_VERSION_GUID], - T.ID AS TangoVersion_ID, - T.LastUpdated AS [TangoVersion.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.TangoVersions AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Dispenser. - /// - /// The mapping view. - private static DbMappingView GetView40() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Dispenser - [CodeFirstDatabaseSchema.Dispenser](T1.Dispenser_GUID, T1.[Dispenser.SERIAL_NUMBER], T1.[Dispenser.DISPENSER_TYPE_GUID], T1.[Dispenser.NL_PER_PULSE], T1.[Dispenser.PART_NUMBER], T1.[Dispenser.PCB_SERIAL], T1.[Dispenser.PCB_VERSION], T1.[Dispenser.PRODUCTION_DATE], T1.[Dispenser.CALIBRATION_DATA], T1.Dispenser_ID, T1.[Dispenser.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Dispenser_GUID, - T.SerialNumber AS [Dispenser.SERIAL_NUMBER], - T.DispenserTypeGuid AS [Dispenser.DISPENSER_TYPE_GUID], - T.NlPerPulse AS [Dispenser.NL_PER_PULSE], - T.PartNumber AS [Dispenser.PART_NUMBER], - T.PcbSerial AS [Dispenser.PCB_SERIAL], - T.PcbVersion AS [Dispenser.PCB_VERSION], - T.ProductionDate AS [Dispenser.PRODUCTION_DATE], - T.CalibrationData AS [Dispenser.CALIBRATION_DATA], - T.ID AS Dispenser_ID, - T.LastUpdated AS [Dispenser.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Dispensers AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.DispenserType. - /// - /// The mapping view. - private static DbMappingView GetView41() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing DispenserType - [CodeFirstDatabaseSchema.DispenserType](T1.DispenserType_GUID, T1.DispenserType_CODE, T1.DispenserType_NAME, T1.DispenserType_CAPACITY, T1.DispenserType_ID, T1.[DispenserType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS DispenserType_GUID, - T.Code AS DispenserType_CODE, - T.Name AS DispenserType_NAME, - T.Capacity AS DispenserType_CAPACITY, - T.ID AS DispenserType_ID, - T.LastUpdated AS [DispenserType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.DispenserTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.IdsPackFormula. - /// - /// The mapping view. - private static DbMappingView GetView42() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing IdsPackFormula - [CodeFirstDatabaseSchema.IdsPackFormula](T1.IdsPackFormula_GUID, T1.IdsPackFormula_CODE, T1.IdsPackFormula_NAME, T1.IdsPackFormula_DESCRIPTION, T1.[IdsPackFormula.AUTO_CALCULATED], T1.IdsPackFormula_ID, T1.[IdsPackFormula.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS IdsPackFormula_GUID, - T.Code AS IdsPackFormula_CODE, - T.Name AS IdsPackFormula_NAME, - T.Description AS IdsPackFormula_DESCRIPTION, - T.AutoCalculated AS [IdsPackFormula.AUTO_CALCULATED], - T.ID AS IdsPackFormula_ID, - T.LastUpdated AS [IdsPackFormula.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.IdsPackFormulas AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.MidTankType. - /// - /// The mapping view. - private static DbMappingView GetView43() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MidTankType - [CodeFirstDatabaseSchema.MidTankType](T1.MidTankType_GUID, T1.MidTankType_CODE, T1.MidTankType_NAME, T1.[MidTankType.LITER_CAPACITY], T1.MidTankType_ID, T1.[MidTankType.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS MidTankType_GUID, - T.Code AS MidTankType_CODE, - T.Name AS MidTankType_NAME, - T.LiterCapacity AS [MidTankType.LITER_CAPACITY], - T.ID AS MidTankType_ID, - T.LastUpdated AS [MidTankType.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.MidTankTypes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.LiquidTypesRml. - /// - /// The mapping view. - private static DbMappingView GetView44() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing LiquidTypesRml - [CodeFirstDatabaseSchema.LiquidTypesRml](T1.LiquidTypesRml_GUID, T1.[LiquidTypesRml.LIQUID_TYPE_GUID], T1.[LiquidTypesRml.RML_GUID], T1.[LiquidTypesRml.MAX_NL_PER_CM], T1.[LiquidTypesRml.DEFAULT_CAT_DATA], T1.LiquidTypesRml_ID, T1.[LiquidTypesRml.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS LiquidTypesRml_GUID, - T.LiquidTypeGuid AS [LiquidTypesRml.LIQUID_TYPE_GUID], - T.RmlGuid AS [LiquidTypesRml.RML_GUID], - T.MaxNlPerCm AS [LiquidTypesRml.MAX_NL_PER_CM], - T.DefaultCatData AS [LiquidTypesRml.DEFAULT_CAT_DATA], - T.ID AS LiquidTypesRml_ID, - T.LastUpdated AS [LiquidTypesRml.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.LiquidTypesRmls AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Cct. - /// - /// The mapping view. - private static DbMappingView GetView45() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Cct - [CodeFirstDatabaseSchema.Cct](T1.Cct_GUID, T1.Cct_NAME, T1.Cct_DESCRIPTION, T1.[Cct.FORWARD_FILE_NAME], T1.[Cct.INVERSE_FILE_NAME], T1.[Cct.FORWARD_DATA], T1.[Cct.INVERSE_DATA], T1.Cct_VERSION, T1.[Cct.RML_GUID], T1.Cct_ID, T1.[Cct.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Cct_GUID, - T.Name AS Cct_NAME, - T.Description AS Cct_DESCRIPTION, - T.ForwardFileName AS [Cct.FORWARD_FILE_NAME], - T.InverseFileName AS [Cct.INVERSE_FILE_NAME], - T.ForwardData AS [Cct.FORWARD_DATA], - T.InverseData AS [Cct.INVERSE_DATA], - T.Version AS Cct_VERSION, - T.RmlGuid AS [Cct.RML_GUID], - T.ID AS Cct_ID, - T.LastUpdated AS [Cct.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Ccts AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.FiberShape. - /// - /// The mapping view. - private static DbMappingView GetView46() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing FiberShape - [CodeFirstDatabaseSchema.FiberShape](T1.FiberShape_GUID, T1.FiberShape_NAME, T1.FiberShape_CODE, T1.FiberShape_ID, T1.[FiberShape.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS FiberShape_GUID, - T.Name AS FiberShape_NAME, - T.Code AS FiberShape_CODE, - T.ID AS FiberShape_ID, - T.LastUpdated AS [FiberShape.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.FiberShapes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.FiberSynth. - /// - /// The mapping view. - private static DbMappingView GetView47() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing FiberSynth - [CodeFirstDatabaseSchema.FiberSynth](T1.FiberSynth_GUID, T1.FiberSynth_NAME, T1.FiberSynth_CODE, T1.FiberSynth_ID, T1.[FiberSynth.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS FiberSynth_GUID, - T.Name AS FiberSynth_NAME, - T.Code AS FiberSynth_CODE, - T.ID AS FiberSynth_ID, - T.LastUpdated AS [FiberSynth.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.FiberSynths AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.LinearMassDensityUnit. - /// - /// The mapping view. - private static DbMappingView GetView48() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing LinearMassDensityUnit - [CodeFirstDatabaseSchema.LinearMassDensityUnit](T1.LinearMassDensityUnit_GUID, T1.LinearMassDensityUnit_NAME, T1.LinearMassDensityUnit_CODE, T1.LinearMassDensityUnit_ID, T1.[LinearMassDensityUnit.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS LinearMassDensityUnit_GUID, - T.Name AS LinearMassDensityUnit_NAME, - T.Code AS LinearMassDensityUnit_CODE, - T.ID AS LinearMassDensityUnit_ID, - T.LastUpdated AS [LinearMassDensityUnit.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.LinearMassDensityUnits AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.MediaCondition. - /// - /// The mapping view. - private static DbMappingView GetView49() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MediaCondition - [CodeFirstDatabaseSchema.MediaCondition](T1.MediaCondition_GUID, T1.MediaCondition_NAME, T1.MediaCondition_CODE, T1.MediaCondition_ID, T1.[MediaCondition.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS MediaCondition_GUID, - T.Name AS MediaCondition_NAME, - T.Code AS MediaCondition_CODE, - T.ID AS MediaCondition_ID, - T.LastUpdated AS [MediaCondition.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.MediaConditions AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.MediaMaterial. - /// - /// The mapping view. - private static DbMappingView GetView50() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MediaMaterial - [CodeFirstDatabaseSchema.MediaMaterial](T1.MediaMaterial_GUID, T1.MediaMaterial_NAME, T1.MediaMaterial_CODE, T1.MediaMaterial_ID, T1.[MediaMaterial.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS MediaMaterial_GUID, - T.Name AS MediaMaterial_NAME, - T.Code AS MediaMaterial_CODE, - T.ID AS MediaMaterial_ID, - T.LastUpdated AS [MediaMaterial.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.MediaMaterials AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.MediaPurpos. - /// - /// The mapping view. - private static DbMappingView GetView51() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MediaPurpos - [CodeFirstDatabaseSchema.MediaPurpos](T1.MediaPurpos_GUID, T1.MediaPurpos_NAME, T1.MediaPurpos_CODE, T1.MediaPurpos_ID, T1.[MediaPurpos.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS MediaPurpos_GUID, - T.Name AS MediaPurpos_NAME, - T.Code AS MediaPurpos_CODE, - T.ID AS MediaPurpos_ID, - T.LastUpdated AS [MediaPurpos.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.MediaPurposes AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.ProcessParametersTablesGroup. - /// - /// The mapping view. - private static DbMappingView GetView52() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ProcessParametersTablesGroup - [CodeFirstDatabaseSchema.ProcessParametersTablesGroup](T1.ProcessParametersTablesGroup_GUID, T1.[ProcessParametersTablesGroup.RML_GUID], T1.ProcessParametersTablesGroup_NAME, T1.ProcessParametersTablesGroup_ACTIVE, T1.[ProcessParametersTablesGroup.SAVE_DATE], T1.ProcessParametersTablesGroup_ID, T1.[ProcessParametersTablesGroup.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS ProcessParametersTablesGroup_GUID, - T.RmlGuid AS [ProcessParametersTablesGroup.RML_GUID], - T.Name AS ProcessParametersTablesGroup_NAME, - T.Active AS ProcessParametersTablesGroup_ACTIVE, - T.SaveDate AS [ProcessParametersTablesGroup.SAVE_DATE], - T.ID AS ProcessParametersTablesGroup_ID, - T.LastUpdated AS [ProcessParametersTablesGroup.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.ProcessParametersTablesGroups AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.ProcessParametersTable. - /// - /// The mapping view. - private static DbMappingView GetView53() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ProcessParametersTable - [CodeFirstDatabaseSchema.ProcessParametersTable](T1.ProcessParametersTable_GUID, T1.ProcessParametersTable_NAME, T1.[ProcessParametersTable.DYEING_SPEED], T1.[ProcessParametersTable.MIN_INK_UPTAKE], T1.[ProcessParametersTable.MAX_INK_UPTAKE], T1.[ProcessParametersTable.FEEDER_TENSION], T1.[ProcessParametersTable.PULLER_TENSION], T1.[ProcessParametersTable.WINDER_TENSION], T1.[ProcessParametersTable.MIXER_TEMP], T1.[ProcessParametersTable.HEAD_ZONE1_TEMP], T1.[ProcessParametersTable.HEAD_ZONE2_TEMP], T1.[ProcessParametersTable.HEAD_ZONE3_TEMP], T1.[ProcessParametersTable.HEAD_ZONE4_TEMP], T1.[ProcessParametersTable.HEAD_ZONE5_TEMP], T1.[ProcessParametersTable.HEAD_ZONE6_TEMP], T1.[ProcessParametersTable.DRYER_AIR_FLOW], T1.[ProcessParametersTable.DRYER_ZONE1_TEMP], T1.[ProcessParametersTable.DRYER_ZONE2_TEMP], T1.[ProcessParametersTable.DRYER_ZONE3_TEMP], T1.[ProcessParametersTable.DRYER_BUFFER_LENGTH], T1.[ProcessParametersTable.HEAD_AIR_FLOW], T1.[ProcessParametersTable.PROCESS_PARAMETERS_TABLES_GROUP_GUID], T1.[ProcessParametersTable.TABLE_INDEX], T1.ProcessParametersTable_ID, T1.[ProcessParametersTable.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS ProcessParametersTable_GUID, - T.Name AS ProcessParametersTable_NAME, - T.DyeingSpeed AS [ProcessParametersTable.DYEING_SPEED], - T.MinInkUptake AS [ProcessParametersTable.MIN_INK_UPTAKE], - T.MaxInkUptake AS [ProcessParametersTable.MAX_INK_UPTAKE], - T.FeederTension AS [ProcessParametersTable.FEEDER_TENSION], - T.PullerTension AS [ProcessParametersTable.PULLER_TENSION], - T.WinderTension AS [ProcessParametersTable.WINDER_TENSION], - T.MixerTemp AS [ProcessParametersTable.MIXER_TEMP], - T.HeadZone1Temp AS [ProcessParametersTable.HEAD_ZONE1_TEMP], - T.HeadZone2Temp AS [ProcessParametersTable.HEAD_ZONE2_TEMP], - T.HeadZone3Temp AS [ProcessParametersTable.HEAD_ZONE3_TEMP], - T.HeadZone4Temp AS [ProcessParametersTable.HEAD_ZONE4_TEMP], - T.HeadZone5Temp AS [ProcessParametersTable.HEAD_ZONE5_TEMP], - T.HeadZone6Temp AS [ProcessParametersTable.HEAD_ZONE6_TEMP], - T.DryerAirFlow AS [ProcessParametersTable.DRYER_AIR_FLOW], - T.DryerZone1Temp AS [ProcessParametersTable.DRYER_ZONE1_TEMP], - T.DryerZone2Temp AS [ProcessParametersTable.DRYER_ZONE2_TEMP], - T.DryerZone3Temp AS [ProcessParametersTable.DRYER_ZONE3_TEMP], - T.DryerBufferLength AS [ProcessParametersTable.DRYER_BUFFER_LENGTH], - T.HeadAirFlow AS [ProcessParametersTable.HEAD_AIR_FLOW], - T.ProcessParametersTablesGroupGuid AS [ProcessParametersTable.PROCESS_PARAMETERS_TABLES_GROUP_GUID], - T.TableIndex AS [ProcessParametersTable.TABLE_INDEX], - T.ID AS ProcessParametersTable_ID, - T.LastUpdated AS [ProcessParametersTable.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.ProcessParametersTables AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Segment. - /// - /// The mapping view. - private static DbMappingView GetView54() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Segment - [CodeFirstDatabaseSchema.Segment](T1.Segment_GUID, T1.Segment_NAME, T1.[Segment.JOB_GUID], T1.Segment_LENGTH, T1.[Segment.SEGMENT_INDEX], T1.Segment_ID, T1.[Segment.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Segment_GUID, - T.Name AS Segment_NAME, - T.JobGuid AS [Segment.JOB_GUID], - T.Length AS Segment_LENGTH, - T.SegmentIndex AS [Segment.SEGMENT_INDEX], - T.ID AS Segment_ID, - T.LastUpdated AS [Segment.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Segments AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Customer. - /// - /// The mapping view. - private static DbMappingView GetView55() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Customer - [CodeFirstDatabaseSchema.Customer](T1.Customer_GUID, T1.[Customer.ORGANIZATION_GUID], T1.Customer_NAME, T1.Customer_ID, T1.[Customer.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Customer_GUID, - T.OrganizationGuid AS [Customer.ORGANIZATION_GUID], - T.Name AS Customer_NAME, - T.ID AS Customer_ID, - T.LastUpdated AS [Customer.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Customers AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.JobRun. - /// - /// The mapping view. - private static DbMappingView GetView56() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing JobRun - [CodeFirstDatabaseSchema.JobRun](T1.JobRun_GUID, T1.[JobRun.JOB_GUID], T1.[JobRun.START_DATE], T1.[JobRun.END_DATE], T1.JobRun_STATUS, T1.[JobRun.END_POSITION], T1.[JobRun.FAILED_MESSAGE], T1.JobRun_ID, T1.[JobRun.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS JobRun_GUID, - T.JobGuid AS [JobRun.JOB_GUID], - T.StartDate AS [JobRun.START_DATE], - T.EndDate AS [JobRun.END_DATE], - T.Status AS JobRun_STATUS, - T.EndPosition AS [JobRun.END_POSITION], - T.FailedMessage AS [JobRun.FAILED_MESSAGE], - T.ID AS JobRun_ID, - T.LastUpdated AS [JobRun.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.JobRuns AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.WindingMethod. - /// - /// The mapping view. - private static DbMappingView GetView57() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing WindingMethod - [CodeFirstDatabaseSchema.WindingMethod](T1.WindingMethod_GUID, T1.WindingMethod_CODE, T1.WindingMethod_NAME, T1.WindingMethod_DESCRIPTION, T1.WindingMethod_ID, T1.[WindingMethod.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS WindingMethod_GUID, - T.Code AS WindingMethod_CODE, - T.Name AS WindingMethod_NAME, - T.Description AS WindingMethod_DESCRIPTION, - T.ID AS WindingMethod_ID, - T.LastUpdated AS [WindingMethod.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.WindingMethods AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.MachineStudioVersion. - /// - /// The mapping view. - private static DbMappingView GetView58() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MachineStudioVersion - [CodeFirstDatabaseSchema.MachineStudioVersion](T1.MachineStudioVersion_GUID, T1.MachineStudioVersion_VERSION, T1.[MachineStudioVersion.BLOB_NAME], T1.MachineStudioVersion_COMMENTS, T1.[MachineStudioVersion.USER_GUID], T1.MachineStudioVersion_ID, T1.[MachineStudioVersion.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS MachineStudioVersion_GUID, - T.Version AS MachineStudioVersion_VERSION, - T.BlobName AS [MachineStudioVersion.BLOB_NAME], - T.Comments AS MachineStudioVersion_COMMENTS, - T.UserGuid AS [MachineStudioVersion.USER_GUID], - T.ID AS MachineStudioVersion_ID, - T.LastUpdated AS [MachineStudioVersion.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.MachineStudioVersions AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.UsersRole. - /// - /// The mapping view. - private static DbMappingView GetView59() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing UsersRole - [CodeFirstDatabaseSchema.UsersRole](T1.UsersRole_GUID, T1.[UsersRole.USER_GUID], T1.[UsersRole.ROLE_GUID], T1.UsersRole_ID, T1.[UsersRole.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS UsersRole_GUID, - T.UserGuid AS [UsersRole.USER_GUID], - T.RoleGuid AS [UsersRole.ROLE_GUID], - T.ID AS UsersRole_ID, - T.LastUpdated AS [UsersRole.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.UsersRoles AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Role. - /// - /// The mapping view. - private static DbMappingView GetView60() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Role - [CodeFirstDatabaseSchema.Role](T1.Role_GUID, T1.Role_CODE, T1.Role_NAME, T1.Role_DESCRIPTION, T1.Role_ID, T1.[Role.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Role_GUID, - T.Code AS Role_CODE, - T.Name AS Role_NAME, - T.Description AS Role_DESCRIPTION, - T.ID AS Role_ID, - T.LastUpdated AS [Role.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Roles AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.RolesPermission. - /// - /// The mapping view. - private static DbMappingView GetView61() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing RolesPermission - [CodeFirstDatabaseSchema.RolesPermission](T1.RolesPermission_GUID, T1.[RolesPermission.ROLE_GUID], T1.[RolesPermission.PERMISSION_GUID], T1.RolesPermission_ID, T1.[RolesPermission.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS RolesPermission_GUID, - T.RoleGuid AS [RolesPermission.ROLE_GUID], - T.PermissionGuid AS [RolesPermission.PERMISSION_GUID], - T.ID AS RolesPermission_ID, - T.LastUpdated AS [RolesPermission.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.RolesPermissions AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Permission. - /// - /// The mapping view. - private static DbMappingView GetView62() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Permission - [CodeFirstDatabaseSchema.Permission](T1.Permission_GUID, T1.Permission_CODE, T1.Permission_NAME, T1.Permission_DESCRIPTION, T1.Permission_ID, T1.[Permission.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Permission_GUID, - T.Code AS Permission_CODE, - T.Name AS Permission_NAME, - T.Description AS Permission_DESCRIPTION, - T.ID AS Permission_ID, - T.LastUpdated AS [Permission.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Permissions AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Addresses. - /// - /// The mapping view. - private static DbMappingView GetView63() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Addresses - [Tango.BL.Address](T1.Address_Guid, T1.Address_Deleted, T1.Address_AddressString, T1.Address_Locality, T1.Address_Country, T1.Address_City, T1.Address_State, T1.Address_CountryCode, T1.Address_PostalCode, T1.Address_ID, T1.Address_LastUpdated) - FROM ( - SELECT - T.GUID AS Address_Guid, - T.DELETED AS Address_Deleted, - T.ADDRESS_STRING AS Address_AddressString, - T.LOCALITY AS Address_Locality, - T.COUNTRY AS Address_Country, - T.CITY AS Address_City, - T.STATE AS Address_State, - T.COUNTRY_CODE AS Address_CountryCode, - T.POSTAL_CODE AS Address_PostalCode, - T.ID AS Address_ID, - T.LAST_UPDATED AS Address_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Address AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Organizations. - /// - /// The mapping view. - private static DbMappingView GetView64() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Organizations - [Tango.BL.Organization](T1.Organization_Guid, T1.Organization_Name, T1.Organization_ContactGuid, T1.Organization_AddressGuid, T1.Organization_ID, T1.Organization_LastUpdated) - FROM ( - SELECT - T.GUID AS Organization_Guid, - T.NAME AS Organization_Name, - T.CONTACT_GUID AS Organization_ContactGuid, - T.ADDRESS_GUID AS Organization_AddressGuid, - T.ID AS Organization_ID, - T.LAST_UPDATED AS Organization_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Organization AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Contacts. - /// - /// The mapping view. - private static DbMappingView GetView65() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Contacts - [Tango.BL.Contact](T1.Contact_Guid, T1.Contact_Deleted, T1.Contact_FirstName, T1.Contact_LastName, T1.Contact_FullName, T1.Contact_Email, T1.Contact_PhoneNumber, T1.Contact_Fax, T1.Contact_ID, T1.Contact_LastUpdated) - FROM ( - SELECT - T.GUID AS Contact_Guid, - T.DELETED AS Contact_Deleted, - T.FIRST_NAME AS Contact_FirstName, - T.LAST_NAME AS Contact_LastName, - T.FULL_NAME AS Contact_FullName, - T.EMAIL AS Contact_Email, - T.PHONE_NUMBER AS Contact_PhoneNumber, - T.FAX AS Contact_Fax, - T.ID AS Contact_ID, - T.LAST_UPDATED AS Contact_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Contact AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Users. - /// - /// The mapping view. - private static DbMappingView GetView66() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Users - [Tango.BL.User](T1.User_Guid, T1.User_Deleted, T1.User_Email, T1.User_Password, T1.User_OrganizationGuid, T1.User_ContactGuid, T1.User_AddressGuid, T1.User_LastLogin, T1.User_ID, T1.User_LastUpdated) - FROM ( - SELECT - T.GUID AS User_Guid, - T.DELETED AS User_Deleted, - T.EMAIL AS User_Email, - T.PASSWORD AS User_Password, - T.ORGANIZATION_GUID AS User_OrganizationGuid, - T.CONTACT_GUID AS User_ContactGuid, - T.ADDRESS_GUID AS User_AddressGuid, - T.LAST_LOGIN AS User_LastLogin, - T.ID AS User_ID, - T.LAST_UPDATED AS User_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.User AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Jobs. - /// - /// The mapping view. - private static DbMappingView GetView67() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Jobs - [Tango.BL.Job](T1.Job_Guid, T1.Job_CreationDate, T1.Job_LastRun, T1.Job_MachineGuid, T1.Job_UserGuid, T1.Job_RmlGuid, T1.Job_WindingMethodGuid, T1.Job_SpoolTypeGuid, T1.Job_Name, T1.Job_Description, T1.Job_InterSegmentLength, T1.Job_EnableInterSegment, T1.Job_EnableLubrication, T1.Job_JobIndex, T1.Job_EstimatedDurationMili, T1.Job_HasEmbroideryFile, T1.Job_EmbroideryFileData, T1.Job_EmbroideryFileName, T1.Job_EmbroideryJpeg, T1.Job_Status, T1.Job_ColorSpaceGuid, T1.Job_NumberOfUnits, T1.Job_Type, T1.Job_CustomerGuid, T1.Job_SpoolsDistribution, T1.Job_NumberOfHeads, T1.Job_SampleUnitsOrMeters, T1.Job_FineTuningStatus, T1.Job_FineTuningApproveDate, T1.Job_SampleDyeStatus, T1.Job_SampleDyeApproveDate, T1.Job_EditingState, T1.Job_LengthPercentageFactor, T1.Job_ID, T1.Job_LastUpdated) - FROM ( - SELECT - T.GUID AS Job_Guid, - T.CREATION_DATE AS Job_CreationDate, - T.LAST_RUN AS Job_LastRun, - T.MACHINE_GUID AS Job_MachineGuid, - T.USER_GUID AS Job_UserGuid, - T.RML_GUID AS Job_RmlGuid, - T.WINDING_METHOD_GUID AS Job_WindingMethodGuid, - T.SPOOL_TYPE_GUID AS Job_SpoolTypeGuid, - T.NAME AS Job_Name, - T.DESCRIPTION AS Job_Description, - T.INTER_SEGMENT_LENGTH AS Job_InterSegmentLength, - T.ENABLE_INTER_SEGMENT AS Job_EnableInterSegment, - T.ENABLE_LUBRICATION AS Job_EnableLubrication, - T.JOB_INDEX AS Job_JobIndex, - T.ESTIMATED_DURATION_MILI AS Job_EstimatedDurationMili, - T.HAS_EMBROIDERY_FILE AS Job_HasEmbroideryFile, - T.EMBROIDERY_FILE_DATA AS Job_EmbroideryFileData, - T.EMBROIDERY_FILE_NAME AS Job_EmbroideryFileName, - T.EMBROIDERY_JPEG AS Job_EmbroideryJpeg, - T.STATUS AS Job_Status, - T.COLOR_SPACE_GUID AS Job_ColorSpaceGuid, - T.NUMBER_OF_UNITS AS Job_NumberOfUnits, - T.TYPE AS Job_Type, - T.CUSTOMER_GUID AS Job_CustomerGuid, - T.SPOOLS_DISTRIBUTION AS Job_SpoolsDistribution, - T.NUMBER_OF_HEADS AS Job_NumberOfHeads, - T.SAMPLE_UNITS_OR_METERS AS Job_SampleUnitsOrMeters, - T.FINE_TUNING_STATUS AS Job_FineTuningStatus, - T.FINE_TUNING_APPROVE_DATE AS Job_FineTuningApproveDate, - T.SAMPLE_DYE_STATUS AS Job_SampleDyeStatus, - T.SAMPLE_DYE_APPROVE_DATE AS Job_SampleDyeApproveDate, - T.EDITING_STATE AS Job_EditingState, - T.LENGTH_PERCENTAGE_FACTOR AS Job_LengthPercentageFactor, - T.ID AS Job_ID, - T.LAST_UPDATED AS Job_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Job AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.ColorSpaces. - /// - /// The mapping view. - private static DbMappingView GetView68() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ColorSpaces - [Tango.BL.ColorSpace](T1.ColorSpace_Guid, T1.ColorSpace_Code, T1.ColorSpace_Name, T1.ColorSpace_Description, T1.ColorSpace_IsCatalog, T1.ColorSpace_Thumbnail, T1.ColorSpace_ID, T1.ColorSpace_LastUpdated) - FROM ( - SELECT - T.GUID AS ColorSpace_Guid, - T.CODE AS ColorSpace_Code, - T.NAME AS ColorSpace_Name, - T.DESCRIPTION AS ColorSpace_Description, - T.IS_CATALOG AS ColorSpace_IsCatalog, - T.THUMBNAIL AS ColorSpace_Thumbnail, - T.ID AS ColorSpace_ID, - T.LAST_UPDATED AS ColorSpace_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.ColorSpace AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.BrushStops. - /// - /// The mapping view. - private static DbMappingView GetView69() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing BrushStops - [Tango.BL.BrushStop](T1.BrushStop_Guid, T1.BrushStop_SegmentGuid, T1.BrushStop_ColorSpaceGuid, T1.BrushStop_OffsetPercent, T1.BrushStop_StopIndex, T1.BrushStop_Cyan, T1.BrushStop_Magenta, T1.BrushStop_Yellow, T1.BrushStop_Black, T1.BrushStop_Red, T1.BrushStop_Green, T1.BrushStop_Blue, T1.BrushStop_L, T1.BrushStop_A, T1.BrushStop_B, T1.BrushStop_V0, T1.BrushStop_V0Div, T1.BrushStop_V1, T1.BrushStop_V1Div, T1.BrushStop_V2, T1.BrushStop_V2Div, T1.BrushStop_V3, T1.BrushStop_V3Div, T1.BrushStop_V4, T1.BrushStop_V4Div, T1.BrushStop_V5, T1.BrushStop_V5Div, T1.BrushStop_V6, T1.BrushStop_V6Div, T1.BrushStop_V7, T1.BrushStop_V7Div, T1.BrushStop_Corrected, T1.BrushStop_ColorCatalogGuid, T1.BrushStop_ID, T1.BrushStop_LastUpdated) - FROM ( - SELECT - T.GUID AS BrushStop_Guid, - T.SEGMENT_GUID AS BrushStop_SegmentGuid, - T.COLOR_SPACE_GUID AS BrushStop_ColorSpaceGuid, - T.OFFSET_PERCENT AS BrushStop_OffsetPercent, - T.STOP_INDEX AS BrushStop_StopIndex, - T.CYAN AS BrushStop_Cyan, - T.MAGENTA AS BrushStop_Magenta, - T.YELLOW AS BrushStop_Yellow, - T.BLACK AS BrushStop_Black, - T.RED AS BrushStop_Red, - T.GREEN AS BrushStop_Green, - T.BLUE AS BrushStop_Blue, - T.L AS BrushStop_L, - T.A AS BrushStop_A, - T.B AS BrushStop_B, - T.V0 AS BrushStop_V0, - T.V0_DIV AS BrushStop_V0Div, - T.V1 AS BrushStop_V1, - T.V1_DIV AS BrushStop_V1Div, - T.V2 AS BrushStop_V2, - T.V2_DIV AS BrushStop_V2Div, - T.V3 AS BrushStop_V3, - T.V3_DIV AS BrushStop_V3Div, - T.V4 AS BrushStop_V4, - T.V4_DIV AS BrushStop_V4Div, - T.V5 AS BrushStop_V5, - T.V5_DIV AS BrushStop_V5Div, - T.V6 AS BrushStop_V6, - T.V6_DIV AS BrushStop_V6Div, - T.V7 AS BrushStop_V7, - T.V7_DIV AS BrushStop_V7Div, - T.CORRECTED AS BrushStop_Corrected, - T.COLOR_CATALOG_GUID AS BrushStop_ColorCatalogGuid, - T.ID AS BrushStop_ID, - T.LAST_UPDATED AS BrushStop_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.BrushStop AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.ColorCatalogs. - /// - /// The mapping view. - private static DbMappingView GetView70() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ColorCatalogs - [Tango.BL.ColorCatalog](T1.ColorCatalog_Guid, T1.ColorCatalog_RmlGuid, T1.ColorCatalog_ColorSpaceGuid, T1.ColorCatalog_ColorCode, T1.ColorCatalog_Name, T1.ColorCatalog_ColorGroup, T1.ColorCatalog_Cyan, T1.ColorCatalog_Magenta, T1.ColorCatalog_Yellow, T1.ColorCatalog_Black, T1.ColorCatalog_Red, T1.ColorCatalog_Green, T1.ColorCatalog_Blue, T1.ColorCatalog_L, T1.ColorCatalog_A, T1.ColorCatalog_B, T1.ColorCatalog_ProcessParametersTableIndex, T1.ColorCatalog_ID, T1.ColorCatalog_LastUpdated) - FROM ( - SELECT - T.GUID AS ColorCatalog_Guid, - T.RML_GUID AS ColorCatalog_RmlGuid, - T.COLOR_SPACE_GUID AS ColorCatalog_ColorSpaceGuid, - T.COLOR_CODE AS ColorCatalog_ColorCode, - T.NAME AS ColorCatalog_Name, - T.COLOR_GROUP AS ColorCatalog_ColorGroup, - T.CYAN AS ColorCatalog_Cyan, - T.MAGENTA AS ColorCatalog_Magenta, - T.YELLOW AS ColorCatalog_Yellow, - T.BLACK AS ColorCatalog_Black, - T.RED AS ColorCatalog_Red, - T.GREEN AS ColorCatalog_Green, - T.BLUE AS ColorCatalog_Blue, - T.L AS ColorCatalog_L, - T.A AS ColorCatalog_A, - T.B AS ColorCatalog_B, - T.PROCESS_PARAMETERS_TABLE_INDEX AS ColorCatalog_ProcessParametersTableIndex, - T.ID AS ColorCatalog_ID, - T.LAST_UPDATED AS ColorCatalog_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.ColorCatalog AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Rmls. - /// - /// The mapping view. - private static DbMappingView GetView71() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Rmls - [Tango.BL.Rml](T1.Rml_Guid, T1.Rml_Name, T1.Rml_Manufacturer, T1.Rml_Code, T1.Rml_WhitePointL, T1.Rml_WhitePointA, T1.Rml_WhitePointB, T1.Rml_MediaMaterialGuid, T1.Rml_MediaPurposeGuid, T1.Rml_MediaConditionGuid, T1.Rml_LinearMassDensityUnitGuid, T1.Rml_FiberShapeGuid, T1.Rml_FiberSynthGuid, T1.Rml_FiberSize, T1.Rml_NumberOfFibers, T1.Rml_PliesPerFiber, T1.Rml_PliesPerThread, T1.Rml_Twisted, T1.Rml_AirEntanglement, T1.Rml_Lubricant, T1.Rml_TensileStrength, T1.Rml_ElongationAtBreakPercentage, T1.Rml_EstimatedThreadDiameter, T1.Rml_Rank, T1.Rml_Thumbnail, T1.Rml_ID, T1.Rml_LastUpdated) - FROM ( - SELECT - T.GUID AS Rml_Guid, - T.NAME AS Rml_Name, - T.MANUFACTURER AS Rml_Manufacturer, - T.CODE AS Rml_Code, - T.WHITE_POINT_L AS Rml_WhitePointL, - T.WHITE_POINT_A AS Rml_WhitePointA, - T.WHITE_POINT_B AS Rml_WhitePointB, - T.MEDIA_MATERIAL_GUID AS Rml_MediaMaterialGuid, - T.MEDIA_PURPOSE_GUID AS Rml_MediaPurposeGuid, - T.MEDIA_CONDITION_GUID AS Rml_MediaConditionGuid, - T.LINEAR_MASS_DENSITY_UNIT_GUID AS Rml_LinearMassDensityUnitGuid, - T.FIBER_SHAPE_GUID AS Rml_FiberShapeGuid, - T.FIBER_SYNTH_GUID AS Rml_FiberSynthGuid, - T.FIBER_SIZE AS Rml_FiberSize, - T.NUMBER_OF_FIBERS AS Rml_NumberOfFibers, - T.PLIES_PER_FIBER AS Rml_PliesPerFiber, - T.PLIES_PER_THREAD AS Rml_PliesPerThread, - T.TWISTED AS Rml_Twisted, - T.AIR_ENTANGLEMENT AS Rml_AirEntanglement, - T.LUBRICANT AS Rml_Lubricant, - T.TENSILE_STRENGTH AS Rml_TensileStrength, - T.ELONGATION_AT_BREAK_PERCENTAGE AS Rml_ElongationAtBreakPercentage, - T.ESTIMATED_THREAD_DIAMETER AS Rml_EstimatedThreadDiameter, - T.RANK AS Rml_Rank, - T.THUMBNAIL AS Rml_Thumbnail, - T.ID AS Rml_ID, - T.LAST_UPDATED AS Rml_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Rml AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Cats. - /// - /// The mapping view. - private static DbMappingView GetView72() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Cats - [Tango.BL.Cat](T1.Cat_Guid, T1.Cat_Name, T1.Cat_MachineGuid, T1.Cat_RmlGuid, T1.Cat_LiquidTypeGuid, T1.Cat_Data, T1.Cat_ID, T1.Cat_LastUpdated) - FROM ( - SELECT - T.GUID AS Cat_Guid, - T.NAME AS Cat_Name, - T.MACHINE_GUID AS Cat_MachineGuid, - T.RML_GUID AS Cat_RmlGuid, - T.LIQUID_TYPE_GUID AS Cat_LiquidTypeGuid, - T.DATA AS Cat_Data, - T.ID AS Cat_ID, - T.LAST_UPDATED AS Cat_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Cat AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.LiquidTypes. - /// - /// The mapping view. - private static DbMappingView GetView73() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing LiquidTypes - [Tango.BL.LiquidType](T1.LiquidType_Guid, T1.LiquidType_Code, T1.LiquidType_Name, T1.LiquidType_Version, T1.LiquidType_Color, T1.LiquidType_ID, T1.LiquidType_LastUpdated) - FROM ( - SELECT - T.GUID AS LiquidType_Guid, - T.CODE AS LiquidType_Code, - T.NAME AS LiquidType_Name, - T.VERSION AS LiquidType_Version, - T.COLOR AS LiquidType_Color, - T.ID AS LiquidType_ID, - T.LAST_UPDATED AS LiquidType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.LiquidType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.IdsPacks. - /// - /// The mapping view. - private static DbMappingView GetView74() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing IdsPacks - [Tango.BL.IdsPack](T1.IdsPack_Guid, T1.IdsPack_ConfigurationGuid, T1.IdsPack_DispenserGuid, T1.IdsPack_LiquidTypeGuid, T1.IdsPack_CartridgeTypeGuid, T1.IdsPack_MidTankTypeGuid, T1.IdsPack_IdsPackFormulaGuid, T1.IdsPack_PackIndex, T1.IdsPack_IsEmpty, T1.IdsPack_ID, T1.IdsPack_LastUpdated) - FROM ( - SELECT - T.GUID AS IdsPack_Guid, - T.CONFIGURATION_GUID AS IdsPack_ConfigurationGuid, - T.DISPENSER_GUID AS IdsPack_DispenserGuid, - T.LIQUID_TYPE_GUID AS IdsPack_LiquidTypeGuid, - T.CARTRIDGE_TYPE_GUID AS IdsPack_CartridgeTypeGuid, - T.MID_TANK_TYPE_GUID AS IdsPack_MidTankTypeGuid, - T.IDS_PACK_FORMULA_GUID AS IdsPack_IdsPackFormulaGuid, - T.PACK_INDEX AS IdsPack_PackIndex, - T.IS_EMPTY AS IdsPack_IsEmpty, - T.ID AS IdsPack_ID, - T.LAST_UPDATED AS IdsPack_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.IdsPack AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.CartridgeTypes. - /// - /// The mapping view. - private static DbMappingView GetView75() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing CartridgeTypes - [Tango.BL.CartridgeType](T1.CartridgeType_Guid, T1.CartridgeType_Code, T1.CartridgeType_Name, T1.CartridgeType_ID, T1.CartridgeType_LastUpdated) - FROM ( - SELECT - T.GUID AS CartridgeType_Guid, - T.CODE AS CartridgeType_Code, - T.NAME AS CartridgeType_Name, - T.ID AS CartridgeType_ID, - T.LAST_UPDATED AS CartridgeType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.CartridgeType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Configurations. - /// - /// The mapping view. - private static DbMappingView GetView76() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Configurations - [Tango.BL.Configuration](T1.Configuration_Guid, T1.Configuration_ApplicationOsVersionGuid, T1.Configuration_ApplicationFirmwareVersionGuid, T1.Configuration_ApplicationDisplayPanelVersionGuid, T1.Configuration_EmbeddedFirmwareVersionGuid, T1.Configuration_HardwareVersionGuid, T1.Configuration_ID, T1.Configuration_LastUpdated) - FROM ( - SELECT - T.GUID AS Configuration_Guid, - T.APPLICATION_OS_VERSION_GUID AS Configuration_ApplicationOsVersionGuid, - T.APPLICATION_FIRMWARE_VERSION_GUID AS Configuration_ApplicationFirmwareVersionGuid, - T.APPLICATION_DISPLAY_PANEL_VERSION_GUID AS Configuration_ApplicationDisplayPanelVersionGuid, - T.EMBEDDED_FIRMWARE_VERSION_GUID AS Configuration_EmbeddedFirmwareVersionGuid, - T.HARDWARE_VERSION_GUID AS Configuration_HardwareVersionGuid, - T.ID AS Configuration_ID, - T.LAST_UPDATED AS Configuration_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Configuration AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.ApplicationDisplayPanelVersions. - /// - /// The mapping view. - private static DbMappingView GetView77() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ApplicationDisplayPanelVersions - [Tango.BL.ApplicationDisplayPanelVersion](T1.ApplicationDisplayPanelVersion_Guid, T1.ApplicationDisplayPanelVersion_Version, T1.ApplicationDisplayPanelVersion_Name, T1.ApplicationDisplayPanelVersion_ID, T1.ApplicationDisplayPanelVersion_LastUpdated) - FROM ( - SELECT - T.GUID AS ApplicationDisplayPanelVersion_Guid, - T.VERSION AS ApplicationDisplayPanelVersion_Version, - T.NAME AS ApplicationDisplayPanelVersion_Name, - T.ID AS ApplicationDisplayPanelVersion_ID, - T.LAST_UPDATED AS ApplicationDisplayPanelVersion_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.ApplicationDisplayPanelVersion AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.ApplicationFirmwareVersions. - /// - /// The mapping view. - private static DbMappingView GetView78() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ApplicationFirmwareVersions - [Tango.BL.ApplicationFirmwareVersion](T1.ApplicationFirmwareVersion_Guid, T1.ApplicationFirmwareVersion_Version, T1.ApplicationFirmwareVersion_Name, T1.ApplicationFirmwareVersion_ID, T1.ApplicationFirmwareVersion_LastUpdated) - FROM ( - SELECT - T.GUID AS ApplicationFirmwareVersion_Guid, - T.VERSION AS ApplicationFirmwareVersion_Version, - T.NAME AS ApplicationFirmwareVersion_Name, - T.ID AS ApplicationFirmwareVersion_ID, - T.LAST_UPDATED AS ApplicationFirmwareVersion_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.ApplicationFirmwareVersion AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.ApplicationOsVersions. - /// - /// The mapping view. - private static DbMappingView GetView79() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ApplicationOsVersions - [Tango.BL.ApplicationOsVersion](T1.ApplicationOsVersion_Guid, T1.ApplicationOsVersion_Version, T1.ApplicationOsVersion_Name, T1.ApplicationOsVersion_ID, T1.ApplicationOsVersion_LastUpdated) - FROM ( - SELECT - T.GUID AS ApplicationOsVersion_Guid, - T.VERSION AS ApplicationOsVersion_Version, - T.NAME AS ApplicationOsVersion_Name, - T.ID AS ApplicationOsVersion_ID, - T.LAST_UPDATED AS ApplicationOsVersion_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.ApplicationOsVersion AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.EmbeddedFirmwareVersions. - /// - /// The mapping view. - private static DbMappingView GetView80() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing EmbeddedFirmwareVersions - [Tango.BL.EmbeddedFirmwareVersion](T1.EmbeddedFirmwareVersion_Guid, T1.EmbeddedFirmwareVersion_Version, T1.EmbeddedFirmwareVersion_Name, T1.EmbeddedFirmwareVersion_ID, T1.EmbeddedFirmwareVersion_LastUpdated) - FROM ( - SELECT - T.GUID AS EmbeddedFirmwareVersion_Guid, - T.VERSION AS EmbeddedFirmwareVersion_Version, - T.NAME AS EmbeddedFirmwareVersion_Name, - T.ID AS EmbeddedFirmwareVersion_ID, - T.LAST_UPDATED AS EmbeddedFirmwareVersion_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.EmbeddedFirmwareVersion AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareVersions. - /// - /// The mapping view. - private static DbMappingView GetView81() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareVersions - [Tango.BL.HardwareVersion](T1.HardwareVersion_Guid, T1.HardwareVersion_Version, T1.HardwareVersion_Name, T1.HardwareVersion_ID, T1.HardwareVersion_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareVersion_Guid, - T.VERSION AS HardwareVersion_Version, - T.NAME AS HardwareVersion_Name, - T.ID AS HardwareVersion_ID, - T.LAST_UPDATED AS HardwareVersion_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareVersion AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareBlowers. - /// - /// The mapping view. - private static DbMappingView GetView82() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareBlowers - [Tango.BL.HardwareBlower](T1.HardwareBlower_Guid, T1.HardwareBlower_HardwareBlowerTypeGuid, T1.HardwareBlower_HardwareVersionGuid, T1.HardwareBlower_Enabled, T1.HardwareBlower_Voltage, T1.HardwareBlower_HeatingVoltage, T1.HardwareBlower_Active, T1.HardwareBlower_ID, T1.HardwareBlower_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareBlower_Guid, - T.HARDWARE_BLOWER_TYPE_GUID AS HardwareBlower_HardwareBlowerTypeGuid, - T.HARDWARE_VERSION_GUID AS HardwareBlower_HardwareVersionGuid, - T.ENABLED AS HardwareBlower_Enabled, - T.VOLTAGE AS HardwareBlower_Voltage, - T.HEATING_VOLTAGE AS HardwareBlower_HeatingVoltage, - T.ACTIVE AS HardwareBlower_Active, - T.ID AS HardwareBlower_ID, - T.LAST_UPDATED AS HardwareBlower_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareBlower AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareBlowerTypes. - /// - /// The mapping view. - private static DbMappingView GetView83() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareBlowerTypes - [Tango.BL.HardwareBlowerType](T1.HardwareBlowerType_Guid, T1.HardwareBlowerType_Code, T1.HardwareBlowerType_Name, T1.HardwareBlowerType_Description, T1.HardwareBlowerType_ID, T1.HardwareBlowerType_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareBlowerType_Guid, - T.CODE AS HardwareBlowerType_Code, - T.NAME AS HardwareBlowerType_Name, - T.DESCRIPTION AS HardwareBlowerType_Description, - T.ID AS HardwareBlowerType_ID, - T.LAST_UPDATED AS HardwareBlowerType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareBlowerType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareBreakSensors. - /// - /// The mapping view. - private static DbMappingView GetView84() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareBreakSensors - [Tango.BL.HardwareBreakSensor](T1.HardwareBreakSensor_Guid, T1.HardwareBreakSensor_HardwareBreakSensorTypeGuid, T1.HardwareBreakSensor_HardwareVersionGuid, T1.HardwareBreakSensor_Enabled, T1.HardwareBreakSensor_DeBounceTimeMilli, T1.HardwareBreakSensor_Active, T1.HardwareBreakSensor_ID, T1.HardwareBreakSensor_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareBreakSensor_Guid, - T.HARDWARE_BREAK_SENSOR_TYPE_GUID AS HardwareBreakSensor_HardwareBreakSensorTypeGuid, - T.HARDWARE_VERSION_GUID AS HardwareBreakSensor_HardwareVersionGuid, - T.ENABLED AS HardwareBreakSensor_Enabled, - T.DE_BOUNCE_TIME_MILLI AS HardwareBreakSensor_DeBounceTimeMilli, - T.ACTIVE AS HardwareBreakSensor_Active, - T.ID AS HardwareBreakSensor_ID, - T.LAST_UPDATED AS HardwareBreakSensor_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareBreakSensor AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareBreakSensorTypes. - /// - /// The mapping view. - private static DbMappingView GetView85() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareBreakSensorTypes - [Tango.BL.HardwareBreakSensorType](T1.HardwareBreakSensorType_Guid, T1.HardwareBreakSensorType_Code, T1.HardwareBreakSensorType_Name, T1.HardwareBreakSensorType_Description, T1.HardwareBreakSensorType_ID, T1.HardwareBreakSensorType_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareBreakSensorType_Guid, - T.CODE AS HardwareBreakSensorType_Code, - T.NAME AS HardwareBreakSensorType_Name, - T.DESCRIPTION AS HardwareBreakSensorType_Description, - T.ID AS HardwareBreakSensorType_ID, - T.LAST_UPDATED AS HardwareBreakSensorType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareBreakSensorType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareDancers. - /// - /// The mapping view. - private static DbMappingView GetView86() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareDancers - [Tango.BL.HardwareDancer](T1.HardwareDancer_Guid, T1.HardwareDancer_HardwareDancerTypeGuid, T1.HardwareDancer_HardwareVersionGuid, T1.HardwareDancer_Gradual, T1.HardwareDancer_K, T1.HardwareDancer_X, T1.HardwareDancer_PulsePerMmSpring, T1.HardwareDancer_MaximalMovementMm, T1.HardwareDancer_ZeroPoint, T1.HardwareDancer_ResolutionBits, T1.HardwareDancer_ArmLength, T1.HardwareDancer_AssemblyDirectionRight, T1.HardwareDancer_AccelerateOnTensionRaise, T1.HardwareDancer_Active, T1.HardwareDancer_ID, T1.HardwareDancer_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareDancer_Guid, - T.HARDWARE_DANCER_TYPE_GUID AS HardwareDancer_HardwareDancerTypeGuid, - T.HARDWARE_VERSION_GUID AS HardwareDancer_HardwareVersionGuid, - T.GRADUAL AS HardwareDancer_Gradual, - T.K AS HardwareDancer_K, - T.X AS HardwareDancer_X, - T.PULSE_PER_MM_SPRING AS HardwareDancer_PulsePerMmSpring, - T.MAXIMAL_MOVEMENT_MM AS HardwareDancer_MaximalMovementMm, - T.ZERO_POINT AS HardwareDancer_ZeroPoint, - T.RESOLUTION_BITS AS HardwareDancer_ResolutionBits, - T.ARM_LENGTH AS HardwareDancer_ArmLength, - T.ASSEMBLY_DIRECTION_RIGHT AS HardwareDancer_AssemblyDirectionRight, - T.ACCELERATE_ON_TENSION_RAISE AS HardwareDancer_AccelerateOnTensionRaise, - T.ACTIVE AS HardwareDancer_Active, - T.ID AS HardwareDancer_ID, - T.LAST_UPDATED AS HardwareDancer_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareDancer AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareDancerTypes. - /// - /// The mapping view. - private static DbMappingView GetView87() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareDancerTypes - [Tango.BL.HardwareDancerType](T1.HardwareDancerType_Guid, T1.HardwareDancerType_Code, T1.HardwareDancerType_Name, T1.HardwareDancerType_Description, T1.HardwareDancerType_ID, T1.HardwareDancerType_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareDancerType_Guid, - T.CODE AS HardwareDancerType_Code, - T.NAME AS HardwareDancerType_Name, - T.DESCRIPTION AS HardwareDancerType_Description, - T.ID AS HardwareDancerType_ID, - T.LAST_UPDATED AS HardwareDancerType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareDancerType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareMotors. - /// - /// The mapping view. - private static DbMappingView GetView88() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareMotors - [Tango.BL.HardwareMotor](T1.HardwareMotor_Guid, T1.HardwareMotor_HardwareMotorTypeGuid, T1.HardwareMotor_HardwareVersionGuid, T1.HardwareMotor_MinFrequency, T1.HardwareMotor_MaxFrequency, T1.HardwareMotor_SetMicroStep, T1.HardwareMotor_MicroStep, T1.HardwareMotor_MaxChangeSlope, T1.HardwareMotor_HighLengthMicroSecond, T1.HardwareMotor_SpeedMaster, T1.HardwareMotor_PulsePerRound, T1.HardwareMotor_PulleyRadius, T1.HardwareMotor_ConfigWord, T1.HardwareMotor_DirectionThreadWize, T1.HardwareMotor_KvalHold, T1.HardwareMotor_KvalRun, T1.HardwareMotor_KvalAcc, T1.HardwareMotor_KvalDec, T1.HardwareMotor_OverCurrentThreshold, T1.HardwareMotor_StallThreshold, T1.HardwareMotor_ThermalCompensationFactor, T1.HardwareMotor_LowSpeedOptimization, T1.HardwareMotor_StSlp, T1.HardwareMotor_IntSpd, T1.HardwareMotor_FnSlpAcc, T1.HardwareMotor_FnSlpDec, T1.HardwareMotor_FsSpd, T1.HardwareMotor_Active, T1.HardwareMotor_ID, T1.HardwareMotor_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareMotor_Guid, - T.HARDWARE_MOTOR_TYPE_GUID AS HardwareMotor_HardwareMotorTypeGuid, - T.HARDWARE_VERSION_GUID AS HardwareMotor_HardwareVersionGuid, - T.MIN_FREQUENCY AS HardwareMotor_MinFrequency, - T.MAX_FREQUENCY AS HardwareMotor_MaxFrequency, - T.SET_MICRO_STEP AS HardwareMotor_SetMicroStep, - T.MICRO_STEP AS HardwareMotor_MicroStep, - T.MAX_CHANGE_SLOPE AS HardwareMotor_MaxChangeSlope, - T.HIGH_LENGTH_MICRO_SECOND AS HardwareMotor_HighLengthMicroSecond, - T.SPEED_MASTER AS HardwareMotor_SpeedMaster, - T.PULSE_PER_ROUND AS HardwareMotor_PulsePerRound, - T.PULLEY_RADIUS AS HardwareMotor_PulleyRadius, - T.CONFIG_WORD AS HardwareMotor_ConfigWord, - T.DIRECTION_THREAD_WIZE AS HardwareMotor_DirectionThreadWize, - T.KVAL_HOLD AS HardwareMotor_KvalHold, - T.KVAL_RUN AS HardwareMotor_KvalRun, - T.KVAL_ACC AS HardwareMotor_KvalAcc, - T.KVAL_DEC AS HardwareMotor_KvalDec, - T.OVER_CURRENT_THRESHOLD AS HardwareMotor_OverCurrentThreshold, - T.STALL_THRESHOLD AS HardwareMotor_StallThreshold, - T.THERMAL_COMPENSATION_FACTOR AS HardwareMotor_ThermalCompensationFactor, - T.LOW_SPEED_OPTIMIZATION AS HardwareMotor_LowSpeedOptimization, - T.ST_SLP AS HardwareMotor_StSlp, - T.INT_SPD AS HardwareMotor_IntSpd, - T.FN_SLP_ACC AS HardwareMotor_FnSlpAcc, - T.FN_SLP_DEC AS HardwareMotor_FnSlpDec, - T.FS_SPD AS HardwareMotor_FsSpd, - T.ACTIVE AS HardwareMotor_Active, - T.ID AS HardwareMotor_ID, - T.LAST_UPDATED AS HardwareMotor_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareMotor AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareMotorTypes. - /// - /// The mapping view. - private static DbMappingView GetView89() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareMotorTypes - [Tango.BL.HardwareMotorType](T1.HardwareMotorType_Guid, T1.HardwareMotorType_Code, T1.HardwareMotorType_Name, T1.HardwareMotorType_Description, T1.HardwareMotorType_SupportsHoming, T1.HardwareMotorType_ID, T1.HardwareMotorType_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareMotorType_Guid, - T.CODE AS HardwareMotorType_Code, - T.NAME AS HardwareMotorType_Name, - T.DESCRIPTION AS HardwareMotorType_Description, - T.SUPPORTS_HOMING AS HardwareMotorType_SupportsHoming, - T.ID AS HardwareMotorType_ID, - T.LAST_UPDATED AS HardwareMotorType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareMotorType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwarePidControls. - /// - /// The mapping view. - private static DbMappingView GetView90() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwarePidControls - [Tango.BL.HardwarePidControl](T1.HardwarePidControl_Guid, T1.HardwarePidControl_HardwarePidControlTypeGuid, T1.HardwarePidControl_HardwareVersionGuid, T1.HardwarePidControl_OutputProportionalPowerLimit, T1.HardwarePidControl_OutputProportionalBand, T1.HardwarePidControl_IntegralTime, T1.HardwarePidControl_DerivativeTime, T1.HardwarePidControl_SensorCorrectionAdjustment, T1.HardwarePidControl_SensorMinValue, T1.HardwarePidControl_SensorMaxValue, T1.HardwarePidControl_SetPointRampRateorSoftStartRamp, T1.HardwarePidControl_SetPointControlOutputRate, T1.HardwarePidControl_ControlOutputType, T1.HardwarePidControl_SsrControlOutputType, T1.HardwarePidControl_OutputOnOffHysteresisValue, T1.HardwarePidControl_ProcessVariableSamplingRate, T1.HardwarePidControl_PvInputFilterFactorMode, T1.HardwarePidControl_OutputProportionalCycleTime, T1.HardwarePidControl_AcHeatersHalfCycleTime, T1.HardwarePidControl_ProportionalGain, T1.HardwarePidControl_PidActive, T1.HardwarePidControl_Epsilon, T1.HardwarePidControl_Active, T1.HardwarePidControl_ID, T1.HardwarePidControl_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwarePidControl_Guid, - T.HARDWARE_PID_CONTROL_TYPE_GUID AS HardwarePidControl_HardwarePidControlTypeGuid, - T.HARDWARE_VERSION_GUID AS HardwarePidControl_HardwareVersionGuid, - T.OUTPUT_PROPORTIONAL_POWER_LIMIT AS HardwarePidControl_OutputProportionalPowerLimit, - T.OUTPUT_PROPORTIONAL_BAND AS HardwarePidControl_OutputProportionalBand, - T.INTEGRAL_TIME AS HardwarePidControl_IntegralTime, - T.DERIVATIVE_TIME AS HardwarePidControl_DerivativeTime, - T.SENSOR_CORRECTION_ADJUSTMENT AS HardwarePidControl_SensorCorrectionAdjustment, - T.SENSOR_MIN_VALUE AS HardwarePidControl_SensorMinValue, - T.SENSOR_MAX_VALUE AS HardwarePidControl_SensorMaxValue, - T.SET_POINT_RAMP_RATEOR_SOFT_START_RAMP AS HardwarePidControl_SetPointRampRateorSoftStartRamp, - T.SET_POINT_CONTROL_OUTPUT_RATE AS HardwarePidControl_SetPointControlOutputRate, - T.CONTROL_OUTPUT_TYPE AS HardwarePidControl_ControlOutputType, - T.SSR_CONTROL_OUTPUT_TYPE AS HardwarePidControl_SsrControlOutputType, - T.OUTPUT_ON_OFF_HYSTERESIS_VALUE AS HardwarePidControl_OutputOnOffHysteresisValue, - T.PROCESS_VARIABLE_SAMPLING_RATE AS HardwarePidControl_ProcessVariableSamplingRate, - T.PV_INPUT_FILTER_FACTOR_MODE AS HardwarePidControl_PvInputFilterFactorMode, - T.OUTPUT_PROPORTIONAL_CYCLE_TIME AS HardwarePidControl_OutputProportionalCycleTime, - T.AC_HEATERS__HALF_CYCLE_TIME AS HardwarePidControl_AcHeatersHalfCycleTime, - T.PROPORTIONAL_GAIN AS HardwarePidControl_ProportionalGain, - T.PID_ACTIVE AS HardwarePidControl_PidActive, - T.EPSILON AS HardwarePidControl_Epsilon, - T.ACTIVE AS HardwarePidControl_Active, - T.ID AS HardwarePidControl_ID, - T.LAST_UPDATED AS HardwarePidControl_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwarePidControl AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwarePidControlTypes. - /// - /// The mapping view. - private static DbMappingView GetView91() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwarePidControlTypes - [Tango.BL.HardwarePidControlType](T1.HardwarePidControlType_Guid, T1.HardwarePidControlType_Code, T1.HardwarePidControlType_Name, T1.HardwarePidControlType_Description, T1.HardwarePidControlType_ID, T1.HardwarePidControlType_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwarePidControlType_Guid, - T.CODE AS HardwarePidControlType_Code, - T.NAME AS HardwarePidControlType_Name, - T.DESCRIPTION AS HardwarePidControlType_Description, - T.ID AS HardwarePidControlType_ID, - T.LAST_UPDATED AS HardwarePidControlType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwarePidControlType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareSpeedSensors. - /// - /// The mapping view. - private static DbMappingView GetView92() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareSpeedSensors - [Tango.BL.HardwareSpeedSensor](T1.HardwareSpeedSensor_Guid, T1.HardwareSpeedSensor_HardwareSpeedSensorTypeGuid, T1.HardwareSpeedSensor_HardwareVersionGuid, T1.HardwareSpeedSensor_ResolutionBits, T1.HardwareSpeedSensor_Perimeter, T1.HardwareSpeedSensor_Active, T1.HardwareSpeedSensor_ID, T1.HardwareSpeedSensor_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareSpeedSensor_Guid, - T.HARDWARE_SPEED_SENSOR_TYPE_GUID AS HardwareSpeedSensor_HardwareSpeedSensorTypeGuid, - T.HARDWARE_VERSION_GUID AS HardwareSpeedSensor_HardwareVersionGuid, - T.RESOLUTION_BITS AS HardwareSpeedSensor_ResolutionBits, - T.PERIMETER AS HardwareSpeedSensor_Perimeter, - T.ACTIVE AS HardwareSpeedSensor_Active, - T.ID AS HardwareSpeedSensor_ID, - T.LAST_UPDATED AS HardwareSpeedSensor_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareSpeedSensor AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareSpeedSensorTypes. - /// - /// The mapping view. - private static DbMappingView GetView93() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareSpeedSensorTypes - [Tango.BL.HardwareSpeedSensorType](T1.HardwareSpeedSensorType_Guid, T1.HardwareSpeedSensorType_Code, T1.HardwareSpeedSensorType_Name, T1.HardwareSpeedSensorType_Description, T1.HardwareSpeedSensorType_ID, T1.HardwareSpeedSensorType_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareSpeedSensorType_Guid, - T.CODE AS HardwareSpeedSensorType_Code, - T.NAME AS HardwareSpeedSensorType_Name, - T.DESCRIPTION AS HardwareSpeedSensorType_Description, - T.ID AS HardwareSpeedSensorType_ID, - T.LAST_UPDATED AS HardwareSpeedSensorType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareSpeedSensorType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareWinders. - /// - /// The mapping view. - private static DbMappingView GetView94() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareWinders - [Tango.BL.HardwareWinder](T1.HardwareWinder_Guid, T1.HardwareWinder_HardwareWinderTypeGuid, T1.HardwareWinder_HardwareVersionGuid, T1.HardwareWinder_MillimeterPerRotation, T1.HardwareWinder_Active, T1.HardwareWinder_ID, T1.HardwareWinder_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareWinder_Guid, - T.HARDWARE_WINDER_TYPE_GUID AS HardwareWinder_HardwareWinderTypeGuid, - T.HARDWARE_VERSION_GUID AS HardwareWinder_HardwareVersionGuid, - T.MILLIMETER_PER_ROTATION AS HardwareWinder_MillimeterPerRotation, - T.ACTIVE AS HardwareWinder_Active, - T.ID AS HardwareWinder_ID, - T.LAST_UPDATED AS HardwareWinder_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareWinder AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.HardwareWinderTypes. - /// - /// The mapping view. - private static DbMappingView GetView95() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing HardwareWinderTypes - [Tango.BL.HardwareWinderType](T1.HardwareWinderType_Guid, T1.HardwareWinderType_Code, T1.HardwareWinderType_Name, T1.HardwareWinderType_Description, T1.HardwareWinderType_ID, T1.HardwareWinderType_LastUpdated) - FROM ( - SELECT - T.GUID AS HardwareWinderType_Guid, - T.CODE AS HardwareWinderType_Code, - T.NAME AS HardwareWinderType_Name, - T.DESCRIPTION AS HardwareWinderType_Description, - T.ID AS HardwareWinderType_ID, - T.LAST_UPDATED AS HardwareWinderType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.HardwareWinderType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Machines. - /// - /// The mapping view. - private static DbMappingView GetView96() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Machines - [Tango.BL.Machine](T1.Machine_Guid, T1.Machine_SerialNumber, T1.Machine_Name, T1.Machine_ProductionDate, T1.Machine_OrganizationGuid, T1.Machine_MachineVersionGuid, T1.Machine_ConfigurationGuid, T1.Machine_DefaultRmlGuid, T1.Machine_LoadedRmlGuid, T1.Machine_TargetJobTypes, T1.Machine_TargetColorSpaceCodes, T1.Machine_DefaultColorSpaceGuid, T1.Machine_DefaultSegmentLength, T1.Machine_DefaultSpoolTypeGuid, T1.Machine_OsKey, T1.Machine_AutoLogin, T1.Machine_AutoCheckForUpdates, T1.Machine_SetupActivation, T1.Machine_SetupRemoteAssistance, T1.Machine_SetupUwf, T1.Machine_SetupFirmware, T1.Machine_SetupFpga, T1.Machine_IsDemo, T1.Machine_ID, T1.Machine_LastUpdated) - FROM ( - SELECT - T.GUID AS Machine_Guid, - T.SERIAL_NUMBER AS Machine_SerialNumber, - T.NAME AS Machine_Name, - T.PRODUCTION_DATE AS Machine_ProductionDate, - T.ORGANIZATION_GUID AS Machine_OrganizationGuid, - T.MACHINE_VERSION_GUID AS Machine_MachineVersionGuid, - T.CONFIGURATION_GUID AS Machine_ConfigurationGuid, - T.DEFAULT_RML_GUID AS Machine_DefaultRmlGuid, - T.LOADED_RML_GUID AS Machine_LoadedRmlGuid, - T.TARGET_JOB_TYPES AS Machine_TargetJobTypes, - T.TARGET_COLOR_SPACE_CODES AS Machine_TargetColorSpaceCodes, - T.DEFAULT_COLOR_SPACE_GUID AS Machine_DefaultColorSpaceGuid, - T.DEFAULT_SEGMENT_LENGTH AS Machine_DefaultSegmentLength, - T.DEFAULT_SPOOL_TYPE_GUID AS Machine_DefaultSpoolTypeGuid, - T.OS_KEY AS Machine_OsKey, - T.AUTO_LOGIN AS Machine_AutoLogin, - T.AUTO_CHECK_FOR_UPDATES AS Machine_AutoCheckForUpdates, - T.SETUP_ACTIVATION AS Machine_SetupActivation, - T.SETUP_REMOTE_ASSISTANCE AS Machine_SetupRemoteAssistance, - T.SETUP_UWF AS Machine_SetupUwf, - T.SETUP_FIRMWARE AS Machine_SetupFirmware, - T.SETUP_FPGA AS Machine_SetupFpga, - T.IS_DEMO AS Machine_IsDemo, - T.ID AS Machine_ID, - T.LAST_UPDATED AS Machine_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Machine AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.SpoolTypes. - /// - /// The mapping view. - private static DbMappingView GetView97() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing SpoolTypes - [Tango.BL.SpoolType](T1.SpoolType_Guid, T1.SpoolType_Code, T1.SpoolType_Name, T1.SpoolType_Length, T1.SpoolType_Weight, T1.SpoolType_Diameter, T1.SpoolType_RotationsPerPassage, T1.SpoolType_ID, T1.SpoolType_LastUpdated) - FROM ( - SELECT - T.GUID AS SpoolType_Guid, - T.CODE AS SpoolType_Code, - T.NAME AS SpoolType_Name, - T.LENGTH AS SpoolType_Length, - T.WEIGHT AS SpoolType_Weight, - T.DIAMETER AS SpoolType_Diameter, - T.ROTATIONS_PER_PASSAGE AS SpoolType_RotationsPerPassage, - T.ID AS SpoolType_ID, - T.LAST_UPDATED AS SpoolType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.SpoolType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Spools. - /// - /// The mapping view. - private static DbMappingView GetView98() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Spools - [Tango.BL.Spool](T1.Spool_Guid, T1.Spool_SpoolTypeGuid, T1.Spool_MachineGuid, T1.Spool_StartOffsetPulses, T1.Spool_BackingRate, T1.Spool_SegmentOffsetPulses, T1.Spool_BottomBackingRate, T1.Spool_ID, T1.Spool_LastUpdated) - FROM ( - SELECT - T.GUID AS Spool_Guid, - T.SPOOL_TYPE_GUID AS Spool_SpoolTypeGuid, - T.MACHINE_GUID AS Spool_MachineGuid, - T.START_OFFSET_PULSES AS Spool_StartOffsetPulses, - T.BACKING_RATE AS Spool_BackingRate, - T.SEGMENT_OFFSET_PULSES AS Spool_SegmentOffsetPulses, - T.BOTTOM_BACKING_RATE AS Spool_BottomBackingRate, - T.ID AS Spool_ID, - T.LAST_UPDATED AS Spool_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Spool AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.MachinesEvents. - /// - /// The mapping view. - private static DbMappingView GetView99() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MachinesEvents - [Tango.BL.MachinesEvent](T1.MachinesEvent_Guid, T1.MachinesEvent_HostName, T1.MachinesEvent_MachineGuid, T1.MachinesEvent_EventTypeGuid, T1.MachinesEvent_UserGuid, T1.MachinesEvent_DateTime, T1.MachinesEvent_Description, T1.MachinesEvent_ID, T1.MachinesEvent_LastUpdated) - FROM ( - SELECT - T.GUID AS MachinesEvent_Guid, - T.HOST_NAME AS MachinesEvent_HostName, - T.MACHINE_GUID AS MachinesEvent_MachineGuid, - T.EVENT_TYPE_GUID AS MachinesEvent_EventTypeGuid, - T.USER_GUID AS MachinesEvent_UserGuid, - T.DATE_TIME AS MachinesEvent_DateTime, - T.DESCRIPTION AS MachinesEvent_Description, - T.ID AS MachinesEvent_ID, - T.LAST_UPDATED AS MachinesEvent_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.MachinesEvent AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.EventTypes. - /// - /// The mapping view. - private static DbMappingView GetView100() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing EventTypes - [Tango.BL.EventType](T1.EventType_Guid, T1.EventType_Code, T1.EventType_Name, T1.EventType_Title, T1.EventType_Description, T1.EventType_TechnicalDescription, T1.EventType_ComponentIndex, T1.EventType_EventCategory, T1.EventType_EventGroup, T1.EventType_EventNotificationTime, T1.EventType_EventActions, T1.EventType_RequiresUserIntervention, T1.EventType_ID, T1.EventType_LastUpdated) - FROM ( - SELECT - T.GUID AS EventType_Guid, - T.CODE AS EventType_Code, - T.NAME AS EventType_Name, - T.TITLE AS EventType_Title, - T.DESCRIPTION AS EventType_Description, - T.TECHNICAL_DESCRIPTION AS EventType_TechnicalDescription, - T.COMPONENT_INDEX AS EventType_ComponentIndex, - T.EVENT_CATEGORY AS EventType_EventCategory, - T.EVENT_GROUP AS EventType_EventGroup, - T.EVENT_NOTIFICATION_TIME AS EventType_EventNotificationTime, - T.EVENT_ACTIONS AS EventType_EventActions, - T.REQUIRES_USER_INTERVENTION AS EventType_RequiresUserIntervention, - T.ID AS EventType_ID, - T.LAST_UPDATED AS EventType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.EventType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.MachineVersions. - /// - /// The mapping view. - private static DbMappingView GetView101() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MachineVersions - [Tango.BL.MachineVersion](T1.MachineVersion_Guid, T1.MachineVersion_Version, T1.MachineVersion_Name, T1.MachineVersion_PrototypeMachineData, T1.MachineVersion_ID, T1.MachineVersion_LastUpdated) - FROM ( - SELECT - T.GUID AS MachineVersion_Guid, - T.VERSION AS MachineVersion_Version, - T.NAME AS MachineVersion_Name, - T.PROTOTYPE_MACHINE_DATA AS MachineVersion_PrototypeMachineData, - T.ID AS MachineVersion_ID, - T.LAST_UPDATED AS MachineVersion_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.MachineVersion AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.TangoVersions. - /// - /// The mapping view. - private static DbMappingView GetView102() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TangoVersions - [Tango.BL.TangoVersion](T1.TangoVersion_Guid, T1.TangoVersion_Version, T1.TangoVersion_BlobName, T1.TangoVersion_Comments, T1.TangoVersion_UserGuid, T1.TangoVersion_MachineVersionGuid, T1.TangoVersion_ID, T1.TangoVersion_LastUpdated) - FROM ( - SELECT - T.GUID AS TangoVersion_Guid, - T.VERSION AS TangoVersion_Version, - T.BLOB_NAME AS TangoVersion_BlobName, - T.COMMENTS AS TangoVersion_Comments, - T.USER_GUID AS TangoVersion_UserGuid, - T.MACHINE_VERSION_GUID AS TangoVersion_MachineVersionGuid, - T.ID AS TangoVersion_ID, - T.LAST_UPDATED AS TangoVersion_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.TangoVersion AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Dispensers. - /// - /// The mapping view. - private static DbMappingView GetView103() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Dispensers - [Tango.BL.Dispenser](T1.Dispenser_Guid, T1.Dispenser_SerialNumber, T1.Dispenser_DispenserTypeGuid, T1.Dispenser_NlPerPulse, T1.Dispenser_PartNumber, T1.Dispenser_PcbSerial, T1.Dispenser_PcbVersion, T1.Dispenser_ProductionDate, T1.Dispenser_CalibrationData, T1.Dispenser_ID, T1.Dispenser_LastUpdated) - FROM ( - SELECT - T.GUID AS Dispenser_Guid, - T.SERIAL_NUMBER AS Dispenser_SerialNumber, - T.DISPENSER_TYPE_GUID AS Dispenser_DispenserTypeGuid, - T.NL_PER_PULSE AS Dispenser_NlPerPulse, - T.PART_NUMBER AS Dispenser_PartNumber, - T.PCB_SERIAL AS Dispenser_PcbSerial, - T.PCB_VERSION AS Dispenser_PcbVersion, - T.PRODUCTION_DATE AS Dispenser_ProductionDate, - T.CALIBRATION_DATA AS Dispenser_CalibrationData, - T.ID AS Dispenser_ID, - T.LAST_UPDATED AS Dispenser_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Dispenser AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.DispenserTypes. - /// - /// The mapping view. - private static DbMappingView GetView104() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing DispenserTypes - [Tango.BL.DispenserType](T1.DispenserType_Guid, T1.DispenserType_Code, T1.DispenserType_Name, T1.DispenserType_Capacity, T1.DispenserType_ID, T1.DispenserType_LastUpdated) - FROM ( - SELECT - T.GUID AS DispenserType_Guid, - T.CODE AS DispenserType_Code, - T.NAME AS DispenserType_Name, - T.CAPACITY AS DispenserType_Capacity, - T.ID AS DispenserType_ID, - T.LAST_UPDATED AS DispenserType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.DispenserType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.IdsPackFormulas. - /// - /// The mapping view. - private static DbMappingView GetView105() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing IdsPackFormulas - [Tango.BL.IdsPackFormula](T1.IdsPackFormula_Guid, T1.IdsPackFormula_Code, T1.IdsPackFormula_Name, T1.IdsPackFormula_Description, T1.IdsPackFormula_AutoCalculated, T1.IdsPackFormula_ID, T1.IdsPackFormula_LastUpdated) - FROM ( - SELECT - T.GUID AS IdsPackFormula_Guid, - T.CODE AS IdsPackFormula_Code, - T.NAME AS IdsPackFormula_Name, - T.DESCRIPTION AS IdsPackFormula_Description, - T.AUTO_CALCULATED AS IdsPackFormula_AutoCalculated, - T.ID AS IdsPackFormula_ID, - T.LAST_UPDATED AS IdsPackFormula_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.IdsPackFormula AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.MidTankTypes. - /// - /// The mapping view. - private static DbMappingView GetView106() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MidTankTypes - [Tango.BL.MidTankType](T1.MidTankType_Guid, T1.MidTankType_Code, T1.MidTankType_Name, T1.MidTankType_LiterCapacity, T1.MidTankType_ID, T1.MidTankType_LastUpdated) - FROM ( - SELECT - T.GUID AS MidTankType_Guid, - T.CODE AS MidTankType_Code, - T.NAME AS MidTankType_Name, - T.LITER_CAPACITY AS MidTankType_LiterCapacity, - T.ID AS MidTankType_ID, - T.LAST_UPDATED AS MidTankType_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.MidTankType AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.LiquidTypesRmls. - /// - /// The mapping view. - private static DbMappingView GetView107() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing LiquidTypesRmls - [Tango.BL.LiquidTypesRml](T1.LiquidTypesRml_Guid, T1.LiquidTypesRml_LiquidTypeGuid, T1.LiquidTypesRml_RmlGuid, T1.LiquidTypesRml_MaxNlPerCm, T1.LiquidTypesRml_DefaultCatData, T1.LiquidTypesRml_ID, T1.LiquidTypesRml_LastUpdated) - FROM ( - SELECT - T.GUID AS LiquidTypesRml_Guid, - T.LIQUID_TYPE_GUID AS LiquidTypesRml_LiquidTypeGuid, - T.RML_GUID AS LiquidTypesRml_RmlGuid, - T.MAX_NL_PER_CM AS LiquidTypesRml_MaxNlPerCm, - T.DEFAULT_CAT_DATA AS LiquidTypesRml_DefaultCatData, - T.ID AS LiquidTypesRml_ID, - T.LAST_UPDATED AS LiquidTypesRml_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.LiquidTypesRml AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Ccts. - /// - /// The mapping view. - private static DbMappingView GetView108() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Ccts - [Tango.BL.Cct](T1.Cct_Guid, T1.Cct_Name, T1.Cct_Description, T1.Cct_ForwardFileName, T1.Cct_InverseFileName, T1.Cct_ForwardData, T1.Cct_InverseData, T1.Cct_Version, T1.Cct_RmlGuid, T1.Cct_ID, T1.Cct_LastUpdated) - FROM ( - SELECT - T.GUID AS Cct_Guid, - T.NAME AS Cct_Name, - T.DESCRIPTION AS Cct_Description, - T.FORWARD_FILE_NAME AS Cct_ForwardFileName, - T.INVERSE_FILE_NAME AS Cct_InverseFileName, - T.FORWARD_DATA AS Cct_ForwardData, - T.INVERSE_DATA AS Cct_InverseData, - T.VERSION AS Cct_Version, - T.RML_GUID AS Cct_RmlGuid, - T.ID AS Cct_ID, - T.LAST_UPDATED AS Cct_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Cct AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.FiberShapes. - /// - /// The mapping view. - private static DbMappingView GetView109() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing FiberShapes - [Tango.BL.FiberShape](T1.FiberShape_Guid, T1.FiberShape_Name, T1.FiberShape_Code, T1.FiberShape_ID, T1.FiberShape_LastUpdated) - FROM ( - SELECT - T.GUID AS FiberShape_Guid, - T.NAME AS FiberShape_Name, - T.CODE AS FiberShape_Code, - T.ID AS FiberShape_ID, - T.LAST_UPDATED AS FiberShape_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.FiberShape AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.FiberSynths. - /// - /// The mapping view. - private static DbMappingView GetView110() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing FiberSynths - [Tango.BL.FiberSynth](T1.FiberSynth_Guid, T1.FiberSynth_Name, T1.FiberSynth_Code, T1.FiberSynth_ID, T1.FiberSynth_LastUpdated) - FROM ( - SELECT - T.GUID AS FiberSynth_Guid, - T.NAME AS FiberSynth_Name, - T.CODE AS FiberSynth_Code, - T.ID AS FiberSynth_ID, - T.LAST_UPDATED AS FiberSynth_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.FiberSynth AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.LinearMassDensityUnits. - /// - /// The mapping view. - private static DbMappingView GetView111() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing LinearMassDensityUnits - [Tango.BL.LinearMassDensityUnit](T1.LinearMassDensityUnit_Guid, T1.LinearMassDensityUnit_Name, T1.LinearMassDensityUnit_Code, T1.LinearMassDensityUnit_ID, T1.LinearMassDensityUnit_LastUpdated) - FROM ( - SELECT - T.GUID AS LinearMassDensityUnit_Guid, - T.NAME AS LinearMassDensityUnit_Name, - T.CODE AS LinearMassDensityUnit_Code, - T.ID AS LinearMassDensityUnit_ID, - T.LAST_UPDATED AS LinearMassDensityUnit_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.LinearMassDensityUnit AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.MediaConditions. - /// - /// The mapping view. - private static DbMappingView GetView112() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MediaConditions - [Tango.BL.MediaCondition](T1.MediaCondition_Guid, T1.MediaCondition_Name, T1.MediaCondition_Code, T1.MediaCondition_ID, T1.MediaCondition_LastUpdated) - FROM ( - SELECT - T.GUID AS MediaCondition_Guid, - T.NAME AS MediaCondition_Name, - T.CODE AS MediaCondition_Code, - T.ID AS MediaCondition_ID, - T.LAST_UPDATED AS MediaCondition_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.MediaCondition AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.MediaMaterials. - /// - /// The mapping view. - private static DbMappingView GetView113() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MediaMaterials - [Tango.BL.MediaMaterial](T1.MediaMaterial_Guid, T1.MediaMaterial_Name, T1.MediaMaterial_Code, T1.MediaMaterial_ID, T1.MediaMaterial_LastUpdated) - FROM ( - SELECT - T.GUID AS MediaMaterial_Guid, - T.NAME AS MediaMaterial_Name, - T.CODE AS MediaMaterial_Code, - T.ID AS MediaMaterial_ID, - T.LAST_UPDATED AS MediaMaterial_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.MediaMaterial AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.MediaPurposes. - /// - /// The mapping view. - private static DbMappingView GetView114() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MediaPurposes - [Tango.BL.MediaPurpos](T1.MediaPurpos_Guid, T1.MediaPurpos_Name, T1.MediaPurpos_Code, T1.MediaPurpos_ID, T1.MediaPurpos_LastUpdated) - FROM ( - SELECT - T.GUID AS MediaPurpos_Guid, - T.NAME AS MediaPurpos_Name, - T.CODE AS MediaPurpos_Code, - T.ID AS MediaPurpos_ID, - T.LAST_UPDATED AS MediaPurpos_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.MediaPurpos AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.ProcessParametersTablesGroups. - /// - /// The mapping view. - private static DbMappingView GetView115() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ProcessParametersTablesGroups - [Tango.BL.ProcessParametersTablesGroup](T1.ProcessParametersTablesGroup_Guid, T1.ProcessParametersTablesGroup_RmlGuid, T1.ProcessParametersTablesGroup_Name, T1.ProcessParametersTablesGroup_Active, T1.ProcessParametersTablesGroup_SaveDate, T1.ProcessParametersTablesGroup_ID, T1.ProcessParametersTablesGroup_LastUpdated) - FROM ( - SELECT - T.GUID AS ProcessParametersTablesGroup_Guid, - T.RML_GUID AS ProcessParametersTablesGroup_RmlGuid, - T.NAME AS ProcessParametersTablesGroup_Name, - T.ACTIVE AS ProcessParametersTablesGroup_Active, - T.SAVE_DATE AS ProcessParametersTablesGroup_SaveDate, - T.ID AS ProcessParametersTablesGroup_ID, - T.LAST_UPDATED AS ProcessParametersTablesGroup_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.ProcessParametersTablesGroup AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.ProcessParametersTables. - /// - /// The mapping view. - private static DbMappingView GetView116() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing ProcessParametersTables - [Tango.BL.ProcessParametersTable](T1.ProcessParametersTable_Guid, T1.ProcessParametersTable_Name, T1.ProcessParametersTable_DyeingSpeed, T1.ProcessParametersTable_MinInkUptake, T1.ProcessParametersTable_MaxInkUptake, T1.ProcessParametersTable_FeederTension, T1.ProcessParametersTable_PullerTension, T1.ProcessParametersTable_WinderTension, T1.ProcessParametersTable_MixerTemp, T1.ProcessParametersTable_HeadZone1Temp, T1.ProcessParametersTable_HeadZone2Temp, T1.ProcessParametersTable_HeadZone3Temp, T1.ProcessParametersTable_HeadZone4Temp, T1.ProcessParametersTable_HeadZone5Temp, T1.ProcessParametersTable_HeadZone6Temp, T1.ProcessParametersTable_DryerAirFlow, T1.ProcessParametersTable_DryerZone1Temp, T1.ProcessParametersTable_DryerZone2Temp, T1.ProcessParametersTable_DryerZone3Temp, T1.ProcessParametersTable_DryerBufferLength, T1.ProcessParametersTable_HeadAirFlow, T1.ProcessParametersTable_ProcessParametersTablesGroupGuid, T1.ProcessParametersTable_TableIndex, T1.ProcessParametersTable_ID, T1.ProcessParametersTable_LastUpdated) - FROM ( - SELECT - T.GUID AS ProcessParametersTable_Guid, - T.NAME AS ProcessParametersTable_Name, - T.DYEING_SPEED AS ProcessParametersTable_DyeingSpeed, - T.MIN_INK_UPTAKE AS ProcessParametersTable_MinInkUptake, - T.MAX_INK_UPTAKE AS ProcessParametersTable_MaxInkUptake, - T.FEEDER_TENSION AS ProcessParametersTable_FeederTension, - T.PULLER_TENSION AS ProcessParametersTable_PullerTension, - T.WINDER_TENSION AS ProcessParametersTable_WinderTension, - T.MIXER_TEMP AS ProcessParametersTable_MixerTemp, - T.HEAD_ZONE1_TEMP AS ProcessParametersTable_HeadZone1Temp, - T.HEAD_ZONE2_TEMP AS ProcessParametersTable_HeadZone2Temp, - T.HEAD_ZONE3_TEMP AS ProcessParametersTable_HeadZone3Temp, - T.HEAD_ZONE4_TEMP AS ProcessParametersTable_HeadZone4Temp, - T.HEAD_ZONE5_TEMP AS ProcessParametersTable_HeadZone5Temp, - T.HEAD_ZONE6_TEMP AS ProcessParametersTable_HeadZone6Temp, - T.DRYER_AIR_FLOW AS ProcessParametersTable_DryerAirFlow, - T.DRYER_ZONE1_TEMP AS ProcessParametersTable_DryerZone1Temp, - T.DRYER_ZONE2_TEMP AS ProcessParametersTable_DryerZone2Temp, - T.DRYER_ZONE3_TEMP AS ProcessParametersTable_DryerZone3Temp, - T.DRYER_BUFFER_LENGTH AS ProcessParametersTable_DryerBufferLength, - T.HEAD_AIR_FLOW AS ProcessParametersTable_HeadAirFlow, - T.PROCESS_PARAMETERS_TABLES_GROUP_GUID AS ProcessParametersTable_ProcessParametersTablesGroupGuid, - T.TABLE_INDEX AS ProcessParametersTable_TableIndex, - T.ID AS ProcessParametersTable_ID, - T.LAST_UPDATED AS ProcessParametersTable_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.ProcessParametersTable AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Segments. - /// - /// The mapping view. - private static DbMappingView GetView117() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Segments - [Tango.BL.Segment](T1.Segment_Guid, T1.Segment_Name, T1.Segment_JobGuid, T1.Segment_Length, T1.Segment_SegmentIndex, T1.Segment_ID, T1.Segment_LastUpdated) - FROM ( - SELECT - T.GUID AS Segment_Guid, - T.NAME AS Segment_Name, - T.JOB_GUID AS Segment_JobGuid, - T.LENGTH AS Segment_Length, - T.SEGMENT_INDEX AS Segment_SegmentIndex, - T.ID AS Segment_ID, - T.LAST_UPDATED AS Segment_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Segment AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Customers. - /// - /// The mapping view. - private static DbMappingView GetView118() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Customers - [Tango.BL.Customer](T1.Customer_Guid, T1.Customer_OrganizationGuid, T1.Customer_Name, T1.Customer_ID, T1.Customer_LastUpdated) - FROM ( - SELECT - T.GUID AS Customer_Guid, - T.ORGANIZATION_GUID AS Customer_OrganizationGuid, - T.NAME AS Customer_Name, - T.ID AS Customer_ID, - T.LAST_UPDATED AS Customer_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Customer AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.JobRuns. - /// - /// The mapping view. - private static DbMappingView GetView119() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing JobRuns - [Tango.BL.JobRun](T1.JobRun_Guid, T1.JobRun_JobGuid, T1.JobRun_StartDate, T1.JobRun_EndDate, T1.JobRun_Status, T1.JobRun_EndPosition, T1.JobRun_FailedMessage, T1.JobRun_ID, T1.JobRun_LastUpdated) - FROM ( - SELECT - T.GUID AS JobRun_Guid, - T.JOB_GUID AS JobRun_JobGuid, - T.START_DATE AS JobRun_StartDate, - T.END_DATE AS JobRun_EndDate, - T.STATUS AS JobRun_Status, - T.END_POSITION AS JobRun_EndPosition, - T.FAILED_MESSAGE AS JobRun_FailedMessage, - T.ID AS JobRun_ID, - T.LAST_UPDATED AS JobRun_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.JobRun AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.WindingMethods. - /// - /// The mapping view. - private static DbMappingView GetView120() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing WindingMethods - [Tango.BL.WindingMethod](T1.WindingMethod_Guid, T1.WindingMethod_Code, T1.WindingMethod_Name, T1.WindingMethod_Description, T1.WindingMethod_ID, T1.WindingMethod_LastUpdated) - FROM ( - SELECT - T.GUID AS WindingMethod_Guid, - T.CODE AS WindingMethod_Code, - T.NAME AS WindingMethod_Name, - T.DESCRIPTION AS WindingMethod_Description, - T.ID AS WindingMethod_ID, - T.LAST_UPDATED AS WindingMethod_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.WindingMethod AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.MachineStudioVersions. - /// - /// The mapping view. - private static DbMappingView GetView121() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing MachineStudioVersions - [Tango.BL.MachineStudioVersion](T1.MachineStudioVersion_Guid, T1.MachineStudioVersion_Version, T1.MachineStudioVersion_BlobName, T1.MachineStudioVersion_Comments, T1.MachineStudioVersion_UserGuid, T1.MachineStudioVersion_ID, T1.MachineStudioVersion_LastUpdated) - FROM ( - SELECT - T.GUID AS MachineStudioVersion_Guid, - T.VERSION AS MachineStudioVersion_Version, - T.BLOB_NAME AS MachineStudioVersion_BlobName, - T.COMMENTS AS MachineStudioVersion_Comments, - T.USER_GUID AS MachineStudioVersion_UserGuid, - T.ID AS MachineStudioVersion_ID, - T.LAST_UPDATED AS MachineStudioVersion_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.MachineStudioVersion AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.UsersRoles. - /// - /// The mapping view. - private static DbMappingView GetView122() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing UsersRoles - [Tango.BL.UsersRole](T1.UsersRole_Guid, T1.UsersRole_UserGuid, T1.UsersRole_RoleGuid, T1.UsersRole_ID, T1.UsersRole_LastUpdated) - FROM ( - SELECT - T.GUID AS UsersRole_Guid, - T.USER_GUID AS UsersRole_UserGuid, - T.ROLE_GUID AS UsersRole_RoleGuid, - T.ID AS UsersRole_ID, - T.LAST_UPDATED AS UsersRole_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.UsersRole AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Roles. - /// - /// The mapping view. - private static DbMappingView GetView123() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Roles - [Tango.BL.Role](T1.Role_Guid, T1.Role_Code, T1.Role_Name, T1.Role_Description, T1.Role_ID, T1.Role_LastUpdated) - FROM ( - SELECT - T.GUID AS Role_Guid, - T.CODE AS Role_Code, - T.NAME AS Role_Name, - T.DESCRIPTION AS Role_Description, - T.ID AS Role_ID, - T.LAST_UPDATED AS Role_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Role AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.RolesPermissions. - /// - /// The mapping view. - private static DbMappingView GetView124() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing RolesPermissions - [Tango.BL.RolesPermission](T1.RolesPermission_Guid, T1.RolesPermission_RoleGuid, T1.RolesPermission_PermissionGuid, T1.RolesPermission_ID, T1.RolesPermission_LastUpdated) - FROM ( - SELECT - T.GUID AS RolesPermission_Guid, - T.ROLE_GUID AS RolesPermission_RoleGuid, - T.PERMISSION_GUID AS RolesPermission_PermissionGuid, - T.ID AS RolesPermission_ID, - T.LAST_UPDATED AS RolesPermission_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.RolesPermission AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Permissions. - /// - /// The mapping view. - private static DbMappingView GetView125() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Permissions - [Tango.BL.Permission](T1.Permission_Guid, T1.Permission_Code, T1.Permission_Name, T1.Permission_Description, T1.Permission_ID, T1.Permission_LastUpdated) - FROM ( - SELECT - T.GUID AS Permission_Guid, - T.CODE AS Permission_Code, - T.NAME AS Permission_Name, - T.DESCRIPTION AS Permission_Description, - T.ID AS Permission_ID, - T.LAST_UPDATED AS Permission_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Permission AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.SyncConfiguration. - /// - /// The mapping view. - private static DbMappingView GetView126() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing SyncConfiguration - [CodeFirstDatabaseSchema.SyncConfiguration](T1.SyncConfiguration_GUID, T1.SyncConfiguration_ID, T1.[SyncConfiguration.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS SyncConfiguration_GUID, - T.ID AS SyncConfiguration_ID, - T.LastUpdated AS [SyncConfiguration.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.SyncConfigurations AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.SyncConfigurations. - /// - /// The mapping view. - private static DbMappingView GetView127() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing SyncConfigurations - [Tango.BL.SyncConfiguration](T1.SyncConfiguration_Guid, T1.SyncConfiguration_ID, T1.SyncConfiguration_LastUpdated) - FROM ( - SELECT - T.GUID AS SyncConfiguration_Guid, - T.ID AS SyncConfiguration_ID, - T.LAST_UPDATED AS SyncConfiguration_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.SyncConfiguration AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.Sysdiagram. - /// - /// The mapping view. - private static DbMappingView GetView128() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Sysdiagram - [CodeFirstDatabaseSchema.Sysdiagram](T1.Sysdiagram_GUID, T1.Sysdiagram_definition, T1.Sysdiagram_ID, T1.[Sysdiagram.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS Sysdiagram_GUID, - T.Definition AS Sysdiagram_definition, - T.ID AS Sysdiagram_ID, - T.LastUpdated AS [Sysdiagram.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.Sysdiagrams AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.Sysdiagrams. - /// - /// The mapping view. - private static DbMappingView GetView129() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing Sysdiagrams - [Tango.BL.Sysdiagram](T1.Sysdiagram_Guid, T1.Sysdiagram_Definition, T1.Sysdiagram_ID, T1.Sysdiagram_LastUpdated) - FROM ( - SELECT - T.GUID AS Sysdiagram_Guid, - T.definition AS Sysdiagram_Definition, - T.ID AS Sysdiagram_ID, - T.LAST_UPDATED AS Sysdiagram_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.Sysdiagram AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.TechController. - /// - /// The mapping view. - private static DbMappingView GetView130() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TechController - [CodeFirstDatabaseSchema.TechController](T1.TechController_GUID, T1.TechController_CODE, T1.TechController_NAME, T1.TechController_DESCRIPTION, T1.TechController_MIN, T1.TechController_MAX, T1.TechController_UNITS, T1.TechController_ID, T1.[TechController.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS TechController_GUID, - T.Code AS TechController_CODE, - T.Name AS TechController_NAME, - T.Description AS TechController_DESCRIPTION, - T.Min AS TechController_MIN, - T.Max AS TechController_MAX, - T.Units AS TechController_UNITS, - T.ID AS TechController_ID, - T.LastUpdated AS [TechController.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.TechControllers AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.TechControllers. - /// - /// The mapping view. - private static DbMappingView GetView131() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TechControllers - [Tango.BL.TechController](T1.TechController_Guid, T1.TechController_Code, T1.TechController_Name, T1.TechController_Description, T1.TechController_Min, T1.TechController_Max, T1.TechController_Units, T1.TechController_ID, T1.TechController_LastUpdated) - FROM ( - SELECT - T.GUID AS TechController_Guid, - T.CODE AS TechController_Code, - T.NAME AS TechController_Name, - T.DESCRIPTION AS TechController_Description, - T.MIN AS TechController_Min, - T.MAX AS TechController_Max, - T.UNITS AS TechController_Units, - T.ID AS TechController_ID, - T.LAST_UPDATED AS TechController_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.TechController AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.TechDispenser. - /// - /// The mapping view. - private static DbMappingView GetView132() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TechDispenser - [CodeFirstDatabaseSchema.TechDispenser](T1.TechDispenser_GUID, T1.TechDispenser_CODE, T1.TechDispenser_NAME, T1.TechDispenser_DESCRIPTION, T1.TechDispenser_ID, T1.[TechDispenser.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS TechDispenser_GUID, - T.Code AS TechDispenser_CODE, - T.Name AS TechDispenser_NAME, - T.Description AS TechDispenser_DESCRIPTION, - T.ID AS TechDispenser_ID, - T.LastUpdated AS [TechDispenser.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.TechDispensers AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.TechDispensers. - /// - /// The mapping view. - private static DbMappingView GetView133() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TechDispensers - [Tango.BL.TechDispenser](T1.TechDispenser_Guid, T1.TechDispenser_Code, T1.TechDispenser_Name, T1.TechDispenser_Description, T1.TechDispenser_ID, T1.TechDispenser_LastUpdated) - FROM ( - SELECT - T.GUID AS TechDispenser_Guid, - T.CODE AS TechDispenser_Code, - T.NAME AS TechDispenser_Name, - T.DESCRIPTION AS TechDispenser_Description, - T.ID AS TechDispenser_ID, - T.LAST_UPDATED AS TechDispenser_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.TechDispenser AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.TechHeater. - /// - /// The mapping view. - private static DbMappingView GetView134() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TechHeater - [CodeFirstDatabaseSchema.TechHeater](T1.TechHeater_GUID, T1.TechHeater_CODE, T1.TechHeater_NAME, T1.TechHeater_DESCRIPTION, T1.TechHeater_ID, T1.[TechHeater.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS TechHeater_GUID, - T.Code AS TechHeater_CODE, - T.Name AS TechHeater_NAME, - T.Description AS TechHeater_DESCRIPTION, - T.ID AS TechHeater_ID, - T.LastUpdated AS [TechHeater.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.TechHeaters AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.TechHeaters. - /// - /// The mapping view. - private static DbMappingView GetView135() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TechHeaters - [Tango.BL.TechHeater](T1.TechHeater_Guid, T1.TechHeater_Code, T1.TechHeater_Name, T1.TechHeater_Description, T1.TechHeater_ID, T1.TechHeater_LastUpdated) - FROM ( - SELECT - T.GUID AS TechHeater_Guid, - T.CODE AS TechHeater_Code, - T.NAME AS TechHeater_Name, - T.DESCRIPTION AS TechHeater_Description, - T.ID AS TechHeater_ID, - T.LAST_UPDATED AS TechHeater_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.TechHeater AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.TechIo. - /// - /// The mapping view. - private static DbMappingView GetView136() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TechIo - [CodeFirstDatabaseSchema.TechIo](T1.TechIo_GUID, T1.TechIo_CODE, T1.TechIo_NAME, T1.TechIo_TYPE, T1.TechIo_DESIGNATOR, T1.TechIo_ASM, T1.[TechIo.INTERFACE_NAME], T1.TechIo_SENSOR, T1.[TechIo.INIT_VALUE], T1.TechIo_AVERAGING, T1.TechIo_MIN, T1.TechIo_MAX, T1.TechIo_ID, T1.[TechIo.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS TechIo_GUID, - T.Code AS TechIo_CODE, - T.Name AS TechIo_NAME, - T.Type AS TechIo_TYPE, - T.Designator AS TechIo_DESIGNATOR, - T.Asm AS TechIo_ASM, - T.InterfaceName AS [TechIo.INTERFACE_NAME], - T.Sensor AS TechIo_SENSOR, - T.InitValue AS [TechIo.INIT_VALUE], - T.Averaging AS TechIo_AVERAGING, - T.Min AS TechIo_MIN, - T.Max AS TechIo_MAX, - T.ID AS TechIo_ID, - T.LastUpdated AS [TechIo.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.TechIos AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.TechIos. - /// - /// The mapping view. - private static DbMappingView GetView137() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TechIos - [Tango.BL.TechIo](T1.TechIo_Guid, T1.TechIo_Code, T1.TechIo_Name, T1.TechIo_Type, T1.TechIo_Designator, T1.TechIo_Asm, T1.TechIo_InterfaceName, T1.TechIo_Sensor, T1.TechIo_InitValue, T1.TechIo_Averaging, T1.TechIo_Min, T1.TechIo_Max, T1.TechIo_ID, T1.TechIo_LastUpdated) - FROM ( - SELECT - T.GUID AS TechIo_Guid, - T.CODE AS TechIo_Code, - T.NAME AS TechIo_Name, - T.TYPE AS TechIo_Type, - T.DESIGNATOR AS TechIo_Designator, - T.ASM AS TechIo_Asm, - T.INTERFACE_NAME AS TechIo_InterfaceName, - T.SENSOR AS TechIo_Sensor, - T.INIT_VALUE AS TechIo_InitValue, - T.AVERAGING AS TechIo_Averaging, - T.MIN AS TechIo_Min, - T.MAX AS TechIo_Max, - T.ID AS TechIo_ID, - T.LAST_UPDATED AS TechIo_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.TechIo AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.TechMonitor. - /// - /// The mapping view. - private static DbMappingView GetView138() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TechMonitor - [CodeFirstDatabaseSchema.TechMonitor](T1.TechMonitor_GUID, T1.TechMonitor_CODE, T1.TechMonitor_NAME, T1.TechMonitor_DESCRIPTION, T1.TechMonitor_MIN, T1.TechMonitor_MAX, T1.TechMonitor_UNITS, T1.[TechMonitor.POINTS_PER_FRAME], T1.[TechMonitor.MULTI_CHANNEL], T1.[TechMonitor.CHANNEL_COUNT], T1.TechMonitor_ID, T1.[TechMonitor.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS TechMonitor_GUID, - T.Code AS TechMonitor_CODE, - T.Name AS TechMonitor_NAME, - T.Description AS TechMonitor_DESCRIPTION, - T.Min AS TechMonitor_MIN, - T.Max AS TechMonitor_MAX, - T.Units AS TechMonitor_UNITS, - T.PointsPerFrame AS [TechMonitor.POINTS_PER_FRAME], - T.MultiChannel AS [TechMonitor.MULTI_CHANNEL], - T.ChannelCount AS [TechMonitor.CHANNEL_COUNT], - T.ID AS TechMonitor_ID, - T.LastUpdated AS [TechMonitor.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.TechMonitors AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.TechMonitors. - /// - /// The mapping view. - private static DbMappingView GetView139() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TechMonitors - [Tango.BL.TechMonitor](T1.TechMonitor_Guid, T1.TechMonitor_Code, T1.TechMonitor_Name, T1.TechMonitor_Description, T1.TechMonitor_Min, T1.TechMonitor_Max, T1.TechMonitor_Units, T1.TechMonitor_PointsPerFrame, T1.TechMonitor_MultiChannel, T1.TechMonitor_ChannelCount, T1.TechMonitor_ID, T1.TechMonitor_LastUpdated) - FROM ( - SELECT - T.GUID AS TechMonitor_Guid, - T.CODE AS TechMonitor_Code, - T.NAME AS TechMonitor_Name, - T.DESCRIPTION AS TechMonitor_Description, - T.MIN AS TechMonitor_Min, - T.MAX AS TechMonitor_Max, - T.UNITS AS TechMonitor_Units, - T.POINTS_PER_FRAME AS TechMonitor_PointsPerFrame, - T.MULTI_CHANNEL AS TechMonitor_MultiChannel, - T.CHANNEL_COUNT AS TechMonitor_ChannelCount, - T.ID AS TechMonitor_ID, - T.LAST_UPDATED AS TechMonitor_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.TechMonitor AS T - ) AS T1"); - } - - /// - /// Gets the view for CodeFirstDatabase.TechValve. - /// - /// The mapping view. - private static DbMappingView GetView140() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TechValve - [CodeFirstDatabaseSchema.TechValve](T1.TechValve_GUID, T1.TechValve_CODE, T1.TechValve_NAME, T1.TechValve_DESCRIPTION, T1.TechValve_TYPE, T1.TechValve_STATE1, T1.TechValve_STATE2, T1.TechValve_ID, T1.[TechValve.LAST_UPDATED]) - FROM ( - SELECT - T.Guid AS TechValve_GUID, - T.Code AS TechValve_CODE, - T.Name AS TechValve_NAME, - T.Description AS TechValve_DESCRIPTION, - T.Type AS TechValve_TYPE, - T.State1 AS TechValve_STATE1, - T.State2 AS TechValve_STATE2, - T.ID AS TechValve_ID, - T.LastUpdated AS [TechValve.LAST_UPDATED], - True AS _from0 - FROM ObservablesContext.TechValves AS T - ) AS T1"); - } - - /// - /// Gets the view for ObservablesContext.TechValves. - /// - /// The mapping view. - private static DbMappingView GetView141() - { - return new DbMappingView(@" - SELECT VALUE -- Constructing TechValves - [Tango.BL.TechValve](T1.TechValve_Guid, T1.TechValve_Code, T1.TechValve_Name, T1.TechValve_Description, T1.TechValve_Type, T1.TechValve_State1, T1.TechValve_State2, T1.TechValve_ID, T1.TechValve_LastUpdated) - FROM ( - SELECT - T.GUID AS TechValve_Guid, - T.CODE AS TechValve_Code, - T.NAME AS TechValve_Name, - T.DESCRIPTION AS TechValve_Description, - T.TYPE AS TechValve_Type, - T.STATE1 AS TechValve_State1, - T.STATE2 AS TechValve_State2, - T.ID AS TechValve_ID, - T.LAST_UPDATED AS TechValve_LastUpdated, - True AS _from0 - FROM CodeFirstDatabase.TechValve AS T - ) AS T1"); - } - } -} diff --git a/Software/Visual_Studio/Tango.BL/ObservablesEntitiesAdapter.cs b/Software/Visual_Studio/Tango.BL/ObservablesEntitiesAdapter.cs index 1cbd91835..eb2d176e8 100644 --- a/Software/Visual_Studio/Tango.BL/ObservablesEntitiesAdapter.cs +++ b/Software/Visual_Studio/Tango.BL/ObservablesEntitiesAdapter.cs @@ -128,9 +128,9 @@ namespace Tango.BL MachineVersions = Context.MachineVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); - Addresses = Context.Addresses.Where(x => !x.Deleted).ToList().OrderBy(x => x.AddressString).ToObservableCollection(); + Addresses = Context.Addresses.ToList().OrderBy(x => x.AddressString).ToObservableCollection(); - Contacts = Context.Contacts.Where(x => !x.Deleted).ToList().OrderBy(x => x.FullName).ToObservableCollection(); + Contacts = Context.Contacts.ToList().OrderBy(x => x.FullName).ToObservableCollection(); Roles = Context.Roles.ToList().OrderBy(x => x.Name).ToObservableCollection(); diff --git a/Software/Visual_Studio/Tango.BL/Tango.BL.csproj b/Software/Visual_Studio/Tango.BL/Tango.BL.csproj index 6453881f0..261ed00f5 100644 --- a/Software/Visual_Studio/Tango.BL/Tango.BL.csproj +++ b/Software/Visual_Studio/Tango.BL/Tango.BL.csproj @@ -114,6 +114,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -199,6 +339,8 @@ + + @@ -319,7 +461,6 @@ - @@ -408,7 +549,7 @@ - + \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Class.cs b/Software/Visual_Studio/Tango.CodeGeneration/Class.cs index 6f1f4f3b9..5a8ea1e74 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Class.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/Class.cs @@ -17,6 +17,11 @@ namespace Tango.CodeGeneration /// public String Name { get; set; } + /// + /// Gets or sets the description. + /// + public String Description { get; set; } + public List InheritsFrom { get; set; } /// diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs index 9216f5c29..958754a60 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/EntityCodeFile.cs @@ -27,11 +27,6 @@ namespace Tango.CodeGeneration /// public List Fields { get; set; } - /// - /// Gets or sets the description. - /// - public String Description { get; set; } - /// /// Initializes a new instance of the class. /// diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EntityDTOCodeFile.cs b/Software/Visual_Studio/Tango.CodeGeneration/EntityDTOCodeFile.cs new file mode 100644 index 000000000..eb97dcd90 --- /dev/null +++ b/Software/Visual_Studio/Tango.CodeGeneration/EntityDTOCodeFile.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.CodeGeneration +{ + /// + /// Represents a database entity DTO code file. + /// + /// + public class EntityDTOCodeFile : Class + { + public String ObservableType { get; set; } + + public String InheritedType { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.CodeGeneration/EntityInheritedDTOCodeFile.cs b/Software/Visual_Studio/Tango.CodeGeneration/EntityInheritedDTOCodeFile.cs new file mode 100644 index 000000000..297050d69 --- /dev/null +++ b/Software/Visual_Studio/Tango.CodeGeneration/EntityInheritedDTOCodeFile.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.CodeGeneration +{ + /// + /// Represents a database entity DTO code file. + /// + /// + public class EntityInheritedDTOCodeFile : Class + { + public String BaseClass { get; set; } + + public EntityInheritedDTOCodeFile(String name, String baseClass) + { + Name = name; + BaseClass = baseClass; + } + } +} diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Property.cs b/Software/Visual_Studio/Tango.CodeGeneration/Property.cs index d7ca5f4a8..cb27ca2a4 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Property.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/Property.cs @@ -22,6 +22,11 @@ namespace Tango.CodeGeneration /// public String Type { get; set; } + /// + /// Gets or sets the property description. + /// + public String Description { get; set; } + /// /// Gets or sets the property setter modifier. /// diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj b/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj index 98c063a86..a3b02afd5 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj +++ b/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj @@ -65,6 +65,8 @@ + + @@ -120,11 +122,13 @@ + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/Tango.UnitTesting/BL/DTO_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/BL/DTO_TST.cs new file mode 100644 index 000000000..58a05ee83 --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/BL/DTO_TST.cs @@ -0,0 +1,42 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL; +using Tango.BL.Builders; +using Tango.BL.DTO; +using System.Data.Entity; +using DeepEqual.Syntax; + +namespace Tango.UnitTesting.BL +{ + [TestClass] + [TestCategory("BL - DTO")] + public class DTO_TST + { + /// + /// Creates the DTO from observable and map DTO to observable test. + /// + [TestMethod] + public void Create_DTO_From_Observable_and_Map_DTO_To_Observable() + { + using (ObservablesContext db = ObservablesContext.CreateDefault()) + { + var config = new ConfigurationBuilder(db).SetFirst().WithIdsPacks().Build(); + var configDTO = ConfigurationDTO.FromObservable(config); + + Assert.IsTrue(configDTO.Equals(config)); + + configDTO.MapToObservable(config); + + Assert.IsTrue(configDTO.Equals(config)); + + config = configDTO.ToObservable(); + + Assert.IsTrue(configDTO.Equals(config)); + } + } + } +} diff --git a/Software/Visual_Studio/Tango.UnitTesting/Core/TemporaryManager_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Core/TemporaryManager_TST.cs new file mode 100644 index 000000000..b017b4e11 --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/Core/TemporaryManager_TST.cs @@ -0,0 +1,34 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using Tango.Core.IO; + +namespace Tango.UnitTesting.Core +{ + [TestClass] + [TestCategory("Temporary Files & Folders")] + public class TemporaryManager_TST + { + [TestMethod] + public void Create_Temporary_Folder_And_Files_Display_And_Delete() + { + TemporaryManager manager = TemporaryManager.Default; + + var folder = manager.CreateFolder(); + + folder.Display(); + + Thread.Sleep(1000); + + for (int i = 0; i < 10; i++) + { + var file = folder.CreateFile(); + Thread.Sleep(1000); + } + } + } +} diff --git a/Software/Visual_Studio/Tango.UnitTesting/Embroidery/Embroidery_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Embroidery/Embroidery_TST.cs new file mode 100644 index 000000000..cf72cd2c5 --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/Embroidery/Embroidery_TST.cs @@ -0,0 +1,31 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.InteropServices; +using System.Text; +using System.Threading.Tasks; +using Tango.PMR; +using Tango.PMR.Embroidery; + +namespace Tango.UnitTesting.Embroidery +{ + [TestClass] + [TestCategory("Embroidery")] + public class Embroidery_TST + { + [DllImport("Tango.Embroidery.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "AnalyzeEmbroideryFile")] + public static extern int AnalyzeEmbroideryFile(IntPtr data, int size, ref IntPtr output); + + [TestMethod] + public void Analyze_Embroidery_File() + { + AnalyzeInput input = new AnalyzeInput(); + input.FilePath = "C:\\Users\\Roy\\Desktop\\RGB_Strips.pes"; + + + NativePMR nativePMR = new NativePMR(AnalyzeEmbroideryFile); + AnalyzeOutput output = nativePMR.Invoke(input); + } + } +} diff --git a/Software/Visual_Studio/Tango.UnitTesting/Embroidery_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Embroidery_TST.cs deleted file mode 100644 index ccd71fdc8..000000000 --- a/Software/Visual_Studio/Tango.UnitTesting/Embroidery_TST.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.InteropServices; -using System.Text; -using System.Threading.Tasks; -using Tango.PMR; -using Tango.PMR.Embroidery; - -namespace Tango.UnitTesting -{ - [TestClass] - [TestCategory("Embroidery")] - public class Embroidery_TST - { - [DllImport("Tango.Embroidery.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "AnalyzeEmbroideryFile")] - public static extern int AnalyzeEmbroideryFile(IntPtr data, int size, ref IntPtr output); - - [TestMethod] - public void Analyze_Embroidery_File() - { - AnalyzeInput input = new AnalyzeInput(); - input.FilePath = "C:\\Users\\Roy\\Desktop\\RGB_Strips.pes"; - - - NativePMR nativePMR = new NativePMR(AnalyzeEmbroideryFile); - AnalyzeOutput output = nativePMR.Invoke(input); - } - } -} diff --git a/Software/Visual_Studio/Tango.UnitTesting/Integration/JobDescriptionFile_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Integration/JobDescriptionFile_TST.cs new file mode 100644 index 000000000..506d1dc94 --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/Integration/JobDescriptionFile_TST.cs @@ -0,0 +1,65 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Operation; +using Tango.PMR.Printing; + + +namespace Tango.UnitTesting.Integration +{ + [TestClass] + [TestCategory("Integration")] + public class JobDescriptionFile_TST + { + [TestMethod] + public void Write_Read_Validate_JobDescriptionFile() + { + Random rnd = new Random(); + + List segments = new List(); + + for (int i = 0; i < 10; i++) + { + JobSegment seg = new JobSegment(); + seg.Length = i; + seg.Name = "Segment " + rnd.Next(); + + for (int j = 0; j < 10; j++) + { + JobBrushStop stop = new JobBrushStop(); + stop.Index = j; + stop.OffsetMeters = j; + stop.OffsetPercent = j; + + for (int k = 0; k < 6; k++) + { + stop.Dispensers.Add(new JobDispenser() + { + DispenserLiquidType = DispenserLiquidType.Cyan, + Index = k, + NanolitterPerSecond = k, + }); + } + + seg.BrushStops.Add(stop); + } + + + + segments.Add(seg); + } + + JobDescriptionFile jobDescriptionFile = new JobDescriptionFile(segments); + MemoryStream ms = jobDescriptionFile.ToStream(); + ms.Position = 0; + var read_segments = JobDescriptionFile.ReadJobDescriptionFile(ms); + ms.Dispose(); + + Assert.IsTrue(Helper.IsDeepEqual(segments, read_segments)); + } + } +} diff --git a/Software/Visual_Studio/Tango.UnitTesting/Integration_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Integration_TST.cs deleted file mode 100644 index cbfc521bd..000000000 --- a/Software/Visual_Studio/Tango.UnitTesting/Integration_TST.cs +++ /dev/null @@ -1,65 +0,0 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.Integration.Operation; -using Tango.PMR.Printing; - - -namespace Tango.UnitTesting -{ - [TestClass] - [TestCategory("Integration")] - public class Integration_TST - { - [TestMethod] - public void _Write_Read_Validate_JobDescriptionFile() - { - Random rnd = new Random(); - - List segments = new List(); - - for (int i = 0; i < 10; i++) - { - JobSegment seg = new JobSegment(); - seg.Length = i; - seg.Name = "Segment " + rnd.Next(); - - for (int j = 0; j < 10; j++) - { - JobBrushStop stop = new JobBrushStop(); - stop.Index = j; - stop.OffsetMeters = j; - stop.OffsetPercent = j; - - for (int k = 0; k < 6; k++) - { - stop.Dispensers.Add(new JobDispenser() - { - DispenserLiquidType = DispenserLiquidType.Cyan, - Index = k, - NanolitterPerSecond = k, - }); - } - - seg.BrushStops.Add(stop); - } - - - - segments.Add(seg); - } - - JobDescriptionFile jobDescriptionFile = new JobDescriptionFile(segments); - MemoryStream ms = jobDescriptionFile.ToStream(); - ms.Position = 0; - var read_segments = JobDescriptionFile.ReadJobDescriptionFile(ms); - ms.Dispose(); - - Assert.IsTrue(Helper.IsDeepEqual(segments, read_segments)); - } - } -} diff --git a/Software/Visual_Studio/Tango.UnitTesting/Logging/Parsing_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Logging/Parsing_TST.cs new file mode 100644 index 000000000..57856f9cb --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/Logging/Parsing_TST.cs @@ -0,0 +1,34 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Logging; +using Tango.Logging; + +namespace Tango.UnitTesting.Logging +{ + [TestClass] + [TestCategory("Logging")] + public class Parsing_TST + { + [TestMethod] + public void Parse_Application_Logs() + { + ApplicationLogFileParser parser = new ApplicationLogFileParser(); + var logFiles = parser.GetLogFiles(); + var logFile = logFiles.OrderByDescending(x => x.DateTime).First(); + var logs = parser.Parse(logFile); + } + + [TestMethod] + public void Parse_Embedded_Logs() + { + EmbeddedLogFileParser parser = new EmbeddedLogFileParser(); + var logFiles = parser.GetLogFiles(); + var logFile = logFiles.OrderByDescending(x => x.DateTime).First(); + var logs = parser.Parse(logFile); + } + } +} diff --git a/Software/Visual_Studio/Tango.UnitTesting/Logging_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Logging_TST.cs deleted file mode 100644 index c4a697715..000000000 --- a/Software/Visual_Studio/Tango.UnitTesting/Logging_TST.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.Integration.Logging; -using Tango.Logging; - -namespace Tango.UnitTesting -{ - [TestClass] - [TestCategory("Logging")] - public class Logging_TST - { - [TestMethod] - public void Parse_Application_Logs() - { - ApplicationLogFileParser parser = new ApplicationLogFileParser(); - var logFiles = parser.GetLogFiles(); - var logFile = logFiles.OrderByDescending(x => x.DateTime).First(); - var logs = parser.Parse(logFile); - } - - [TestMethod] - public void Parse_Embedded_Logs() - { - EmbeddedLogFileParser parser = new EmbeddedLogFileParser(); - var logFiles = parser.GetLogFiles(); - var logFile = logFiles.OrderByDescending(x => x.DateTime).First(); - var logs = parser.Parse(logFile); - } - } -} diff --git a/Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs index 8a126df2e..56a57ab92 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs +++ b/Software/Visual_Studio/Tango.UnitTesting/MachineService/MachineStudio_Controller_TST.cs @@ -6,7 +6,7 @@ using Tango.MachineStudio.Common.Web; using Tango.Transport.Web; using System.Linq; -namespace Tango.UnitTesting.Web +namespace Tango.UnitTesting.MachineService { [TestClass] [TestCategory("Machine Service - Machine Studio")] diff --git a/Software/Visual_Studio/Tango.UnitTesting/MachineService/PPC_Controller_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/MachineService/PPC_Controller_TST.cs index 23ab74f3b..7c3d497b8 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/MachineService/PPC_Controller_TST.cs +++ b/Software/Visual_Studio/Tango.UnitTesting/MachineService/PPC_Controller_TST.cs @@ -7,7 +7,7 @@ using System.Linq; using Tango.PPC.Common.Web; using Tango.Core.IO; -namespace Tango.UnitTesting.Web +namespace Tango.UnitTesting.MachineService { [TestClass] [TestCategory("Machine Service - PPC")] @@ -62,8 +62,8 @@ namespace Tango.UnitTesting.Web }).GetAwaiter().GetResult(); //Now get DEV data source using the machine studio client in order to validate the setup information. - MachineStudio.Common.Web.MachineStudioWebClient msClient = new MachineStudio.Common.Web.MachineStudioWebClient(address, null); - var res6 = msClient.Login(new MachineStudio.Common.Web.LoginRequest() + Tango.MachineStudio.Common.Web.MachineStudioWebClient msClient = new Tango.MachineStudio.Common.Web.MachineStudioWebClient(address, null); + var res6 = msClient.Login(new Tango.MachineStudio.Common.Web.LoginRequest() { Email = "TestUser@twine-s.com", Password = "ASJH_asdjkl1234", diff --git a/Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs deleted file mode 100644 index 455a45895..000000000 --- a/Software/Visual_Studio/Tango.UnitTesting/MachineService_TST.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System; -using System.Threading; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tango.Transport.Web; -using Tango.Web.Authentication; - -namespace Tango.UnitTesting -{ - [TestClass] - [TestCategory("Machine Service")] - public class MachineService_TST - { - private class TokenObject : IEquatable - { - public String Value { get; set; } - - public bool Equals(TokenObject other) - { - return Value == other.Value; - } - } - - [TestMethod] - public void Test_Tokens_Manager() - { - TokensManager tokensManager = new TokensManager(); - - TokenObject t1 = new TokenObject(); - t1.Value = "Roy"; - - TokenObject t2 = new TokenObject(); - t2.Value = "Sagi"; - - String token1 = tokensManager.GetOrCreate(t1).AccessToken; - String token2 = tokensManager.GetOrCreate(t2).AccessToken; - - Assert.AreEqual(tokensManager.GetTokenObject(token1), t1); - Assert.AreEqual(tokensManager.GetTokenObject(token2), t2); - - TokenObject t3 = new TokenObject(); - t3.Value = "Roy"; - - String token3 = tokensManager.GetOrCreate(t3).AccessToken; - Assert.AreEqual(token3, token1); - Assert.AreEqual(tokensManager.GetTokenObject(token1), tokensManager.GetTokenObject(token3)); - - TokenObject tOld = new TokenObject() - { - Value = "Expired Token" - }; - - tokensManager.ExpirationTime = TimeSpan.FromSeconds(2); - - Thread.Sleep(2000); - - String recent_token = tokensManager.GetOrCreate(tOld).AccessToken; - - Thread.Sleep(1000); - - tokensManager.Validate(recent_token); - - Assert.ThrowsException(() => tokensManager.Validate(token1)); - } - } -} diff --git a/Software/Visual_Studio/Tango.UnitTesting/MachineStudio/MachineStudio_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/MachineStudio/MachineStudio_TST.cs new file mode 100644 index 000000000..b8c374d4f --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/MachineStudio/MachineStudio_TST.cs @@ -0,0 +1,147 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using Tango.MachineStudio.Common.Automation; +using TestStack.White; +using TestStack.White.Factory; +using TestStack.White.UIItems; +using TestStack.White.UIItems.Finders; +using TestStack.White.UIItems.ListBoxItems; +using TestStack.White.UIItems.WindowItems; +using TestStack.White.WindowsAPI; + +namespace Tango.UnitTesting.MachineStudio +{ + public static class AutomationExtensions + { + public static T GetByAutomationId(this Window window, String id) where T : IUIItem + { + return window.Get(SearchCriteria.ByAutomationId(id)); + } + } + + [TestClass] + [TestCategory("Machine Studio")] + public class MachineStudio_TST + { + private Window GetMachineStudioWindow() + { + var app = Application.AttachOrLaunch(new System.Diagnostics.ProcessStartInfo() { FileName = Helper.GetMachineStudioPath() }); + var window = app.GetWindow("Tango", InitializeOption.NoCache); + return window; + } + + private Window GetCurrentDialogWindow() + { + var app = Application.AttachOrLaunch(new System.Diagnostics.ProcessStartInfo() { FileName = Helper.GetMachineStudioPath() }); + return app.GetWindows().LastOrDefault(x => x.IsModal); + } + + private void Kill(int delay = 4000) + { + Thread.Sleep(delay); + var app = Application.AttachOrLaunch(new System.Diagnostics.ProcessStartInfo() { FileName = Helper.GetMachineStudioPath() }); + app.Kill(); + } + + private void Wait(int delay = 1000) + { + Thread.Sleep(delay); + } + + private void ConfirmMessageBox() + { + Wait(); + var dialog = GetCurrentDialogWindow(); + + if (dialog != null) + { + dialog.Keyboard.PressSpecialKey(KeyboardInput.SpecialKeys.RETURN); + } + } + + [TestMethod] + public void Login() + { + var window = GetMachineStudioWindow(); + + window.WaitTill(() => window.GetByAutomationId