From e952c7c3e5c4441b60dc0b2dc1641459a35731e3 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 14 Jan 2018 17:09:24 +0200 Subject: Added code comments for: MachineStudio.MachineDesigner. --- .../MachineDesignerModule.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs index db937028b..ca13bd350 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs @@ -12,25 +12,53 @@ using Tango.SharedUI.Helpers; namespace Tango.MachineStudio.MachineDesigner { + /// + /// Represents a machine designer Machine Studio module providing an interactive GUI for managing machine configurations. + /// + /// public class MachineDesignerModule : IStudioModule { + /// + /// Gets the module name. + /// public string Name => "Machine Designer"; + /// + /// Gets the module description. + /// public string Description => "Provides a graphical control over machine configurations. Create, manage and deploy machine configurations using simple drag and drop interface."; + /// + /// Gets the module cover image. + /// public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/machine-designer-module.jpg"); + /// + /// Gets the module entry point view. + /// public FrameworkElement MainView => new MainView(); + /// + /// Gets the permission required to see and load this module. + /// public Permissions Permission => Permissions.RunDeveloperModule; + /// + /// Gets a value indicating whether this module has been initialized. + /// public bool IsInitialized => true; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// public void Dispose() { } + /// + /// Perform any operations required to initialize this module. + /// public void Initialize() { -- cgit v1.3.1 From 0fda2ba3ff49bdc1ffc6833f658e2164af187008 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 16 Jan 2018 12:17:10 +0200 Subject: Embedded RealTimeGraphEx library to solution. Added graphs to technician view. Implemented simple sensors data test using Machine Emulator. --- Software/DB/Tango.mdf | Bin 75497472 -> 75497472 bytes Software/DB/Tango_log.ldf | Bin 8388608 -> 8388608 bytes Software/PMR/Messages/Common/MessageType.proto | 4 + .../Messages/Diagnostics/PushSensorsRequest.proto | 9 + .../Messages/Diagnostics/PushSensorsResponse.proto | 9 + .../Modules/Tango.MachineStudio.DB/DBModule.cs | 9 +- .../DeveloperModule.cs | 6 + .../MachineDesignerModule.cs | 7 + .../Tango.MachineStudio.Stubs/StubsModule.cs | 7 + .../SynchronizationModule.cs | 9 +- .../ViewModels/MainViewVM.cs | 2 +- .../Converters/SecondsToGraphPointsConverter.cs | 23 + .../Converters/TransitionLinkConverter.cs | 55 + .../Helpers/GraphsMaxPointsHelper.cs | 26 + .../Navigation/TechNavigationManager.cs | 17 + .../Navigation/TechNavigationView.cs | 15 + .../Resources/GraphEx.xaml | 126 + .../Tango.MachineStudio.Technician.csproj | 35 + .../TechnicianModule.cs | 14 + .../ViewModelLocator.cs | 15 + .../ViewModels/MainViewVM.cs | 27 + .../ViewModels/SensorsViewVM.cs | 139 + .../Views/MainView.xaml | 90 +- .../Views/MainView.xaml.cs | 3 + .../Views/MotorsView.xaml | 12 + .../Views/MotorsView.xaml.cs | 28 + .../Views/OverviewView.xaml | 12 + .../Views/OverviewView.xaml.cs | 28 + .../Views/SensorsView.xaml | 141 + .../Views/SensorsView.xaml.cs | 53 + .../Tango.MachineStudio.Common/IStudioModule.cs | 5 + .../StudioApplication/IStudioApplicationManager.cs | 5 + .../MachineStudio/Tango.MachineStudio.UI/App.xaml | 5 +- .../Modules/DefaultStudioModuleLoader.cs | 3 + .../Navigation/DefaultNavigationManager.cs | 1 + .../DefaultStudioApplicationManager.cs | 7 + .../SupervisingController/IMainView.cs | 7 +- .../Tango.MachineStudio.UI.csproj | 4 + .../Tango.MachineStudio.UI/ViewModelLocator.cs | 2 +- .../ViewModels/MainViewVM.cs | 11 +- .../Tango.MachineStudio.UI/Views/MainView.xaml | 145 +- .../Tango.MachineStudio.UI/Views/MainView.xaml.cs | 29 + .../RealTimeGraphEx/Components/ComponentBase.cs | 101 + .../Components/ComponentLocationEnum.cs | 17 + .../RealTimeGraphEx/Components/GridLines.cs | 121 + .../Components/MouseValueToolTip.cs | 73 + .../RealTimeGraphEx/Components/YAxisLegends.cs | 61 + .../RealTimeGraphEx/Components/YAxisScroll.cs | 205 + .../RealTimeGraphEx/Components/YAxisTicks.cs | 192 + .../RealTimeGraphEx/Components/YAxisWave.cs | 107 + .../ComponentsItems/YAxisBigTick.cs | 14 + .../RealTimeGraphEx/ComponentsItems/YAxisLabel.cs | 14 + .../RealTimeGraphEx/ComponentsItems/YAxisLegend.cs | 15 + .../ComponentsItems/YAxisSmallTick.cs | 14 + .../RealTimeGraphEx/Controllers/GraphController.cs | 96 + .../Controllers/GraphControllerBase.cs | 62 + .../Controllers/GraphMultiController.cs | 200 + .../RealTimeGraphEx/DX2D/DX10ImageSource.cs | 147 + .../DX2D/DXGraphSurfaceMultiErase.cs | 100 + .../DX2D/DXGraphSurfaceMultiScroll.cs | 85 + .../DX2D/DXGraphSurfaceSingleErase.cs | 91 + .../DX2D/DXGraphSurfaceSingleScroll.cs | 76 + .../RealTimeGraphEx/DX2D/Direct2DControl.cs | 261 + .../SideChains/RealTimeGraphEx/DX2D/Disposer.cs | 35 + .../RealTimeGraphEx/DX2D/NativeMethods.cs | 18 + .../RealTimeGraphEx/DataSeries/DataYSeries.cs | 176 + .../RealTimeGraphExDirectXLineErase.cs | 186 + .../RealTimeGraphExDirectXLineScroll.cs | 276 + .../RealTimeGraphExDirectXMultiLineErase.cs | 225 + .../RealTimeGraphExDirectXMultiLineScroll.cs | 266 + .../RealTimeGraphEx/Enums/OpacityTypeEnum.cs | 15 + .../RealTimeGraphEx/Enums/ZoomDirectionEnum.cs | 15 + .../RealTimeGraphEx/Enums/ZoomModeEnum.cs | 16 + .../ExtensionMethods/BrushExtensions.cs | 72 + .../ExtensionMethods/ColorExtensions.cs | 18 + .../ExtensionMethods/RenderTargetExtensions.cs | 83 + .../FastGraphs/RealTimeGraphExEllipseScroll.cs | 122 + .../FastGraphs/RealTimeGraphExLineErase.cs | 257 + .../FastGraphs/RealTimeGraphExLineScroll.cs | 251 + .../FastGraphs/RealTimeGraphExMultiLineErase.cs | 233 + .../FastGraphs/RealTimeGraphExMultiLineScroll.cs | 267 + .../FastGraphs/RealTimeGraphExShapeErase.cs | 287 + .../FastGraphs/RealTimeGraphExShapeScroll.cs | 276 + .../FastGraphs/RealTimeGraphExWaveErase.cs | 79 + .../FastGraphs/RealTimeGraphExWaveScroll.cs | 66 + .../RealTimeGraphEx/FastGraphs/ShapeTypeEnum.cs | 15 + .../SideChains/RealTimeGraphEx/FodyWeavers.xml | 4 + .../RealTimeGraphEx/Models/ConcurrentPointsList.cs | 429 + .../SideChains/RealTimeGraphEx/Models/RangeData.cs | 33 + .../Models/RealTimeGraphColumnsCollection.cs | 68 + .../Models/RealTimeGraphExColumn.cs | 24 + .../RealTimeGraphEx/Models/RealTimeGraphExPoint.cs | 15 + .../Models/RealTimeGraphExPolygon.cs | 383 + .../Models/RealTimeGraphExReachPolygon.cs | 244 + .../RealTimeGraphEx/Properties/AssemblyInfo.cs | 55 + .../Properties/Resources.Designer.cs | 62 + .../RealTimeGraphEx/Properties/Resources.resx | 117 + .../Properties/Settings.Designer.cs | 30 + .../RealTimeGraphEx/Properties/Settings.settings | 7 + .../ReachGraphs/RealTimeGraphExReachCircle.cs | 295 + .../ReachGraphs/RealTimeGraphExReachLineErase.cs | 210 + .../ReachGraphs/RealTimeGraphExReachLineScroll.cs | 270 + .../RealTimeGraphExReachMultiLineErase.cs | 196 + .../RealTimeGraphExReachMultiLineScroll.cs | 229 + .../ReachGraphs/RealTimeGraphExReachVUMeter.cs | 289 + .../ReachGraphs/RealTimeGraphExReachWaveScroll.cs | 44 + .../RealTimeGraphEx/RealTimeGraphEx.csproj | 225 + .../RealTimeGraphEx/RealTimeGraphExBase.cs | 1346 + .../RealTimeGraphEx/RealTimeGraphExMultiBase.cs | 74 + .../Referenced Assemblies/SharpDX.DXGI.dll | Bin 0 -> 90624 bytes .../Referenced Assemblies/SharpDX.DXGI.xml | 4365 ++ .../Referenced Assemblies/SharpDX.Direct2D1.dll | Bin 0 -> 230912 bytes .../Referenced Assemblies/SharpDX.Direct2D1.xml | 24418 ++++++++++ .../Referenced Assemblies/SharpDX.Direct3D10.dll | Bin 0 -> 179200 bytes .../Referenced Assemblies/SharpDX.Direct3D10.xml | 23120 +++++++++ .../Referenced Assemblies/SharpDX.Direct3D9.dll | Bin 0 -> 349696 bytes .../Referenced Assemblies/SharpDX.Direct3D9.xml | 36476 ++++++++++++++ .../Referenced Assemblies/SharpDX.dll | Bin 0 -> 558080 bytes .../Referenced Assemblies/SharpDX.xml | 48704 +++++++++++++++++++ .../RealTimeGraphEx/Resources/Resources.xaml | 74 + .../RealTimeGraphEx/Synchronization/SyncManager.cs | 63 + .../WriteableBitmap/BitmapContext.cs | 468 + .../WriteableBitmap/BitmapFactory.cs | 214 + .../WriteableBitmap/NativeMethods.cs | 41 + .../WriteableBitmapAntialiasingExtensions.cs | 444 + .../WriteableBitmapBaseExtensions.cs | 480 + .../WriteableBitmapBlitExtensions.cs | 704 + .../WriteableBitmapContextExtensions.cs | 55 + .../WriteableBitmapConvertExtensions.cs | 344 + .../WriteableBitmapFillExtensions.cs | 1205 + .../WriteableBitmapFilterExtensions.cs | 423 + .../WriteableBitmapLineExtensions.cs | 1316 + .../WriteableBitmapShapeExtensions.cs | 489 + .../WriteableBitmapSplineExtensions.cs | 341 + .../WriteableBitmapTransformationExtensions.cs | 623 + .../SideChains/RealTimeGraphEx/packages.config | 5 + .../Tango.Emulations/Emulators/MachineEmulator.cs | 24 + .../Operators/IMachineOperator.cs | 23 + .../Tango.Integration/Operators/MachineOperator.cs | 85 + .../Tango.Integration/Services/ComPortInfo.cs | 74 + .../Services/ExternalBridgeScanner.cs | 17 +- .../Services/ExternalBridgeTcpClient.cs | 3 +- .../Services/ExternalBridgeUsbClient.cs | 3 +- .../Services/IExternalBridgeClient.cs | 3 +- .../Tango.Integration/Tango.Integration.csproj | 20 + .../Tango.Integration/packages.config | 6 + .../Visual_Studio/Tango.PMR/Common/MessageType.cs | 12 +- .../Tango.PMR/Diagnostics/PushSensorsRequest.cs | 131 + .../Tango.PMR/Diagnostics/PushSensorsResponse.cs | 153 + Software/Visual_Studio/Tango.PMR/Tango.PMR.csproj | 2 + Software/Visual_Studio/Tango.PMR/TangoMessage.cs | 4 +- .../Visual_Studio/Tango.Settings/Integration.cs | 9 +- .../MachineStudioSettings/MachineStudio.cs | 6 + .../MachineStudioSettings/TechnicianModule.cs | 21 + .../Tango.Settings/Tango.Settings.csproj | 1 + .../Controls/MultiTransitionControl.xaml.cs | 31 +- Software/Visual_Studio/Tango.SharedUI/ViewModel.cs | 9 + Software/Visual_Studio/Tango.sln | 23 + .../Tango.MachineEM.UI/ViewModels/MainViewVM.cs | 8 +- 159 files changed, 156002 insertions(+), 138 deletions(-) create mode 100644 Software/PMR/Messages/Diagnostics/PushSensorsRequest.proto create mode 100644 Software/PMR/Messages/Diagnostics/PushSensorsResponse.proto create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/SecondsToGraphPointsConverter.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/TransitionLinkConverter.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Helpers/GraphsMaxPointsHelper.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Navigation/TechNavigationManager.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Navigation/TechNavigationView.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Resources/GraphEx.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/SensorsViewVM.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MotorsView.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MotorsView.xaml.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/OverviewView.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/OverviewView.xaml.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/SensorsView.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/SensorsView.xaml.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/ComponentBase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/ComponentLocationEnum.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/GridLines.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/MouseValueToolTip.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/YAxisLegends.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/YAxisScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/YAxisTicks.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/YAxisWave.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ComponentsItems/YAxisBigTick.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ComponentsItems/YAxisLabel.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ComponentsItems/YAxisLegend.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ComponentsItems/YAxisSmallTick.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Controllers/GraphController.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Controllers/GraphControllerBase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Controllers/GraphMultiController.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DX2D/DX10ImageSource.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DX2D/DXGraphSurfaceMultiErase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DX2D/DXGraphSurfaceMultiScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DX2D/DXGraphSurfaceSingleErase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DX2D/DXGraphSurfaceSingleScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DX2D/Direct2DControl.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DX2D/Disposer.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DX2D/NativeMethods.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DataSeries/DataYSeries.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DirectXGraphs/RealTimeGraphExDirectXLineErase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DirectXGraphs/RealTimeGraphExDirectXLineScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DirectXGraphs/RealTimeGraphExDirectXMultiLineErase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/DirectXGraphs/RealTimeGraphExDirectXMultiLineScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Enums/OpacityTypeEnum.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Enums/ZoomDirectionEnum.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Enums/ZoomModeEnum.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ExtensionMethods/BrushExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ExtensionMethods/ColorExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ExtensionMethods/RenderTargetExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExEllipseScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExLineErase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExLineScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineErase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExMultiLineScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExShapeErase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExShapeScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExWaveErase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/RealTimeGraphExWaveScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/FastGraphs/ShapeTypeEnum.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/FodyWeavers.xml create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Models/ConcurrentPointsList.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Models/RangeData.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Models/RealTimeGraphColumnsCollection.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Models/RealTimeGraphExColumn.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Models/RealTimeGraphExPoint.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Models/RealTimeGraphExPolygon.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Models/RealTimeGraphExReachPolygon.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Properties/AssemblyInfo.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Properties/Resources.Designer.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Properties/Resources.resx create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Properties/Settings.Designer.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Properties/Settings.settings create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ReachGraphs/RealTimeGraphExReachCircle.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ReachGraphs/RealTimeGraphExReachLineErase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ReachGraphs/RealTimeGraphExReachLineScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ReachGraphs/RealTimeGraphExReachMultiLineErase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ReachGraphs/RealTimeGraphExReachMultiLineScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ReachGraphs/RealTimeGraphExReachVUMeter.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/ReachGraphs/RealTimeGraphExReachWaveScroll.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/RealTimeGraphEx.csproj create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/RealTimeGraphExBase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/RealTimeGraphExMultiBase.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Referenced Assemblies/SharpDX.DXGI.dll create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Referenced Assemblies/SharpDX.DXGI.xml create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Referenced Assemblies/SharpDX.Direct2D1.dll create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Referenced Assemblies/SharpDX.Direct2D1.xml create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Referenced Assemblies/SharpDX.Direct3D10.dll create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Referenced Assemblies/SharpDX.Direct3D10.xml create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Referenced Assemblies/SharpDX.Direct3D9.dll create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Referenced Assemblies/SharpDX.Direct3D9.xml create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Referenced Assemblies/SharpDX.dll create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Referenced Assemblies/SharpDX.xml create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Resources/Resources.xaml create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/Synchronization/SyncManager.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/BitmapContext.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/BitmapFactory.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/NativeMethods.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/WriteableBitmapAntialiasingExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/WriteableBitmapBaseExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/WriteableBitmapBlitExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/WriteableBitmapContextExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/WriteableBitmapConvertExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/WriteableBitmapFillExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/WriteableBitmapFilterExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/WriteableBitmapLineExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/WriteableBitmapShapeExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/WriteableBitmapSplineExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/WriteableBitmap/WriteableBitmapTransformationExtensions.cs create mode 100644 Software/Visual_Studio/SideChains/RealTimeGraphEx/packages.config create mode 100644 Software/Visual_Studio/Tango.Integration/Operators/IMachineOperator.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Services/ComPortInfo.cs create mode 100644 Software/Visual_Studio/Tango.PMR/Diagnostics/PushSensorsRequest.cs create mode 100644 Software/Visual_Studio/Tango.PMR/Diagnostics/PushSensorsResponse.cs create mode 100644 Software/Visual_Studio/Tango.Settings/MachineStudioSettings/TechnicianModule.cs (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs') diff --git a/Software/DB/Tango.mdf b/Software/DB/Tango.mdf index da5cc939b..6ec476601 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 35f93651b..3d4d754ea 100644 Binary files a/Software/DB/Tango_log.ldf and b/Software/DB/Tango_log.ldf differ diff --git a/Software/PMR/Messages/Common/MessageType.proto b/Software/PMR/Messages/Common/MessageType.proto index d1b34ba77..c34263440 100644 --- a/Software/PMR/Messages/Common/MessageType.proto +++ b/Software/PMR/Messages/Common/MessageType.proto @@ -57,4 +57,8 @@ enum MessageType OverrideDataBaseResponse = 1006; KeepAliveRequest = 1007; KeepAliveResponse = 1008; + + //Diagnostics + PushSensorsRequest = 2000; + PushSensorsResponse = 2001; } diff --git a/Software/PMR/Messages/Diagnostics/PushSensorsRequest.proto b/Software/PMR/Messages/Diagnostics/PushSensorsRequest.proto new file mode 100644 index 000000000..0617a656f --- /dev/null +++ b/Software/PMR/Messages/Diagnostics/PushSensorsRequest.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +package Tango.PMR.Diagnostics; +option java_package = "com.twine.tango.pmr.diagnostics"; + +message PushSensorsRequest +{ + +} \ No newline at end of file diff --git a/Software/PMR/Messages/Diagnostics/PushSensorsResponse.proto b/Software/PMR/Messages/Diagnostics/PushSensorsResponse.proto new file mode 100644 index 000000000..710e31bcd --- /dev/null +++ b/Software/PMR/Messages/Diagnostics/PushSensorsResponse.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +package Tango.PMR.Diagnostics; +option java_package = "com.twine.tango.pmr.diagnostics"; + +message PushSensorsResponse +{ + repeated int32 Temperature = 1; +} \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs index 4f751d9da..c433a4cd4 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs @@ -17,10 +17,8 @@ namespace Tango.MachineStudio.DB /// public class DBModule : IStudioModule { - /// - /// The is initialized - /// private bool _isInitialized; + private bool _isLoaded; /// /// Gets the module name. @@ -52,6 +50,11 @@ namespace Tango.MachineStudio.DB /// public Permissions Permission => Permissions.RunDataBaseModule; + /// + /// Sets a value indicating whether this module is loaded. + /// + public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + /// /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs index c3d351468..4401245a9 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs @@ -15,6 +15,7 @@ namespace Tango.MachineStudio.Developer public class DeveloperModule : IStudioModule { private bool _isInitialized; + private bool _isLoaded; public string Name => "Developer"; @@ -26,6 +27,11 @@ namespace Tango.MachineStudio.Developer public bool IsInitialized => _isInitialized; + /// + /// Sets a value indicating whether this module is loaded. + /// + public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + public Permissions Permission => Permissions.RunDeveloperModule; public void Dispose() diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs index ca13bd350..8fbac790f 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs @@ -18,6 +18,8 @@ namespace Tango.MachineStudio.MachineDesigner /// public class MachineDesignerModule : IStudioModule { + private bool _isLoaded; + /// /// Gets the module name. /// @@ -33,6 +35,11 @@ namespace Tango.MachineStudio.MachineDesigner /// public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/machine-designer-module.jpg"); + /// + /// Sets a value indicating whether this module is loaded. + /// + public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + /// /// Gets the module entry point view. /// diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs index 23214cf55..8b072ea46 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs @@ -18,6 +18,8 @@ namespace Tango.MachineStudio.Stubs /// public class StubsModule : IStudioModule { + private bool _isLoaded; + /// /// Gets the module name. /// @@ -38,6 +40,11 @@ namespace Tango.MachineStudio.Stubs /// public FrameworkElement MainView => new MainView(); + /// + /// Sets a value indicating whether this module is loaded. + /// + public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + /// /// Gets the permission required to see and load this module. /// diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/SynchronizationModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/SynchronizationModule.cs index f6381a482..4a753b05e 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/SynchronizationModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/SynchronizationModule.cs @@ -18,9 +18,7 @@ namespace Tango.MachineStudio.Synchronization /// public class SynchronizationModule : IStudioModule { - /// - /// The is initialized - /// + private bool _isLoaded; private bool _isInitialized; /// @@ -43,6 +41,11 @@ namespace Tango.MachineStudio.Synchronization /// public FrameworkElement MainView => new MainView(); + /// + /// Sets a value indicating whether this module is loaded. + /// + public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + /// /// Gets a value indicating whether this module has been initialized. /// diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/ViewModels/MainViewVM.cs index 48a5c64bd..21d76d7d7 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/ViewModels/MainViewVM.cs @@ -22,7 +22,7 @@ namespace Tango.MachineStudio.Synchronization.ViewModels MainViewLogger logger = new MainViewLogger(); logger.NewLog += (output) => { - Log += output + Environment.NewLine; + //Log += output + Environment.NewLine; }; LogManager.RegisterLogger(logger); diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/SecondsToGraphPointsConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/SecondsToGraphPointsConverter.cs new file mode 100644 index 000000000..3120c44a6 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/SecondsToGraphPointsConverter.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Data; + +namespace Tango.MachineStudio.Technician.Converters +{ + public class SecondsToGraphPointsConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + double arrLength = double.Parse(parameter.ToString()); + return Helpers.GraphsMaxPointsHelper.GetMaxPoints(arrLength); + } + + public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + return value; + } + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/TransitionLinkConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/TransitionLinkConverter.cs new file mode 100644 index 000000000..d67f3a259 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/TransitionLinkConverter.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; + +namespace Tango.MachineStudio.Technician.Converters +{ + /// + /// Binding converter for converting TransitionControl child Tag to text style. + /// + /// + /// This converter is used by the patient page tabs, changing the selected tab text style to bold/normal. + /// + public class TransitionLinkConverter : IValueConverter + { + /// + /// Converts a ContentControl to font style. + /// + /// Content control. + /// + /// + /// + /// Font style. + public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + ContentControl control = value as ContentControl; + + if (control != null && control.Tag != null && control.Tag.ToString().ToLower() == parameter.ToString().ToLower()) + { + return FontWeights.Bold; + } + else + { + return FontWeights.Normal; + } + } + + /// + /// Not Implemented. + /// + /// + /// + /// + /// + /// + public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + return value; + } + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Helpers/GraphsMaxPointsHelper.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Helpers/GraphsMaxPointsHelper.cs new file mode 100644 index 000000000..87aab5967 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Helpers/GraphsMaxPointsHelper.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Settings; + +namespace Tango.MachineStudio.Technician.Helpers +{ + public static class GraphsMaxPointsHelper + { + public static int GetMaxPoints(double arrLength) + { + try + { + double seconds = SettingsManager.Default.MachineStudio.TechnicianModule.GraphsDuration; + double pullRate = SettingsManager.Default.MachineStudio.TechnicianModule.GraphsPullingInterval; + return (int)(((pullRate * arrLength * 10 * seconds) * (10 / pullRate)) * 0.65); + } + catch (Exception) + { + return 300; + } + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Navigation/TechNavigationManager.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Navigation/TechNavigationManager.cs new file mode 100644 index 000000000..f473776d1 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Navigation/TechNavigationManager.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.MachineStudio.Technician.Views; + +namespace Tango.MachineStudio.Technician.Navigation +{ + public class TechNavigationManager + { + public void NavigateTo(TechNavigationView view) + { + MainView.Instance.TransitionControl.AutoNavigate(view.ToString()); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Navigation/TechNavigationView.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Navigation/TechNavigationView.cs new file mode 100644 index 000000000..27d9fb09b --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Navigation/TechNavigationView.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.MachineStudio.Technician.Navigation +{ + public enum TechNavigationView + { + Overview, + Motors, + Sensors, + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Resources/GraphEx.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Resources/GraphEx.xaml new file mode 100644 index 000000000..85cccc2dd --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Resources/GraphEx.xaml @@ -0,0 +1,126 @@ + + + Segoe UI + Lucida Console + + 28 + 26 + 20 + 16 + 14 + 12 + 9 + + + Silver + #FFE9E9E9 + Gray + #03A9F4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Tango.MachineStudio.Technician.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Tango.MachineStudio.Technician.csproj index 2c5df42fc..097917fef 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Tango.MachineStudio.Technician.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Tango.MachineStudio.Technician.csproj @@ -77,15 +77,46 @@ + + + + + + + + MotorsView.xaml + + + OverviewView.xaml + + + SensorsView.xaml + MainView.xaml GlobalVersionInfo.cs + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -117,6 +148,10 @@ + + {b9ae25d6-be35-492f-9079-21a7f3e6f7cc} + RealTimeGraphEx + {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} Tango.Core diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs index a4eaff71e..b715b6710 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs @@ -14,6 +14,10 @@ namespace Tango.MachineStudio.Technician { public class TechnicianModule : IStudioModule { + private bool _isLoaded; + + public event EventHandler IsLoadedChanged; + public string Name => "Technician"; public string Description => "Provides access to low level machine components by exposing diagnostics and profiling tools."; @@ -26,6 +30,16 @@ namespace Tango.MachineStudio.Technician public bool IsInitialized => true; + /// + /// Sets a value indicating whether this module is loaded. + /// + public bool IsLoaded + { + get { return _isLoaded; } + set { _isLoaded = value; IsLoadedChanged?.Invoke(this, value); } + } + + public void Dispose() { diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModelLocator.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModelLocator.cs index f922d5ec4..e7fea686d 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModelLocator.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModelLocator.cs @@ -1,6 +1,7 @@ using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Ioc; using Microsoft.Practices.ServiceLocation; +using Tango.MachineStudio.Technician.Navigation; using Tango.MachineStudio.Technician.ViewModels; namespace Tango.MachineStudio.Technician @@ -17,7 +18,13 @@ namespace Tango.MachineStudio.Technician static ViewModelLocator() { ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default); + SimpleIoc.Default.Register(); + SimpleIoc.Default.Register(); + + SimpleIoc.Default.Unregister(); + + SimpleIoc.Default.Register(); } public static MainViewVM MainViewVM @@ -27,5 +34,13 @@ namespace Tango.MachineStudio.Technician return ServiceLocator.Current.GetInstance(); } } + + public static SensorsViewVM SensorsViewVM + { + get + { + return ServiceLocator.Current.GetInstance(); + } + } } } \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MainViewVM.cs index c715af6cb..68852fe20 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MainViewVM.cs @@ -3,12 +3,39 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Tango.Core.Commands; +using Tango.MachineStudio.Technician.Navigation; using Tango.SharedUI; namespace Tango.MachineStudio.Technician.ViewModels { public class MainViewVM : ViewModel { + private TechNavigationManager _navigation; + #region Constructors + + public MainViewVM(TechNavigationManager navigationManager) + { + _navigation = navigationManager; + NavigateToViewCommand = new RelayCommand(NavigateToView); + } + + #endregion + + #region Commands + + public RelayCommand NavigateToViewCommand { get; set; } + + #endregion + + #region Private Methods + + private void NavigateToView(string view) + { + _navigation.NavigateTo((TechNavigationView)Enum.Parse(typeof(TechNavigationView), view, true)); + } + + #endregion } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/SensorsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/SensorsViewVM.cs new file mode 100644 index 000000000..cb3114f4c --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/SensorsViewVM.cs @@ -0,0 +1,139 @@ +using RealTimeGraphEx.Controllers; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Operators; +using Tango.Logging; +using Tango.MachineStudio.Common.Modules; +using Tango.MachineStudio.Common.StudioApplication; +using Tango.PMR.Diagnostics; +using Tango.Settings; +using Tango.SharedUI; + +namespace Tango.MachineStudio.Technician.ViewModels +{ + public class SensorsViewVM : ViewModel + { + private List _controllers; + + public IStudioApplicationManager ApplicationManager { get; set; } + + private IMachineOperator _machineOperator; + public IMachineOperator MachineOperator + { + get { return _machineOperator; } + set { _machineOperator = value; RaisePropertyChangedAuto(); } + } + + public SensorsViewVM(IStudioApplicationManager applicationManager, IStudioModuleLoader moduleLoader) + { + ApplicationManager = applicationManager; + ApplicationManager.ConnectedMachineChanged += ApplicationManager_ConnectedMachineChanged; + + InitializeConnectedMachine(ApplicationManager.ConnectedMachine); + + if (!DesignMode) + { + //Set graphs FIFO capacity by seconds (this will be converted to MaxPoints by the view). + GraphSeconds = SettingsManager.Default.MachineStudio.TechnicianModule.GraphsDuration; + + _controllers = new List(); + + TemperatureController = new GraphController(); + PressureController = new GraphController(); + + _controllers.Add(TemperatureController); + _controllers.Add(PressureController); + + var module = moduleLoader.UserModules.SingleOrDefault(x => x is TechnicianModule) as TechnicianModule; + + if (module != null) + { + module.IsLoadedChanged += Module_IsLoadedChanged; + } + } + } + + private void Module_IsLoadedChanged(object sender, bool loaded) + { + //_controllers.ForEach(x => x.ChangeRenderMode(loaded)); + } + + private void ApplicationManager_ConnectedMachineChanged(object sender, Integration.Services.IExternalBridgeClient machineOperator) + { + InitializeConnectedMachine(machineOperator); + } + + private void MachineOperator_SensorsDataAvailable(object sender, PushSensorsResponse data) + { + TemperatureController.PushData(data.Temperature.ToArray().Select(Convert.ToDouble).ToArray()); + PressureController.PushData(data.Temperature.ToArray().Select(Convert.ToDouble).ToArray()); + } + + private void InitializeConnectedMachine(IMachineOperator machineOperator) + { + MachineOperator = machineOperator; + + if (MachineOperator != null) + { + MachineOperator.EnableSensorsUpdate = true; + MachineOperator.SensorsDataAvailable -= MachineOperator_SensorsDataAvailable; + MachineOperator.SensorsDataAvailable += MachineOperator_SensorsDataAvailable; + } + } + + #region Graphs Controllers + + private GraphController _temperatureController; + /// + /// Gets or sets the temperature sensor graph controller . + /// + public GraphController TemperatureController + { + get { return _temperatureController; } + set { _temperatureController = value; RaisePropertyChanged(nameof(TemperatureController)); } + } + + private GraphController _pressureController; + /// + /// Gets or sets the pressure sensor graph controller . + /// + public GraphController PressureController + { + get { return _pressureController; } + set { _pressureController = value; RaisePropertyChanged(nameof(PressureController)); } + } + + #endregion + + private int _graphSeconds; + /// + /// Gets or sets the graphs number of seconds to complete FIFO capacity. + /// + public int GraphSeconds + { + get { return _graphSeconds; } + set { _graphSeconds = value; RaisePropertyChanged(nameof(GraphSeconds)); } + } + + /// + /// Clears the graphs. + /// + public void ClearGraphs() + { + _controllers.ForEach(x => x.Clear()); + } + + /// + /// Creates a dummy list with default value of -1000 (used to fill graphs buffer). + /// + /// List length. + /// + private List CreateDummyList(int count) + { + return Enumerable.Repeat(-1000, count + 1).ToList(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MainView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MainView.xaml index 1337358e1..6b84881fd 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MainView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MainView.xaml @@ -5,10 +5,98 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:global="clr-namespace:Tango.MachineStudio.Technician" xmlns:vm="clr-namespace:Tango.MachineStudio.Technician.ViewModels" + xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" + xmlns:sharedUI="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI" xmlns:local="clr-namespace:Tango.MachineStudio.Technician.Views" + xmlns:converters="clr-namespace:Tango.MachineStudio.Technician.Converters" mc:Ignorable="d" d:DesignHeight="720" d:DesignWidth="1280" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}" Background="White"> + + + + + + + + + + + + + - Technician + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MainView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MainView.xaml.cs index 0701fbc50..b07fc597e 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MainView.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MainView.xaml.cs @@ -20,9 +20,12 @@ namespace Tango.MachineStudio.Technician.Views /// public partial class MainView : UserControl { + public static MainView Instance { get; set; } + public MainView() { InitializeComponent(); + Instance = this; } } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MotorsView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MotorsView.xaml new file mode 100644 index 000000000..3fb49d457 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MotorsView.xaml @@ -0,0 +1,12 @@ + + + MOTORS + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MotorsView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MotorsView.xaml.cs new file mode 100644 index 000000000..bd548766c --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/MotorsView.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.MachineStudio.Technician.Views +{ + /// + /// Interaction logic for MotorsView.xaml + /// + public partial class MotorsView : UserControl + { + public MotorsView() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/OverviewView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/OverviewView.xaml new file mode 100644 index 000000000..3c064346d --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/OverviewView.xaml @@ -0,0 +1,12 @@ + + + OVERVIEW + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/OverviewView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/OverviewView.xaml.cs new file mode 100644 index 000000000..aeba42c00 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/OverviewView.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.MachineStudio.Technician.Views +{ + /// + /// Interaction logic for OverviewView.xaml + /// + public partial class OverviewView : UserControl + { + public OverviewView() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/SensorsView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/SensorsView.xaml new file mode 100644 index 000000000..2e074ec3c --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/SensorsView.xaml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/SensorsView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/SensorsView.xaml.cs new file mode 100644 index 000000000..4727a3603 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Views/SensorsView.xaml.cs @@ -0,0 +1,53 @@ +using Microsoft.Practices.ServiceLocation; +using RealTimeGraphEx.Synchronization; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.MachineStudio.Technician.Views +{ + /// + /// Interaction logic for DebugView.xaml + /// + public partial class SensorsView : UserControl + { + private SyncManager _syncManager; + + public SensorsView() + { + InitializeComponent(); + + _syncManager = new SyncManager(); + _syncManager.AddGraph(graphTemperature); + _syncManager.AddGraph(graphPressure); + _syncManager.RefreshRate = 30; + _syncManager.Start(); + } + + private void OnGraphFullScreen(object sender, RoutedEventArgs e) + { + + } + + private void Graph_MouseEnter(object sender, MouseEventArgs e) + { + + } + + private void Graph_MouseLeave(object sender, MouseEventArgs e) + { + + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioModule.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioModule.cs index 21377fb5f..118afff7e 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioModule.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioModule.cs @@ -49,5 +49,10 @@ namespace Tango.MachineStudio.Common /// Perform any operations required to initialize this module. /// void Initialize(); + + /// + /// Sets a value indicating whether this module is loaded. + /// + bool IsLoaded { set; get; } } } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs index dfdac67c7..a88a045a6 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs @@ -12,6 +12,11 @@ namespace Tango.MachineStudio.Common.StudioApplication /// public interface IStudioApplicationManager { + /// + /// Occurs when the connected machine property has changed. + /// + event EventHandler ConnectedMachineChanged; + /// /// Gets a value indicating whether Machine Studio is shutting down. /// diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml index 8e5876e79..fe50851a0 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml @@ -11,7 +11,10 @@ - + + + + diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs index 5944af2d1..0e1bd829b 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs @@ -25,6 +25,7 @@ namespace Tango.MachineStudio.UI.Modules { private IAuthenticationProvider _authenticationProvider; private bool _loaded; + public event EventHandler ModulesLoaded; /// /// Initializes a new instance of the class. @@ -115,6 +116,8 @@ namespace Tango.MachineStudio.UI.Modules { UserModules = AllModules.Where(x => _authenticationProvider.CurrentUser.HasPermission(x.Permission)).ToObservableCollection(); } + + ModulesLoaded?.Invoke(this, new EventArgs()); } } } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Navigation/DefaultNavigationManager.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Navigation/DefaultNavigationManager.cs index 2fa8c7562..56abbd702 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Navigation/DefaultNavigationManager.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Navigation/DefaultNavigationManager.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Tango.MachineStudio.Common; using Tango.MachineStudio.Common.Navigation; namespace Tango.MachineStudio.UI.Navigation diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs index 68af7bdc3..06b4dca7c 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs @@ -48,6 +48,11 @@ namespace Tango.MachineStudio.UI.StudioApplication /// private IExternalBridgeClient _connectedMachine; + /// + /// Occurs when the connected machine property has changed. + /// + public event EventHandler ConnectedMachineChanged; + /// /// Gets or sets the currently connected machine if any. /// @@ -66,6 +71,8 @@ namespace Tango.MachineStudio.UI.StudioApplication _connectedMachine.StateChanged -= ConnectedMachine_StateChanged; _connectedMachine.StateChanged += ConnectedMachine_StateChanged; } + + ConnectedMachineChanged?.Invoke(this, _connectedMachine); } } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/SupervisingController/IMainView.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/SupervisingController/IMainView.cs index 3de061de8..fd8ef4be5 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/SupervisingController/IMainView.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/SupervisingController/IMainView.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Tango.MachineStudio.Common; using Tango.SharedUI; namespace Tango.MachineStudio.UI.SupervisingController @@ -13,6 +14,10 @@ namespace Tango.MachineStudio.UI.SupervisingController /// public interface IMainView : IView { - + /// + /// Navigates to the specified studio module. + /// + /// The module. + void NavigateToModule(IStudioModule module); } } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj index b752ca4b7..9b498cfb6 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj @@ -241,6 +241,10 @@ + + {b9ae25d6-be35-492f-9079-21a7f3e6f7cc} + RealTimeGraphEx + {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} Tango.Core diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs index 5f315f7f4..7ceab8268 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs @@ -67,7 +67,7 @@ namespace Tango.MachineStudio.UI if (!ViewModelBase.IsInDesignModeStatic) { - LogManager.RegisterLogger(new VSOutputLogger()); + //LogManager.RegisterLogger(new VSOutputLogger()); LogManager.RegisterLogger(new FileLogger()); } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs index fcbdc90a3..fdab1a93c 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs @@ -1,4 +1,5 @@ -using System; +using GalaSoft.MvvmLight.Ioc; +using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; @@ -275,14 +276,22 @@ namespace Tango.MachineStudio.UI.ViewModels { IsMenuOpened = false; + foreach (var m in StudioModuleLoader.AllModules.Where(x => x != module)) + { + m.IsLoaded = false; + } + if (module != null) { CurrentModule = module; + CurrentModule.IsLoaded = true; IsModuleLoaded = true; + View.NavigateToModule(module); } else { IsModuleLoaded = false; + View.NavigateToModule(null); } } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/MainView.xaml b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/MainView.xaml index 616187288..99654f602 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/MainView.xaml +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/MainView.xaml @@ -165,95 +165,66 @@ - - - - - - - Welcome to Machine Studio - Select Your Studio Module... - - + + + + + + + + + + + Welcome to Machine Studio + Select Your Studio Module... + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/packages.config b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/packages.config new file mode 100644 index 000000000..4fd672b32 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/packages.config @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs index 8fbac790f..b0160abd5 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs @@ -48,7 +48,7 @@ namespace Tango.MachineStudio.MachineDesigner /// /// Gets the permission required to see and load this module. /// - public Permissions Permission => Permissions.RunDeveloperModule; + public Permissions Permission => Permissions.RunMachineDesignerModule; /// /// Gets a value indicating whether this module has been initialized. diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Tango.MachineStudio.MachineDesigner.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Tango.MachineStudio.MachineDesigner.csproj index ac1616401..64c54b357 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Tango.MachineStudio.MachineDesigner.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Tango.MachineStudio.MachineDesigner.csproj @@ -85,6 +85,9 @@ MachineVersionDialog.xaml + + MachineView.xaml + MainView.xaml @@ -96,6 +99,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs index 24f2f6d43..9f44bc270 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs @@ -13,10 +13,12 @@ using Tango.DAL.Observables; using Tango.MachineStudio.Common.Notifications; using Tango.SharedUI; using SimpleValidator.Extensions; +using Tango.MachineStudio.Common.StudioApplication; +using Tango.MachineStudio.Common; namespace Tango.MachineStudio.MachineDesigner.ViewModels { - public class MainViewVM : ViewModel + public class MainViewVM : ViewModel, IModuleRequestListener { private bool _isSaving; private INotificationProvider _notification; @@ -631,5 +633,22 @@ namespace Tango.MachineStudio.MachineDesigner.ViewModels } #endregion + + #region IModuleRequestListener + + /// + /// Called when the request has been made. + /// + /// The module instance. + /// The arguments. + public void OnRequestModule(IStudioModule module, object args) + { + if (module is MachineDesignerModule) + { + SelectedMachine = args as Machine; + } + } + + #endregion } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MachineView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MachineView.xaml new file mode 100644 index 000000000..a54f9bbdc --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MachineView.xaml @@ -0,0 +1,327 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hardware + + + + + + Add IDS + + + + + + Remove IDS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + NO IDS PACKS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Touch Panel + + + + + + Embedded Firmware + + + + + + Dispensers + + + + + + Mid Tanks + + + + + + Cartridges + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MachineView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MachineView.xaml.cs new file mode 100644 index 000000000..67fa0d5bf --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MachineView.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.MachineStudio.MachineDesigner.Views +{ + /// + /// Interaction logic for MachineView.xaml + /// + public partial class MachineView : UserControl + { + public MachineView() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls/TableGrid.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls/TableGrid.cs new file mode 100644 index 000000000..07fd0c446 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls/TableGrid.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; + +namespace Tango.MachineStudio.Common.Controls +{ + public class TableGrid : Grid + { + public TableGrid() + { + ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(1, GridUnitType.Auto) }); + ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(1, GridUnitType.Star) }); + this.Loaded += TableGrid_Loaded; + } + + private void TableGrid_Loaded(object sender, RoutedEventArgs e) + { + InvalidateGrid(); + } + + protected override void OnVisualChildrenChanged(DependencyObject visualAdded, DependencyObject visualRemoved) + { + base.OnVisualChildrenChanged(visualAdded, visualRemoved); + } + + protected override Size ArrangeOverride(Size arrangeSize) + { + return base.ArrangeOverride(arrangeSize); + } + + private void InvalidateGrid() + { + RowDefinitions.Clear(); + RowDefinitions.Add(new RowDefinition() { Height = new GridLength(50, GridUnitType.Pixel) }); + + int currentRow = 0; + + for (int i = 0; i < Children.Count; i++) + { + SetRow(Children[i], currentRow); + + if (i % 2 != 0) + { + SetColumn(Children[i], 1); + (Children[i] as FrameworkElement).Margin = new Thickness(20, 0, 0, 0); + currentRow++; + RowDefinitions.Add(new RowDefinition() { Height = new GridLength(50, GridUnitType.Pixel) }); + } + + (Children[i] as FrameworkElement).VerticalAlignment = VerticalAlignment.Bottom; + } + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IModuleRequestListener.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IModuleRequestListener.cs new file mode 100644 index 000000000..b950d7bcd --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IModuleRequestListener.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.MachineStudio.Common.StudioApplication +{ + /// + /// Represents a type which will be notified when a new module request was made by + /// + public interface IModuleRequestListener + { + /// + /// Called when the request has been made. + /// + /// The module instance. + /// The arguments. + void OnRequestModule(IStudioModule module, Object args); + } +} diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs index a88a045a6..c67c34044 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs @@ -20,7 +20,7 @@ namespace Tango.MachineStudio.Common.StudioApplication /// /// Gets a value indicating whether Machine Studio is shutting down. /// - bool IsShuttingDown { get;} + bool IsShuttingDown { get; } /// /// Shutdown the application. @@ -40,6 +40,13 @@ namespace Tango.MachineStudio.Common.StudioApplication /// /// Gets a value indicating whether the is valid and connected through TCP/IP. /// - bool IsMachineConnectedViaTCP { get; } + bool IsMachineConnectedViaTCP { get; } + + /// + /// Loads the specified module if permitted. + /// + /// Name of the module. + /// The arguments. + void RequestModule(String moduleName, Object args); } } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Tango.MachineStudio.Common.csproj b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Tango.MachineStudio.Common.csproj index 42eae3c1e..e16703cfa 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Tango.MachineStudio.Common.csproj +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Tango.MachineStudio.Common.csproj @@ -71,7 +71,9 @@ + + diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs index 06b4dca7c..a59ecf8e0 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs @@ -14,6 +14,8 @@ using System.Collections; using Tango.Integration.Services; using Tango.Core; using Tango.Logging; +using Tango.MachineStudio.Common.Modules; +using Tango.MachineStudio.Common; namespace Tango.MachineStudio.UI.StudioApplication { @@ -24,17 +26,16 @@ namespace Tango.MachineStudio.UI.StudioApplication /// public class DefaultStudioApplicationManager : ExtendedObject, IStudioApplicationManager { - /// - /// The navigation manager - /// private INavigationManager _navigationManager; + private IStudioModuleLoader _moduleLoader; /// /// Initializes a new instance of the class. /// /// The navigation manager. - public DefaultStudioApplicationManager(INavigationManager navigationManager) + public DefaultStudioApplicationManager(INavigationManager navigationManager, IStudioModuleLoader moduleLoader) { + _moduleLoader = moduleLoader; _navigationManager = navigationManager; } @@ -146,5 +147,30 @@ namespace Tango.MachineStudio.UI.StudioApplication }); } + + /// + /// Loads the specified module if permitted. + /// + /// Name of the module. + /// The arguments. + public void RequestModule(string moduleName, object args) + { + IStudioModule module = _moduleLoader.UserModules.SingleOrDefault(x => x.Name == moduleName); + + if (module != null) + { + ServiceLocator.Current.GetInstance().StartModule(module); + + //Notify request listeners. + foreach (var vm in ServiceLocator.Current.GetAllInstancesByBase()) + { + vm.OnRequestModule(module, args); + } + } + else + { + throw new InvalidOperationException("The module was not found or you do not have sufficient privileges."); + } + } } } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs index fdab1a93c..679ba5ff3 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs @@ -272,7 +272,7 @@ namespace Tango.MachineStudio.UI.ViewModels /// Starts the specified module. /// /// The module. - private void StartModule(IStudioModule module) + internal void StartModule(IStudioModule module) { IsMenuOpened = false; -- cgit v1.3.1 From d3ba251f01ae987a14b6379e733a06dbcd77f9e4 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 30 Jan 2018 18:21:37 +0200 Subject: Moved Observables to Integration !! Implemented basic sketch for IDS Pack Formulation. --- Software/DB/Tango.mdf | Bin 75497472 -> 75497472 bytes Software/DB/Tango_log.ldf | Bin 8388608 -> 8388608 bytes .../EventTypeActionsToStringConverter.cs | 2 +- .../Converters/LiquidTypeRmlsToStringConverter.cs | 2 +- .../RolesPermissionsToStringConverter.cs | 2 +- .../Converters/UsersRolesToStringConverter.cs | 2 +- .../Modules/Tango.MachineStudio.DB/DBModule.cs | 2 +- .../Messages/OpenEntityEditViewMessage.cs | 2 +- .../Tango.MachineStudio.DB.csproj | 8 +- .../ViewModels/ActionTypesViewVM.cs | 2 +- .../ViewModels/AddressesViewVM.cs | 2 +- .../ApplicationDisplayPanelVersionsViewVM.cs | 2 +- .../ApplicationFirmwareVersionsViewVM.cs | 2 +- .../ViewModels/ApplicationOsVersionsViewVM.cs | 2 +- .../ViewModels/ApplicationVersionsViewVM.cs | 2 +- .../ViewModels/CartridgeTypesViewVM.cs | 2 +- .../ViewModels/CatsViewVM.cs | 2 +- .../ViewModels/CctsViewVM.cs | 2 +- .../ViewModels/ConfigurationsViewVM.cs | 2 +- .../ViewModels/ContactsViewVM.cs | 2 +- .../ViewModels/DbTableViewModel.cs | 2 +- .../ViewModels/DispenserTypesViewVM.cs | 2 +- .../ViewModels/EmbeddedFirmwareVersionsViewVM.cs | 2 +- .../ViewModels/EmbeddedSoftwareVersionsViewVM.cs | 2 +- .../ViewModels/EventTypesViewVM.cs | 2 +- .../ViewModels/FiberShapesViewVM.cs | 2 +- .../ViewModels/FiberSynthsViewVM.cs | 2 +- .../ViewModels/HardwareVersionsViewVM.cs | 2 +- .../ViewModels/IdsPackFormulasViewVM.cs | 2 +- .../ViewModels/IdsPacksViewVM.cs | 2 +- .../ViewModels/LinearMassDensityUnitsViewVM.cs | 2 +- .../ViewModels/LiquidTypesRmlsViewVM.cs | 2 +- .../ViewModels/LiquidTypesViewVM.cs | 2 +- .../ViewModels/MachineVersionsViewVM.cs | 2 +- .../ViewModels/MachinesViewVM.cs | 2 +- .../ViewModels/MainViewVM.cs | 2 +- .../ViewModels/MediaColorsViewVM.cs | 2 +- .../ViewModels/MediaConditionsViewVM.cs | 2 +- .../ViewModels/MediaMaterialsViewVM.cs | 2 +- .../ViewModels/MediaPurposesViewVM.cs | 2 +- .../ViewModels/MidTankTypesViewVM.cs | 2 +- .../ViewModels/OrganizationsViewVM.cs | 2 +- .../ViewModels/PermissionsViewVM.cs | 2 +- .../ProcessParametersTablesGroupsViewVM.cs | 2 +- .../ViewModels/ProcessParametersTablesViewVM.cs | 2 +- .../ViewModels/RmlsViewVM.cs | 2 +- .../ViewModels/RolesViewVM.cs | 2 +- .../ViewModels/UsersViewVM.cs | 2 +- .../Converters/BrushStopCMYKToColorConverter.cs | 2 +- .../Converters/BrushStopLabToColorConverter.cs | 2 +- .../Converters/BrushStopToColorConverter.cs | 2 +- .../Converters/BrushStopToOffsetLimitConverter.cs | 2 +- .../Converters/DbRmlViewToEntityConverter.cs | 2 +- .../Converters/InkVolumeToLiquidRmlFactor.cs | 34 + .../Converters/SegmentToGradientStopsConverter.cs | 2 +- .../DeveloperModule.cs | 2 +- .../Tango.MachineStudio.Developer.csproj | 9 +- .../ViewModels/DBViewContextWrapper.cs | 2 +- .../ViewModels/MainViewVM.cs | 14 +- .../Views/MainView.xaml | 803 ++++---- .../Views/MainView.xaml.cs | 2 +- .../AutoComplete/MachineVersionsProvider.cs | 2 +- .../AutoComplete/MachinesProvider.cs | 2 +- .../MachineDesignerModule.cs | 2 +- .../Tango.MachineStudio.MachineDesigner.csproj | 8 +- .../ViewModels/MachineVersionDialogVM.cs | 2 +- .../ViewModels/MainViewVM.cs | 2 +- .../Views/MainView.xaml.cs | 2 +- .../Tango.MachineStudio.Stubs/StubsModule.cs | 2 +- .../Tango.MachineStudio.Stubs.csproj | 4 - .../AutoComplete/MachinesProvider.cs | 2 +- .../SynchronizationModule.cs | 2 +- .../Tango.MachineStudio.Synchronization.csproj | 4 - .../ViewModels/DirectSynchronizationViewVM.cs | 2 +- .../ViewModels/RemoteSynchronizationViewVM.cs | 2 +- .../Tango.MachineStudio.Technician.csproj | 4 - .../TechnicianModule.cs | 2 +- .../Authentication/IAuthenticationProvider.cs | 2 +- .../Tango.MachineStudio.Common/IStudioModule.cs | 2 +- .../Tango.MachineStudio.Common.csproj | 4 - .../Tango.MachineStudio.UI/App.xaml.cs | 2 +- .../DefaultAuthenticationProvider.cs | 2 +- .../Modules/DefaultStudioModuleLoader.cs | 3 +- .../Tango.MachineStudio.UI.csproj | 4 - .../ViewModels/LoadingViewVM.cs | 2 +- .../Templates/EntityCodeFile.cshtml | 4 +- .../Templates/EnumerationFile.cshtml | 2 +- .../Templates/ObservablesAdapterFile.cshtml | 2 +- .../Templates/ObservablesContextCodeFile.cshtml | 2 +- .../ExtensionMethods/ObjectExtensions.cs | 2 +- .../Visual_Studio/Tango.DAL.Observables/App.config | 13 - .../Tango.DAL.Observables/Entities/ActionType.cs | 104 -- .../Tango.DAL.Observables/Entities/Address.cs | 225 --- .../Entities/ApplicationDisplayPanelVersion.cs | 84 - .../Entities/ApplicationFirmwareVersion.cs | 84 - .../Entities/ApplicationOsVersion.cs | 84 - .../Entities/ApplicationVersion.cs | 84 - .../Tango.DAL.Observables/Entities/BrushStop.cs | 519 ------ .../Entities/CartridgeType.cs | 84 - .../Tango.DAL.Observables/Entities/Cat.cs | 140 -- .../Tango.DAL.Observables/Entities/Cct.cs | 201 -- .../Tango.DAL.Observables/Entities/ColorSpace.cs | 104 -- .../Entities/Configuration.cs | 420 ----- .../Tango.DAL.Observables/Entities/Contact.cs | 205 --- .../Entities/DispenserType.cs | 124 -- .../Entities/EmbeddedFirmwareVersion.cs | 84 - .../Entities/EmbeddedSoftwareVersion.cs | 84 - .../Tango.DAL.Observables/Entities/EventType.cs | 125 -- .../Entities/EventTypesAction.cs | 100 - .../Tango.DAL.Observables/Entities/FiberShape.cs | 84 - .../Tango.DAL.Observables/Entities/FiberSynth.cs | 84 - .../Entities/HardwareVersion.cs | 84 - .../Tango.DAL.Observables/Entities/IdsPack.cs | 296 --- .../Entities/IdsPackFormula.cs | 124 -- .../Tango.DAL.Observables/Entities/Job.cs | 302 --- .../Tango.DAL.Observables/Entities/JobRun.cs | 121 -- .../Entities/LinearMassDensityUnit.cs | 84 - .../Tango.DAL.Observables/Entities/LiquidType.cs | 166 -- .../Entities/LiquidTypesRml.cs | 120 -- .../Tango.DAL.Observables/Entities/Machine.cs | 263 --- .../Entities/MachineVersion.cs | 123 -- .../Entities/MachinesConfiguration.cs | 100 - .../Entities/MachinesEvent.cs | 179 -- .../Tango.DAL.Observables/Entities/MediaColor.cs | 64 - .../Entities/MediaCondition.cs | 84 - .../Entities/MediaMaterial.cs | 84 - .../Tango.DAL.Observables/Entities/MediaPurpos.cs | 84 - .../Tango.DAL.Observables/Entities/MidTankType.cs | 104 -- .../Tango.DAL.Observables/Entities/Organization.cs | 163 -- .../Tango.DAL.Observables/Entities/Permission.cs | 104 -- .../Entities/ProcessParametersTable.cs | 401 ---- .../Entities/ProcessParametersTablesGroup.cs | 143 -- .../Tango.DAL.Observables/Entities/Rml.cs | 661 ------- .../Tango.DAL.Observables/Entities/Role.cs | 125 -- .../Entities/RolesPermission.cs | 100 - .../Tango.DAL.Observables/Entities/Segment.cs | 123 -- .../Tango.DAL.Observables/Entities/Sensor.cs | 202 --- .../Entities/SyncConfiguration.cs | 22 - .../Tango.DAL.Observables/Entities/User.cs | 242 --- .../Tango.DAL.Observables/Entities/UsersRole.cs | 120 -- .../Entities/WindingMethod.cs | 104 -- .../EntityFieldNameAttribute.cs | 29 - .../Enumerations/ActionTypes.cs | 25 - .../Tango.DAL.Observables/Enumerations/Actions.cs | 12 - .../Enumerations/CartridgeTypes.cs | 19 - .../Enumerations/ColorSpaces.cs | 43 - .../Enumerations/DispenserTypes.cs | 19 - .../Enumerations/EventTypes.cs | 25 - .../Tango.DAL.Observables/Enumerations/Events.cs | 12 - .../Enumerations/FiberShapes.cs | 19 - .../Enumerations/FiberSynthes.cs | 12 - .../Enumerations/FiberSynthesises.cs | 12 - .../Enumerations/FiberSynths.cs | 19 - .../Enumerations/IdsPackFormulas.cs | 19 - .../Enumerations/LinearMassDensityUnits.cs | 19 - .../Enumerations/LiquidTypes.cs | 55 - .../Tango.DAL.Observables/Enumerations/Liquids.cs | 25 - .../Enumerations/MediaConditions.cs | 19 - .../Enumerations/MediaMaterials.cs | 19 - .../Enumerations/MediaPurposes.cs | 19 - .../Enumerations/MidTankTypes.cs | 19 - .../Enumerations/Permissions.cs | 43 - .../Tango.DAL.Observables/Enumerations/Rmls.cs | 25 - .../Tango.DAL.Observables/Enumerations/Roles.cs | 43 - .../Tango.DAL.Observables/Enumerations/Sensors.cs | 181 -- .../Enumerations/WindingMethods.cs | 25 - .../Tango.DAL.Observables/ExtensionMethods.cs | 34 - .../ExtensionMethods/ConfigurationExtensions.cs | 37 - .../ExtensionMethods/ObservableEntityExtensions.cs | 27 - .../ProcessParametersTablesGroupExtensions.cs | 27 - .../Tango.DAL.Observables/IObservableEntity.cs | 79 - .../Tango.DAL.Observables/LoadedEntitiesService.cs | 65 - .../Tango.DAL.Observables/ObservableEntity.cs | 254 --- .../Tango.DAL.Observables/ObservablesContext.cs | 451 ----- .../ObservablesEntitiesAdapter.cs | 300 --- .../ObservablesEntitiesAdapterExtension.cs | 1917 -------------------- .../Tango.DAL.Observables/Partials/BrushStop.cs | 156 -- .../Partials/Configuration.cs | 29 - .../Tango.DAL.Observables/Partials/Machine.cs | 27 - .../Partials/MachineVersion.cs | 19 - .../Tango.DAL.Observables/Partials/Segment.cs | 23 - .../Tango.DAL.Observables/Partials/User.cs | 39 - .../Properties/AssemblyInfo.cs | 6 - .../Tango.DAL.Observables.csproj | 185 -- .../Tango.DAL.Observables/packages.config | 47 - .../Formulation/DiluterFormulaCalculator.cs | 38 + .../Formulation/FormulaAttribute.cs | 19 + .../Formulation/FormulaResolver.cs | 36 + .../Formulation/FormulasCalculationService.cs | 30 + .../Formulation/IFormulaCalculator.cs | 13 + .../Formulation/StandardColorFormulaCalculator.cs | 38 + .../Observables/Entities/ActionType.cs | 104 ++ .../Observables/Entities/Address.cs | 225 +++ .../Entities/ApplicationDisplayPanelVersion.cs | 84 + .../Entities/ApplicationFirmwareVersion.cs | 84 + .../Observables/Entities/ApplicationOsVersion.cs | 84 + .../Observables/Entities/ApplicationVersion.cs | 84 + .../Observables/Entities/BrushStop.cs | 519 ++++++ .../Observables/Entities/CartridgeType.cs | 84 + .../Tango.Integration/Observables/Entities/Cat.cs | 140 ++ .../Tango.Integration/Observables/Entities/Cct.cs | 201 ++ .../Observables/Entities/ColorSpace.cs | 104 ++ .../Observables/Entities/Configuration.cs | 420 +++++ .../Observables/Entities/Contact.cs | 205 +++ .../Observables/Entities/DispenserType.cs | 124 ++ .../Entities/EmbeddedFirmwareVersion.cs | 84 + .../Entities/EmbeddedSoftwareVersion.cs | 84 + .../Observables/Entities/EventType.cs | 125 ++ .../Observables/Entities/EventTypesAction.cs | 100 + .../Observables/Entities/FiberShape.cs | 84 + .../Observables/Entities/FiberSynth.cs | 84 + .../Observables/Entities/HardwareVersion.cs | 84 + .../Observables/Entities/IdsPack.cs | 296 +++ .../Observables/Entities/IdsPackFormula.cs | 124 ++ .../Tango.Integration/Observables/Entities/Job.cs | 302 +++ .../Observables/Entities/JobRun.cs | 121 ++ .../Observables/Entities/LinearMassDensityUnit.cs | 84 + .../Observables/Entities/LiquidType.cs | 166 ++ .../Observables/Entities/LiquidTypesRml.cs | 120 ++ .../Observables/Entities/Machine.cs | 263 +++ .../Observables/Entities/MachineVersion.cs | 123 ++ .../Observables/Entities/MachinesConfiguration.cs | 100 + .../Observables/Entities/MachinesEvent.cs | 179 ++ .../Observables/Entities/MediaColor.cs | 64 + .../Observables/Entities/MediaCondition.cs | 84 + .../Observables/Entities/MediaMaterial.cs | 84 + .../Observables/Entities/MediaPurpos.cs | 84 + .../Observables/Entities/MidTankType.cs | 104 ++ .../Observables/Entities/Organization.cs | 163 ++ .../Observables/Entities/Permission.cs | 104 ++ .../Observables/Entities/ProcessParametersTable.cs | 401 ++++ .../Entities/ProcessParametersTablesGroup.cs | 143 ++ .../Tango.Integration/Observables/Entities/Rml.cs | 661 +++++++ .../Tango.Integration/Observables/Entities/Role.cs | 125 ++ .../Observables/Entities/RolesPermission.cs | 100 + .../Observables/Entities/Segment.cs | 123 ++ .../Observables/Entities/Sensor.cs | 202 +++ .../Observables/Entities/SyncConfiguration.cs | 22 + .../Tango.Integration/Observables/Entities/User.cs | 242 +++ .../Observables/Entities/UsersRole.cs | 120 ++ .../Observables/Entities/WindingMethod.cs | 104 ++ .../Observables/EntityFieldNameAttribute.cs | 29 + .../Observables/Enumerations/ActionTypes.cs | 25 + .../Observables/Enumerations/Actions.cs | 12 + .../Observables/Enumerations/CartridgeTypes.cs | 19 + .../Observables/Enumerations/ColorSpaces.cs | 43 + .../Observables/Enumerations/DispenserTypes.cs | 19 + .../Observables/Enumerations/EventTypes.cs | 25 + .../Observables/Enumerations/Events.cs | 12 + .../Observables/Enumerations/FiberShapes.cs | 19 + .../Observables/Enumerations/FiberSynthes.cs | 12 + .../Observables/Enumerations/FiberSynthesises.cs | 12 + .../Observables/Enumerations/FiberSynths.cs | 19 + .../Observables/Enumerations/IdsPackFormulas.cs | 24 + .../Enumerations/LinearMassDensityUnits.cs | 19 + .../Observables/Enumerations/LiquidTypes.cs | 55 + .../Observables/Enumerations/Liquids.cs | 25 + .../Observables/Enumerations/MediaConditions.cs | 19 + .../Observables/Enumerations/MediaMaterials.cs | 19 + .../Observables/Enumerations/MediaPurposes.cs | 19 + .../Observables/Enumerations/MidTankTypes.cs | 19 + .../Observables/Enumerations/Permissions.cs | 43 + .../Observables/Enumerations/Rmls.cs | 25 + .../Observables/Enumerations/Roles.cs | 43 + .../Observables/Enumerations/Sensors.cs | 181 ++ .../Observables/Enumerations/WindingMethods.cs | 25 + .../ExtensionMethods/ConfigurationExtensions.cs | 37 + .../ExtensionMethods/ObservableEntityExtensions.cs | 27 + .../ProcessParametersTablesGroupExtensions.cs | 27 + .../Observables/IObservableEntity.cs | 79 + .../Observables/ObservableEntity.cs | 253 +++ .../Observables/ObservablesContext.cs | 451 +++++ .../Observables/ObservablesEntitiesAdapter.cs | 298 +++ .../ObservablesEntitiesAdapterExtension.cs | 1917 ++++++++++++++++++++ .../Observables/Partials/Configuration.cs | 29 + .../Observables/Partials/Machine.cs | 27 + .../Observables/Partials/MachineVersion.cs | 19 + .../Observables/Partials/Segment.cs | 23 + .../Tango.Integration/Observables/Partials/User.cs | 39 + .../Tango.Integration/Printing/BrushStop.cs | 105 ++ .../Tango.Integration/Printing/LiquidVolume.cs | 123 ++ .../Tango.Integration/Printing/Profile.cs | 22 - .../Tango.Integration/Printing/Segment.cs | 14 - .../Services/ExternalBridgeTcpClient.cs | 2 +- .../Services/ExternalBridgeUsbClient.cs | 2 +- .../Tango.Integration/Tango.Integration.csproj | 112 +- .../Visual_Studio/Tango.Integration/app.config | 10 + .../Tango.Integration/packages.config | 1 + .../Tango.UnitTesting/CodeGeneration_TST.cs | 2 +- .../Tango.UnitTesting/Tango.UnitTesting.csproj | 8 +- Software/Visual_Studio/Tango.sln | 31 - 291 files changed, 13053 insertions(+), 12916 deletions(-) create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/InkVolumeToLiquidRmlFactor.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/App.config delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/ActionType.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Address.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationDisplayPanelVersion.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationFirmwareVersion.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationOsVersion.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationVersion.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/BrushStop.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/CartridgeType.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Cat.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Cct.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/ColorSpace.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Configuration.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Contact.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/DispenserType.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/EmbeddedFirmwareVersion.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/EmbeddedSoftwareVersion.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/EventType.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/EventTypesAction.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/FiberShape.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/FiberSynth.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/HardwareVersion.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/IdsPack.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/IdsPackFormula.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Job.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/JobRun.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/LinearMassDensityUnit.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/LiquidType.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/LiquidTypesRml.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Machine.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/MachineVersion.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/MachinesConfiguration.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/MachinesEvent.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaColor.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaCondition.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaMaterial.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaPurpos.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/MidTankType.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Organization.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Permission.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/ProcessParametersTable.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/ProcessParametersTablesGroup.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Rml.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Role.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/RolesPermission.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Segment.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/Sensor.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/SyncConfiguration.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/User.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/UsersRole.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Entities/WindingMethod.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/EntityFieldNameAttribute.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/ActionTypes.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Actions.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/CartridgeTypes.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/ColorSpaces.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/DispenserTypes.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/EventTypes.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Events.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberShapes.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberSynthes.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberSynthesises.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberSynths.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/IdsPackFormulas.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/LinearMassDensityUnits.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/LiquidTypes.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Liquids.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MediaConditions.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MediaMaterials.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MediaPurposes.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MidTankTypes.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Permissions.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Rmls.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Roles.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Sensors.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Enumerations/WindingMethods.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods/ConfigurationExtensions.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods/ObservableEntityExtensions.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods/ProcessParametersTablesGroupExtensions.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/IObservableEntity.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/LoadedEntitiesService.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/ObservableEntity.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/ObservablesContext.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/ObservablesEntitiesAdapter.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/ObservablesEntitiesAdapterExtension.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Partials/BrushStop.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Partials/Configuration.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Partials/Machine.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Partials/MachineVersion.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Partials/Segment.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Partials/User.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Properties/AssemblyInfo.cs delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/Tango.DAL.Observables.csproj delete mode 100644 Software/Visual_Studio/Tango.DAL.Observables/packages.config create mode 100644 Software/Visual_Studio/Tango.Integration/Formulation/DiluterFormulaCalculator.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Formulation/FormulaAttribute.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Formulation/FormulaResolver.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Formulation/FormulasCalculationService.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Formulation/IFormulaCalculator.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Formulation/StandardColorFormulaCalculator.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/ActionType.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Address.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationDisplayPanelVersion.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationFirmwareVersion.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationOsVersion.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationVersion.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/BrushStop.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/CartridgeType.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Cat.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Cct.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/ColorSpace.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Configuration.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Contact.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/DispenserType.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/EmbeddedFirmwareVersion.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/EmbeddedSoftwareVersion.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/EventType.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/EventTypesAction.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/FiberShape.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/FiberSynth.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/HardwareVersion.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/IdsPack.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/IdsPackFormula.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Job.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/JobRun.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/LinearMassDensityUnit.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/LiquidType.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/LiquidTypesRml.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Machine.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/MachineVersion.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/MachinesConfiguration.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/MachinesEvent.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaColor.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaCondition.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaMaterial.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaPurpos.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/MidTankType.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Organization.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Permission.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/ProcessParametersTable.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/ProcessParametersTablesGroup.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Rml.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Role.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/RolesPermission.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Segment.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/Sensor.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/SyncConfiguration.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/User.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/UsersRole.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/WindingMethod.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/EntityFieldNameAttribute.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/ActionTypes.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Actions.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/CartridgeTypes.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/ColorSpaces.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/DispenserTypes.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/EventTypes.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Events.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberShapes.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberSynthes.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberSynthesises.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberSynths.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/IdsPackFormulas.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/LinearMassDensityUnits.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/LiquidTypes.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Liquids.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MediaConditions.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MediaMaterials.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MediaPurposes.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MidTankTypes.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Permissions.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Rmls.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Roles.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Sensors.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/WindingMethods.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/ConfigurationExtensions.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/ObservableEntityExtensions.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/ProcessParametersTablesGroupExtensions.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/ObservableEntity.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/ObservablesContext.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/ObservablesEntitiesAdapter.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/ObservablesEntitiesAdapterExtension.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Partials/Configuration.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Partials/Machine.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Partials/MachineVersion.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Partials/Segment.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Partials/User.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Printing/BrushStop.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Printing/LiquidVolume.cs delete mode 100644 Software/Visual_Studio/Tango.Integration/Printing/Profile.cs delete mode 100644 Software/Visual_Studio/Tango.Integration/Printing/Segment.cs (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs') diff --git a/Software/DB/Tango.mdf b/Software/DB/Tango.mdf index c18c24b9b..bcc1f689e 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 dec616894..ee1c0e679 100644 Binary files a/Software/DB/Tango_log.ldf and b/Software/DB/Tango_log.ldf differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/EventTypeActionsToStringConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/EventTypeActionsToStringConverter.cs index 3f0654247..c50493c3d 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/EventTypeActionsToStringConverter.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/EventTypeActionsToStringConverter.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.DB.ViewModels; namespace Tango.MachineStudio.DB.Converters diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/LiquidTypeRmlsToStringConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/LiquidTypeRmlsToStringConverter.cs index a8e82b69b..b9b0b6656 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/LiquidTypeRmlsToStringConverter.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/LiquidTypeRmlsToStringConverter.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.DB.ViewModels; namespace Tango.MachineStudio.DB.Converters diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/RolesPermissionsToStringConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/RolesPermissionsToStringConverter.cs index 96c4d7d7d..fb7c39fd9 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/RolesPermissionsToStringConverter.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/RolesPermissionsToStringConverter.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.DB.ViewModels; namespace Tango.MachineStudio.DB.Converters diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/UsersRolesToStringConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/UsersRolesToStringConverter.cs index 6b2712642..f6aaeede1 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/UsersRolesToStringConverter.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Converters/UsersRolesToStringConverter.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.DB.ViewModels; namespace Tango.MachineStudio.DB.Converters diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs index c433a4cd4..82cd716b3 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media.Imaging; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common; using Tango.MachineStudio.DB.Views; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Messages/OpenEntityEditViewMessage.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Messages/OpenEntityEditViewMessage.cs index b0c099f1a..7a55c8148 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Messages/OpenEntityEditViewMessage.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Messages/OpenEntityEditViewMessage.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Messages; using Tango.MachineStudio.DB.ViewModels; using Tango.SharedUI; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Tango.MachineStudio.DB.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Tango.MachineStudio.DB.csproj index c17c43aa0..aa33f9a20 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Tango.MachineStudio.DB.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Tango.MachineStudio.DB.csproj @@ -712,14 +712,14 @@ {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} Tango.Core - - {0ecd6da8-7aa6-48d9-8b65-279d176ad9af} - Tango.DAL.Observables - {38197109-8610-4d3f-92b9-16d48df94d7c} Tango.DAL.Remote + + {4206ac58-3b57-4699-8835-90bf6db01a61} + Tango.Integration + {8491d07b-c1f6-4b62-a412-41b9fd2d6538} Tango.SharedUI diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ActionTypesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ActionTypesViewVM.cs index fe9ebda26..46128c394 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ActionTypesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ActionTypesViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/AddressesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/AddressesViewVM.cs index 41eab1c37..8fc5c0c07 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/AddressesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/AddressesViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationDisplayPanelVersionsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationDisplayPanelVersionsViewVM.cs index be458136a..e2b345d59 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationDisplayPanelVersionsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationDisplayPanelVersionsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationFirmwareVersionsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationFirmwareVersionsViewVM.cs index 0814988ba..dcc980f33 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationFirmwareVersionsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationFirmwareVersionsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationOsVersionsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationOsVersionsViewVM.cs index 3cdd8acb7..f90f51d65 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationOsVersionsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationOsVersionsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationVersionsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationVersionsViewVM.cs index 6e25fe321..fbd1f6166 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationVersionsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationVersionsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/CartridgeTypesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/CartridgeTypesViewVM.cs index c8c6ba00b..d04b013d9 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/CartridgeTypesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/CartridgeTypesViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/CatsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/CatsViewVM.cs index a768b3c7c..67988c73b 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/CatsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/CatsViewVM.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.Core.Commands; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/CctsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/CctsViewVM.cs index 02d7c351d..ebd360d76 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/CctsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/CctsViewVM.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.Core.Commands; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ConfigurationsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ConfigurationsViewVM.cs index bdec4f91b..09010ec93 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ConfigurationsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ConfigurationsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ContactsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ContactsViewVM.cs index 848cb1187..fdd31b847 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ContactsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ContactsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; using SimpleValidator.Extensions; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs index e1be2aa9b..d6de58de4 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DbTableViewModel.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.Core.Commands; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; using Tango.MachineStudio.DB.Managers; using Tango.SharedUI; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DispenserTypesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DispenserTypesViewVM.cs index 97adfa7d4..26167490f 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DispenserTypesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/DispenserTypesViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/EmbeddedFirmwareVersionsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/EmbeddedFirmwareVersionsViewVM.cs index a248d919a..e41ea34f1 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/EmbeddedFirmwareVersionsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/EmbeddedFirmwareVersionsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/EmbeddedSoftwareVersionsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/EmbeddedSoftwareVersionsViewVM.cs index b6436203d..d06b81221 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/EmbeddedSoftwareVersionsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/EmbeddedSoftwareVersionsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/EventTypesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/EventTypesViewVM.cs index 687c30470..f4b2af4d4 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/EventTypesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/EventTypesViewVM.cs @@ -4,7 +4,7 @@ using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/FiberShapesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/FiberShapesViewVM.cs index c4954f9b3..42c0d428d 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/FiberShapesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/FiberShapesViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/FiberSynthsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/FiberSynthsViewVM.cs index 6b157fc0d..739c23e55 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/FiberSynthsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/FiberSynthsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/HardwareVersionsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/HardwareVersionsViewVM.cs index 02c90c442..db30ad4cf 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/HardwareVersionsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/HardwareVersionsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/IdsPackFormulasViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/IdsPackFormulasViewVM.cs index a2763a257..391c17d70 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/IdsPackFormulasViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/IdsPackFormulasViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/IdsPacksViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/IdsPacksViewVM.cs index 202dd959f..2accac011 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/IdsPacksViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/IdsPacksViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/LinearMassDensityUnitsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/LinearMassDensityUnitsViewVM.cs index 9ac38a7c4..9c3880293 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/LinearMassDensityUnitsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/LinearMassDensityUnitsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/LiquidTypesRmlsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/LiquidTypesRmlsViewVM.cs index 5b8e3749f..6159e1297 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/LiquidTypesRmlsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/LiquidTypesRmlsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/LiquidTypesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/LiquidTypesViewVM.cs index 05171b09f..b16b95ee4 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/LiquidTypesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/LiquidTypesViewVM.cs @@ -4,7 +4,7 @@ using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MachineVersionsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MachineVersionsViewVM.cs index 6a24f7d4c..7eec73dc1 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MachineVersionsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MachineVersionsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MachinesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MachinesViewVM.cs index 2349941fe..0f3ab8b04 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MachinesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MachinesViewVM.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.Core.Commands; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; using Tango.SharedUI; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MainViewVM.cs index 7e472ee75..2835ef102 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MainViewVM.cs @@ -6,7 +6,7 @@ using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common; using Tango.MachineStudio.Common.StudioApplication; using Tango.SharedUI; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaColorsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaColorsViewVM.cs index 4227cc27a..bc0736a43 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaColorsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaColorsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaConditionsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaConditionsViewVM.cs index 451e20ff0..167482bc8 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaConditionsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaConditionsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaMaterialsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaMaterialsViewVM.cs index 534ebc0d8..9161ef3e9 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaMaterialsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaMaterialsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaPurposesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaPurposesViewVM.cs index 4850f6316..6e6b74a32 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaPurposesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MediaPurposesViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MidTankTypesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MidTankTypesViewVM.cs index 6203a8fe3..c9a82363e 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MidTankTypesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/MidTankTypesViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/OrganizationsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/OrganizationsViewVM.cs index 0327557f1..d35a00a80 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/OrganizationsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/OrganizationsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/PermissionsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/PermissionsViewVM.cs index 9a2d1c24d..6dbab596e 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/PermissionsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/PermissionsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ProcessParametersTablesGroupsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ProcessParametersTablesGroupsViewVM.cs index 620762a6f..87fdecec8 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ProcessParametersTablesGroupsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ProcessParametersTablesGroupsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ProcessParametersTablesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ProcessParametersTablesViewVM.cs index 965b0e391..0716430ab 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ProcessParametersTablesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ProcessParametersTablesViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/RmlsViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/RmlsViewVM.cs index 740a4969b..7145b9201 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/RmlsViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/RmlsViewVM.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.DB.ViewModels diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/RolesViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/RolesViewVM.cs index 50caf4c6d..049b4b6db 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/RolesViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/RolesViewVM.cs @@ -4,7 +4,7 @@ using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; using Tango.MachineStudio.DB.ViewModels; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/UsersViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/UsersViewVM.cs index e338746ff..3a09b27e6 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/UsersViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/UsersViewVM.cs @@ -4,7 +4,7 @@ using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; using SimpleValidator.Extensions; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopCMYKToColorConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopCMYKToColorConverter.cs index e21da8fbc..5bc163b18 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopCMYKToColorConverter.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopCMYKToColorConverter.cs @@ -7,7 +7,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Data; using System.Windows.Media; -using Tango.DAL.Observables; +using Tango.Integration.Observables; namespace Tango.MachineStudio.Developer.Converters { diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopLabToColorConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopLabToColorConverter.cs index 6c6d7959e..f3dc07d3e 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopLabToColorConverter.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopLabToColorConverter.cs @@ -7,7 +7,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Data; using System.Windows.Media; -using Tango.DAL.Observables; +using Tango.Integration.Observables; namespace Tango.MachineStudio.Developer.Converters { diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopToColorConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopToColorConverter.cs index 5db8d03c0..33cd8cc78 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopToColorConverter.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopToColorConverter.cs @@ -6,7 +6,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Data; using System.Windows.Media; -using Tango.DAL.Observables; +using Tango.Integration.Observables; namespace Tango.MachineStudio.Developer.Converters { diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopToOffsetLimitConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopToOffsetLimitConverter.cs index c18a5679b..53efd50b8 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopToOffsetLimitConverter.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/BrushStopToOffsetLimitConverter.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; -using Tango.DAL.Observables; +using Tango.Integration.Observables; namespace Tango.MachineStudio.Developer.Converters { diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/DbRmlViewToEntityConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/DbRmlViewToEntityConverter.cs index a2f0023cc..1fe3e5ab0 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/DbRmlViewToEntityConverter.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/DbRmlViewToEntityConverter.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Developer.ViewModels; namespace Tango.MachineStudio.Developer.Converters diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/InkVolumeToLiquidRmlFactor.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/InkVolumeToLiquidRmlFactor.cs new file mode 100644 index 000000000..3b675d23e --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/InkVolumeToLiquidRmlFactor.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Data; +using Tango.Integration.Observables; +using static Tango.Integration.Observables.BrushStop; + +namespace Tango.MachineStudio.Developer.Converters +{ + //public class InkVolumeToLiquidRmlFactor : IMultiValueConverter + //{ + // public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) + // { + // InkVolume inkVolume = values[0] as InkVolume; + // Rml selectedRml = values[1] as Rml; + + // if (inkVolume != null && selectedRml != null) + // { + // return inkVolume.GetLiquidMaxNanoliterPerCentimeter().ToString(); + // } + + // return String.Empty; + // } + + // public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) + // { + // throw new NotImplementedException(); + // } + //} +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/SegmentToGradientStopsConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/SegmentToGradientStopsConverter.cs index 1588b7740..37908c940 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/SegmentToGradientStopsConverter.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/SegmentToGradientStopsConverter.cs @@ -6,7 +6,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Data; using System.Windows.Media; -using Tango.DAL.Observables; +using Tango.Integration.Observables; namespace Tango.MachineStudio.Developer.Converters { diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs index 4401245a9..1a405f861 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media.Imaging; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common; using Tango.MachineStudio.Developer.Views; using Tango.SharedUI.Helpers; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Tango.MachineStudio.Developer.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Tango.MachineStudio.Developer.csproj index 5bae48c1a..1865ff11a 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Tango.MachineStudio.Developer.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Tango.MachineStudio.Developer.csproj @@ -76,6 +76,7 @@ + @@ -138,10 +139,6 @@ {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} Tango.Core - - {0ecd6da8-7aa6-48d9-8b65-279d176ad9af} - Tango.DAL.Observables - {38197109-8610-4d3f-92b9-16d48df94d7c} Tango.DAL.Remote @@ -150,6 +147,10 @@ {b112d89a-a106-41ae-a0c1-4abc84c477f5} Tango.DragAndDrop + + {4206ac58-3b57-4699-8835-90bf6db01a61} + Tango.Integration + {8491d07b-c1f6-4b62-a412-41b9fd2d6538} Tango.SharedUI diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/DBViewContextWrapper.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/DBViewContextWrapper.cs index 231c27bf2..21611a493 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/DBViewContextWrapper.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/DBViewContextWrapper.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; namespace Tango.MachineStudio.Developer.ViewModels { diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs index 5a1b46041..f6ddc9d19 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs @@ -9,7 +9,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Media; using Tango.Core.Commands; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Controls; using Tango.MachineStudio.Common.Notifications; using Tango.MachineStudio.Common.StudioApplication; @@ -47,8 +47,8 @@ namespace Tango.MachineStudio.Developer.ViewModels set { _selectedMachine = value; - RaisePropertyChangedAuto(); OnMachineChanged(); + RaisePropertyChangedAuto(); InvalidateRelayCommands(); if (_selectedMachine != null) @@ -145,8 +145,8 @@ namespace Tango.MachineStudio.Developer.ViewModels set { _selectedRML = value; - RaisePropertyChangedAuto(); InvalidateLiquidFactorsAndProcessTables(); + RaisePropertyChangedAuto(); InvalidateRelayCommands(); } } @@ -308,7 +308,7 @@ namespace Tango.MachineStudio.Developer.ViewModels { if (SelectedSegment != null) { - SetSegmentBrushStopsInkVolumes(SelectedSegment); + SetSegmentBrushStopsLiquidVolumes(SelectedSegment); SelectedBrushStop = SelectedSegment.BrushStops.FirstOrDefault(); } } @@ -347,13 +347,13 @@ namespace Tango.MachineStudio.Developer.ViewModels #region Private Methods - private void SetSegmentBrushStopsInkVolumes(Segment segment) + private void SetSegmentBrushStopsLiquidVolumes(Segment segment) { if (!DesignMode) { foreach (var stop in segment.BrushStops) { - stop.SetInkVolumes(SelectedMachine.Configuration); + stop.SetLiquidVolumes(SelectedMachine.Configuration, SelectedRML); } } } @@ -526,7 +526,7 @@ namespace Tango.MachineStudio.Developer.ViewModels { var stop = new BrushStop(); stop.ColorSpace = Adapter.ColorSpaces.FirstOrDefault(); - stop.SetInkVolumes(SelectedMachine.Configuration); + stop.SetLiquidVolumes(SelectedMachine.Configuration, SelectedRML); SelectedSegment.BrushStops.Add(stop); } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml index 90842b672..6e4d69d05 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml @@ -14,7 +14,7 @@ xmlns:vm="clr-namespace:Tango.MachineStudio.Developer.ViewModels" xmlns:localConverters="clr-namespace:Tango.MachineStudio.Developer.Converters" xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI" - xmlns:observables="clr-namespace:Tango.DAL.Observables;assembly=Tango.DAL.Observables" + xmlns:observables="clr-namespace:Tango.Integration.Observables;assembly=Tango.Integration" xmlns:editors="clr-namespace:Tango.SharedUI.Editors;assembly=Tango.SharedUI" xmlns:shapes="clr-namespace:Tango.SharedUI.Shapes;assembly=Tango.SharedUI" xmlns:local="clr-namespace:Tango.MachineStudio.Developer.Views" @@ -344,8 +344,8 @@ - - + + @@ -360,14 +360,16 @@ - - - - + + + + + + @@ -458,336 +460,511 @@ - - - - Description - + + + + + Description + - - - - + + + + + - - - - + + + + + + + + + - - - - SEGMENTS - + + + + SEGMENTS + - - - - + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - Name - - - - - - + + + + - - Length + + + + + Name + + + + + + + + + Length + + + + - + + + + + + + + + + + + + - - - - - - - - - - - - - - SEGMENT BRUSH - + + + + + + SEGMENT BRUSH + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Color Space + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - Color Space - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + ESTIMATED DURATION: + 00:00:00 + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs index 52febe37b..c9796fbe2 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs @@ -12,7 +12,7 @@ using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.DragAndDrop; using Tango.MachineStudio.Developer.Converters; using Tango.MachineStudio.Developer.ViewModels; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/AutoComplete/MachineVersionsProvider.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/AutoComplete/MachineVersionsProvider.cs index 51ca629a4..c018e3ce8 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/AutoComplete/MachineVersionsProvider.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/AutoComplete/MachineVersionsProvider.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.AutoComplete.Editors; -using Tango.DAL.Observables; +using Tango.Integration.Observables; namespace Tango.MachineStudio.MachineDesigner.AutoComplete { diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/AutoComplete/MachinesProvider.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/AutoComplete/MachinesProvider.cs index 7a97db2e2..9261f648a 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/AutoComplete/MachinesProvider.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/AutoComplete/MachinesProvider.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.AutoComplete.Editors; -using Tango.DAL.Observables; +using Tango.Integration.Observables; namespace Tango.MachineStudio.MachineDesigner.AutoComplete { diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs index b0160abd5..f5b0cba98 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media.Imaging; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common; using Tango.MachineStudio.MachineDesigner.Views; using Tango.SharedUI.Helpers; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Tango.MachineStudio.MachineDesigner.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Tango.MachineStudio.MachineDesigner.csproj index bebcf2480..46571f99c 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Tango.MachineStudio.MachineDesigner.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Tango.MachineStudio.MachineDesigner.csproj @@ -146,10 +146,6 @@ {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} Tango.Core - - {0ecd6da8-7aa6-48d9-8b65-279d176ad9af} - Tango.DAL.Observables - {38197109-8610-4d3f-92b9-16d48df94d7c} Tango.DAL.Remote @@ -158,6 +154,10 @@ {b112d89a-a106-41ae-a0c1-4abc84c477f5} Tango.DragAndDrop + + {4206ac58-3b57-4699-8835-90bf6db01a61} + Tango.Integration + {bc932dbd-7cdb-488c-99e4-f02cf441f55e} Tango.Logging diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MachineVersionDialogVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MachineVersionDialogVM.cs index 3776a5e91..15bebefc8 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MachineVersionDialogVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MachineVersionDialogVM.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.Core.Commands; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; using Tango.MachineStudio.MachineDesigner.AutoComplete; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs index 9077826a5..cedbcf9a6 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/ViewModels/MainViewVM.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; using System.Windows.Data; using Tango.Core.Commands; using Tango.Core.Helpers; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Notifications; using Tango.SharedUI; using SimpleValidator.Extensions; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MainView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MainView.xaml.cs index 70e127b6c..528bb3457 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MainView.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Views/MainView.xaml.cs @@ -14,7 +14,7 @@ using System.Windows.Media.Animation; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.DragAndDrop; using Tango.MachineStudio.MachineDesigner.ViewModels; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs index 8b072ea46..359ac2977 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media.Imaging; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common; using Tango.MachineStudio.Stubs.Views; using Tango.SharedUI.Helpers; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/Tango.MachineStudio.Stubs.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/Tango.MachineStudio.Stubs.csproj index 436a8b3ff..c9670d1be 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/Tango.MachineStudio.Stubs.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/Tango.MachineStudio.Stubs.csproj @@ -135,10 +135,6 @@ {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} Tango.Core - - {0ecd6da8-7aa6-48d9-8b65-279d176ad9af} - Tango.DAL.Observables - {4206ac58-3b57-4699-8835-90bf6db01a61} Tango.Integration diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/AutoComplete/MachinesProvider.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/AutoComplete/MachinesProvider.cs index ef2d4fc68..e9d205bed 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/AutoComplete/MachinesProvider.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/AutoComplete/MachinesProvider.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.AutoComplete.Editors; -using Tango.DAL.Observables; +using Tango.Integration.Observables; namespace Tango.MachineStudio.Synchronization.AutoComplete { diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/SynchronizationModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/SynchronizationModule.cs index 4a753b05e..bbf0f8ca1 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/SynchronizationModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/SynchronizationModule.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media.Imaging; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common; using Tango.MachineStudio.Synchronization.Views; using Tango.SharedUI.Helpers; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/Tango.MachineStudio.Synchronization.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/Tango.MachineStudio.Synchronization.csproj index 3c03f1e48..2a95dc082 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/Tango.MachineStudio.Synchronization.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/Tango.MachineStudio.Synchronization.csproj @@ -193,10 +193,6 @@ {0e0eef3e-8f4e-4f23-9d19-479fd8d76c12} Tango.DAL.Local - - {0ecd6da8-7aa6-48d9-8b65-279d176ad9af} - Tango.DAL.Observables - {38197109-8610-4d3f-92b9-16d48df94d7c} Tango.DAL.Remote diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/ViewModels/DirectSynchronizationViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/ViewModels/DirectSynchronizationViewVM.cs index 9a6c921d4..d7dac7fbe 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/ViewModels/DirectSynchronizationViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/ViewModels/DirectSynchronizationViewVM.cs @@ -10,7 +10,7 @@ using System.Threading; using System.Threading.Tasks; using Tango.Core.Commands; using Tango.Core.Helpers; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.Integration.Services; using Tango.MachineStudio.Common.Notifications; using Tango.MachineStudio.Common.StudioApplication; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/ViewModels/RemoteSynchronizationViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/ViewModels/RemoteSynchronizationViewVM.cs index 5ce0a9786..f9f738a26 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/ViewModels/RemoteSynchronizationViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/ViewModels/RemoteSynchronizationViewVM.cs @@ -10,7 +10,7 @@ using System.Threading; using System.Threading.Tasks; using Tango.Core.Commands; using Tango.DAL.Local.DB; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.DAL.Remote.DB; using Tango.Logging; using Tango.MachineStudio.Common.Notifications; diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Tango.MachineStudio.Technician.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Tango.MachineStudio.Technician.csproj index 62da02f50..196589e99 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Tango.MachineStudio.Technician.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Tango.MachineStudio.Technician.csproj @@ -156,10 +156,6 @@ {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} Tango.Core - - {0ecd6da8-7aa6-48d9-8b65-279d176ad9af} - Tango.DAL.Observables - {4206ac58-3b57-4699-8835-90bf6db01a61} Tango.Integration diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs index 4d211acf1..6bdc4c7df 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media.Imaging; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common; using Tango.MachineStudio.Technician.Views; using Tango.SharedUI.Helpers; diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Authentication/IAuthenticationProvider.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Authentication/IAuthenticationProvider.cs index e2d4072ba..590936163 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Authentication/IAuthenticationProvider.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Authentication/IAuthenticationProvider.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; namespace Tango.MachineStudio.Common.Authentication { diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioModule.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioModule.cs index 118afff7e..7718c0a7a 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioModule.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioModule.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media.Imaging; -using Tango.DAL.Observables; +using Tango.Integration.Observables; namespace Tango.MachineStudio.Common { diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Tango.MachineStudio.Common.csproj b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Tango.MachineStudio.Common.csproj index bc7f00d58..cc8ac8ac3 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Tango.MachineStudio.Common.csproj +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Tango.MachineStudio.Common.csproj @@ -158,10 +158,6 @@ {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} Tango.Core - - {0ecd6da8-7aa6-48d9-8b65-279d176ad9af} - Tango.DAL.Observables - {38197109-8610-4d3f-92b9-16d48df94d7c} Tango.DAL.Remote diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs index ca553de1e..50e57aab1 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs @@ -5,7 +5,7 @@ using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; -using Tango.DAL.Observables; +using Tango.Integration.Observables; namespace Tango.MachineStudio.UI { diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Authentication/DefaultAuthenticationProvider.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Authentication/DefaultAuthenticationProvider.cs index 80e5e9762..82aba268d 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Authentication/DefaultAuthenticationProvider.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Authentication/DefaultAuthenticationProvider.cs @@ -5,7 +5,7 @@ using System.Security.Authentication; using System.Text; using System.Threading.Tasks; using Tango.Core; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Authentication; namespace Tango.MachineStudio.UI.Authentication diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs index 0e1bd829b..e08ee9b08 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs @@ -7,6 +7,7 @@ using System.Reflection; using System.Text; using System.Threading.Tasks; using Tango.Core; +using Tango.Integration.Observables; using Tango.MachineStudio.Common; using Tango.MachineStudio.Common.Authentication; using Tango.MachineStudio.Common.Modules; @@ -44,7 +45,7 @@ namespace Tango.MachineStudio.UI.Modules /// /// The sender. /// The e. - private void _authenticationProvider_CurrentUserChanged(object sender, DAL.Observables.User e) + private void _authenticationProvider_CurrentUserChanged(object sender, User e) { LoadModules(); } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj index fb8c023be..5490c2c2b 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj @@ -256,10 +256,6 @@ {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} Tango.Core - - {0ecd6da8-7aa6-48d9-8b65-279d176ad9af} - Tango.DAL.Observables - {38197109-8610-4d3f-92b9-16d48df94d7c} Tango.DAL.Remote diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs index 54e2f9196..55a54e8aa 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading; using System.Threading.Tasks; using Tango.Core.Helpers; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.MachineStudio.Common.Modules; using Tango.MachineStudio.Common.Navigation; using Tango.MachineStudio.Common.Notifications; diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml index 9d5ac4bb1..0c81791cd 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml +++ b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFile.cshtml @@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using Tango.DAL.Remote.DB; -namespace Tango.DAL.Observables +namespace Tango.Integration.Observables { [Table("@(Model.TableName)")] public partial class @(Model.Name) : ObservableEntity<@(Model.Name)> @@ -14,7 +14,7 @@ namespace Tango.DAL.Observables @foreach (var prop in Model.Fields) {
- private @(prop.Type) _@(prop.Name.ToLower()); + protected @(prop.Type) _@(prop.Name.ToLower()); /// /// Gets or sets the @(Model.Name.ToLower()) @(prop.Description). /// diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EnumerationFile.cshtml b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EnumerationFile.cshtml index 408c9b3d5..a8a632679 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EnumerationFile.cshtml +++ b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EnumerationFile.cshtml @@ -4,7 +4,7 @@ using System.Collections.ObjectModel; using System.Linq; using System.ComponentModel; -namespace Tango.DAL.Observables +namespace Tango.Integration.Observables { public enum @(Model.Name) { diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesAdapterFile.cshtml b/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesAdapterFile.cshtml index 856b8ac42..dce9b39e9 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesAdapterFile.cshtml +++ b/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesAdapterFile.cshtml @@ -1,7 +1,7 @@ using System.Collections.ObjectModel; using System.ComponentModel; -namespace Tango.DAL.Observables +namespace Tango.Integration.Observables { public partial class @(Model.Name) { diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesContextCodeFile.cshtml b/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesContextCodeFile.cshtml index 43330235c..2094c0999 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesContextCodeFile.cshtml +++ b/Software/Visual_Studio/Tango.CodeGeneration/Templates/ObservablesContextCodeFile.cshtml @@ -6,7 +6,7 @@ using System.Text; using System.Threading.Tasks; using Tango.Settings; -namespace Tango.DAL.Observables +namespace Tango.Integration.Observables { public class ObservablesContext : DbContext { diff --git a/Software/Visual_Studio/Tango.Core/ExtensionMethods/ObjectExtensions.cs b/Software/Visual_Studio/Tango.Core/ExtensionMethods/ObjectExtensions.cs index 25cfe0a85..88403f8a6 100644 --- a/Software/Visual_Studio/Tango.Core/ExtensionMethods/ObjectExtensions.cs +++ b/Software/Visual_Studio/Tango.Core/ExtensionMethods/ObjectExtensions.cs @@ -41,7 +41,7 @@ public static class ObjectExtensions /// The destination object. public static void ShallowCopyTo(this T source, T destination) { - foreach (var prop in typeof(T).GetProperties(BindingFlags.Public | BindingFlags.Instance)) + foreach (var prop in typeof(T).GetProperties(BindingFlags.Public | BindingFlags.Instance).Where(x => x.SetMethod != null)) { if (!prop.PropertyType.IsGenericType) { diff --git a/Software/Visual_Studio/Tango.DAL.Observables/App.config b/Software/Visual_Studio/Tango.DAL.Observables/App.config deleted file mode 100644 index 2fb423e8b..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/App.config +++ /dev/null @@ -1,13 +0,0 @@ - - - - -
- - - - - - - - \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ActionType.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/ActionType.cs deleted file mode 100644 index f3b675bbe..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ActionType.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("ACTION_TYPES")] - public partial class ActionType : ObservableEntity - { - - private Int32 _code; - /// - /// Gets or sets the actiontype code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _name; - /// - /// Gets or sets the actiontype name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _description; - /// - /// Gets or sets the actiontype description. - /// - [Column("DESCRIPTION")] - - public String Description - { - get - { - return _description; - } - - set - { - _description = value; RaisePropertyChanged(nameof(Description)); - } - - } - - private ObservableCollection _eventtypesactions; - /// - /// Gets or sets the actiontype event types actions. - /// - - public virtual ObservableCollection EventTypesActions - { - get - { - return _eventtypesactions; - } - - set - { - _eventtypesactions = value; RaisePropertyChanged(nameof(EventTypesActions)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public ActionType() : base() - { - - EventTypesActions = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Address.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Address.cs deleted file mode 100644 index cb144e7bf..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Address.cs +++ /dev/null @@ -1,225 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("ADDRESSES")] - public partial class Address : ObservableEntity
- { - - private Boolean _deleted; - /// - /// Gets or sets the address deleted. - /// - [Column("DELETED")] - - public Boolean Deleted - { - get - { - return _deleted; - } - - set - { - _deleted = value; RaisePropertyChanged(nameof(Deleted)); - } - - } - - private String _addressstring; - /// - /// Gets or sets the address address string. - /// - [Column("ADDRESS_STRING")] - - public String AddressString - { - get - { - return _addressstring; - } - - set - { - _addressstring = value; RaisePropertyChanged(nameof(AddressString)); - } - - } - - private String _locality; - /// - /// Gets or sets the address locality. - /// - [Column("LOCALITY")] - - public String Locality - { - get - { - return _locality; - } - - set - { - _locality = value; RaisePropertyChanged(nameof(Locality)); - } - - } - - private String _country; - /// - /// Gets or sets the address country. - /// - [Column("COUNTRY")] - - public String Country - { - get - { - return _country; - } - - set - { - _country = value; RaisePropertyChanged(nameof(Country)); - } - - } - - private String _city; - /// - /// Gets or sets the address city. - /// - [Column("CITY")] - - public String City - { - get - { - return _city; - } - - set - { - _city = value; RaisePropertyChanged(nameof(City)); - } - - } - - private String _state; - /// - /// Gets or sets the address state. - /// - [Column("STATE")] - - public String State - { - get - { - return _state; - } - - set - { - _state = value; RaisePropertyChanged(nameof(State)); - } - - } - - private String _countrycode; - /// - /// Gets or sets the address country code. - /// - [Column("COUNTRY_CODE")] - - public String CountryCode - { - get - { - return _countrycode; - } - - set - { - _countrycode = value; RaisePropertyChanged(nameof(CountryCode)); - } - - } - - private String _postalcode; - /// - /// Gets or sets the address postal code. - /// - [Column("POSTAL_CODE")] - - public String PostalCode - { - get - { - return _postalcode; - } - - set - { - _postalcode = value; RaisePropertyChanged(nameof(PostalCode)); - } - - } - - private ObservableCollection _organizations; - /// - /// Gets or sets the address organizations. - /// - - public virtual ObservableCollection Organizations - { - get - { - return _organizations; - } - - set - { - _organizations = value; RaisePropertyChanged(nameof(Organizations)); - } - - } - - private ObservableCollection _users; - /// - /// Gets or sets the address users. - /// - - public virtual ObservableCollection Users - { - get - { - return _users; - } - - set - { - _users = value; RaisePropertyChanged(nameof(Users)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Address() : base() - { - - Organizations = new ObservableCollection(); - - Users = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationDisplayPanelVersion.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationDisplayPanelVersion.cs deleted file mode 100644 index 8848bb59a..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationDisplayPanelVersion.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("APPLICATION_DISPLAY_PANEL_VERSIONS")] - public partial class ApplicationDisplayPanelVersion : ObservableEntity - { - - private Double _version; - /// - /// Gets or sets the applicationdisplaypanelversion version. - /// - [Column("VERSION")] - - public Double Version - { - get - { - return _version; - } - - set - { - _version = value; RaisePropertyChanged(nameof(Version)); - } - - } - - private String _name; - /// - /// Gets or sets the applicationdisplaypanelversion name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private ObservableCollection _configurations; - /// - /// Gets or sets the applicationdisplaypanelversion configurations. - /// - - public virtual ObservableCollection Configurations - { - get - { - return _configurations; - } - - set - { - _configurations = value; RaisePropertyChanged(nameof(Configurations)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public ApplicationDisplayPanelVersion() : base() - { - - Configurations = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationFirmwareVersion.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationFirmwareVersion.cs deleted file mode 100644 index e85186be2..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationFirmwareVersion.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("APPLICATION_FIRMWARE_VERSIONS")] - public partial class ApplicationFirmwareVersion : ObservableEntity - { - - private Double _version; - /// - /// Gets or sets the applicationfirmwareversion version. - /// - [Column("VERSION")] - - public Double Version - { - get - { - return _version; - } - - set - { - _version = value; RaisePropertyChanged(nameof(Version)); - } - - } - - private String _name; - /// - /// Gets or sets the applicationfirmwareversion name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private ObservableCollection _configurations; - /// - /// Gets or sets the applicationfirmwareversion configurations. - /// - - public virtual ObservableCollection Configurations - { - get - { - return _configurations; - } - - set - { - _configurations = value; RaisePropertyChanged(nameof(Configurations)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public ApplicationFirmwareVersion() : base() - { - - Configurations = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationOsVersion.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationOsVersion.cs deleted file mode 100644 index 5c7cd70b5..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationOsVersion.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("APPLICATION_OS_VERSIONS")] - public partial class ApplicationOsVersion : ObservableEntity - { - - private Double _version; - /// - /// Gets or sets the applicationosversion version. - /// - [Column("VERSION")] - - public Double Version - { - get - { - return _version; - } - - set - { - _version = value; RaisePropertyChanged(nameof(Version)); - } - - } - - private String _name; - /// - /// Gets or sets the applicationosversion name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private ObservableCollection _configurations; - /// - /// Gets or sets the applicationosversion configurations. - /// - - public virtual ObservableCollection Configurations - { - get - { - return _configurations; - } - - set - { - _configurations = value; RaisePropertyChanged(nameof(Configurations)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public ApplicationOsVersion() : base() - { - - Configurations = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationVersion.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationVersion.cs deleted file mode 100644 index 885f647f0..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ApplicationVersion.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("APPLICATION_VERSIONS")] - public partial class ApplicationVersion : ObservableEntity - { - - private Double _version; - /// - /// Gets or sets the applicationversion version. - /// - [Column("VERSION")] - - public Double Version - { - get - { - return _version; - } - - set - { - _version = value; RaisePropertyChanged(nameof(Version)); - } - - } - - private String _name; - /// - /// Gets or sets the applicationversion name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private ObservableCollection _configurations; - /// - /// Gets or sets the applicationversion configurations. - /// - - public virtual ObservableCollection Configurations - { - get - { - return _configurations; - } - - set - { - _configurations = value; RaisePropertyChanged(nameof(Configurations)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public ApplicationVersion() : base() - { - - Configurations = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/BrushStop.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/BrushStop.cs deleted file mode 100644 index 2f5ad1e8e..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/BrushStop.cs +++ /dev/null @@ -1,519 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("BRUSH_STOPS")] - public partial class BrushStop : ObservableEntity - { - - private String _segmentguid; - /// - /// Gets or sets the brushstop segment guid. - /// - [Column("SEGMENT_GUID")] - [ForeignKey("Segment")] - public String SegmentGuid - { - get - { - return _segmentguid; - } - - set - { - _segmentguid = value; RaisePropertyChanged(nameof(SegmentGuid)); - } - - } - - private String _colorspaceguid; - /// - /// Gets or sets the brushstop color space guid. - /// - [Column("COLOR_SPACE_GUID")] - [ForeignKey("ColorSpace")] - public String ColorSpaceGuid - { - get - { - return _colorspaceguid; - } - - set - { - _colorspaceguid = value; RaisePropertyChanged(nameof(ColorSpaceGuid)); - } - - } - - private Double _offsetpercent; - /// - /// Gets or sets the brushstop offset percent. - /// - [Column("OFFSET_PERCENT")] - - public Double OffsetPercent - { - get - { - return _offsetpercent; - } - - set - { - _offsetpercent = value; RaisePropertyChanged(nameof(OffsetPercent)); - } - - } - - private Int32 _stopindex; - /// - /// Gets or sets the brushstop stop index. - /// - [Column("STOP_INDEX")] - - public Int32 StopIndex - { - get - { - return _stopindex; - } - - set - { - _stopindex = value; RaisePropertyChanged(nameof(StopIndex)); - } - - } - - private Double _cyan; - /// - /// Gets or sets the brushstop cyan. - /// - [Column("CYAN")] - - public Double Cyan - { - get - { - return _cyan; - } - - set - { - _cyan = value; RaisePropertyChanged(nameof(Cyan)); - } - - } - - private Double _magenta; - /// - /// Gets or sets the brushstop magenta. - /// - [Column("MAGENTA")] - - public Double Magenta - { - get - { - return _magenta; - } - - set - { - _magenta = value; RaisePropertyChanged(nameof(Magenta)); - } - - } - - private Double _yellow; - /// - /// Gets or sets the brushstop yellow. - /// - [Column("YELLOW")] - - public Double Yellow - { - get - { - return _yellow; - } - - set - { - _yellow = value; RaisePropertyChanged(nameof(Yellow)); - } - - } - - private Double _black; - /// - /// Gets or sets the brushstop black. - /// - [Column("BLACK")] - - public Double Black - { - get - { - return _black; - } - - set - { - _black = value; RaisePropertyChanged(nameof(Black)); - } - - } - - private Int32 _red; - /// - /// Gets or sets the brushstop red. - /// - [Column("RED")] - - public Int32 Red - { - get - { - return _red; - } - - set - { - _red = value; RaisePropertyChanged(nameof(Red)); - } - - } - - private Int32 _green; - /// - /// Gets or sets the brushstop green. - /// - [Column("GREEN")] - - public Int32 Green - { - get - { - return _green; - } - - set - { - _green = value; RaisePropertyChanged(nameof(Green)); - } - - } - - private Int32 _blue; - /// - /// Gets or sets the brushstop blue. - /// - [Column("BLUE")] - - public Int32 Blue - { - get - { - return _blue; - } - - set - { - _blue = value; RaisePropertyChanged(nameof(Blue)); - } - - } - - private Double _l; - /// - /// Gets or sets the brushstop l. - /// - [Column("L")] - - public Double L - { - get - { - return _l; - } - - set - { - _l = value; RaisePropertyChanged(nameof(L)); - } - - } - - private Double _a; - /// - /// Gets or sets the brushstop a. - /// - [Column("A")] - - public Double A - { - get - { - return _a; - } - - set - { - _a = value; RaisePropertyChanged(nameof(A)); - } - - } - - private Double _b; - /// - /// Gets or sets the brushstop b. - /// - [Column("B")] - - public Double B - { - get - { - return _b; - } - - set - { - _b = value; RaisePropertyChanged(nameof(B)); - } - - } - - private Double _v0; - /// - /// Gets or sets the brushstop v0. - /// - [Column("V0")] - - public Double V0 - { - get - { - return _v0; - } - - set - { - _v0 = value; RaisePropertyChanged(nameof(V0)); - } - - } - - private Double _v1; - /// - /// Gets or sets the brushstop v1. - /// - [Column("V1")] - - public Double V1 - { - get - { - return _v1; - } - - set - { - _v1 = value; RaisePropertyChanged(nameof(V1)); - } - - } - - private Double _v2; - /// - /// Gets or sets the brushstop v2. - /// - [Column("V2")] - - public Double V2 - { - get - { - return _v2; - } - - set - { - _v2 = value; RaisePropertyChanged(nameof(V2)); - } - - } - - private Double _v3; - /// - /// Gets or sets the brushstop v3. - /// - [Column("V3")] - - public Double V3 - { - get - { - return _v3; - } - - set - { - _v3 = value; RaisePropertyChanged(nameof(V3)); - } - - } - - private Double _v4; - /// - /// Gets or sets the brushstop v4. - /// - [Column("V4")] - - public Double V4 - { - get - { - return _v4; - } - - set - { - _v4 = value; RaisePropertyChanged(nameof(V4)); - } - - } - - private Double _v5; - /// - /// Gets or sets the brushstop v5. - /// - [Column("V5")] - - public Double V5 - { - get - { - return _v5; - } - - set - { - _v5 = value; RaisePropertyChanged(nameof(V5)); - } - - } - - private Double _v6; - /// - /// Gets or sets the brushstop v6. - /// - [Column("V6")] - - public Double V6 - { - get - { - return _v6; - } - - set - { - _v6 = value; RaisePropertyChanged(nameof(V6)); - } - - } - - private Double _v7; - /// - /// Gets or sets the brushstop v7. - /// - [Column("V7")] - - public Double V7 - { - get - { - return _v7; - } - - set - { - _v7 = value; RaisePropertyChanged(nameof(V7)); - } - - } - - private String _pantonguid; - /// - /// Gets or sets the brushstop panton guid. - /// - [Column("PANTON_GUID")] - public String PantonGuid - { - get - { - return _pantonguid; - } - - set - { - _pantonguid = value; RaisePropertyChanged(nameof(PantonGuid)); - } - - } - - private ColorSpace _colorspace; - /// - /// Gets or sets the brushstop color spaces. - /// - - public virtual ColorSpace ColorSpace - { - get - { - return _colorspace; - } - - set - { - _colorspace = value; RaisePropertyChanged(nameof(ColorSpace)); - } - - } - - private Segment _segment; - /// - /// Gets or sets the brushstop segment. - /// - - public virtual Segment Segment - { - get - { - return _segment; - } - - set - { - _segment = value; RaisePropertyChanged(nameof(Segment)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public BrushStop() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/CartridgeType.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/CartridgeType.cs deleted file mode 100644 index 3b1bba423..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/CartridgeType.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("CARTRIDGE_TYPES")] - public partial class CartridgeType : ObservableEntity - { - - private Int32 _code; - /// - /// Gets or sets the cartridgetype code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _name; - /// - /// Gets or sets the cartridgetype name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private ObservableCollection _idspacks; - /// - /// Gets or sets the cartridgetype ids packs. - /// - - public virtual ObservableCollection IdsPacks - { - get - { - return _idspacks; - } - - set - { - _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public CartridgeType() : base() - { - - IdsPacks = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Cat.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Cat.cs deleted file mode 100644 index 89a00cc85..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Cat.cs +++ /dev/null @@ -1,140 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("CATS")] - public partial class Cat : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the cat name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _liquidtypeguid; - /// - /// Gets or sets the cat liquid type guid. - /// - [Column("LIQUID_TYPE_GUID")] - [ForeignKey("LiquidType")] - public String LiquidTypeGuid - { - get - { - return _liquidtypeguid; - } - - set - { - _liquidtypeguid = value; RaisePropertyChanged(nameof(LiquidTypeGuid)); - } - - } - - private String _rmlguid; - /// - /// Gets or sets the cat rml guid. - /// - [Column("RML_GUID")] - [ForeignKey("Rml")] - public String RmlGuid - { - get - { - return _rmlguid; - } - - set - { - _rmlguid = value; RaisePropertyChanged(nameof(RmlGuid)); - } - - } - - private Byte[] _data; - /// - /// Gets or sets the cat data. - /// - [Column("DATA")] - - public Byte[] Data - { - get - { - return _data; - } - - set - { - _data = value; RaisePropertyChanged(nameof(Data)); - } - - } - - private LiquidType _liquidtype; - /// - /// Gets or sets the cat liquid types. - /// - - public virtual LiquidType LiquidType - { - get - { - return _liquidtype; - } - - set - { - _liquidtype = value; RaisePropertyChanged(nameof(LiquidType)); - } - - } - - private Rml _rml; - /// - /// Gets or sets the cat rml. - /// - - public virtual Rml Rml - { - get - { - return _rml; - } - - set - { - _rml = value; RaisePropertyChanged(nameof(Rml)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Cat() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Cct.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Cct.cs deleted file mode 100644 index dcca67aab..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Cct.cs +++ /dev/null @@ -1,201 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("CCTS")] - public partial class Cct : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the cct name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _description; - /// - /// Gets or sets the cct description. - /// - [Column("DESCRIPTION")] - - public String Description - { - get - { - return _description; - } - - set - { - _description = value; RaisePropertyChanged(nameof(Description)); - } - - } - - private String _forwardfilename; - /// - /// Gets or sets the cct forward file name. - /// - [Column("FORWARD_FILE_NAME")] - - public String ForwardFileName - { - get - { - return _forwardfilename; - } - - set - { - _forwardfilename = value; RaisePropertyChanged(nameof(ForwardFileName)); - } - - } - - private String _inversefilename; - /// - /// Gets or sets the cct inverse file name. - /// - [Column("INVERSE_FILE_NAME")] - - public String InverseFileName - { - get - { - return _inversefilename; - } - - set - { - _inversefilename = value; RaisePropertyChanged(nameof(InverseFileName)); - } - - } - - private Byte[] _forwarddata; - /// - /// Gets or sets the cct forward data. - /// - [Column("FORWARD_DATA")] - - public Byte[] ForwardData - { - get - { - return _forwarddata; - } - - set - { - _forwarddata = value; RaisePropertyChanged(nameof(ForwardData)); - } - - } - - private Byte[] _inversedata; - /// - /// Gets or sets the cct inverse data. - /// - [Column("INVERSE_DATA")] - - public Byte[] InverseData - { - get - { - return _inversedata; - } - - set - { - _inversedata = value; RaisePropertyChanged(nameof(InverseData)); - } - - } - - private Double _version; - /// - /// Gets or sets the cct version. - /// - [Column("VERSION")] - - public Double Version - { - get - { - return _version; - } - - set - { - _version = value; RaisePropertyChanged(nameof(Version)); - } - - } - - private String _rmlguid; - /// - /// Gets or sets the cct rml guid. - /// - [Column("RML_GUID")] - [ForeignKey("Rml")] - public String RmlGuid - { - get - { - return _rmlguid; - } - - set - { - _rmlguid = value; RaisePropertyChanged(nameof(RmlGuid)); - } - - } - - private Rml _rml; - /// - /// Gets or sets the cct rml. - /// - - public virtual Rml Rml - { - get - { - return _rml; - } - - set - { - _rml = value; RaisePropertyChanged(nameof(Rml)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Cct() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ColorSpace.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/ColorSpace.cs deleted file mode 100644 index 98f745bff..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ColorSpace.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("COLOR_SPACES")] - public partial class ColorSpace : ObservableEntity - { - - private Int32 _code; - /// - /// Gets or sets the colorspace code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _name; - /// - /// Gets or sets the colorspace name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _description; - /// - /// Gets or sets the colorspace description. - /// - [Column("DESCRIPTION")] - - public String Description - { - get - { - return _description; - } - - set - { - _description = value; RaisePropertyChanged(nameof(Description)); - } - - } - - private ObservableCollection _brushstops; - /// - /// Gets or sets the colorspace brush stops. - /// - - public virtual ObservableCollection BrushStops - { - get - { - return _brushstops; - } - - set - { - _brushstops = value; RaisePropertyChanged(nameof(BrushStops)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public ColorSpace() : base() - { - - BrushStops = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Configuration.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Configuration.cs deleted file mode 100644 index 323fb7b39..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Configuration.cs +++ /dev/null @@ -1,420 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("CONFIGURATIONS")] - public partial class Configuration : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the configuration name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private DateTime _creationdate; - /// - /// Gets or sets the configuration creation date. - /// - [Column("CREATION_DATE")] - - public DateTime CreationDate - { - get - { - return _creationdate; - } - - set - { - _creationdate = value; RaisePropertyChanged(nameof(CreationDate)); - } - - } - - private String _applicationversionguid; - /// - /// Gets or sets the configuration application version guid. - /// - [Column("APPLICATION_VERSION_GUID")] - [ForeignKey("ApplicationVersion")] - public String ApplicationVersionGuid - { - get - { - return _applicationversionguid; - } - - set - { - _applicationversionguid = value; RaisePropertyChanged(nameof(ApplicationVersionGuid)); - } - - } - - private String _applicationosversionguid; - /// - /// Gets or sets the configuration application os version guid. - /// - [Column("APPLICATION_OS_VERSION_GUID")] - [ForeignKey("ApplicationOsVersion")] - public String ApplicationOsVersionGuid - { - get - { - return _applicationosversionguid; - } - - set - { - _applicationosversionguid = value; RaisePropertyChanged(nameof(ApplicationOsVersionGuid)); - } - - } - - private String _applicationfirmwareversionguid; - /// - /// Gets or sets the configuration application firmware version guid. - /// - [Column("APPLICATION_FIRMWARE_VERSION_GUID")] - [ForeignKey("ApplicationFirmwareVersion")] - public String ApplicationFirmwareVersionGuid - { - get - { - return _applicationfirmwareversionguid; - } - - set - { - _applicationfirmwareversionguid = value; RaisePropertyChanged(nameof(ApplicationFirmwareVersionGuid)); - } - - } - - private String _applicationdisplaypanelversionguid; - /// - /// Gets or sets the configuration application display panel version guid. - /// - [Column("APPLICATION_DISPLAY_PANEL_VERSION_GUID")] - [ForeignKey("ApplicationDisplayPanelVersion")] - public String ApplicationDisplayPanelVersionGuid - { - get - { - return _applicationdisplaypanelversionguid; - } - - set - { - _applicationdisplaypanelversionguid = value; RaisePropertyChanged(nameof(ApplicationDisplayPanelVersionGuid)); - } - - } - - private String _embeddedfirmwareversionguid; - /// - /// Gets or sets the configuration embedded firmware version guid. - /// - [Column("EMBEDDED_FIRMWARE_VERSION_GUID")] - [ForeignKey("EmbeddedFirmwareVersion")] - public String EmbeddedFirmwareVersionGuid - { - get - { - return _embeddedfirmwareversionguid; - } - - set - { - _embeddedfirmwareversionguid = value; RaisePropertyChanged(nameof(EmbeddedFirmwareVersionGuid)); - } - - } - - private String _embeddedsoftwareversionguid; - /// - /// Gets or sets the configuration embedded software version guid. - /// - [Column("EMBEDDED_SOFTWARE_VERSION_GUID")] - [ForeignKey("EmbeddedSoftwareVersion")] - public String EmbeddedSoftwareVersionGuid - { - get - { - return _embeddedsoftwareversionguid; - } - - set - { - _embeddedsoftwareversionguid = value; RaisePropertyChanged(nameof(EmbeddedSoftwareVersionGuid)); - } - - } - - private String _hardwareversionguid; - /// - /// Gets or sets the configuration hardware version guid. - /// - [Column("HARDWARE_VERSION_GUID")] - [ForeignKey("HardwareVersion")] - public String HardwareVersionGuid - { - get - { - return _hardwareversionguid; - } - - set - { - _hardwareversionguid = value; RaisePropertyChanged(nameof(HardwareVersionGuid)); - } - - } - - private ApplicationDisplayPanelVersion _applicationdisplaypanelversion; - /// - /// Gets or sets the configuration application display panel versions. - /// - - public virtual ApplicationDisplayPanelVersion ApplicationDisplayPanelVersion - { - get - { - return _applicationdisplaypanelversion; - } - - set - { - _applicationdisplaypanelversion = value; RaisePropertyChanged(nameof(ApplicationDisplayPanelVersion)); - } - - } - - private ApplicationFirmwareVersion _applicationfirmwareversion; - /// - /// Gets or sets the configuration application firmware versions. - /// - - public virtual ApplicationFirmwareVersion ApplicationFirmwareVersion - { - get - { - return _applicationfirmwareversion; - } - - set - { - _applicationfirmwareversion = value; RaisePropertyChanged(nameof(ApplicationFirmwareVersion)); - } - - } - - private ApplicationOsVersion _applicationosversion; - /// - /// Gets or sets the configuration application os versions. - /// - - public virtual ApplicationOsVersion ApplicationOsVersion - { - get - { - return _applicationosversion; - } - - set - { - _applicationosversion = value; RaisePropertyChanged(nameof(ApplicationOsVersion)); - } - - } - - private ApplicationVersion _applicationversion; - /// - /// Gets or sets the configuration application versions. - /// - - public virtual ApplicationVersion ApplicationVersion - { - get - { - return _applicationversion; - } - - set - { - _applicationversion = value; RaisePropertyChanged(nameof(ApplicationVersion)); - } - - } - - private EmbeddedFirmwareVersion _embeddedfirmwareversion; - /// - /// Gets or sets the configuration embedded firmware versions. - /// - - public virtual EmbeddedFirmwareVersion EmbeddedFirmwareVersion - { - get - { - return _embeddedfirmwareversion; - } - - set - { - _embeddedfirmwareversion = value; RaisePropertyChanged(nameof(EmbeddedFirmwareVersion)); - } - - } - - private EmbeddedSoftwareVersion _embeddedsoftwareversion; - /// - /// Gets or sets the configuration embedded software versions. - /// - - public virtual EmbeddedSoftwareVersion EmbeddedSoftwareVersion - { - get - { - return _embeddedsoftwareversion; - } - - set - { - _embeddedsoftwareversion = value; RaisePropertyChanged(nameof(EmbeddedSoftwareVersion)); - } - - } - - private HardwareVersion _hardwareversion; - /// - /// Gets or sets the configuration hardware versions. - /// - - public virtual HardwareVersion HardwareVersion - { - get - { - return _hardwareversion; - } - - set - { - _hardwareversion = value; RaisePropertyChanged(nameof(HardwareVersion)); - } - - } - - private ObservableCollection _idspacks; - /// - /// Gets or sets the configuration ids packs. - /// - - public virtual ObservableCollection IdsPacks - { - get - { - return _idspacks; - } - - set - { - _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); - } - - } - - private ObservableCollection _machineversions; - /// - /// Gets or sets the configuration machine versions. - /// - - public virtual ObservableCollection MachineVersions - { - get - { - return _machineversions; - } - - set - { - _machineversions = value; RaisePropertyChanged(nameof(MachineVersions)); - } - - } - - private ObservableCollection _machines; - /// - /// Gets or sets the configuration machines. - /// - - public virtual ObservableCollection Machines - { - get - { - return _machines; - } - - set - { - _machines = value; RaisePropertyChanged(nameof(Machines)); - } - - } - - private ObservableCollection _machinesconfigurations; - /// - /// Gets or sets the configuration machines configurations. - /// - - public virtual ObservableCollection MachinesConfigurations - { - get - { - return _machinesconfigurations; - } - - set - { - _machinesconfigurations = value; RaisePropertyChanged(nameof(MachinesConfigurations)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Configuration() : base() - { - - IdsPacks = new ObservableCollection(); - - MachineVersions = new ObservableCollection(); - - Machines = new ObservableCollection(); - - MachinesConfigurations = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Contact.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Contact.cs deleted file mode 100644 index c310451ac..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Contact.cs +++ /dev/null @@ -1,205 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("CONTACTS")] - public partial class Contact : ObservableEntity - { - - private Boolean _deleted; - /// - /// Gets or sets the contact deleted. - /// - [Column("DELETED")] - - public Boolean Deleted - { - get - { - return _deleted; - } - - set - { - _deleted = value; RaisePropertyChanged(nameof(Deleted)); - } - - } - - private String _firstname; - /// - /// Gets or sets the contact first name. - /// - [Column("FIRST_NAME")] - - public String FirstName - { - get - { - return _firstname; - } - - set - { - _firstname = value; RaisePropertyChanged(nameof(FirstName)); - } - - } - - private String _lastname; - /// - /// Gets or sets the contact last name. - /// - [Column("LAST_NAME")] - - public String LastName - { - get - { - return _lastname; - } - - set - { - _lastname = value; RaisePropertyChanged(nameof(LastName)); - } - - } - - private String _fullname; - /// - /// Gets or sets the contact full name. - /// - [Column("FULL_NAME")] - - public String FullName - { - get - { - return _fullname; - } - - set - { - _fullname = value; RaisePropertyChanged(nameof(FullName)); - } - - } - - private String _email; - /// - /// Gets or sets the contact email. - /// - [Column("EMAIL")] - - public String Email - { - get - { - return _email; - } - - set - { - _email = value; RaisePropertyChanged(nameof(Email)); - } - - } - - private String _phonenumber; - /// - /// Gets or sets the contact phone number. - /// - [Column("PHONE_NUMBER")] - - public String PhoneNumber - { - get - { - return _phonenumber; - } - - set - { - _phonenumber = value; RaisePropertyChanged(nameof(PhoneNumber)); - } - - } - - private String _fax; - /// - /// Gets or sets the contact fax. - /// - [Column("FAX")] - - public String Fax - { - get - { - return _fax; - } - - set - { - _fax = value; RaisePropertyChanged(nameof(Fax)); - } - - } - - private ObservableCollection _organizations; - /// - /// Gets or sets the contact organizations. - /// - - public virtual ObservableCollection Organizations - { - get - { - return _organizations; - } - - set - { - _organizations = value; RaisePropertyChanged(nameof(Organizations)); - } - - } - - private ObservableCollection _users; - /// - /// Gets or sets the contact users. - /// - - public virtual ObservableCollection Users - { - get - { - return _users; - } - - set - { - _users = value; RaisePropertyChanged(nameof(Users)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Contact() : base() - { - - Organizations = new ObservableCollection(); - - Users = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/DispenserType.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/DispenserType.cs deleted file mode 100644 index 04b3258e3..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/DispenserType.cs +++ /dev/null @@ -1,124 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("DISPENSER_TYPES")] - public partial class DispenserType : ObservableEntity - { - - private Int32 _code; - /// - /// Gets or sets the dispensertype code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _name; - /// - /// Gets or sets the dispensertype name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private Double _nlperpulse; - /// - /// Gets or sets the dispensertype nl per pulse. - /// - [Column("NL_PER_PULSE")] - - public Double NlPerPulse - { - get - { - return _nlperpulse; - } - - set - { - _nlperpulse = value; RaisePropertyChanged(nameof(NlPerPulse)); - } - - } - - private Double _capacity; - /// - /// Gets or sets the dispensertype capacity. - /// - [Column("CAPACITY")] - - public Double Capacity - { - get - { - return _capacity; - } - - set - { - _capacity = value; RaisePropertyChanged(nameof(Capacity)); - } - - } - - private ObservableCollection _idspacks; - /// - /// Gets or sets the dispensertype ids packs. - /// - - public virtual ObservableCollection IdsPacks - { - get - { - return _idspacks; - } - - set - { - _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public DispenserType() : base() - { - - IdsPacks = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/EmbeddedFirmwareVersion.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/EmbeddedFirmwareVersion.cs deleted file mode 100644 index d10426933..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/EmbeddedFirmwareVersion.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("EMBEDDED_FIRMWARE_VERSIONS")] - public partial class EmbeddedFirmwareVersion : ObservableEntity - { - - private Double _version; - /// - /// Gets or sets the embeddedfirmwareversion version. - /// - [Column("VERSION")] - - public Double Version - { - get - { - return _version; - } - - set - { - _version = value; RaisePropertyChanged(nameof(Version)); - } - - } - - private String _name; - /// - /// Gets or sets the embeddedfirmwareversion name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private ObservableCollection _configurations; - /// - /// Gets or sets the embeddedfirmwareversion configurations. - /// - - public virtual ObservableCollection Configurations - { - get - { - return _configurations; - } - - set - { - _configurations = value; RaisePropertyChanged(nameof(Configurations)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public EmbeddedFirmwareVersion() : base() - { - - Configurations = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/EmbeddedSoftwareVersion.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/EmbeddedSoftwareVersion.cs deleted file mode 100644 index 55a8ca985..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/EmbeddedSoftwareVersion.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("EMBEDDED_SOFTWARE_VERSIONS")] - public partial class EmbeddedSoftwareVersion : ObservableEntity - { - - private Double _version; - /// - /// Gets or sets the embeddedsoftwareversion version. - /// - [Column("VERSION")] - - public Double Version - { - get - { - return _version; - } - - set - { - _version = value; RaisePropertyChanged(nameof(Version)); - } - - } - - private String _name; - /// - /// Gets or sets the embeddedsoftwareversion name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private ObservableCollection _configurations; - /// - /// Gets or sets the embeddedsoftwareversion configurations. - /// - - public virtual ObservableCollection Configurations - { - get - { - return _configurations; - } - - set - { - _configurations = value; RaisePropertyChanged(nameof(Configurations)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public EmbeddedSoftwareVersion() : base() - { - - Configurations = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/EventType.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/EventType.cs deleted file mode 100644 index a26fe70dc..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/EventType.cs +++ /dev/null @@ -1,125 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("EVENT_TYPES")] - public partial class EventType : ObservableEntity - { - - private Int32 _code; - /// - /// Gets or sets the eventtype code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _name; - /// - /// Gets or sets the eventtype name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _description; - /// - /// Gets or sets the eventtype description. - /// - [Column("DESCRIPTION")] - - public String Description - { - get - { - return _description; - } - - set - { - _description = value; RaisePropertyChanged(nameof(Description)); - } - - } - - private ObservableCollection _eventtypesactions; - /// - /// Gets or sets the eventtype event types actions. - /// - - public virtual ObservableCollection EventTypesActions - { - get - { - return _eventtypesactions; - } - - set - { - _eventtypesactions = value; RaisePropertyChanged(nameof(EventTypesActions)); - } - - } - - private ObservableCollection _machinesevents; - /// - /// Gets or sets the eventtype machines events. - /// - - public virtual ObservableCollection MachinesEvents - { - get - { - return _machinesevents; - } - - set - { - _machinesevents = value; RaisePropertyChanged(nameof(MachinesEvents)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public EventType() : base() - { - - EventTypesActions = new ObservableCollection(); - - MachinesEvents = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/EventTypesAction.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/EventTypesAction.cs deleted file mode 100644 index 87f552957..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/EventTypesAction.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("EVENT_TYPES_ACTIONS")] - public partial class EventTypesAction : ObservableEntity - { - - private String _eventtypeguid; - /// - /// Gets or sets the eventtypesaction event type guid. - /// - [Column("EVENT_TYPE_GUID")] - [ForeignKey("EventType")] - public String EventTypeGuid - { - get - { - return _eventtypeguid; - } - - set - { - _eventtypeguid = value; RaisePropertyChanged(nameof(EventTypeGuid)); - } - - } - - private String _actiontypeguid; - /// - /// Gets or sets the eventtypesaction action type guid. - /// - [Column("ACTION_TYPE_GUID")] - [ForeignKey("ActionType")] - public String ActionTypeGuid - { - get - { - return _actiontypeguid; - } - - set - { - _actiontypeguid = value; RaisePropertyChanged(nameof(ActionTypeGuid)); - } - - } - - private ActionType _actiontype; - /// - /// Gets or sets the eventtypesaction action types. - /// - - public virtual ActionType ActionType - { - get - { - return _actiontype; - } - - set - { - _actiontype = value; RaisePropertyChanged(nameof(ActionType)); - } - - } - - private EventType _eventtype; - /// - /// Gets or sets the eventtypesaction event types. - /// - - public virtual EventType EventType - { - get - { - return _eventtype; - } - - set - { - _eventtype = value; RaisePropertyChanged(nameof(EventType)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public EventTypesAction() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/FiberShape.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/FiberShape.cs deleted file mode 100644 index 4d91a522b..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/FiberShape.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("FIBER_SHAPES")] - public partial class FiberShape : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the fibershape name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private Int32 _code; - /// - /// Gets or sets the fibershape code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private ObservableCollection _rmls; - /// - /// Gets or sets the fibershape rmls. - /// - - public virtual ObservableCollection Rmls - { - get - { - return _rmls; - } - - set - { - _rmls = value; RaisePropertyChanged(nameof(Rmls)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public FiberShape() : base() - { - - Rmls = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/FiberSynth.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/FiberSynth.cs deleted file mode 100644 index 3b099b4de..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/FiberSynth.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("FIBER_SYNTHS")] - public partial class FiberSynth : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the fibersynth name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private Int32 _code; - /// - /// Gets or sets the fibersynth code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private ObservableCollection _rmls; - /// - /// Gets or sets the fibersynth rmls. - /// - - public virtual ObservableCollection Rmls - { - get - { - return _rmls; - } - - set - { - _rmls = value; RaisePropertyChanged(nameof(Rmls)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public FiberSynth() : base() - { - - Rmls = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/HardwareVersion.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/HardwareVersion.cs deleted file mode 100644 index bddc684d3..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/HardwareVersion.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("HARDWARE_VERSIONS")] - public partial class HardwareVersion : ObservableEntity - { - - private Double _version; - /// - /// Gets or sets the hardwareversion version. - /// - [Column("VERSION")] - - public Double Version - { - get - { - return _version; - } - - set - { - _version = value; RaisePropertyChanged(nameof(Version)); - } - - } - - private String _name; - /// - /// Gets or sets the hardwareversion name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private ObservableCollection _configurations; - /// - /// Gets or sets the hardwareversion configurations. - /// - - public virtual ObservableCollection Configurations - { - get - { - return _configurations; - } - - set - { - _configurations = value; RaisePropertyChanged(nameof(Configurations)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public HardwareVersion() : base() - { - - Configurations = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/IdsPack.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/IdsPack.cs deleted file mode 100644 index e3a48c422..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/IdsPack.cs +++ /dev/null @@ -1,296 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("IDS_PACKS")] - public partial class IdsPack : ObservableEntity - { - - private String _configurationguid; - /// - /// Gets or sets the idspack configuration guid. - /// - [Column("CONFIGURATION_GUID")] - [ForeignKey("Configuration")] - public String ConfigurationGuid - { - get - { - return _configurationguid; - } - - set - { - _configurationguid = value; RaisePropertyChanged(nameof(ConfigurationGuid)); - } - - } - - private String _dispensertypeguid; - /// - /// Gets or sets the idspack dispenser type guid. - /// - [Column("DISPENSER_TYPE_GUID")] - [ForeignKey("DispenserType")] - public String DispenserTypeGuid - { - get - { - return _dispensertypeguid; - } - - set - { - _dispensertypeguid = value; RaisePropertyChanged(nameof(DispenserTypeGuid)); - } - - } - - private String _liquidtypeguid; - /// - /// Gets or sets the idspack liquid type guid. - /// - [Column("LIQUID_TYPE_GUID")] - [ForeignKey("LiquidType")] - public String LiquidTypeGuid - { - get - { - return _liquidtypeguid; - } - - set - { - _liquidtypeguid = value; RaisePropertyChanged(nameof(LiquidTypeGuid)); - } - - } - - private String _cartridgetypeguid; - /// - /// Gets or sets the idspack cartridge type guid. - /// - [Column("CARTRIDGE_TYPE_GUID")] - [ForeignKey("CartridgeType")] - public String CartridgeTypeGuid - { - get - { - return _cartridgetypeguid; - } - - set - { - _cartridgetypeguid = value; RaisePropertyChanged(nameof(CartridgeTypeGuid)); - } - - } - - private String _midtanktypeguid; - /// - /// Gets or sets the idspack mid tank type guid. - /// - [Column("MID_TANK_TYPE_GUID")] - [ForeignKey("MidTankType")] - public String MidTankTypeGuid - { - get - { - return _midtanktypeguid; - } - - set - { - _midtanktypeguid = value; RaisePropertyChanged(nameof(MidTankTypeGuid)); - } - - } - - private String _name; - /// - /// Gets or sets the idspack name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private Int32 _packindex; - /// - /// Gets or sets the idspack pack index. - /// - [Column("PACK_INDEX")] - - public Int32 PackIndex - { - get - { - return _packindex; - } - - set - { - _packindex = value; RaisePropertyChanged(nameof(PackIndex)); - } - - } - - private String _idspackformulaguid; - /// - /// Gets or sets the idspack ids pack formula guid. - /// - [Column("IDS_PACK_FORMULA_GUID")] - [ForeignKey("IdsPackFormula")] - public String IdsPackFormulaGuid - { - get - { - return _idspackformulaguid; - } - - set - { - _idspackformulaguid = value; RaisePropertyChanged(nameof(IdsPackFormulaGuid)); - } - - } - - private CartridgeType _cartridgetype; - /// - /// Gets or sets the idspack cartridge types. - /// - - public virtual CartridgeType CartridgeType - { - get - { - return _cartridgetype; - } - - set - { - _cartridgetype = value; RaisePropertyChanged(nameof(CartridgeType)); - } - - } - - private Configuration _configuration; - /// - /// Gets or sets the idspack configuration. - /// - - public virtual Configuration Configuration - { - get - { - return _configuration; - } - - set - { - _configuration = value; RaisePropertyChanged(nameof(Configuration)); - } - - } - - private DispenserType _dispensertype; - /// - /// Gets or sets the idspack dispenser types. - /// - - public virtual DispenserType DispenserType - { - get - { - return _dispensertype; - } - - set - { - _dispensertype = value; RaisePropertyChanged(nameof(DispenserType)); - } - - } - - private IdsPackFormula _idspackformula; - /// - /// Gets or sets the idspack ids pack formulas. - /// - - public virtual IdsPackFormula IdsPackFormula - { - get - { - return _idspackformula; - } - - set - { - _idspackformula = value; RaisePropertyChanged(nameof(IdsPackFormula)); - } - - } - - private LiquidType _liquidtype; - /// - /// Gets or sets the idspack liquid types. - /// - - public virtual LiquidType LiquidType - { - get - { - return _liquidtype; - } - - set - { - _liquidtype = value; RaisePropertyChanged(nameof(LiquidType)); - } - - } - - private MidTankType _midtanktype; - /// - /// Gets or sets the idspack mid tank types. - /// - - public virtual MidTankType MidTankType - { - get - { - return _midtanktype; - } - - set - { - _midtanktype = value; RaisePropertyChanged(nameof(MidTankType)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public IdsPack() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/IdsPackFormula.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/IdsPackFormula.cs deleted file mode 100644 index 0ad754233..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/IdsPackFormula.cs +++ /dev/null @@ -1,124 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("IDS_PACK_FORMULAS")] - public partial class IdsPackFormula : ObservableEntity - { - - private Int32 _code; - /// - /// Gets or sets the idspackformula code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _name; - /// - /// Gets or sets the idspackformula name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _description; - /// - /// Gets or sets the idspackformula description. - /// - [Column("DESCRIPTION")] - - public String Description - { - get - { - return _description; - } - - set - { - _description = value; RaisePropertyChanged(nameof(Description)); - } - - } - - private Boolean _autocalculated; - /// - /// Gets or sets the idspackformula auto calculated. - /// - [Column("AUTO_CALCULATED")] - - public Boolean AutoCalculated - { - get - { - return _autocalculated; - } - - set - { - _autocalculated = value; RaisePropertyChanged(nameof(AutoCalculated)); - } - - } - - private ObservableCollection _idspacks; - /// - /// Gets or sets the idspackformula ids packs. - /// - - public virtual ObservableCollection IdsPacks - { - get - { - return _idspacks; - } - - set - { - _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public IdsPackFormula() : base() - { - - IdsPacks = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Job.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Job.cs deleted file mode 100644 index 37c8e6736..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Job.cs +++ /dev/null @@ -1,302 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("JOBS")] - public partial class Job : ObservableEntity - { - - private DateTime _creationdate; - /// - /// Gets or sets the job creation date. - /// - [Column("CREATION_DATE")] - - public DateTime CreationDate - { - get - { - return _creationdate; - } - - set - { - _creationdate = value; RaisePropertyChanged(nameof(CreationDate)); - } - - } - - private String _machineguid; - /// - /// Gets or sets the job machine guid. - /// - [Column("MACHINE_GUID")] - [ForeignKey("Machine")] - public String MachineGuid - { - get - { - return _machineguid; - } - - set - { - _machineguid = value; RaisePropertyChanged(nameof(MachineGuid)); - } - - } - - private String _rmlguid; - /// - /// Gets or sets the job rml guid. - /// - [Column("RML_GUID")] - [ForeignKey("Rml")] - public String RmlGuid - { - get - { - return _rmlguid; - } - - set - { - _rmlguid = value; RaisePropertyChanged(nameof(RmlGuid)); - } - - } - - private String _windingmethodguid; - /// - /// Gets or sets the job winding method guid. - /// - [Column("WINDING_METHOD_GUID")] - [ForeignKey("WindingMethod")] - public String WindingMethodGuid - { - get - { - return _windingmethodguid; - } - - set - { - _windingmethodguid = value; RaisePropertyChanged(nameof(WindingMethodGuid)); - } - - } - - private String _name; - /// - /// Gets or sets the job name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _description; - /// - /// Gets or sets the job description. - /// - [Column("DESCRIPTION")] - - public String Description - { - get - { - return _description; - } - - set - { - _description = value; RaisePropertyChanged(nameof(Description)); - } - - } - - private Double _intersegmentlength; - /// - /// Gets or sets the job inter segment length. - /// - [Column("INTER_SEGMENT_LENGTH")] - - public Double InterSegmentLength - { - get - { - return _intersegmentlength; - } - - set - { - _intersegmentlength = value; RaisePropertyChanged(nameof(InterSegmentLength)); - } - - } - - private Boolean _enableintersegment; - /// - /// Gets or sets the job enable inter segment. - /// - [Column("ENABLE_INTER_SEGMENT")] - - public Boolean EnableInterSegment - { - get - { - return _enableintersegment; - } - - set - { - _enableintersegment = value; RaisePropertyChanged(nameof(EnableInterSegment)); - } - - } - - private Boolean _enablelubrication; - /// - /// Gets or sets the job enable lubrication. - /// - [Column("ENABLE_LUBRICATION")] - - public Boolean EnableLubrication - { - get - { - return _enablelubrication; - } - - set - { - _enablelubrication = value; RaisePropertyChanged(nameof(EnableLubrication)); - } - - } - - private ObservableCollection _jobruns; - /// - /// Gets or sets the job job runs. - /// - - public virtual ObservableCollection JobRuns - { - get - { - return _jobruns; - } - - set - { - _jobruns = value; RaisePropertyChanged(nameof(JobRuns)); - } - - } - - private Machine _machine; - /// - /// Gets or sets the job machine. - /// - - public virtual Machine Machine - { - get - { - return _machine; - } - - set - { - _machine = value; RaisePropertyChanged(nameof(Machine)); - } - - } - - private Rml _rml; - /// - /// Gets or sets the job rml. - /// - - public virtual Rml Rml - { - get - { - return _rml; - } - - set - { - _rml = value; RaisePropertyChanged(nameof(Rml)); - } - - } - - private WindingMethod _windingmethod; - /// - /// Gets or sets the job winding methods. - /// - - public virtual WindingMethod WindingMethod - { - get - { - return _windingmethod; - } - - set - { - _windingmethod = value; RaisePropertyChanged(nameof(WindingMethod)); - } - - } - - private ObservableCollection _segments; - /// - /// Gets or sets the job segments. - /// - - public virtual ObservableCollection Segments - { - get - { - return _segments; - } - - set - { - _segments = value; RaisePropertyChanged(nameof(Segments)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Job() : base() - { - - JobRuns = new ObservableCollection(); - - Segments = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/JobRun.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/JobRun.cs deleted file mode 100644 index b15ca1511..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/JobRun.cs +++ /dev/null @@ -1,121 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("JOB_RUNS")] - public partial class JobRun : ObservableEntity - { - - private String _jobguid; - /// - /// Gets or sets the jobrun job guid. - /// - [Column("JOB_GUID")] - [ForeignKey("Job")] - public String JobGuid - { - get - { - return _jobguid; - } - - set - { - _jobguid = value; RaisePropertyChanged(nameof(JobGuid)); - } - - } - - private DateTime _startdate; - /// - /// Gets or sets the jobrun start date. - /// - [Column("START_DATE")] - - public DateTime StartDate - { - get - { - return _startdate; - } - - set - { - _startdate = value; RaisePropertyChanged(nameof(StartDate)); - } - - } - - private DateTime _enddate; - /// - /// Gets or sets the jobrun end date. - /// - [Column("END_DATE")] - - public DateTime EndDate - { - get - { - return _enddate; - } - - set - { - _enddate = value; RaisePropertyChanged(nameof(EndDate)); - } - - } - - private Boolean _successful; - /// - /// Gets or sets the jobrun successful. - /// - [Column("SUCCESSFUL")] - - public Boolean Successful - { - get - { - return _successful; - } - - set - { - _successful = value; RaisePropertyChanged(nameof(Successful)); - } - - } - - private Job _job; - /// - /// Gets or sets the jobrun job. - /// - - public virtual Job Job - { - get - { - return _job; - } - - set - { - _job = value; RaisePropertyChanged(nameof(Job)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public JobRun() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/LinearMassDensityUnit.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/LinearMassDensityUnit.cs deleted file mode 100644 index d0740e583..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/LinearMassDensityUnit.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("LINEAR_MASS_DENSITY_UNITS")] - public partial class LinearMassDensityUnit : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the linearmassdensityunit name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private Int32 _code; - /// - /// Gets or sets the linearmassdensityunit code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private ObservableCollection _rmls; - /// - /// Gets or sets the linearmassdensityunit rmls. - /// - - public virtual ObservableCollection Rmls - { - get - { - return _rmls; - } - - set - { - _rmls = value; RaisePropertyChanged(nameof(Rmls)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public LinearMassDensityUnit() : base() - { - - Rmls = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/LiquidType.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/LiquidType.cs deleted file mode 100644 index a166d8ec4..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/LiquidType.cs +++ /dev/null @@ -1,166 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("LIQUID_TYPES")] - public partial class LiquidType : ObservableEntity - { - - private Int32 _code; - /// - /// Gets or sets the liquidtype code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _name; - /// - /// Gets or sets the liquidtype name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private Double _version; - /// - /// Gets or sets the liquidtype version. - /// - [Column("VERSION")] - - public Double Version - { - get - { - return _version; - } - - set - { - _version = value; RaisePropertyChanged(nameof(Version)); - } - - } - - private Int32 _color; - /// - /// Gets or sets the liquidtype color. - /// - [Column("COLOR")] - - public Int32 Color - { - get - { - return _color; - } - - set - { - _color = value; RaisePropertyChanged(nameof(Color)); - } - - } - - private ObservableCollection _cats; - /// - /// Gets or sets the liquidtype cats. - /// - - public virtual ObservableCollection Cats - { - get - { - return _cats; - } - - set - { - _cats = value; RaisePropertyChanged(nameof(Cats)); - } - - } - - private ObservableCollection _idspacks; - /// - /// Gets or sets the liquidtype ids packs. - /// - - public virtual ObservableCollection IdsPacks - { - get - { - return _idspacks; - } - - set - { - _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); - } - - } - - private ObservableCollection _liquidtypesrmls; - /// - /// Gets or sets the liquidtype liquid types rmls. - /// - - public virtual ObservableCollection LiquidTypesRmls - { - get - { - return _liquidtypesrmls; - } - - set - { - _liquidtypesrmls = value; RaisePropertyChanged(nameof(LiquidTypesRmls)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public LiquidType() : base() - { - - Cats = new ObservableCollection(); - - IdsPacks = new ObservableCollection(); - - LiquidTypesRmls = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/LiquidTypesRml.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/LiquidTypesRml.cs deleted file mode 100644 index 3f8fb6bad..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/LiquidTypesRml.cs +++ /dev/null @@ -1,120 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("LIQUID_TYPES_RMLS")] - public partial class LiquidTypesRml : ObservableEntity - { - - private String _liquidtypeguid; - /// - /// Gets or sets the liquidtypesrml liquid type guid. - /// - [Column("LIQUID_TYPE_GUID")] - [ForeignKey("LiquidType")] - public String LiquidTypeGuid - { - get - { - return _liquidtypeguid; - } - - set - { - _liquidtypeguid = value; RaisePropertyChanged(nameof(LiquidTypeGuid)); - } - - } - - private String _rmlguid; - /// - /// Gets or sets the liquidtypesrml rml guid. - /// - [Column("RML_GUID")] - [ForeignKey("Rml")] - public String RmlGuid - { - get - { - return _rmlguid; - } - - set - { - _rmlguid = value; RaisePropertyChanged(nameof(RmlGuid)); - } - - } - - private Double _maxnlpercm; - /// - /// Gets or sets the liquidtypesrml max nl per cm. - /// - [Column("MAX_NL_PER_CM")] - - public Double MaxNlPerCm - { - get - { - return _maxnlpercm; - } - - set - { - _maxnlpercm = value; RaisePropertyChanged(nameof(MaxNlPerCm)); - } - - } - - private LiquidType _liquidtype; - /// - /// Gets or sets the liquidtypesrml liquid types. - /// - - public virtual LiquidType LiquidType - { - get - { - return _liquidtype; - } - - set - { - _liquidtype = value; RaisePropertyChanged(nameof(LiquidType)); - } - - } - - private Rml _rml; - /// - /// Gets or sets the liquidtypesrml rml. - /// - - public virtual Rml Rml - { - get - { - return _rml; - } - - set - { - _rml = value; RaisePropertyChanged(nameof(Rml)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public LiquidTypesRml() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Machine.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Machine.cs deleted file mode 100644 index 3b41da138..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Machine.cs +++ /dev/null @@ -1,263 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("MACHINES")] - public partial class Machine : ObservableEntity - { - - private String _serialnumber; - /// - /// Gets or sets the machine serial number. - /// - [Column("SERIAL_NUMBER")] - - public String SerialNumber - { - get - { - return _serialnumber; - } - - set - { - _serialnumber = value; RaisePropertyChanged(nameof(SerialNumber)); - } - - } - - private String _name; - /// - /// Gets or sets the machine name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private DateTime _productiondate; - /// - /// Gets or sets the machine production date. - /// - [Column("PRODUCTION_DATE")] - - public DateTime ProductionDate - { - get - { - return _productiondate; - } - - set - { - _productiondate = value; RaisePropertyChanged(nameof(ProductionDate)); - } - - } - - private String _organizationguid; - /// - /// Gets or sets the machine organization guid. - /// - [Column("ORGANIZATION_GUID")] - [ForeignKey("Organization")] - public String OrganizationGuid - { - get - { - return _organizationguid; - } - - set - { - _organizationguid = value; RaisePropertyChanged(nameof(OrganizationGuid)); - } - - } - - private String _machineversionguid; - /// - /// Gets or sets the machine machine version guid. - /// - [Column("MACHINE_VERSION_GUID")] - [ForeignKey("MachineVersion")] - public String MachineVersionGuid - { - get - { - return _machineversionguid; - } - - set - { - _machineversionguid = value; RaisePropertyChanged(nameof(MachineVersionGuid)); - } - - } - - private String _configurationguid; - /// - /// Gets or sets the machine configuration guid. - /// - [Column("CONFIGURATION_GUID")] - [ForeignKey("Configuration")] - public String ConfigurationGuid - { - get - { - return _configurationguid; - } - - set - { - _configurationguid = value; RaisePropertyChanged(nameof(ConfigurationGuid)); - } - - } - - private Configuration _configuration; - /// - /// Gets or sets the machine configuration. - /// - - public virtual Configuration Configuration - { - get - { - return _configuration; - } - - set - { - _configuration = value; RaisePropertyChanged(nameof(Configuration)); - } - - } - - private ObservableCollection _jobs; - /// - /// Gets or sets the machine jobs. - /// - - public virtual ObservableCollection Jobs - { - get - { - return _jobs; - } - - set - { - _jobs = value; RaisePropertyChanged(nameof(Jobs)); - } - - } - - private MachineVersion _machineversion; - /// - /// Gets or sets the machine machine versions. - /// - - public virtual MachineVersion MachineVersion - { - get - { - return _machineversion; - } - - set - { - _machineversion = value; RaisePropertyChanged(nameof(MachineVersion)); - } - - } - - private ObservableCollection _machinesconfigurations; - /// - /// Gets or sets the machine machines configurations. - /// - - public virtual ObservableCollection MachinesConfigurations - { - get - { - return _machinesconfigurations; - } - - set - { - _machinesconfigurations = value; RaisePropertyChanged(nameof(MachinesConfigurations)); - } - - } - - private ObservableCollection _machinesevents; - /// - /// Gets or sets the machine machines events. - /// - - public virtual ObservableCollection MachinesEvents - { - get - { - return _machinesevents; - } - - set - { - _machinesevents = value; RaisePropertyChanged(nameof(MachinesEvents)); - } - - } - - private Organization _organization; - /// - /// Gets or sets the machine organization. - /// - - public virtual Organization Organization - { - get - { - return _organization; - } - - set - { - _organization = value; RaisePropertyChanged(nameof(Organization)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Machine() : base() - { - - Jobs = new ObservableCollection(); - - MachinesConfigurations = new ObservableCollection(); - - MachinesEvents = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MachineVersion.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/MachineVersion.cs deleted file mode 100644 index a47ee4232..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MachineVersion.cs +++ /dev/null @@ -1,123 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("MACHINE_VERSIONS")] - public partial class MachineVersion : ObservableEntity - { - - private Double _version; - /// - /// Gets or sets the machineversion version. - /// - [Column("VERSION")] - - public Double Version - { - get - { - return _version; - } - - set - { - _version = value; RaisePropertyChanged(nameof(Version)); - } - - } - - private String _name; - /// - /// Gets or sets the machineversion name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _defaultconfigurationguid; - /// - /// Gets or sets the machineversion default configuration guid. - /// - [Column("DEFAULT_CONFIGURATION_GUID")] - [ForeignKey("DefaultConfiguration")] - public String DefaultConfigurationGuid - { - get - { - return _defaultconfigurationguid; - } - - set - { - _defaultconfigurationguid = value; RaisePropertyChanged(nameof(DefaultConfigurationGuid)); - } - - } - - private Configuration _defaultconfiguration; - /// - /// Gets or sets the machineversion configuration. - /// - - public virtual Configuration DefaultConfiguration - { - get - { - return _defaultconfiguration; - } - - set - { - _defaultconfiguration = value; RaisePropertyChanged(nameof(DefaultConfiguration)); - } - - } - - private ObservableCollection _machines; - /// - /// Gets or sets the machineversion machines. - /// - - public virtual ObservableCollection Machines - { - get - { - return _machines; - } - - set - { - _machines = value; RaisePropertyChanged(nameof(Machines)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public MachineVersion() : base() - { - - Machines = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MachinesConfiguration.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/MachinesConfiguration.cs deleted file mode 100644 index 4ecaa0ad4..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MachinesConfiguration.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("MACHINES_CONFIGURATIONS")] - public partial class MachinesConfiguration : ObservableEntity - { - - private String _machineguid; - /// - /// Gets or sets the machinesconfiguration machine guid. - /// - [Column("MACHINE_GUID")] - [ForeignKey("Machine")] - public String MachineGuid - { - get - { - return _machineguid; - } - - set - { - _machineguid = value; RaisePropertyChanged(nameof(MachineGuid)); - } - - } - - private String _configurationguid; - /// - /// Gets or sets the machinesconfiguration configuration guid. - /// - [Column("CONFIGURATION_GUID")] - [ForeignKey("Configuration")] - public String ConfigurationGuid - { - get - { - return _configurationguid; - } - - set - { - _configurationguid = value; RaisePropertyChanged(nameof(ConfigurationGuid)); - } - - } - - private Configuration _configuration; - /// - /// Gets or sets the machinesconfiguration configuration. - /// - - public virtual Configuration Configuration - { - get - { - return _configuration; - } - - set - { - _configuration = value; RaisePropertyChanged(nameof(Configuration)); - } - - } - - private Machine _machine; - /// - /// Gets or sets the machinesconfiguration machine. - /// - - public virtual Machine Machine - { - get - { - return _machine; - } - - set - { - _machine = value; RaisePropertyChanged(nameof(Machine)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public MachinesConfiguration() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MachinesEvent.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/MachinesEvent.cs deleted file mode 100644 index 28fac4bbe..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MachinesEvent.cs +++ /dev/null @@ -1,179 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("MACHINES_EVENTS")] - public partial class MachinesEvent : ObservableEntity - { - - private String _machineguid; - /// - /// Gets or sets the machinesevent machine guid. - /// - [Column("MACHINE_GUID")] - [ForeignKey("Machine")] - public String MachineGuid - { - get - { - return _machineguid; - } - - set - { - _machineguid = value; RaisePropertyChanged(nameof(MachineGuid)); - } - - } - - private String _eventtypeguid; - /// - /// Gets or sets the machinesevent event type guid. - /// - [Column("EVENT_TYPE_GUID")] - [ForeignKey("EventType")] - public String EventTypeGuid - { - get - { - return _eventtypeguid; - } - - set - { - _eventtypeguid = value; RaisePropertyChanged(nameof(EventTypeGuid)); - } - - } - - private String _userguid; - /// - /// Gets or sets the machinesevent user guid. - /// - [Column("USER_GUID")] - [ForeignKey("User")] - public String UserGuid - { - get - { - return _userguid; - } - - set - { - _userguid = value; RaisePropertyChanged(nameof(UserGuid)); - } - - } - - private DateTime _datetime; - /// - /// Gets or sets the machinesevent date time. - /// - [Column("DATE_TIME")] - - public DateTime DateTime - { - get - { - return _datetime; - } - - set - { - _datetime = value; RaisePropertyChanged(nameof(DateTime)); - } - - } - - private String _description; - /// - /// Gets or sets the machinesevent description. - /// - [Column("DESCRIPTION")] - - public String Description - { - get - { - return _description; - } - - set - { - _description = value; RaisePropertyChanged(nameof(Description)); - } - - } - - private EventType _eventtype; - /// - /// Gets or sets the machinesevent event types. - /// - - public virtual EventType EventType - { - get - { - return _eventtype; - } - - set - { - _eventtype = value; RaisePropertyChanged(nameof(EventType)); - } - - } - - private Machine _machine; - /// - /// Gets or sets the machinesevent machine. - /// - - public virtual Machine Machine - { - get - { - return _machine; - } - - set - { - _machine = value; RaisePropertyChanged(nameof(Machine)); - } - - } - - private User _user; - /// - /// Gets or sets the machinesevent user. - /// - - public virtual User User - { - get - { - return _user; - } - - set - { - _user = value; RaisePropertyChanged(nameof(User)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public MachinesEvent() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaColor.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaColor.cs deleted file mode 100644 index 158edebc5..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaColor.cs +++ /dev/null @@ -1,64 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("MEDIA_COLORS")] - public partial class MediaColor : ObservableEntity - { - - private Int32 _color; - /// - /// Gets or sets the mediacolor color. - /// - [Column("COLOR")] - - public Int32 Color - { - get - { - return _color; - } - - set - { - _color = value; RaisePropertyChanged(nameof(Color)); - } - - } - - private ObservableCollection _rmls; - /// - /// Gets or sets the mediacolor rmls. - /// - - public virtual ObservableCollection Rmls - { - get - { - return _rmls; - } - - set - { - _rmls = value; RaisePropertyChanged(nameof(Rmls)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public MediaColor() : base() - { - - Rmls = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaCondition.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaCondition.cs deleted file mode 100644 index 105e046f5..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaCondition.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("MEDIA_CONDITIONS")] - public partial class MediaCondition : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the mediacondition name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private Int32 _code; - /// - /// Gets or sets the mediacondition code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private ObservableCollection _rmls; - /// - /// Gets or sets the mediacondition rmls. - /// - - public virtual ObservableCollection Rmls - { - get - { - return _rmls; - } - - set - { - _rmls = value; RaisePropertyChanged(nameof(Rmls)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public MediaCondition() : base() - { - - Rmls = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaMaterial.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaMaterial.cs deleted file mode 100644 index f03d2c7a1..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaMaterial.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("MEDIA_MATERIALS")] - public partial class MediaMaterial : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the mediamaterial name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private Int32 _code; - /// - /// Gets or sets the mediamaterial code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private ObservableCollection _rmls; - /// - /// Gets or sets the mediamaterial rmls. - /// - - public virtual ObservableCollection Rmls - { - get - { - return _rmls; - } - - set - { - _rmls = value; RaisePropertyChanged(nameof(Rmls)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public MediaMaterial() : base() - { - - Rmls = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaPurpos.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaPurpos.cs deleted file mode 100644 index a09bdd1b8..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MediaPurpos.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("MEDIA_PURPOSES")] - public partial class MediaPurpos : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the mediapurpos name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private Int32 _code; - /// - /// Gets or sets the mediapurpos code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private ObservableCollection _rmls; - /// - /// Gets or sets the mediapurpos rmls. - /// - - public virtual ObservableCollection Rmls - { - get - { - return _rmls; - } - - set - { - _rmls = value; RaisePropertyChanged(nameof(Rmls)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public MediaPurpos() : base() - { - - Rmls = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MidTankType.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/MidTankType.cs deleted file mode 100644 index 5fef06004..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/MidTankType.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("MID_TANK_TYPES")] - public partial class MidTankType : ObservableEntity - { - - private Int32 _code; - /// - /// Gets or sets the midtanktype code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _name; - /// - /// Gets or sets the midtanktype name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private Double _litercapacity; - /// - /// Gets or sets the midtanktype liter capacity. - /// - [Column("LITER_CAPACITY")] - - public Double LiterCapacity - { - get - { - return _litercapacity; - } - - set - { - _litercapacity = value; RaisePropertyChanged(nameof(LiterCapacity)); - } - - } - - private ObservableCollection _idspacks; - /// - /// Gets or sets the midtanktype ids packs. - /// - - public virtual ObservableCollection IdsPacks - { - get - { - return _idspacks; - } - - set - { - _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public MidTankType() : base() - { - - IdsPacks = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Organization.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Organization.cs deleted file mode 100644 index 28ea5f835..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Organization.cs +++ /dev/null @@ -1,163 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("ORGANIZATIONS")] - public partial class Organization : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the organization name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _contactguid; - /// - /// Gets or sets the organization contact guid. - /// - [Column("CONTACT_GUID")] - [ForeignKey("Contact")] - public String ContactGuid - { - get - { - return _contactguid; - } - - set - { - _contactguid = value; RaisePropertyChanged(nameof(ContactGuid)); - } - - } - - private String _addressguid; - /// - /// Gets or sets the organization address guid. - /// - [Column("ADDRESS_GUID")] - [ForeignKey("Address")] - public String AddressGuid - { - get - { - return _addressguid; - } - - set - { - _addressguid = value; RaisePropertyChanged(nameof(AddressGuid)); - } - - } - - private Address _address; - /// - /// Gets or sets the organization address. - /// - - public virtual Address Address - { - get - { - return _address; - } - - set - { - _address = value; RaisePropertyChanged(nameof(Address)); - } - - } - - private Contact _contact; - /// - /// Gets or sets the organization contact. - /// - - public virtual Contact Contact - { - get - { - return _contact; - } - - set - { - _contact = value; RaisePropertyChanged(nameof(Contact)); - } - - } - - private ObservableCollection _machines; - /// - /// Gets or sets the organization machines. - /// - - public virtual ObservableCollection Machines - { - get - { - return _machines; - } - - set - { - _machines = value; RaisePropertyChanged(nameof(Machines)); - } - - } - - private ObservableCollection _users; - /// - /// Gets or sets the organization users. - /// - - public virtual ObservableCollection Users - { - get - { - return _users; - } - - set - { - _users = value; RaisePropertyChanged(nameof(Users)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Organization() : base() - { - - Machines = new ObservableCollection(); - - Users = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Permission.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Permission.cs deleted file mode 100644 index 9057ecbd5..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Permission.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("PERMISSIONS")] - public partial class Permission : ObservableEntity - { - - private Int32 _code; - /// - /// Gets or sets the permission code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _name; - /// - /// Gets or sets the permission name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _description; - /// - /// Gets or sets the permission description. - /// - [Column("DESCRIPTION")] - - public String Description - { - get - { - return _description; - } - - set - { - _description = value; RaisePropertyChanged(nameof(Description)); - } - - } - - private ObservableCollection _rolespermissions; - /// - /// Gets or sets the permission roles permissions. - /// - - public virtual ObservableCollection RolesPermissions - { - get - { - return _rolespermissions; - } - - set - { - _rolespermissions = value; RaisePropertyChanged(nameof(RolesPermissions)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Permission() : base() - { - - RolesPermissions = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ProcessParametersTable.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/ProcessParametersTable.cs deleted file mode 100644 index 163d3da53..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ProcessParametersTable.cs +++ /dev/null @@ -1,401 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("PROCESS_PARAMETERS_TABLES")] - public partial class ProcessParametersTable : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the processparameterstable name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private Double _dyeingspeed; - /// - /// Gets or sets the processparameterstable dyeing speed. - /// - [Column("DYEING_SPEED")] - - public Double DyeingSpeed - { - get - { - return _dyeingspeed; - } - - set - { - _dyeingspeed = value; RaisePropertyChanged(nameof(DyeingSpeed)); - } - - } - - private Double _mininkuptake; - /// - /// Gets or sets the processparameterstable min ink uptake. - /// - [Column("MIN_INK_UPTAKE")] - - public Double MinInkUptake - { - get - { - return _mininkuptake; - } - - set - { - _mininkuptake = value; RaisePropertyChanged(nameof(MinInkUptake)); - } - - } - - private Double _mixertemp; - /// - /// Gets or sets the processparameterstable mixer temp. - /// - [Column("MIXER_TEMP")] - - public Double MixerTemp - { - get - { - return _mixertemp; - } - - set - { - _mixertemp = value; RaisePropertyChanged(nameof(MixerTemp)); - } - - } - - private Double _headzone1temp; - /// - /// Gets or sets the processparameterstable head zone1 temp. - /// - [Column("HEAD_ZONE1_TEMP")] - - public Double HeadZone1Temp - { - get - { - return _headzone1temp; - } - - set - { - _headzone1temp = value; RaisePropertyChanged(nameof(HeadZone1Temp)); - } - - } - - private Double _headzone2temp; - /// - /// Gets or sets the processparameterstable head zone2 temp. - /// - [Column("HEAD_ZONE2_TEMP")] - - public Double HeadZone2Temp - { - get - { - return _headzone2temp; - } - - set - { - _headzone2temp = value; RaisePropertyChanged(nameof(HeadZone2Temp)); - } - - } - - private Double _headzone3temp; - /// - /// Gets or sets the processparameterstable head zone3 temp. - /// - [Column("HEAD_ZONE3_TEMP")] - - public Double HeadZone3Temp - { - get - { - return _headzone3temp; - } - - set - { - _headzone3temp = value; RaisePropertyChanged(nameof(HeadZone3Temp)); - } - - } - - private Double _headairflow; - /// - /// Gets or sets the processparameterstable head air flow. - /// - [Column("HEAD_AIR_FLOW")] - - public Double HeadAirFlow - { - get - { - return _headairflow; - } - - set - { - _headairflow = value; RaisePropertyChanged(nameof(HeadAirFlow)); - } - - } - - private Double _feedertension; - /// - /// Gets or sets the processparameterstable feeder tension. - /// - [Column("FEEDER_TENSION")] - - public Double FeederTension - { - get - { - return _feedertension; - } - - set - { - _feedertension = value; RaisePropertyChanged(nameof(FeederTension)); - } - - } - - private Double _pullertension; - /// - /// Gets or sets the processparameterstable puller tension. - /// - [Column("PULLER_TENSION")] - - public Double PullerTension - { - get - { - return _pullertension; - } - - set - { - _pullertension = value; RaisePropertyChanged(nameof(PullerTension)); - } - - } - - private Double _dryerbufferlength; - /// - /// Gets or sets the processparameterstable dryer buffer length. - /// - [Column("DRYER_BUFFER_LENGTH")] - - public Double DryerBufferLength - { - get - { - return _dryerbufferlength; - } - - set - { - _dryerbufferlength = value; RaisePropertyChanged(nameof(DryerBufferLength)); - } - - } - - private Double _dryerzone1temp; - /// - /// Gets or sets the processparameterstable dryer zone1 temp. - /// - [Column("DRYER_ZONE1_TEMP")] - - public Double DryerZone1Temp - { - get - { - return _dryerzone1temp; - } - - set - { - _dryerzone1temp = value; RaisePropertyChanged(nameof(DryerZone1Temp)); - } - - } - - private Double _dryerzone2temp; - /// - /// Gets or sets the processparameterstable dryer zone2 temp. - /// - [Column("DRYER_ZONE2_TEMP")] - - public Double DryerZone2Temp - { - get - { - return _dryerzone2temp; - } - - set - { - _dryerzone2temp = value; RaisePropertyChanged(nameof(DryerZone2Temp)); - } - - } - - private Double _dryerzone3temp; - /// - /// Gets or sets the processparameterstable dryer zone3 temp. - /// - [Column("DRYER_ZONE3_TEMP")] - - public Double DryerZone3Temp - { - get - { - return _dryerzone3temp; - } - - set - { - _dryerzone3temp = value; RaisePropertyChanged(nameof(DryerZone3Temp)); - } - - } - - private Double _dryerairflow; - /// - /// Gets or sets the processparameterstable dryer air flow. - /// - [Column("DRYER_AIR_FLOW")] - - public Double DryerAirFlow - { - get - { - return _dryerairflow; - } - - set - { - _dryerairflow = value; RaisePropertyChanged(nameof(DryerAirFlow)); - } - - } - - private Double _windertension; - /// - /// Gets or sets the processparameterstable winder tension. - /// - [Column("WINDER_TENSION")] - - public Double WinderTension - { - get - { - return _windertension; - } - - set - { - _windertension = value; RaisePropertyChanged(nameof(WinderTension)); - } - - } - - private String _processparameterstablesgroupguid; - /// - /// Gets or sets the processparameterstable process parameters tables group guid. - /// - [Column("PROCESS_PARAMETERS_TABLES_GROUP_GUID")] - [ForeignKey("ProcessParametersTablesGroup")] - public String ProcessParametersTablesGroupGuid - { - get - { - return _processparameterstablesgroupguid; - } - - set - { - _processparameterstablesgroupguid = value; RaisePropertyChanged(nameof(ProcessParametersTablesGroupGuid)); - } - - } - - private Int32 _tableindex; - /// - /// Gets or sets the processparameterstable table index. - /// - [Column("TABLE_INDEX")] - - public Int32 TableIndex - { - get - { - return _tableindex; - } - - set - { - _tableindex = value; RaisePropertyChanged(nameof(TableIndex)); - } - - } - - private ProcessParametersTablesGroup _processparameterstablesgroup; - /// - /// Gets or sets the processparameterstable process parameters tables groups. - /// - - public virtual ProcessParametersTablesGroup ProcessParametersTablesGroup - { - get - { - return _processparameterstablesgroup; - } - - set - { - _processparameterstablesgroup = value; RaisePropertyChanged(nameof(ProcessParametersTablesGroup)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public ProcessParametersTable() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ProcessParametersTablesGroup.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/ProcessParametersTablesGroup.cs deleted file mode 100644 index ab8ae2ed8..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/ProcessParametersTablesGroup.cs +++ /dev/null @@ -1,143 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("PROCESS_PARAMETERS_TABLES_GROUPS")] - public partial class ProcessParametersTablesGroup : ObservableEntity - { - - private String _rmlguid; - /// - /// Gets or sets the processparameterstablesgroup rml guid. - /// - [Column("RML_GUID")] - [ForeignKey("Rml")] - public String RmlGuid - { - get - { - return _rmlguid; - } - - set - { - _rmlguid = value; RaisePropertyChanged(nameof(RmlGuid)); - } - - } - - private String _name; - /// - /// Gets or sets the processparameterstablesgroup name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private Boolean _active; - /// - /// Gets or sets the processparameterstablesgroup active. - /// - [Column("ACTIVE")] - - public Boolean Active - { - get - { - return _active; - } - - set - { - _active = value; RaisePropertyChanged(nameof(Active)); - } - - } - - private DateTime _savedate; - /// - /// Gets or sets the processparameterstablesgroup save date. - /// - [Column("SAVE_DATE")] - - public DateTime SaveDate - { - get - { - return _savedate; - } - - set - { - _savedate = value; RaisePropertyChanged(nameof(SaveDate)); - } - - } - - private ObservableCollection _processparameterstables; - /// - /// Gets or sets the processparameterstablesgroup process parameters tables. - /// - - public virtual ObservableCollection ProcessParametersTables - { - get - { - return _processparameterstables; - } - - set - { - _processparameterstables = value; RaisePropertyChanged(nameof(ProcessParametersTables)); - } - - } - - private Rml _rml; - /// - /// Gets or sets the processparameterstablesgroup rml. - /// - - public virtual Rml Rml - { - get - { - return _rml; - } - - set - { - _rml = value; RaisePropertyChanged(nameof(Rml)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public ProcessParametersTablesGroup() : base() - { - - ProcessParametersTables = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Rml.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Rml.cs deleted file mode 100644 index 429773e0c..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Rml.cs +++ /dev/null @@ -1,661 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("RMLS")] - public partial class Rml : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the rml name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _manufacturer; - /// - /// Gets or sets the rml manufacturer. - /// - [Column("MANUFACTURER")] - - public String Manufacturer - { - get - { - return _manufacturer; - } - - set - { - _manufacturer = value; RaisePropertyChanged(nameof(Manufacturer)); - } - - } - - private Int32 _code; - /// - /// Gets or sets the rml code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _mediamaterialguid; - /// - /// Gets or sets the rml media material guid. - /// - [Column("MEDIA_MATERIAL_GUID")] - [ForeignKey("MediaMaterial")] - public String MediaMaterialGuid - { - get - { - return _mediamaterialguid; - } - - set - { - _mediamaterialguid = value; RaisePropertyChanged(nameof(MediaMaterialGuid)); - } - - } - - private String _mediacolorguid; - /// - /// Gets or sets the rml media color guid. - /// - [Column("MEDIA_COLOR_GUID")] - [ForeignKey("MediaColor")] - public String MediaColorGuid - { - get - { - return _mediacolorguid; - } - - set - { - _mediacolorguid = value; RaisePropertyChanged(nameof(MediaColorGuid)); - } - - } - - private String _mediapurposeguid; - /// - /// Gets or sets the rml media purpose guid. - /// - [Column("MEDIA_PURPOSE_GUID")] - [ForeignKey("MediaPurpose")] - public String MediaPurposeGuid - { - get - { - return _mediapurposeguid; - } - - set - { - _mediapurposeguid = value; RaisePropertyChanged(nameof(MediaPurposeGuid)); - } - - } - - private String _mediaconditionguid; - /// - /// Gets or sets the rml media condition guid. - /// - [Column("MEDIA_CONDITION_GUID")] - [ForeignKey("MediaCondition")] - public String MediaConditionGuid - { - get - { - return _mediaconditionguid; - } - - set - { - _mediaconditionguid = value; RaisePropertyChanged(nameof(MediaConditionGuid)); - } - - } - - private String _linearmassdensityunitguid; - /// - /// Gets or sets the rml linear mass density unit guid. - /// - [Column("LINEAR_MASS_DENSITY_UNIT_GUID")] - [ForeignKey("LinearMassDensityUnit")] - public String LinearMassDensityUnitGuid - { - get - { - return _linearmassdensityunitguid; - } - - set - { - _linearmassdensityunitguid = value; RaisePropertyChanged(nameof(LinearMassDensityUnitGuid)); - } - - } - - private String _fibershapeguid; - /// - /// Gets or sets the rml fiber shape guid. - /// - [Column("FIBER_SHAPE_GUID")] - [ForeignKey("FiberShape")] - public String FiberShapeGuid - { - get - { - return _fibershapeguid; - } - - set - { - _fibershapeguid = value; RaisePropertyChanged(nameof(FiberShapeGuid)); - } - - } - - private String _fibersynthguid; - /// - /// Gets or sets the rml fiber synth guid. - /// - [Column("FIBER_SYNTH_GUID")] - [ForeignKey("FiberSynth")] - public String FiberSynthGuid - { - get - { - return _fibersynthguid; - } - - set - { - _fibersynthguid = value; RaisePropertyChanged(nameof(FiberSynthGuid)); - } - - } - - private Double _fibersize; - /// - /// Gets or sets the rml fiber size. - /// - [Column("FIBER_SIZE")] - - public Double FiberSize - { - get - { - return _fibersize; - } - - set - { - _fibersize = value; RaisePropertyChanged(nameof(FiberSize)); - } - - } - - private Int32 _numberoffibers; - /// - /// Gets or sets the rml number of fibers. - /// - [Column("NUMBER_OF_FIBERS")] - - public Int32 NumberOfFibers - { - get - { - return _numberoffibers; - } - - set - { - _numberoffibers = value; RaisePropertyChanged(nameof(NumberOfFibers)); - } - - } - - private Int32 _pliesperfiber; - /// - /// Gets or sets the rml plies per fiber. - /// - [Column("PLIES_PER_FIBER")] - - public Int32 PliesPerFiber - { - get - { - return _pliesperfiber; - } - - set - { - _pliesperfiber = value; RaisePropertyChanged(nameof(PliesPerFiber)); - } - - } - - private Int32 _pliesperthread; - /// - /// Gets or sets the rml plies per thread. - /// - [Column("PLIES_PER_THREAD")] - - public Int32 PliesPerThread - { - get - { - return _pliesperthread; - } - - set - { - _pliesperthread = value; RaisePropertyChanged(nameof(PliesPerThread)); - } - - } - - private Boolean _twisted; - /// - /// Gets or sets the rml twisted. - /// - [Column("TWISTED")] - - public Boolean Twisted - { - get - { - return _twisted; - } - - set - { - _twisted = value; RaisePropertyChanged(nameof(Twisted)); - } - - } - - private Boolean _airentanglement; - /// - /// Gets or sets the rml air entanglement. - /// - [Column("AIR_ENTANGLEMENT")] - - public Boolean AirEntanglement - { - get - { - return _airentanglement; - } - - set - { - _airentanglement = value; RaisePropertyChanged(nameof(AirEntanglement)); - } - - } - - private Boolean _lubricant; - /// - /// Gets or sets the rml lubricant. - /// - [Column("LUBRICANT")] - - public Boolean Lubricant - { - get - { - return _lubricant; - } - - set - { - _lubricant = value; RaisePropertyChanged(nameof(Lubricant)); - } - - } - - private Double _tensilestrength; - /// - /// Gets or sets the rml tensile strength. - /// - [Column("TENSILE_STRENGTH")] - - public Double TensileStrength - { - get - { - return _tensilestrength; - } - - set - { - _tensilestrength = value; RaisePropertyChanged(nameof(TensileStrength)); - } - - } - - private Double _elongationatbreakpercentage; - /// - /// Gets or sets the rml elongation at break percentage. - /// - [Column("ELONGATION_AT_BREAK_PERCENTAGE")] - - public Double ElongationAtBreakPercentage - { - get - { - return _elongationatbreakpercentage; - } - - set - { - _elongationatbreakpercentage = value; RaisePropertyChanged(nameof(ElongationAtBreakPercentage)); - } - - } - - private Double _estimatedthreaddiameter; - /// - /// Gets or sets the rml estimated thread diameter. - /// - [Column("ESTIMATED_THREAD_DIAMETER")] - - public Double EstimatedThreadDiameter - { - get - { - return _estimatedthreaddiameter; - } - - set - { - _estimatedthreaddiameter = value; RaisePropertyChanged(nameof(EstimatedThreadDiameter)); - } - - } - - private ObservableCollection _cats; - /// - /// Gets or sets the rml cats. - /// - - public virtual ObservableCollection Cats - { - get - { - return _cats; - } - - set - { - _cats = value; RaisePropertyChanged(nameof(Cats)); - } - - } - - private ObservableCollection _ccts; - /// - /// Gets or sets the rml ccts. - /// - - public virtual ObservableCollection Ccts - { - get - { - return _ccts; - } - - set - { - _ccts = value; RaisePropertyChanged(nameof(Ccts)); - } - - } - - private FiberShape _fibershape; - /// - /// Gets or sets the rml fiber shapes. - /// - - public virtual FiberShape FiberShape - { - get - { - return _fibershape; - } - - set - { - _fibershape = value; RaisePropertyChanged(nameof(FiberShape)); - } - - } - - private FiberSynth _fibersynth; - /// - /// Gets or sets the rml fiber synths. - /// - - public virtual FiberSynth FiberSynth - { - get - { - return _fibersynth; - } - - set - { - _fibersynth = value; RaisePropertyChanged(nameof(FiberSynth)); - } - - } - - private ObservableCollection _jobs; - /// - /// Gets or sets the rml jobs. - /// - - public virtual ObservableCollection Jobs - { - get - { - return _jobs; - } - - set - { - _jobs = value; RaisePropertyChanged(nameof(Jobs)); - } - - } - - private LinearMassDensityUnit _linearmassdensityunit; - /// - /// Gets or sets the rml linear mass density units. - /// - - public virtual LinearMassDensityUnit LinearMassDensityUnit - { - get - { - return _linearmassdensityunit; - } - - set - { - _linearmassdensityunit = value; RaisePropertyChanged(nameof(LinearMassDensityUnit)); - } - - } - - private ObservableCollection _liquidtypesrmls; - /// - /// Gets or sets the rml liquid types rmls. - /// - - public virtual ObservableCollection LiquidTypesRmls - { - get - { - return _liquidtypesrmls; - } - - set - { - _liquidtypesrmls = value; RaisePropertyChanged(nameof(LiquidTypesRmls)); - } - - } - - private MediaColor _mediacolor; - /// - /// Gets or sets the rml media colors. - /// - - public virtual MediaColor MediaColor - { - get - { - return _mediacolor; - } - - set - { - _mediacolor = value; RaisePropertyChanged(nameof(MediaColor)); - } - - } - - private MediaCondition _mediacondition; - /// - /// Gets or sets the rml media conditions. - /// - - public virtual MediaCondition MediaCondition - { - get - { - return _mediacondition; - } - - set - { - _mediacondition = value; RaisePropertyChanged(nameof(MediaCondition)); - } - - } - - private MediaMaterial _mediamaterial; - /// - /// Gets or sets the rml media materials. - /// - - public virtual MediaMaterial MediaMaterial - { - get - { - return _mediamaterial; - } - - set - { - _mediamaterial = value; RaisePropertyChanged(nameof(MediaMaterial)); - } - - } - - private MediaPurpos _mediapurpose; - /// - /// Gets or sets the rml media purposes. - /// - - public virtual MediaPurpos MediaPurpose - { - get - { - return _mediapurpose; - } - - set - { - _mediapurpose = value; RaisePropertyChanged(nameof(MediaPurpose)); - } - - } - - private ObservableCollection _processparameterstablesgroups; - /// - /// Gets or sets the rml process parameters tables groups. - /// - - public virtual ObservableCollection ProcessParametersTablesGroups - { - get - { - return _processparameterstablesgroups; - } - - set - { - _processparameterstablesgroups = value; RaisePropertyChanged(nameof(ProcessParametersTablesGroups)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Rml() : base() - { - - Cats = new ObservableCollection(); - - Ccts = new ObservableCollection(); - - Jobs = new ObservableCollection(); - - LiquidTypesRmls = new ObservableCollection(); - - ProcessParametersTablesGroups = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Role.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Role.cs deleted file mode 100644 index b9bb8244c..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Role.cs +++ /dev/null @@ -1,125 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("ROLES")] - public partial class Role : ObservableEntity - { - - private Int32 _code; - /// - /// Gets or sets the role code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _name; - /// - /// Gets or sets the role name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _description; - /// - /// Gets or sets the role description. - /// - [Column("DESCRIPTION")] - - public String Description - { - get - { - return _description; - } - - set - { - _description = value; RaisePropertyChanged(nameof(Description)); - } - - } - - private ObservableCollection _rolespermissions; - /// - /// Gets or sets the role roles permissions. - /// - - public virtual ObservableCollection RolesPermissions - { - get - { - return _rolespermissions; - } - - set - { - _rolespermissions = value; RaisePropertyChanged(nameof(RolesPermissions)); - } - - } - - private ObservableCollection _usersroles; - /// - /// Gets or sets the role users roles. - /// - - public virtual ObservableCollection UsersRoles - { - get - { - return _usersroles; - } - - set - { - _usersroles = value; RaisePropertyChanged(nameof(UsersRoles)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Role() : base() - { - - RolesPermissions = new ObservableCollection(); - - UsersRoles = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/RolesPermission.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/RolesPermission.cs deleted file mode 100644 index 3c7d4eb19..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/RolesPermission.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("ROLES_PERMISSIONS")] - public partial class RolesPermission : ObservableEntity - { - - private String _roleguid; - /// - /// Gets or sets the rolespermission role guid. - /// - [Column("ROLE_GUID")] - [ForeignKey("Role")] - public String RoleGuid - { - get - { - return _roleguid; - } - - set - { - _roleguid = value; RaisePropertyChanged(nameof(RoleGuid)); - } - - } - - private String _permissionguid; - /// - /// Gets or sets the rolespermission permission guid. - /// - [Column("PERMISSION_GUID")] - [ForeignKey("Permission")] - public String PermissionGuid - { - get - { - return _permissionguid; - } - - set - { - _permissionguid = value; RaisePropertyChanged(nameof(PermissionGuid)); - } - - } - - private Permission _permission; - /// - /// Gets or sets the rolespermission permission. - /// - - public virtual Permission Permission - { - get - { - return _permission; - } - - set - { - _permission = value; RaisePropertyChanged(nameof(Permission)); - } - - } - - private Role _role; - /// - /// Gets or sets the rolespermission role. - /// - - public virtual Role Role - { - get - { - return _role; - } - - set - { - _role = value; RaisePropertyChanged(nameof(Role)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public RolesPermission() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Segment.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Segment.cs deleted file mode 100644 index b018f2934..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Segment.cs +++ /dev/null @@ -1,123 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("SEGMENTS")] - public partial class Segment : ObservableEntity - { - - private String _name; - /// - /// Gets or sets the segment name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _jobguid; - /// - /// Gets or sets the segment job guid. - /// - [Column("JOB_GUID")] - [ForeignKey("Job")] - public String JobGuid - { - get - { - return _jobguid; - } - - set - { - _jobguid = value; RaisePropertyChanged(nameof(JobGuid)); - } - - } - - private Double _length; - /// - /// Gets or sets the segment length. - /// - [Column("LENGTH")] - - public Double Length - { - get - { - return _length; - } - - set - { - _length = value; RaisePropertyChanged(nameof(Length)); - } - - } - - private ObservableCollection _brushstops; - /// - /// Gets or sets the segment brush stops. - /// - - public virtual ObservableCollection BrushStops - { - get - { - return _brushstops; - } - - set - { - _brushstops = value; RaisePropertyChanged(nameof(BrushStops)); - } - - } - - private Job _job; - /// - /// Gets or sets the segment job. - /// - - public virtual Job Job - { - get - { - return _job; - } - - set - { - _job = value; RaisePropertyChanged(nameof(Job)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Segment() : base() - { - - BrushStops = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Sensor.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/Sensor.cs deleted file mode 100644 index 6b581f086..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/Sensor.cs +++ /dev/null @@ -1,202 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("SENSORS")] - public partial class Sensor : ObservableEntity - { - - private Int32 _code; - /// - /// Gets or sets the sensor code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _name; - /// - /// Gets or sets the sensor name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _description; - /// - /// Gets or sets the sensor description. - /// - [Column("DESCRIPTION")] - - public String Description - { - get - { - return _description; - } - - set - { - _description = value; RaisePropertyChanged(nameof(Description)); - } - - } - - private Double _min; - /// - /// Gets or sets the sensor min. - /// - [Column("MIN")] - - public Double Min - { - get - { - return _min; - } - - set - { - _min = value; RaisePropertyChanged(nameof(Min)); - } - - } - - private Double _max; - /// - /// Gets or sets the sensor max. - /// - [Column("MAX")] - - public Double Max - { - get - { - return _max; - } - - set - { - _max = value; RaisePropertyChanged(nameof(Max)); - } - - } - - private String _units; - /// - /// Gets or sets the sensor units. - /// - [Column("UNITS")] - - public String Units - { - get - { - return _units; - } - - set - { - _units = value; RaisePropertyChanged(nameof(Units)); - } - - } - - private Int32 _pointsperframe; - /// - /// Gets or sets the sensor points per frame. - /// - [Column("POINTS_PER_FRAME")] - - public Int32 PointsPerFrame - { - get - { - return _pointsperframe; - } - - set - { - _pointsperframe = value; RaisePropertyChanged(nameof(PointsPerFrame)); - } - - } - - private Boolean _multichannel; - /// - /// Gets or sets the sensor multi channel. - /// - [Column("MULTI_CHANNEL")] - - public Boolean MultiChannel - { - get - { - return _multichannel; - } - - set - { - _multichannel = value; RaisePropertyChanged(nameof(MultiChannel)); - } - - } - - private Int32 _channelcount; - /// - /// Gets or sets the sensor channel count. - /// - [Column("CHANNEL_COUNT")] - - public Int32 ChannelCount - { - get - { - return _channelcount; - } - - set - { - _channelcount = value; RaisePropertyChanged(nameof(ChannelCount)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public Sensor() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/SyncConfiguration.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/SyncConfiguration.cs deleted file mode 100644 index 595757139..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/SyncConfiguration.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("SYNC_CONFIGURATIONS")] - public partial class SyncConfiguration : ObservableEntity - { - - /// - /// Initializes a new instance of the class. - /// - public SyncConfiguration() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/User.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/User.cs deleted file mode 100644 index 1a73b3750..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/User.cs +++ /dev/null @@ -1,242 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("USERS")] - public partial class User : ObservableEntity - { - - private Boolean _deleted; - /// - /// Gets or sets the user deleted. - /// - [Column("DELETED")] - - public Boolean Deleted - { - get - { - return _deleted; - } - - set - { - _deleted = value; RaisePropertyChanged(nameof(Deleted)); - } - - } - - private String _email; - /// - /// Gets or sets the user email. - /// - [Column("EMAIL")] - - public String Email - { - get - { - return _email; - } - - set - { - _email = value; RaisePropertyChanged(nameof(Email)); - } - - } - - private String _password; - /// - /// Gets or sets the user password. - /// - [Column("PASSWORD")] - - public String Password - { - get - { - return _password; - } - - set - { - _password = value; RaisePropertyChanged(nameof(Password)); - } - - } - - private String _organizationguid; - /// - /// Gets or sets the user organization guid. - /// - [Column("ORGANIZATION_GUID")] - [ForeignKey("Organization")] - public String OrganizationGuid - { - get - { - return _organizationguid; - } - - set - { - _organizationguid = value; RaisePropertyChanged(nameof(OrganizationGuid)); - } - - } - - private String _contactguid; - /// - /// Gets or sets the user contact guid. - /// - [Column("CONTACT_GUID")] - [ForeignKey("Contact")] - public String ContactGuid - { - get - { - return _contactguid; - } - - set - { - _contactguid = value; RaisePropertyChanged(nameof(ContactGuid)); - } - - } - - private String _addressguid; - /// - /// Gets or sets the user address guid. - /// - [Column("ADDRESS_GUID")] - [ForeignKey("Address")] - public String AddressGuid - { - get - { - return _addressguid; - } - - set - { - _addressguid = value; RaisePropertyChanged(nameof(AddressGuid)); - } - - } - - private Address _address; - /// - /// Gets or sets the user address. - /// - - public virtual Address Address - { - get - { - return _address; - } - - set - { - _address = value; RaisePropertyChanged(nameof(Address)); - } - - } - - private Contact _contact; - /// - /// Gets or sets the user contact. - /// - - public virtual Contact Contact - { - get - { - return _contact; - } - - set - { - _contact = value; RaisePropertyChanged(nameof(Contact)); - } - - } - - private ObservableCollection _machinesevents; - /// - /// Gets or sets the user machines events. - /// - - public virtual ObservableCollection MachinesEvents - { - get - { - return _machinesevents; - } - - set - { - _machinesevents = value; RaisePropertyChanged(nameof(MachinesEvents)); - } - - } - - private Organization _organization; - /// - /// Gets or sets the user organization. - /// - - public virtual Organization Organization - { - get - { - return _organization; - } - - set - { - _organization = value; RaisePropertyChanged(nameof(Organization)); - } - - } - - private ObservableCollection _usersroles; - /// - /// Gets or sets the user users roles. - /// - - public virtual ObservableCollection UsersRoles - { - get - { - return _usersroles; - } - - set - { - _usersroles = value; RaisePropertyChanged(nameof(UsersRoles)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public User() : base() - { - - MachinesEvents = new ObservableCollection(); - - UsersRoles = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/UsersRole.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/UsersRole.cs deleted file mode 100644 index 934bb8822..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/UsersRole.cs +++ /dev/null @@ -1,120 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("USERS_ROLES")] - public partial class UsersRole : ObservableEntity - { - - private Boolean _deleted; - /// - /// Gets or sets the usersrole deleted. - /// - [Column("DELETED")] - - public Boolean Deleted - { - get - { - return _deleted; - } - - set - { - _deleted = value; RaisePropertyChanged(nameof(Deleted)); - } - - } - - private String _userguid; - /// - /// Gets or sets the usersrole user guid. - /// - [Column("USER_GUID")] - [ForeignKey("User")] - public String UserGuid - { - get - { - return _userguid; - } - - set - { - _userguid = value; RaisePropertyChanged(nameof(UserGuid)); - } - - } - - private String _roleguid; - /// - /// Gets or sets the usersrole role guid. - /// - [Column("ROLE_GUID")] - [ForeignKey("Role")] - public String RoleGuid - { - get - { - return _roleguid; - } - - set - { - _roleguid = value; RaisePropertyChanged(nameof(RoleGuid)); - } - - } - - private Role _role; - /// - /// Gets or sets the usersrole role. - /// - - public virtual Role Role - { - get - { - return _role; - } - - set - { - _role = value; RaisePropertyChanged(nameof(Role)); - } - - } - - private User _user; - /// - /// Gets or sets the usersrole user. - /// - - public virtual User User - { - get - { - return _user; - } - - set - { - _user = value; RaisePropertyChanged(nameof(User)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public UsersRole() : base() - { - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Entities/WindingMethod.cs b/Software/Visual_Studio/Tango.DAL.Observables/Entities/WindingMethod.cs deleted file mode 100644 index f14cf43cc..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Entities/WindingMethod.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using Tango.DAL.Remote.DB; - -namespace Tango.DAL.Observables -{ - [Table("WINDING_METHODS")] - public partial class WindingMethod : ObservableEntity - { - - private Int32 _code; - /// - /// Gets or sets the windingmethod code. - /// - [Column("CODE")] - - public Int32 Code - { - get - { - return _code; - } - - set - { - _code = value; RaisePropertyChanged(nameof(Code)); - } - - } - - private String _name; - /// - /// Gets or sets the windingmethod name. - /// - [Column("NAME")] - - public String Name - { - get - { - return _name; - } - - set - { - _name = value; RaisePropertyChanged(nameof(Name)); - } - - } - - private String _description; - /// - /// Gets or sets the windingmethod description. - /// - [Column("DESCRIPTION")] - - public String Description - { - get - { - return _description; - } - - set - { - _description = value; RaisePropertyChanged(nameof(Description)); - } - - } - - private ObservableCollection _jobs; - /// - /// Gets or sets the windingmethod jobs. - /// - - public virtual ObservableCollection Jobs - { - get - { - return _jobs; - } - - set - { - _jobs = value; RaisePropertyChanged(nameof(Jobs)); - } - - } - - /// - /// Initializes a new instance of the class. - /// - public WindingMethod() : base() - { - - Jobs = new ObservableCollection(); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/EntityFieldNameAttribute.cs b/Software/Visual_Studio/Tango.DAL.Observables/EntityFieldNameAttribute.cs deleted file mode 100644 index ed3d8f720..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/EntityFieldNameAttribute.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Tango.DAL.Observables -{ - /// - /// Represents an property attribute. - /// - /// - public class EntityFieldNameAttribute : Attribute - { - /// - /// Gets or sets the table column name. - /// - public String Name { get; set; } - - /// - /// Initializes a new instance of the class. - /// - /// The column name. - public EntityFieldNameAttribute(String name) - { - Name = name; - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/ActionTypes.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/ActionTypes.cs deleted file mode 100644 index ef45931de..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/ActionTypes.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum ActionTypes - { - - /// - /// (Some description) - /// - [Description("Some description")] - Action1 = 1, - - /// - /// (Some action 2 description) - /// - [Description("Some action 2 description")] - Action2yesss = 2, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Actions.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Actions.cs deleted file mode 100644 index 5723920b5..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Actions.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum Actions - { - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/CartridgeTypes.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/CartridgeTypes.cs deleted file mode 100644 index 35cc310c6..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/CartridgeTypes.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum CartridgeTypes - { - - /// - /// (Cartridge 1) - /// - [Description("Cartridge 1")] - Cartridge1 = 1, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/ColorSpaces.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/ColorSpaces.cs deleted file mode 100644 index e2ba60dbe..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/ColorSpaces.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum ColorSpaces - { - - /// - /// (Volume) - /// - [Description("Volume")] - Volume = 0, - - /// - /// (RGB) - /// - [Description("RGB")] - RGB = 1, - - /// - /// (CMYK) - /// - [Description("CMYK")] - CMYK = 2, - - /// - /// (LAB) - /// - [Description("LAB")] - LAB = 3, - - /// - /// (PANTON) - /// - [Description("PANTON")] - PANTON = 4, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/DispenserTypes.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/DispenserTypes.cs deleted file mode 100644 index bcd085dc4..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/DispenserTypes.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum DispenserTypes - { - - /// - /// (Dispenser 1) - /// - [Description("Dispenser 1")] - Dispenser1 = 1, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/EventTypes.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/EventTypes.cs deleted file mode 100644 index 66df05539..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/EventTypes.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum EventTypes - { - - /// - /// (Some event description) - /// - [Description("Some event description")] - Event1 = 1, - - /// - /// (Some event 2 description) - /// - [Description("Some event 2 description")] - Event2 = 2, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Events.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Events.cs deleted file mode 100644 index 63becf698..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Events.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum Events - { - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberShapes.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberShapes.cs deleted file mode 100644 index 9b32088fa..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberShapes.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum FiberShapes - { - - /// - /// (Triangle) - /// - [Description("Triangle")] - Triangle = 1, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberSynthes.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberSynthes.cs deleted file mode 100644 index 4bc13b83a..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberSynthes.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum FiberSynthes - { - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberSynthesises.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberSynthesises.cs deleted file mode 100644 index e66e5f3df..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberSynthesises.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum FiberSynthesises - { - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberSynths.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberSynths.cs deleted file mode 100644 index 66ef5b189..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/FiberSynths.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum FiberSynths - { - - /// - /// (Some syntheses type) - /// - [Description("Some syntheses type")] - Somesynthesestype = 1, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/IdsPackFormulas.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/IdsPackFormulas.cs deleted file mode 100644 index 595cb176b..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/IdsPackFormulas.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum IdsPackFormulas - { - - /// - /// (Standard Color IDS Pack Formula) - /// - [Description("Standard Color IDS Pack Formula")] - StandardColor = 0, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/LinearMassDensityUnits.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/LinearMassDensityUnits.cs deleted file mode 100644 index 6d2903333..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/LinearMassDensityUnits.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum LinearMassDensityUnits - { - - /// - /// (Dex) - /// - [Description("Dex")] - Dex = 1, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/LiquidTypes.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/LiquidTypes.cs deleted file mode 100644 index bc2bf036b..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/LiquidTypes.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum LiquidTypes - { - - /// - /// (Cyan) - /// - [Description("Cyan")] - Cyan = 1, - - /// - /// (Red) - /// - [Description("Red")] - Red = 7, - - /// - /// (Transparent Ink) - /// - [Description("Transparent Ink")] - TransparentInk = 6, - - /// - /// (Magenta) - /// - [Description("Magenta")] - Magenta = 2, - - /// - /// (Lubricant) - /// - [Description("Lubricant")] - Lubricant = 5, - - /// - /// (Yellow) - /// - [Description("Yellow")] - Yellow = 2, - - /// - /// (Black) - /// - [Description("Black")] - Black = 4, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Liquids.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Liquids.cs deleted file mode 100644 index 95cf098b1..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Liquids.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum Liquids - { - - /// - /// (Cyan) - /// - [Description("Cyan")] - Cyan = 1, - - /// - /// (Magenta) - /// - [Description("Magenta")] - Magenta = 2, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MediaConditions.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MediaConditions.cs deleted file mode 100644 index d961ef8a5..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MediaConditions.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum MediaConditions - { - - /// - /// (Treated) - /// - [Description("Treated")] - Treated = 1, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MediaMaterials.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MediaMaterials.cs deleted file mode 100644 index 552b43d55..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MediaMaterials.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum MediaMaterials - { - - /// - /// (Nylon) - /// - [Description("Nylon")] - Nylon = 1, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MediaPurposes.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MediaPurposes.cs deleted file mode 100644 index aae066631..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MediaPurposes.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum MediaPurposes - { - - /// - /// (Embroidery) - /// - [Description("Embroidery")] - Embroidery = 1, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MidTankTypes.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MidTankTypes.cs deleted file mode 100644 index a2571f577..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/MidTankTypes.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum MidTankTypes - { - - /// - /// (Liter Tank 2) - /// - [Description("Liter Tank 2")] - LiterTank2 = 1, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Permissions.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Permissions.cs deleted file mode 100644 index e3ac70144..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Permissions.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum Permissions - { - - /// - /// (Allows loading the technician module in Machine Studio) - /// - [Description("Allows loading the technician module in Machine Studio")] - RunTechnicianModule = 0, - - /// - /// (Allows loading the developer module in Machine Studio) - /// - [Description("Allows loading the developer module in Machine Studio")] - RunDeveloperModule = 1, - - /// - /// (Allows loading the database module in Machine Studio) - /// - [Description("Allows loading the database module in Machine Studio")] - RunDataBaseModule = 2, - - /// - /// (Allows loading the synchronization module in machine studio) - /// - [Description("Allows loading the synchronization module in machine studio")] - RunSynchronizationModule = 3, - - /// - /// (Allows loading the machine designer module in Machine Studio) - /// - [Description("Allows loading the machine designer module in Machine Studio")] - RunMachineDesignerModule = 4, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Rmls.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Rmls.cs deleted file mode 100644 index 5f8bb5eef..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Rmls.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum Rmls - { - - /// - /// (RML 2) - /// - [Description("RML 2")] - RML2 = 0, - - /// - /// (RML 1) - /// - [Description("RML 1")] - RML1 = 0, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Roles.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Roles.cs deleted file mode 100644 index 6563e0826..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Roles.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum Roles - { - - /// - /// (User with standard permissions) - /// - [Description("User with standard permissions")] - User = 0, - - /// - /// (Twine administrator) - /// - [Description("Twine administrator")] - Administrator = 1, - - /// - /// (Twine technician) - /// - [Description("Twine technician")] - Technician = 2, - - /// - /// (Twine Research and development) - /// - [Description("Twine Research and development")] - Developer = 3, - - /// - /// (Role Description) - /// - [Description("Role Description")] - SomeRole = 4, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Sensors.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Sensors.cs deleted file mode 100644 index 906764c0f..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/Sensors.cs +++ /dev/null @@ -1,181 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum Sensors - { - - /// - /// (Dancer 1) - /// - [Description("Dancer 1")] - Dancer1Angle = 0, - - /// - /// (Dancer 2) - /// - [Description("Dancer 2")] - Dancer2Angle = 1, - - /// - /// (Dancer 3) - /// - [Description("Dancer 3")] - Dancer3Angle = 2, - - /// - /// (Feeder Motor) - /// - [Description("Feeder Motor")] - FeederMotorFrequency = 3, - - /// - /// (Dryer Motor) - /// - [Description("Dryer Motor")] - DryerMotor = 4, - - /// - /// (Poller Motor) - /// - [Description("Poller Motor")] - PollerMotor = 5, - - /// - /// (Winder Motor) - /// - [Description("Winder Motor")] - WinderMotor = 6, - - /// - /// (Screw Motor) - /// - [Description("Screw Motor")] - ScrewMotor = 7, - - /// - /// (Thread Speed) - /// - [Description("Thread Speed")] - ThreadSpeed = 8, - - /// - /// (Mixer) - /// - [Description("Mixer")] - MixerTemperature = 9, - - /// - /// (Head Zone 1) - /// - [Description("Head Zone 1")] - HeadZone1Temperature = 10, - - /// - /// (Head Zone 2) - /// - [Description("Head Zone 2")] - HeadZone2Temperature = 11, - - /// - /// (Head Zone 3) - /// - [Description("Head Zone 3")] - HeadZone3Temperature = 12, - - /// - /// (Head Air Flow) - /// - [Description("Head Air Flow")] - HeadAirFlow = 13, - - /// - /// (Feeder Tension) - /// - [Description("Feeder Tension")] - FeederTension = 14, - - /// - /// (Puller Tension) - /// - [Description("Puller Tension")] - PullerTension = 15, - - /// - /// (Dryer Zone 1) - /// - [Description("Dryer Zone 1")] - DryerZone1Temperature = 16, - - /// - /// (Dryer Zone 2) - /// - [Description("Dryer Zone 2")] - DryerZone2Temperature = 17, - - /// - /// (Dryer Zone 3) - /// - [Description("Dryer Zone 3")] - DryerZone3Temperature = 18, - - /// - /// (Dryer Air Flow) - /// - [Description("Dryer Air Flow")] - DryerAirFlow = 19, - - /// - /// (Winder Tension) - /// - [Description("Winder Tension")] - WinderTension = 20, - - /// - /// (Dispensers Motors) - /// - [Description("Dispensers Motors")] - DispensersMotorsFrequency = 21, - - /// - /// (Dispensers Angular Encoders) - /// - [Description("Dispensers Angular Encoders")] - DispensersAngularEncoders = 22, - - /// - /// (Dispensers Linear Positions) - /// - [Description("Dispensers Linear Positions")] - DispensersLinearPositions = 23, - - /// - /// (Dispensers Pressure) - /// - [Description("Dispensers Pressure")] - DispensersPressure = 24, - - /// - /// (Mid Tank Pressure) - /// - [Description("Mid Tank Pressure")] - MidTankPressure = 25, - - /// - /// (Filter Delta Pressure) - /// - [Description("Filter Delta Pressure")] - FilterDeltaPressure = 26, - - /// - /// (Chiller Temperature) - /// - [Description("Chiller Temperature")] - ChillerTemperature = 27, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/WindingMethods.cs b/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/WindingMethods.cs deleted file mode 100644 index 95e6d5e6d..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Enumerations/WindingMethods.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public enum WindingMethods - { - - /// - /// (Embroidery Winding) - /// - [Description("Embroidery Winding")] - Embroidery = 0, - - /// - /// (Calibration Winding) - /// - [Description("Calibration Winding")] - Calibration = 1, - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods.cs b/Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods.cs deleted file mode 100644 index 5911d7cfb..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading.Tasks; - -namespace Tango.DAL.Observables -{ - /// - /// Contains DAL generation specific extension methods. - /// - public static class ExtensionMethods - { - /// - /// Gets the attribute value. - /// - /// - public static String GetDALName(this Type type) - { - return (type.GetCustomAttributes(typeof(TableAttribute), false).SingleOrDefault() as TableAttribute).Name; - } - - /// - /// Gets the attribute value. - /// - /// - public static String GetDALName(this PropertyInfo prop) - { - return (prop.GetCustomAttributes(typeof(TableAttribute), false).SingleOrDefault() as TableAttribute).Name; - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods/ConfigurationExtensions.cs b/Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods/ConfigurationExtensions.cs deleted file mode 100644 index ec6ab2f7f..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods/ConfigurationExtensions.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.DAL.Observables; - -/// -/// Contains extension methods. -/// -public static class ConfigurationExtensions -{ - /// - /// Clones the configuration along with it's IDS packs. - /// - /// The configuration. - /// - public static Configuration CloneConfiguration(this Configuration configuration) - { - Configuration cloned = configuration.CloneEntity(); - cloned.CreationDate = DateTime.UtcNow; - - foreach (var idsPack in configuration.IdsPacks) - { - IdsPack clonedPack = idsPack.CloneEntity(); - clonedPack.Configuration = cloned; - clonedPack.DispenserType = idsPack.DispenserType; - clonedPack.CartridgeType = idsPack.CartridgeType; - clonedPack.MidTankType = idsPack.MidTankType; - clonedPack.IdsPackFormula = idsPack.IdsPackFormula; - cloned.IdsPacks.Add(clonedPack); - } - - return cloned; - } -} - diff --git a/Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods/ObservableEntityExtensions.cs b/Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods/ObservableEntityExtensions.cs deleted file mode 100644 index 8bb305026..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods/ObservableEntityExtensions.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.DAL.Observables; - -/// -/// Contains extension methods. -/// -public static class ObservableEntityExtensions -{ - /// - /// Performs a shallow cloning of this entity. - /// - /// - /// The entity. - /// - public static T CloneEntity(this T entity) where T : class, IObservableEntity - { - T cloned = entity.ShallowClone(); - cloned.ID = 0; - cloned.Guid = Guid.NewGuid().ToString(); - cloned.LastUpdated = DateTime.UtcNow; - return cloned; - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods/ProcessParametersTablesGroupExtensions.cs b/Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods/ProcessParametersTablesGroupExtensions.cs deleted file mode 100644 index 853570512..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/ExtensionMethods/ProcessParametersTablesGroupExtensions.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.DAL.Observables; - -public static class ProcessParametersTablesGroupExtensions -{ - public static ProcessParametersTablesGroup CloneGroup(this ProcessParametersTablesGroup group) - { - ProcessParametersTablesGroup cloned = group.CloneEntity(); - - List tables = new List(); - foreach (var table in group.ProcessParametersTables) - { - var newTable = table.CloneEntity(); - newTable.ProcessParametersTablesGroup = cloned; - tables.Add(newTable); - } - - cloned.ProcessParametersTables = tables.ToObservableCollection(); - - return cloned; - } -} - diff --git a/Software/Visual_Studio/Tango.DAL.Observables/IObservableEntity.cs b/Software/Visual_Studio/Tango.DAL.Observables/IObservableEntity.cs deleted file mode 100644 index 9caa89223..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/IObservableEntity.cs +++ /dev/null @@ -1,79 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using System.Data.Entity; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.Core; - -namespace Tango.DAL.Observables -{ - /// - /// Represents an observable database entity. - /// - public interface IObservableEntity : IParameterized - { - /// - /// Occurs after this observable has been saved. - /// - event EventHandler Saved; - - /// - /// Gets or sets the entity identifier. - /// - [Column("ID")] - [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] - Int32 ID { get; set; } - - /// - /// Gets or sets the entity unique identifier. - /// - [Key] - [Column("GUID")] - String Guid { get; set; } - - /// - /// Gets or sets the entity last updated data and time. - /// - [Column("LAST_UPDATED")] - DateTime LastUpdated { get; set; } - - /// - /// Saves the changes on this entity to database. - /// - void Save(); - - /// - /// Attaches this observable to the proper DbSet. - /// - void Attach(); - - /// - /// Detaches this observable from the proper DbSet. - /// - void Detach(); - - /// - /// Saves the changes on this entity to database asynchronously. - /// - /// - Task SaveAsync(); - - /// - /// Deletes this entity from the database. - /// - void Delete(); - - /// - /// Deletes this entity without saving changes to data base. - /// - void DefferedDelete(); - - /// - /// Deletes this entity from the database. - /// - Task DeleteAsync(); - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/LoadedEntitiesService.cs b/Software/Visual_Studio/Tango.DAL.Observables/LoadedEntitiesService.cs deleted file mode 100644 index 6e36c417d..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/LoadedEntitiesService.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Tango.DAL.Observables -{ - /// - /// Represents a service responsible for caching the collection all loaded observable entities. - /// - internal static class LoadedEntitiesService - { - private static List> LoadedObjects; //Holds the collection of cached entities. - - /// - /// Initializes the class. - /// - static LoadedEntitiesService() - { - LoadedObjects = new List>(); - - } - /// - /// Gets the loaded entity by the specified entity guid. - /// - /// The unique identifier. - /// - public static Object Get(String guid) - { - return LoadedObjects.SingleOrDefault(x => x.Key == guid).Value; - } - - /// - /// Adds the specified observable entity. - /// - /// The unique identifier. - /// The observable. - public static void Add(String guid, IObservableEntity observable) - { - if (!LoadedObjects.Exists(x => x.Key == guid)) - { - LoadedObjects.Add(new KeyValuePair(guid, observable)); - } - } - - /// - /// Determines whether the specified observable entity is loaded. - /// - /// The unique identifier. - /// - public static bool IsLoaded(String guid) - { - return LoadedObjects.Exists(x => x.Key == guid); - } - - /// - /// Resets the entities cache. - /// - public static void Reset() - { - LoadedObjects.Clear(); - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/ObservableEntity.cs b/Software/Visual_Studio/Tango.DAL.Observables/ObservableEntity.cs deleted file mode 100644 index 000642375..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/ObservableEntity.cs +++ /dev/null @@ -1,254 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Data.Entity; -using System.Globalization; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Text.RegularExpressions; -using System.Threading.Tasks; -using Tango.Core; -using Tango.DAL.Remote.DB; -using Tango.DAL.Remote; -using Tango.Settings; -using Tango.Core.Helpers; -using Force.DeepCloner; -using System.ComponentModel.DataAnnotations.Schema; -using System.ComponentModel.DataAnnotations; -using System.Runtime.CompilerServices; - -namespace Tango.DAL.Observables -{ - /// - /// Represents a generic observable entity base class. - /// - /// - /// - /// - public abstract class ObservableEntity : ExtendedObject, IObservableEntity where T : class, IObservableEntity - { - private Regex regExDAL; - - /// - /// Occurs after this observable has been saved. - /// - public event EventHandler Saved; - - private Int32 _id; - /// - /// Gets or sets the entity identifier. - /// - [Column("ID")] - [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] - public Int32 ID - { - get { return _id; } - set { _id = value; RaisePropertyChanged(nameof(ID)); } - } - - private String _guid; - /// - /// Gets or sets the entity unique identifier. - /// - [Key] - [Column("GUID")] - public String Guid - { - get { return _guid; } - set { _guid = value; RaisePropertyChanged(nameof(Guid)); } - } - - private DateTime _lastUpdated; - /// - /// Gets or sets the entity last updated data and time. - /// - [Column("LAST_UPDATED")] - public DateTime LastUpdated - { - get { return _lastUpdated; } - set { _lastUpdated = value; RaisePropertyChanged(nameof(LastUpdated)); } - } - - private ReadOnlyObservableCollection _parameters; - /// - /// Gets a bind-able observable collection of the component properties. - /// - [NotMapped] - public ReadOnlyObservableCollection Parameters - { - get { return _parameters; } - set { _parameters = value; RaisePropertyChangedAuto(); } - } - - /// - /// Initializes a new instance of the class. - /// - public ObservableEntity() - { - Guid = System.Guid.NewGuid().ToString(); - LastUpdated = DateTime.UtcNow; - regExDAL = new Regex(@" - (?<=[A-Z])(?=[A-Z][a-z]) | - (?<=[^A-Z])(?=[A-Z]) | - (?<=[A-Za-z])(?=[^A-Za-z])", RegexOptions.IgnorePatternWhitespace); - - if (!DesignMode) - { - ThreadsHelper.InvokeUI(() => - { - Parameters = new ReadOnlyObservableCollection(this.CreateParametersCollection(ParameterItemMode.Binding)); - }); - } - } - - /// - /// Saves the changes on this entity to database. - /// - public virtual void Save() - { - ObservablesEntitiesAdapter.Instance.SaveChanges(); - Saved?.Invoke(this, new EventArgs()); - } - - /// - /// Attaches this entity to the proper DbSet. - /// - public virtual void Attach() - { - GetDbSet().Add(this as T); - } - - /// - /// Detaches this observable from the proper DbSet. - /// - public virtual void Detach() - { - GetDbSet().Remove(this as T); - } - - /// - /// Saves the changes on this entity to database asynchronously. - /// - /// - public Task SaveAsync() - { - return Task.Factory.StartNew(() => - { - Save(); - }); - } - - /// - /// Deletes this entity from the database - /// - public virtual void Delete() - { - var delProp = this.GetType().GetProperty("Deleted"); - - if (delProp != null) - { - delProp.SetValue(this, true); - Save(); - } - else - { - GetDbSet().Remove(this as T); - Save(); - } - } - - /// - /// Deletes this entity without saving changes to data base. - /// - public virtual void DefferedDelete() - { - GetDbSet().Remove(this as T); - } - - /// - /// Deletes this entity from the database - /// - public Task DeleteAsync() - { - return Task.Factory.StartNew(() => - { - Delete(); - }); - } - - /// - /// Gets the observable database set. - /// - /// - public DbSet GetDbSet() - { - String tabelName = this.GetType().Name.PluralizeMVC(); - var p = typeof(ObservablesContext).GetProperty(tabelName); - if (p != null) - { - var set1 = p.GetValue(ObservablesEntitiesAdapter.Instance.Context) as DbSet; - return set1; - } - else - { - tabelName = this.GetType().BaseType.Name.PluralizeMVC(); - p = typeof(ObservablesContext).GetProperty(tabelName); - if (p != null) - { - var set2 = p.GetValue(ObservablesEntitiesAdapter.Instance.Context) as DbSet; - return set2; - } - } - - return null; - } - - #region Operator Overloading - - //public static bool operator ==(ObservableEntityBase observable1, ObservableEntityBase observable2) - //{ - // if (object.ReferenceEquals(observable1, null) || object.ReferenceEquals(observable2, null)) - // { - // return object.ReferenceEquals(observable1, observable2); - // } - - // return observable1.Guid.ToLower() == observable2.Guid.ToLower(); - //} - - //public static bool operator !=(ObservableEntityBase observable1, ObservableEntityBase observable2) - //{ - // if (object.ReferenceEquals(observable1, null) || object.ReferenceEquals(observable2, null)) - // { - // return !object.ReferenceEquals(observable1, observable2); - // } - - // return observable1.Guid.ToLower() != observable2.Guid.ToLower(); - //} - - //public override bool Equals(object obj) - //{ - // if (object.ReferenceEquals(this, null) || object.ReferenceEquals(obj, null)) - // { - // return object.ReferenceEquals(this, obj); - // } - - // if (obj is ObservableEntityBase) - // { - // return Guid.ToLower() == (obj as ObservableEntityBase).Guid.ToLower(); - // } - // else - // { - // return false; - // } - //} - - public override int GetHashCode() - { - return base.GetHashCode(); - } - - #endregion - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/ObservablesContext.cs b/Software/Visual_Studio/Tango.DAL.Observables/ObservablesContext.cs deleted file mode 100644 index 63dc901ba..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/ObservablesContext.cs +++ /dev/null @@ -1,451 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Data.Entity; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.Settings; - -namespace Tango.DAL.Observables -{ - public class ObservablesContext : DbContext - { - /// - /// Initializes a new instance of the class. - /// - /// The server file path. - /// if set to true will try to connect to an .mdf file. - public ObservablesContext(String path, bool isFile) : base(ComposeConnectionString(path, isFile)) - { - - } - - /// - /// Composes the connection string. - /// - /// The source. - /// if set to true [is file]. - /// - private static String ComposeConnectionString(String source, bool isFile) - { - if (!isFile) - { - return String.Format("Data Source={0};Initial Catalog=Tango;Integrated Security=true", source); - } - else - { - return null; - } - } - - /// - /// Creates a default remote database context by the address specified in . - /// - /// - public static ObservablesContext CreateDefault() - { - return new ObservablesContext(SettingsManager.Default.DataBase.SQLServerAddress, false); - } - - /// - /// Gets or sets the ActionTypes. - /// - public DbSet ActionTypes - { - get; set; - } - - /// - /// Gets or sets the Addresses. - /// - public DbSet
Addresses - { - get; set; - } - - /// - /// Gets or sets the ApplicationDisplayPanelVersions. - /// - public DbSet ApplicationDisplayPanelVersions - { - get; set; - } - - /// - /// Gets or sets the ApplicationFirmwareVersions. - /// - public DbSet ApplicationFirmwareVersions - { - get; set; - } - - /// - /// Gets or sets the ApplicationOsVersions. - /// - public DbSet ApplicationOsVersions - { - get; set; - } - - /// - /// Gets or sets the ApplicationVersions. - /// - public DbSet ApplicationVersions - { - get; set; - } - - /// - /// Gets or sets the BrushStops. - /// - public DbSet BrushStops - { - get; set; - } - - /// - /// Gets or sets the CartridgeTypes. - /// - public DbSet CartridgeTypes - { - get; set; - } - - /// - /// Gets or sets the Cats. - /// - public DbSet Cats - { - get; set; - } - - /// - /// Gets or sets the Ccts. - /// - public DbSet Ccts - { - get; set; - } - - /// - /// Gets or sets the ColorSpaces. - /// - public DbSet ColorSpaces - { - get; set; - } - - /// - /// Gets or sets the Configurations. - /// - public DbSet Configurations - { - get; set; - } - - /// - /// Gets or sets the Contacts. - /// - public DbSet Contacts - { - get; set; - } - - /// - /// Gets or sets the DispenserTypes. - /// - public DbSet DispenserTypes - { - get; set; - } - - /// - /// Gets or sets the EmbeddedFirmwareVersions. - /// - public DbSet EmbeddedFirmwareVersions - { - get; set; - } - - /// - /// Gets or sets the EmbeddedSoftwareVersions. - /// - public DbSet EmbeddedSoftwareVersions - { - get; set; - } - - /// - /// Gets or sets the EventTypes. - /// - public DbSet EventTypes - { - get; set; - } - - /// - /// Gets or sets the EventTypesActions. - /// - public DbSet EventTypesActions - { - get; set; - } - - /// - /// Gets or sets the FiberShapes. - /// - public DbSet FiberShapes - { - get; set; - } - - /// - /// Gets or sets the FiberSynths. - /// - public DbSet FiberSynths - { - get; set; - } - - /// - /// Gets or sets the HardwareVersions. - /// - public DbSet HardwareVersions - { - get; set; - } - - /// - /// Gets or sets the IdsPackFormulas. - /// - public DbSet IdsPackFormulas - { - get; set; - } - - /// - /// Gets or sets the IdsPacks. - /// - public DbSet IdsPacks - { - get; set; - } - - /// - /// Gets or sets the JobRuns. - /// - public DbSet JobRuns - { - get; set; - } - - /// - /// Gets or sets the Jobs. - /// - public DbSet Jobs - { - get; set; - } - - /// - /// Gets or sets the LinearMassDensityUnits. - /// - public DbSet LinearMassDensityUnits - { - get; set; - } - - /// - /// Gets or sets the LiquidTypes. - /// - public DbSet LiquidTypes - { - get; set; - } - - /// - /// Gets or sets the LiquidTypesRmls. - /// - public DbSet LiquidTypesRmls - { - get; set; - } - - /// - /// Gets or sets the MachineVersions. - /// - public DbSet MachineVersions - { - get; set; - } - - /// - /// Gets or sets the Machines. - /// - public DbSet Machines - { - get; set; - } - - /// - /// Gets or sets the MachinesConfigurations. - /// - public DbSet MachinesConfigurations - { - get; set; - } - - /// - /// Gets or sets the MachinesEvents. - /// - public DbSet MachinesEvents - { - get; set; - } - - /// - /// Gets or sets the MediaColors. - /// - public DbSet MediaColors - { - get; set; - } - - /// - /// Gets or sets the MediaConditions. - /// - public DbSet MediaConditions - { - get; set; - } - - /// - /// Gets or sets the MediaMaterials. - /// - public DbSet MediaMaterials - { - get; set; - } - - /// - /// Gets or sets the MediaPurposes. - /// - public DbSet MediaPurposes - { - get; set; - } - - /// - /// Gets or sets the MidTankTypes. - /// - public DbSet MidTankTypes - { - get; set; - } - - /// - /// Gets or sets the Organizations. - /// - public DbSet Organizations - { - get; set; - } - - /// - /// Gets or sets the Permissions. - /// - public DbSet Permissions - { - get; set; - } - - /// - /// Gets or sets the ProcessParametersTables. - /// - public DbSet ProcessParametersTables - { - get; set; - } - - /// - /// Gets or sets the ProcessParametersTablesGroups. - /// - public DbSet ProcessParametersTablesGroups - { - get; set; - } - - /// - /// Gets or sets the Rmls. - /// - public DbSet Rmls - { - get; set; - } - - /// - /// Gets or sets the Roles. - /// - public DbSet Roles - { - get; set; - } - - /// - /// Gets or sets the RolesPermissions. - /// - public DbSet RolesPermissions - { - get; set; - } - - /// - /// Gets or sets the Segments. - /// - public DbSet Segments - { - get; set; - } - - /// - /// Gets or sets the Sensors. - /// - public DbSet Sensors - { - get; set; - } - - /// - /// Gets or sets the SyncConfigurations. - /// - public DbSet SyncConfigurations - { - get; set; - } - - /// - /// Gets or sets the Users. - /// - public DbSet Users - { - get; set; - } - - /// - /// Gets or sets the UsersRoles. - /// - public DbSet UsersRoles - { - get; set; - } - - /// - /// Gets or sets the WindingMethods. - /// - public DbSet WindingMethods - { - get; set; - } - - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/ObservablesEntitiesAdapter.cs b/Software/Visual_Studio/Tango.DAL.Observables/ObservablesEntitiesAdapter.cs deleted file mode 100644 index 4b0f8747d..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/ObservablesEntitiesAdapter.cs +++ /dev/null @@ -1,300 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Data.Entity; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Data; -using System.Windows.Threading; -using Tango.Core; -using Tango.DAL.Remote.DB; -using Tango.Settings; - -namespace Tango.DAL.Observables -{ - /// - /// Exposes method for retrieving observable collections of observable entities. - /// - /// - public partial class ObservablesEntitiesAdapter : ExtendedObject - { - public event Action Initialized; - - private static object _syncLock; - - private static ObservablesEntitiesAdapter _instance; - /// - /// Gets the singleton instance. - /// - public static ObservablesEntitiesAdapter Instance - { - get - { - if (_instance == null) - { - _instance = new ObservablesEntitiesAdapter(); - } - return _instance; - } - } - - /// - /// Gets the DB context. - /// - public ObservablesContext Context { get; private set; } - - /// - /// Performs an implicit conversion from to . - /// - /// The instance. - /// - /// The result of the conversion. - /// - public static implicit operator DbContext(ObservablesEntitiesAdapter instance) - { - return instance.Context; - } - - /// - /// Prevents a default instance of the class from being created. - /// - private ObservablesEntitiesAdapter() - { - Context = new ObservablesContext(SettingsManager.Default.DataBase.SQLServerAddress, false); - } - - /// - /// Initializes this instance. - /// - public void Initialize() - { - Invalidate(true); - Initialized?.Invoke(); - } - - /// - /// Saves the current changes to database. - /// - public void SaveChanges() - { - try - { - Context.SaveChanges(); - } - catch (Exception ex) - { - throw ex; - } - finally - { - Invalidate(); - } - } - - /// - /// Invokes the specified action on the adapter synchronization context. - /// - /// The action. - public void Invoke(Action action) - { - lock (_syncLock) - { - action(); - } - } - - /// - /// Invalidates the adapter and reloads the database. - /// - /// if set to true [initializing]. - public void Invalidate(bool initializing = false) - { - _syncLock = new object(); - - LoadedEntitiesService.Reset(); - - if (initializing) - { - //Remove Unlinked Configurations.. - List remove_configurations = new List(); - - foreach (var config in Context.Configurations) - { - if (Context.MachineVersions.FirstOrDefault(x => x.DefaultConfigurationGuid == config.Guid) != null) - { - continue; - } - - if (Context.MachinesConfigurations.FirstOrDefault(x => x.ConfigurationGuid == config.Guid) != null) - { - continue; - } - - if (Context.Machines.FirstOrDefault(x => x.ConfigurationGuid == config.Guid) != null) - { - continue; - } - - remove_configurations.Add(config); - } - - foreach (var config in remove_configurations) - { - Context.Configurations.Remove(config); - } - - Context.SaveChanges(); - //Remove Unlinked Configurations.. - } - - Organizations = Context.Organizations.ToObservableCollection(); - - Machines = Context.Machines.ToObservableCollection(); - - foreach (var machine in Machines) - { - machine.MachinesConfigurations = machine.MachinesConfigurations.OrderByDescending(x => x.Configuration.CreationDate).Take(30).ToObservableCollection(); - machine.Jobs = machine.Jobs.OrderByDescending(x => x.CreationDate).ToObservableCollection(); - } - - MachinesConfigurations = Context.MachinesConfigurations.ToObservableCollection(); - - MachineVersions = Context.MachineVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); - - Addresses = Context.Addresses.Where(x => !x.Deleted).ToList().OrderBy(x => x.AddressString).ToObservableCollection(); - Contacts = Context.Contacts.Where(x => !x.Deleted).ToList().OrderBy(x => x.FullName).ToObservableCollection(); - - Roles = Context.Roles.ToList().OrderBy(x => x.Name).ToObservableCollection(); - - Permissions = Context.Permissions.ToList().OrderBy(x => x.Name).ToObservableCollection(); - - UsersRoles = Context.UsersRoles.ToObservableCollection(); - - Users = Context.Users.Where(x => !x.Deleted).ToList().OrderBy(x => x.Contact.FullName).ToObservableCollection(); - - //foreach (var user in Users) - //{ - // user.UsersRoles = user.UsersRoles.Where(x => !x.Deleted).ToObservableCollection(); - //} - - foreach (var role in Roles) - { - role.RolesPermissions = role.RolesPermissions.ToObservableCollection(); - } - - Configurations = Context.Configurations.ToList().OrderBy(x => x.LastUpdated).ToObservableCollection(); - - foreach (var config in Configurations) - { - config.IdsPacks = config.IdsPacks.ToObservableCollection(); - } - - ApplicationVersions = Context.ApplicationVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); - - ApplicationOsVersions = Context.ApplicationOsVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); - - ApplicationFirmwareVersions = Context.ApplicationFirmwareVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); - - ApplicationDisplayPanelVersions = Context.ApplicationDisplayPanelVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); - - EmbeddedFirmwareVersions = Context.EmbeddedFirmwareVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); - - EmbeddedSoftwareVersions = Context.EmbeddedSoftwareVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); - - HardwareVersions = Context.HardwareVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); - - IdsPacks = Context.IdsPacks.ToObservableCollection(); - - DispenserTypes = Context.DispenserTypes.ToObservableCollection(); - - LiquidTypes = Context.LiquidTypes.ToObservableCollection(); - - CartridgeTypes = Context.CartridgeTypes.ToObservableCollection(); - - MidTankTypes = Context.MidTankTypes.ToObservableCollection(); - - ActionTypes = Context.ActionTypes.ToObservableCollection(); - - EventTypesActions = Context.EventTypesActions.ToObservableCollection(); - - EventTypes = Context.EventTypes.ToObservableCollection(); - - foreach (var eventType in EventTypes) - { - eventType.EventTypesActions = eventType.EventTypesActions.ToObservableCollection(); - } - - MediaMaterials = Context.MediaMaterials.ToObservableCollection(); - - MediaColors = Context.MediaColors.ToObservableCollection(); - - MediaPurposes = Context.MediaPurposes.ToObservableCollection(); - - MediaConditions = Context.MediaConditions.ToObservableCollection(); - - LinearMassDensityUnits = Context.LinearMassDensityUnits.ToObservableCollection(); - - FiberShapes = Context.FiberShapes.ToObservableCollection(); - - FiberSynths = Context.FiberSynths.ToObservableCollection(); - - Rmls = Context.Rmls.ToObservableCollection(); - - LiquidTypesRmls = Context.LiquidTypesRmls.ToObservableCollection(); - - Ccts = Context.Ccts.ToObservableCollection(); - - Cats = Context.Cats.ToObservableCollection(); - - ProcessParametersTables = Context.ProcessParametersTables.ToObservableCollection(); - - ProcessParametersTablesGroups = Context.ProcessParametersTablesGroups.ToObservableCollection(); - - foreach (var group in ProcessParametersTablesGroups) - { - group.ProcessParametersTables = group.ProcessParametersTables.OrderBy(x => x.TableIndex).ToObservableCollection(); - } - - WindingMethods = Context.WindingMethods.ToObservableCollection(); - - Sensors = Context.Sensors.ToObservableCollection(); - - IdsPackFormulas = Context.IdsPackFormulas.ToObservableCollection(); - - ColorSpaces = Context.ColorSpaces.ToObservableCollection(); - - InitCollectionSources(); - - //var action = ActionTypes.First(); - - //action.Name = "Action 1 Yesss"; - - //SaveChanges(); - - //BindingOperations.EnableCollectionSynchronization(Machines, _syncLock); - //BindingOperations.EnableCollectionSynchronization(MachinesViewSource, _syncLock); - - //BindingOperations.EnableCollectionSynchronization(MachinesConfigurations, _syncLock); - //BindingOperations.EnableCollectionSynchronization(MachinesConfigurationsViewSource, _syncLock); - - //BindingOperations.EnableCollectionSynchronization(EventTypesActions, _syncLock); - //BindingOperations.EnableCollectionSynchronization(EventTypesActionsViewSource, _syncLock); - } - - /// - /// Creates a collection view from the specified observable collection. - /// - /// - /// The collection. - /// - private ICollectionView CreateCollectionView(ObservableCollection collection) - { - var view = CollectionViewSource.GetDefaultView(collection); - return view; - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/ObservablesEntitiesAdapterExtension.cs b/Software/Visual_Studio/Tango.DAL.Observables/ObservablesEntitiesAdapterExtension.cs deleted file mode 100644 index 3123a453d..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/ObservablesEntitiesAdapterExtension.cs +++ /dev/null @@ -1,1917 +0,0 @@ -using System.Collections.ObjectModel; -using System.ComponentModel; - -namespace Tango.DAL.Observables -{ - public partial class ObservablesEntitiesAdapter - { - - private ObservableCollection _actiontypes; - /// - /// Gets or sets the ActionTypes. - /// - public ObservableCollection ActionTypes - { - get - { - return _actiontypes; - } - - set - { - _actiontypes = value; RaisePropertyChanged(nameof(ActionTypes)); - } - - } - - private ICollectionView _actiontypesViewSource; - /// - /// Gets or sets the ActionTypes View Source. - /// - public ICollectionView ActionTypesViewSource - { - get - { - return _actiontypesViewSource; - } - - set - { - _actiontypesViewSource = value; RaisePropertyChanged(nameof(ActionTypesViewSource)); - } - - } - - private ObservableCollection
_addresses; - /// - /// Gets or sets the Addresses. - /// - public ObservableCollection
Addresses - { - get - { - return _addresses; - } - - set - { - _addresses = value; RaisePropertyChanged(nameof(Addresses)); - } - - } - - private ICollectionView _addressesViewSource; - /// - /// Gets or sets the Addresses View Source. - /// - public ICollectionView AddressesViewSource - { - get - { - return _addressesViewSource; - } - - set - { - _addressesViewSource = value; RaisePropertyChanged(nameof(AddressesViewSource)); - } - - } - - private ObservableCollection _applicationdisplaypanelversions; - /// - /// Gets or sets the ApplicationDisplayPanelVersions. - /// - public ObservableCollection ApplicationDisplayPanelVersions - { - get - { - return _applicationdisplaypanelversions; - } - - set - { - _applicationdisplaypanelversions = value; RaisePropertyChanged(nameof(ApplicationDisplayPanelVersions)); - } - - } - - private ICollectionView _applicationdisplaypanelversionsViewSource; - /// - /// Gets or sets the ApplicationDisplayPanelVersions View Source. - /// - public ICollectionView ApplicationDisplayPanelVersionsViewSource - { - get - { - return _applicationdisplaypanelversionsViewSource; - } - - set - { - _applicationdisplaypanelversionsViewSource = value; RaisePropertyChanged(nameof(ApplicationDisplayPanelVersionsViewSource)); - } - - } - - private ObservableCollection _applicationfirmwareversions; - /// - /// Gets or sets the ApplicationFirmwareVersions. - /// - public ObservableCollection ApplicationFirmwareVersions - { - get - { - return _applicationfirmwareversions; - } - - set - { - _applicationfirmwareversions = value; RaisePropertyChanged(nameof(ApplicationFirmwareVersions)); - } - - } - - private ICollectionView _applicationfirmwareversionsViewSource; - /// - /// Gets or sets the ApplicationFirmwareVersions View Source. - /// - public ICollectionView ApplicationFirmwareVersionsViewSource - { - get - { - return _applicationfirmwareversionsViewSource; - } - - set - { - _applicationfirmwareversionsViewSource = value; RaisePropertyChanged(nameof(ApplicationFirmwareVersionsViewSource)); - } - - } - - private ObservableCollection _applicationosversions; - /// - /// Gets or sets the ApplicationOsVersions. - /// - public ObservableCollection ApplicationOsVersions - { - get - { - return _applicationosversions; - } - - set - { - _applicationosversions = value; RaisePropertyChanged(nameof(ApplicationOsVersions)); - } - - } - - private ICollectionView _applicationosversionsViewSource; - /// - /// Gets or sets the ApplicationOsVersions View Source. - /// - public ICollectionView ApplicationOsVersionsViewSource - { - get - { - return _applicationosversionsViewSource; - } - - set - { - _applicationosversionsViewSource = value; RaisePropertyChanged(nameof(ApplicationOsVersionsViewSource)); - } - - } - - private ObservableCollection _applicationversions; - /// - /// Gets or sets the ApplicationVersions. - /// - public ObservableCollection ApplicationVersions - { - get - { - return _applicationversions; - } - - set - { - _applicationversions = value; RaisePropertyChanged(nameof(ApplicationVersions)); - } - - } - - private ICollectionView _applicationversionsViewSource; - /// - /// Gets or sets the ApplicationVersions View Source. - /// - public ICollectionView ApplicationVersionsViewSource - { - get - { - return _applicationversionsViewSource; - } - - set - { - _applicationversionsViewSource = value; RaisePropertyChanged(nameof(ApplicationVersionsViewSource)); - } - - } - - private ObservableCollection _brushstops; - /// - /// Gets or sets the BrushStops. - /// - public ObservableCollection BrushStops - { - get - { - return _brushstops; - } - - set - { - _brushstops = value; RaisePropertyChanged(nameof(BrushStops)); - } - - } - - private ICollectionView _brushstopsViewSource; - /// - /// Gets or sets the BrushStops View Source. - /// - public ICollectionView BrushStopsViewSource - { - get - { - return _brushstopsViewSource; - } - - set - { - _brushstopsViewSource = value; RaisePropertyChanged(nameof(BrushStopsViewSource)); - } - - } - - private ObservableCollection _cartridgetypes; - /// - /// Gets or sets the CartridgeTypes. - /// - public ObservableCollection CartridgeTypes - { - get - { - return _cartridgetypes; - } - - set - { - _cartridgetypes = value; RaisePropertyChanged(nameof(CartridgeTypes)); - } - - } - - private ICollectionView _cartridgetypesViewSource; - /// - /// Gets or sets the CartridgeTypes View Source. - /// - public ICollectionView CartridgeTypesViewSource - { - get - { - return _cartridgetypesViewSource; - } - - set - { - _cartridgetypesViewSource = value; RaisePropertyChanged(nameof(CartridgeTypesViewSource)); - } - - } - - private ObservableCollection _cats; - /// - /// Gets or sets the Cats. - /// - public ObservableCollection Cats - { - get - { - return _cats; - } - - set - { - _cats = value; RaisePropertyChanged(nameof(Cats)); - } - - } - - private ICollectionView _catsViewSource; - /// - /// Gets or sets the Cats View Source. - /// - public ICollectionView CatsViewSource - { - get - { - return _catsViewSource; - } - - set - { - _catsViewSource = value; RaisePropertyChanged(nameof(CatsViewSource)); - } - - } - - private ObservableCollection _ccts; - /// - /// Gets or sets the Ccts. - /// - public ObservableCollection Ccts - { - get - { - return _ccts; - } - - set - { - _ccts = value; RaisePropertyChanged(nameof(Ccts)); - } - - } - - private ICollectionView _cctsViewSource; - /// - /// Gets or sets the Ccts View Source. - /// - public ICollectionView CctsViewSource - { - get - { - return _cctsViewSource; - } - - set - { - _cctsViewSource = value; RaisePropertyChanged(nameof(CctsViewSource)); - } - - } - - private ObservableCollection _colorspaces; - /// - /// Gets or sets the ColorSpaces. - /// - public ObservableCollection ColorSpaces - { - get - { - return _colorspaces; - } - - set - { - _colorspaces = value; RaisePropertyChanged(nameof(ColorSpaces)); - } - - } - - private ICollectionView _colorspacesViewSource; - /// - /// Gets or sets the ColorSpaces View Source. - /// - public ICollectionView ColorSpacesViewSource - { - get - { - return _colorspacesViewSource; - } - - set - { - _colorspacesViewSource = value; RaisePropertyChanged(nameof(ColorSpacesViewSource)); - } - - } - - private ObservableCollection _configurations; - /// - /// Gets or sets the Configurations. - /// - public ObservableCollection Configurations - { - get - { - return _configurations; - } - - set - { - _configurations = value; RaisePropertyChanged(nameof(Configurations)); - } - - } - - private ICollectionView _configurationsViewSource; - /// - /// Gets or sets the Configurations View Source. - /// - public ICollectionView ConfigurationsViewSource - { - get - { - return _configurationsViewSource; - } - - set - { - _configurationsViewSource = value; RaisePropertyChanged(nameof(ConfigurationsViewSource)); - } - - } - - private ObservableCollection _contacts; - /// - /// Gets or sets the Contacts. - /// - public ObservableCollection Contacts - { - get - { - return _contacts; - } - - set - { - _contacts = value; RaisePropertyChanged(nameof(Contacts)); - } - - } - - private ICollectionView _contactsViewSource; - /// - /// Gets or sets the Contacts View Source. - /// - public ICollectionView ContactsViewSource - { - get - { - return _contactsViewSource; - } - - set - { - _contactsViewSource = value; RaisePropertyChanged(nameof(ContactsViewSource)); - } - - } - - private ObservableCollection _dispensertypes; - /// - /// Gets or sets the DispenserTypes. - /// - public ObservableCollection DispenserTypes - { - get - { - return _dispensertypes; - } - - set - { - _dispensertypes = value; RaisePropertyChanged(nameof(DispenserTypes)); - } - - } - - private ICollectionView _dispensertypesViewSource; - /// - /// Gets or sets the DispenserTypes View Source. - /// - public ICollectionView DispenserTypesViewSource - { - get - { - return _dispensertypesViewSource; - } - - set - { - _dispensertypesViewSource = value; RaisePropertyChanged(nameof(DispenserTypesViewSource)); - } - - } - - private ObservableCollection _embeddedfirmwareversions; - /// - /// Gets or sets the EmbeddedFirmwareVersions. - /// - public ObservableCollection EmbeddedFirmwareVersions - { - get - { - return _embeddedfirmwareversions; - } - - set - { - _embeddedfirmwareversions = value; RaisePropertyChanged(nameof(EmbeddedFirmwareVersions)); - } - - } - - private ICollectionView _embeddedfirmwareversionsViewSource; - /// - /// Gets or sets the EmbeddedFirmwareVersions View Source. - /// - public ICollectionView EmbeddedFirmwareVersionsViewSource - { - get - { - return _embeddedfirmwareversionsViewSource; - } - - set - { - _embeddedfirmwareversionsViewSource = value; RaisePropertyChanged(nameof(EmbeddedFirmwareVersionsViewSource)); - } - - } - - private ObservableCollection _embeddedsoftwareversions; - /// - /// Gets or sets the EmbeddedSoftwareVersions. - /// - public ObservableCollection EmbeddedSoftwareVersions - { - get - { - return _embeddedsoftwareversions; - } - - set - { - _embeddedsoftwareversions = value; RaisePropertyChanged(nameof(EmbeddedSoftwareVersions)); - } - - } - - private ICollectionView _embeddedsoftwareversionsViewSource; - /// - /// Gets or sets the EmbeddedSoftwareVersions View Source. - /// - public ICollectionView EmbeddedSoftwareVersionsViewSource - { - get - { - return _embeddedsoftwareversionsViewSource; - } - - set - { - _embeddedsoftwareversionsViewSource = value; RaisePropertyChanged(nameof(EmbeddedSoftwareVersionsViewSource)); - } - - } - - private ObservableCollection _eventtypes; - /// - /// Gets or sets the EventTypes. - /// - public ObservableCollection EventTypes - { - get - { - return _eventtypes; - } - - set - { - _eventtypes = value; RaisePropertyChanged(nameof(EventTypes)); - } - - } - - private ICollectionView _eventtypesViewSource; - /// - /// Gets or sets the EventTypes View Source. - /// - public ICollectionView EventTypesViewSource - { - get - { - return _eventtypesViewSource; - } - - set - { - _eventtypesViewSource = value; RaisePropertyChanged(nameof(EventTypesViewSource)); - } - - } - - private ObservableCollection _eventtypesactions; - /// - /// Gets or sets the EventTypesActions. - /// - public ObservableCollection EventTypesActions - { - get - { - return _eventtypesactions; - } - - set - { - _eventtypesactions = value; RaisePropertyChanged(nameof(EventTypesActions)); - } - - } - - private ICollectionView _eventtypesactionsViewSource; - /// - /// Gets or sets the EventTypesActions View Source. - /// - public ICollectionView EventTypesActionsViewSource - { - get - { - return _eventtypesactionsViewSource; - } - - set - { - _eventtypesactionsViewSource = value; RaisePropertyChanged(nameof(EventTypesActionsViewSource)); - } - - } - - private ObservableCollection _fibershapes; - /// - /// Gets or sets the FiberShapes. - /// - public ObservableCollection FiberShapes - { - get - { - return _fibershapes; - } - - set - { - _fibershapes = value; RaisePropertyChanged(nameof(FiberShapes)); - } - - } - - private ICollectionView _fibershapesViewSource; - /// - /// Gets or sets the FiberShapes View Source. - /// - public ICollectionView FiberShapesViewSource - { - get - { - return _fibershapesViewSource; - } - - set - { - _fibershapesViewSource = value; RaisePropertyChanged(nameof(FiberShapesViewSource)); - } - - } - - private ObservableCollection _fibersynths; - /// - /// Gets or sets the FiberSynths. - /// - public ObservableCollection FiberSynths - { - get - { - return _fibersynths; - } - - set - { - _fibersynths = value; RaisePropertyChanged(nameof(FiberSynths)); - } - - } - - private ICollectionView _fibersynthsViewSource; - /// - /// Gets or sets the FiberSynths View Source. - /// - public ICollectionView FiberSynthsViewSource - { - get - { - return _fibersynthsViewSource; - } - - set - { - _fibersynthsViewSource = value; RaisePropertyChanged(nameof(FiberSynthsViewSource)); - } - - } - - private ObservableCollection _hardwareversions; - /// - /// Gets or sets the HardwareVersions. - /// - public ObservableCollection HardwareVersions - { - get - { - return _hardwareversions; - } - - set - { - _hardwareversions = value; RaisePropertyChanged(nameof(HardwareVersions)); - } - - } - - private ICollectionView _hardwareversionsViewSource; - /// - /// Gets or sets the HardwareVersions View Source. - /// - public ICollectionView HardwareVersionsViewSource - { - get - { - return _hardwareversionsViewSource; - } - - set - { - _hardwareversionsViewSource = value; RaisePropertyChanged(nameof(HardwareVersionsViewSource)); - } - - } - - private ObservableCollection _idspackformulas; - /// - /// Gets or sets the IdsPackFormulas. - /// - public ObservableCollection IdsPackFormulas - { - get - { - return _idspackformulas; - } - - set - { - _idspackformulas = value; RaisePropertyChanged(nameof(IdsPackFormulas)); - } - - } - - private ICollectionView _idspackformulasViewSource; - /// - /// Gets or sets the IdsPackFormulas View Source. - /// - public ICollectionView IdsPackFormulasViewSource - { - get - { - return _idspackformulasViewSource; - } - - set - { - _idspackformulasViewSource = value; RaisePropertyChanged(nameof(IdsPackFormulasViewSource)); - } - - } - - private ObservableCollection _idspacks; - /// - /// Gets or sets the IdsPacks. - /// - public ObservableCollection IdsPacks - { - get - { - return _idspacks; - } - - set - { - _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); - } - - } - - private ICollectionView _idspacksViewSource; - /// - /// Gets or sets the IdsPacks View Source. - /// - public ICollectionView IdsPacksViewSource - { - get - { - return _idspacksViewSource; - } - - set - { - _idspacksViewSource = value; RaisePropertyChanged(nameof(IdsPacksViewSource)); - } - - } - - private ObservableCollection _jobruns; - /// - /// Gets or sets the JobRuns. - /// - public ObservableCollection JobRuns - { - get - { - return _jobruns; - } - - set - { - _jobruns = value; RaisePropertyChanged(nameof(JobRuns)); - } - - } - - private ICollectionView _jobrunsViewSource; - /// - /// Gets or sets the JobRuns View Source. - /// - public ICollectionView JobRunsViewSource - { - get - { - return _jobrunsViewSource; - } - - set - { - _jobrunsViewSource = value; RaisePropertyChanged(nameof(JobRunsViewSource)); - } - - } - - private ObservableCollection _jobs; - /// - /// Gets or sets the Jobs. - /// - public ObservableCollection Jobs - { - get - { - return _jobs; - } - - set - { - _jobs = value; RaisePropertyChanged(nameof(Jobs)); - } - - } - - private ICollectionView _jobsViewSource; - /// - /// Gets or sets the Jobs View Source. - /// - public ICollectionView JobsViewSource - { - get - { - return _jobsViewSource; - } - - set - { - _jobsViewSource = value; RaisePropertyChanged(nameof(JobsViewSource)); - } - - } - - private ObservableCollection _linearmassdensityunits; - /// - /// Gets or sets the LinearMassDensityUnits. - /// - public ObservableCollection LinearMassDensityUnits - { - get - { - return _linearmassdensityunits; - } - - set - { - _linearmassdensityunits = value; RaisePropertyChanged(nameof(LinearMassDensityUnits)); - } - - } - - private ICollectionView _linearmassdensityunitsViewSource; - /// - /// Gets or sets the LinearMassDensityUnits View Source. - /// - public ICollectionView LinearMassDensityUnitsViewSource - { - get - { - return _linearmassdensityunitsViewSource; - } - - set - { - _linearmassdensityunitsViewSource = value; RaisePropertyChanged(nameof(LinearMassDensityUnitsViewSource)); - } - - } - - private ObservableCollection _liquidtypes; - /// - /// Gets or sets the LiquidTypes. - /// - public ObservableCollection LiquidTypes - { - get - { - return _liquidtypes; - } - - set - { - _liquidtypes = value; RaisePropertyChanged(nameof(LiquidTypes)); - } - - } - - private ICollectionView _liquidtypesViewSource; - /// - /// Gets or sets the LiquidTypes View Source. - /// - public ICollectionView LiquidTypesViewSource - { - get - { - return _liquidtypesViewSource; - } - - set - { - _liquidtypesViewSource = value; RaisePropertyChanged(nameof(LiquidTypesViewSource)); - } - - } - - private ObservableCollection _liquidtypesrmls; - /// - /// Gets or sets the LiquidTypesRmls. - /// - public ObservableCollection LiquidTypesRmls - { - get - { - return _liquidtypesrmls; - } - - set - { - _liquidtypesrmls = value; RaisePropertyChanged(nameof(LiquidTypesRmls)); - } - - } - - private ICollectionView _liquidtypesrmlsViewSource; - /// - /// Gets or sets the LiquidTypesRmls View Source. - /// - public ICollectionView LiquidTypesRmlsViewSource - { - get - { - return _liquidtypesrmlsViewSource; - } - - set - { - _liquidtypesrmlsViewSource = value; RaisePropertyChanged(nameof(LiquidTypesRmlsViewSource)); - } - - } - - private ObservableCollection _machineversions; - /// - /// Gets or sets the MachineVersions. - /// - public ObservableCollection MachineVersions - { - get - { - return _machineversions; - } - - set - { - _machineversions = value; RaisePropertyChanged(nameof(MachineVersions)); - } - - } - - private ICollectionView _machineversionsViewSource; - /// - /// Gets or sets the MachineVersions View Source. - /// - public ICollectionView MachineVersionsViewSource - { - get - { - return _machineversionsViewSource; - } - - set - { - _machineversionsViewSource = value; RaisePropertyChanged(nameof(MachineVersionsViewSource)); - } - - } - - private ObservableCollection _machines; - /// - /// Gets or sets the Machines. - /// - public ObservableCollection Machines - { - get - { - return _machines; - } - - set - { - _machines = value; RaisePropertyChanged(nameof(Machines)); - } - - } - - private ICollectionView _machinesViewSource; - /// - /// Gets or sets the Machines View Source. - /// - public ICollectionView MachinesViewSource - { - get - { - return _machinesViewSource; - } - - set - { - _machinesViewSource = value; RaisePropertyChanged(nameof(MachinesViewSource)); - } - - } - - private ObservableCollection _machinesconfigurations; - /// - /// Gets or sets the MachinesConfigurations. - /// - public ObservableCollection MachinesConfigurations - { - get - { - return _machinesconfigurations; - } - - set - { - _machinesconfigurations = value; RaisePropertyChanged(nameof(MachinesConfigurations)); - } - - } - - private ICollectionView _machinesconfigurationsViewSource; - /// - /// Gets or sets the MachinesConfigurations View Source. - /// - public ICollectionView MachinesConfigurationsViewSource - { - get - { - return _machinesconfigurationsViewSource; - } - - set - { - _machinesconfigurationsViewSource = value; RaisePropertyChanged(nameof(MachinesConfigurationsViewSource)); - } - - } - - private ObservableCollection _machinesevents; - /// - /// Gets or sets the MachinesEvents. - /// - public ObservableCollection MachinesEvents - { - get - { - return _machinesevents; - } - - set - { - _machinesevents = value; RaisePropertyChanged(nameof(MachinesEvents)); - } - - } - - private ICollectionView _machineseventsViewSource; - /// - /// Gets or sets the MachinesEvents View Source. - /// - public ICollectionView MachinesEventsViewSource - { - get - { - return _machineseventsViewSource; - } - - set - { - _machineseventsViewSource = value; RaisePropertyChanged(nameof(MachinesEventsViewSource)); - } - - } - - private ObservableCollection _mediacolors; - /// - /// Gets or sets the MediaColors. - /// - public ObservableCollection MediaColors - { - get - { - return _mediacolors; - } - - set - { - _mediacolors = value; RaisePropertyChanged(nameof(MediaColors)); - } - - } - - private ICollectionView _mediacolorsViewSource; - /// - /// Gets or sets the MediaColors View Source. - /// - public ICollectionView MediaColorsViewSource - { - get - { - return _mediacolorsViewSource; - } - - set - { - _mediacolorsViewSource = value; RaisePropertyChanged(nameof(MediaColorsViewSource)); - } - - } - - private ObservableCollection _mediaconditions; - /// - /// Gets or sets the MediaConditions. - /// - public ObservableCollection MediaConditions - { - get - { - return _mediaconditions; - } - - set - { - _mediaconditions = value; RaisePropertyChanged(nameof(MediaConditions)); - } - - } - - private ICollectionView _mediaconditionsViewSource; - /// - /// Gets or sets the MediaConditions View Source. - /// - public ICollectionView MediaConditionsViewSource - { - get - { - return _mediaconditionsViewSource; - } - - set - { - _mediaconditionsViewSource = value; RaisePropertyChanged(nameof(MediaConditionsViewSource)); - } - - } - - private ObservableCollection _mediamaterials; - /// - /// Gets or sets the MediaMaterials. - /// - public ObservableCollection MediaMaterials - { - get - { - return _mediamaterials; - } - - set - { - _mediamaterials = value; RaisePropertyChanged(nameof(MediaMaterials)); - } - - } - - private ICollectionView _mediamaterialsViewSource; - /// - /// Gets or sets the MediaMaterials View Source. - /// - public ICollectionView MediaMaterialsViewSource - { - get - { - return _mediamaterialsViewSource; - } - - set - { - _mediamaterialsViewSource = value; RaisePropertyChanged(nameof(MediaMaterialsViewSource)); - } - - } - - private ObservableCollection _mediapurposes; - /// - /// Gets or sets the MediaPurposes. - /// - public ObservableCollection MediaPurposes - { - get - { - return _mediapurposes; - } - - set - { - _mediapurposes = value; RaisePropertyChanged(nameof(MediaPurposes)); - } - - } - - private ICollectionView _mediapurposesViewSource; - /// - /// Gets or sets the MediaPurposes View Source. - /// - public ICollectionView MediaPurposesViewSource - { - get - { - return _mediapurposesViewSource; - } - - set - { - _mediapurposesViewSource = value; RaisePropertyChanged(nameof(MediaPurposesViewSource)); - } - - } - - private ObservableCollection _midtanktypes; - /// - /// Gets or sets the MidTankTypes. - /// - public ObservableCollection MidTankTypes - { - get - { - return _midtanktypes; - } - - set - { - _midtanktypes = value; RaisePropertyChanged(nameof(MidTankTypes)); - } - - } - - private ICollectionView _midtanktypesViewSource; - /// - /// Gets or sets the MidTankTypes View Source. - /// - public ICollectionView MidTankTypesViewSource - { - get - { - return _midtanktypesViewSource; - } - - set - { - _midtanktypesViewSource = value; RaisePropertyChanged(nameof(MidTankTypesViewSource)); - } - - } - - private ObservableCollection _organizations; - /// - /// Gets or sets the Organizations. - /// - public ObservableCollection Organizations - { - get - { - return _organizations; - } - - set - { - _organizations = value; RaisePropertyChanged(nameof(Organizations)); - } - - } - - private ICollectionView _organizationsViewSource; - /// - /// Gets or sets the Organizations View Source. - /// - public ICollectionView OrganizationsViewSource - { - get - { - return _organizationsViewSource; - } - - set - { - _organizationsViewSource = value; RaisePropertyChanged(nameof(OrganizationsViewSource)); - } - - } - - private ObservableCollection _permissions; - /// - /// Gets or sets the Permissions. - /// - public ObservableCollection Permissions - { - get - { - return _permissions; - } - - set - { - _permissions = value; RaisePropertyChanged(nameof(Permissions)); - } - - } - - private ICollectionView _permissionsViewSource; - /// - /// Gets or sets the Permissions View Source. - /// - public ICollectionView PermissionsViewSource - { - get - { - return _permissionsViewSource; - } - - set - { - _permissionsViewSource = value; RaisePropertyChanged(nameof(PermissionsViewSource)); - } - - } - - private ObservableCollection _processparameterstables; - /// - /// Gets or sets the ProcessParametersTables. - /// - public ObservableCollection ProcessParametersTables - { - get - { - return _processparameterstables; - } - - set - { - _processparameterstables = value; RaisePropertyChanged(nameof(ProcessParametersTables)); - } - - } - - private ICollectionView _processparameterstablesViewSource; - /// - /// Gets or sets the ProcessParametersTables View Source. - /// - public ICollectionView ProcessParametersTablesViewSource - { - get - { - return _processparameterstablesViewSource; - } - - set - { - _processparameterstablesViewSource = value; RaisePropertyChanged(nameof(ProcessParametersTablesViewSource)); - } - - } - - private ObservableCollection _processparameterstablesgroups; - /// - /// Gets or sets the ProcessParametersTablesGroups. - /// - public ObservableCollection ProcessParametersTablesGroups - { - get - { - return _processparameterstablesgroups; - } - - set - { - _processparameterstablesgroups = value; RaisePropertyChanged(nameof(ProcessParametersTablesGroups)); - } - - } - - private ICollectionView _processparameterstablesgroupsViewSource; - /// - /// Gets or sets the ProcessParametersTablesGroups View Source. - /// - public ICollectionView ProcessParametersTablesGroupsViewSource - { - get - { - return _processparameterstablesgroupsViewSource; - } - - set - { - _processparameterstablesgroupsViewSource = value; RaisePropertyChanged(nameof(ProcessParametersTablesGroupsViewSource)); - } - - } - - private ObservableCollection _rmls; - /// - /// Gets or sets the Rmls. - /// - public ObservableCollection Rmls - { - get - { - return _rmls; - } - - set - { - _rmls = value; RaisePropertyChanged(nameof(Rmls)); - } - - } - - private ICollectionView _rmlsViewSource; - /// - /// Gets or sets the Rmls View Source. - /// - public ICollectionView RmlsViewSource - { - get - { - return _rmlsViewSource; - } - - set - { - _rmlsViewSource = value; RaisePropertyChanged(nameof(RmlsViewSource)); - } - - } - - private ObservableCollection _roles; - /// - /// Gets or sets the Roles. - /// - public ObservableCollection Roles - { - get - { - return _roles; - } - - set - { - _roles = value; RaisePropertyChanged(nameof(Roles)); - } - - } - - private ICollectionView _rolesViewSource; - /// - /// Gets or sets the Roles View Source. - /// - public ICollectionView RolesViewSource - { - get - { - return _rolesViewSource; - } - - set - { - _rolesViewSource = value; RaisePropertyChanged(nameof(RolesViewSource)); - } - - } - - private ObservableCollection _rolespermissions; - /// - /// Gets or sets the RolesPermissions. - /// - public ObservableCollection RolesPermissions - { - get - { - return _rolespermissions; - } - - set - { - _rolespermissions = value; RaisePropertyChanged(nameof(RolesPermissions)); - } - - } - - private ICollectionView _rolespermissionsViewSource; - /// - /// Gets or sets the RolesPermissions View Source. - /// - public ICollectionView RolesPermissionsViewSource - { - get - { - return _rolespermissionsViewSource; - } - - set - { - _rolespermissionsViewSource = value; RaisePropertyChanged(nameof(RolesPermissionsViewSource)); - } - - } - - private ObservableCollection _segments; - /// - /// Gets or sets the Segments. - /// - public ObservableCollection Segments - { - get - { - return _segments; - } - - set - { - _segments = value; RaisePropertyChanged(nameof(Segments)); - } - - } - - private ICollectionView _segmentsViewSource; - /// - /// Gets or sets the Segments View Source. - /// - public ICollectionView SegmentsViewSource - { - get - { - return _segmentsViewSource; - } - - set - { - _segmentsViewSource = value; RaisePropertyChanged(nameof(SegmentsViewSource)); - } - - } - - private ObservableCollection _sensors; - /// - /// Gets or sets the Sensors. - /// - public ObservableCollection Sensors - { - get - { - return _sensors; - } - - set - { - _sensors = value; RaisePropertyChanged(nameof(Sensors)); - } - - } - - private ICollectionView _sensorsViewSource; - /// - /// Gets or sets the Sensors View Source. - /// - public ICollectionView SensorsViewSource - { - get - { - return _sensorsViewSource; - } - - set - { - _sensorsViewSource = value; RaisePropertyChanged(nameof(SensorsViewSource)); - } - - } - - private ObservableCollection _syncconfigurations; - /// - /// Gets or sets the SyncConfigurations. - /// - public ObservableCollection SyncConfigurations - { - get - { - return _syncconfigurations; - } - - set - { - _syncconfigurations = value; RaisePropertyChanged(nameof(SyncConfigurations)); - } - - } - - private ICollectionView _syncconfigurationsViewSource; - /// - /// Gets or sets the SyncConfigurations View Source. - /// - public ICollectionView SyncConfigurationsViewSource - { - get - { - return _syncconfigurationsViewSource; - } - - set - { - _syncconfigurationsViewSource = value; RaisePropertyChanged(nameof(SyncConfigurationsViewSource)); - } - - } - - private ObservableCollection _users; - /// - /// Gets or sets the Users. - /// - public ObservableCollection Users - { - get - { - return _users; - } - - set - { - _users = value; RaisePropertyChanged(nameof(Users)); - } - - } - - private ICollectionView _usersViewSource; - /// - /// Gets or sets the Users View Source. - /// - public ICollectionView UsersViewSource - { - get - { - return _usersViewSource; - } - - set - { - _usersViewSource = value; RaisePropertyChanged(nameof(UsersViewSource)); - } - - } - - private ObservableCollection _usersroles; - /// - /// Gets or sets the UsersRoles. - /// - public ObservableCollection UsersRoles - { - get - { - return _usersroles; - } - - set - { - _usersroles = value; RaisePropertyChanged(nameof(UsersRoles)); - } - - } - - private ICollectionView _usersrolesViewSource; - /// - /// Gets or sets the UsersRoles View Source. - /// - public ICollectionView UsersRolesViewSource - { - get - { - return _usersrolesViewSource; - } - - set - { - _usersrolesViewSource = value; RaisePropertyChanged(nameof(UsersRolesViewSource)); - } - - } - - private ObservableCollection _windingmethods; - /// - /// Gets or sets the WindingMethods. - /// - public ObservableCollection WindingMethods - { - get - { - return _windingmethods; - } - - set - { - _windingmethods = value; RaisePropertyChanged(nameof(WindingMethods)); - } - - } - - private ICollectionView _windingmethodsViewSource; - /// - /// Gets or sets the WindingMethods View Source. - /// - public ICollectionView WindingMethodsViewSource - { - get - { - return _windingmethodsViewSource; - } - - set - { - _windingmethodsViewSource = value; RaisePropertyChanged(nameof(WindingMethodsViewSource)); - } - - } - - /// - /// Initialize collection sources. - /// - private void InitCollectionSources() - { - - ActionTypesViewSource = CreateCollectionView(ActionTypes); - - AddressesViewSource = CreateCollectionView(Addresses); - - ApplicationDisplayPanelVersionsViewSource = CreateCollectionView(ApplicationDisplayPanelVersions); - - ApplicationFirmwareVersionsViewSource = CreateCollectionView(ApplicationFirmwareVersions); - - ApplicationOsVersionsViewSource = CreateCollectionView(ApplicationOsVersions); - - ApplicationVersionsViewSource = CreateCollectionView(ApplicationVersions); - - BrushStopsViewSource = CreateCollectionView(BrushStops); - - CartridgeTypesViewSource = CreateCollectionView(CartridgeTypes); - - CatsViewSource = CreateCollectionView(Cats); - - CctsViewSource = CreateCollectionView(Ccts); - - ColorSpacesViewSource = CreateCollectionView(ColorSpaces); - - ConfigurationsViewSource = CreateCollectionView(Configurations); - - ContactsViewSource = CreateCollectionView(Contacts); - - DispenserTypesViewSource = CreateCollectionView(DispenserTypes); - - EmbeddedFirmwareVersionsViewSource = CreateCollectionView(EmbeddedFirmwareVersions); - - EmbeddedSoftwareVersionsViewSource = CreateCollectionView(EmbeddedSoftwareVersions); - - EventTypesViewSource = CreateCollectionView(EventTypes); - - EventTypesActionsViewSource = CreateCollectionView(EventTypesActions); - - FiberShapesViewSource = CreateCollectionView(FiberShapes); - - FiberSynthsViewSource = CreateCollectionView(FiberSynths); - - HardwareVersionsViewSource = CreateCollectionView(HardwareVersions); - - IdsPackFormulasViewSource = CreateCollectionView(IdsPackFormulas); - - IdsPacksViewSource = CreateCollectionView(IdsPacks); - - JobRunsViewSource = CreateCollectionView(JobRuns); - - JobsViewSource = CreateCollectionView(Jobs); - - LinearMassDensityUnitsViewSource = CreateCollectionView(LinearMassDensityUnits); - - LiquidTypesViewSource = CreateCollectionView(LiquidTypes); - - LiquidTypesRmlsViewSource = CreateCollectionView(LiquidTypesRmls); - - MachineVersionsViewSource = CreateCollectionView(MachineVersions); - - MachinesViewSource = CreateCollectionView(Machines); - - MachinesConfigurationsViewSource = CreateCollectionView(MachinesConfigurations); - - MachinesEventsViewSource = CreateCollectionView(MachinesEvents); - - MediaColorsViewSource = CreateCollectionView(MediaColors); - - MediaConditionsViewSource = CreateCollectionView(MediaConditions); - - MediaMaterialsViewSource = CreateCollectionView(MediaMaterials); - - MediaPurposesViewSource = CreateCollectionView(MediaPurposes); - - MidTankTypesViewSource = CreateCollectionView(MidTankTypes); - - OrganizationsViewSource = CreateCollectionView(Organizations); - - PermissionsViewSource = CreateCollectionView(Permissions); - - ProcessParametersTablesViewSource = CreateCollectionView(ProcessParametersTables); - - ProcessParametersTablesGroupsViewSource = CreateCollectionView(ProcessParametersTablesGroups); - - RmlsViewSource = CreateCollectionView(Rmls); - - RolesViewSource = CreateCollectionView(Roles); - - RolesPermissionsViewSource = CreateCollectionView(RolesPermissions); - - SegmentsViewSource = CreateCollectionView(Segments); - - SensorsViewSource = CreateCollectionView(Sensors); - - SyncConfigurationsViewSource = CreateCollectionView(SyncConfigurations); - - UsersViewSource = CreateCollectionView(Users); - - UsersRolesViewSource = CreateCollectionView(UsersRoles); - - WindingMethodsViewSource = CreateCollectionView(WindingMethods); - - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Partials/BrushStop.cs b/Software/Visual_Studio/Tango.DAL.Observables/Partials/BrushStop.cs deleted file mode 100644 index 7fd8e8c51..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Partials/BrushStop.cs +++ /dev/null @@ -1,156 +0,0 @@ -using ColorMine.ColorSpaces; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Media; -using Tango.Core; - -namespace Tango.DAL.Observables -{ - public partial class BrushStop - { - private ObservableCollection _inkVolumes; - [NotMapped] - public ObservableCollection InkVolumes - { - get { return _inkVolumes; } - set { _inkVolumes = value; RaisePropertyChangedAuto(); } - } - - private Color _color; - [NotMapped] - public Color Color - { - get { return _color; } - set - { - _color = value; - _red = _color.R; - _green = _color.G; - _blue = _color.B; - RaisePropertyChanged(nameof(Color)); - } - } - - public void SetInkVolumes(Configuration configuration) - { - InkVolumes = new ObservableCollection(); - - foreach (var idsPack in configuration.IdsPacks) - { - InkVolumes.Add(new InkVolume(configuration, idsPack, this)); - } - } - - [NotMapped] - public class InkVolume : ExtendedObject - { - private BrushStop _brushStop; - public BrushStop BrushStop - { - get { return _brushStop; } - set { _brushStop = value; RaisePropertyChangedAuto(); } - } - - private Configuration _configuration; - - public Configuration Configuration - { - get { return _configuration; } - set { _configuration = value; RaisePropertyChangedAuto(); } - } - - private IdsPack _idsPack; - public IdsPack IdsPack - { - get { return _idsPack; } - set { _idsPack = value; RaisePropertyChangedAuto(); } - } - - private double _volume; - public double Volume - { - get { return _volume; } - set { _volume = value; RaisePropertyChangedAuto(); OnVolumeChanged(); } - } - - public void Invalidate() - { - typeof(BrushStop).GetProperty("V" + Configuration.IdsPacks.IndexOf(IdsPack)).SetValue(BrushStop, Volume); - } - - public InkVolume(Configuration configuration, IdsPack idsPack, BrushStop brushStop) - { - BrushStop = brushStop; - IdsPack = idsPack; - Configuration = configuration; - - Volume = (double)typeof(BrushStop).GetProperty("V" + Configuration.IdsPacks.IndexOf(IdsPack)).GetValue(BrushStop); - } - - private void OnVolumeChanged() - { - Invalidate(); - } - } - - private bool _ignorePropChanged; - - protected override void RaisePropertyChanged(string propName) - { - base.RaisePropertyChanged(propName); - - if (!_ignorePropChanged && propName != nameof(ColorSpace) && ColorSpace != null) - { - Rgb rgb = new Rgb(Red, Green, Blue); - Cmyk cmyk = new Cmyk(Cyan, Magenta, Yellow, Black); - Lab lab = new Lab(L, A, B); - - switch ((ColorSpaces)ColorSpace.Code) - { - case ColorSpaces.RGB: - cmyk = rgb.To(); - lab = rgb.To(); - break; - case ColorSpaces.CMYK: - rgb = cmyk.To(); - lab = cmyk.To(); - break; - case ColorSpaces.LAB: - rgb = lab.To(); - cmyk = lab.To(); - break; - } - - _red = (int)rgb.R; - _green = (int)rgb.G; - _blue = (int)rgb.B; - - _cyan = cmyk.C * 100d; - _magenta = cmyk.M * 100d; - _yellow = cmyk.Y * 100d; - _black = cmyk.K * 100d; - - _l = lab.L; - _a = lab.A; - _b = lab.B; - - _color = Color.FromRgb((byte)_red, (byte)_green, (byte)_blue); - - _ignorePropChanged = true; - - foreach (var prop in typeof(BrushStop).GetProperties(BindingFlags.Instance | BindingFlags.Public)) - { - RaisePropertyChanged(prop.Name); - } - - _ignorePropChanged = false; - } - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Partials/Configuration.cs b/Software/Visual_Studio/Tango.DAL.Observables/Partials/Configuration.cs deleted file mode 100644 index c5cfb693f..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Partials/Configuration.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Tango.DAL.Observables -{ - public partial class Configuration - { - public override void DefferedDelete() - { - IdsPacks.ToList().ForEach(x => x.DefferedDelete()); - var machine_configurations = ObservablesEntitiesAdapter.Instance.MachinesConfigurations.Where(x => x.Configuration == this); - MachinesConfigurations.ToList().ForEach(x => x.DefferedDelete()); - base.DefferedDelete(); - IdsPacks.Clear(); - } - - public override void Delete() - { - IdsPacks.ToList().ForEach(x => x.DefferedDelete()); - var machine_configurations = ObservablesEntitiesAdapter.Instance.MachinesConfigurations.Where(x => x.Configuration == this); - MachinesConfigurations.ToList().ForEach(x => x.DefferedDelete()); - base.Delete(); - IdsPacks.Clear(); - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Partials/Machine.cs b/Software/Visual_Studio/Tango.DAL.Observables/Partials/Machine.cs deleted file mode 100644 index c9782c91b..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Partials/Machine.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Tango.DAL.Observables -{ - public partial class Machine - { - /// - /// Deletes this entity from the database - /// - public override void Delete() - { - foreach (var machine_config in MachinesConfigurations) - { - machine_config.Delete(); - machine_config.Configuration.Delete(); - } - - base.Delete(); - - ObservablesEntitiesAdapter.Instance.SaveChanges(); - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Partials/MachineVersion.cs b/Software/Visual_Studio/Tango.DAL.Observables/Partials/MachineVersion.cs deleted file mode 100644 index e027468dd..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Partials/MachineVersion.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Tango.DAL.Observables -{ - public partial class MachineVersion - { - public override void Delete() - { - this.DefaultConfiguration.Delete(); - base.Delete(); - - ObservablesEntitiesAdapter.Instance.SaveChanges(); - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Partials/Segment.cs b/Software/Visual_Studio/Tango.DAL.Observables/Partials/Segment.cs deleted file mode 100644 index f01afb398..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Partials/Segment.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Tango.DAL.Observables -{ - public partial class Segment - { - public override void Save() - { - for (int i = 0; i < BrushStops.Count; i++) - { - BrushStops[i].StopIndex = i; - } - - base.Save(); - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Partials/User.cs b/Software/Visual_Studio/Tango.DAL.Observables/Partials/User.cs deleted file mode 100644 index c7cb30118..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Partials/User.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Tango.DAL.Observables -{ - public partial class User - { - /// - /// Determines whether the user has the specified permission. - /// - /// The permission. - /// - /// true if the user has permission; otherwise, false. - /// - public bool HasPermission(Permissions permission) - { - return UsersRoles.Select(x => x.Role).ToList().SelectMany(x => x.RolesPermissions).ToList().Exists(x => x.Permission.Code == permission.ToInt32()); - } - - /// - /// Gets the aggregated user roles as enumerations. - /// - public List Roles - { - get { return UsersRoles.Select(x => (Roles)x.Role.Code).ToList(); } - } - - /// - /// Gets the aggregated user permissions as enumerations. - /// - public List Permissions - { - get { return UsersRoles.Select(x => x.Role).ToList().SelectMany(x => x.RolesPermissions).Select(x => (Permissions)x.Permission.Code).ToList(); } - } - } -} diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Properties/AssemblyInfo.cs b/Software/Visual_Studio/Tango.DAL.Observables/Properties/AssemblyInfo.cs deleted file mode 100644 index 322413ef9..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("Tango - Data Access Layer Observables Mapping")] -[assembly: ComVisible(false)] \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.DAL.Observables/Tango.DAL.Observables.csproj b/Software/Visual_Studio/Tango.DAL.Observables/Tango.DAL.Observables.csproj deleted file mode 100644 index e9ab08ed5..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/Tango.DAL.Observables.csproj +++ /dev/null @@ -1,185 +0,0 @@ - - - - - Debug - AnyCPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF} - Library - Properties - Tango.DAL.Observables - Tango.DAL.Observables - v4.6 - 512 - - - true - full - false - ..\Build\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\DeepCloner.0.10.2\lib\net40\DeepCloner.dll - - - ..\packages\EntityFramework.6.0.0\lib\net45\EntityFramework.dll - - - ..\packages\EntityFramework.6.0.0\lib\net45\EntityFramework.SqlServer.dll - - - ..\packages\Humanizer.Core.2.2.0\lib\netstandard1.0\Humanizer.dll - - - - - - - - - - - - - - - - - - GlobalVersionInfo.cs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {37e4ceab-b54b-451f-b535-04cf7da9c459} - ColorMine - - - {caedae94-11ed-473c-888a-268a6d38cd20} - Tango.CodeGeneration - - - {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} - Tango.Core - - - {38197109-8610-4d3f-92b9-16d48df94d7c} - Tango.DAL.Remote - - - {d8f1ad85-526a-4f50-b6dc-d437af63d8d8} - Tango.Settings - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.DAL.Observables/packages.config b/Software/Visual_Studio/Tango.DAL.Observables/packages.config deleted file mode 100644 index 0650c2517..000000000 --- a/Software/Visual_Studio/Tango.DAL.Observables/packages.config +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.Integration/Formulation/DiluterFormulaCalculator.cs b/Software/Visual_Studio/Tango.Integration/Formulation/DiluterFormulaCalculator.cs new file mode 100644 index 000000000..178b151fd --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Formulation/DiluterFormulaCalculator.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Observables; +using Tango.Integration.Printing; + +namespace Tango.Integration.Formulation +{ + [Formula(IdsPackFormulas.Diluter)] + public class DiluterFormulaCalculator : IFormulaCalculator + { + public double CalculateNanoliterPerSecond(LiquidVolume liquidVolume) + { + if (liquidVolume.Configuration != null && liquidVolume.RML != null) + { + return (liquidVolume.Volume / 100d) * (liquidVolume.LiquidMaxNanoliterPerCentimeter * liquidVolume.RML.ProcessParametersTablesGroups.SingleOrDefault(x => x.Active).ProcessParametersTables.FirstOrDefault().DyeingSpeed); + } + else + { + return 0d; + } + } + + public double CalculatePulsePerSecond(LiquidVolume liquidVolume) + { + var nlPerSecond = CalculateNanoliterPerSecond(liquidVolume); + return nlPerSecond / liquidVolume.IdsPack.DispenserType.NlPerPulse; + } + + public double CoerceVolume(LiquidVolume liquidVolume) + { + double sum = liquidVolume.BrushStop.LiquidVolumes.Where(x => (IdsPackFormulas)x.IdsPack.IdsPackFormula.Code == IdsPackFormulas.StandardColor).Sum(x => x.Volume); + return Math.Max(Math.Min(100d - sum, 100d), 0); + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Formulation/FormulaAttribute.cs b/Software/Visual_Studio/Tango.Integration/Formulation/FormulaAttribute.cs new file mode 100644 index 000000000..521c12ea3 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Formulation/FormulaAttribute.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Observables; + +namespace Tango.Integration.Formulation +{ + public class FormulaAttribute : Attribute + { + public IdsPackFormulas Formula { get; set; } + + public FormulaAttribute(IdsPackFormulas formula) + { + Formula = formula; + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Formulation/FormulaResolver.cs b/Software/Visual_Studio/Tango.Integration/Formulation/FormulaResolver.cs new file mode 100644 index 000000000..d30d077b8 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Formulation/FormulaResolver.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Observables; +using Tango.Integration.Printing; +using System.Reflection; + +namespace Tango.Integration.Formulation +{ + public static class FormulaResolver + { + private static List> _calculators { get; set; } + + static FormulaResolver() + { + _calculators = new List>(); + + foreach (var type in typeof(FormulaResolver).Assembly.GetTypes().Where(x => x.GetCustomAttribute() != null)) + { + _calculators.Add(new KeyValuePair(type.GetCustomAttribute().Formula, Activator.CreateInstance(type) as IFormulaCalculator)); + } + } + + public static IFormulaCalculator Resolve(LiquidVolume liquidVolume) + { + return _calculators.SingleOrDefault(x => x.Key == (IdsPackFormulas)liquidVolume.IdsPack.IdsPackFormula.Code).Value; + } + + public static IFormulaCalculator Resolve(IdsPackFormulas formulaCode) + { + return _calculators.SingleOrDefault(x => x.Key == formulaCode).Value; + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Formulation/FormulasCalculationService.cs b/Software/Visual_Studio/Tango.Integration/Formulation/FormulasCalculationService.cs new file mode 100644 index 000000000..823327cb2 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Formulation/FormulasCalculationService.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Printing; + +namespace Tango.Integration.Formulation +{ + public static class FormulasCalculationService + { + public static double CalculateNanoliterPerSecond(LiquidVolume liquidVolume) + { + IFormulaCalculator formula = FormulaResolver.Resolve(liquidVolume); + return formula.CalculateNanoliterPerSecond(liquidVolume); + } + + public static double CalculatePulsePerSecond(LiquidVolume liquidVolume) + { + IFormulaCalculator formula = FormulaResolver.Resolve(liquidVolume); + return formula.CalculatePulsePerSecond(liquidVolume); + } + + public static double CoerceVolume(LiquidVolume liquidVolume) + { + IFormulaCalculator formula = FormulaResolver.Resolve(liquidVolume); + return formula.CoerceVolume(liquidVolume); + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Formulation/IFormulaCalculator.cs b/Software/Visual_Studio/Tango.Integration/Formulation/IFormulaCalculator.cs new file mode 100644 index 000000000..349f1d92d --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Formulation/IFormulaCalculator.cs @@ -0,0 +1,13 @@ +using Tango.Integration.Printing; + +namespace Tango.Integration.Formulation +{ + public interface IFormulaCalculator + { + double CalculateNanoliterPerSecond(LiquidVolume liquidVolume); + + double CalculatePulsePerSecond(LiquidVolume liquidVolume); + + double CoerceVolume(LiquidVolume liquidVolume); + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Formulation/StandardColorFormulaCalculator.cs b/Software/Visual_Studio/Tango.Integration/Formulation/StandardColorFormulaCalculator.cs new file mode 100644 index 000000000..1338a0afb --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Formulation/StandardColorFormulaCalculator.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Observables; +using Tango.Integration.Printing; +using static Tango.Integration.Observables.BrushStop; + +namespace Tango.Integration.Formulation +{ + [Formula(IdsPackFormulas.StandardColor)] + public class StandardColorFormulaCalculator : IFormulaCalculator + { + public double CalculateNanoliterPerSecond(LiquidVolume liquidVolume) + { + if (liquidVolume.Configuration != null && liquidVolume.RML != null) + { + return (liquidVolume.Volume / 100d) * (liquidVolume.LiquidMaxNanoliterPerCentimeter * liquidVolume.RML.ProcessParametersTablesGroups.SingleOrDefault(x => x.Active).ProcessParametersTables.FirstOrDefault().DyeingSpeed); + } + else + { + return 0d; + } + } + + public double CalculatePulsePerSecond(LiquidVolume liquidVolume) + { + var nlPerSecond = CalculateNanoliterPerSecond(liquidVolume); + return nlPerSecond / liquidVolume.IdsPack.DispenserType.NlPerPulse; + } + + public double CoerceVolume(LiquidVolume liquidVolume) + { + return liquidVolume.Volume; + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/ActionType.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ActionType.cs new file mode 100644 index 000000000..b3f5c7e1f --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ActionType.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("ACTION_TYPES")] + public partial class ActionType : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the actiontype code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the actiontype name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _description; + /// + /// Gets or sets the actiontype description. + /// + [Column("DESCRIPTION")] + + public String Description + { + get + { + return _description; + } + + set + { + _description = value; RaisePropertyChanged(nameof(Description)); + } + + } + + protected ObservableCollection _eventtypesactions; + /// + /// Gets or sets the actiontype event types actions. + /// + + public virtual ObservableCollection EventTypesActions + { + get + { + return _eventtypesactions; + } + + set + { + _eventtypesactions = value; RaisePropertyChanged(nameof(EventTypesActions)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public ActionType() : base() + { + + EventTypesActions = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Address.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Address.cs new file mode 100644 index 000000000..f736572df --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Address.cs @@ -0,0 +1,225 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("ADDRESSES")] + public partial class Address : ObservableEntity
+ { + + protected Boolean _deleted; + /// + /// Gets or sets the address deleted. + /// + [Column("DELETED")] + + public Boolean Deleted + { + get + { + return _deleted; + } + + set + { + _deleted = value; RaisePropertyChanged(nameof(Deleted)); + } + + } + + protected String _addressstring; + /// + /// Gets or sets the address address string. + /// + [Column("ADDRESS_STRING")] + + public String AddressString + { + get + { + return _addressstring; + } + + set + { + _addressstring = value; RaisePropertyChanged(nameof(AddressString)); + } + + } + + protected String _locality; + /// + /// Gets or sets the address locality. + /// + [Column("LOCALITY")] + + public String Locality + { + get + { + return _locality; + } + + set + { + _locality = value; RaisePropertyChanged(nameof(Locality)); + } + + } + + protected String _country; + /// + /// Gets or sets the address country. + /// + [Column("COUNTRY")] + + public String Country + { + get + { + return _country; + } + + set + { + _country = value; RaisePropertyChanged(nameof(Country)); + } + + } + + protected String _city; + /// + /// Gets or sets the address city. + /// + [Column("CITY")] + + public String City + { + get + { + return _city; + } + + set + { + _city = value; RaisePropertyChanged(nameof(City)); + } + + } + + protected String _state; + /// + /// Gets or sets the address state. + /// + [Column("STATE")] + + public String State + { + get + { + return _state; + } + + set + { + _state = value; RaisePropertyChanged(nameof(State)); + } + + } + + protected String _countrycode; + /// + /// Gets or sets the address country code. + /// + [Column("COUNTRY_CODE")] + + public String CountryCode + { + get + { + return _countrycode; + } + + set + { + _countrycode = value; RaisePropertyChanged(nameof(CountryCode)); + } + + } + + protected String _postalcode; + /// + /// Gets or sets the address postal code. + /// + [Column("POSTAL_CODE")] + + public String PostalCode + { + get + { + return _postalcode; + } + + set + { + _postalcode = value; RaisePropertyChanged(nameof(PostalCode)); + } + + } + + protected ObservableCollection _organizations; + /// + /// Gets or sets the address organizations. + /// + + public virtual ObservableCollection Organizations + { + get + { + return _organizations; + } + + set + { + _organizations = value; RaisePropertyChanged(nameof(Organizations)); + } + + } + + protected ObservableCollection _users; + /// + /// Gets or sets the address users. + /// + + public virtual ObservableCollection Users + { + get + { + return _users; + } + + set + { + _users = value; RaisePropertyChanged(nameof(Users)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Address() : base() + { + + Organizations = new ObservableCollection(); + + Users = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationDisplayPanelVersion.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationDisplayPanelVersion.cs new file mode 100644 index 000000000..dd3c3ce14 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationDisplayPanelVersion.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("APPLICATION_DISPLAY_PANEL_VERSIONS")] + public partial class ApplicationDisplayPanelVersion : ObservableEntity + { + + protected Double _version; + /// + /// Gets or sets the applicationdisplaypanelversion version. + /// + [Column("VERSION")] + + public Double Version + { + get + { + return _version; + } + + set + { + _version = value; RaisePropertyChanged(nameof(Version)); + } + + } + + protected String _name; + /// + /// Gets or sets the applicationdisplaypanelversion name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected ObservableCollection _configurations; + /// + /// Gets or sets the applicationdisplaypanelversion configurations. + /// + + public virtual ObservableCollection Configurations + { + get + { + return _configurations; + } + + set + { + _configurations = value; RaisePropertyChanged(nameof(Configurations)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public ApplicationDisplayPanelVersion() : base() + { + + Configurations = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationFirmwareVersion.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationFirmwareVersion.cs new file mode 100644 index 000000000..8d5868e2a --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationFirmwareVersion.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("APPLICATION_FIRMWARE_VERSIONS")] + public partial class ApplicationFirmwareVersion : ObservableEntity + { + + protected Double _version; + /// + /// Gets or sets the applicationfirmwareversion version. + /// + [Column("VERSION")] + + public Double Version + { + get + { + return _version; + } + + set + { + _version = value; RaisePropertyChanged(nameof(Version)); + } + + } + + protected String _name; + /// + /// Gets or sets the applicationfirmwareversion name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected ObservableCollection _configurations; + /// + /// Gets or sets the applicationfirmwareversion configurations. + /// + + public virtual ObservableCollection Configurations + { + get + { + return _configurations; + } + + set + { + _configurations = value; RaisePropertyChanged(nameof(Configurations)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public ApplicationFirmwareVersion() : base() + { + + Configurations = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationOsVersion.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationOsVersion.cs new file mode 100644 index 000000000..844a4ac99 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationOsVersion.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("APPLICATION_OS_VERSIONS")] + public partial class ApplicationOsVersion : ObservableEntity + { + + protected Double _version; + /// + /// Gets or sets the applicationosversion version. + /// + [Column("VERSION")] + + public Double Version + { + get + { + return _version; + } + + set + { + _version = value; RaisePropertyChanged(nameof(Version)); + } + + } + + protected String _name; + /// + /// Gets or sets the applicationosversion name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected ObservableCollection _configurations; + /// + /// Gets or sets the applicationosversion configurations. + /// + + public virtual ObservableCollection Configurations + { + get + { + return _configurations; + } + + set + { + _configurations = value; RaisePropertyChanged(nameof(Configurations)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public ApplicationOsVersion() : base() + { + + Configurations = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationVersion.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationVersion.cs new file mode 100644 index 000000000..23e530e9b --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ApplicationVersion.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("APPLICATION_VERSIONS")] + public partial class ApplicationVersion : ObservableEntity + { + + protected Double _version; + /// + /// Gets or sets the applicationversion version. + /// + [Column("VERSION")] + + public Double Version + { + get + { + return _version; + } + + set + { + _version = value; RaisePropertyChanged(nameof(Version)); + } + + } + + protected String _name; + /// + /// Gets or sets the applicationversion name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected ObservableCollection _configurations; + /// + /// Gets or sets the applicationversion configurations. + /// + + public virtual ObservableCollection Configurations + { + get + { + return _configurations; + } + + set + { + _configurations = value; RaisePropertyChanged(nameof(Configurations)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public ApplicationVersion() : base() + { + + Configurations = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/BrushStop.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/BrushStop.cs new file mode 100644 index 000000000..c41547588 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/BrushStop.cs @@ -0,0 +1,519 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("BRUSH_STOPS")] + public partial class BrushStop : ObservableEntity + { + + protected String _segmentguid; + /// + /// Gets or sets the brushstop segment guid. + /// + [Column("SEGMENT_GUID")] + [ForeignKey("Segment")] + public String SegmentGuid + { + get + { + return _segmentguid; + } + + set + { + _segmentguid = value; RaisePropertyChanged(nameof(SegmentGuid)); + } + + } + + protected String _colorspaceguid; + /// + /// Gets or sets the brushstop color space guid. + /// + [Column("COLOR_SPACE_GUID")] + [ForeignKey("ColorSpace")] + public String ColorSpaceGuid + { + get + { + return _colorspaceguid; + } + + set + { + _colorspaceguid = value; RaisePropertyChanged(nameof(ColorSpaceGuid)); + } + + } + + protected Double _offsetpercent; + /// + /// Gets or sets the brushstop offset percent. + /// + [Column("OFFSET_PERCENT")] + + public Double OffsetPercent + { + get + { + return _offsetpercent; + } + + set + { + _offsetpercent = value; RaisePropertyChanged(nameof(OffsetPercent)); + } + + } + + protected Int32 _stopindex; + /// + /// Gets or sets the brushstop stop index. + /// + [Column("STOP_INDEX")] + + public Int32 StopIndex + { + get + { + return _stopindex; + } + + set + { + _stopindex = value; RaisePropertyChanged(nameof(StopIndex)); + } + + } + + protected Double _cyan; + /// + /// Gets or sets the brushstop cyan. + /// + [Column("CYAN")] + + public Double Cyan + { + get + { + return _cyan; + } + + set + { + _cyan = value; RaisePropertyChanged(nameof(Cyan)); + } + + } + + protected Double _magenta; + /// + /// Gets or sets the brushstop magenta. + /// + [Column("MAGENTA")] + + public Double Magenta + { + get + { + return _magenta; + } + + set + { + _magenta = value; RaisePropertyChanged(nameof(Magenta)); + } + + } + + protected Double _yellow; + /// + /// Gets or sets the brushstop yellow. + /// + [Column("YELLOW")] + + public Double Yellow + { + get + { + return _yellow; + } + + set + { + _yellow = value; RaisePropertyChanged(nameof(Yellow)); + } + + } + + protected Double _black; + /// + /// Gets or sets the brushstop black. + /// + [Column("BLACK")] + + public Double Black + { + get + { + return _black; + } + + set + { + _black = value; RaisePropertyChanged(nameof(Black)); + } + + } + + protected Int32 _red; + /// + /// Gets or sets the brushstop red. + /// + [Column("RED")] + + public Int32 Red + { + get + { + return _red; + } + + set + { + _red = value; RaisePropertyChanged(nameof(Red)); + } + + } + + protected Int32 _green; + /// + /// Gets or sets the brushstop green. + /// + [Column("GREEN")] + + public Int32 Green + { + get + { + return _green; + } + + set + { + _green = value; RaisePropertyChanged(nameof(Green)); + } + + } + + protected Int32 _blue; + /// + /// Gets or sets the brushstop blue. + /// + [Column("BLUE")] + + public Int32 Blue + { + get + { + return _blue; + } + + set + { + _blue = value; RaisePropertyChanged(nameof(Blue)); + } + + } + + protected Double _l; + /// + /// Gets or sets the brushstop l. + /// + [Column("L")] + + public Double L + { + get + { + return _l; + } + + set + { + _l = value; RaisePropertyChanged(nameof(L)); + } + + } + + protected Double _a; + /// + /// Gets or sets the brushstop a. + /// + [Column("A")] + + public Double A + { + get + { + return _a; + } + + set + { + _a = value; RaisePropertyChanged(nameof(A)); + } + + } + + protected Double _b; + /// + /// Gets or sets the brushstop b. + /// + [Column("B")] + + public Double B + { + get + { + return _b; + } + + set + { + _b = value; RaisePropertyChanged(nameof(B)); + } + + } + + protected Double _v0; + /// + /// Gets or sets the brushstop v0. + /// + [Column("V0")] + + public Double V0 + { + get + { + return _v0; + } + + set + { + _v0 = value; RaisePropertyChanged(nameof(V0)); + } + + } + + protected Double _v1; + /// + /// Gets or sets the brushstop v1. + /// + [Column("V1")] + + public Double V1 + { + get + { + return _v1; + } + + set + { + _v1 = value; RaisePropertyChanged(nameof(V1)); + } + + } + + protected Double _v2; + /// + /// Gets or sets the brushstop v2. + /// + [Column("V2")] + + public Double V2 + { + get + { + return _v2; + } + + set + { + _v2 = value; RaisePropertyChanged(nameof(V2)); + } + + } + + protected Double _v3; + /// + /// Gets or sets the brushstop v3. + /// + [Column("V3")] + + public Double V3 + { + get + { + return _v3; + } + + set + { + _v3 = value; RaisePropertyChanged(nameof(V3)); + } + + } + + protected Double _v4; + /// + /// Gets or sets the brushstop v4. + /// + [Column("V4")] + + public Double V4 + { + get + { + return _v4; + } + + set + { + _v4 = value; RaisePropertyChanged(nameof(V4)); + } + + } + + protected Double _v5; + /// + /// Gets or sets the brushstop v5. + /// + [Column("V5")] + + public Double V5 + { + get + { + return _v5; + } + + set + { + _v5 = value; RaisePropertyChanged(nameof(V5)); + } + + } + + protected Double _v6; + /// + /// Gets or sets the brushstop v6. + /// + [Column("V6")] + + public Double V6 + { + get + { + return _v6; + } + + set + { + _v6 = value; RaisePropertyChanged(nameof(V6)); + } + + } + + protected Double _v7; + /// + /// Gets or sets the brushstop v7. + /// + [Column("V7")] + + public Double V7 + { + get + { + return _v7; + } + + set + { + _v7 = value; RaisePropertyChanged(nameof(V7)); + } + + } + + protected String _pantonguid; + /// + /// Gets or sets the brushstop panton guid. + /// + [Column("PANTON_GUID")] + public String PantonGuid + { + get + { + return _pantonguid; + } + + set + { + _pantonguid = value; RaisePropertyChanged(nameof(PantonGuid)); + } + + } + + protected ColorSpace _colorspace; + /// + /// Gets or sets the brushstop color spaces. + /// + + public virtual ColorSpace ColorSpace + { + get + { + return _colorspace; + } + + set + { + _colorspace = value; RaisePropertyChanged(nameof(ColorSpace)); + } + + } + + protected Segment _segment; + /// + /// Gets or sets the brushstop segment. + /// + + public virtual Segment Segment + { + get + { + return _segment; + } + + set + { + _segment = value; RaisePropertyChanged(nameof(Segment)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public BrushStop() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/CartridgeType.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/CartridgeType.cs new file mode 100644 index 000000000..532f6416d --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/CartridgeType.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("CARTRIDGE_TYPES")] + public partial class CartridgeType : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the cartridgetype code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the cartridgetype name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected ObservableCollection _idspacks; + /// + /// Gets or sets the cartridgetype ids packs. + /// + + public virtual ObservableCollection IdsPacks + { + get + { + return _idspacks; + } + + set + { + _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public CartridgeType() : base() + { + + IdsPacks = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Cat.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Cat.cs new file mode 100644 index 000000000..80d47a247 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Cat.cs @@ -0,0 +1,140 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("CATS")] + public partial class Cat : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the cat name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _liquidtypeguid; + /// + /// Gets or sets the cat liquid type guid. + /// + [Column("LIQUID_TYPE_GUID")] + [ForeignKey("LiquidType")] + public String LiquidTypeGuid + { + get + { + return _liquidtypeguid; + } + + set + { + _liquidtypeguid = value; RaisePropertyChanged(nameof(LiquidTypeGuid)); + } + + } + + protected String _rmlguid; + /// + /// Gets or sets the cat rml guid. + /// + [Column("RML_GUID")] + [ForeignKey("Rml")] + public String RmlGuid + { + get + { + return _rmlguid; + } + + set + { + _rmlguid = value; RaisePropertyChanged(nameof(RmlGuid)); + } + + } + + protected Byte[] _data; + /// + /// Gets or sets the cat data. + /// + [Column("DATA")] + + public Byte[] Data + { + get + { + return _data; + } + + set + { + _data = value; RaisePropertyChanged(nameof(Data)); + } + + } + + protected LiquidType _liquidtype; + /// + /// Gets or sets the cat liquid types. + /// + + public virtual LiquidType LiquidType + { + get + { + return _liquidtype; + } + + set + { + _liquidtype = value; RaisePropertyChanged(nameof(LiquidType)); + } + + } + + protected Rml _rml; + /// + /// Gets or sets the cat rml. + /// + + public virtual Rml Rml + { + get + { + return _rml; + } + + set + { + _rml = value; RaisePropertyChanged(nameof(Rml)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Cat() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Cct.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Cct.cs new file mode 100644 index 000000000..069e1df1d --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Cct.cs @@ -0,0 +1,201 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("CCTS")] + public partial class Cct : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the cct name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _description; + /// + /// Gets or sets the cct description. + /// + [Column("DESCRIPTION")] + + public String Description + { + get + { + return _description; + } + + set + { + _description = value; RaisePropertyChanged(nameof(Description)); + } + + } + + protected String _forwardfilename; + /// + /// Gets or sets the cct forward file name. + /// + [Column("FORWARD_FILE_NAME")] + + public String ForwardFileName + { + get + { + return _forwardfilename; + } + + set + { + _forwardfilename = value; RaisePropertyChanged(nameof(ForwardFileName)); + } + + } + + protected String _inversefilename; + /// + /// Gets or sets the cct inverse file name. + /// + [Column("INVERSE_FILE_NAME")] + + public String InverseFileName + { + get + { + return _inversefilename; + } + + set + { + _inversefilename = value; RaisePropertyChanged(nameof(InverseFileName)); + } + + } + + protected Byte[] _forwarddata; + /// + /// Gets or sets the cct forward data. + /// + [Column("FORWARD_DATA")] + + public Byte[] ForwardData + { + get + { + return _forwarddata; + } + + set + { + _forwarddata = value; RaisePropertyChanged(nameof(ForwardData)); + } + + } + + protected Byte[] _inversedata; + /// + /// Gets or sets the cct inverse data. + /// + [Column("INVERSE_DATA")] + + public Byte[] InverseData + { + get + { + return _inversedata; + } + + set + { + _inversedata = value; RaisePropertyChanged(nameof(InverseData)); + } + + } + + protected Double _version; + /// + /// Gets or sets the cct version. + /// + [Column("VERSION")] + + public Double Version + { + get + { + return _version; + } + + set + { + _version = value; RaisePropertyChanged(nameof(Version)); + } + + } + + protected String _rmlguid; + /// + /// Gets or sets the cct rml guid. + /// + [Column("RML_GUID")] + [ForeignKey("Rml")] + public String RmlGuid + { + get + { + return _rmlguid; + } + + set + { + _rmlguid = value; RaisePropertyChanged(nameof(RmlGuid)); + } + + } + + protected Rml _rml; + /// + /// Gets or sets the cct rml. + /// + + public virtual Rml Rml + { + get + { + return _rml; + } + + set + { + _rml = value; RaisePropertyChanged(nameof(Rml)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Cct() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/ColorSpace.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ColorSpace.cs new file mode 100644 index 000000000..79f1b5afd --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ColorSpace.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("COLOR_SPACES")] + public partial class ColorSpace : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the colorspace code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the colorspace name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _description; + /// + /// Gets or sets the colorspace description. + /// + [Column("DESCRIPTION")] + + public String Description + { + get + { + return _description; + } + + set + { + _description = value; RaisePropertyChanged(nameof(Description)); + } + + } + + protected ObservableCollection _brushstops; + /// + /// Gets or sets the colorspace brush stops. + /// + + public virtual ObservableCollection BrushStops + { + get + { + return _brushstops; + } + + set + { + _brushstops = value; RaisePropertyChanged(nameof(BrushStops)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public ColorSpace() : base() + { + + BrushStops = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Configuration.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Configuration.cs new file mode 100644 index 000000000..fb993a36e --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Configuration.cs @@ -0,0 +1,420 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("CONFIGURATIONS")] + public partial class Configuration : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the configuration name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected DateTime _creationdate; + /// + /// Gets or sets the configuration creation date. + /// + [Column("CREATION_DATE")] + + public DateTime CreationDate + { + get + { + return _creationdate; + } + + set + { + _creationdate = value; RaisePropertyChanged(nameof(CreationDate)); + } + + } + + protected String _applicationversionguid; + /// + /// Gets or sets the configuration application version guid. + /// + [Column("APPLICATION_VERSION_GUID")] + [ForeignKey("ApplicationVersion")] + public String ApplicationVersionGuid + { + get + { + return _applicationversionguid; + } + + set + { + _applicationversionguid = value; RaisePropertyChanged(nameof(ApplicationVersionGuid)); + } + + } + + protected String _applicationosversionguid; + /// + /// Gets or sets the configuration application os version guid. + /// + [Column("APPLICATION_OS_VERSION_GUID")] + [ForeignKey("ApplicationOsVersion")] + public String ApplicationOsVersionGuid + { + get + { + return _applicationosversionguid; + } + + set + { + _applicationosversionguid = value; RaisePropertyChanged(nameof(ApplicationOsVersionGuid)); + } + + } + + protected String _applicationfirmwareversionguid; + /// + /// Gets or sets the configuration application firmware version guid. + /// + [Column("APPLICATION_FIRMWARE_VERSION_GUID")] + [ForeignKey("ApplicationFirmwareVersion")] + public String ApplicationFirmwareVersionGuid + { + get + { + return _applicationfirmwareversionguid; + } + + set + { + _applicationfirmwareversionguid = value; RaisePropertyChanged(nameof(ApplicationFirmwareVersionGuid)); + } + + } + + protected String _applicationdisplaypanelversionguid; + /// + /// Gets or sets the configuration application display panel version guid. + /// + [Column("APPLICATION_DISPLAY_PANEL_VERSION_GUID")] + [ForeignKey("ApplicationDisplayPanelVersion")] + public String ApplicationDisplayPanelVersionGuid + { + get + { + return _applicationdisplaypanelversionguid; + } + + set + { + _applicationdisplaypanelversionguid = value; RaisePropertyChanged(nameof(ApplicationDisplayPanelVersionGuid)); + } + + } + + protected String _embeddedfirmwareversionguid; + /// + /// Gets or sets the configuration embedded firmware version guid. + /// + [Column("EMBEDDED_FIRMWARE_VERSION_GUID")] + [ForeignKey("EmbeddedFirmwareVersion")] + public String EmbeddedFirmwareVersionGuid + { + get + { + return _embeddedfirmwareversionguid; + } + + set + { + _embeddedfirmwareversionguid = value; RaisePropertyChanged(nameof(EmbeddedFirmwareVersionGuid)); + } + + } + + protected String _embeddedsoftwareversionguid; + /// + /// Gets or sets the configuration embedded software version guid. + /// + [Column("EMBEDDED_SOFTWARE_VERSION_GUID")] + [ForeignKey("EmbeddedSoftwareVersion")] + public String EmbeddedSoftwareVersionGuid + { + get + { + return _embeddedsoftwareversionguid; + } + + set + { + _embeddedsoftwareversionguid = value; RaisePropertyChanged(nameof(EmbeddedSoftwareVersionGuid)); + } + + } + + protected String _hardwareversionguid; + /// + /// Gets or sets the configuration hardware version guid. + /// + [Column("HARDWARE_VERSION_GUID")] + [ForeignKey("HardwareVersion")] + public String HardwareVersionGuid + { + get + { + return _hardwareversionguid; + } + + set + { + _hardwareversionguid = value; RaisePropertyChanged(nameof(HardwareVersionGuid)); + } + + } + + protected ApplicationDisplayPanelVersion _applicationdisplaypanelversion; + /// + /// Gets or sets the configuration application display panel versions. + /// + + public virtual ApplicationDisplayPanelVersion ApplicationDisplayPanelVersion + { + get + { + return _applicationdisplaypanelversion; + } + + set + { + _applicationdisplaypanelversion = value; RaisePropertyChanged(nameof(ApplicationDisplayPanelVersion)); + } + + } + + protected ApplicationFirmwareVersion _applicationfirmwareversion; + /// + /// Gets or sets the configuration application firmware versions. + /// + + public virtual ApplicationFirmwareVersion ApplicationFirmwareVersion + { + get + { + return _applicationfirmwareversion; + } + + set + { + _applicationfirmwareversion = value; RaisePropertyChanged(nameof(ApplicationFirmwareVersion)); + } + + } + + protected ApplicationOsVersion _applicationosversion; + /// + /// Gets or sets the configuration application os versions. + /// + + public virtual ApplicationOsVersion ApplicationOsVersion + { + get + { + return _applicationosversion; + } + + set + { + _applicationosversion = value; RaisePropertyChanged(nameof(ApplicationOsVersion)); + } + + } + + protected ApplicationVersion _applicationversion; + /// + /// Gets or sets the configuration application versions. + /// + + public virtual ApplicationVersion ApplicationVersion + { + get + { + return _applicationversion; + } + + set + { + _applicationversion = value; RaisePropertyChanged(nameof(ApplicationVersion)); + } + + } + + protected EmbeddedFirmwareVersion _embeddedfirmwareversion; + /// + /// Gets or sets the configuration embedded firmware versions. + /// + + public virtual EmbeddedFirmwareVersion EmbeddedFirmwareVersion + { + get + { + return _embeddedfirmwareversion; + } + + set + { + _embeddedfirmwareversion = value; RaisePropertyChanged(nameof(EmbeddedFirmwareVersion)); + } + + } + + protected EmbeddedSoftwareVersion _embeddedsoftwareversion; + /// + /// Gets or sets the configuration embedded software versions. + /// + + public virtual EmbeddedSoftwareVersion EmbeddedSoftwareVersion + { + get + { + return _embeddedsoftwareversion; + } + + set + { + _embeddedsoftwareversion = value; RaisePropertyChanged(nameof(EmbeddedSoftwareVersion)); + } + + } + + protected HardwareVersion _hardwareversion; + /// + /// Gets or sets the configuration hardware versions. + /// + + public virtual HardwareVersion HardwareVersion + { + get + { + return _hardwareversion; + } + + set + { + _hardwareversion = value; RaisePropertyChanged(nameof(HardwareVersion)); + } + + } + + protected ObservableCollection _idspacks; + /// + /// Gets or sets the configuration ids packs. + /// + + public virtual ObservableCollection IdsPacks + { + get + { + return _idspacks; + } + + set + { + _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); + } + + } + + protected ObservableCollection _machineversions; + /// + /// Gets or sets the configuration machine versions. + /// + + public virtual ObservableCollection MachineVersions + { + get + { + return _machineversions; + } + + set + { + _machineversions = value; RaisePropertyChanged(nameof(MachineVersions)); + } + + } + + protected ObservableCollection _machines; + /// + /// Gets or sets the configuration machines. + /// + + public virtual ObservableCollection Machines + { + get + { + return _machines; + } + + set + { + _machines = value; RaisePropertyChanged(nameof(Machines)); + } + + } + + protected ObservableCollection _machinesconfigurations; + /// + /// Gets or sets the configuration machines configurations. + /// + + public virtual ObservableCollection MachinesConfigurations + { + get + { + return _machinesconfigurations; + } + + set + { + _machinesconfigurations = value; RaisePropertyChanged(nameof(MachinesConfigurations)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Configuration() : base() + { + + IdsPacks = new ObservableCollection(); + + MachineVersions = new ObservableCollection(); + + Machines = new ObservableCollection(); + + MachinesConfigurations = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Contact.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Contact.cs new file mode 100644 index 000000000..78c44ba7f --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Contact.cs @@ -0,0 +1,205 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("CONTACTS")] + public partial class Contact : ObservableEntity + { + + protected Boolean _deleted; + /// + /// Gets or sets the contact deleted. + /// + [Column("DELETED")] + + public Boolean Deleted + { + get + { + return _deleted; + } + + set + { + _deleted = value; RaisePropertyChanged(nameof(Deleted)); + } + + } + + protected String _firstname; + /// + /// Gets or sets the contact first name. + /// + [Column("FIRST_NAME")] + + public String FirstName + { + get + { + return _firstname; + } + + set + { + _firstname = value; RaisePropertyChanged(nameof(FirstName)); + } + + } + + protected String _lastname; + /// + /// Gets or sets the contact last name. + /// + [Column("LAST_NAME")] + + public String LastName + { + get + { + return _lastname; + } + + set + { + _lastname = value; RaisePropertyChanged(nameof(LastName)); + } + + } + + protected String _fullname; + /// + /// Gets or sets the contact full name. + /// + [Column("FULL_NAME")] + + public String FullName + { + get + { + return _fullname; + } + + set + { + _fullname = value; RaisePropertyChanged(nameof(FullName)); + } + + } + + protected String _email; + /// + /// Gets or sets the contact email. + /// + [Column("EMAIL")] + + public String Email + { + get + { + return _email; + } + + set + { + _email = value; RaisePropertyChanged(nameof(Email)); + } + + } + + protected String _phonenumber; + /// + /// Gets or sets the contact phone number. + /// + [Column("PHONE_NUMBER")] + + public String PhoneNumber + { + get + { + return _phonenumber; + } + + set + { + _phonenumber = value; RaisePropertyChanged(nameof(PhoneNumber)); + } + + } + + protected String _fax; + /// + /// Gets or sets the contact fax. + /// + [Column("FAX")] + + public String Fax + { + get + { + return _fax; + } + + set + { + _fax = value; RaisePropertyChanged(nameof(Fax)); + } + + } + + protected ObservableCollection _organizations; + /// + /// Gets or sets the contact organizations. + /// + + public virtual ObservableCollection Organizations + { + get + { + return _organizations; + } + + set + { + _organizations = value; RaisePropertyChanged(nameof(Organizations)); + } + + } + + protected ObservableCollection _users; + /// + /// Gets or sets the contact users. + /// + + public virtual ObservableCollection Users + { + get + { + return _users; + } + + set + { + _users = value; RaisePropertyChanged(nameof(Users)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Contact() : base() + { + + Organizations = new ObservableCollection(); + + Users = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/DispenserType.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/DispenserType.cs new file mode 100644 index 000000000..12be3f9eb --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/DispenserType.cs @@ -0,0 +1,124 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("DISPENSER_TYPES")] + public partial class DispenserType : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the dispensertype code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the dispensertype name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected Double _nlperpulse; + /// + /// Gets or sets the dispensertype nl per pulse. + /// + [Column("NL_PER_PULSE")] + + public Double NlPerPulse + { + get + { + return _nlperpulse; + } + + set + { + _nlperpulse = value; RaisePropertyChanged(nameof(NlPerPulse)); + } + + } + + protected Double _capacity; + /// + /// Gets or sets the dispensertype capacity. + /// + [Column("CAPACITY")] + + public Double Capacity + { + get + { + return _capacity; + } + + set + { + _capacity = value; RaisePropertyChanged(nameof(Capacity)); + } + + } + + protected ObservableCollection _idspacks; + /// + /// Gets or sets the dispensertype ids packs. + /// + + public virtual ObservableCollection IdsPacks + { + get + { + return _idspacks; + } + + set + { + _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public DispenserType() : base() + { + + IdsPacks = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/EmbeddedFirmwareVersion.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/EmbeddedFirmwareVersion.cs new file mode 100644 index 000000000..bff60e190 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/EmbeddedFirmwareVersion.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("EMBEDDED_FIRMWARE_VERSIONS")] + public partial class EmbeddedFirmwareVersion : ObservableEntity + { + + protected Double _version; + /// + /// Gets or sets the embeddedfirmwareversion version. + /// + [Column("VERSION")] + + public Double Version + { + get + { + return _version; + } + + set + { + _version = value; RaisePropertyChanged(nameof(Version)); + } + + } + + protected String _name; + /// + /// Gets or sets the embeddedfirmwareversion name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected ObservableCollection _configurations; + /// + /// Gets or sets the embeddedfirmwareversion configurations. + /// + + public virtual ObservableCollection Configurations + { + get + { + return _configurations; + } + + set + { + _configurations = value; RaisePropertyChanged(nameof(Configurations)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public EmbeddedFirmwareVersion() : base() + { + + Configurations = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/EmbeddedSoftwareVersion.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/EmbeddedSoftwareVersion.cs new file mode 100644 index 000000000..1f39794cf --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/EmbeddedSoftwareVersion.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("EMBEDDED_SOFTWARE_VERSIONS")] + public partial class EmbeddedSoftwareVersion : ObservableEntity + { + + protected Double _version; + /// + /// Gets or sets the embeddedsoftwareversion version. + /// + [Column("VERSION")] + + public Double Version + { + get + { + return _version; + } + + set + { + _version = value; RaisePropertyChanged(nameof(Version)); + } + + } + + protected String _name; + /// + /// Gets or sets the embeddedsoftwareversion name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected ObservableCollection _configurations; + /// + /// Gets or sets the embeddedsoftwareversion configurations. + /// + + public virtual ObservableCollection Configurations + { + get + { + return _configurations; + } + + set + { + _configurations = value; RaisePropertyChanged(nameof(Configurations)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public EmbeddedSoftwareVersion() : base() + { + + Configurations = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/EventType.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/EventType.cs new file mode 100644 index 000000000..26e6c4ab4 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/EventType.cs @@ -0,0 +1,125 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("EVENT_TYPES")] + public partial class EventType : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the eventtype code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the eventtype name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _description; + /// + /// Gets or sets the eventtype description. + /// + [Column("DESCRIPTION")] + + public String Description + { + get + { + return _description; + } + + set + { + _description = value; RaisePropertyChanged(nameof(Description)); + } + + } + + protected ObservableCollection _eventtypesactions; + /// + /// Gets or sets the eventtype event types actions. + /// + + public virtual ObservableCollection EventTypesActions + { + get + { + return _eventtypesactions; + } + + set + { + _eventtypesactions = value; RaisePropertyChanged(nameof(EventTypesActions)); + } + + } + + protected ObservableCollection _machinesevents; + /// + /// Gets or sets the eventtype machines events. + /// + + public virtual ObservableCollection MachinesEvents + { + get + { + return _machinesevents; + } + + set + { + _machinesevents = value; RaisePropertyChanged(nameof(MachinesEvents)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public EventType() : base() + { + + EventTypesActions = new ObservableCollection(); + + MachinesEvents = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/EventTypesAction.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/EventTypesAction.cs new file mode 100644 index 000000000..77da6e91b --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/EventTypesAction.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("EVENT_TYPES_ACTIONS")] + public partial class EventTypesAction : ObservableEntity + { + + protected String _eventtypeguid; + /// + /// Gets or sets the eventtypesaction event type guid. + /// + [Column("EVENT_TYPE_GUID")] + [ForeignKey("EventType")] + public String EventTypeGuid + { + get + { + return _eventtypeguid; + } + + set + { + _eventtypeguid = value; RaisePropertyChanged(nameof(EventTypeGuid)); + } + + } + + protected String _actiontypeguid; + /// + /// Gets or sets the eventtypesaction action type guid. + /// + [Column("ACTION_TYPE_GUID")] + [ForeignKey("ActionType")] + public String ActionTypeGuid + { + get + { + return _actiontypeguid; + } + + set + { + _actiontypeguid = value; RaisePropertyChanged(nameof(ActionTypeGuid)); + } + + } + + protected ActionType _actiontype; + /// + /// Gets or sets the eventtypesaction action types. + /// + + public virtual ActionType ActionType + { + get + { + return _actiontype; + } + + set + { + _actiontype = value; RaisePropertyChanged(nameof(ActionType)); + } + + } + + protected EventType _eventtype; + /// + /// Gets or sets the eventtypesaction event types. + /// + + public virtual EventType EventType + { + get + { + return _eventtype; + } + + set + { + _eventtype = value; RaisePropertyChanged(nameof(EventType)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public EventTypesAction() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/FiberShape.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/FiberShape.cs new file mode 100644 index 000000000..088561b83 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/FiberShape.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("FIBER_SHAPES")] + public partial class FiberShape : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the fibershape name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected Int32 _code; + /// + /// Gets or sets the fibershape code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected ObservableCollection _rmls; + /// + /// Gets or sets the fibershape rmls. + /// + + public virtual ObservableCollection Rmls + { + get + { + return _rmls; + } + + set + { + _rmls = value; RaisePropertyChanged(nameof(Rmls)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public FiberShape() : base() + { + + Rmls = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/FiberSynth.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/FiberSynth.cs new file mode 100644 index 000000000..d5f1eaa0b --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/FiberSynth.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("FIBER_SYNTHS")] + public partial class FiberSynth : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the fibersynth name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected Int32 _code; + /// + /// Gets or sets the fibersynth code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected ObservableCollection _rmls; + /// + /// Gets or sets the fibersynth rmls. + /// + + public virtual ObservableCollection Rmls + { + get + { + return _rmls; + } + + set + { + _rmls = value; RaisePropertyChanged(nameof(Rmls)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public FiberSynth() : base() + { + + Rmls = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/HardwareVersion.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/HardwareVersion.cs new file mode 100644 index 000000000..033623160 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/HardwareVersion.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("HARDWARE_VERSIONS")] + public partial class HardwareVersion : ObservableEntity + { + + protected Double _version; + /// + /// Gets or sets the hardwareversion version. + /// + [Column("VERSION")] + + public Double Version + { + get + { + return _version; + } + + set + { + _version = value; RaisePropertyChanged(nameof(Version)); + } + + } + + protected String _name; + /// + /// Gets or sets the hardwareversion name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected ObservableCollection _configurations; + /// + /// Gets or sets the hardwareversion configurations. + /// + + public virtual ObservableCollection Configurations + { + get + { + return _configurations; + } + + set + { + _configurations = value; RaisePropertyChanged(nameof(Configurations)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public HardwareVersion() : base() + { + + Configurations = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/IdsPack.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/IdsPack.cs new file mode 100644 index 000000000..6029fbf00 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/IdsPack.cs @@ -0,0 +1,296 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("IDS_PACKS")] + public partial class IdsPack : ObservableEntity + { + + protected String _configurationguid; + /// + /// Gets or sets the idspack configuration guid. + /// + [Column("CONFIGURATION_GUID")] + [ForeignKey("Configuration")] + public String ConfigurationGuid + { + get + { + return _configurationguid; + } + + set + { + _configurationguid = value; RaisePropertyChanged(nameof(ConfigurationGuid)); + } + + } + + protected String _dispensertypeguid; + /// + /// Gets or sets the idspack dispenser type guid. + /// + [Column("DISPENSER_TYPE_GUID")] + [ForeignKey("DispenserType")] + public String DispenserTypeGuid + { + get + { + return _dispensertypeguid; + } + + set + { + _dispensertypeguid = value; RaisePropertyChanged(nameof(DispenserTypeGuid)); + } + + } + + protected String _liquidtypeguid; + /// + /// Gets or sets the idspack liquid type guid. + /// + [Column("LIQUID_TYPE_GUID")] + [ForeignKey("LiquidType")] + public String LiquidTypeGuid + { + get + { + return _liquidtypeguid; + } + + set + { + _liquidtypeguid = value; RaisePropertyChanged(nameof(LiquidTypeGuid)); + } + + } + + protected String _cartridgetypeguid; + /// + /// Gets or sets the idspack cartridge type guid. + /// + [Column("CARTRIDGE_TYPE_GUID")] + [ForeignKey("CartridgeType")] + public String CartridgeTypeGuid + { + get + { + return _cartridgetypeguid; + } + + set + { + _cartridgetypeguid = value; RaisePropertyChanged(nameof(CartridgeTypeGuid)); + } + + } + + protected String _midtanktypeguid; + /// + /// Gets or sets the idspack mid tank type guid. + /// + [Column("MID_TANK_TYPE_GUID")] + [ForeignKey("MidTankType")] + public String MidTankTypeGuid + { + get + { + return _midtanktypeguid; + } + + set + { + _midtanktypeguid = value; RaisePropertyChanged(nameof(MidTankTypeGuid)); + } + + } + + protected String _name; + /// + /// Gets or sets the idspack name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected Int32 _packindex; + /// + /// Gets or sets the idspack pack index. + /// + [Column("PACK_INDEX")] + + public Int32 PackIndex + { + get + { + return _packindex; + } + + set + { + _packindex = value; RaisePropertyChanged(nameof(PackIndex)); + } + + } + + protected String _idspackformulaguid; + /// + /// Gets or sets the idspack ids pack formula guid. + /// + [Column("IDS_PACK_FORMULA_GUID")] + [ForeignKey("IdsPackFormula")] + public String IdsPackFormulaGuid + { + get + { + return _idspackformulaguid; + } + + set + { + _idspackformulaguid = value; RaisePropertyChanged(nameof(IdsPackFormulaGuid)); + } + + } + + protected CartridgeType _cartridgetype; + /// + /// Gets or sets the idspack cartridge types. + /// + + public virtual CartridgeType CartridgeType + { + get + { + return _cartridgetype; + } + + set + { + _cartridgetype = value; RaisePropertyChanged(nameof(CartridgeType)); + } + + } + + protected Configuration _configuration; + /// + /// Gets or sets the idspack configuration. + /// + + public virtual Configuration Configuration + { + get + { + return _configuration; + } + + set + { + _configuration = value; RaisePropertyChanged(nameof(Configuration)); + } + + } + + protected DispenserType _dispensertype; + /// + /// Gets or sets the idspack dispenser types. + /// + + public virtual DispenserType DispenserType + { + get + { + return _dispensertype; + } + + set + { + _dispensertype = value; RaisePropertyChanged(nameof(DispenserType)); + } + + } + + protected IdsPackFormula _idspackformula; + /// + /// Gets or sets the idspack ids pack formulas. + /// + + public virtual IdsPackFormula IdsPackFormula + { + get + { + return _idspackformula; + } + + set + { + _idspackformula = value; RaisePropertyChanged(nameof(IdsPackFormula)); + } + + } + + protected LiquidType _liquidtype; + /// + /// Gets or sets the idspack liquid types. + /// + + public virtual LiquidType LiquidType + { + get + { + return _liquidtype; + } + + set + { + _liquidtype = value; RaisePropertyChanged(nameof(LiquidType)); + } + + } + + protected MidTankType _midtanktype; + /// + /// Gets or sets the idspack mid tank types. + /// + + public virtual MidTankType MidTankType + { + get + { + return _midtanktype; + } + + set + { + _midtanktype = value; RaisePropertyChanged(nameof(MidTankType)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public IdsPack() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/IdsPackFormula.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/IdsPackFormula.cs new file mode 100644 index 000000000..76be59dca --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/IdsPackFormula.cs @@ -0,0 +1,124 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("IDS_PACK_FORMULAS")] + public partial class IdsPackFormula : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the idspackformula code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the idspackformula name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _description; + /// + /// Gets or sets the idspackformula description. + /// + [Column("DESCRIPTION")] + + public String Description + { + get + { + return _description; + } + + set + { + _description = value; RaisePropertyChanged(nameof(Description)); + } + + } + + protected Boolean _autocalculated; + /// + /// Gets or sets the idspackformula auto calculated. + /// + [Column("AUTO_CALCULATED")] + + public Boolean AutoCalculated + { + get + { + return _autocalculated; + } + + set + { + _autocalculated = value; RaisePropertyChanged(nameof(AutoCalculated)); + } + + } + + protected ObservableCollection _idspacks; + /// + /// Gets or sets the idspackformula ids packs. + /// + + public virtual ObservableCollection IdsPacks + { + get + { + return _idspacks; + } + + set + { + _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public IdsPackFormula() : base() + { + + IdsPacks = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Job.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Job.cs new file mode 100644 index 000000000..bf33c8b07 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Job.cs @@ -0,0 +1,302 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("JOBS")] + public partial class Job : ObservableEntity + { + + protected DateTime _creationdate; + /// + /// Gets or sets the job creation date. + /// + [Column("CREATION_DATE")] + + public DateTime CreationDate + { + get + { + return _creationdate; + } + + set + { + _creationdate = value; RaisePropertyChanged(nameof(CreationDate)); + } + + } + + protected String _machineguid; + /// + /// Gets or sets the job machine guid. + /// + [Column("MACHINE_GUID")] + [ForeignKey("Machine")] + public String MachineGuid + { + get + { + return _machineguid; + } + + set + { + _machineguid = value; RaisePropertyChanged(nameof(MachineGuid)); + } + + } + + protected String _rmlguid; + /// + /// Gets or sets the job rml guid. + /// + [Column("RML_GUID")] + [ForeignKey("Rml")] + public String RmlGuid + { + get + { + return _rmlguid; + } + + set + { + _rmlguid = value; RaisePropertyChanged(nameof(RmlGuid)); + } + + } + + protected String _windingmethodguid; + /// + /// Gets or sets the job winding method guid. + /// + [Column("WINDING_METHOD_GUID")] + [ForeignKey("WindingMethod")] + public String WindingMethodGuid + { + get + { + return _windingmethodguid; + } + + set + { + _windingmethodguid = value; RaisePropertyChanged(nameof(WindingMethodGuid)); + } + + } + + protected String _name; + /// + /// Gets or sets the job name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _description; + /// + /// Gets or sets the job description. + /// + [Column("DESCRIPTION")] + + public String Description + { + get + { + return _description; + } + + set + { + _description = value; RaisePropertyChanged(nameof(Description)); + } + + } + + protected Double _intersegmentlength; + /// + /// Gets or sets the job inter segment length. + /// + [Column("INTER_SEGMENT_LENGTH")] + + public Double InterSegmentLength + { + get + { + return _intersegmentlength; + } + + set + { + _intersegmentlength = value; RaisePropertyChanged(nameof(InterSegmentLength)); + } + + } + + protected Boolean _enableintersegment; + /// + /// Gets or sets the job enable inter segment. + /// + [Column("ENABLE_INTER_SEGMENT")] + + public Boolean EnableInterSegment + { + get + { + return _enableintersegment; + } + + set + { + _enableintersegment = value; RaisePropertyChanged(nameof(EnableInterSegment)); + } + + } + + protected Boolean _enablelubrication; + /// + /// Gets or sets the job enable lubrication. + /// + [Column("ENABLE_LUBRICATION")] + + public Boolean EnableLubrication + { + get + { + return _enablelubrication; + } + + set + { + _enablelubrication = value; RaisePropertyChanged(nameof(EnableLubrication)); + } + + } + + protected ObservableCollection _jobruns; + /// + /// Gets or sets the job job runs. + /// + + public virtual ObservableCollection JobRuns + { + get + { + return _jobruns; + } + + set + { + _jobruns = value; RaisePropertyChanged(nameof(JobRuns)); + } + + } + + protected Machine _machine; + /// + /// Gets or sets the job machine. + /// + + public virtual Machine Machine + { + get + { + return _machine; + } + + set + { + _machine = value; RaisePropertyChanged(nameof(Machine)); + } + + } + + protected Rml _rml; + /// + /// Gets or sets the job rml. + /// + + public virtual Rml Rml + { + get + { + return _rml; + } + + set + { + _rml = value; RaisePropertyChanged(nameof(Rml)); + } + + } + + protected WindingMethod _windingmethod; + /// + /// Gets or sets the job winding methods. + /// + + public virtual WindingMethod WindingMethod + { + get + { + return _windingmethod; + } + + set + { + _windingmethod = value; RaisePropertyChanged(nameof(WindingMethod)); + } + + } + + protected ObservableCollection _segments; + /// + /// Gets or sets the job segments. + /// + + public virtual ObservableCollection Segments + { + get + { + return _segments; + } + + set + { + _segments = value; RaisePropertyChanged(nameof(Segments)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Job() : base() + { + + JobRuns = new ObservableCollection(); + + Segments = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/JobRun.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/JobRun.cs new file mode 100644 index 000000000..2d795b0b5 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/JobRun.cs @@ -0,0 +1,121 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("JOB_RUNS")] + public partial class JobRun : ObservableEntity + { + + protected String _jobguid; + /// + /// Gets or sets the jobrun job guid. + /// + [Column("JOB_GUID")] + [ForeignKey("Job")] + public String JobGuid + { + get + { + return _jobguid; + } + + set + { + _jobguid = value; RaisePropertyChanged(nameof(JobGuid)); + } + + } + + protected DateTime _startdate; + /// + /// Gets or sets the jobrun start date. + /// + [Column("START_DATE")] + + public DateTime StartDate + { + get + { + return _startdate; + } + + set + { + _startdate = value; RaisePropertyChanged(nameof(StartDate)); + } + + } + + protected DateTime _enddate; + /// + /// Gets or sets the jobrun end date. + /// + [Column("END_DATE")] + + public DateTime EndDate + { + get + { + return _enddate; + } + + set + { + _enddate = value; RaisePropertyChanged(nameof(EndDate)); + } + + } + + protected Boolean _successful; + /// + /// Gets or sets the jobrun successful. + /// + [Column("SUCCESSFUL")] + + public Boolean Successful + { + get + { + return _successful; + } + + set + { + _successful = value; RaisePropertyChanged(nameof(Successful)); + } + + } + + protected Job _job; + /// + /// Gets or sets the jobrun job. + /// + + public virtual Job Job + { + get + { + return _job; + } + + set + { + _job = value; RaisePropertyChanged(nameof(Job)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public JobRun() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/LinearMassDensityUnit.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/LinearMassDensityUnit.cs new file mode 100644 index 000000000..6fcf7e0f3 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/LinearMassDensityUnit.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("LINEAR_MASS_DENSITY_UNITS")] + public partial class LinearMassDensityUnit : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the linearmassdensityunit name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected Int32 _code; + /// + /// Gets or sets the linearmassdensityunit code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected ObservableCollection _rmls; + /// + /// Gets or sets the linearmassdensityunit rmls. + /// + + public virtual ObservableCollection Rmls + { + get + { + return _rmls; + } + + set + { + _rmls = value; RaisePropertyChanged(nameof(Rmls)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public LinearMassDensityUnit() : base() + { + + Rmls = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/LiquidType.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/LiquidType.cs new file mode 100644 index 000000000..8c885d099 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/LiquidType.cs @@ -0,0 +1,166 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("LIQUID_TYPES")] + public partial class LiquidType : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the liquidtype code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the liquidtype name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected Double _version; + /// + /// Gets or sets the liquidtype version. + /// + [Column("VERSION")] + + public Double Version + { + get + { + return _version; + } + + set + { + _version = value; RaisePropertyChanged(nameof(Version)); + } + + } + + protected Int32 _color; + /// + /// Gets or sets the liquidtype color. + /// + [Column("COLOR")] + + public Int32 Color + { + get + { + return _color; + } + + set + { + _color = value; RaisePropertyChanged(nameof(Color)); + } + + } + + protected ObservableCollection _cats; + /// + /// Gets or sets the liquidtype cats. + /// + + public virtual ObservableCollection Cats + { + get + { + return _cats; + } + + set + { + _cats = value; RaisePropertyChanged(nameof(Cats)); + } + + } + + protected ObservableCollection _idspacks; + /// + /// Gets or sets the liquidtype ids packs. + /// + + public virtual ObservableCollection IdsPacks + { + get + { + return _idspacks; + } + + set + { + _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); + } + + } + + protected ObservableCollection _liquidtypesrmls; + /// + /// Gets or sets the liquidtype liquid types rmls. + /// + + public virtual ObservableCollection LiquidTypesRmls + { + get + { + return _liquidtypesrmls; + } + + set + { + _liquidtypesrmls = value; RaisePropertyChanged(nameof(LiquidTypesRmls)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public LiquidType() : base() + { + + Cats = new ObservableCollection(); + + IdsPacks = new ObservableCollection(); + + LiquidTypesRmls = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/LiquidTypesRml.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/LiquidTypesRml.cs new file mode 100644 index 000000000..4002afa64 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/LiquidTypesRml.cs @@ -0,0 +1,120 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("LIQUID_TYPES_RMLS")] + public partial class LiquidTypesRml : ObservableEntity + { + + protected String _liquidtypeguid; + /// + /// Gets or sets the liquidtypesrml liquid type guid. + /// + [Column("LIQUID_TYPE_GUID")] + [ForeignKey("LiquidType")] + public String LiquidTypeGuid + { + get + { + return _liquidtypeguid; + } + + set + { + _liquidtypeguid = value; RaisePropertyChanged(nameof(LiquidTypeGuid)); + } + + } + + protected String _rmlguid; + /// + /// Gets or sets the liquidtypesrml rml guid. + /// + [Column("RML_GUID")] + [ForeignKey("Rml")] + public String RmlGuid + { + get + { + return _rmlguid; + } + + set + { + _rmlguid = value; RaisePropertyChanged(nameof(RmlGuid)); + } + + } + + protected Double _maxnlpercm; + /// + /// Gets or sets the liquidtypesrml max nl per cm. + /// + [Column("MAX_NL_PER_CM")] + + public Double MaxNlPerCm + { + get + { + return _maxnlpercm; + } + + set + { + _maxnlpercm = value; RaisePropertyChanged(nameof(MaxNlPerCm)); + } + + } + + protected LiquidType _liquidtype; + /// + /// Gets or sets the liquidtypesrml liquid types. + /// + + public virtual LiquidType LiquidType + { + get + { + return _liquidtype; + } + + set + { + _liquidtype = value; RaisePropertyChanged(nameof(LiquidType)); + } + + } + + protected Rml _rml; + /// + /// Gets or sets the liquidtypesrml rml. + /// + + public virtual Rml Rml + { + get + { + return _rml; + } + + set + { + _rml = value; RaisePropertyChanged(nameof(Rml)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public LiquidTypesRml() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Machine.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Machine.cs new file mode 100644 index 000000000..fea07023f --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Machine.cs @@ -0,0 +1,263 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("MACHINES")] + public partial class Machine : ObservableEntity + { + + protected String _serialnumber; + /// + /// Gets or sets the machine serial number. + /// + [Column("SERIAL_NUMBER")] + + public String SerialNumber + { + get + { + return _serialnumber; + } + + set + { + _serialnumber = value; RaisePropertyChanged(nameof(SerialNumber)); + } + + } + + protected String _name; + /// + /// Gets or sets the machine name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected DateTime _productiondate; + /// + /// Gets or sets the machine production date. + /// + [Column("PRODUCTION_DATE")] + + public DateTime ProductionDate + { + get + { + return _productiondate; + } + + set + { + _productiondate = value; RaisePropertyChanged(nameof(ProductionDate)); + } + + } + + protected String _organizationguid; + /// + /// Gets or sets the machine organization guid. + /// + [Column("ORGANIZATION_GUID")] + [ForeignKey("Organization")] + public String OrganizationGuid + { + get + { + return _organizationguid; + } + + set + { + _organizationguid = value; RaisePropertyChanged(nameof(OrganizationGuid)); + } + + } + + protected String _machineversionguid; + /// + /// Gets or sets the machine machine version guid. + /// + [Column("MACHINE_VERSION_GUID")] + [ForeignKey("MachineVersion")] + public String MachineVersionGuid + { + get + { + return _machineversionguid; + } + + set + { + _machineversionguid = value; RaisePropertyChanged(nameof(MachineVersionGuid)); + } + + } + + protected String _configurationguid; + /// + /// Gets or sets the machine configuration guid. + /// + [Column("CONFIGURATION_GUID")] + [ForeignKey("Configuration")] + public String ConfigurationGuid + { + get + { + return _configurationguid; + } + + set + { + _configurationguid = value; RaisePropertyChanged(nameof(ConfigurationGuid)); + } + + } + + protected Configuration _configuration; + /// + /// Gets or sets the machine configuration. + /// + + public virtual Configuration Configuration + { + get + { + return _configuration; + } + + set + { + _configuration = value; RaisePropertyChanged(nameof(Configuration)); + } + + } + + protected ObservableCollection _jobs; + /// + /// Gets or sets the machine jobs. + /// + + public virtual ObservableCollection Jobs + { + get + { + return _jobs; + } + + set + { + _jobs = value; RaisePropertyChanged(nameof(Jobs)); + } + + } + + protected MachineVersion _machineversion; + /// + /// Gets or sets the machine machine versions. + /// + + public virtual MachineVersion MachineVersion + { + get + { + return _machineversion; + } + + set + { + _machineversion = value; RaisePropertyChanged(nameof(MachineVersion)); + } + + } + + protected ObservableCollection _machinesconfigurations; + /// + /// Gets or sets the machine machines configurations. + /// + + public virtual ObservableCollection MachinesConfigurations + { + get + { + return _machinesconfigurations; + } + + set + { + _machinesconfigurations = value; RaisePropertyChanged(nameof(MachinesConfigurations)); + } + + } + + protected ObservableCollection _machinesevents; + /// + /// Gets or sets the machine machines events. + /// + + public virtual ObservableCollection MachinesEvents + { + get + { + return _machinesevents; + } + + set + { + _machinesevents = value; RaisePropertyChanged(nameof(MachinesEvents)); + } + + } + + protected Organization _organization; + /// + /// Gets or sets the machine organization. + /// + + public virtual Organization Organization + { + get + { + return _organization; + } + + set + { + _organization = value; RaisePropertyChanged(nameof(Organization)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Machine() : base() + { + + Jobs = new ObservableCollection(); + + MachinesConfigurations = new ObservableCollection(); + + MachinesEvents = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/MachineVersion.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MachineVersion.cs new file mode 100644 index 000000000..fc7184be1 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MachineVersion.cs @@ -0,0 +1,123 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("MACHINE_VERSIONS")] + public partial class MachineVersion : ObservableEntity + { + + protected Double _version; + /// + /// Gets or sets the machineversion version. + /// + [Column("VERSION")] + + public Double Version + { + get + { + return _version; + } + + set + { + _version = value; RaisePropertyChanged(nameof(Version)); + } + + } + + protected String _name; + /// + /// Gets or sets the machineversion name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _defaultconfigurationguid; + /// + /// Gets or sets the machineversion default configuration guid. + /// + [Column("DEFAULT_CONFIGURATION_GUID")] + [ForeignKey("DefaultConfiguration")] + public String DefaultConfigurationGuid + { + get + { + return _defaultconfigurationguid; + } + + set + { + _defaultconfigurationguid = value; RaisePropertyChanged(nameof(DefaultConfigurationGuid)); + } + + } + + protected Configuration _defaultconfiguration; + /// + /// Gets or sets the machineversion configuration. + /// + + public virtual Configuration DefaultConfiguration + { + get + { + return _defaultconfiguration; + } + + set + { + _defaultconfiguration = value; RaisePropertyChanged(nameof(DefaultConfiguration)); + } + + } + + protected ObservableCollection _machines; + /// + /// Gets or sets the machineversion machines. + /// + + public virtual ObservableCollection Machines + { + get + { + return _machines; + } + + set + { + _machines = value; RaisePropertyChanged(nameof(Machines)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public MachineVersion() : base() + { + + Machines = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/MachinesConfiguration.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MachinesConfiguration.cs new file mode 100644 index 000000000..de79ac7af --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MachinesConfiguration.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("MACHINES_CONFIGURATIONS")] + public partial class MachinesConfiguration : ObservableEntity + { + + protected String _machineguid; + /// + /// Gets or sets the machinesconfiguration machine guid. + /// + [Column("MACHINE_GUID")] + [ForeignKey("Machine")] + public String MachineGuid + { + get + { + return _machineguid; + } + + set + { + _machineguid = value; RaisePropertyChanged(nameof(MachineGuid)); + } + + } + + protected String _configurationguid; + /// + /// Gets or sets the machinesconfiguration configuration guid. + /// + [Column("CONFIGURATION_GUID")] + [ForeignKey("Configuration")] + public String ConfigurationGuid + { + get + { + return _configurationguid; + } + + set + { + _configurationguid = value; RaisePropertyChanged(nameof(ConfigurationGuid)); + } + + } + + protected Configuration _configuration; + /// + /// Gets or sets the machinesconfiguration configuration. + /// + + public virtual Configuration Configuration + { + get + { + return _configuration; + } + + set + { + _configuration = value; RaisePropertyChanged(nameof(Configuration)); + } + + } + + protected Machine _machine; + /// + /// Gets or sets the machinesconfiguration machine. + /// + + public virtual Machine Machine + { + get + { + return _machine; + } + + set + { + _machine = value; RaisePropertyChanged(nameof(Machine)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public MachinesConfiguration() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/MachinesEvent.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MachinesEvent.cs new file mode 100644 index 000000000..cc4ad8961 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MachinesEvent.cs @@ -0,0 +1,179 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("MACHINES_EVENTS")] + public partial class MachinesEvent : ObservableEntity + { + + protected String _machineguid; + /// + /// Gets or sets the machinesevent machine guid. + /// + [Column("MACHINE_GUID")] + [ForeignKey("Machine")] + public String MachineGuid + { + get + { + return _machineguid; + } + + set + { + _machineguid = value; RaisePropertyChanged(nameof(MachineGuid)); + } + + } + + protected String _eventtypeguid; + /// + /// Gets or sets the machinesevent event type guid. + /// + [Column("EVENT_TYPE_GUID")] + [ForeignKey("EventType")] + public String EventTypeGuid + { + get + { + return _eventtypeguid; + } + + set + { + _eventtypeguid = value; RaisePropertyChanged(nameof(EventTypeGuid)); + } + + } + + protected String _userguid; + /// + /// Gets or sets the machinesevent user guid. + /// + [Column("USER_GUID")] + [ForeignKey("User")] + public String UserGuid + { + get + { + return _userguid; + } + + set + { + _userguid = value; RaisePropertyChanged(nameof(UserGuid)); + } + + } + + protected DateTime _datetime; + /// + /// Gets or sets the machinesevent date time. + /// + [Column("DATE_TIME")] + + public DateTime DateTime + { + get + { + return _datetime; + } + + set + { + _datetime = value; RaisePropertyChanged(nameof(DateTime)); + } + + } + + protected String _description; + /// + /// Gets or sets the machinesevent description. + /// + [Column("DESCRIPTION")] + + public String Description + { + get + { + return _description; + } + + set + { + _description = value; RaisePropertyChanged(nameof(Description)); + } + + } + + protected EventType _eventtype; + /// + /// Gets or sets the machinesevent event types. + /// + + public virtual EventType EventType + { + get + { + return _eventtype; + } + + set + { + _eventtype = value; RaisePropertyChanged(nameof(EventType)); + } + + } + + protected Machine _machine; + /// + /// Gets or sets the machinesevent machine. + /// + + public virtual Machine Machine + { + get + { + return _machine; + } + + set + { + _machine = value; RaisePropertyChanged(nameof(Machine)); + } + + } + + protected User _user; + /// + /// Gets or sets the machinesevent user. + /// + + public virtual User User + { + get + { + return _user; + } + + set + { + _user = value; RaisePropertyChanged(nameof(User)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public MachinesEvent() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaColor.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaColor.cs new file mode 100644 index 000000000..36e4108e5 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaColor.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("MEDIA_COLORS")] + public partial class MediaColor : ObservableEntity + { + + protected Int32 _color; + /// + /// Gets or sets the mediacolor color. + /// + [Column("COLOR")] + + public Int32 Color + { + get + { + return _color; + } + + set + { + _color = value; RaisePropertyChanged(nameof(Color)); + } + + } + + protected ObservableCollection _rmls; + /// + /// Gets or sets the mediacolor rmls. + /// + + public virtual ObservableCollection Rmls + { + get + { + return _rmls; + } + + set + { + _rmls = value; RaisePropertyChanged(nameof(Rmls)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public MediaColor() : base() + { + + Rmls = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaCondition.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaCondition.cs new file mode 100644 index 000000000..936c0170a --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaCondition.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("MEDIA_CONDITIONS")] + public partial class MediaCondition : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the mediacondition name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected Int32 _code; + /// + /// Gets or sets the mediacondition code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected ObservableCollection _rmls; + /// + /// Gets or sets the mediacondition rmls. + /// + + public virtual ObservableCollection Rmls + { + get + { + return _rmls; + } + + set + { + _rmls = value; RaisePropertyChanged(nameof(Rmls)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public MediaCondition() : base() + { + + Rmls = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaMaterial.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaMaterial.cs new file mode 100644 index 000000000..beb27e9ea --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaMaterial.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("MEDIA_MATERIALS")] + public partial class MediaMaterial : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the mediamaterial name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected Int32 _code; + /// + /// Gets or sets the mediamaterial code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected ObservableCollection _rmls; + /// + /// Gets or sets the mediamaterial rmls. + /// + + public virtual ObservableCollection Rmls + { + get + { + return _rmls; + } + + set + { + _rmls = value; RaisePropertyChanged(nameof(Rmls)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public MediaMaterial() : base() + { + + Rmls = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaPurpos.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaPurpos.cs new file mode 100644 index 000000000..43448504a --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MediaPurpos.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("MEDIA_PURPOSES")] + public partial class MediaPurpos : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the mediapurpos name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected Int32 _code; + /// + /// Gets or sets the mediapurpos code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected ObservableCollection _rmls; + /// + /// Gets or sets the mediapurpos rmls. + /// + + public virtual ObservableCollection Rmls + { + get + { + return _rmls; + } + + set + { + _rmls = value; RaisePropertyChanged(nameof(Rmls)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public MediaPurpos() : base() + { + + Rmls = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/MidTankType.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MidTankType.cs new file mode 100644 index 000000000..a68d18241 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/MidTankType.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("MID_TANK_TYPES")] + public partial class MidTankType : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the midtanktype code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the midtanktype name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected Double _litercapacity; + /// + /// Gets or sets the midtanktype liter capacity. + /// + [Column("LITER_CAPACITY")] + + public Double LiterCapacity + { + get + { + return _litercapacity; + } + + set + { + _litercapacity = value; RaisePropertyChanged(nameof(LiterCapacity)); + } + + } + + protected ObservableCollection _idspacks; + /// + /// Gets or sets the midtanktype ids packs. + /// + + public virtual ObservableCollection IdsPacks + { + get + { + return _idspacks; + } + + set + { + _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public MidTankType() : base() + { + + IdsPacks = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Organization.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Organization.cs new file mode 100644 index 000000000..ca43cf4ed --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Organization.cs @@ -0,0 +1,163 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("ORGANIZATIONS")] + public partial class Organization : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the organization name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _contactguid; + /// + /// Gets or sets the organization contact guid. + /// + [Column("CONTACT_GUID")] + [ForeignKey("Contact")] + public String ContactGuid + { + get + { + return _contactguid; + } + + set + { + _contactguid = value; RaisePropertyChanged(nameof(ContactGuid)); + } + + } + + protected String _addressguid; + /// + /// Gets or sets the organization address guid. + /// + [Column("ADDRESS_GUID")] + [ForeignKey("Address")] + public String AddressGuid + { + get + { + return _addressguid; + } + + set + { + _addressguid = value; RaisePropertyChanged(nameof(AddressGuid)); + } + + } + + protected Address _address; + /// + /// Gets or sets the organization address. + /// + + public virtual Address Address + { + get + { + return _address; + } + + set + { + _address = value; RaisePropertyChanged(nameof(Address)); + } + + } + + protected Contact _contact; + /// + /// Gets or sets the organization contact. + /// + + public virtual Contact Contact + { + get + { + return _contact; + } + + set + { + _contact = value; RaisePropertyChanged(nameof(Contact)); + } + + } + + protected ObservableCollection _machines; + /// + /// Gets or sets the organization machines. + /// + + public virtual ObservableCollection Machines + { + get + { + return _machines; + } + + set + { + _machines = value; RaisePropertyChanged(nameof(Machines)); + } + + } + + protected ObservableCollection _users; + /// + /// Gets or sets the organization users. + /// + + public virtual ObservableCollection Users + { + get + { + return _users; + } + + set + { + _users = value; RaisePropertyChanged(nameof(Users)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Organization() : base() + { + + Machines = new ObservableCollection(); + + Users = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Permission.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Permission.cs new file mode 100644 index 000000000..c9c21d7ac --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Permission.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("PERMISSIONS")] + public partial class Permission : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the permission code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the permission name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _description; + /// + /// Gets or sets the permission description. + /// + [Column("DESCRIPTION")] + + public String Description + { + get + { + return _description; + } + + set + { + _description = value; RaisePropertyChanged(nameof(Description)); + } + + } + + protected ObservableCollection _rolespermissions; + /// + /// Gets or sets the permission roles permissions. + /// + + public virtual ObservableCollection RolesPermissions + { + get + { + return _rolespermissions; + } + + set + { + _rolespermissions = value; RaisePropertyChanged(nameof(RolesPermissions)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Permission() : base() + { + + RolesPermissions = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/ProcessParametersTable.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ProcessParametersTable.cs new file mode 100644 index 000000000..1ec09b848 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ProcessParametersTable.cs @@ -0,0 +1,401 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("PROCESS_PARAMETERS_TABLES")] + public partial class ProcessParametersTable : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the processparameterstable name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected Double _dyeingspeed; + /// + /// Gets or sets the processparameterstable dyeing speed. + /// + [Column("DYEING_SPEED")] + + public Double DyeingSpeed + { + get + { + return _dyeingspeed; + } + + set + { + _dyeingspeed = value; RaisePropertyChanged(nameof(DyeingSpeed)); + } + + } + + protected Double _mininkuptake; + /// + /// Gets or sets the processparameterstable min ink uptake. + /// + [Column("MIN_INK_UPTAKE")] + + public Double MinInkUptake + { + get + { + return _mininkuptake; + } + + set + { + _mininkuptake = value; RaisePropertyChanged(nameof(MinInkUptake)); + } + + } + + protected Double _mixertemp; + /// + /// Gets or sets the processparameterstable mixer temp. + /// + [Column("MIXER_TEMP")] + + public Double MixerTemp + { + get + { + return _mixertemp; + } + + set + { + _mixertemp = value; RaisePropertyChanged(nameof(MixerTemp)); + } + + } + + protected Double _headzone1temp; + /// + /// Gets or sets the processparameterstable head zone1 temp. + /// + [Column("HEAD_ZONE1_TEMP")] + + public Double HeadZone1Temp + { + get + { + return _headzone1temp; + } + + set + { + _headzone1temp = value; RaisePropertyChanged(nameof(HeadZone1Temp)); + } + + } + + protected Double _headzone2temp; + /// + /// Gets or sets the processparameterstable head zone2 temp. + /// + [Column("HEAD_ZONE2_TEMP")] + + public Double HeadZone2Temp + { + get + { + return _headzone2temp; + } + + set + { + _headzone2temp = value; RaisePropertyChanged(nameof(HeadZone2Temp)); + } + + } + + protected Double _headzone3temp; + /// + /// Gets or sets the processparameterstable head zone3 temp. + /// + [Column("HEAD_ZONE3_TEMP")] + + public Double HeadZone3Temp + { + get + { + return _headzone3temp; + } + + set + { + _headzone3temp = value; RaisePropertyChanged(nameof(HeadZone3Temp)); + } + + } + + protected Double _headairflow; + /// + /// Gets or sets the processparameterstable head air flow. + /// + [Column("HEAD_AIR_FLOW")] + + public Double HeadAirFlow + { + get + { + return _headairflow; + } + + set + { + _headairflow = value; RaisePropertyChanged(nameof(HeadAirFlow)); + } + + } + + protected Double _feedertension; + /// + /// Gets or sets the processparameterstable feeder tension. + /// + [Column("FEEDER_TENSION")] + + public Double FeederTension + { + get + { + return _feedertension; + } + + set + { + _feedertension = value; RaisePropertyChanged(nameof(FeederTension)); + } + + } + + protected Double _pullertension; + /// + /// Gets or sets the processparameterstable puller tension. + /// + [Column("PULLER_TENSION")] + + public Double PullerTension + { + get + { + return _pullertension; + } + + set + { + _pullertension = value; RaisePropertyChanged(nameof(PullerTension)); + } + + } + + protected Double _dryerbufferlength; + /// + /// Gets or sets the processparameterstable dryer buffer length. + /// + [Column("DRYER_BUFFER_LENGTH")] + + public Double DryerBufferLength + { + get + { + return _dryerbufferlength; + } + + set + { + _dryerbufferlength = value; RaisePropertyChanged(nameof(DryerBufferLength)); + } + + } + + protected Double _dryerzone1temp; + /// + /// Gets or sets the processparameterstable dryer zone1 temp. + /// + [Column("DRYER_ZONE1_TEMP")] + + public Double DryerZone1Temp + { + get + { + return _dryerzone1temp; + } + + set + { + _dryerzone1temp = value; RaisePropertyChanged(nameof(DryerZone1Temp)); + } + + } + + protected Double _dryerzone2temp; + /// + /// Gets or sets the processparameterstable dryer zone2 temp. + /// + [Column("DRYER_ZONE2_TEMP")] + + public Double DryerZone2Temp + { + get + { + return _dryerzone2temp; + } + + set + { + _dryerzone2temp = value; RaisePropertyChanged(nameof(DryerZone2Temp)); + } + + } + + protected Double _dryerzone3temp; + /// + /// Gets or sets the processparameterstable dryer zone3 temp. + /// + [Column("DRYER_ZONE3_TEMP")] + + public Double DryerZone3Temp + { + get + { + return _dryerzone3temp; + } + + set + { + _dryerzone3temp = value; RaisePropertyChanged(nameof(DryerZone3Temp)); + } + + } + + protected Double _dryerairflow; + /// + /// Gets or sets the processparameterstable dryer air flow. + /// + [Column("DRYER_AIR_FLOW")] + + public Double DryerAirFlow + { + get + { + return _dryerairflow; + } + + set + { + _dryerairflow = value; RaisePropertyChanged(nameof(DryerAirFlow)); + } + + } + + protected Double _windertension; + /// + /// Gets or sets the processparameterstable winder tension. + /// + [Column("WINDER_TENSION")] + + public Double WinderTension + { + get + { + return _windertension; + } + + set + { + _windertension = value; RaisePropertyChanged(nameof(WinderTension)); + } + + } + + protected String _processparameterstablesgroupguid; + /// + /// Gets or sets the processparameterstable process parameters tables group guid. + /// + [Column("PROCESS_PARAMETERS_TABLES_GROUP_GUID")] + [ForeignKey("ProcessParametersTablesGroup")] + public String ProcessParametersTablesGroupGuid + { + get + { + return _processparameterstablesgroupguid; + } + + set + { + _processparameterstablesgroupguid = value; RaisePropertyChanged(nameof(ProcessParametersTablesGroupGuid)); + } + + } + + protected Int32 _tableindex; + /// + /// Gets or sets the processparameterstable table index. + /// + [Column("TABLE_INDEX")] + + public Int32 TableIndex + { + get + { + return _tableindex; + } + + set + { + _tableindex = value; RaisePropertyChanged(nameof(TableIndex)); + } + + } + + protected ProcessParametersTablesGroup _processparameterstablesgroup; + /// + /// Gets or sets the processparameterstable process parameters tables groups. + /// + + public virtual ProcessParametersTablesGroup ProcessParametersTablesGroup + { + get + { + return _processparameterstablesgroup; + } + + set + { + _processparameterstablesgroup = value; RaisePropertyChanged(nameof(ProcessParametersTablesGroup)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public ProcessParametersTable() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/ProcessParametersTablesGroup.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ProcessParametersTablesGroup.cs new file mode 100644 index 000000000..d553952fc --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/ProcessParametersTablesGroup.cs @@ -0,0 +1,143 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("PROCESS_PARAMETERS_TABLES_GROUPS")] + public partial class ProcessParametersTablesGroup : ObservableEntity + { + + protected String _rmlguid; + /// + /// Gets or sets the processparameterstablesgroup rml guid. + /// + [Column("RML_GUID")] + [ForeignKey("Rml")] + public String RmlGuid + { + get + { + return _rmlguid; + } + + set + { + _rmlguid = value; RaisePropertyChanged(nameof(RmlGuid)); + } + + } + + protected String _name; + /// + /// Gets or sets the processparameterstablesgroup name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected Boolean _active; + /// + /// Gets or sets the processparameterstablesgroup active. + /// + [Column("ACTIVE")] + + public Boolean Active + { + get + { + return _active; + } + + set + { + _active = value; RaisePropertyChanged(nameof(Active)); + } + + } + + protected DateTime _savedate; + /// + /// Gets or sets the processparameterstablesgroup save date. + /// + [Column("SAVE_DATE")] + + public DateTime SaveDate + { + get + { + return _savedate; + } + + set + { + _savedate = value; RaisePropertyChanged(nameof(SaveDate)); + } + + } + + protected ObservableCollection _processparameterstables; + /// + /// Gets or sets the processparameterstablesgroup process parameters tables. + /// + + public virtual ObservableCollection ProcessParametersTables + { + get + { + return _processparameterstables; + } + + set + { + _processparameterstables = value; RaisePropertyChanged(nameof(ProcessParametersTables)); + } + + } + + protected Rml _rml; + /// + /// Gets or sets the processparameterstablesgroup rml. + /// + + public virtual Rml Rml + { + get + { + return _rml; + } + + set + { + _rml = value; RaisePropertyChanged(nameof(Rml)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public ProcessParametersTablesGroup() : base() + { + + ProcessParametersTables = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Rml.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Rml.cs new file mode 100644 index 000000000..564738b45 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Rml.cs @@ -0,0 +1,661 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("RMLS")] + public partial class Rml : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the rml name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _manufacturer; + /// + /// Gets or sets the rml manufacturer. + /// + [Column("MANUFACTURER")] + + public String Manufacturer + { + get + { + return _manufacturer; + } + + set + { + _manufacturer = value; RaisePropertyChanged(nameof(Manufacturer)); + } + + } + + protected Int32 _code; + /// + /// Gets or sets the rml code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _mediamaterialguid; + /// + /// Gets or sets the rml media material guid. + /// + [Column("MEDIA_MATERIAL_GUID")] + [ForeignKey("MediaMaterial")] + public String MediaMaterialGuid + { + get + { + return _mediamaterialguid; + } + + set + { + _mediamaterialguid = value; RaisePropertyChanged(nameof(MediaMaterialGuid)); + } + + } + + protected String _mediacolorguid; + /// + /// Gets or sets the rml media color guid. + /// + [Column("MEDIA_COLOR_GUID")] + [ForeignKey("MediaColor")] + public String MediaColorGuid + { + get + { + return _mediacolorguid; + } + + set + { + _mediacolorguid = value; RaisePropertyChanged(nameof(MediaColorGuid)); + } + + } + + protected String _mediapurposeguid; + /// + /// Gets or sets the rml media purpose guid. + /// + [Column("MEDIA_PURPOSE_GUID")] + [ForeignKey("MediaPurpose")] + public String MediaPurposeGuid + { + get + { + return _mediapurposeguid; + } + + set + { + _mediapurposeguid = value; RaisePropertyChanged(nameof(MediaPurposeGuid)); + } + + } + + protected String _mediaconditionguid; + /// + /// Gets or sets the rml media condition guid. + /// + [Column("MEDIA_CONDITION_GUID")] + [ForeignKey("MediaCondition")] + public String MediaConditionGuid + { + get + { + return _mediaconditionguid; + } + + set + { + _mediaconditionguid = value; RaisePropertyChanged(nameof(MediaConditionGuid)); + } + + } + + protected String _linearmassdensityunitguid; + /// + /// Gets or sets the rml linear mass density unit guid. + /// + [Column("LINEAR_MASS_DENSITY_UNIT_GUID")] + [ForeignKey("LinearMassDensityUnit")] + public String LinearMassDensityUnitGuid + { + get + { + return _linearmassdensityunitguid; + } + + set + { + _linearmassdensityunitguid = value; RaisePropertyChanged(nameof(LinearMassDensityUnitGuid)); + } + + } + + protected String _fibershapeguid; + /// + /// Gets or sets the rml fiber shape guid. + /// + [Column("FIBER_SHAPE_GUID")] + [ForeignKey("FiberShape")] + public String FiberShapeGuid + { + get + { + return _fibershapeguid; + } + + set + { + _fibershapeguid = value; RaisePropertyChanged(nameof(FiberShapeGuid)); + } + + } + + protected String _fibersynthguid; + /// + /// Gets or sets the rml fiber synth guid. + /// + [Column("FIBER_SYNTH_GUID")] + [ForeignKey("FiberSynth")] + public String FiberSynthGuid + { + get + { + return _fibersynthguid; + } + + set + { + _fibersynthguid = value; RaisePropertyChanged(nameof(FiberSynthGuid)); + } + + } + + protected Double _fibersize; + /// + /// Gets or sets the rml fiber size. + /// + [Column("FIBER_SIZE")] + + public Double FiberSize + { + get + { + return _fibersize; + } + + set + { + _fibersize = value; RaisePropertyChanged(nameof(FiberSize)); + } + + } + + protected Int32 _numberoffibers; + /// + /// Gets or sets the rml number of fibers. + /// + [Column("NUMBER_OF_FIBERS")] + + public Int32 NumberOfFibers + { + get + { + return _numberoffibers; + } + + set + { + _numberoffibers = value; RaisePropertyChanged(nameof(NumberOfFibers)); + } + + } + + protected Int32 _pliesperfiber; + /// + /// Gets or sets the rml plies per fiber. + /// + [Column("PLIES_PER_FIBER")] + + public Int32 PliesPerFiber + { + get + { + return _pliesperfiber; + } + + set + { + _pliesperfiber = value; RaisePropertyChanged(nameof(PliesPerFiber)); + } + + } + + protected Int32 _pliesperthread; + /// + /// Gets or sets the rml plies per thread. + /// + [Column("PLIES_PER_THREAD")] + + public Int32 PliesPerThread + { + get + { + return _pliesperthread; + } + + set + { + _pliesperthread = value; RaisePropertyChanged(nameof(PliesPerThread)); + } + + } + + protected Boolean _twisted; + /// + /// Gets or sets the rml twisted. + /// + [Column("TWISTED")] + + public Boolean Twisted + { + get + { + return _twisted; + } + + set + { + _twisted = value; RaisePropertyChanged(nameof(Twisted)); + } + + } + + protected Boolean _airentanglement; + /// + /// Gets or sets the rml air entanglement. + /// + [Column("AIR_ENTANGLEMENT")] + + public Boolean AirEntanglement + { + get + { + return _airentanglement; + } + + set + { + _airentanglement = value; RaisePropertyChanged(nameof(AirEntanglement)); + } + + } + + protected Boolean _lubricant; + /// + /// Gets or sets the rml lubricant. + /// + [Column("LUBRICANT")] + + public Boolean Lubricant + { + get + { + return _lubricant; + } + + set + { + _lubricant = value; RaisePropertyChanged(nameof(Lubricant)); + } + + } + + protected Double _tensilestrength; + /// + /// Gets or sets the rml tensile strength. + /// + [Column("TENSILE_STRENGTH")] + + public Double TensileStrength + { + get + { + return _tensilestrength; + } + + set + { + _tensilestrength = value; RaisePropertyChanged(nameof(TensileStrength)); + } + + } + + protected Double _elongationatbreakpercentage; + /// + /// Gets or sets the rml elongation at break percentage. + /// + [Column("ELONGATION_AT_BREAK_PERCENTAGE")] + + public Double ElongationAtBreakPercentage + { + get + { + return _elongationatbreakpercentage; + } + + set + { + _elongationatbreakpercentage = value; RaisePropertyChanged(nameof(ElongationAtBreakPercentage)); + } + + } + + protected Double _estimatedthreaddiameter; + /// + /// Gets or sets the rml estimated thread diameter. + /// + [Column("ESTIMATED_THREAD_DIAMETER")] + + public Double EstimatedThreadDiameter + { + get + { + return _estimatedthreaddiameter; + } + + set + { + _estimatedthreaddiameter = value; RaisePropertyChanged(nameof(EstimatedThreadDiameter)); + } + + } + + protected ObservableCollection _cats; + /// + /// Gets or sets the rml cats. + /// + + public virtual ObservableCollection Cats + { + get + { + return _cats; + } + + set + { + _cats = value; RaisePropertyChanged(nameof(Cats)); + } + + } + + protected ObservableCollection _ccts; + /// + /// Gets or sets the rml ccts. + /// + + public virtual ObservableCollection Ccts + { + get + { + return _ccts; + } + + set + { + _ccts = value; RaisePropertyChanged(nameof(Ccts)); + } + + } + + protected FiberShape _fibershape; + /// + /// Gets or sets the rml fiber shapes. + /// + + public virtual FiberShape FiberShape + { + get + { + return _fibershape; + } + + set + { + _fibershape = value; RaisePropertyChanged(nameof(FiberShape)); + } + + } + + protected FiberSynth _fibersynth; + /// + /// Gets or sets the rml fiber synths. + /// + + public virtual FiberSynth FiberSynth + { + get + { + return _fibersynth; + } + + set + { + _fibersynth = value; RaisePropertyChanged(nameof(FiberSynth)); + } + + } + + protected ObservableCollection _jobs; + /// + /// Gets or sets the rml jobs. + /// + + public virtual ObservableCollection Jobs + { + get + { + return _jobs; + } + + set + { + _jobs = value; RaisePropertyChanged(nameof(Jobs)); + } + + } + + protected LinearMassDensityUnit _linearmassdensityunit; + /// + /// Gets or sets the rml linear mass density units. + /// + + public virtual LinearMassDensityUnit LinearMassDensityUnit + { + get + { + return _linearmassdensityunit; + } + + set + { + _linearmassdensityunit = value; RaisePropertyChanged(nameof(LinearMassDensityUnit)); + } + + } + + protected ObservableCollection _liquidtypesrmls; + /// + /// Gets or sets the rml liquid types rmls. + /// + + public virtual ObservableCollection LiquidTypesRmls + { + get + { + return _liquidtypesrmls; + } + + set + { + _liquidtypesrmls = value; RaisePropertyChanged(nameof(LiquidTypesRmls)); + } + + } + + protected MediaColor _mediacolor; + /// + /// Gets or sets the rml media colors. + /// + + public virtual MediaColor MediaColor + { + get + { + return _mediacolor; + } + + set + { + _mediacolor = value; RaisePropertyChanged(nameof(MediaColor)); + } + + } + + protected MediaCondition _mediacondition; + /// + /// Gets or sets the rml media conditions. + /// + + public virtual MediaCondition MediaCondition + { + get + { + return _mediacondition; + } + + set + { + _mediacondition = value; RaisePropertyChanged(nameof(MediaCondition)); + } + + } + + protected MediaMaterial _mediamaterial; + /// + /// Gets or sets the rml media materials. + /// + + public virtual MediaMaterial MediaMaterial + { + get + { + return _mediamaterial; + } + + set + { + _mediamaterial = value; RaisePropertyChanged(nameof(MediaMaterial)); + } + + } + + protected MediaPurpos _mediapurpose; + /// + /// Gets or sets the rml media purposes. + /// + + public virtual MediaPurpos MediaPurpose + { + get + { + return _mediapurpose; + } + + set + { + _mediapurpose = value; RaisePropertyChanged(nameof(MediaPurpose)); + } + + } + + protected ObservableCollection _processparameterstablesgroups; + /// + /// Gets or sets the rml process parameters tables groups. + /// + + public virtual ObservableCollection ProcessParametersTablesGroups + { + get + { + return _processparameterstablesgroups; + } + + set + { + _processparameterstablesgroups = value; RaisePropertyChanged(nameof(ProcessParametersTablesGroups)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Rml() : base() + { + + Cats = new ObservableCollection(); + + Ccts = new ObservableCollection(); + + Jobs = new ObservableCollection(); + + LiquidTypesRmls = new ObservableCollection(); + + ProcessParametersTablesGroups = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Role.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Role.cs new file mode 100644 index 000000000..e1aef394e --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Role.cs @@ -0,0 +1,125 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("ROLES")] + public partial class Role : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the role code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the role name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _description; + /// + /// Gets or sets the role description. + /// + [Column("DESCRIPTION")] + + public String Description + { + get + { + return _description; + } + + set + { + _description = value; RaisePropertyChanged(nameof(Description)); + } + + } + + protected ObservableCollection _rolespermissions; + /// + /// Gets or sets the role roles permissions. + /// + + public virtual ObservableCollection RolesPermissions + { + get + { + return _rolespermissions; + } + + set + { + _rolespermissions = value; RaisePropertyChanged(nameof(RolesPermissions)); + } + + } + + protected ObservableCollection _usersroles; + /// + /// Gets or sets the role users roles. + /// + + public virtual ObservableCollection UsersRoles + { + get + { + return _usersroles; + } + + set + { + _usersroles = value; RaisePropertyChanged(nameof(UsersRoles)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Role() : base() + { + + RolesPermissions = new ObservableCollection(); + + UsersRoles = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/RolesPermission.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/RolesPermission.cs new file mode 100644 index 000000000..8d81ace27 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/RolesPermission.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("ROLES_PERMISSIONS")] + public partial class RolesPermission : ObservableEntity + { + + protected String _roleguid; + /// + /// Gets or sets the rolespermission role guid. + /// + [Column("ROLE_GUID")] + [ForeignKey("Role")] + public String RoleGuid + { + get + { + return _roleguid; + } + + set + { + _roleguid = value; RaisePropertyChanged(nameof(RoleGuid)); + } + + } + + protected String _permissionguid; + /// + /// Gets or sets the rolespermission permission guid. + /// + [Column("PERMISSION_GUID")] + [ForeignKey("Permission")] + public String PermissionGuid + { + get + { + return _permissionguid; + } + + set + { + _permissionguid = value; RaisePropertyChanged(nameof(PermissionGuid)); + } + + } + + protected Permission _permission; + /// + /// Gets or sets the rolespermission permission. + /// + + public virtual Permission Permission + { + get + { + return _permission; + } + + set + { + _permission = value; RaisePropertyChanged(nameof(Permission)); + } + + } + + protected Role _role; + /// + /// Gets or sets the rolespermission role. + /// + + public virtual Role Role + { + get + { + return _role; + } + + set + { + _role = value; RaisePropertyChanged(nameof(Role)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public RolesPermission() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Segment.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Segment.cs new file mode 100644 index 000000000..6a2b59b04 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Segment.cs @@ -0,0 +1,123 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("SEGMENTS")] + public partial class Segment : ObservableEntity + { + + protected String _name; + /// + /// Gets or sets the segment name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _jobguid; + /// + /// Gets or sets the segment job guid. + /// + [Column("JOB_GUID")] + [ForeignKey("Job")] + public String JobGuid + { + get + { + return _jobguid; + } + + set + { + _jobguid = value; RaisePropertyChanged(nameof(JobGuid)); + } + + } + + protected Double _length; + /// + /// Gets or sets the segment length. + /// + [Column("LENGTH")] + + public Double Length + { + get + { + return _length; + } + + set + { + _length = value; RaisePropertyChanged(nameof(Length)); + } + + } + + protected ObservableCollection _brushstops; + /// + /// Gets or sets the segment brush stops. + /// + + public virtual ObservableCollection BrushStops + { + get + { + return _brushstops; + } + + set + { + _brushstops = value; RaisePropertyChanged(nameof(BrushStops)); + } + + } + + protected Job _job; + /// + /// Gets or sets the segment job. + /// + + public virtual Job Job + { + get + { + return _job; + } + + set + { + _job = value; RaisePropertyChanged(nameof(Job)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Segment() : base() + { + + BrushStops = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/Sensor.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Sensor.cs new file mode 100644 index 000000000..7237f0067 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/Sensor.cs @@ -0,0 +1,202 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("SENSORS")] + public partial class Sensor : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the sensor code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the sensor name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _description; + /// + /// Gets or sets the sensor description. + /// + [Column("DESCRIPTION")] + + public String Description + { + get + { + return _description; + } + + set + { + _description = value; RaisePropertyChanged(nameof(Description)); + } + + } + + protected Double _min; + /// + /// Gets or sets the sensor min. + /// + [Column("MIN")] + + public Double Min + { + get + { + return _min; + } + + set + { + _min = value; RaisePropertyChanged(nameof(Min)); + } + + } + + protected Double _max; + /// + /// Gets or sets the sensor max. + /// + [Column("MAX")] + + public Double Max + { + get + { + return _max; + } + + set + { + _max = value; RaisePropertyChanged(nameof(Max)); + } + + } + + protected String _units; + /// + /// Gets or sets the sensor units. + /// + [Column("UNITS")] + + public String Units + { + get + { + return _units; + } + + set + { + _units = value; RaisePropertyChanged(nameof(Units)); + } + + } + + protected Int32 _pointsperframe; + /// + /// Gets or sets the sensor points per frame. + /// + [Column("POINTS_PER_FRAME")] + + public Int32 PointsPerFrame + { + get + { + return _pointsperframe; + } + + set + { + _pointsperframe = value; RaisePropertyChanged(nameof(PointsPerFrame)); + } + + } + + protected Boolean _multichannel; + /// + /// Gets or sets the sensor multi channel. + /// + [Column("MULTI_CHANNEL")] + + public Boolean MultiChannel + { + get + { + return _multichannel; + } + + set + { + _multichannel = value; RaisePropertyChanged(nameof(MultiChannel)); + } + + } + + protected Int32 _channelcount; + /// + /// Gets or sets the sensor channel count. + /// + [Column("CHANNEL_COUNT")] + + public Int32 ChannelCount + { + get + { + return _channelcount; + } + + set + { + _channelcount = value; RaisePropertyChanged(nameof(ChannelCount)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public Sensor() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/SyncConfiguration.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/SyncConfiguration.cs new file mode 100644 index 000000000..de686469b --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/SyncConfiguration.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("SYNC_CONFIGURATIONS")] + public partial class SyncConfiguration : ObservableEntity + { + + /// + /// Initializes a new instance of the class. + /// + public SyncConfiguration() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/User.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/User.cs new file mode 100644 index 000000000..986146b83 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/User.cs @@ -0,0 +1,242 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("USERS")] + public partial class User : ObservableEntity + { + + protected Boolean _deleted; + /// + /// Gets or sets the user deleted. + /// + [Column("DELETED")] + + public Boolean Deleted + { + get + { + return _deleted; + } + + set + { + _deleted = value; RaisePropertyChanged(nameof(Deleted)); + } + + } + + protected String _email; + /// + /// Gets or sets the user email. + /// + [Column("EMAIL")] + + public String Email + { + get + { + return _email; + } + + set + { + _email = value; RaisePropertyChanged(nameof(Email)); + } + + } + + protected String _password; + /// + /// Gets or sets the user password. + /// + [Column("PASSWORD")] + + public String Password + { + get + { + return _password; + } + + set + { + _password = value; RaisePropertyChanged(nameof(Password)); + } + + } + + protected String _organizationguid; + /// + /// Gets or sets the user organization guid. + /// + [Column("ORGANIZATION_GUID")] + [ForeignKey("Organization")] + public String OrganizationGuid + { + get + { + return _organizationguid; + } + + set + { + _organizationguid = value; RaisePropertyChanged(nameof(OrganizationGuid)); + } + + } + + protected String _contactguid; + /// + /// Gets or sets the user contact guid. + /// + [Column("CONTACT_GUID")] + [ForeignKey("Contact")] + public String ContactGuid + { + get + { + return _contactguid; + } + + set + { + _contactguid = value; RaisePropertyChanged(nameof(ContactGuid)); + } + + } + + protected String _addressguid; + /// + /// Gets or sets the user address guid. + /// + [Column("ADDRESS_GUID")] + [ForeignKey("Address")] + public String AddressGuid + { + get + { + return _addressguid; + } + + set + { + _addressguid = value; RaisePropertyChanged(nameof(AddressGuid)); + } + + } + + protected Address _address; + /// + /// Gets or sets the user address. + /// + + public virtual Address Address + { + get + { + return _address; + } + + set + { + _address = value; RaisePropertyChanged(nameof(Address)); + } + + } + + protected Contact _contact; + /// + /// Gets or sets the user contact. + /// + + public virtual Contact Contact + { + get + { + return _contact; + } + + set + { + _contact = value; RaisePropertyChanged(nameof(Contact)); + } + + } + + protected ObservableCollection _machinesevents; + /// + /// Gets or sets the user machines events. + /// + + public virtual ObservableCollection MachinesEvents + { + get + { + return _machinesevents; + } + + set + { + _machinesevents = value; RaisePropertyChanged(nameof(MachinesEvents)); + } + + } + + protected Organization _organization; + /// + /// Gets or sets the user organization. + /// + + public virtual Organization Organization + { + get + { + return _organization; + } + + set + { + _organization = value; RaisePropertyChanged(nameof(Organization)); + } + + } + + protected ObservableCollection _usersroles; + /// + /// Gets or sets the user users roles. + /// + + public virtual ObservableCollection UsersRoles + { + get + { + return _usersroles; + } + + set + { + _usersroles = value; RaisePropertyChanged(nameof(UsersRoles)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public User() : base() + { + + MachinesEvents = new ObservableCollection(); + + UsersRoles = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/UsersRole.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/UsersRole.cs new file mode 100644 index 000000000..3b8b2194f --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/UsersRole.cs @@ -0,0 +1,120 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("USERS_ROLES")] + public partial class UsersRole : ObservableEntity + { + + protected Boolean _deleted; + /// + /// Gets or sets the usersrole deleted. + /// + [Column("DELETED")] + + public Boolean Deleted + { + get + { + return _deleted; + } + + set + { + _deleted = value; RaisePropertyChanged(nameof(Deleted)); + } + + } + + protected String _userguid; + /// + /// Gets or sets the usersrole user guid. + /// + [Column("USER_GUID")] + [ForeignKey("User")] + public String UserGuid + { + get + { + return _userguid; + } + + set + { + _userguid = value; RaisePropertyChanged(nameof(UserGuid)); + } + + } + + protected String _roleguid; + /// + /// Gets or sets the usersrole role guid. + /// + [Column("ROLE_GUID")] + [ForeignKey("Role")] + public String RoleGuid + { + get + { + return _roleguid; + } + + set + { + _roleguid = value; RaisePropertyChanged(nameof(RoleGuid)); + } + + } + + protected Role _role; + /// + /// Gets or sets the usersrole role. + /// + + public virtual Role Role + { + get + { + return _role; + } + + set + { + _role = value; RaisePropertyChanged(nameof(Role)); + } + + } + + protected User _user; + /// + /// Gets or sets the usersrole user. + /// + + public virtual User User + { + get + { + return _user; + } + + set + { + _user = value; RaisePropertyChanged(nameof(User)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public UsersRole() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/WindingMethod.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/WindingMethod.cs new file mode 100644 index 000000000..a77a42fdc --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/WindingMethod.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("WINDING_METHODS")] + public partial class WindingMethod : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the windingmethod code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the windingmethod name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _description; + /// + /// Gets or sets the windingmethod description. + /// + [Column("DESCRIPTION")] + + public String Description + { + get + { + return _description; + } + + set + { + _description = value; RaisePropertyChanged(nameof(Description)); + } + + } + + protected ObservableCollection _jobs; + /// + /// Gets or sets the windingmethod jobs. + /// + + public virtual ObservableCollection Jobs + { + get + { + return _jobs; + } + + set + { + _jobs = value; RaisePropertyChanged(nameof(Jobs)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public WindingMethod() : base() + { + + Jobs = new ObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/EntityFieldNameAttribute.cs b/Software/Visual_Studio/Tango.Integration/Observables/EntityFieldNameAttribute.cs new file mode 100644 index 000000000..6830b4cd7 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/EntityFieldNameAttribute.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Integration.Observables +{ + /// + /// Represents an property attribute. + /// + /// + public class EntityFieldNameAttribute : Attribute + { + /// + /// Gets or sets the table column name. + /// + public String Name { get; set; } + + /// + /// Initializes a new instance of the class. + /// + /// The column name. + public EntityFieldNameAttribute(String name) + { + Name = name; + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/ActionTypes.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/ActionTypes.cs new file mode 100644 index 000000000..ef45931de --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/ActionTypes.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.DAL.Observables +{ + public enum ActionTypes + { + + /// + /// (Some description) + /// + [Description("Some description")] + Action1 = 1, + + /// + /// (Some action 2 description) + /// + [Description("Some action 2 description")] + Action2yesss = 2, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Actions.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Actions.cs new file mode 100644 index 000000000..b4c60fea1 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Actions.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum Actions + { + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/CartridgeTypes.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/CartridgeTypes.cs new file mode 100644 index 000000000..bf74eb246 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/CartridgeTypes.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum CartridgeTypes + { + + /// + /// (Cartridge 1) + /// + [Description("Cartridge 1")] + Cartridge1 = 1, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/ColorSpaces.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/ColorSpaces.cs new file mode 100644 index 000000000..9c8688dc1 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/ColorSpaces.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum ColorSpaces + { + + /// + /// (Volume) + /// + [Description("Volume")] + Volume = 0, + + /// + /// (RGB) + /// + [Description("RGB")] + RGB = 1, + + /// + /// (CMYK) + /// + [Description("CMYK")] + CMYK = 2, + + /// + /// (LAB) + /// + [Description("LAB")] + LAB = 3, + + /// + /// (PANTON) + /// + [Description("PANTON")] + PANTON = 4, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/DispenserTypes.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/DispenserTypes.cs new file mode 100644 index 000000000..6b12c22df --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/DispenserTypes.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum DispenserTypes + { + + /// + /// (Dispenser 1) + /// + [Description("Dispenser 1")] + Dispenser1 = 1, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/EventTypes.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/EventTypes.cs new file mode 100644 index 000000000..66df05539 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/EventTypes.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.DAL.Observables +{ + public enum EventTypes + { + + /// + /// (Some event description) + /// + [Description("Some event description")] + Event1 = 1, + + /// + /// (Some event 2 description) + /// + [Description("Some event 2 description")] + Event2 = 2, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Events.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Events.cs new file mode 100644 index 000000000..0c23334fb --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Events.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum Events + { + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberShapes.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberShapes.cs new file mode 100644 index 000000000..e2cac4dde --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberShapes.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum FiberShapes + { + + /// + /// (Triangle) + /// + [Description("Triangle")] + Triangle = 1, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberSynthes.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberSynthes.cs new file mode 100644 index 000000000..4bc13b83a --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberSynthes.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.DAL.Observables +{ + public enum FiberSynthes + { + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberSynthesises.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberSynthesises.cs new file mode 100644 index 000000000..879f9fb31 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberSynthesises.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum FiberSynthesises + { + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberSynths.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberSynths.cs new file mode 100644 index 000000000..66ef5b189 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/FiberSynths.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.DAL.Observables +{ + public enum FiberSynths + { + + /// + /// (Some syntheses type) + /// + [Description("Some syntheses type")] + Somesynthesestype = 1, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/IdsPackFormulas.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/IdsPackFormulas.cs new file mode 100644 index 000000000..0ac09b4fd --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/IdsPackFormulas.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum IdsPackFormulas + { + + /// + /// (Standard Color IDS Pack Formula) + /// + [Description("Standard Color IDS Pack Formula")] + StandardColor = 0, + + /// + /// (Standard Color IDS Pack Formula) + /// + [Description("Diluter")] + Diluter = 1, + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/LinearMassDensityUnits.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/LinearMassDensityUnits.cs new file mode 100644 index 000000000..757033e67 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/LinearMassDensityUnits.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum LinearMassDensityUnits + { + + /// + /// (Dex) + /// + [Description("Dex")] + Dex = 1, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/LiquidTypes.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/LiquidTypes.cs new file mode 100644 index 000000000..bc2bf036b --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/LiquidTypes.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.DAL.Observables +{ + public enum LiquidTypes + { + + /// + /// (Cyan) + /// + [Description("Cyan")] + Cyan = 1, + + /// + /// (Red) + /// + [Description("Red")] + Red = 7, + + /// + /// (Transparent Ink) + /// + [Description("Transparent Ink")] + TransparentInk = 6, + + /// + /// (Magenta) + /// + [Description("Magenta")] + Magenta = 2, + + /// + /// (Lubricant) + /// + [Description("Lubricant")] + Lubricant = 5, + + /// + /// (Yellow) + /// + [Description("Yellow")] + Yellow = 2, + + /// + /// (Black) + /// + [Description("Black")] + Black = 4, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Liquids.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Liquids.cs new file mode 100644 index 000000000..5f318587f --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Liquids.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum Liquids + { + + /// + /// (Cyan) + /// + [Description("Cyan")] + Cyan = 1, + + /// + /// (Magenta) + /// + [Description("Magenta")] + Magenta = 2, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MediaConditions.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MediaConditions.cs new file mode 100644 index 000000000..0fd9c3ee5 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MediaConditions.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum MediaConditions + { + + /// + /// (Treated) + /// + [Description("Treated")] + Treated = 1, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MediaMaterials.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MediaMaterials.cs new file mode 100644 index 000000000..4292eca32 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MediaMaterials.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum MediaMaterials + { + + /// + /// (Nylon) + /// + [Description("Nylon")] + Nylon = 1, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MediaPurposes.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MediaPurposes.cs new file mode 100644 index 000000000..b859c3dad --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MediaPurposes.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum MediaPurposes + { + + /// + /// (Embroidery) + /// + [Description("Embroidery")] + Embroidery = 1, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MidTankTypes.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MidTankTypes.cs new file mode 100644 index 000000000..e536488e7 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/MidTankTypes.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum MidTankTypes + { + + /// + /// (Liter Tank 2) + /// + [Description("Liter Tank 2")] + LiterTank2 = 1, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Permissions.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Permissions.cs new file mode 100644 index 000000000..39014b04b --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Permissions.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum Permissions + { + + /// + /// (Allows loading the technician module in Machine Studio) + /// + [Description("Allows loading the technician module in Machine Studio")] + RunTechnicianModule = 0, + + /// + /// (Allows loading the developer module in Machine Studio) + /// + [Description("Allows loading the developer module in Machine Studio")] + RunDeveloperModule = 1, + + /// + /// (Allows loading the database module in Machine Studio) + /// + [Description("Allows loading the database module in Machine Studio")] + RunDataBaseModule = 2, + + /// + /// (Allows loading the synchronization module in machine studio) + /// + [Description("Allows loading the synchronization module in machine studio")] + RunSynchronizationModule = 3, + + /// + /// (Allows loading the machine designer module in Machine Studio) + /// + [Description("Allows loading the machine designer module in Machine Studio")] + RunMachineDesignerModule = 4, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Rmls.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Rmls.cs new file mode 100644 index 000000000..5f8bb5eef --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Rmls.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.DAL.Observables +{ + public enum Rmls + { + + /// + /// (RML 2) + /// + [Description("RML 2")] + RML2 = 0, + + /// + /// (RML 1) + /// + [Description("RML 1")] + RML1 = 0, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Roles.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Roles.cs new file mode 100644 index 000000000..9e81889ae --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Roles.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum Roles + { + + /// + /// (User with standard permissions) + /// + [Description("User with standard permissions")] + User = 0, + + /// + /// (Twine administrator) + /// + [Description("Twine administrator")] + Administrator = 1, + + /// + /// (Twine technician) + /// + [Description("Twine technician")] + Technician = 2, + + /// + /// (Twine Research and development) + /// + [Description("Twine Research and development")] + Developer = 3, + + /// + /// (Role Description) + /// + [Description("Role Description")] + SomeRole = 4, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Sensors.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Sensors.cs new file mode 100644 index 000000000..e069a123c --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/Sensors.cs @@ -0,0 +1,181 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum Sensors + { + + /// + /// (Dancer 1) + /// + [Description("Dancer 1")] + Dancer1Angle = 0, + + /// + /// (Dancer 2) + /// + [Description("Dancer 2")] + Dancer2Angle = 1, + + /// + /// (Dancer 3) + /// + [Description("Dancer 3")] + Dancer3Angle = 2, + + /// + /// (Feeder Motor) + /// + [Description("Feeder Motor")] + FeederMotorFrequency = 3, + + /// + /// (Dryer Motor) + /// + [Description("Dryer Motor")] + DryerMotor = 4, + + /// + /// (Poller Motor) + /// + [Description("Poller Motor")] + PollerMotor = 5, + + /// + /// (Winder Motor) + /// + [Description("Winder Motor")] + WinderMotor = 6, + + /// + /// (Screw Motor) + /// + [Description("Screw Motor")] + ScrewMotor = 7, + + /// + /// (Thread Speed) + /// + [Description("Thread Speed")] + ThreadSpeed = 8, + + /// + /// (Mixer) + /// + [Description("Mixer")] + MixerTemperature = 9, + + /// + /// (Head Zone 1) + /// + [Description("Head Zone 1")] + HeadZone1Temperature = 10, + + /// + /// (Head Zone 2) + /// + [Description("Head Zone 2")] + HeadZone2Temperature = 11, + + /// + /// (Head Zone 3) + /// + [Description("Head Zone 3")] + HeadZone3Temperature = 12, + + /// + /// (Head Air Flow) + /// + [Description("Head Air Flow")] + HeadAirFlow = 13, + + /// + /// (Feeder Tension) + /// + [Description("Feeder Tension")] + FeederTension = 14, + + /// + /// (Puller Tension) + /// + [Description("Puller Tension")] + PullerTension = 15, + + /// + /// (Dryer Zone 1) + /// + [Description("Dryer Zone 1")] + DryerZone1Temperature = 16, + + /// + /// (Dryer Zone 2) + /// + [Description("Dryer Zone 2")] + DryerZone2Temperature = 17, + + /// + /// (Dryer Zone 3) + /// + [Description("Dryer Zone 3")] + DryerZone3Temperature = 18, + + /// + /// (Dryer Air Flow) + /// + [Description("Dryer Air Flow")] + DryerAirFlow = 19, + + /// + /// (Winder Tension) + /// + [Description("Winder Tension")] + WinderTension = 20, + + /// + /// (Dispensers Motors) + /// + [Description("Dispensers Motors")] + DispensersMotorsFrequency = 21, + + /// + /// (Dispensers Angular Encoders) + /// + [Description("Dispensers Angular Encoders")] + DispensersAngularEncoders = 22, + + /// + /// (Dispensers Linear Positions) + /// + [Description("Dispensers Linear Positions")] + DispensersLinearPositions = 23, + + /// + /// (Dispensers Pressure) + /// + [Description("Dispensers Pressure")] + DispensersPressure = 24, + + /// + /// (Mid Tank Pressure) + /// + [Description("Mid Tank Pressure")] + MidTankPressure = 25, + + /// + /// (Filter Delta Pressure) + /// + [Description("Filter Delta Pressure")] + FilterDeltaPressure = 26, + + /// + /// (Chiller Temperature) + /// + [Description("Chiller Temperature")] + ChillerTemperature = 27, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/WindingMethods.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/WindingMethods.cs new file mode 100644 index 000000000..91eeaeed7 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/WindingMethods.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum WindingMethods + { + + /// + /// (Embroidery Winding) + /// + [Description("Embroidery Winding")] + Embroidery = 0, + + /// + /// (Calibration Winding) + /// + [Description("Calibration Winding")] + Calibration = 1, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/ConfigurationExtensions.cs b/Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/ConfigurationExtensions.cs new file mode 100644 index 000000000..c842f3c30 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/ConfigurationExtensions.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Observables; + +/// +/// Contains extension methods. +/// +public static class ConfigurationExtensions +{ + /// + /// Clones the configuration along with it's IDS packs. + /// + /// The configuration. + /// + public static Configuration CloneConfiguration(this Configuration configuration) + { + Configuration cloned = configuration.CloneEntity(); + cloned.CreationDate = DateTime.UtcNow; + + foreach (var idsPack in configuration.IdsPacks) + { + IdsPack clonedPack = idsPack.CloneEntity(); + clonedPack.Configuration = cloned; + clonedPack.DispenserType = idsPack.DispenserType; + clonedPack.CartridgeType = idsPack.CartridgeType; + clonedPack.MidTankType = idsPack.MidTankType; + clonedPack.IdsPackFormula = idsPack.IdsPackFormula; + cloned.IdsPacks.Add(clonedPack); + } + + return cloned; + } +} + diff --git a/Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/ObservableEntityExtensions.cs b/Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/ObservableEntityExtensions.cs new file mode 100644 index 000000000..b4c26f414 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/ObservableEntityExtensions.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Observables; + +/// +/// Contains extension methods. +/// +public static class ObservableEntityExtensions +{ + /// + /// Performs a shallow cloning of this entity. + /// + /// + /// The entity. + /// + public static T CloneEntity(this T entity) where T : class, IObservableEntity + { + T cloned = entity.ShallowClone(); + cloned.ID = 0; + cloned.Guid = Guid.NewGuid().ToString(); + cloned.LastUpdated = DateTime.UtcNow; + return cloned; + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/ProcessParametersTablesGroupExtensions.cs b/Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/ProcessParametersTablesGroupExtensions.cs new file mode 100644 index 000000000..287597b3e --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/ProcessParametersTablesGroupExtensions.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Observables; + +public static class ProcessParametersTablesGroupExtensions +{ + public static ProcessParametersTablesGroup CloneGroup(this ProcessParametersTablesGroup group) + { + ProcessParametersTablesGroup cloned = group.CloneEntity(); + + List tables = new List(); + foreach (var table in group.ProcessParametersTables) + { + var newTable = table.CloneEntity(); + newTable.ProcessParametersTablesGroup = cloned; + tables.Add(newTable); + } + + cloned.ProcessParametersTables = tables.ToObservableCollection(); + + return cloned; + } +} + diff --git a/Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs b/Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs new file mode 100644 index 000000000..0439d57b0 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Data.Entity; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Core; + +namespace Tango.Integration.Observables +{ + /// + /// Represents an observable database entity. + /// + public interface IObservableEntity : IParameterized + { + /// + /// Occurs after this observable has been saved. + /// + event EventHandler Saved; + + /// + /// Gets or sets the entity identifier. + /// + [Column("ID")] + [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] + Int32 ID { get; set; } + + /// + /// Gets or sets the entity unique identifier. + /// + [Key] + [Column("GUID")] + String Guid { get; set; } + + /// + /// Gets or sets the entity last updated data and time. + /// + [Column("LAST_UPDATED")] + DateTime LastUpdated { get; set; } + + /// + /// Saves the changes on this entity to database. + /// + void Save(); + + /// + /// Attaches this observable to the proper DbSet. + /// + void Attach(); + + /// + /// Detaches this observable from the proper DbSet. + /// + void Detach(); + + /// + /// Saves the changes on this entity to database asynchronously. + /// + /// + Task SaveAsync(); + + /// + /// Deletes this entity from the database. + /// + void Delete(); + + /// + /// Deletes this entity without saving changes to data base. + /// + void DefferedDelete(); + + /// + /// Deletes this entity from the database. + /// + Task DeleteAsync(); + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/ObservableEntity.cs b/Software/Visual_Studio/Tango.Integration/Observables/ObservableEntity.cs new file mode 100644 index 000000000..6ce7f0012 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/ObservableEntity.cs @@ -0,0 +1,253 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Data.Entity; +using System.Globalization; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using Tango.Core; +using Tango.DAL.Remote.DB; +using Tango.DAL.Remote; +using Tango.Settings; +using Tango.Core.Helpers; +using System.ComponentModel.DataAnnotations.Schema; +using System.ComponentModel.DataAnnotations; +using System.Runtime.CompilerServices; + +namespace Tango.Integration.Observables +{ + /// + /// Represents a generic observable entity base class. + /// + /// + /// + /// + public abstract class ObservableEntity : ExtendedObject, IObservableEntity where T : class, IObservableEntity + { + private Regex regExDAL; + + /// + /// Occurs after this observable has been saved. + /// + public event EventHandler Saved; + + private Int32 _id; + /// + /// Gets or sets the entity identifier. + /// + [Column("ID")] + [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] + public Int32 ID + { + get { return _id; } + set { _id = value; RaisePropertyChanged(nameof(ID)); } + } + + private String _guid; + /// + /// Gets or sets the entity unique identifier. + /// + [Key] + [Column("GUID")] + public String Guid + { + get { return _guid; } + set { _guid = value; RaisePropertyChanged(nameof(Guid)); } + } + + private DateTime _lastUpdated; + /// + /// Gets or sets the entity last updated data and time. + /// + [Column("LAST_UPDATED")] + public DateTime LastUpdated + { + get { return _lastUpdated; } + set { _lastUpdated = value; RaisePropertyChanged(nameof(LastUpdated)); } + } + + private ReadOnlyObservableCollection _parameters; + /// + /// Gets a bind-able observable collection of the component properties. + /// + [NotMapped] + public ReadOnlyObservableCollection Parameters + { + get { return _parameters; } + set { _parameters = value; RaisePropertyChangedAuto(); } + } + + /// + /// Initializes a new instance of the class. + /// + public ObservableEntity() + { + Guid = System.Guid.NewGuid().ToString(); + LastUpdated = DateTime.UtcNow; + regExDAL = new Regex(@" + (?<=[A-Z])(?=[A-Z][a-z]) | + (?<=[^A-Z])(?=[A-Z]) | + (?<=[A-Za-z])(?=[^A-Za-z])", RegexOptions.IgnorePatternWhitespace); + + if (!DesignMode) + { + ThreadsHelper.InvokeUI(() => + { + Parameters = new ReadOnlyObservableCollection(this.CreateParametersCollection(ParameterItemMode.Binding)); + }); + } + } + + /// + /// Saves the changes on this entity to database. + /// + public virtual void Save() + { + ObservablesEntitiesAdapter.Instance.SaveChanges(); + Saved?.Invoke(this, new EventArgs()); + } + + /// + /// Attaches this entity to the proper DbSet. + /// + public virtual void Attach() + { + GetDbSet().Add(this as T); + } + + /// + /// Detaches this observable from the proper DbSet. + /// + public virtual void Detach() + { + GetDbSet().Remove(this as T); + } + + /// + /// Saves the changes on this entity to database asynchronously. + /// + /// + public Task SaveAsync() + { + return Task.Factory.StartNew(() => + { + Save(); + }); + } + + /// + /// Deletes this entity from the database + /// + public virtual void Delete() + { + var delProp = this.GetType().GetProperty("Deleted"); + + if (delProp != null) + { + delProp.SetValue(this, true); + Save(); + } + else + { + GetDbSet().Remove(this as T); + Save(); + } + } + + /// + /// Deletes this entity without saving changes to data base. + /// + public virtual void DefferedDelete() + { + GetDbSet().Remove(this as T); + } + + /// + /// Deletes this entity from the database + /// + public Task DeleteAsync() + { + return Task.Factory.StartNew(() => + { + Delete(); + }); + } + + /// + /// Gets the observable database set. + /// + /// + public DbSet GetDbSet() + { + String tabelName = this.GetType().Name.PluralizeMVC(); + var p = typeof(ObservablesContext).GetProperty(tabelName); + if (p != null) + { + var set1 = p.GetValue(ObservablesEntitiesAdapter.Instance.Context) as DbSet; + return set1; + } + else + { + tabelName = this.GetType().BaseType.Name.PluralizeMVC(); + p = typeof(ObservablesContext).GetProperty(tabelName); + if (p != null) + { + var set2 = p.GetValue(ObservablesEntitiesAdapter.Instance.Context) as DbSet; + return set2; + } + } + + return null; + } + + #region Operator Overloading + + //public static bool operator ==(ObservableEntityBase observable1, ObservableEntityBase observable2) + //{ + // if (object.ReferenceEquals(observable1, null) || object.ReferenceEquals(observable2, null)) + // { + // return object.ReferenceEquals(observable1, observable2); + // } + + // return observable1.Guid.ToLower() == observable2.Guid.ToLower(); + //} + + //public static bool operator !=(ObservableEntityBase observable1, ObservableEntityBase observable2) + //{ + // if (object.ReferenceEquals(observable1, null) || object.ReferenceEquals(observable2, null)) + // { + // return !object.ReferenceEquals(observable1, observable2); + // } + + // return observable1.Guid.ToLower() != observable2.Guid.ToLower(); + //} + + //public override bool Equals(object obj) + //{ + // if (object.ReferenceEquals(this, null) || object.ReferenceEquals(obj, null)) + // { + // return object.ReferenceEquals(this, obj); + // } + + // if (obj is ObservableEntityBase) + // { + // return Guid.ToLower() == (obj as ObservableEntityBase).Guid.ToLower(); + // } + // else + // { + // return false; + // } + //} + + public override int GetHashCode() + { + return base.GetHashCode(); + } + + #endregion + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/ObservablesContext.cs b/Software/Visual_Studio/Tango.Integration/Observables/ObservablesContext.cs new file mode 100644 index 000000000..42b650dc8 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/ObservablesContext.cs @@ -0,0 +1,451 @@ +using System; +using System.Collections.Generic; +using System.Data.Entity; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Settings; + +namespace Tango.Integration.Observables +{ + public class ObservablesContext : DbContext + { + /// + /// Initializes a new instance of the class. + /// + /// The server file path. + /// if set to true will try to connect to an .mdf file. + public ObservablesContext(String path, bool isFile) : base(ComposeConnectionString(path, isFile)) + { + + } + + /// + /// Composes the connection string. + /// + /// The source. + /// if set to true [is file]. + /// + private static String ComposeConnectionString(String source, bool isFile) + { + if (!isFile) + { + return String.Format("Data Source={0};Initial Catalog=Tango;Integrated Security=true", source); + } + else + { + return null; + } + } + + /// + /// Creates a default remote database context by the address specified in . + /// + /// + public static ObservablesContext CreateDefault() + { + return new ObservablesContext(SettingsManager.Default.DataBase.SQLServerAddress, false); + } + + /// + /// Gets or sets the ActionTypes. + /// + public DbSet ActionTypes + { + get; set; + } + + /// + /// Gets or sets the Addresses. + /// + public DbSet
Addresses + { + get; set; + } + + /// + /// Gets or sets the ApplicationDisplayPanelVersions. + /// + public DbSet ApplicationDisplayPanelVersions + { + get; set; + } + + /// + /// Gets or sets the ApplicationFirmwareVersions. + /// + public DbSet ApplicationFirmwareVersions + { + get; set; + } + + /// + /// Gets or sets the ApplicationOsVersions. + /// + public DbSet ApplicationOsVersions + { + get; set; + } + + /// + /// Gets or sets the ApplicationVersions. + /// + public DbSet ApplicationVersions + { + get; set; + } + + /// + /// Gets or sets the BrushStops. + /// + public DbSet BrushStops + { + get; set; + } + + /// + /// Gets or sets the CartridgeTypes. + /// + public DbSet CartridgeTypes + { + get; set; + } + + /// + /// Gets or sets the Cats. + /// + public DbSet Cats + { + get; set; + } + + /// + /// Gets or sets the Ccts. + /// + public DbSet Ccts + { + get; set; + } + + /// + /// Gets or sets the ColorSpaces. + /// + public DbSet ColorSpaces + { + get; set; + } + + /// + /// Gets or sets the Configurations. + /// + public DbSet Configurations + { + get; set; + } + + /// + /// Gets or sets the Contacts. + /// + public DbSet Contacts + { + get; set; + } + + /// + /// Gets or sets the DispenserTypes. + /// + public DbSet DispenserTypes + { + get; set; + } + + /// + /// Gets or sets the EmbeddedFirmwareVersions. + /// + public DbSet EmbeddedFirmwareVersions + { + get; set; + } + + /// + /// Gets or sets the EmbeddedSoftwareVersions. + /// + public DbSet EmbeddedSoftwareVersions + { + get; set; + } + + /// + /// Gets or sets the EventTypes. + /// + public DbSet EventTypes + { + get; set; + } + + /// + /// Gets or sets the EventTypesActions. + /// + public DbSet EventTypesActions + { + get; set; + } + + /// + /// Gets or sets the FiberShapes. + /// + public DbSet FiberShapes + { + get; set; + } + + /// + /// Gets or sets the FiberSynths. + /// + public DbSet FiberSynths + { + get; set; + } + + /// + /// Gets or sets the HardwareVersions. + /// + public DbSet HardwareVersions + { + get; set; + } + + /// + /// Gets or sets the IdsPackFormulas. + /// + public DbSet IdsPackFormulas + { + get; set; + } + + /// + /// Gets or sets the IdsPacks. + /// + public DbSet IdsPacks + { + get; set; + } + + /// + /// Gets or sets the JobRuns. + /// + public DbSet JobRuns + { + get; set; + } + + /// + /// Gets or sets the Jobs. + /// + public DbSet Jobs + { + get; set; + } + + /// + /// Gets or sets the LinearMassDensityUnits. + /// + public DbSet LinearMassDensityUnits + { + get; set; + } + + /// + /// Gets or sets the LiquidTypes. + /// + public DbSet LiquidTypes + { + get; set; + } + + /// + /// Gets or sets the LiquidTypesRmls. + /// + public DbSet LiquidTypesRmls + { + get; set; + } + + /// + /// Gets or sets the MachineVersions. + /// + public DbSet MachineVersions + { + get; set; + } + + /// + /// Gets or sets the Machines. + /// + public DbSet Machines + { + get; set; + } + + /// + /// Gets or sets the MachinesConfigurations. + /// + public DbSet MachinesConfigurations + { + get; set; + } + + /// + /// Gets or sets the MachinesEvents. + /// + public DbSet MachinesEvents + { + get; set; + } + + /// + /// Gets or sets the MediaColors. + /// + public DbSet MediaColors + { + get; set; + } + + /// + /// Gets or sets the MediaConditions. + /// + public DbSet MediaConditions + { + get; set; + } + + /// + /// Gets or sets the MediaMaterials. + /// + public DbSet MediaMaterials + { + get; set; + } + + /// + /// Gets or sets the MediaPurposes. + /// + public DbSet MediaPurposes + { + get; set; + } + + /// + /// Gets or sets the MidTankTypes. + /// + public DbSet MidTankTypes + { + get; set; + } + + /// + /// Gets or sets the Organizations. + /// + public DbSet Organizations + { + get; set; + } + + /// + /// Gets or sets the Permissions. + /// + public DbSet Permissions + { + get; set; + } + + /// + /// Gets or sets the ProcessParametersTables. + /// + public DbSet ProcessParametersTables + { + get; set; + } + + /// + /// Gets or sets the ProcessParametersTablesGroups. + /// + public DbSet ProcessParametersTablesGroups + { + get; set; + } + + /// + /// Gets or sets the Rmls. + /// + public DbSet Rmls + { + get; set; + } + + /// + /// Gets or sets the Roles. + /// + public DbSet Roles + { + get; set; + } + + /// + /// Gets or sets the RolesPermissions. + /// + public DbSet RolesPermissions + { + get; set; + } + + /// + /// Gets or sets the Segments. + /// + public DbSet Segments + { + get; set; + } + + /// + /// Gets or sets the Sensors. + /// + public DbSet Sensors + { + get; set; + } + + /// + /// Gets or sets the SyncConfigurations. + /// + public DbSet SyncConfigurations + { + get; set; + } + + /// + /// Gets or sets the Users. + /// + public DbSet Users + { + get; set; + } + + /// + /// Gets or sets the UsersRoles. + /// + public DbSet UsersRoles + { + get; set; + } + + /// + /// Gets or sets the WindingMethods. + /// + public DbSet WindingMethods + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/ObservablesEntitiesAdapter.cs b/Software/Visual_Studio/Tango.Integration/Observables/ObservablesEntitiesAdapter.cs new file mode 100644 index 000000000..768da617e --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/ObservablesEntitiesAdapter.cs @@ -0,0 +1,298 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel; +using System.Data.Entity; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Data; +using System.Windows.Threading; +using Tango.Core; +using Tango.DAL.Remote.DB; +using Tango.Settings; + +namespace Tango.Integration.Observables +{ + /// + /// Exposes method for retrieving observable collections of observable entities. + /// + /// + public partial class ObservablesEntitiesAdapter : ExtendedObject + { + public event Action Initialized; + + private static object _syncLock; + + private static ObservablesEntitiesAdapter _instance; + /// + /// Gets the singleton instance. + /// + public static ObservablesEntitiesAdapter Instance + { + get + { + if (_instance == null) + { + _instance = new ObservablesEntitiesAdapter(); + } + return _instance; + } + } + + /// + /// Gets the DB context. + /// + public ObservablesContext Context { get; private set; } + + /// + /// Performs an implicit conversion from to . + /// + /// The instance. + /// + /// The result of the conversion. + /// + public static implicit operator DbContext(ObservablesEntitiesAdapter instance) + { + return instance.Context; + } + + /// + /// Prevents a default instance of the class from being created. + /// + private ObservablesEntitiesAdapter() + { + Context = new ObservablesContext(SettingsManager.Default.DataBase.SQLServerAddress, false); + } + + /// + /// Initializes this instance. + /// + public void Initialize() + { + Invalidate(true); + Initialized?.Invoke(); + } + + /// + /// Saves the current changes to database. + /// + public void SaveChanges() + { + try + { + Context.SaveChanges(); + } + catch (Exception ex) + { + throw ex; + } + finally + { + Invalidate(); + } + } + + /// + /// Invokes the specified action on the adapter synchronization context. + /// + /// The action. + public void Invoke(Action action) + { + lock (_syncLock) + { + action(); + } + } + + /// + /// Invalidates the adapter and reloads the database. + /// + /// if set to true [initializing]. + public void Invalidate(bool initializing = false) + { + _syncLock = new object(); + + if (initializing) + { + //Remove Unlinked Configurations.. + List remove_configurations = new List(); + + foreach (var config in Context.Configurations) + { + if (Context.MachineVersions.FirstOrDefault(x => x.DefaultConfigurationGuid == config.Guid) != null) + { + continue; + } + + if (Context.MachinesConfigurations.FirstOrDefault(x => x.ConfigurationGuid == config.Guid) != null) + { + continue; + } + + if (Context.Machines.FirstOrDefault(x => x.ConfigurationGuid == config.Guid) != null) + { + continue; + } + + remove_configurations.Add(config); + } + + foreach (var config in remove_configurations) + { + Context.Configurations.Remove(config); + } + + Context.SaveChanges(); + //Remove Unlinked Configurations.. + } + + Organizations = Context.Organizations.ToObservableCollection(); + + Machines = Context.Machines.ToObservableCollection(); + + foreach (var machine in Machines) + { + machine.MachinesConfigurations = machine.MachinesConfigurations.OrderByDescending(x => x.Configuration.CreationDate).Take(30).ToObservableCollection(); + machine.Jobs = machine.Jobs.OrderByDescending(x => x.CreationDate).ToObservableCollection(); + } + + MachinesConfigurations = Context.MachinesConfigurations.ToObservableCollection(); + + MachineVersions = Context.MachineVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); + + Addresses = Context.Addresses.Where(x => !x.Deleted).ToList().OrderBy(x => x.AddressString).ToObservableCollection(); + Contacts = Context.Contacts.Where(x => !x.Deleted).ToList().OrderBy(x => x.FullName).ToObservableCollection(); + + Roles = Context.Roles.ToList().OrderBy(x => x.Name).ToObservableCollection(); + + Permissions = Context.Permissions.ToList().OrderBy(x => x.Name).ToObservableCollection(); + + UsersRoles = Context.UsersRoles.ToObservableCollection(); + + Users = Context.Users.Where(x => !x.Deleted).ToList().OrderBy(x => x.Contact.FullName).ToObservableCollection(); + + //foreach (var user in Users) + //{ + // user.UsersRoles = user.UsersRoles.Where(x => !x.Deleted).ToObservableCollection(); + //} + + foreach (var role in Roles) + { + role.RolesPermissions = role.RolesPermissions.ToObservableCollection(); + } + + Configurations = Context.Configurations.ToList().OrderBy(x => x.LastUpdated).ToObservableCollection(); + + foreach (var config in Configurations) + { + config.IdsPacks = config.IdsPacks.ToObservableCollection(); + } + + ApplicationVersions = Context.ApplicationVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); + + ApplicationOsVersions = Context.ApplicationOsVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); + + ApplicationFirmwareVersions = Context.ApplicationFirmwareVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); + + ApplicationDisplayPanelVersions = Context.ApplicationDisplayPanelVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); + + EmbeddedFirmwareVersions = Context.EmbeddedFirmwareVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); + + EmbeddedSoftwareVersions = Context.EmbeddedSoftwareVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); + + HardwareVersions = Context.HardwareVersions.ToList().OrderBy(x => x.Version).ToObservableCollection(); + + IdsPacks = Context.IdsPacks.ToObservableCollection(); + + DispenserTypes = Context.DispenserTypes.ToObservableCollection(); + + LiquidTypes = Context.LiquidTypes.ToObservableCollection(); + + CartridgeTypes = Context.CartridgeTypes.ToObservableCollection(); + + MidTankTypes = Context.MidTankTypes.ToObservableCollection(); + + ActionTypes = Context.ActionTypes.ToObservableCollection(); + + EventTypesActions = Context.EventTypesActions.ToObservableCollection(); + + EventTypes = Context.EventTypes.ToObservableCollection(); + + foreach (var eventType in EventTypes) + { + eventType.EventTypesActions = eventType.EventTypesActions.ToObservableCollection(); + } + + MediaMaterials = Context.MediaMaterials.ToObservableCollection(); + + MediaColors = Context.MediaColors.ToObservableCollection(); + + MediaPurposes = Context.MediaPurposes.ToObservableCollection(); + + MediaConditions = Context.MediaConditions.ToObservableCollection(); + + LinearMassDensityUnits = Context.LinearMassDensityUnits.ToObservableCollection(); + + FiberShapes = Context.FiberShapes.ToObservableCollection(); + + FiberSynths = Context.FiberSynths.ToObservableCollection(); + + Rmls = Context.Rmls.ToObservableCollection(); + + LiquidTypesRmls = Context.LiquidTypesRmls.ToObservableCollection(); + + Ccts = Context.Ccts.ToObservableCollection(); + + Cats = Context.Cats.ToObservableCollection(); + + ProcessParametersTables = Context.ProcessParametersTables.ToObservableCollection(); + + ProcessParametersTablesGroups = Context.ProcessParametersTablesGroups.ToObservableCollection(); + + foreach (var group in ProcessParametersTablesGroups) + { + group.ProcessParametersTables = group.ProcessParametersTables.OrderBy(x => x.TableIndex).ToObservableCollection(); + } + + WindingMethods = Context.WindingMethods.ToObservableCollection(); + + Sensors = Context.Sensors.ToObservableCollection(); + + IdsPackFormulas = Context.IdsPackFormulas.ToObservableCollection(); + + ColorSpaces = Context.ColorSpaces.ToObservableCollection(); + + InitCollectionSources(); + + //var action = ActionTypes.First(); + + //action.Name = "Action 1 Yesss"; + + //SaveChanges(); + + //BindingOperations.EnableCollectionSynchronization(Machines, _syncLock); + //BindingOperations.EnableCollectionSynchronization(MachinesViewSource, _syncLock); + + //BindingOperations.EnableCollectionSynchronization(MachinesConfigurations, _syncLock); + //BindingOperations.EnableCollectionSynchronization(MachinesConfigurationsViewSource, _syncLock); + + //BindingOperations.EnableCollectionSynchronization(EventTypesActions, _syncLock); + //BindingOperations.EnableCollectionSynchronization(EventTypesActionsViewSource, _syncLock); + } + + /// + /// Creates a collection view from the specified observable collection. + /// + /// + /// The collection. + /// + private ICollectionView CreateCollectionView(ObservableCollection collection) + { + var view = CollectionViewSource.GetDefaultView(collection); + return view; + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/ObservablesEntitiesAdapterExtension.cs b/Software/Visual_Studio/Tango.Integration/Observables/ObservablesEntitiesAdapterExtension.cs new file mode 100644 index 000000000..ad549d916 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/ObservablesEntitiesAdapterExtension.cs @@ -0,0 +1,1917 @@ +using System.Collections.ObjectModel; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public partial class ObservablesEntitiesAdapter + { + + private ObservableCollection _actiontypes; + /// + /// Gets or sets the ActionTypes. + /// + public ObservableCollection ActionTypes + { + get + { + return _actiontypes; + } + + set + { + _actiontypes = value; RaisePropertyChanged(nameof(ActionTypes)); + } + + } + + private ICollectionView _actiontypesViewSource; + /// + /// Gets or sets the ActionTypes View Source. + /// + public ICollectionView ActionTypesViewSource + { + get + { + return _actiontypesViewSource; + } + + set + { + _actiontypesViewSource = value; RaisePropertyChanged(nameof(ActionTypesViewSource)); + } + + } + + private ObservableCollection
_addresses; + /// + /// Gets or sets the Addresses. + /// + public ObservableCollection
Addresses + { + get + { + return _addresses; + } + + set + { + _addresses = value; RaisePropertyChanged(nameof(Addresses)); + } + + } + + private ICollectionView _addressesViewSource; + /// + /// Gets or sets the Addresses View Source. + /// + public ICollectionView AddressesViewSource + { + get + { + return _addressesViewSource; + } + + set + { + _addressesViewSource = value; RaisePropertyChanged(nameof(AddressesViewSource)); + } + + } + + private ObservableCollection _applicationdisplaypanelversions; + /// + /// Gets or sets the ApplicationDisplayPanelVersions. + /// + public ObservableCollection ApplicationDisplayPanelVersions + { + get + { + return _applicationdisplaypanelversions; + } + + set + { + _applicationdisplaypanelversions = value; RaisePropertyChanged(nameof(ApplicationDisplayPanelVersions)); + } + + } + + private ICollectionView _applicationdisplaypanelversionsViewSource; + /// + /// Gets or sets the ApplicationDisplayPanelVersions View Source. + /// + public ICollectionView ApplicationDisplayPanelVersionsViewSource + { + get + { + return _applicationdisplaypanelversionsViewSource; + } + + set + { + _applicationdisplaypanelversionsViewSource = value; RaisePropertyChanged(nameof(ApplicationDisplayPanelVersionsViewSource)); + } + + } + + private ObservableCollection _applicationfirmwareversions; + /// + /// Gets or sets the ApplicationFirmwareVersions. + /// + public ObservableCollection ApplicationFirmwareVersions + { + get + { + return _applicationfirmwareversions; + } + + set + { + _applicationfirmwareversions = value; RaisePropertyChanged(nameof(ApplicationFirmwareVersions)); + } + + } + + private ICollectionView _applicationfirmwareversionsViewSource; + /// + /// Gets or sets the ApplicationFirmwareVersions View Source. + /// + public ICollectionView ApplicationFirmwareVersionsViewSource + { + get + { + return _applicationfirmwareversionsViewSource; + } + + set + { + _applicationfirmwareversionsViewSource = value; RaisePropertyChanged(nameof(ApplicationFirmwareVersionsViewSource)); + } + + } + + private ObservableCollection _applicationosversions; + /// + /// Gets or sets the ApplicationOsVersions. + /// + public ObservableCollection ApplicationOsVersions + { + get + { + return _applicationosversions; + } + + set + { + _applicationosversions = value; RaisePropertyChanged(nameof(ApplicationOsVersions)); + } + + } + + private ICollectionView _applicationosversionsViewSource; + /// + /// Gets or sets the ApplicationOsVersions View Source. + /// + public ICollectionView ApplicationOsVersionsViewSource + { + get + { + return _applicationosversionsViewSource; + } + + set + { + _applicationosversionsViewSource = value; RaisePropertyChanged(nameof(ApplicationOsVersionsViewSource)); + } + + } + + private ObservableCollection _applicationversions; + /// + /// Gets or sets the ApplicationVersions. + /// + public ObservableCollection ApplicationVersions + { + get + { + return _applicationversions; + } + + set + { + _applicationversions = value; RaisePropertyChanged(nameof(ApplicationVersions)); + } + + } + + private ICollectionView _applicationversionsViewSource; + /// + /// Gets or sets the ApplicationVersions View Source. + /// + public ICollectionView ApplicationVersionsViewSource + { + get + { + return _applicationversionsViewSource; + } + + set + { + _applicationversionsViewSource = value; RaisePropertyChanged(nameof(ApplicationVersionsViewSource)); + } + + } + + private ObservableCollection _brushstops; + /// + /// Gets or sets the BrushStops. + /// + public ObservableCollection BrushStops + { + get + { + return _brushstops; + } + + set + { + _brushstops = value; RaisePropertyChanged(nameof(BrushStops)); + } + + } + + private ICollectionView _brushstopsViewSource; + /// + /// Gets or sets the BrushStops View Source. + /// + public ICollectionView BrushStopsViewSource + { + get + { + return _brushstopsViewSource; + } + + set + { + _brushstopsViewSource = value; RaisePropertyChanged(nameof(BrushStopsViewSource)); + } + + } + + private ObservableCollection _cartridgetypes; + /// + /// Gets or sets the CartridgeTypes. + /// + public ObservableCollection CartridgeTypes + { + get + { + return _cartridgetypes; + } + + set + { + _cartridgetypes = value; RaisePropertyChanged(nameof(CartridgeTypes)); + } + + } + + private ICollectionView _cartridgetypesViewSource; + /// + /// Gets or sets the CartridgeTypes View Source. + /// + public ICollectionView CartridgeTypesViewSource + { + get + { + return _cartridgetypesViewSource; + } + + set + { + _cartridgetypesViewSource = value; RaisePropertyChanged(nameof(CartridgeTypesViewSource)); + } + + } + + private ObservableCollection _cats; + /// + /// Gets or sets the Cats. + /// + public ObservableCollection Cats + { + get + { + return _cats; + } + + set + { + _cats = value; RaisePropertyChanged(nameof(Cats)); + } + + } + + private ICollectionView _catsViewSource; + /// + /// Gets or sets the Cats View Source. + /// + public ICollectionView CatsViewSource + { + get + { + return _catsViewSource; + } + + set + { + _catsViewSource = value; RaisePropertyChanged(nameof(CatsViewSource)); + } + + } + + private ObservableCollection _ccts; + /// + /// Gets or sets the Ccts. + /// + public ObservableCollection Ccts + { + get + { + return _ccts; + } + + set + { + _ccts = value; RaisePropertyChanged(nameof(Ccts)); + } + + } + + private ICollectionView _cctsViewSource; + /// + /// Gets or sets the Ccts View Source. + /// + public ICollectionView CctsViewSource + { + get + { + return _cctsViewSource; + } + + set + { + _cctsViewSource = value; RaisePropertyChanged(nameof(CctsViewSource)); + } + + } + + private ObservableCollection _colorspaces; + /// + /// Gets or sets the ColorSpaces. + /// + public ObservableCollection ColorSpaces + { + get + { + return _colorspaces; + } + + set + { + _colorspaces = value; RaisePropertyChanged(nameof(ColorSpaces)); + } + + } + + private ICollectionView _colorspacesViewSource; + /// + /// Gets or sets the ColorSpaces View Source. + /// + public ICollectionView ColorSpacesViewSource + { + get + { + return _colorspacesViewSource; + } + + set + { + _colorspacesViewSource = value; RaisePropertyChanged(nameof(ColorSpacesViewSource)); + } + + } + + private ObservableCollection _configurations; + /// + /// Gets or sets the Configurations. + /// + public ObservableCollection Configurations + { + get + { + return _configurations; + } + + set + { + _configurations = value; RaisePropertyChanged(nameof(Configurations)); + } + + } + + private ICollectionView _configurationsViewSource; + /// + /// Gets or sets the Configurations View Source. + /// + public ICollectionView ConfigurationsViewSource + { + get + { + return _configurationsViewSource; + } + + set + { + _configurationsViewSource = value; RaisePropertyChanged(nameof(ConfigurationsViewSource)); + } + + } + + private ObservableCollection _contacts; + /// + /// Gets or sets the Contacts. + /// + public ObservableCollection Contacts + { + get + { + return _contacts; + } + + set + { + _contacts = value; RaisePropertyChanged(nameof(Contacts)); + } + + } + + private ICollectionView _contactsViewSource; + /// + /// Gets or sets the Contacts View Source. + /// + public ICollectionView ContactsViewSource + { + get + { + return _contactsViewSource; + } + + set + { + _contactsViewSource = value; RaisePropertyChanged(nameof(ContactsViewSource)); + } + + } + + private ObservableCollection _dispensertypes; + /// + /// Gets or sets the DispenserTypes. + /// + public ObservableCollection DispenserTypes + { + get + { + return _dispensertypes; + } + + set + { + _dispensertypes = value; RaisePropertyChanged(nameof(DispenserTypes)); + } + + } + + private ICollectionView _dispensertypesViewSource; + /// + /// Gets or sets the DispenserTypes View Source. + /// + public ICollectionView DispenserTypesViewSource + { + get + { + return _dispensertypesViewSource; + } + + set + { + _dispensertypesViewSource = value; RaisePropertyChanged(nameof(DispenserTypesViewSource)); + } + + } + + private ObservableCollection _embeddedfirmwareversions; + /// + /// Gets or sets the EmbeddedFirmwareVersions. + /// + public ObservableCollection EmbeddedFirmwareVersions + { + get + { + return _embeddedfirmwareversions; + } + + set + { + _embeddedfirmwareversions = value; RaisePropertyChanged(nameof(EmbeddedFirmwareVersions)); + } + + } + + private ICollectionView _embeddedfirmwareversionsViewSource; + /// + /// Gets or sets the EmbeddedFirmwareVersions View Source. + /// + public ICollectionView EmbeddedFirmwareVersionsViewSource + { + get + { + return _embeddedfirmwareversionsViewSource; + } + + set + { + _embeddedfirmwareversionsViewSource = value; RaisePropertyChanged(nameof(EmbeddedFirmwareVersionsViewSource)); + } + + } + + private ObservableCollection _embeddedsoftwareversions; + /// + /// Gets or sets the EmbeddedSoftwareVersions. + /// + public ObservableCollection EmbeddedSoftwareVersions + { + get + { + return _embeddedsoftwareversions; + } + + set + { + _embeddedsoftwareversions = value; RaisePropertyChanged(nameof(EmbeddedSoftwareVersions)); + } + + } + + private ICollectionView _embeddedsoftwareversionsViewSource; + /// + /// Gets or sets the EmbeddedSoftwareVersions View Source. + /// + public ICollectionView EmbeddedSoftwareVersionsViewSource + { + get + { + return _embeddedsoftwareversionsViewSource; + } + + set + { + _embeddedsoftwareversionsViewSource = value; RaisePropertyChanged(nameof(EmbeddedSoftwareVersionsViewSource)); + } + + } + + private ObservableCollection _eventtypes; + /// + /// Gets or sets the EventTypes. + /// + public ObservableCollection EventTypes + { + get + { + return _eventtypes; + } + + set + { + _eventtypes = value; RaisePropertyChanged(nameof(EventTypes)); + } + + } + + private ICollectionView _eventtypesViewSource; + /// + /// Gets or sets the EventTypes View Source. + /// + public ICollectionView EventTypesViewSource + { + get + { + return _eventtypesViewSource; + } + + set + { + _eventtypesViewSource = value; RaisePropertyChanged(nameof(EventTypesViewSource)); + } + + } + + private ObservableCollection _eventtypesactions; + /// + /// Gets or sets the EventTypesActions. + /// + public ObservableCollection EventTypesActions + { + get + { + return _eventtypesactions; + } + + set + { + _eventtypesactions = value; RaisePropertyChanged(nameof(EventTypesActions)); + } + + } + + private ICollectionView _eventtypesactionsViewSource; + /// + /// Gets or sets the EventTypesActions View Source. + /// + public ICollectionView EventTypesActionsViewSource + { + get + { + return _eventtypesactionsViewSource; + } + + set + { + _eventtypesactionsViewSource = value; RaisePropertyChanged(nameof(EventTypesActionsViewSource)); + } + + } + + private ObservableCollection _fibershapes; + /// + /// Gets or sets the FiberShapes. + /// + public ObservableCollection FiberShapes + { + get + { + return _fibershapes; + } + + set + { + _fibershapes = value; RaisePropertyChanged(nameof(FiberShapes)); + } + + } + + private ICollectionView _fibershapesViewSource; + /// + /// Gets or sets the FiberShapes View Source. + /// + public ICollectionView FiberShapesViewSource + { + get + { + return _fibershapesViewSource; + } + + set + { + _fibershapesViewSource = value; RaisePropertyChanged(nameof(FiberShapesViewSource)); + } + + } + + private ObservableCollection _fibersynths; + /// + /// Gets or sets the FiberSynths. + /// + public ObservableCollection FiberSynths + { + get + { + return _fibersynths; + } + + set + { + _fibersynths = value; RaisePropertyChanged(nameof(FiberSynths)); + } + + } + + private ICollectionView _fibersynthsViewSource; + /// + /// Gets or sets the FiberSynths View Source. + /// + public ICollectionView FiberSynthsViewSource + { + get + { + return _fibersynthsViewSource; + } + + set + { + _fibersynthsViewSource = value; RaisePropertyChanged(nameof(FiberSynthsViewSource)); + } + + } + + private ObservableCollection _hardwareversions; + /// + /// Gets or sets the HardwareVersions. + /// + public ObservableCollection HardwareVersions + { + get + { + return _hardwareversions; + } + + set + { + _hardwareversions = value; RaisePropertyChanged(nameof(HardwareVersions)); + } + + } + + private ICollectionView _hardwareversionsViewSource; + /// + /// Gets or sets the HardwareVersions View Source. + /// + public ICollectionView HardwareVersionsViewSource + { + get + { + return _hardwareversionsViewSource; + } + + set + { + _hardwareversionsViewSource = value; RaisePropertyChanged(nameof(HardwareVersionsViewSource)); + } + + } + + private ObservableCollection _idspackformulas; + /// + /// Gets or sets the IdsPackFormulas. + /// + public ObservableCollection IdsPackFormulas + { + get + { + return _idspackformulas; + } + + set + { + _idspackformulas = value; RaisePropertyChanged(nameof(IdsPackFormulas)); + } + + } + + private ICollectionView _idspackformulasViewSource; + /// + /// Gets or sets the IdsPackFormulas View Source. + /// + public ICollectionView IdsPackFormulasViewSource + { + get + { + return _idspackformulasViewSource; + } + + set + { + _idspackformulasViewSource = value; RaisePropertyChanged(nameof(IdsPackFormulasViewSource)); + } + + } + + private ObservableCollection _idspacks; + /// + /// Gets or sets the IdsPacks. + /// + public ObservableCollection IdsPacks + { + get + { + return _idspacks; + } + + set + { + _idspacks = value; RaisePropertyChanged(nameof(IdsPacks)); + } + + } + + private ICollectionView _idspacksViewSource; + /// + /// Gets or sets the IdsPacks View Source. + /// + public ICollectionView IdsPacksViewSource + { + get + { + return _idspacksViewSource; + } + + set + { + _idspacksViewSource = value; RaisePropertyChanged(nameof(IdsPacksViewSource)); + } + + } + + private ObservableCollection _jobruns; + /// + /// Gets or sets the JobRuns. + /// + public ObservableCollection JobRuns + { + get + { + return _jobruns; + } + + set + { + _jobruns = value; RaisePropertyChanged(nameof(JobRuns)); + } + + } + + private ICollectionView _jobrunsViewSource; + /// + /// Gets or sets the JobRuns View Source. + /// + public ICollectionView JobRunsViewSource + { + get + { + return _jobrunsViewSource; + } + + set + { + _jobrunsViewSource = value; RaisePropertyChanged(nameof(JobRunsViewSource)); + } + + } + + private ObservableCollection _jobs; + /// + /// Gets or sets the Jobs. + /// + public ObservableCollection Jobs + { + get + { + return _jobs; + } + + set + { + _jobs = value; RaisePropertyChanged(nameof(Jobs)); + } + + } + + private ICollectionView _jobsViewSource; + /// + /// Gets or sets the Jobs View Source. + /// + public ICollectionView JobsViewSource + { + get + { + return _jobsViewSource; + } + + set + { + _jobsViewSource = value; RaisePropertyChanged(nameof(JobsViewSource)); + } + + } + + private ObservableCollection _linearmassdensityunits; + /// + /// Gets or sets the LinearMassDensityUnits. + /// + public ObservableCollection LinearMassDensityUnits + { + get + { + return _linearmassdensityunits; + } + + set + { + _linearmassdensityunits = value; RaisePropertyChanged(nameof(LinearMassDensityUnits)); + } + + } + + private ICollectionView _linearmassdensityunitsViewSource; + /// + /// Gets or sets the LinearMassDensityUnits View Source. + /// + public ICollectionView LinearMassDensityUnitsViewSource + { + get + { + return _linearmassdensityunitsViewSource; + } + + set + { + _linearmassdensityunitsViewSource = value; RaisePropertyChanged(nameof(LinearMassDensityUnitsViewSource)); + } + + } + + private ObservableCollection _liquidtypes; + /// + /// Gets or sets the LiquidTypes. + /// + public ObservableCollection LiquidTypes + { + get + { + return _liquidtypes; + } + + set + { + _liquidtypes = value; RaisePropertyChanged(nameof(LiquidTypes)); + } + + } + + private ICollectionView _liquidtypesViewSource; + /// + /// Gets or sets the LiquidTypes View Source. + /// + public ICollectionView LiquidTypesViewSource + { + get + { + return _liquidtypesViewSource; + } + + set + { + _liquidtypesViewSource = value; RaisePropertyChanged(nameof(LiquidTypesViewSource)); + } + + } + + private ObservableCollection _liquidtypesrmls; + /// + /// Gets or sets the LiquidTypesRmls. + /// + public ObservableCollection LiquidTypesRmls + { + get + { + return _liquidtypesrmls; + } + + set + { + _liquidtypesrmls = value; RaisePropertyChanged(nameof(LiquidTypesRmls)); + } + + } + + private ICollectionView _liquidtypesrmlsViewSource; + /// + /// Gets or sets the LiquidTypesRmls View Source. + /// + public ICollectionView LiquidTypesRmlsViewSource + { + get + { + return _liquidtypesrmlsViewSource; + } + + set + { + _liquidtypesrmlsViewSource = value; RaisePropertyChanged(nameof(LiquidTypesRmlsViewSource)); + } + + } + + private ObservableCollection _machineversions; + /// + /// Gets or sets the MachineVersions. + /// + public ObservableCollection MachineVersions + { + get + { + return _machineversions; + } + + set + { + _machineversions = value; RaisePropertyChanged(nameof(MachineVersions)); + } + + } + + private ICollectionView _machineversionsViewSource; + /// + /// Gets or sets the MachineVersions View Source. + /// + public ICollectionView MachineVersionsViewSource + { + get + { + return _machineversionsViewSource; + } + + set + { + _machineversionsViewSource = value; RaisePropertyChanged(nameof(MachineVersionsViewSource)); + } + + } + + private ObservableCollection _machines; + /// + /// Gets or sets the Machines. + /// + public ObservableCollection Machines + { + get + { + return _machines; + } + + set + { + _machines = value; RaisePropertyChanged(nameof(Machines)); + } + + } + + private ICollectionView _machinesViewSource; + /// + /// Gets or sets the Machines View Source. + /// + public ICollectionView MachinesViewSource + { + get + { + return _machinesViewSource; + } + + set + { + _machinesViewSource = value; RaisePropertyChanged(nameof(MachinesViewSource)); + } + + } + + private ObservableCollection _machinesconfigurations; + /// + /// Gets or sets the MachinesConfigurations. + /// + public ObservableCollection MachinesConfigurations + { + get + { + return _machinesconfigurations; + } + + set + { + _machinesconfigurations = value; RaisePropertyChanged(nameof(MachinesConfigurations)); + } + + } + + private ICollectionView _machinesconfigurationsViewSource; + /// + /// Gets or sets the MachinesConfigurations View Source. + /// + public ICollectionView MachinesConfigurationsViewSource + { + get + { + return _machinesconfigurationsViewSource; + } + + set + { + _machinesconfigurationsViewSource = value; RaisePropertyChanged(nameof(MachinesConfigurationsViewSource)); + } + + } + + private ObservableCollection _machinesevents; + /// + /// Gets or sets the MachinesEvents. + /// + public ObservableCollection MachinesEvents + { + get + { + return _machinesevents; + } + + set + { + _machinesevents = value; RaisePropertyChanged(nameof(MachinesEvents)); + } + + } + + private ICollectionView _machineseventsViewSource; + /// + /// Gets or sets the MachinesEvents View Source. + /// + public ICollectionView MachinesEventsViewSource + { + get + { + return _machineseventsViewSource; + } + + set + { + _machineseventsViewSource = value; RaisePropertyChanged(nameof(MachinesEventsViewSource)); + } + + } + + private ObservableCollection _mediacolors; + /// + /// Gets or sets the MediaColors. + /// + public ObservableCollection MediaColors + { + get + { + return _mediacolors; + } + + set + { + _mediacolors = value; RaisePropertyChanged(nameof(MediaColors)); + } + + } + + private ICollectionView _mediacolorsViewSource; + /// + /// Gets or sets the MediaColors View Source. + /// + public ICollectionView MediaColorsViewSource + { + get + { + return _mediacolorsViewSource; + } + + set + { + _mediacolorsViewSource = value; RaisePropertyChanged(nameof(MediaColorsViewSource)); + } + + } + + private ObservableCollection _mediaconditions; + /// + /// Gets or sets the MediaConditions. + /// + public ObservableCollection MediaConditions + { + get + { + return _mediaconditions; + } + + set + { + _mediaconditions = value; RaisePropertyChanged(nameof(MediaConditions)); + } + + } + + private ICollectionView _mediaconditionsViewSource; + /// + /// Gets or sets the MediaConditions View Source. + /// + public ICollectionView MediaConditionsViewSource + { + get + { + return _mediaconditionsViewSource; + } + + set + { + _mediaconditionsViewSource = value; RaisePropertyChanged(nameof(MediaConditionsViewSource)); + } + + } + + private ObservableCollection _mediamaterials; + /// + /// Gets or sets the MediaMaterials. + /// + public ObservableCollection MediaMaterials + { + get + { + return _mediamaterials; + } + + set + { + _mediamaterials = value; RaisePropertyChanged(nameof(MediaMaterials)); + } + + } + + private ICollectionView _mediamaterialsViewSource; + /// + /// Gets or sets the MediaMaterials View Source. + /// + public ICollectionView MediaMaterialsViewSource + { + get + { + return _mediamaterialsViewSource; + } + + set + { + _mediamaterialsViewSource = value; RaisePropertyChanged(nameof(MediaMaterialsViewSource)); + } + + } + + private ObservableCollection _mediapurposes; + /// + /// Gets or sets the MediaPurposes. + /// + public ObservableCollection MediaPurposes + { + get + { + return _mediapurposes; + } + + set + { + _mediapurposes = value; RaisePropertyChanged(nameof(MediaPurposes)); + } + + } + + private ICollectionView _mediapurposesViewSource; + /// + /// Gets or sets the MediaPurposes View Source. + /// + public ICollectionView MediaPurposesViewSource + { + get + { + return _mediapurposesViewSource; + } + + set + { + _mediapurposesViewSource = value; RaisePropertyChanged(nameof(MediaPurposesViewSource)); + } + + } + + private ObservableCollection _midtanktypes; + /// + /// Gets or sets the MidTankTypes. + /// + public ObservableCollection MidTankTypes + { + get + { + return _midtanktypes; + } + + set + { + _midtanktypes = value; RaisePropertyChanged(nameof(MidTankTypes)); + } + + } + + private ICollectionView _midtanktypesViewSource; + /// + /// Gets or sets the MidTankTypes View Source. + /// + public ICollectionView MidTankTypesViewSource + { + get + { + return _midtanktypesViewSource; + } + + set + { + _midtanktypesViewSource = value; RaisePropertyChanged(nameof(MidTankTypesViewSource)); + } + + } + + private ObservableCollection _organizations; + /// + /// Gets or sets the Organizations. + /// + public ObservableCollection Organizations + { + get + { + return _organizations; + } + + set + { + _organizations = value; RaisePropertyChanged(nameof(Organizations)); + } + + } + + private ICollectionView _organizationsViewSource; + /// + /// Gets or sets the Organizations View Source. + /// + public ICollectionView OrganizationsViewSource + { + get + { + return _organizationsViewSource; + } + + set + { + _organizationsViewSource = value; RaisePropertyChanged(nameof(OrganizationsViewSource)); + } + + } + + private ObservableCollection _permissions; + /// + /// Gets or sets the Permissions. + /// + public ObservableCollection Permissions + { + get + { + return _permissions; + } + + set + { + _permissions = value; RaisePropertyChanged(nameof(Permissions)); + } + + } + + private ICollectionView _permissionsViewSource; + /// + /// Gets or sets the Permissions View Source. + /// + public ICollectionView PermissionsViewSource + { + get + { + return _permissionsViewSource; + } + + set + { + _permissionsViewSource = value; RaisePropertyChanged(nameof(PermissionsViewSource)); + } + + } + + private ObservableCollection _processparameterstables; + /// + /// Gets or sets the ProcessParametersTables. + /// + public ObservableCollection ProcessParametersTables + { + get + { + return _processparameterstables; + } + + set + { + _processparameterstables = value; RaisePropertyChanged(nameof(ProcessParametersTables)); + } + + } + + private ICollectionView _processparameterstablesViewSource; + /// + /// Gets or sets the ProcessParametersTables View Source. + /// + public ICollectionView ProcessParametersTablesViewSource + { + get + { + return _processparameterstablesViewSource; + } + + set + { + _processparameterstablesViewSource = value; RaisePropertyChanged(nameof(ProcessParametersTablesViewSource)); + } + + } + + private ObservableCollection _processparameterstablesgroups; + /// + /// Gets or sets the ProcessParametersTablesGroups. + /// + public ObservableCollection ProcessParametersTablesGroups + { + get + { + return _processparameterstablesgroups; + } + + set + { + _processparameterstablesgroups = value; RaisePropertyChanged(nameof(ProcessParametersTablesGroups)); + } + + } + + private ICollectionView _processparameterstablesgroupsViewSource; + /// + /// Gets or sets the ProcessParametersTablesGroups View Source. + /// + public ICollectionView ProcessParametersTablesGroupsViewSource + { + get + { + return _processparameterstablesgroupsViewSource; + } + + set + { + _processparameterstablesgroupsViewSource = value; RaisePropertyChanged(nameof(ProcessParametersTablesGroupsViewSource)); + } + + } + + private ObservableCollection _rmls; + /// + /// Gets or sets the Rmls. + /// + public ObservableCollection Rmls + { + get + { + return _rmls; + } + + set + { + _rmls = value; RaisePropertyChanged(nameof(Rmls)); + } + + } + + private ICollectionView _rmlsViewSource; + /// + /// Gets or sets the Rmls View Source. + /// + public ICollectionView RmlsViewSource + { + get + { + return _rmlsViewSource; + } + + set + { + _rmlsViewSource = value; RaisePropertyChanged(nameof(RmlsViewSource)); + } + + } + + private ObservableCollection _roles; + /// + /// Gets or sets the Roles. + /// + public ObservableCollection Roles + { + get + { + return _roles; + } + + set + { + _roles = value; RaisePropertyChanged(nameof(Roles)); + } + + } + + private ICollectionView _rolesViewSource; + /// + /// Gets or sets the Roles View Source. + /// + public ICollectionView RolesViewSource + { + get + { + return _rolesViewSource; + } + + set + { + _rolesViewSource = value; RaisePropertyChanged(nameof(RolesViewSource)); + } + + } + + private ObservableCollection _rolespermissions; + /// + /// Gets or sets the RolesPermissions. + /// + public ObservableCollection RolesPermissions + { + get + { + return _rolespermissions; + } + + set + { + _rolespermissions = value; RaisePropertyChanged(nameof(RolesPermissions)); + } + + } + + private ICollectionView _rolespermissionsViewSource; + /// + /// Gets or sets the RolesPermissions View Source. + /// + public ICollectionView RolesPermissionsViewSource + { + get + { + return _rolespermissionsViewSource; + } + + set + { + _rolespermissionsViewSource = value; RaisePropertyChanged(nameof(RolesPermissionsViewSource)); + } + + } + + private ObservableCollection _segments; + /// + /// Gets or sets the Segments. + /// + public ObservableCollection Segments + { + get + { + return _segments; + } + + set + { + _segments = value; RaisePropertyChanged(nameof(Segments)); + } + + } + + private ICollectionView _segmentsViewSource; + /// + /// Gets or sets the Segments View Source. + /// + public ICollectionView SegmentsViewSource + { + get + { + return _segmentsViewSource; + } + + set + { + _segmentsViewSource = value; RaisePropertyChanged(nameof(SegmentsViewSource)); + } + + } + + private ObservableCollection _sensors; + /// + /// Gets or sets the Sensors. + /// + public ObservableCollection Sensors + { + get + { + return _sensors; + } + + set + { + _sensors = value; RaisePropertyChanged(nameof(Sensors)); + } + + } + + private ICollectionView _sensorsViewSource; + /// + /// Gets or sets the Sensors View Source. + /// + public ICollectionView SensorsViewSource + { + get + { + return _sensorsViewSource; + } + + set + { + _sensorsViewSource = value; RaisePropertyChanged(nameof(SensorsViewSource)); + } + + } + + private ObservableCollection _syncconfigurations; + /// + /// Gets or sets the SyncConfigurations. + /// + public ObservableCollection SyncConfigurations + { + get + { + return _syncconfigurations; + } + + set + { + _syncconfigurations = value; RaisePropertyChanged(nameof(SyncConfigurations)); + } + + } + + private ICollectionView _syncconfigurationsViewSource; + /// + /// Gets or sets the SyncConfigurations View Source. + /// + public ICollectionView SyncConfigurationsViewSource + { + get + { + return _syncconfigurationsViewSource; + } + + set + { + _syncconfigurationsViewSource = value; RaisePropertyChanged(nameof(SyncConfigurationsViewSource)); + } + + } + + private ObservableCollection _users; + /// + /// Gets or sets the Users. + /// + public ObservableCollection Users + { + get + { + return _users; + } + + set + { + _users = value; RaisePropertyChanged(nameof(Users)); + } + + } + + private ICollectionView _usersViewSource; + /// + /// Gets or sets the Users View Source. + /// + public ICollectionView UsersViewSource + { + get + { + return _usersViewSource; + } + + set + { + _usersViewSource = value; RaisePropertyChanged(nameof(UsersViewSource)); + } + + } + + private ObservableCollection _usersroles; + /// + /// Gets or sets the UsersRoles. + /// + public ObservableCollection UsersRoles + { + get + { + return _usersroles; + } + + set + { + _usersroles = value; RaisePropertyChanged(nameof(UsersRoles)); + } + + } + + private ICollectionView _usersrolesViewSource; + /// + /// Gets or sets the UsersRoles View Source. + /// + public ICollectionView UsersRolesViewSource + { + get + { + return _usersrolesViewSource; + } + + set + { + _usersrolesViewSource = value; RaisePropertyChanged(nameof(UsersRolesViewSource)); + } + + } + + private ObservableCollection _windingmethods; + /// + /// Gets or sets the WindingMethods. + /// + public ObservableCollection WindingMethods + { + get + { + return _windingmethods; + } + + set + { + _windingmethods = value; RaisePropertyChanged(nameof(WindingMethods)); + } + + } + + private ICollectionView _windingmethodsViewSource; + /// + /// Gets or sets the WindingMethods View Source. + /// + public ICollectionView WindingMethodsViewSource + { + get + { + return _windingmethodsViewSource; + } + + set + { + _windingmethodsViewSource = value; RaisePropertyChanged(nameof(WindingMethodsViewSource)); + } + + } + + /// + /// Initialize collection sources. + /// + private void InitCollectionSources() + { + + ActionTypesViewSource = CreateCollectionView(ActionTypes); + + AddressesViewSource = CreateCollectionView(Addresses); + + ApplicationDisplayPanelVersionsViewSource = CreateCollectionView(ApplicationDisplayPanelVersions); + + ApplicationFirmwareVersionsViewSource = CreateCollectionView(ApplicationFirmwareVersions); + + ApplicationOsVersionsViewSource = CreateCollectionView(ApplicationOsVersions); + + ApplicationVersionsViewSource = CreateCollectionView(ApplicationVersions); + + BrushStopsViewSource = CreateCollectionView(BrushStops); + + CartridgeTypesViewSource = CreateCollectionView(CartridgeTypes); + + CatsViewSource = CreateCollectionView(Cats); + + CctsViewSource = CreateCollectionView(Ccts); + + ColorSpacesViewSource = CreateCollectionView(ColorSpaces); + + ConfigurationsViewSource = CreateCollectionView(Configurations); + + ContactsViewSource = CreateCollectionView(Contacts); + + DispenserTypesViewSource = CreateCollectionView(DispenserTypes); + + EmbeddedFirmwareVersionsViewSource = CreateCollectionView(EmbeddedFirmwareVersions); + + EmbeddedSoftwareVersionsViewSource = CreateCollectionView(EmbeddedSoftwareVersions); + + EventTypesViewSource = CreateCollectionView(EventTypes); + + EventTypesActionsViewSource = CreateCollectionView(EventTypesActions); + + FiberShapesViewSource = CreateCollectionView(FiberShapes); + + FiberSynthsViewSource = CreateCollectionView(FiberSynths); + + HardwareVersionsViewSource = CreateCollectionView(HardwareVersions); + + IdsPackFormulasViewSource = CreateCollectionView(IdsPackFormulas); + + IdsPacksViewSource = CreateCollectionView(IdsPacks); + + JobRunsViewSource = CreateCollectionView(JobRuns); + + JobsViewSource = CreateCollectionView(Jobs); + + LinearMassDensityUnitsViewSource = CreateCollectionView(LinearMassDensityUnits); + + LiquidTypesViewSource = CreateCollectionView(LiquidTypes); + + LiquidTypesRmlsViewSource = CreateCollectionView(LiquidTypesRmls); + + MachineVersionsViewSource = CreateCollectionView(MachineVersions); + + MachinesViewSource = CreateCollectionView(Machines); + + MachinesConfigurationsViewSource = CreateCollectionView(MachinesConfigurations); + + MachinesEventsViewSource = CreateCollectionView(MachinesEvents); + + MediaColorsViewSource = CreateCollectionView(MediaColors); + + MediaConditionsViewSource = CreateCollectionView(MediaConditions); + + MediaMaterialsViewSource = CreateCollectionView(MediaMaterials); + + MediaPurposesViewSource = CreateCollectionView(MediaPurposes); + + MidTankTypesViewSource = CreateCollectionView(MidTankTypes); + + OrganizationsViewSource = CreateCollectionView(Organizations); + + PermissionsViewSource = CreateCollectionView(Permissions); + + ProcessParametersTablesViewSource = CreateCollectionView(ProcessParametersTables); + + ProcessParametersTablesGroupsViewSource = CreateCollectionView(ProcessParametersTablesGroups); + + RmlsViewSource = CreateCollectionView(Rmls); + + RolesViewSource = CreateCollectionView(Roles); + + RolesPermissionsViewSource = CreateCollectionView(RolesPermissions); + + SegmentsViewSource = CreateCollectionView(Segments); + + SensorsViewSource = CreateCollectionView(Sensors); + + SyncConfigurationsViewSource = CreateCollectionView(SyncConfigurations); + + UsersViewSource = CreateCollectionView(Users); + + UsersRolesViewSource = CreateCollectionView(UsersRoles); + + WindingMethodsViewSource = CreateCollectionView(WindingMethods); + + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Partials/Configuration.cs b/Software/Visual_Studio/Tango.Integration/Observables/Partials/Configuration.cs new file mode 100644 index 000000000..c60102671 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Partials/Configuration.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Integration.Observables +{ + public partial class Configuration + { + public override void DefferedDelete() + { + IdsPacks.ToList().ForEach(x => x.DefferedDelete()); + var machine_configurations = ObservablesEntitiesAdapter.Instance.MachinesConfigurations.Where(x => x.Configuration == this); + MachinesConfigurations.ToList().ForEach(x => x.DefferedDelete()); + base.DefferedDelete(); + IdsPacks.Clear(); + } + + public override void Delete() + { + IdsPacks.ToList().ForEach(x => x.DefferedDelete()); + var machine_configurations = ObservablesEntitiesAdapter.Instance.MachinesConfigurations.Where(x => x.Configuration == this); + MachinesConfigurations.ToList().ForEach(x => x.DefferedDelete()); + base.Delete(); + IdsPacks.Clear(); + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Partials/Machine.cs b/Software/Visual_Studio/Tango.Integration/Observables/Partials/Machine.cs new file mode 100644 index 000000000..0121bccef --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Partials/Machine.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Integration.Observables +{ + public partial class Machine + { + /// + /// Deletes this entity from the database + /// + public override void Delete() + { + foreach (var machine_config in MachinesConfigurations) + { + machine_config.Delete(); + machine_config.Configuration.Delete(); + } + + base.Delete(); + + ObservablesEntitiesAdapter.Instance.SaveChanges(); + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Partials/MachineVersion.cs b/Software/Visual_Studio/Tango.Integration/Observables/Partials/MachineVersion.cs new file mode 100644 index 000000000..c7d1f8321 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Partials/MachineVersion.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Integration.Observables +{ + public partial class MachineVersion + { + public override void Delete() + { + this.DefaultConfiguration.Delete(); + base.Delete(); + + ObservablesEntitiesAdapter.Instance.SaveChanges(); + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Partials/Segment.cs b/Software/Visual_Studio/Tango.Integration/Observables/Partials/Segment.cs new file mode 100644 index 000000000..c83c34870 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Partials/Segment.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Collections.Specialized; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Integration.Observables +{ + public partial class Segment + { + public override void Save() + { + for (int i = 0; i < BrushStops.Count; i++) + { + BrushStops[i].StopIndex = i; + } + + base.Save(); + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Partials/User.cs b/Software/Visual_Studio/Tango.Integration/Observables/Partials/User.cs new file mode 100644 index 000000000..b70aae8a4 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Partials/User.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Integration.Observables +{ + public partial class User + { + /// + /// Determines whether the user has the specified permission. + /// + /// The permission. + /// + /// true if the user has permission; otherwise, false. + /// + public bool HasPermission(Permissions permission) + { + return UsersRoles.Select(x => x.Role).ToList().SelectMany(x => x.RolesPermissions).ToList().Exists(x => x.Permission.Code == permission.ToInt32()); + } + + /// + /// Gets the aggregated user roles as enumerations. + /// + public List Roles + { + get { return UsersRoles.Select(x => (Roles)x.Role.Code).ToList(); } + } + + /// + /// Gets the aggregated user permissions as enumerations. + /// + public List Permissions + { + get { return UsersRoles.Select(x => x.Role).ToList().SelectMany(x => x.RolesPermissions).Select(x => (Permissions)x.Permission.Code).ToList(); } + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Printing/BrushStop.cs b/Software/Visual_Studio/Tango.Integration/Printing/BrushStop.cs new file mode 100644 index 000000000..97126bc82 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Printing/BrushStop.cs @@ -0,0 +1,105 @@ +using ColorMine.ColorSpaces; +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Media; +using Tango.Core; +using Tango.Integration.Printing; + +namespace Tango.Integration.Observables +{ + public partial class BrushStop + { + private ObservableCollection _liquidVolumes; + [NotMapped] + public ObservableCollection LiquidVolumes + { + get { return _liquidVolumes; } + set { _liquidVolumes = value; RaisePropertyChangedAuto(); } + } + + private Color _color; + [NotMapped] + public Color Color + { + get { return _color; } + set + { + _color = value; + _red = _color.R; + _green = _color.G; + _blue = _color.B; + RaisePropertyChanged(nameof(Color)); + } + } + + public void SetLiquidVolumes(Configuration configuration, Rml rml) + { + LiquidVolumes = new ObservableCollection(); + + foreach (var idsPack in configuration.IdsPacks) + { + LiquidVolumes.Add(new LiquidVolume(configuration, idsPack, rml, this)); + } + } + + private bool _ignorePropChanged; + + protected override void RaisePropertyChanged(string propName) + { + base.RaisePropertyChanged(propName); + + if (!_ignorePropChanged && propName != nameof(ColorSpace) && ColorSpace != null) + { + Rgb rgb = new Rgb(Red, Green, Blue); + Cmyk cmyk = new Cmyk(Cyan, Magenta, Yellow, Black); + Lab lab = new Lab(L, A, B); + + switch ((ColorSpaces)ColorSpace.Code) + { + case ColorSpaces.RGB: + cmyk = rgb.To(); + lab = rgb.To(); + break; + case ColorSpaces.CMYK: + rgb = cmyk.To(); + lab = cmyk.To(); + break; + case ColorSpaces.LAB: + rgb = lab.To(); + cmyk = lab.To(); + break; + } + + _red = (int)rgb.R; + _green = (int)rgb.G; + _blue = (int)rgb.B; + + _cyan = cmyk.C * 100d; + _magenta = cmyk.M * 100d; + _yellow = cmyk.Y * 100d; + _black = cmyk.K * 100d; + + _l = lab.L; + _a = lab.A; + _b = lab.B; + + _color = Color.FromRgb((byte)_red, (byte)_green, (byte)_blue); + + _ignorePropChanged = true; + + foreach (var prop in typeof(BrushStop).GetProperties(BindingFlags.Instance | BindingFlags.Public)) + { + RaisePropertyChanged(prop.Name); + } + + _ignorePropChanged = false; + } + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Printing/LiquidVolume.cs b/Software/Visual_Studio/Tango.Integration/Printing/LiquidVolume.cs new file mode 100644 index 000000000..0821d15fe --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Printing/LiquidVolume.cs @@ -0,0 +1,123 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Core; +using Tango.Integration.Formulation; +using Tango.Integration.Observables; + +namespace Tango.Integration.Printing +{ + public class LiquidVolume : ExtendedObject + { + private BrushStop _brushStop; + public BrushStop BrushStop + { + get { return _brushStop; } + set { _brushStop = value; RaisePropertyChangedAuto(); } + } + + private Configuration _configuration; + + public Configuration Configuration + { + get { return _configuration; } + set { _configuration = value; RaisePropertyChangedAuto(); } + } + + private IdsPack _idsPack; + public IdsPack IdsPack + { + get { return _idsPack; } + set { _idsPack = value; RaisePropertyChangedAuto(); } + } + + private Rml _rml; + public Rml RML + { + get { return _rml; } + set { _rml = value; RaisePropertyChangedAuto(); } + } + + private double _volume; + public double Volume + { + get { return _volume; } + set + { + _volume = value; + RaisePropertyChangedAuto(); + OnVolumeChanged(); + } + } + + public void Invalidate() + { + InvalidateSolo(); + + foreach (var liquidVolume in BrushStop.LiquidVolumes.Where(x => x != this)) + { + liquidVolume.InvalidateSolo(); + } + } + + private void InvalidateSolo() + { + _volume = FormulasCalculationService.CoerceVolume(this); + + typeof(BrushStop).GetProperty("V" + Configuration.IdsPacks.IndexOf(IdsPack)).SetValue(BrushStop, Volume); + RaisePropertyChanged(nameof(LiquidMaxNanoliterPerCentimeter)); + RaisePropertyChanged(nameof(NanoliterPerSecond)); + RaisePropertyChanged(nameof(PulsePerSecond)); + RaisePropertyChanged(nameof(Volume)); + } + + public LiquidVolume(Configuration configuration, IdsPack idsPack, Rml rml, BrushStop brushStop) + { + BrushStop = brushStop; + IdsPack = idsPack; + Configuration = configuration; + RML = rml; + + Volume = (double)typeof(BrushStop).GetProperty("V" + Configuration.IdsPacks.IndexOf(IdsPack)).GetValue(BrushStop); + } + + private void OnVolumeChanged() + { + Invalidate(); + } + + public double LiquidMaxNanoliterPerCentimeter + { + get + { + if (Configuration != null && RML != null) + { + List factors = Configuration.IdsPacks.OrderBy(x => x.PackIndex).Select(x => x.LiquidType).SelectMany(x => x.LiquidTypesRmls).Where(x => x.Rml.Guid == RML.Guid).ToList(); + return factors[BrushStop.LiquidVolumes.IndexOf(this)].MaxNlPerCm; + } + else + { + return 0d; + } + } + } + + public double NanoliterPerSecond + { + get + { + return FormulasCalculationService.CalculateNanoliterPerSecond(this); + } + } + + public double PulsePerSecond + { + get + { + return FormulasCalculationService.CalculatePulsePerSecond(this); + } + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Printing/Profile.cs b/Software/Visual_Studio/Tango.Integration/Printing/Profile.cs deleted file mode 100644 index 9eccfcdcc..000000000 --- a/Software/Visual_Studio/Tango.Integration/Printing/Profile.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.Core; - -namespace Tango.Integration.Printing -{ - public class Profile : ExtendedObject - { - private String _name; - - public String Name - { - get { return _name; } - set { _name = value; RaisePropertyChangedAuto(); } - } - - - } -} diff --git a/Software/Visual_Studio/Tango.Integration/Printing/Segment.cs b/Software/Visual_Studio/Tango.Integration/Printing/Segment.cs deleted file mode 100644 index 0854485e5..000000000 --- a/Software/Visual_Studio/Tango.Integration/Printing/Segment.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.Core; - -namespace Tango.Integration.Printing -{ - public class Segment : ExtendedObject - { - - } -} diff --git a/Software/Visual_Studio/Tango.Integration/Services/ExternalBridgeTcpClient.cs b/Software/Visual_Studio/Tango.Integration/Services/ExternalBridgeTcpClient.cs index 5dfa5c3b3..e54bf1bd5 100644 --- a/Software/Visual_Studio/Tango.Integration/Services/ExternalBridgeTcpClient.cs +++ b/Software/Visual_Studio/Tango.Integration/Services/ExternalBridgeTcpClient.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.Integration.Operators; using Tango.PMR.Integration; using Tango.Settings; diff --git a/Software/Visual_Studio/Tango.Integration/Services/ExternalBridgeUsbClient.cs b/Software/Visual_Studio/Tango.Integration/Services/ExternalBridgeUsbClient.cs index 733e9c6a4..e6124d0a8 100644 --- a/Software/Visual_Studio/Tango.Integration/Services/ExternalBridgeUsbClient.cs +++ b/Software/Visual_Studio/Tango.Integration/Services/ExternalBridgeUsbClient.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.Integration.Operators; using Tango.PMR.Integration; using Tango.Settings; diff --git a/Software/Visual_Studio/Tango.Integration/Tango.Integration.csproj b/Software/Visual_Studio/Tango.Integration/Tango.Integration.csproj index 4257dd53e..4290ae895 100644 --- a/Software/Visual_Studio/Tango.Integration/Tango.Integration.csproj +++ b/Software/Visual_Studio/Tango.Integration/Tango.Integration.csproj @@ -30,10 +30,19 @@ 4 + + ..\packages\EntityFramework.6.0.0\lib\net45\EntityFramework.dll + + + ..\packages\EntityFramework.6.0.0\lib\net45\EntityFramework.SqlServer.dll + ..\packages\Google.Protobuf.3.4.1\lib\net45\Google.Protobuf.dll + + + @@ -65,10 +74,98 @@ GlobalVersionInfo.cs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + @@ -78,13 +175,17 @@ + + {37e4ceab-b54b-451f-b535-04cf7da9c459} + ColorMine + {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} Tango.Core - - {0ecd6da8-7aa6-48d9-8b65-279d176ad9af} - Tango.DAL.Observables + + {38197109-8610-4d3f-92b9-16d48df94d7c} + Tango.DAL.Remote {bc932dbd-7cdb-488c-99e4-f02cf441f55e} @@ -107,5 +208,6 @@ + \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.Integration/app.config b/Software/Visual_Studio/Tango.Integration/app.config index cacd4cd77..4a6cb0526 100644 --- a/Software/Visual_Studio/Tango.Integration/app.config +++ b/Software/Visual_Studio/Tango.Integration/app.config @@ -1,5 +1,9 @@  + + +
+ @@ -8,4 +12,10 @@ + + + + + + \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.Integration/packages.config b/Software/Visual_Studio/Tango.Integration/packages.config index c8a2e03ee..7abb06657 100644 --- a/Software/Visual_Studio/Tango.Integration/packages.config +++ b/Software/Visual_Studio/Tango.Integration/packages.config @@ -1,5 +1,6 @@  + diff --git a/Software/Visual_Studio/Tango.UnitTesting/CodeGeneration_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/CodeGeneration_TST.cs index 3435021eb..373d88722 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/CodeGeneration_TST.cs +++ b/Software/Visual_Studio/Tango.UnitTesting/CodeGeneration_TST.cs @@ -1,7 +1,7 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Tango.DAL.Remote.DB; -using Tango.DAL.Observables; +using Tango.Integration.Observables; using Tango.Settings; using System.Linq; using System.Collections.Generic; diff --git a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj index 0130e3811..07bdafca7 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj +++ b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj @@ -102,14 +102,14 @@ {0e0eef3e-8f4e-4f23-9d19-479fd8d76c12} Tango.DAL.Local - - {0ecd6da8-7aa6-48d9-8b65-279d176ad9af} - Tango.DAL.Observables - {38197109-8610-4d3f-92b9-16d48df94d7c} Tango.DAL.Remote + + {4206ac58-3b57-4699-8835-90bf6db01a61} + Tango.Integration + {bc932dbd-7cdb-488c-99e4-f02cf441f55e} Tango.Logging diff --git a/Software/Visual_Studio/Tango.sln b/Software/Visual_Studio/Tango.sln index 3129ace25..cb53eaffc 100644 --- a/Software/Visual_Studio/Tango.sln +++ b/Software/Visual_Studio/Tango.sln @@ -77,8 +77,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tango.Scripting", "Tango.Sc EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tango.SharedUI", "Tango.SharedUI\Tango.SharedUI.csproj", "{8491D07B-C1F6-4B62-A412-41B9FD2D6538}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tango.DAL.Observables", "Tango.DAL.Observables\Tango.DAL.Observables.csproj", "{0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tango.DBObservablesGenerator.CLI", "Utilities\Tango.DBObservablesGenerator.CLI\Tango.DBObservablesGenerator.CLI.csproj", "{EBB7CB9F-6AF2-456B-A5DD-1B136B605D90}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MachineStudio", "MachineStudio", "{57DF2A95-5DDD-4830-A4AF-B484B59C7C2B}" @@ -976,35 +974,6 @@ Global {8491D07B-C1F6-4B62-A412-41B9FD2D6538}.Release|x64.Build.0 = Release|Any CPU {8491D07B-C1F6-4B62-A412-41B9FD2D6538}.Release|x86.ActiveCfg = Release|Any CPU {8491D07B-C1F6-4B62-A412-41B9FD2D6538}.Release|x86.Build.0 = Release|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Debug|ARM.ActiveCfg = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Debug|ARM.Build.0 = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Debug|ARM64.ActiveCfg = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Debug|ARM64.Build.0 = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Debug|x64.ActiveCfg = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Debug|x64.Build.0 = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Debug|x86.ActiveCfg = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.DefaultBuild|Any CPU.ActiveCfg = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.DefaultBuild|Any CPU.Build.0 = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.DefaultBuild|ARM.ActiveCfg = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.DefaultBuild|ARM.Build.0 = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.DefaultBuild|ARM64.ActiveCfg = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.DefaultBuild|ARM64.Build.0 = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.DefaultBuild|x64.ActiveCfg = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.DefaultBuild|x64.Build.0 = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.DefaultBuild|x86.ActiveCfg = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.DefaultBuild|x86.Build.0 = Debug|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Release|Any CPU.Build.0 = Release|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Release|ARM.ActiveCfg = Release|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Release|ARM.Build.0 = Release|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Release|ARM64.ActiveCfg = Release|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Release|ARM64.Build.0 = Release|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Release|x64.ActiveCfg = Release|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Release|x64.Build.0 = Release|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Release|x86.ActiveCfg = Release|Any CPU - {0ECD6DA8-7AA6-48D9-8B65-279D176AD9AF}.Release|x86.Build.0 = Release|Any CPU {EBB7CB9F-6AF2-456B-A5DD-1B136B605D90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {EBB7CB9F-6AF2-456B-A5DD-1B136B605D90}.Debug|Any CPU.Build.0 = Debug|Any CPU {EBB7CB9F-6AF2-456B-A5DD-1B136B605D90}.Debug|ARM.ActiveCfg = Debug|Any CPU -- cgit v1.3.1 From 94ac70f0eaf29fcca4ae3ff5552c52cad22df492 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 14 Feb 2018 10:55:19 +0200 Subject: Refactored all studio modules to use StudioModuleBase. --- Software/DB/Tango.mdf | Bin 75497472 -> 75497472 bytes Software/DB/Tango_log.ldf | Bin 8388608 -> 8388608 bytes .../Modules/Tango.MachineStudio.DB/DBModule.cs | 43 +++------------- .../DeveloperModule.cs | 54 +++++++++++---------- .../MachineDesignerModule.cs | 34 +++---------- .../Tango.MachineStudio.Stubs/StubsModule.cs | 36 +++----------- .../SynchronizationModule.cs | 42 +++------------- .../TechnicianModule.cs | 8 --- .../Properties/AssemblyInfo.cs | 3 ++ .../Tango.MachineStudio.Common/StudioModuleBase.cs | 25 +++++++++- 10 files changed, 85 insertions(+), 160 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs') diff --git a/Software/DB/Tango.mdf b/Software/DB/Tango.mdf index 4354c3d3f..b3ae0ea82 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 54a54624a..f105194a9 100644 Binary files a/Software/DB/Tango_log.ldf and b/Software/DB/Tango_log.ldf differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs index 82cd716b3..0ad6aa541 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs @@ -15,66 +15,39 @@ namespace Tango.MachineStudio.DB /// Represents a Machine Studio database module. /// /// - public class DBModule : IStudioModule + public class DBModule : StudioModuleBase { - private bool _isInitialized; - private bool _isLoaded; - /// /// Gets the module name. /// - public string Name => "Data Base"; + public override string Name => "Data Base"; /// /// Gets the module description. /// - public string Description => "Provides access to raw database tables."; + public override string Description => "Provides access to raw database tables."; /// /// Gets the module cover image. /// - public BitmapSource Image => SharedUI.Helpers.ResourceHelper.GetImageFromResources("Images/db.png"); + public override BitmapSource Image => SharedUI.Helpers.ResourceHelper.GetImageFromResources("Images/db.png"); /// /// Gets the module entry point view. /// - public FrameworkElement MainView => new MainDBView(); - - /// - /// Gets a value indicating whether this module has been initialized. - /// - public bool IsInitialized => _isInitialized; + public override FrameworkElement MainView => new MainDBView(); /// /// Gets the permission required to see and load this module. /// - public Permissions Permission => Permissions.RunDataBaseModule; - - /// - /// Sets a value indicating whether this module is loaded. - /// - public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + public override Permissions Permission => Permissions.RunDataBaseModule; /// /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// - /// - public void Dispose() + public override void Dispose() { - throw new NotImplementedException(); - } - - /// - /// Perform any operations required to initialize this module. - /// - public void Initialize() - { - if (!_isInitialized) - { - //Initialize - - _isInitialized = true; - } + } } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs index 1a405f861..6cdda4bc8 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs @@ -12,41 +12,43 @@ using Tango.SharedUI.Helpers; namespace Tango.MachineStudio.Developer { - public class DeveloperModule : IStudioModule + /// + /// Represents the Machine Studio developer module. + /// + /// + public class DeveloperModule : StudioModuleBase { - private bool _isInitialized; - private bool _isLoaded; - - public string Name => "Developer"; - - public string Description => "Research and development, manage RML, STRIP and Process."; - - public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/developer.jpg"); - - public FrameworkElement MainView => new MainView(); + /// + /// Gets the module name. + /// + public override string Name => "Developer"; - public bool IsInitialized => _isInitialized; + /// + /// Gets the module description. + /// + public override string Description => "Research and development, manage RML, STRIP and Process."; /// - /// Sets a value indicating whether this module is loaded. + /// Gets the module cover image. /// - public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/developer.jpg"); - public Permissions Permission => Permissions.RunDeveloperModule; + /// + /// Gets the module entry point view. + /// + public override FrameworkElement MainView => new MainView(); - public void Dispose() - { - throw new NotImplementedException(); - } + /// + /// Gets the permission required to see and load this module. + /// + public override Permissions Permission => Permissions.RunDeveloperModule; - public void Initialize() + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + public override void Dispose() { - if (!_isInitialized) - { - //Initialize.. - - _isInitialized = true; - } + } } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs index f5b0cba98..a6fa13f08 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs @@ -16,57 +16,37 @@ namespace Tango.MachineStudio.MachineDesigner /// Represents a machine designer Machine Studio module providing an interactive GUI for managing machine configurations. /// /// - public class MachineDesignerModule : IStudioModule + public class MachineDesignerModule : StudioModuleBase { - private bool _isLoaded; - /// /// Gets the module name. /// - public string Name => "Machine Designer"; + public override string Name => "Machine Designer"; /// /// Gets the module description. /// - public string Description => "Provides a graphical control over machine configurations. Create, manage and deploy machine configurations using simple drag and drop interface."; + public override string Description => "Provides a graphical control over machine configurations. Create, manage and deploy machine configurations using simple drag and drop interface."; /// /// Gets the module cover image. /// - public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/machine-designer-module.jpg"); - - /// - /// Sets a value indicating whether this module is loaded. - /// - public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/machine-designer-module.jpg"); /// /// Gets the module entry point view. /// - public FrameworkElement MainView => new MainView(); + public override FrameworkElement MainView => new MainView(); /// /// Gets the permission required to see and load this module. /// - public Permissions Permission => Permissions.RunMachineDesignerModule; - - /// - /// Gets a value indicating whether this module has been initialized. - /// - public bool IsInitialized => true; + public override Permissions Permission => Permissions.RunMachineDesignerModule; /// /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// - public void Dispose() - { - - } - - /// - /// Perform any operations required to initialize this module. - /// - public void Initialize() + public override void Dispose() { } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs index 359ac2977..817c68b49 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs @@ -16,59 +16,39 @@ namespace Tango.MachineStudio.Stubs /// Represents a stubs execution Machine Studio module capable of executing stubs against the current connected machine using a C# script engine. /// /// - public class StubsModule : IStudioModule + public class StubsModule : StudioModuleBase { - private bool _isLoaded; - /// /// Gets the module name. /// - public string Name => "Stubs"; + public override string Name => "Stubs"; /// /// Gets the module description. /// - public string Description => "Execute machine tests using an interactive C# scripting editor"; + public override string Description => "Execute machine tests using an interactive C# scripting editor"; /// /// Gets the module cover image. /// - public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/stubs.jpg"); + public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/stubs.jpg"); /// /// Gets the module entry point view. /// - public FrameworkElement MainView => new MainView(); - - /// - /// Sets a value indicating whether this module is loaded. - /// - public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + public override FrameworkElement MainView => new MainView(); /// /// Gets the permission required to see and load this module. /// - public Permissions Permission => Permissions.RunSynchronizationModule; - - /// - /// Gets a value indicating whether this module has been initialized. - /// - public bool IsInitialized => true; + public override Permissions Permission => Permissions.RunSynchronizationModule; /// /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// - public void Dispose() - { - //throw new NotImplementedException(); - } - - /// - /// Perform any operations required to initialize this module. - /// - public void Initialize() + public override void Dispose() { - //throw new NotImplementedException(); + } } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/SynchronizationModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/SynchronizationModule.cs index bbf0f8ca1..5292c6048 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/SynchronizationModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/SynchronizationModule.cs @@ -16,65 +16,39 @@ namespace Tango.MachineStudio.Synchronization /// Represents a Machine Studio module capable of comparing and synchronizing machines data against Twine remote database. /// /// - public class SynchronizationModule : IStudioModule + public class SynchronizationModule : StudioModuleBase { - private bool _isLoaded; - private bool _isInitialized; - /// /// Gets the module name. /// - public string Name => "Synchronization"; + public override string Name => "Synchronization"; /// /// Gets the module description. /// - public string Description => "Perform local to local or remote to local database synchronization."; + public override string Description => "Perform local to local or remote to local database synchronization."; /// /// Gets the module cover image. /// - public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/synchronization.jpg"); + public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/synchronization.jpg"); /// /// Gets the module entry point view. /// - public FrameworkElement MainView => new MainView(); - - /// - /// Sets a value indicating whether this module is loaded. - /// - public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } - - /// - /// Gets a value indicating whether this module has been initialized. - /// - public bool IsInitialized => _isInitialized; + public override FrameworkElement MainView => new MainView(); /// /// Gets the permission required to see and load this module. /// - public Permissions Permission => Permissions.RunSynchronizationModule; + public override Permissions Permission => Permissions.RunSynchronizationModule; /// /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// - public void Dispose() + public override void Dispose() { - //Dispose... - } - - /// - /// Perform any operations required to initialize this module. - /// - public void Initialize() - { - if (!_isInitialized) - { - //Initialize.. - - _isInitialized = true; - } + } } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs index 7e0fdd3a4..e55fde0e5 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs @@ -50,13 +50,5 @@ namespace Tango.MachineStudio.Technician { } - - /// - /// Perform any operations required to initialize this module. - /// - public override void Initialize() - { - IsInitialized = true; - } } } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Properties/AssemblyInfo.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Properties/AssemblyInfo.cs index 33d6edb60..f03b250be 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Properties/AssemblyInfo.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Properties/AssemblyInfo.cs @@ -15,3 +15,6 @@ using System.Windows; //(used if a resource is not found in the page, // app, or any theme specific resource dictionaries) )] + +//Friends With +[assembly: InternalsVisibleTo("Tango.MachineStudio.UI")] diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioModuleBase.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioModuleBase.cs index a773adf8b..5c594ab70 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioModuleBase.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioModuleBase.cs @@ -57,7 +57,7 @@ namespace Tango.MachineStudio.Common { return _isInitialized; } - protected set + private set { _isInitialized = value; } @@ -87,6 +87,27 @@ namespace Tango.MachineStudio.Common /// /// Perform any operations required to initialize this module. /// - public abstract void Initialize(); + public void Initialize() + { + OnInitialized(); + IsInitialized = true; + } + + /// + /// Called when machine studio initializes this module. + /// + protected virtual void OnInitialized() + { + + } + + /// + /// Raises the event. + /// + /// if set to true the module is loaded. + protected virtual void OnLoadedChanged(bool loaded) + { + + } } } -- cgit v1.3.1