From e335441bad3e19029caf3cf627b768848b801889 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Mon, 12 Apr 2021 18:23:44 +0300 Subject: New Thread Extensions Module --- .../Images/Fabric.jpg | Bin 0 -> 41395 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Images/Fabric.jpg (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Images') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Images/Fabric.jpg b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Images/Fabric.jpg new file mode 100644 index 000000000..e9e88434e Binary files /dev/null and b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Images/Fabric.jpg differ -- cgit v1.3.1 From b29f337cff7513e0fe0e4b98e6bc7970da89e837 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Mon, 24 May 2021 17:07:45 +0300 Subject: Created a new project Tango.MachineStudio.ThreadExtentions. Changes in Database. --- .../Tango.MachineStudio.ThreadExtensions/App.xaml | 12 + .../Contracts/IMainView.cs | 20 + .../Converters/ColorNameToBrushConverter.cs | 42 + .../Images/threads.png | Bin 0 -> 315399 bytes .../Models/ColorDataExcelModel.cs | 39 + .../Models/FactorTarget.cs | 38 + .../Models/PlotProperties.cs | 169 ++ .../Tango.MachineStudio.ThreadExtensions.csproj | 66 +- .../ViewModels/ColorParametersVewVM.cs | 788 +++++++++ .../ViewModels/MainViewVM.cs | 528 +++++- .../Views/ColorParametersView.xaml | 474 +++++ .../Views/ColorParametersView.xaml.cs | 44 + .../Views/MainView.xaml | 6 +- .../Views/MainView.xaml.cs | 10 +- .../Views/ThreadCharacteristicsView.xaml | 195 +++ .../Views/ThreadCharacteristicsView.xaml.cs | 28 + .../Views/ThreadExtensionView.xaml | 61 + .../Views/ThreadExtensionView.xaml.cs | 27 + .../Views/ThreadExtensionsView.xaml | 103 ++ .../Views/ThreadExtensionsView.xaml.cs | 27 + .../app.config | 10 + .../packages.config | 3 + .../Builders/ColorProcessParametersBuilder.cs | 41 + .../Builders/RMLExtentionsCollectionBuilder.cs | 65 + .../Tango.BL/Builders/RmlExtensionsBuilder.cs | 44 + .../Tango.BL/DTO/ColorProcessDataDTO.cs | 14 + .../Tango.BL/DTO/ColorProcessDataDTOBase.cs | 73 + .../Tango.BL/DTO/ColorProcessFactorDTO.cs | 14 + .../Tango.BL/DTO/ColorProcessFactorDTOBase.cs | 81 + .../Tango.BL/DTO/ColorProcessParameterDTO.cs | 14 + .../Tango.BL/DTO/ColorProcessParameterDTOBase.cs | 57 + .../Tango.BL/DTO/RmlsExtensionDTOBase.cs | 272 ++- .../Tango.BL/DTO/YarnApplicationDTO.cs | 14 + .../Tango.BL/DTO/YarnApplicationDTOBase.cs | 33 + .../Visual_Studio/Tango.BL/DTO/YarnBrandDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/YarnBrandDTOBase.cs | 33 + .../Visual_Studio/Tango.BL/DTO/YarnColorDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/YarnColorDTOBase.cs | 33 + .../Visual_Studio/Tango.BL/DTO/YarnEndUseDTO.cs | 14 + .../Tango.BL/DTO/YarnEndUseDTOBase.cs | 33 + .../Visual_Studio/Tango.BL/DTO/YarnFamilyDTO.cs | 14 + .../Tango.BL/DTO/YarnFamilyDTOBase.cs | 33 + .../Visual_Studio/Tango.BL/DTO/YarnGeometryDTO.cs | 14 + .../Tango.BL/DTO/YarnGeometryDTOBase.cs | 33 + .../Tango.BL/DTO/YarnGlossLevelDTO.cs | 14 + .../Tango.BL/DTO/YarnGlossLevelDTOBase.cs | 33 + .../Visual_Studio/Tango.BL/DTO/YarnGroupDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/YarnGroupDTOBase.cs | 33 + .../Tango.BL/DTO/YarnIndustrysectorDTO.cs | 14 + .../Tango.BL/DTO/YarnIndustrysectorDTOBase.cs | 33 + .../Tango.BL/DTO/YarnManufacturerDTO.cs | 14 + .../Tango.BL/DTO/YarnManufacturerDTOBase.cs | 33 + .../Visual_Studio/Tango.BL/DTO/YarnMaterialDTO.cs | 14 + .../Tango.BL/DTO/YarnMaterialDTOBase.cs | 33 + .../Visual_Studio/Tango.BL/DTO/YarnSubFamilyDTO.cs | 14 + .../Tango.BL/DTO/YarnSubFamilyDTOBase.cs | 33 + .../Visual_Studio/Tango.BL/DTO/YarnTexturingDTO.cs | 14 + .../Tango.BL/DTO/YarnTexturingDTOBase.cs | 33 + Software/Visual_Studio/Tango.BL/DTO/YarnTypeDTO.cs | 14 + .../Visual_Studio/Tango.BL/DTO/YarnTypeDTOBase.cs | 33 + .../Tango.BL/Entities/ColorProcessData.cs | 24 + .../Tango.BL/Entities/ColorProcessDataBase.cs | 296 ++++ .../Tango.BL/Entities/ColorProcessFactor.cs | 18 + .../Tango.BL/Entities/ColorProcessFactorBase.cs | 334 ++++ .../Tango.BL/Entities/ColorProcessParameter.cs | 32 + .../Tango.BL/Entities/ColorProcessParameterBase.cs | 297 ++++ .../Visual_Studio/Tango.BL/Entities/RmlBase.cs | 38 + .../Tango.BL/Entities/RmlsExtension.cs | 143 +- .../Tango.BL/Entities/RmlsExtensionBase.cs | 1841 +++++++++++++++++++- .../Visual_Studio/Tango.BL/Entities/UserBase.cs | 38 + .../Tango.BL/Entities/YarnApplication.cs | 16 + .../Tango.BL/Entities/YarnApplicationBase.cs | 114 ++ .../Visual_Studio/Tango.BL/Entities/YarnBrand.cs | 16 + .../Tango.BL/Entities/YarnBrandBase.cs | 114 ++ .../Visual_Studio/Tango.BL/Entities/YarnColor.cs | 16 + .../Tango.BL/Entities/YarnColorBase.cs | 114 ++ .../Visual_Studio/Tango.BL/Entities/YarnEndUse.cs | 16 + .../Tango.BL/Entities/YarnEndUseBase.cs | 114 ++ .../Visual_Studio/Tango.BL/Entities/YarnFamily.cs | 16 + .../Tango.BL/Entities/YarnFamilyBase.cs | 114 ++ .../Tango.BL/Entities/YarnGeometry.cs | 16 + .../Tango.BL/Entities/YarnGeometryBase.cs | 114 ++ .../Tango.BL/Entities/YarnGlossLevel.cs | 16 + .../Tango.BL/Entities/YarnGlossLevelBase.cs | 114 ++ .../Visual_Studio/Tango.BL/Entities/YarnGroup.cs | 16 + .../Tango.BL/Entities/YarnGroupBase.cs | 114 ++ .../Tango.BL/Entities/YarnIndustrysector.cs | 12 + .../Tango.BL/Entities/YarnIndustrysectorBase.cs | 114 ++ .../Tango.BL/Entities/YarnManufacturer.cs | 16 + .../Tango.BL/Entities/YarnManufacturerBase.cs | 114 ++ .../Tango.BL/Entities/YarnMaterial.cs | 16 + .../Tango.BL/Entities/YarnMaterialBase.cs | 114 ++ .../Tango.BL/Entities/YarnSubFamily.cs | 16 + .../Tango.BL/Entities/YarnSubFamilyBase.cs | 114 ++ .../Tango.BL/Entities/YarnTexturing.cs | 16 + .../Tango.BL/Entities/YarnTexturingBase.cs | 114 ++ .../Visual_Studio/Tango.BL/Entities/YarnType.cs | 16 + .../Tango.BL/Entities/YarnTypeBase.cs | 114 ++ .../Visual_Studio/Tango.BL/Enumerations/Plies.cs | 25 + .../Tango.BL/Enumerations/TwistDirections.cs | 15 + .../Tango.BL/Enumerations/YarnUnits.cs | 21 + .../Visual_Studio/Tango.BL/ObservablesContext.cs | 136 ++ .../ObservablesEntitiesAdapterExtension.cs | 646 +++++++ .../ObservablesStaticCollectionsExtension.cs | 646 +++++++ Software/Visual_Studio/Tango.BL/Tango.BL.csproj | 76 +- .../Tango.DAL.Remote/DB/COLOR_PROCESS_DATA.cs | 29 + .../Tango.DAL.Remote/DB/COLOR_PROCESS_FACTOR.cs | 30 + .../DB/COLOR_PROCESS_PARAMETERS.cs | 38 + Software/Visual_Studio/Tango.DAL.Remote/DB/RML.cs | 3 + .../Tango.DAL.Remote/DB/RMLS_EXTENSIONS.cs | 62 +- .../Tango.DAL.Remote/DB/RemoteADO.Context.cs | 17 + .../Tango.DAL.Remote/DB/RemoteADO.edmx | 1361 ++++++++++++++- .../Tango.DAL.Remote/DB/RemoteADO.edmx.diagram | 214 ++- Software/Visual_Studio/Tango.DAL.Remote/DB/USER.cs | 3 + .../Tango.DAL.Remote/DB/YARN_APPLICATIONS.cs | 31 + .../Tango.DAL.Remote/DB/YARN_BRAND.cs | 31 + .../Tango.DAL.Remote/DB/YARN_COLOR.cs | 31 + .../Tango.DAL.Remote/DB/YARN_END_USE.cs | 31 + .../Tango.DAL.Remote/DB/YARN_FAMILY.cs | 31 + .../Tango.DAL.Remote/DB/YARN_GEOMETRY.cs | 31 + .../Tango.DAL.Remote/DB/YARN_GLOSS_LEVEL.cs | 31 + .../Tango.DAL.Remote/DB/YARN_GROUP.cs | 31 + .../Tango.DAL.Remote/DB/YARN_INDUSTRYSECTOR.cs | 31 + .../Tango.DAL.Remote/DB/YARN_MANUFACTURER.cs | 31 + .../Tango.DAL.Remote/DB/YARN_MATERIALS.cs | 31 + .../Tango.DAL.Remote/DB/YARN_SUB_FAMILY.cs | 31 + .../Tango.DAL.Remote/DB/YARN_TEXTURING.cs | 31 + .../Visual_Studio/Tango.DAL.Remote/DB/YARN_TYPE.cs | 31 + .../Tango.DAL.Remote/Tango.DAL.Remote.csproj | 53 +- 129 files changed, 12556 insertions(+), 153 deletions(-) create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/App.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Contracts/IMainView.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Converters/ColorNameToBrushConverter.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Images/threads.png create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/ColorDataExcelModel.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/FactorTarget.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/PlotProperties.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/ViewModels/ColorParametersVewVM.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ColorParametersView.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ColorParametersView.xaml.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadCharacteristicsView.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadCharacteristicsView.xaml.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionView.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionView.xaml.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionsView.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionsView.xaml.cs create mode 100644 Software/Visual_Studio/Tango.BL/Builders/ColorProcessParametersBuilder.cs create mode 100644 Software/Visual_Studio/Tango.BL/Builders/RMLExtentionsCollectionBuilder.cs create mode 100644 Software/Visual_Studio/Tango.BL/Builders/RmlExtensionsBuilder.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ColorProcessDataDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ColorProcessDataDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ColorProcessFactorDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ColorProcessFactorDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ColorProcessParameterDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/ColorProcessParameterDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnApplicationDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnApplicationDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnBrandDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnBrandDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnColorDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnColorDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnEndUseDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnEndUseDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnFamilyDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnFamilyDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnGeometryDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnGeometryDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnGlossLevelDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnGlossLevelDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnGroupDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnGroupDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnIndustrysectorDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnIndustrysectorDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnManufacturerDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnManufacturerDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnMaterialDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnMaterialDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnSubFamilyDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnSubFamilyDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnTexturingDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnTexturingDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnTypeDTO.cs create mode 100644 Software/Visual_Studio/Tango.BL/DTO/YarnTypeDTOBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/ColorProcessData.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/ColorProcessDataBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/ColorProcessFactor.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/ColorProcessFactorBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/ColorProcessParameter.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/ColorProcessParameterBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnApplication.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnApplicationBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnBrand.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnBrandBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnColor.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnColorBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnEndUse.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnEndUseBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnFamily.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnFamilyBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnGeometry.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnGeometryBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnGlossLevel.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnGlossLevelBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnGroup.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnGroupBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnIndustrysector.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnIndustrysectorBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnManufacturer.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnManufacturerBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnMaterial.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnMaterialBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnSubFamily.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnSubFamilyBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnTexturing.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnTexturingBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnType.cs create mode 100644 Software/Visual_Studio/Tango.BL/Entities/YarnTypeBase.cs create mode 100644 Software/Visual_Studio/Tango.BL/Enumerations/Plies.cs create mode 100644 Software/Visual_Studio/Tango.BL/Enumerations/TwistDirections.cs create mode 100644 Software/Visual_Studio/Tango.BL/Enumerations/YarnUnits.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/COLOR_PROCESS_DATA.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/COLOR_PROCESS_FACTOR.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/COLOR_PROCESS_PARAMETERS.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_APPLICATIONS.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_BRAND.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_COLOR.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_END_USE.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_FAMILY.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_GEOMETRY.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_GLOSS_LEVEL.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_GROUP.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_INDUSTRYSECTOR.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_MANUFACTURER.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_MATERIALS.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_SUB_FAMILY.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_TEXTURING.cs create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_TYPE.cs (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Images') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/App.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/App.xaml new file mode 100644 index 000000000..6925f5a1b --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/App.xaml @@ -0,0 +1,12 @@ + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Contracts/IMainView.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Contracts/IMainView.cs new file mode 100644 index 000000000..0f432eefb --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Contracts/IMainView.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.SharedUI; + +namespace Tango.MachineStudio.ThreadExtensions.Contracts +{ + public enum ThreadExtensionNavigationView + { + ThreadExtentionView, + ThreadExtensionsView, + } + + public interface IMainView : IView + { + void NavigateTo(ThreadExtensionNavigationView view); + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Converters/ColorNameToBrushConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Converters/ColorNameToBrushConverter.cs new file mode 100644 index 000000000..c9e246bb8 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Converters/ColorNameToBrushConverter.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Data; +using System.Windows.Media; + +namespace Tango.MachineStudio.ThreadExtensions.Converters +{ + public class ColorNameToBrushConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + try + { + string colorName = value as string; + if(String.IsNullOrEmpty(colorName)) + return new SolidColorBrush(Colors.Transparent); + + Color color = (Color)TypeDescriptor.GetConverter(typeof(Color)).ConvertFromString(colorName); + + SolidColorBrush brush = new SolidColorBrush(color); + brush.Opacity = 0.5; + + return brush; + } + catch + { + return new SolidColorBrush(Colors.Transparent); + } + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Images/threads.png b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Images/threads.png new file mode 100644 index 000000000..86eb0b335 Binary files /dev/null and b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Images/threads.png differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/ColorDataExcelModel.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/ColorDataExcelModel.cs new file mode 100644 index 000000000..da7471e16 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/ColorDataExcelModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Documents; + +namespace Tango.MachineStudio.ThreadExtensions.Models +{ + public class ColorDataExcelModel + { + public int NlCm { get; set; } + public double L { get; set; } + public double A { get; set; } + public double B { get; set; } + + public ColorDataExcelModel() + { + NlCm = 0; + L = A = B = 0.0; + } + + public static void GetDataFromFile(string fileName, out List items, ref string errors) + { + items = null; + try + { + using (ExcelReader reader = new ExcelReader(fileName)) + { + items = reader.GetDataByIndex("Sheet1", 1); + } + } + catch (Exception ex) + { + errors = ex.Message; + } + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/FactorTarget.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/FactorTarget.cs new file mode 100644 index 000000000..32f568f5f --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/FactorTarget.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.MachineStudio.ThreadExtensions.Models +{ + public static class FactorTarget + { + public static Dictionary FACTOR100 = new Dictionary() { + { "CYAN", 51.95}, {"MAGENTA", 47.47}, { "YELLOW", 94.05}, {"BLACK", 26.58}}; + + public static Dictionary FACTOR200 = new Dictionary() { + { "CYAN", 46.3}, {"MAGENTA", 41.04}, { "YELLOW", 97.78}, {"BLACK", 21.01}}; + + public static double GetFactor100(string color) + { + double result; + + if (FACTOR100.TryGetValue(color, out result)) + { + return result; + } + return 0.0; + } + public static double GetFactor200(string color) + { + double result; + + if (FACTOR200.TryGetValue(color, out result)) + { + return result; + } + return 0.0; + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/PlotProperties.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/PlotProperties.cs new file mode 100644 index 000000000..47632d3aa --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Models/PlotProperties.cs @@ -0,0 +1,169 @@ +using OxyPlot; +using OxyPlot.Wpf; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using Tango.BL.Entities; +using Tango.Core; +using Tango.MachineStudio.ThreadExtensions.ViewModels; + +namespace Tango.MachineStudio.ThreadExtensions.Models +{ + public class PlotProperties : ExtendedObject + { + public Plot PlotControl { get; set; } + private IList _points; + + private string _colorName; + + public string ColorName + { + get { return _colorName; } + set { _colorName = value; } + } + + /// + /// Binding to ItemsSource of line chart. + /// + public IList Points + { + get { return _points; } + set + { + _points = value; + RaisePropertyChangedAuto(); + } + } + private IList _target100Points; + /// + /// Binding to ItemsSource of line chart. + /// + public IList Target100Points + { + get { return _target100Points; } + set + { + _target100Points = value; + RaisePropertyChangedAuto(); + } + } + private IList _target200Points; + /// + /// Binding to ItemsSource of line chart. + /// + public IList Target200Points + { + get { return _target200Points; } + set + { + _target200Points = value; + RaisePropertyChangedAuto(); + } + } + private int _step; + public int XStep + { + get { return _step; } + set { _step = value; RaisePropertyChangedAuto(); } + } + + private double _from; + /// + /// From use to binding to bottom axis min value + /// + public double From + { + get { return _from; } + set + { + _from = value; RaisePropertyChangedAuto(); + } + } + + private double _to; + /// + /// To use to binding to bottom axis max value + /// + public double To + { + get { return _to; } + set + { + _to = value; RaisePropertyChangedAuto(); + } + } + + public PlotProperties(string colorName) + { + this.Points = new List(); + Target100Points = new List(); + Target200Points = new List(); + ColorName = colorName; + + } + + public void ClearResults() + { + Points.Clear(); + Target100Points.Clear(); + Target200Points.Clear(); + } + + public void CreateGraph(List points, bool isLtype) + { + if (PlotControl == null) + { + Debug.WriteLine("ERROR!!! CreateGraph. Plot Control is NULL."); + return; + } + + ClearResults(); + PlotControl.InvalidatePlot(true); + + double target100Y = FactorTarget.GetFactor100(ColorName); + double target200Y = FactorTarget.GetFactor200(ColorName); + + _to = target100Y > target200Y? target100Y + 10: target200Y + 10; + _from = target100Y < target200Y ? target100Y - 10 : target200Y - 10; + + foreach ( var x in points) + { + var point = new DataPoint(x.InkNlCm, isLtype ? x.L : x.B); + Points.Add(point); + + _to = _to > point.Y ? _to : point.Y; + _from = ( _from == 0 || _from > point.Y ) ? point.Y : _from; + + } + if (points.Count > 1) + { + var minInkNlCm = points.Min(n => n.InkNlCm); + var maxInkNlCm = points.Max(n => n.InkNlCm); + if(! Target100Points.Any(x => x.X == minInkNlCm)) + { + Target100Points.Add(new DataPoint(minInkNlCm, target100Y)); + Target200Points.Add(new DataPoint(minInkNlCm, target200Y)); + } + if (!Target100Points.Any(x => x.X == maxInkNlCm)) + { + Target100Points.Add(new DataPoint(maxInkNlCm, target100Y)); + Target200Points.Add(new DataPoint(maxInkNlCm, target200Y)); + } + } + Debug.WriteLine($"CreateGraph. Count Points {points.Count}"); + + if (_to == 0) + _to = isLtype ? 100 : 128; + if (_from == 0) + _from = isLtype ? 0 : -127; + + RaisePropertyChanged("To"); + RaisePropertyChanged("From"); + XStep = (int)(Points.Count / 6); + + PlotControl.InvalidatePlot(true); + + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Tango.MachineStudio.ThreadExtensions.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Tango.MachineStudio.ThreadExtensions.csproj index ca27b9a48..6b7204aac 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Tango.MachineStudio.ThreadExtensions.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Tango.MachineStudio.ThreadExtensions.csproj @@ -32,6 +32,12 @@ 4 + + ..\..\..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll + + + ..\..\..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll + ..\..\..\packages\Google.Protobuf.3.4.1\lib\net45\Google.Protobuf.dll @@ -47,8 +53,17 @@ ..\..\..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll + + ..\..\..\packages\OxyPlot.Core.2.0.0\lib\net45\OxyPlot.dll + + + ..\..\..\packages\OxyPlot.Wpf.2.0.0\lib\net45\OxyPlot.Wpf.dll + + + + ..\..\..\packages\MahApps.Metro.1.5.0\lib\net45\System.Windows.Interactivity.dll @@ -69,16 +84,54 @@ GlobalVersionInfo.cs + + + + + + + + ColorParametersView.xaml + MainView.xaml + + ThreadCharacteristicsView.xaml + + + ThreadExtensionView.xaml + + + ThreadExtensionsView.xaml + + + MSBuild:Compile + Designer + + + Designer + MSBuild:Compile + Designer MSBuild:Compile + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + @@ -105,8 +158,14 @@ Settings.Designer.cs - + + + + + {bb2abb74-ba58-4812-83aa-ec8171f42df4} + Tango.AutoComplete + {f441feee-322a-4943-b566-110e12fd3b72} Tango.BL @@ -115,6 +174,10 @@ {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} Tango.Core + + {ca87a608-7b17-4c98-88f2-42abee10f4c1} + Tango.Documents + {bc932dbd-7cdb-488c-99e4-f02cf441f55e} Tango.Logging @@ -139,5 +202,6 @@ + \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/ViewModels/ColorParametersVewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/ViewModels/ColorParametersVewVM.cs new file mode 100644 index 000000000..b2e677339 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/ViewModels/ColorParametersVewVM.cs @@ -0,0 +1,788 @@ +using OxyPlot; +using OxyPlot.Wpf; +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Collections.Specialized; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL; +using Tango.BL.ActionLogs; +using Tango.BL.Builders; +using Tango.BL.DTO; +using Tango.BL.Entities; +using Tango.Core; +using Tango.MachineStudio.Common.Notifications; +using Tango.SharedUI; +using Tango.AutoComplete.Editors; +using Tango.MachineStudio.ThreadExtensions.Models; +using Tango.Core.Commands; +using Microsoft.Win32; +using System.Diagnostics; + +namespace Tango.MachineStudio.ThreadExtensions.ViewModels +{ + public class ColorParametersVewVM : ViewModel + { + private INotificationProvider _notification; + private IActionLogManager _actionLogManager; + + private ObservablesContext _active_context; + private ObservablesContext _machineDbContext; + // private ColorProcessParameterDTO _hwBeforeSave; + + #region Properties + + private ColorProcessParameter _selectedColorProcessparameter; + /// + /// Gets or sets the selected RML. + /// + public ColorProcessParameter SelectedColorProcessParameter + { + get { return _selectedColorProcessparameter; } + set + { + _selectedColorProcessparameter = value; + RaisePropertyChangedAuto(); + } + } + + private ObservableCollection _magentaProcessData; + public ObservableCollection MagentaProcessData + { + get + { + return _magentaProcessData; + } + set + { + _magentaProcessData = value; + RaisePropertyChangedAuto(); + } + } + + private ObservableCollection _cyanProcessData; + public ObservableCollection CyanProcessData + { + get + { + return _cyanProcessData; + } + set + { + _cyanProcessData = value; + RaisePropertyChangedAuto(); + } + } + + private ObservableCollection _yellowProcessData; + public ObservableCollection YellowProcessData + { + get + { + return _yellowProcessData; + } + set + { + _yellowProcessData = value; + RaisePropertyChangedAuto(); + } + } + + private ObservableCollection _blackProcessData; + public ObservableCollection BlackProcessData + { + get + { + return _blackProcessData; + } + set + { + _blackProcessData = value; + RaisePropertyChangedAuto(); + } + } + + private ObservableCollection _factor100ProcessData; + public ObservableCollection Factor100ProcessData + { + get + { + return _factor100ProcessData; + } + set + { + _factor100ProcessData = value; + RaisePropertyChangedAuto(); + } + } + + private ObservableCollection _factor200ProcessData; + public ObservableCollection Factor200ProcessData + { + get + { + return _factor200ProcessData; + } + set + { + _factor200ProcessData = value; + RaisePropertyChangedAuto(); + } + } + + private ObservableCollection _minInkUptake; + public ObservableCollection MinInkUptake + { + get + { + return _minInkUptake; + } + set + { + _minInkUptake = value; + RaisePropertyChangedAuto(); + } + } + + private ObservableCollection _maxInkUptake; + public ObservableCollection MaxInkUptake + { + get + { + return _maxInkUptake; + } + set + { + _maxInkUptake = value; + RaisePropertyChangedAuto(); + } + } + + + private PlotProperties _cyanPlot; + + public PlotProperties CyanPlot + { + get { return _cyanPlot; } + set { + _cyanPlot = value; + RaisePropertyChangedAuto(); + } + } + + private PlotProperties _magentaPlot; + + public PlotProperties MagentaPlot + { + get { return _magentaPlot; } + set { _magentaPlot = value; } + } + + private PlotProperties _yellowPlot; + + public PlotProperties YellowPlot + { + get { return _yellowPlot; } + set { _yellowPlot = value; } + } + + private PlotProperties _blackPlot; + + public PlotProperties BlackPlot + { + get { return _blackPlot; } + set { _blackPlot = value; } + } + /// + /// Gets or sets the machines providers. + /// + public ISuggestionProvider MachinesProvider { get; set; } + + protected Machine _selectedMachine; + /// + /// Gets or sets the selected machine. + /// + public Machine SelectedMachine + { + get { return _selectedMachine; } + set + { + if (value != null && _selectedMachine != value) + { + _selectedMachine = value; + RaisePropertyChangedAuto(); + InvalidateRelayCommands(); + } + } + } + + private bool _isViewLoaded; + /// + /// Gets or sets a value indicating whether this instance is view loaded. Used to update charts. + /// + /// + /// true if this instance is view loaded; otherwise, false. + /// + public bool IsViewLoaded + { + get { return _isViewLoaded; } + set { + if(_isViewLoaded != value) + { + _isViewLoaded = value; + } + } + } + + private Dictionary _removedColorProcessDataBeforeSave; + + public Dictionary RemovedColorProcessDataBeforeSave + { + get { return _removedColorProcessDataBeforeSave; } + set { _removedColorProcessDataBeforeSave = value; } + } + + #endregion + #region commands + + public RelayCommand ImportCyanDataCommand { get; set; } + public RelayCommand ImportMagentaDataCommand { get; set; } + public RelayCommand ImportYellowDataCommand { get; set; } + public RelayCommand ImportBlackDataCommand { get; set; } + + private void ImportMagentaData(object obj) + { + List items; + if (LoadColorDataFromExcel(out items) && items != null) + { + MagentaProcessData.Clear(); + items.ForEach(x => MagentaProcessData.Add(new ColorProcessData() { InkNlCm = x.NlCm, L = x.L, A = x.A, B = x.B, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid})); + MagentaPlot.CreateGraph(MagentaProcessData.ToList(), true); + UpdateFactorsOnChangeProcessData("MAGENTA"); + } + } + + private void ImportYellowData(object obj) + { + List items; + if (LoadColorDataFromExcel(out items) && items != null) + { + YellowProcessData.Clear(); + items.ForEach(x => YellowProcessData.Add(new ColorProcessData() { InkNlCm = x.NlCm, L = x.L, A = x.A, B = x.B, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid})); + YellowPlot.CreateGraph(YellowProcessData.ToList(), false); + UpdateFactorsOnChangeProcessData("YELLOW"); + } + } + + private void ImportCyanData(object obj) + { + List items; + if (LoadColorDataFromExcel(out items) && items != null) + { + CyanProcessData.Clear(); + items.ForEach(x => CyanProcessData.Add(new ColorProcessData() { InkNlCm = x.NlCm, L = x.L, A = x.A, B = x.B, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid })); + CyanPlot.CreateGraph(CyanProcessData.ToList(), true); + UpdateFactorsOnChangeProcessData("CYAN"); + } + } + + private void ImportBlackData(object obj) + { + List items; + if (LoadColorDataFromExcel(out items) && items != null) + { + BlackProcessData.Clear(); + items.ForEach(x => BlackProcessData.Add(new ColorProcessData() { InkNlCm = x.NlCm, L = x.L, A = x.A, B = x.B, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid })); + BlackPlot.CreateGraph(BlackProcessData.ToList(), true); + UpdateFactorsOnChangeProcessData("BLACK"); + } + } + + private bool LoadColorDataFromExcel(out List items) + { + OpenFileDialog dlg = new OpenFileDialog(); + items = null; + try + { + dlg.Title = $"Import excel file with data"; + dlg.Filter = "Excel Files|*.xlsx"; + if (dlg.ShowDialog().Value) + { + string error = ""; + ColorDataExcelModel.GetDataFromFile(dlg.FileName, out items, ref error); + if (false == String.IsNullOrEmpty(error) || items == null || items.Count == 0) + { + _notification.ShowError("An error occurred while trying to import data form the selected excel file. Please check the file format if valid and is available to read."); + return false; + } + return true; + } + } + catch (Exception ex) + { + LogManager.Log(ex, "Error importing excel file " + dlg.FileName); + _notification.ShowError("An error occurred while trying to import the selected excel file. Please check the file format if valid and is available to read."); + } + return false; + } + + #endregion + + public ColorParametersVewVM(INotificationProvider notification, IActionLogManager actionLogManager) + { + _notification = notification; + _actionLogManager = actionLogManager; + _isViewLoaded = false; + RemovedColorProcessDataBeforeSave = new Dictionary(); + + MachinesProvider = new SuggestionProvider((filter) => + { + try + { + return _machineDbContext.Machines.Where(x => x.SerialNumber.StartsWith(filter)).ToList(); + } + catch + { + return null; + } + }); + + CyanProcessData = new ObservableCollection(); + CyanProcessData.CollectionChanged += OnCyanCollectionChanged; + + MagentaProcessData = new ObservableCollection(); + MagentaProcessData.CollectionChanged += OnMagentaCollectionChanged; + + YellowProcessData = new ObservableCollection(); + YellowProcessData.CollectionChanged += OnYellowCollectionChanged; + + BlackProcessData = new ObservableCollection(); + BlackProcessData.CollectionChanged += OnBlackCollectionChanged; + + CyanPlot = new PlotProperties("CYAN"); + YellowPlot = new PlotProperties("YELLOW"); + MagentaPlot = new PlotProperties("MAGENTA"); + BlackPlot = new PlotProperties("BLACK"); + + ImportCyanDataCommand = new RelayCommand(ImportCyanData); + ImportMagentaDataCommand = new RelayCommand(ImportMagentaData); + ImportYellowDataCommand = new RelayCommand(ImportYellowData); + ImportBlackDataCommand = new RelayCommand(ImportBlackData); + } + + #region Loading + + public async void LoadColorParameters(string RMLExtemtionGUID) + { + IsFree = false; + if (_active_context != null) + { + _active_context.Dispose(); + } + if (_machineDbContext != null) + { + _machineDbContext.Dispose(); + } + + + LogManager.Log("Initializing machine Db context..."); + + _machineDbContext = ObservablesContext.CreateDefault(); + + + _active_context = ObservablesContext.CreateDefault(); + + await Task.Factory.StartNew(() => + { + using (_notification.PushTaskItem("Loading Color Process Parameters ...")) + { + + var currentcolorProcessParameter = _active_context.ColorProcessParameters.Where(x => x.RmlsExtensionsGuid == RMLExtemtionGUID).FirstOrDefault(); + if(currentcolorProcessParameter != null) + { + SelectedColorProcessParameter = new ColorProcessParametersBuilder(_active_context).Set(currentcolorProcessParameter.Guid).WithColorProcessData().WithColorProcessFactor(). Build(); + } + + if (SelectedColorProcessParameter == null) + { + SelectedColorProcessParameter = new ColorProcessParameter() { RmlsExtensionsGuid = RMLExtemtionGUID }; + SelectedColorProcessParameter.WhitePointL = 0.0; + SelectedColorProcessParameter.WhitePointA = 0.0; + SelectedColorProcessParameter.WhitePointB = 0.0; + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "CYAN", FactorPercent = 100, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "MAGENTA", FactorPercent = 100, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "YELLOW", FactorPercent = 100, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "BLACK", FactorPercent = 100, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "CYAN", FactorPercent = 200, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "MAGENTA", FactorPercent = 200, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "YELLOW", FactorPercent = 200, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "BLACK", FactorPercent = 200, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "CYAN", FactorPercent = 1, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "MAGENTA", FactorPercent = 1, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "YELLOW", FactorPercent = 1, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "BLACK", FactorPercent = 1, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "CYAN", FactorPercent = 1111, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "MAGENTA", FactorPercent = 1111, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "YELLOW", FactorPercent = 1111, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + SelectedColorProcessParameter.ColorProcessFactor.Add(new ColorProcessFactor() { ColorName = "BLACK", FactorPercent = 1111, ColorProcessParametersGuid = SelectedColorProcessParameter.Guid }); + _active_context.ColorProcessParameters.Add(SelectedColorProcessParameter); + _active_context.SaveChangesAsync(); + } + + } + }); + + LoadParameters(); + IsFree = true; + } + + private void LoadParameters() + { + Factor100ProcessData = SelectedColorProcessParameter.ColorProcessFactor.Where(x => x.FactorPercent == 100).ToObservableCollection(); + + Factor200ProcessData = SelectedColorProcessParameter.ColorProcessFactor.Where(x => x.FactorPercent == 200).ToObservableCollection(); + + MinInkUptake = SelectedColorProcessParameter.ColorProcessFactor.Where(x => x.FactorPercent == 1).ToObservableCollection(); + + MaxInkUptake = SelectedColorProcessParameter.ColorProcessFactor.Where(x => x.FactorPercent == 1111).ToObservableCollection(); + + RemovedColorProcessDataBeforeSave.Clear(); + + var cyanDataList = SelectedColorProcessParameter.ColorProcessData.Where(x => x.ColorName == "CYAN").ToList().OrderBy(x => x.InkNlCm ).ToList(); + CyanProcessData.Clear(); + cyanDataList.ForEach( y => CyanProcessData.Add(y)); + + var magentaDatalist = SelectedColorProcessParameter.ColorProcessData.Where(x => x.ColorName == "MAGENTA").ToList().OrderBy(x => x.InkNlCm).ToList(); ; + MagentaProcessData.Clear(); + magentaDatalist.ForEach(y => MagentaProcessData.Add(y)); + + var yellowDatalist = SelectedColorProcessParameter.ColorProcessData.Where(x => x.ColorName == "YELLOW").ToList().OrderBy(x => x.InkNlCm).ToList(); ; + YellowProcessData.Clear(); + yellowDatalist.ForEach(y => YellowProcessData.Add(y)); + + var blackDatalist = SelectedColorProcessParameter.ColorProcessData.Where(x => x.ColorName == "BLACK").ToList().OrderBy(x => x.InkNlCm).ToList(); ; + BlackProcessData.Clear(); + blackDatalist.ForEach(y => BlackProcessData.Add(y)); + + UpdatePlots(); + SelectedColorProcessParameter.ColorProcessFactor.ToList().ForEach(x => UpdateFactorsOnChangeProcessData(x.ColorName)); + } + + #endregion + + #region Update Plot + + public void UpdatePlots() + { + if (IsViewLoaded) + { + CyanPlot.CreateGraph(CyanProcessData.ToList(), true); + MagentaPlot.CreateGraph(MagentaProcessData.ToList(), true); + YellowPlot.CreateGraph(YellowProcessData.ToList(), false); + BlackPlot.CreateGraph(BlackProcessData.ToList(), true); + } + } + + private void OnCyanCollectionChanged(object sender, NotifyCollectionChangedEventArgs e) + { + if (e.Action == NotifyCollectionChangedAction.Reset) + { + var cyanProcessData = SelectedColorProcessParameter.ColorProcessData.Where(x => x.ColorName == "CYAN").ToObservableCollection(); + foreach (ColorProcessData item in cyanProcessData) + { + SelectedColorProcessParameter.ColorProcessData.Remove(item); + RemovedColorProcessDataBeforeSave[item.Guid] = item; + item.PropertyChanged -= CyanMeasurementModelPropertyChanged; + } + // UpdateFactorsOnChangeProcessData("Cyan"); + } + else if (e.Action == NotifyCollectionChangedAction.Remove) + { + foreach (ColorProcessData item in e.OldItems) + { + SelectedColorProcessParameter.ColorProcessData.Remove(item); + RemovedColorProcessDataBeforeSave[item.Guid] = item; + item.PropertyChanged -= CyanMeasurementModelPropertyChanged; + } + UpdateFactorsOnChangeProcessData("CYAN"); + } + else if (e.Action == NotifyCollectionChangedAction.Add) + { + foreach (ColorProcessData item in e.NewItems) + { + item.ColorName = "CYAN"; + item.ColorProcessParametersGuid = SelectedColorProcessParameter.Guid; + SelectedColorProcessParameter.ColorProcessData.Add(item); + RemovedColorProcessDataBeforeSave.Remove(item.Guid); + item.PropertyChanged += CyanMeasurementModelPropertyChanged; + } + } + } + + private void CyanMeasurementModelPropertyChanged(object sender, PropertyChangedEventArgs e) + { + if(IsFree) + { + CyanPlot.CreateGraph(CyanProcessData.ToList(), true); + UpdateFactorsOnChangeProcessData("CYAN"); + } + } + + private void OnMagentaCollectionChanged(object sender, NotifyCollectionChangedEventArgs e) + { + if (e.Action == NotifyCollectionChangedAction.Reset) + { + var magentaProcessData = SelectedColorProcessParameter.ColorProcessData.Where(x => x.ColorName == "MAGENTA").ToObservableCollection(); + foreach (ColorProcessData item in magentaProcessData) + { + item.PropertyChanged -= MagentaMeasurementModelPropertyChanged; + SelectedColorProcessParameter.ColorProcessData.Remove(item); + RemovedColorProcessDataBeforeSave[item.Guid] = item; + } + // UpdateFactorsOnChangeProcessData("Magenta"); + } + else if (e.Action == NotifyCollectionChangedAction.Remove) + { + foreach (ColorProcessData item in e.OldItems) + { + SelectedColorProcessParameter.ColorProcessData.Remove(item); + RemovedColorProcessDataBeforeSave[item.Guid] = item; + item.PropertyChanged -= MagentaMeasurementModelPropertyChanged; + } + UpdateFactorsOnChangeProcessData("MAGENTA"); + } + else if (e.Action == NotifyCollectionChangedAction.Add) + { + foreach (ColorProcessData item in e.NewItems) + { + item.ColorName = "MAGENTA"; + item.ColorProcessParametersGuid = SelectedColorProcessParameter.Guid; + SelectedColorProcessParameter.ColorProcessData.Add(item); + RemovedColorProcessDataBeforeSave.Remove(item.Guid); + item.PropertyChanged += MagentaMeasurementModelPropertyChanged; + } + } + } + + private void MagentaMeasurementModelPropertyChanged(object sender, PropertyChangedEventArgs e) + { + if (IsFree) + { + MagentaPlot.CreateGraph(MagentaProcessData.ToList(), true); + UpdateFactorsOnChangeProcessData("MAGENTA"); + } + } + + private void OnYellowCollectionChanged(object sender, NotifyCollectionChangedEventArgs e) + { + if (e.Action == NotifyCollectionChangedAction.Reset) + { + var yellowProcessData = SelectedColorProcessParameter.ColorProcessData.Where(x => x.ColorName == "YELLOW").ToObservableCollection(); + foreach (ColorProcessData item in yellowProcessData) + { + item.PropertyChanged -= YellowMeasurementModelPropertyChanged; + SelectedColorProcessParameter.ColorProcessData.Remove(item); + RemovedColorProcessDataBeforeSave[item.Guid] = item; + } + //UpdateFactorsOnChangeProcessData("Yellow"); + } + else if (e.Action == NotifyCollectionChangedAction.Remove) + { + foreach (ColorProcessData item in e.OldItems) + { + SelectedColorProcessParameter.ColorProcessData.Remove(item); + RemovedColorProcessDataBeforeSave[item.Guid] = item; + item.PropertyChanged -= YellowMeasurementModelPropertyChanged; + } + UpdateFactorsOnChangeProcessData("YELLOW"); + } + else if (e.Action == NotifyCollectionChangedAction.Add) + { + foreach (ColorProcessData item in e.NewItems) + { + item.ColorName = "YELLOW"; + item.ColorProcessParametersGuid = SelectedColorProcessParameter.Guid; + SelectedColorProcessParameter.ColorProcessData.Add(item); + RemovedColorProcessDataBeforeSave.Remove(item.Guid); + item.PropertyChanged += YellowMeasurementModelPropertyChanged; + } + } + } + + private void YellowMeasurementModelPropertyChanged(object sender, PropertyChangedEventArgs e) + { + if (IsFree) + { + YellowPlot.CreateGraph(YellowProcessData.ToList(), false); + UpdateFactorsOnChangeProcessData("YELLOW"); + } + } + + private void OnBlackCollectionChanged(object sender, NotifyCollectionChangedEventArgs e) + { + if(e.Action == NotifyCollectionChangedAction.Reset) + { + var blackProcessData = SelectedColorProcessParameter.ColorProcessData.Where(x => x.ColorName == "BLACK").ToObservableCollection(); + foreach (ColorProcessData item in blackProcessData) + { + item.PropertyChanged -= BlackMeasurementModelPropertyChanged; + SelectedColorProcessParameter.ColorProcessData.Remove(item); + RemovedColorProcessDataBeforeSave[item.Guid] = item; + } + //UpdateFactorsOnChangeProcessData("Black"); + } + else if (e.Action == NotifyCollectionChangedAction.Remove) + { + foreach (ColorProcessData item in e.OldItems) + { + SelectedColorProcessParameter.ColorProcessData.Remove(item); + RemovedColorProcessDataBeforeSave[item.Guid] = item; + item.PropertyChanged -= BlackMeasurementModelPropertyChanged; + } + UpdateFactorsOnChangeProcessData("BLACK"); + } + else if (e.Action == NotifyCollectionChangedAction.Add) + { + foreach (ColorProcessData item in e.NewItems) + { + item.ColorName = "BLACK"; + item.ColorProcessParametersGuid = SelectedColorProcessParameter.Guid; + SelectedColorProcessParameter.ColorProcessData.Add(item); + RemovedColorProcessDataBeforeSave.Remove(item.Guid); + item.PropertyChanged += BlackMeasurementModelPropertyChanged; + } + + } + } + + private void BlackMeasurementModelPropertyChanged(object sender, PropertyChangedEventArgs e) + { + if (IsFree) + { + BlackPlot.CreateGraph(BlackProcessData.ToList(), true); + UpdateFactorsOnChangeProcessData("BLACK"); + } + } + + #endregion + + #region update factors + + /// + /// Updates the ColorProcessFactor from ColorProcessData item. + /// + /// The factor. + /// The item. + private void UpdateFactor(ColorProcessFactor factor, ColorProcessData item) + { + if (factor == null) + return; + if (item == null) + { + factor.InkNlCm = 0; + factor.L = factor.A = factor.B = 0.0; + return; + } + factor.InkNlCm = item.InkNlCm; + factor.L = item.L; + factor.A = item.A; + factor.B = item.B; + } + + /// + /// Calculate and Update the factors on change process data. + /// + /// The color. + private void UpdateFactorsOnChangeProcessData(string color) + { + bool isLtype = color.ToLower() == "yellow" ? false : true; + var processData = SelectedColorProcessParameter.ColorProcessData.Where(x => x.ColorName.ToLower() == color.ToLower()).ToObservableCollection(); + double target100 = FactorTarget.GetFactor100(color); + double target200 = FactorTarget.GetFactor200(color); + ColorProcessData closest100 = null; + ColorProcessData closest200 = null; + ColorProcessData minInk = null; + ColorProcessData maxInk = null; + + var minDifference100 = double.MaxValue; + var minDifference200 = double.MaxValue; + + if (processData.Count == 0) + return; + + foreach (var item in processData) + { + var colorvalue = isLtype ? item.L : item.B; + var difference100 = Math.Abs(colorvalue - target100); + if (minDifference100 > difference100) + { + minDifference100 = (int)difference100; + closest100 = item; + } + var difference200 = Math.Abs(colorvalue - target200); + if (minDifference200 > difference200) + { + minDifference200 = (int)difference200; + closest200 = item; + } + if (minInk == null || minInk.InkNlCm > item.InkNlCm) + { + minInk = item; + } + if (maxInk == null || maxInk.InkNlCm < item.InkNlCm) + { + maxInk = item; + } + } + UpdateFactor(Factor100ProcessData.FirstOrDefault(x => x.ColorName == color), closest100); + UpdateFactor(Factor200ProcessData.FirstOrDefault(x => x.ColorName == color), closest200); + UpdateFactor(MinInkUptake.FirstOrDefault(x => x.ColorName == color), minInk); + UpdateFactor(MaxInkUptake.FirstOrDefault(x => x.ColorName == color), maxInk); + } + + #endregion + + #region save + + public async void Save() + { + try + { + IsFree = false; + await Task.Factory.StartNew(() => + { + SelectedColorProcessParameter.LastUpdated = DateTime.UtcNow; + + var colorProcessParameterAfterChange = ColorProcessParameterDTO.FromObservable(SelectedColorProcessParameter); + + foreach (KeyValuePair item in RemovedColorProcessDataBeforeSave) + { + var existingColorProcessData = _active_context.ColorProcessData.FirstOrDefault(y => y.Guid == item.Value.Guid); + if (existingColorProcessData != null) + { + _active_context.ColorProcessData.Remove(existingColorProcessData); + } + } + _active_context.SaveChanges(); + + }); + LoadColorParameters(SelectedColorProcessParameter.RmlsExtensionsGuid); + } + catch (Exception ex) + { + LogManager.Log(ex, "Could not update color parameters."); + _notification.ShowError($"An error occurred while trying to save color parameters.\n{ex.Message}"); + } + finally + { + IsFree = true; + } + } + + #endregion + } +} + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/ViewModels/MainViewVM.cs index 607670461..3fde7abbe 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/ViewModels/MainViewVM.cs @@ -1,18 +1,542 @@ - +using Microsoft.Win32; using System; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel; +using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; +using System.Windows.Data; +using Tango.BL; +using Tango.BL.Builders; +using Tango.BL.Calibration; +using Tango.BL.Entities; +using Tango.Core.Commands; using Tango.MachineStudio.Common; +using Tango.MachineStudio.Common.Notifications; + + +using System.Data.Entity; +using Tango.Core.ExtensionMethods; +using Tango.MachineStudio.Common.Authentication; +using Tango.BL.ActionLogs; +using Tango.BL.DTO; +using Tango.BL.Enumerations; +using Tango.MachineStudio.ThreadExtensions.Contracts; +using Tango.MachineStudio.ThreadExtensions.Views; namespace Tango.MachineStudio.ThreadExtensions.ViewModels { - public class MainViewVM : StudioViewModel + public class MainViewVM : StudioViewModel { + private INotificationProvider _notification; + private IAuthenticationProvider _authentication; + private IActionLogManager _actionLogManager; + private RmlsExtensionDTO _rmlExtensionBeforeSave; + + private ObservablesContext _rmlExtentions_context; + private ObservablesContext _active_context; + + #region properties + private ObservableCollection _rmlsExtension; + public ObservableCollection RmlsExtensions + { + get { return _rmlsExtension; } + set { _rmlsExtension = value; + RaisePropertyChangedAuto(); } + } + + + private RmlsExtension _activeRMLExtention; + public RmlsExtension ActiveRMLExtention + { + get { return _activeRMLExtention; } + set { _activeRMLExtention = value; + RaisePropertyChangedAuto(); } + } + + private RmlsExtension _selectedRMLExtension; + public RmlsExtension SelectedRMLExtension + { + get { return _selectedRMLExtension; } + set { _selectedRMLExtension = value; RaisePropertyChangedAuto(); InvalidateRelayCommands(); } + } + + private ICollectionView _rmlExtCollectionView; + /// + /// Gets or sets the RML collection view. + /// + public ICollectionView RmlExtCollectionView + { + get { return _rmlExtCollectionView; } + set + { + _rmlExtCollectionView = value; + RaisePropertyChangedAuto(); + } + } + + private ObservableCollection _applications; + public ObservableCollection Applications + { + get { return _applications; } + set { _applications = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _brands; + public ObservableCollection Brands + { + get { return _brands; } + set { _brands = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _yarnColor; + public ObservableCollection YarnColor + { + get { return _yarnColor; } + set { _yarnColor = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _enduse; + public ObservableCollection EndUse + { + get { return _enduse; } + set { _enduse = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _family; + public ObservableCollection Family + { + get { return _family; } + set { _family = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _geometry; + public ObservableCollection Geometry + { + get { return _geometry; } + set { _geometry = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _glosslevel; + public ObservableCollection GlossLevel + { + get { return _glosslevel; } + set { _glosslevel = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _group; + public ObservableCollection Group + { + get { return _group; } + set { _group = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _manufacturer; + public ObservableCollection Manufacturer + { + get { return _manufacturer; } + set { _manufacturer = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _materials; + public ObservableCollection Materials + { + get { return _materials; } + set { _materials = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _subFamilies; + public ObservableCollection SubFamilies + { + get { return _subFamilies; } + set { _subFamilies = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _texturing; + public ObservableCollection Texturing + { + get { return _texturing; } + set { _texturing = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _yarnTypes; + public ObservableCollection YarnTypes + { + get { return _yarnTypes; } + set { _yarnTypes = value; RaisePropertyChangedAuto(); } + } + + private ObservableCollection _industrySector; + public ObservableCollection IndustrySector + { + get { return _industrySector; } + set { _industrySector = value; RaisePropertyChangedAuto(); } + } + + private String _Filter; + /// + /// Gets or sets the search filter. + /// + public String Filter + { + get { return _Filter; } + set { _Filter = value; RaisePropertyChangedAuto(); OnFilterChanged(); } + } + + private void OnFilterChanged() + { + RmlExtCollectionView.Refresh(); + } + + private ColorParametersVewVM _colorParametersVewVM; + public ColorParametersVewVM ColorParametersVewVM + { + get { return _colorParametersVewVM; } + set { _colorParametersVewVM = value; RaisePropertyChangedAuto(); } + } + #endregion + + #region commands + + public RelayCommand SaveCommand { get; set; } + + public RelayCommand ManageRmlExtensionCommand { get; set; } + + public RelayCommand AddRmlExtCommand { get; set; } + + public RelayCommand RemoveRmlExtensionCommand { get; set; } + + public RelayCommand CloneRmlExtensionCommand { get; set; } + + public RelayCommand BackToThreadExtensionViewsCommand { get; set; } + + + private void BackToThreadExtensionViews(object obj) + { + View.NavigateTo(ThreadExtensionNavigationView.ThreadExtensionsView); + LoadRmlExtentions(); + } + + private async void CloneSelectedRmlExtension(object obj) + { + using (_notification.PushTaskItem("Cloning thread...")) + { + try + { + IsFree = false; + + using (var context = ObservablesContext.CreateDefault()) + { + RmlsExtension rml_extention = await new RmlExtensionsBuilder(_rmlExtentions_context).Set(SelectedRMLExtension.Guid).WithUser().BuildAsync(); + + RmlsExtension cloned = new RmlsExtension(); + rml_extention.MapPropertiesTo(cloned, MappingFlags.NoReferenceTypes); + + cloned.Guid = Guid.NewGuid().ToString(); + cloned.ID = 0; + + + context.RmlsExtensions.Add(cloned); + await context.SaveChangesAsync(); + + //_actionLogManager.InsertLog(BL.Enumerations.ActionLogType.RmlCreated, _authentication.CurrentUser, cloned.Name, cloned, "RML cloned from Machine Studio."); + } + + LoadRmlExtentions(); + } + catch (Exception ex) + { + LogManager.Log(ex, "Error cloning thread."); + _notification.ShowError($"An error occurred while trying to clone the selected thread\n{ex.Message}"); + } + finally + { + IsFree = true; + } + } + } + + private async void RemoveRmlExtension(object obj) + { + if (_notification.ShowQuestion(" Are you sure you want to delete the selected RML Extension?")) + { + using (_notification.PushTaskItem("Removing RML Extension...")) + { + try + { + IsFree = false; + + await SelectedRMLExtension.DeleteCascadeAsync(_rmlExtentions_context); + //_actionLogManager.InsertLog(BL.Enumerations.ActionLogType.RmlDeleted, _authentication.CurrentUser, SelectedRML.Name, SelectedRML, "RML deleted from Machine Studio."); + + LoadRmlExtentions(); + } + catch (Exception ex) + { + LogManager.Log(ex, $"Error removing selected RML {SelectedRMLExtension?.Name}."); + _notification.ShowError($"An error occurred while trying to remove the selected RML Extension.\n{ex.FlattenMessage()}"); + LoadRmlExtentions(); + } + finally + { + IsFree = true; + } + } + } + } + #endregion + + public MainViewVM(INotificationProvider notificationProvider, IAuthenticationProvider authentication, IActionLogManager actionLogManager) + { + _notification = notificationProvider; + _authentication = authentication; + _actionLogManager = actionLogManager; + + BackToThreadExtensionViewsCommand = new RelayCommand(BackToThreadExtensionViews, () => IsFree); + SaveCommand = new RelayCommand(Save, () => IsFree); + ManageRmlExtensionCommand = new RelayCommand(() => LoadActiveRMLExtention(SelectedRMLExtension.Guid), () => SelectedRMLExtension != null); + RemoveRmlExtensionCommand = new RelayCommand(RemoveRmlExtension, () => SelectedRMLExtension != null); + CloneRmlExtensionCommand = new RelayCommand(CloneSelectedRmlExtension, () => SelectedRMLExtension != null); + AddRmlExtCommand = new RelayCommand(AddNewRmlExtention); + } + public override void OnApplicationReady() { + LoadRmlExtentions(); + } + + #region Loading + + private async void LoadRmlExtentions() + { + try + { + IsFree = false; + + using (_notification.PushTaskItem("Loading RmlExtentions...")) + { + if (_rmlExtentions_context != null) _rmlExtentions_context.Dispose(); + + _rmlExtentions_context = ObservablesContext.CreateDefault(); + RmlsExtensions = await new RMLExtentionsCollectionBuilder(_rmlExtentions_context).SetAll().WithUser().WithYarnProperties().BuildAsync(); + + + RmlExtCollectionView = CollectionViewSource.GetDefaultView(RmlsExtensions); + RmlExtCollectionView.SortDescriptions.Add(new SortDescription(nameof(Rml.LastUpdated), ListSortDirection.Descending)); + + RmlExtCollectionView.Filter = (rml) => + { + RmlsExtension r = rml as RmlsExtension; + return String.IsNullOrWhiteSpace(Filter) + || r.Name.ToLower().Contains(Filter.ToLower()); + }; + + } + } + catch (Exception ex) + { + LogManager.Log(ex, $"Error loading RMLExtensions.\n{ex.FlattenMessage()}"); + } + finally + { + IsFree = true; + } + } + + private void LoadRmlProperties() + { + Applications = _active_context.YarnApplications.ToObservableCollection(); + Brands = _active_context.YarnBrand.ToObservableCollection(); + YarnColor = _active_context.YarnColor.ToObservableCollection(); + EndUse = _active_context.YarnEndUse.ToObservableCollection(); + Family = _active_context.YarnFamily.ToObservableCollection(); + Geometry = _active_context.YarnGeometry.ToObservableCollection(); + GlossLevel = _active_context.YarnGlossLevel.ToObservableCollection(); + Group = _active_context.YarnGroup.ToObservableCollection(); + Manufacturer = _active_context.YarnManufacturer.ToObservableCollection(); + + Materials = _active_context.YarnMaterials.ToObservableCollection(); + SubFamilies = _active_context.YarnSubFamily.ToObservableCollection(); + Texturing = _active_context.YarnTexturing.ToObservableCollection(); + YarnTypes = _active_context.YarnType.ToObservableCollection(); + IndustrySector = _active_context.YarnIndustrysector.ToObservableCollection(); + } + + private async void AddNewRmlExtention(object obj) + { + using (_notification.PushTaskItem("Creating new RML Extension...")) + { + IsFree = false; + + if (_active_context != null) + { + _active_context.Dispose(); + } + + _active_context = ObservablesContext.CreateDefault(); + + LoadRmlProperties(); + + RmlsExtension rml_extention = new RmlsExtension(); + rml_extention.Created = DateTime.UtcNow; + rml_extention.UserGuid = _authentication.CurrentUser.Guid; + rml_extention.YarnManufacturer = Manufacturer.FirstOrDefault(); + rml_extention.YarnBrand = Brands.FirstOrDefault(); + rml_extention.Country = null; + rml_extention.YarnEndUse = EndUse.FirstOrDefault(); + rml_extention.YarnApplications = Applications.FirstOrDefault(); + rml_extention.YarnIndustrysector = IndustrySector.FirstOrDefault(); + + rml_extention.YarnMaterial = Materials.FirstOrDefault(); + rml_extention.YarnType = YarnTypes.FirstOrDefault(); + rml_extention.YarnSubFamily = SubFamilies.FirstOrDefault(); + rml_extention.YarnFamily = Family.FirstOrDefault(); + rml_extention.YarnGroup = Group.FirstOrDefault(); + rml_extention.YarnTexturing = Texturing.FirstOrDefault(); + rml_extention.YarnGeometry = Geometry.FirstOrDefault(); + rml_extention.YarnColor = YarnColor.FirstOrDefault(); + rml_extention.YarnGlossLevel = GlossLevel.FirstOrDefault(); + rml_extention.LinearDensity = 0; + rml_extention.YarnUnit = YarnUnits.DTEX; + rml_extention.YarnPlies = Plies.P1; + rml_extention.FilamentCount = 0; + rml_extention.TwistTpm = 0; + rml_extention.YarnTwistDirections = TwistDirections.S; + rml_extention.MinElongation = 0.0; + rml_extention.MaxElongation = 100.0; + rml_extention.MinMaxForceN = 0.0; + rml_extention.MaxMaxForceN = 100.0; + rml_extention.MinElasticity = 0.0; + rml_extention.MaxElasticity = 100.0; + rml_extention.MinTenacity = 0.0; + rml_extention.MaxTenacity = 100.0; + rml_extention.Finishing = "Lubrication"; + + _active_context.RmlsExtensions.Add(rml_extention); + await _active_context.SaveChangesAsync(); + + //_actionLogManager.InsertLog(BL.Enumerations.ActionLogType.RmlCreated, _authentication.CurrentUser, rml.Name, rml, "Rml created using Machine Studio."); + ColorParametersVewVM = new ColorParametersVewVM(_notification, _actionLogManager); + LoadActiveRMLExtention(rml_extention.Guid); + + IsFree = true; + } + } + + private async void LoadActiveRMLExtention(String guid) + { + using (_notification.PushTaskItem("Loading RML Extension...")) + { + try + { + IsFree = false; + + if (_active_context != null) + { + _active_context.Dispose(); + } + + _active_context = ObservablesContext.CreateDefault(); + + LoadRmlProperties(); + + ActiveRMLExtention = await new RmlExtensionsBuilder(_active_context) + .Set(guid) + .WithUser() + .BuildAsync(); + + ColorParametersVewVM = new ColorParametersVewVM(_notification, _actionLogManager); + ColorParametersVewVM.LoadColorParameters(guid); + View.NavigateTo(ThreadExtensionNavigationView.ThreadExtentionView); + + InvalidateRelayCommands(); + + IsFree = true; + } + catch (Exception ex) + { + //LogManager.Log($"Error loading RML '{ActiveRML.Name}'..."); + _notification.ShowError($"Error loading the selected thread.\n{ex.FlattenMessage()}"); + } + finally + { + IsFree = true; + } + } + } + + private async void RefreshView(String guid) + { + try + { + IsFree = false; + + //if (_active_context != null) + //{ + // _active_context.Dispose(); + //} + + //_active_context = ObservablesContext.CreateDefault(); + + LoadRmlProperties(); + ActiveRMLExtention = await new RmlExtensionsBuilder(_active_context) + .Set(guid) + .WithUser() + .BuildAsync(); + + InvalidateRelayCommands(); + + IsFree = true; + } + catch (Exception ex) + { + //LogManager.Log($"Error loading RML '{ActiveRML.Name}'..."); + _notification.ShowError($"Error refresh the selected thread.\n{ex.FlattenMessage()}"); + } + finally + { + IsFree = true; + } + } + + #endregion + + private async void Save() + { + IsFree = false; + + try + { + using (_notification.PushTaskItem("Saving RML Extension...")) + { + + ActiveRMLExtention.LastUpdated = DateTime.UtcNow; + + ColorParametersVewVM.Save(); + + var rmlExtensionAfter = RmlsExtensionDTO.FromObservable(ActiveRMLExtention); + + await _active_context.SaveChangesAsync(); + + //ColorParametersVewVM.LoadColorParameters(ActiveRMLExtention.Guid); + // _actionLogManager.InsertLog(BL.Enumerations.ActionLogType.RmlSaved, _authentication.CurrentUser, _rmlBeforeSave.Name, _rmlBeforeSave, rmlAfter, "RML saved using Machine Studio."); + + _rmlExtensionBeforeSave = rmlExtensionAfter; + RefreshView(SelectedRMLExtension.Guid); + } + } + catch (Exception ex) + { + LogManager.Log(ex, $"Error saving RML Extension {ActiveRMLExtention.Name}"); + _notification.ShowError($"An error occurred while trying to save the current RML Extension.\n{ex.FlattenMessage()}"); + } + finally + { + IsFree = true; + } } } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ColorParametersView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ColorParametersView.xaml new file mode 100644 index 000000000..1526a49cb --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ColorParametersView.xaml @@ -0,0 +1,474 @@ + + + + + + + + + + + + + + + + + + + + + + + + + TARGET MACHINE + + + + + + + + + + + + + + + + + + + + + + + LIQUID TYPE CYAN + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + LIQUID TYPE MAGENTA + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + LIQUID TYPE YELLOW + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + LIQUID TYPE BLACK + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + L + + + A + + + B + + + White point + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ColorParametersView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ColorParametersView.xaml.cs new file mode 100644 index 000000000..4e6a8c048 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ColorParametersView.xaml.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +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; +using Tango.MachineStudio.ThreadExtensions.ViewModels; + +namespace Tango.MachineStudio.ThreadExtensions.Views +{ + /// + /// Interaction logic for ColorParametersView.xaml + /// + public partial class ColorParametersView : UserControl + { + public ColorParametersView() + { + InitializeComponent(); + this.Loaded += ColorParametersView_Loaded; + } + + private void ColorParametersView_Loaded(object sender, RoutedEventArgs e) + { + if (contentGrid != null && contentGrid.DataContext is ColorParametersVewVM) + { + ColorParametersVewVM vm = (ColorParametersVewVM)contentGrid.DataContext; + vm.CyanPlot.PlotControl = CyanPlotControl; + vm.MagentaPlot.PlotControl = MagentaPlotControl; + vm.YellowPlot.PlotControl = YellowPlotControl; + vm.BlackPlot.PlotControl = BlackPlotControl; + vm.IsViewLoaded = true; + } + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/MainView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/MainView.xaml index b446c7cc7..0ef5850c6 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/MainView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/MainView.xaml @@ -4,12 +4,16 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:Tango.MachineStudio.ThreadExtensions.Views" + xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI" xmlns:vm="clr-namespace:Tango.MachineStudio.ThreadExtensions.ViewModels" xmlns:global="clr-namespace:Tango.MachineStudio.ThreadExtensions" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" mc:Ignorable="d" d:DesignHeight="1080" d:DesignWidth="1920" Background="Transparent" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}"> - Thread Extensions + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/MainView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/MainView.xaml.cs index 863a96398..251099c8a 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/MainView.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/MainView.xaml.cs @@ -12,17 +12,25 @@ using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; +using Tango.Core.DI; +using Tango.MachineStudio.ThreadExtensions.Contracts; namespace Tango.MachineStudio.ThreadExtensions.Views { /// /// Interaction logic for MainView.xaml /// - public partial class MainView : UserControl + public partial class MainView : UserControl, IMainView { public MainView() { InitializeComponent(); + TangoIOC.Default.Register(this); + } + + public void NavigateTo(ThreadExtensionNavigationView view) + { + navigationControl.NavigateTo(view.ToString()); } } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadCharacteristicsView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadCharacteristicsView.xaml new file mode 100644 index 000000000..fac8e6af4 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadCharacteristicsView.xaml @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + Yarn Source + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Yarn Source + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Yarn Data + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Yarn Properties from datasheet + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadCharacteristicsView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadCharacteristicsView.xaml.cs new file mode 100644 index 000000000..944cf07f4 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadCharacteristicsView.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.ThreadExtensions.Views +{ + /// + /// Interaction logic for ThreadCharacteristicsView.xaml + /// + public partial class ThreadCharacteristicsView : UserControl + { + public ThreadCharacteristicsView() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionView.xaml new file mode 100644 index 000000000..f9d8a2dc3 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionView.xaml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionView.xaml.cs new file mode 100644 index 000000000..2cce29e57 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionView.xaml.cs @@ -0,0 +1,27 @@ +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.Shapes; + +namespace Tango.MachineStudio.ThreadExtensions.Views +{ + /// + /// Interaction logic for ThreadExtView.xaml + /// + public partial class ThreadExtentionView : UserControl + { + public ThreadExtentionView() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionsView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionsView.xaml new file mode 100644 index 000000000..b85222b12 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionsView.xaml @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionsView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionsView.xaml.cs new file mode 100644 index 000000000..9afb7a5c8 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/Views/ThreadExtensionsView.xaml.cs @@ -0,0 +1,27 @@ +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.Shapes; + +namespace Tango.MachineStudio.ThreadExtensions.Views +{ + /// + /// Interaction logic for ThreadExtViews.xaml + /// + public partial class ThreadExtensionsView : UserControl + { + public ThreadExtensionsView() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/app.config b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/app.config index 97a204217..7b82e5f7c 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/app.config +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/app.config @@ -1,5 +1,9 @@  + + +
+ @@ -72,4 +76,10 @@ + + + + + + \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/packages.config b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/packages.config index fd88f4804..5a03cfb57 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/packages.config +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ThreadExtensions/packages.config @@ -1,8 +1,11 @@  + + + \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Builders/ColorProcessParametersBuilder.cs b/Software/Visual_Studio/Tango.BL/Builders/ColorProcessParametersBuilder.cs new file mode 100644 index 000000000..005ca8a53 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Builders/ColorProcessParametersBuilder.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; +using System.Data.Entity; +using System.Linq.Expressions; + +namespace Tango.BL.Builders +{ + public class ColorProcessParametersBuilder : EntityBuilderBase + { + public ColorProcessParametersBuilder(ObservablesContext context) : base(context) + { + + } + + //protected override IQueryable OnSetQuery(IQueryable query) + //{ + // return query. + // Include(x => x.ColorProcessData). + // Include(x => x.ColorProcessFactor); + //} + public virtual ColorProcessParametersBuilder WithColorProcessData() + { + return AddQueryStep(1, (query) => + { + return query.Include(x => x.ColorProcessData); + }); + } + + public virtual ColorProcessParametersBuilder WithColorProcessFactor() + { + return AddQueryStep(2, (query) => + { + return query.Include(x => x.ColorProcessFactor); + }); + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Builders/RMLExtentionsCollectionBuilder.cs b/Software/Visual_Studio/Tango.BL/Builders/RMLExtentionsCollectionBuilder.cs new file mode 100644 index 000000000..370c4273c --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Builders/RMLExtentionsCollectionBuilder.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; +using System.Data.Entity; +using Tango.BL.Enumerations; + +namespace Tango.BL.Builders +{ + public class RMLExtentionsCollectionBuilder : EntityCollectionBuilderBase + { + public RMLExtentionsCollectionBuilder(ObservablesContext context) : base(context) + { + } + public virtual RMLExtentionsCollectionBuilder WithUser() + { + //return AddStep(0, () => + //{ + // foreach (var rmlExtentions in Entities.ToList()) + // { + // new UserBuilder(Context).Set(rmlExtentions.UserGuid).Build(); + // } + //}); + + return AddQueryStep(0, (query) => + { + return query.Include(x => x.User).Include(x => x.User.Contact); + }); + } + + public virtual RMLExtentionsCollectionBuilder WithUsers() + { + return AddStep(2, () => + { + foreach (var rmlExtention in Entities) + { + new UsersCollectionBuilder(Context).Set(x => x.Guid == rmlExtention.UserGuid).WithAddress().WithContacts().Build(); + } + }); + } + + public virtual RMLExtentionsCollectionBuilder WithYarnProperties() + { + return AddStep(1, () => + { + Context.YarnApplications.ToList(); + Context.YarnBrand.ToList(); + Context.YarnColor.ToList(); + Context.YarnEndUse.ToList(); + Context.YarnGeometry.ToList(); + Context.YarnFamily.ToList(); + Context.YarnGlossLevel.ToList(); + Context.YarnGroup.ToList(); + Context.YarnIndustrysector.ToList(); + Context.YarnManufacturer.ToList(); + Context.YarnMaterials.ToList(); + Context.YarnSubFamily.ToList(); + Context.YarnTexturing.ToList(); + Context.YarnType.ToList(); + }); + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Builders/RmlExtensionsBuilder.cs b/Software/Visual_Studio/Tango.BL/Builders/RmlExtensionsBuilder.cs new file mode 100644 index 000000000..00c251a4e --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Builders/RmlExtensionsBuilder.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; +using System.Data.Entity; +using System.Linq.Expressions; + +namespace Tango.BL.Builders +{ + public class RmlExtensionsBuilder : EntityBuilderBase + { + public RmlExtensionsBuilder(ObservablesContext context) : base(context) + { + + } + protected override IQueryable OnSetQuery(IQueryable query) + { + return query. + Include(x => x.Rml). + Include(x => x.YarnApplications). + Include(x => x.YarnBrand). + Include(x => x.YarnColor). + Include(x => x.YarnEndUse). + Include(x => x.YarnFamily). + Include(x => x.YarnGeometry). + Include(x => x.YarnGlossLevel). + Include(x => x.YarnGroup). + Include(x => x.YarnManufacturer). + Include(x => x.YarnMaterial). + Include(x => x.YarnSubFamily). + Include(x => x.YarnTexturing). + Include(x => x.YarnType); + } + public virtual RmlExtensionsBuilder WithUser() + { + return AddStep(0, () => + { + new UserBuilder(Context).Set(Entity.UserGuid).WithRolesAndPermissions().Build(); + }); + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ColorProcessDataDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/ColorProcessDataDTO.cs new file mode 100644 index 000000000..b55a7ad27 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ColorProcessDataDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class ColorProcessDataDTO : ColorProcessDataDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ColorProcessDataDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/ColorProcessDataDTOBase.cs new file mode 100644 index 000000000..bb0dadfa6 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ColorProcessDataDTOBase.cs @@ -0,0 +1,73 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class ColorProcessDataDTOBase : ObservableEntityDTO + { + + /// + /// color process parameters guid + /// + public String ColorProcessParametersGuid + { + get; set; + } + + /// + /// color name + /// + public String ColorName + { + get; set; + } + + /// + /// ink nl cm + /// + public Int32 InkNlCm + { + get; set; + } + + /// + /// l + /// + public Double L + { + get; set; + } + + /// + /// a + /// + public Double A + { + get; set; + } + + /// + /// b + /// + public Double B + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ColorProcessFactorDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/ColorProcessFactorDTO.cs new file mode 100644 index 000000000..780fb4d0f --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ColorProcessFactorDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class ColorProcessFactorDTO : ColorProcessFactorDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ColorProcessFactorDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/ColorProcessFactorDTOBase.cs new file mode 100644 index 000000000..a6e2a83b2 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ColorProcessFactorDTOBase.cs @@ -0,0 +1,81 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class ColorProcessFactorDTOBase : ObservableEntityDTO + { + + /// + /// color process parameters guid + /// + public String ColorProcessParametersGuid + { + get; set; + } + + /// + /// color name + /// + public String ColorName + { + get; set; + } + + /// + /// ink nl cm + /// + public Int32 InkNlCm + { + get; set; + } + + /// + /// l + /// + public Double L + { + get; set; + } + + /// + /// a + /// + public Double A + { + get; set; + } + + /// + /// b + /// + public Double B + { + get; set; + } + + /// + /// factor percent + /// + public Int32 FactorPercent + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ColorProcessParameterDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/ColorProcessParameterDTO.cs new file mode 100644 index 000000000..2c7fd48aa --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ColorProcessParameterDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class ColorProcessParameterDTO : ColorProcessParameterDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/ColorProcessParameterDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/ColorProcessParameterDTOBase.cs new file mode 100644 index 000000000..606c23ca6 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/ColorProcessParameterDTOBase.cs @@ -0,0 +1,57 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class ColorProcessParameterDTOBase : ObservableEntityDTO + { + + /// + /// rmls extensions guid + /// + public String RmlsExtensionsGuid + { + get; set; + } + + /// + /// white point l + /// + public Double WhitePointL + { + get; set; + } + + /// + /// white point a + /// + public Double WhitePointA + { + get; set; + } + + /// + /// white point b + /// + public Double WhitePointB + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/RmlsExtensionDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/RmlsExtensionDTOBase.cs index 76f927048..a80e63c75 100644 --- a/Software/Visual_Studio/Tango.BL/DTO/RmlsExtensionDTOBase.cs +++ b/Software/Visual_Studio/Tango.BL/DTO/RmlsExtensionDTOBase.cs @@ -22,17 +22,281 @@ namespace Tango.BL.DTO { /// - /// name + /// rml guid /// - public String Name + public String RmlGuid { get; set; } /// - /// description + /// user guid /// - public String Description + public String UserGuid + { + get; set; + } + + /// + /// created + /// + public DateTime Created + { + get; set; + } + + /// + /// yarn manufacturer guid + /// + public String YarnManufacturerGuid + { + get; set; + } + + /// + /// yarn brand guid + /// + public String YarnBrandGuid + { + get; set; + } + + /// + /// country + /// + public String Country + { + get; set; + } + + /// + /// yarn end use guid + /// + public String YarnEndUseGuid + { + get; set; + } + + /// + /// yarn applications guid + /// + public String YarnApplicationsGuid + { + get; set; + } + + /// + /// yarn industrysector guid + /// + public String YarnIndustrysectorGuid + { + get; set; + } + + /// + /// yarn material guid + /// + public String YarnMaterialGuid + { + get; set; + } + + /// + /// yarn type guid + /// + public String YarnTypeGuid + { + get; set; + } + + /// + /// yarn family guid + /// + public String YarnFamilyGuid + { + get; set; + } + + /// + /// yarn sub family guid + /// + public String YarnSubFamilyGuid + { + get; set; + } + + /// + /// yarn group guid + /// + public String YarnGroupGuid + { + get; set; + } + + /// + /// yarn texturing guid + /// + public String YarnTexturingGuid + { + get; set; + } + + /// + /// yarn geometry guid + /// + public String YarnGeometryGuid + { + get; set; + } + + /// + /// yarn color guid + /// + public String YarnColorGuid + { + get; set; + } + + /// + /// yarn gloss level guid + /// + public String YarnGlossLevelGuid + { + get; set; + } + + /// + /// linear density + /// + public Int32 LinearDensity + { + get; set; + } + + /// + /// unit + /// + public Int32 Unit + { + get; set; + } + + /// + /// plies + /// + public Int32 Plies + { + get; set; + } + + /// + /// filament count + /// + public Int32 FilamentCount + { + get; set; + } + + /// + /// twist tpm + /// + public Int32 TwistTpm + { + get; set; + } + + /// + /// twist direction + /// + public Nullable TwistDirection + { + get; set; + } + + /// + /// min elongation + /// + public Nullable MinElongation + { + get; set; + } + + /// + /// max elongation + /// + public Nullable MaxElongation + { + get; set; + } + + /// + /// min max force n + /// + public Nullable MinMaxForceN + { + get; set; + } + + /// + /// max max force n + /// + public Nullable MaxMaxForceN + { + get; set; + } + + /// + /// min elasticity + /// + public Nullable MinElasticity + { + get; set; + } + + /// + /// max elasticity + /// + public Nullable MaxElasticity + { + get; set; + } + + /// + /// min tenacity + /// + public Nullable MinTenacity + { + get; set; + } + + /// + /// max tenacity + /// + public Nullable MaxTenacity + { + get; set; + } + + /// + /// finishing + /// + public String Finishing + { + get; set; + } + + /// + /// file name + /// + public String FileName + { + get; set; + } + + /// + /// data + /// + public Byte[] Data { get; set; } diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnApplicationDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnApplicationDTO.cs new file mode 100644 index 000000000..37be2426f --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnApplicationDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnApplicationDTO : YarnApplicationDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnApplicationDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnApplicationDTOBase.cs new file mode 100644 index 000000000..e37e97e67 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnApplicationDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnApplicationDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnBrandDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnBrandDTO.cs new file mode 100644 index 000000000..27c6947b3 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnBrandDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnBrandDTO : YarnBrandDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnBrandDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnBrandDTOBase.cs new file mode 100644 index 000000000..08c0c1b08 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnBrandDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnBrandDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnColorDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnColorDTO.cs new file mode 100644 index 000000000..cebf7e442 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnColorDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnColorDTO : YarnColorDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnColorDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnColorDTOBase.cs new file mode 100644 index 000000000..7ca5264bb --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnColorDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnColorDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnEndUseDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnEndUseDTO.cs new file mode 100644 index 000000000..a7e1c5593 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnEndUseDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnEndUseDTO : YarnEndUseDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnEndUseDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnEndUseDTOBase.cs new file mode 100644 index 000000000..c28452a65 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnEndUseDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnEndUseDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnFamilyDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnFamilyDTO.cs new file mode 100644 index 000000000..43e492ec3 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnFamilyDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnFamilyDTO : YarnFamilyDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnFamilyDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnFamilyDTOBase.cs new file mode 100644 index 000000000..1e2712bba --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnFamilyDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnFamilyDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnGeometryDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnGeometryDTO.cs new file mode 100644 index 000000000..1d051e713 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnGeometryDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnGeometryDTO : YarnGeometryDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnGeometryDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnGeometryDTOBase.cs new file mode 100644 index 000000000..a19e5ec37 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnGeometryDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnGeometryDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnGlossLevelDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnGlossLevelDTO.cs new file mode 100644 index 000000000..0d904cd6f --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnGlossLevelDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnGlossLevelDTO : YarnGlossLevelDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnGlossLevelDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnGlossLevelDTOBase.cs new file mode 100644 index 000000000..f8f3bf634 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnGlossLevelDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnGlossLevelDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnGroupDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnGroupDTO.cs new file mode 100644 index 000000000..0634a6c47 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnGroupDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnGroupDTO : YarnGroupDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnGroupDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnGroupDTOBase.cs new file mode 100644 index 000000000..fc2dd604e --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnGroupDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnGroupDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnIndustrysectorDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnIndustrysectorDTO.cs new file mode 100644 index 000000000..8ffa1bde0 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnIndustrysectorDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnIndustrysectorDTO : YarnIndustrysectorDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnIndustrysectorDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnIndustrysectorDTOBase.cs new file mode 100644 index 000000000..e48393fc3 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnIndustrysectorDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnIndustrysectorDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnManufacturerDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnManufacturerDTO.cs new file mode 100644 index 000000000..57a2a1b09 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnManufacturerDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnManufacturerDTO : YarnManufacturerDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnManufacturerDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnManufacturerDTOBase.cs new file mode 100644 index 000000000..5076d754e --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnManufacturerDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnManufacturerDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnMaterialDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnMaterialDTO.cs new file mode 100644 index 000000000..5b884c13d --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnMaterialDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnMaterialDTO : YarnMaterialDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnMaterialDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnMaterialDTOBase.cs new file mode 100644 index 000000000..77f9f0aca --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnMaterialDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnMaterialDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnSubFamilyDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnSubFamilyDTO.cs new file mode 100644 index 000000000..7c6b78ef9 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnSubFamilyDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnSubFamilyDTO : YarnSubFamilyDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnSubFamilyDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnSubFamilyDTOBase.cs new file mode 100644 index 000000000..5b2149495 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnSubFamilyDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnSubFamilyDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnTexturingDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnTexturingDTO.cs new file mode 100644 index 000000000..c78a3f6fe --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnTexturingDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnTexturingDTO : YarnTexturingDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnTexturingDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnTexturingDTOBase.cs new file mode 100644 index 000000000..8c3a0cb97 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnTexturingDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnTexturingDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnTypeDTO.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnTypeDTO.cs new file mode 100644 index 000000000..2648a9993 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnTypeDTO.cs @@ -0,0 +1,14 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.DTO +{ + public class YarnTypeDTO : YarnTypeDTOBase + { + + } +} diff --git a/Software/Visual_Studio/Tango.BL/DTO/YarnTypeDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/YarnTypeDTOBase.cs new file mode 100644 index 000000000..401519044 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/DTO/YarnTypeDTOBase.cs @@ -0,0 +1,33 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; + +namespace Tango.BL.DTO +{ + public abstract class YarnTypeDTOBase : ObservableEntityDTO + { + + /// + /// name + /// + public String Name + { + get; set; + } + + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/ColorProcessData.cs b/Software/Visual_Studio/Tango.BL/Entities/ColorProcessData.cs new file mode 100644 index 000000000..cd6781446 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/ColorProcessData.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.Entities +{ + public class ColorProcessData : ColorProcessDataBase + { + public ColorProcessData() : base() + { + L = 0; + A = 0; + B = 0; + } + public override void Delete(ObservablesContext context) + { + base.Delete(context); + + context.ColorProcessData.Remove(this); + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/ColorProcessDataBase.cs b/Software/Visual_Studio/Tango.BL/Entities/ColorProcessDataBase.cs new file mode 100644 index 000000000..e49883712 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/ColorProcessDataBase.cs @@ -0,0 +1,296 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("COLOR_PROCESS_DATA")] + public abstract class ColorProcessDataBase : ObservableEntity + { + + public event EventHandler ColorNameChanged; + + public event EventHandler InkNlCmChanged; + + public event EventHandler LChanged; + + public event EventHandler AChanged; + + public event EventHandler BChanged; + + public event EventHandler ColorProcessParametersChanged; + + protected String _colorprocessparametersguid; + + /// + /// Gets or sets the colorprocessdatabase color process parameters guid. + /// + + [Column("COLOR_PROCESS_PARAMETERS_GUID")] + [ForeignKey("ColorProcessParameters")] + + public String ColorProcessParametersGuid + { + get + { + return _colorprocessparametersguid; + } + + set + { + if (_colorprocessparametersguid != value) + { + _colorprocessparametersguid = value; + + } + } + } + + protected String _colorname; + + /// + /// Gets or sets the colorprocessdatabase color name. + /// + + [Column("COLOR_NAME")] + + public String ColorName + { + get + { + return _colorname; + } + + set + { + if (_colorname != value) + { + _colorname = value; + + OnColorNameChanged(value); + + } + } + } + + protected Int32 _inknlcm; + + /// + /// Gets or sets the colorprocessdatabase ink nl cm. + /// + + [Column("INK_NL_CM")] + + public Int32 InkNlCm + { + get + { + return _inknlcm; + } + + set + { + if (_inknlcm != value) + { + _inknlcm = value; + + OnInkNlCmChanged(value); + + } + } + } + + protected Double _l; + + /// + /// Gets or sets the colorprocessdatabase l. + /// + + [Column("L")] + + public Double L + { + get + { + return _l; + } + + set + { + if (_l != value) + { + _l = value; + + OnLChanged(value); + + } + } + } + + protected Double _a; + + /// + /// Gets or sets the colorprocessdatabase a. + /// + + [Column("A")] + + public Double A + { + get + { + return _a; + } + + set + { + if (_a != value) + { + _a = value; + + OnAChanged(value); + + } + } + } + + protected Double _b; + + /// + /// Gets or sets the colorprocessdatabase b. + /// + + [Column("B")] + + public Double B + { + get + { + return _b; + } + + set + { + if (_b != value) + { + _b = value; + + OnBChanged(value); + + } + } + } + + protected ColorProcessParameter _colorprocessparameters; + + /// + /// Gets or sets the colorprocessdatabase color process parameters. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual ColorProcessParameter ColorProcessParameters + { + get + { + return _colorprocessparameters; + } + + set + { + if (_colorprocessparameters != value) + { + _colorprocessparameters = value; + + if (ColorProcessParameters != null) + { + ColorProcessParametersGuid = ColorProcessParameters.Guid; + } + + OnColorProcessParametersChanged(value); + + } + } + } + + /// + /// Called when the ColorName has changed. + /// + protected virtual void OnColorNameChanged(String colorname) + { + ColorNameChanged?.Invoke(this, colorname); + RaisePropertyChanged(nameof(ColorName)); + } + + /// + /// Called when the InkNlCm has changed. + /// + protected virtual void OnInkNlCmChanged(Int32 inknlcm) + { + InkNlCmChanged?.Invoke(this, inknlcm); + RaisePropertyChanged(nameof(InkNlCm)); + } + + /// + /// Called when the L has changed. + /// + protected virtual void OnLChanged(Double l) + { + LChanged?.Invoke(this, l); + RaisePropertyChanged(nameof(L)); + } + + /// + /// Called when the A has changed. + /// + protected virtual void OnAChanged(Double a) + { + AChanged?.Invoke(this, a); + RaisePropertyChanged(nameof(A)); + } + + /// + /// Called when the B has changed. + /// + protected virtual void OnBChanged(Double b) + { + BChanged?.Invoke(this, b); + RaisePropertyChanged(nameof(B)); + } + + /// + /// Called when the ColorProcessParameters has changed. + /// + protected virtual void OnColorProcessParametersChanged(ColorProcessParameter colorprocessparameters) + { + ColorProcessParametersChanged?.Invoke(this, colorprocessparameters); + RaisePropertyChanged(nameof(ColorProcessParameters)); + } + + /// + /// Initializes a new instance of the class. + /// + public ColorProcessDataBase() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/ColorProcessFactor.cs b/Software/Visual_Studio/Tango.BL/Entities/ColorProcessFactor.cs new file mode 100644 index 000000000..e20ca528a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/ColorProcessFactor.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.Entities +{ + public class ColorProcessFactor : ColorProcessFactorBase + { + public override void Delete(ObservablesContext context) + { + base.Delete(context); + + context.ColorProcessFactor.Remove(this); + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/ColorProcessFactorBase.cs b/Software/Visual_Studio/Tango.BL/Entities/ColorProcessFactorBase.cs new file mode 100644 index 000000000..5749784a5 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/ColorProcessFactorBase.cs @@ -0,0 +1,334 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("COLOR_PROCESS_FACTOR")] + public abstract class ColorProcessFactorBase : ObservableEntity + { + + public event EventHandler ColorNameChanged; + + public event EventHandler InkNlCmChanged; + + public event EventHandler LChanged; + + public event EventHandler AChanged; + + public event EventHandler BChanged; + + public event EventHandler FactorPercentChanged; + + public event EventHandler ColorProcessParametersChanged; + + protected String _colorprocessparametersguid; + + /// + /// Gets or sets the colorprocessfactorbase color process parameters guid. + /// + + [Column("COLOR_PROCESS_PARAMETERS_GUID")] + [ForeignKey("ColorProcessParameters")] + + public String ColorProcessParametersGuid + { + get + { + return _colorprocessparametersguid; + } + + set + { + if (_colorprocessparametersguid != value) + { + _colorprocessparametersguid = value; + + } + } + } + + protected String _colorname; + + /// + /// Gets or sets the colorprocessfactorbase color name. + /// + + [Column("COLOR_NAME")] + + public String ColorName + { + get + { + return _colorname; + } + + set + { + if (_colorname != value) + { + _colorname = value; + + OnColorNameChanged(value); + + } + } + } + + protected Int32 _inknlcm; + + /// + /// Gets or sets the colorprocessfactorbase ink nl cm. + /// + + [Column("INK_NL_CM")] + + public Int32 InkNlCm + { + get + { + return _inknlcm; + } + + set + { + if (_inknlcm != value) + { + _inknlcm = value; + + OnInkNlCmChanged(value); + + } + } + } + + protected Double _l; + + /// + /// Gets or sets the colorprocessfactorbase l. + /// + + [Column("L")] + + public Double L + { + get + { + return _l; + } + + set + { + if (_l != value) + { + _l = value; + + OnLChanged(value); + + } + } + } + + protected Double _a; + + /// + /// Gets or sets the colorprocessfactorbase a. + /// + + [Column("A")] + + public Double A + { + get + { + return _a; + } + + set + { + if (_a != value) + { + _a = value; + + OnAChanged(value); + + } + } + } + + protected Double _b; + + /// + /// Gets or sets the colorprocessfactorbase b. + /// + + [Column("B")] + + public Double B + { + get + { + return _b; + } + + set + { + if (_b != value) + { + _b = value; + + OnBChanged(value); + + } + } + } + + protected Int32 _factorpercent; + + /// + /// Gets or sets the colorprocessfactorbase factor percent. + /// + + [Column("FACTOR_PERCENT")] + + public Int32 FactorPercent + { + get + { + return _factorpercent; + } + + set + { + if (_factorpercent != value) + { + _factorpercent = value; + + OnFactorPercentChanged(value); + + } + } + } + + protected ColorProcessParameter _colorprocessparameters; + + /// + /// Gets or sets the colorprocessfactorbase color process parameters. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual ColorProcessParameter ColorProcessParameters + { + get + { + return _colorprocessparameters; + } + + set + { + if (_colorprocessparameters != value) + { + _colorprocessparameters = value; + + if (ColorProcessParameters != null) + { + ColorProcessParametersGuid = ColorProcessParameters.Guid; + } + + OnColorProcessParametersChanged(value); + + } + } + } + + /// + /// Called when the ColorName has changed. + /// + protected virtual void OnColorNameChanged(String colorname) + { + ColorNameChanged?.Invoke(this, colorname); + RaisePropertyChanged(nameof(ColorName)); + } + + /// + /// Called when the InkNlCm has changed. + /// + protected virtual void OnInkNlCmChanged(Int32 inknlcm) + { + InkNlCmChanged?.Invoke(this, inknlcm); + RaisePropertyChanged(nameof(InkNlCm)); + } + + /// + /// Called when the L has changed. + /// + protected virtual void OnLChanged(Double l) + { + LChanged?.Invoke(this, l); + RaisePropertyChanged(nameof(L)); + } + + /// + /// Called when the A has changed. + /// + protected virtual void OnAChanged(Double a) + { + AChanged?.Invoke(this, a); + RaisePropertyChanged(nameof(A)); + } + + /// + /// Called when the B has changed. + /// + protected virtual void OnBChanged(Double b) + { + BChanged?.Invoke(this, b); + RaisePropertyChanged(nameof(B)); + } + + /// + /// Called when the FactorPercent has changed. + /// + protected virtual void OnFactorPercentChanged(Int32 factorpercent) + { + FactorPercentChanged?.Invoke(this, factorpercent); + RaisePropertyChanged(nameof(FactorPercent)); + } + + /// + /// Called when the ColorProcessParameters has changed. + /// + protected virtual void OnColorProcessParametersChanged(ColorProcessParameter colorprocessparameters) + { + ColorProcessParametersChanged?.Invoke(this, colorprocessparameters); + RaisePropertyChanged(nameof(ColorProcessParameters)); + } + + /// + /// Initializes a new instance of the class. + /// + public ColorProcessFactorBase() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/ColorProcessParameter.cs b/Software/Visual_Studio/Tango.BL/Entities/ColorProcessParameter.cs new file mode 100644 index 000000000..2a679227e --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/ColorProcessParameter.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; +using Tango.BL.Enumerations; + +namespace Tango.BL.Entities +{ + public class ColorProcessParameter: ColorProcessParameterBase + { + public ColorProcessParameter() : base() + { + WhitePointL = 92.1815; + WhitePointA = 2.2555; + WhitePointB = -10.9325; + } + public override void Delete(ObservablesContext context) + { + base.Delete(context); + + context.ColorProcessParameters.Remove(this); + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/ColorProcessParameterBase.cs b/Software/Visual_Studio/Tango.BL/Entities/ColorProcessParameterBase.cs new file mode 100644 index 000000000..a5271b7da --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/ColorProcessParameterBase.cs @@ -0,0 +1,297 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("COLOR_PROCESS_PARAMETERS")] + public abstract class ColorProcessParameterBase : ObservableEntity + { + + public event EventHandler WhitePointLChanged; + + public event EventHandler WhitePointAChanged; + + public event EventHandler WhitePointBChanged; + + public event EventHandler> ColorProcessDataChanged; + + public event EventHandler> ColorProcessFactorChanged; + + public event EventHandler RmlsExtensionsChanged; + + protected String _rmlsextensionsguid; + + /// + /// Gets or sets the colorprocessparameterbase rmls extensions guid. + /// + + [Column("RMLS_EXTENSIONS_GUID")] + [ForeignKey("RmlsExtensions")] + + public String RmlsExtensionsGuid + { + get + { + return _rmlsextensionsguid; + } + + set + { + if (_rmlsextensionsguid != value) + { + _rmlsextensionsguid = value; + + } + } + } + + protected Double _whitepointl; + + /// + /// Gets or sets the colorprocessparameterbase white point l. + /// + + [Column("WHITE_POINT_L")] + + public Double WhitePointL + { + get + { + return _whitepointl; + } + + set + { + if (_whitepointl != value) + { + _whitepointl = value; + + OnWhitePointLChanged(value); + + } + } + } + + protected Double _whitepointa; + + /// + /// Gets or sets the colorprocessparameterbase white point a. + /// + + [Column("WHITE_POINT_A")] + + public Double WhitePointA + { + get + { + return _whitepointa; + } + + set + { + if (_whitepointa != value) + { + _whitepointa = value; + + OnWhitePointAChanged(value); + + } + } + } + + protected Double _whitepointb; + + /// + /// Gets or sets the colorprocessparameterbase white point b. + /// + + [Column("WHITE_POINT_B")] + + public Double WhitePointB + { + get + { + return _whitepointb; + } + + set + { + if (_whitepointb != value) + { + _whitepointb = value; + + OnWhitePointBChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _colorprocessdata; + + /// + /// Gets or sets the colorprocessparameterbase color process data. + /// + + public virtual SynchronizedObservableCollection ColorProcessData + { + get + { + return _colorprocessdata; + } + + set + { + if (_colorprocessdata != value) + { + _colorprocessdata = value; + + OnColorProcessDataChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _colorprocessfactor; + + /// + /// Gets or sets the colorprocessparameterbase color process factor. + /// + + public virtual SynchronizedObservableCollection ColorProcessFactor + { + get + { + return _colorprocessfactor; + } + + set + { + if (_colorprocessfactor != value) + { + _colorprocessfactor = value; + + OnColorProcessFactorChanged(value); + + } + } + } + + protected RmlsExtension _rmlsextensions; + + /// + /// Gets or sets the colorprocessparameterbase rmls extensions. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual RmlsExtension RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + if (RmlsExtensions != null) + { + RmlsExtensionsGuid = RmlsExtensions.Guid; + } + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the WhitePointL has changed. + /// + protected virtual void OnWhitePointLChanged(Double whitepointl) + { + WhitePointLChanged?.Invoke(this, whitepointl); + RaisePropertyChanged(nameof(WhitePointL)); + } + + /// + /// Called when the WhitePointA has changed. + /// + protected virtual void OnWhitePointAChanged(Double whitepointa) + { + WhitePointAChanged?.Invoke(this, whitepointa); + RaisePropertyChanged(nameof(WhitePointA)); + } + + /// + /// Called when the WhitePointB has changed. + /// + protected virtual void OnWhitePointBChanged(Double whitepointb) + { + WhitePointBChanged?.Invoke(this, whitepointb); + RaisePropertyChanged(nameof(WhitePointB)); + } + + /// + /// Called when the ColorProcessData has changed. + /// + protected virtual void OnColorProcessDataChanged(SynchronizedObservableCollection colorprocessdata) + { + ColorProcessDataChanged?.Invoke(this, colorprocessdata); + RaisePropertyChanged(nameof(ColorProcessData)); + } + + /// + /// Called when the ColorProcessFactor has changed. + /// + protected virtual void OnColorProcessFactorChanged(SynchronizedObservableCollection colorprocessfactor) + { + ColorProcessFactorChanged?.Invoke(this, colorprocessfactor); + RaisePropertyChanged(nameof(ColorProcessFactor)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(RmlsExtension rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public ColorProcessParameterBase() : base() + { + + ColorProcessData = new SynchronizedObservableCollection(); + + ColorProcessFactor = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/RmlBase.cs b/Software/Visual_Studio/Tango.BL/Entities/RmlBase.cs index 8e07bcd8c..c922c5d1e 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/RmlBase.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/RmlBase.cs @@ -135,6 +135,8 @@ namespace Tango.BL.Entities public event EventHandler> ProcessParametersTablesGroupsChanged; + public event EventHandler> RmlsExtensionsChanged; + public event EventHandler> RmlsSpoolsChanged; public event EventHandler> SitesRmlsChanged; @@ -1866,6 +1868,31 @@ namespace Tango.BL.Entities } } + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the rmlbase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + protected SynchronizedObservableCollection _rmlsspools; /// @@ -2402,6 +2429,15 @@ namespace Tango.BL.Entities RaisePropertyChanged(nameof(ProcessParametersTablesGroups)); } + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + /// /// Called when the RmlsSpools has changed. /// @@ -2436,6 +2472,8 @@ namespace Tango.BL.Entities ProcessParametersTablesGroups = new SynchronizedObservableCollection(); + RmlsExtensions = new SynchronizedObservableCollection(); + RmlsSpools = new SynchronizedObservableCollection(); SitesRmls = new SynchronizedObservableCollection(); diff --git a/Software/Visual_Studio/Tango.BL/Entities/RmlsExtension.cs b/Software/Visual_Studio/Tango.BL/Entities/RmlsExtension.cs index bf326ad3a..9436ab48e 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/RmlsExtension.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/RmlsExtension.cs @@ -1,13 +1,154 @@ -using System; +using Newtonsoft.Json; +using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; +using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; +using System.Windows.Media; +using Tango.BL.Builders; +using Tango.BL.Enumerations; +using Tango.BL.Serialization; namespace Tango.BL.Entities { public class RmlsExtension : RmlsExtensionBase { + #region Name + protected override void OnYarnMaterialChanged(YarnMaterial yarnmaterial) + { + base.OnYarnMaterialChanged(yarnmaterial); + RaisePropertyChanged(nameof(Name)); + } + + protected override void OnYarnBrandChanged(YarnBrand yarnbrand) + { + base.OnYarnBrandChanged(yarnbrand); + RaisePropertyChanged(nameof(Name)); + } + + + [NotMapped] + [JsonIgnore] + public string Name + { + get + { + if (YarnManufacturer == null) + return ""; + StringBuilder sb = new StringBuilder(YarnManufacturer.Name); + if (YarnBrand != null && !String.IsNullOrEmpty(YarnBrand.Name)) + sb.Append("-" + YarnBrand.Name); + sb.Append("-" + LinearDensity.ToString()); + return sb.ToString(); + } + + } + #endregion + + #region Density count and Fiber count + protected override void OnUnitChanged(int unit) + { + base.OnUnitChanged(unit); + UpdateDencityCount(); + UpdateFiberCount(); + } + + protected override void OnLinearDensityChanged(int lineardensity) + { + base.OnLinearDensityChanged(lineardensity); + UpdateDencityCount(); + UpdateFiberCount(); + RaisePropertyChanged(nameof(Name)); + } + + protected override void OnFilamentCountChanged(int filamentcount) + { + base.OnFilamentCountChanged(filamentcount); + UpdateFiberCount(); + } + + private void UpdateDencityCount() + { + RaisePropertyChanged(nameof(DencityCount)); + } + + private void UpdateFiberCount() + { + RaisePropertyChanged(nameof(FiberCount)); + } + + [NotMapped] + [JsonIgnore] + public int DencityCount + { + get + { + if (YarnUnit.ToDescription() == "Tex") + return Convert.ToInt32(LinearDensity) * 9; + if (YarnUnit.ToDescription() == "DTEX") + return (int)(Convert.ToInt32(LinearDensity) * 0.9); + if (YarnUnit.ToDescription() == "Ne") + return (int) (5315 / Convert.ToInt32(LinearDensity)); + if (YarnUnit.ToDescription() == "Nm") + return (int)(9000 / Convert.ToInt32(LinearDensity)); + return 0; + } + } + + [NotMapped] + [JsonIgnore] + public string FiberCount + { + get + { + if (DencityCount == 0) + return ""; + + var number = FilamentCount / DencityCount; + if (number < 1.0 && number >= 0.3) + return "Micro"; + if (number < 2.4 && number >= 1.0) + return "Fine"; + if (number <= 7.0 && number >= 2.4) + return "Medium"; + if ( number > 7.0) + return "Coarse"; + return ""; + } + } + #endregion + + #region value to enum conversion + + [NotMapped] + [JsonIgnore] + public YarnUnits YarnUnit + { + get { return (YarnUnits)Unit; } + set { Unit = (int)value; + RaisePropertyChangedAuto(); } + } + + [NotMapped] + [JsonIgnore] + public TwistDirections YarnTwistDirections + { + get { return (TwistDirections)TwistDirection; } + set { base.TwistDirection = (int?)value; + RaisePropertyChangedAuto(); } + } + + [NotMapped] + [JsonIgnore] + public Plies YarnPlies + { + get { return (Plies)Plies; } + set { base.Plies = (int)value; + RaisePropertyChangedAuto(); } + } + #endregion } } diff --git a/Software/Visual_Studio/Tango.BL/Entities/RmlsExtensionBase.cs b/Software/Visual_Studio/Tango.BL/Entities/RmlsExtensionBase.cs index a87812638..54157c644 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/RmlsExtensionBase.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/RmlsExtensionBase.cs @@ -27,80 +27,1866 @@ namespace Tango.BL.Entities public abstract class RmlsExtensionBase : ObservableEntity { - public event EventHandler NameChanged; + public event EventHandler CreatedChanged; - public event EventHandler DescriptionChanged; + public event EventHandler CountryChanged; - protected String _name; + public event EventHandler LinearDensityChanged; + + public event EventHandler UnitChanged; + + public event EventHandler PliesChanged; + + public event EventHandler FilamentCountChanged; + + public event EventHandler TwistTpmChanged; + + public event EventHandler> TwistDirectionChanged; + + public event EventHandler> MinElongationChanged; + + public event EventHandler> MaxElongationChanged; + + public event EventHandler> MinMaxForceNChanged; + + public event EventHandler> MaxMaxForceNChanged; + + public event EventHandler> MinElasticityChanged; + + public event EventHandler> MaxElasticityChanged; + + public event EventHandler> MinTenacityChanged; + + public event EventHandler> MaxTenacityChanged; + + public event EventHandler FinishingChanged; + + public event EventHandler FileNameChanged; + + public event EventHandler DataChanged; + + public event EventHandler> ColorProcessParametersChanged; + + public event EventHandler RmlChanged; + + public event EventHandler UserChanged; + + public event EventHandler YarnApplicationsChanged; + + public event EventHandler YarnBrandChanged; + + public event EventHandler YarnColorChanged; + + public event EventHandler YarnEndUseChanged; + + public event EventHandler YarnFamilyChanged; + + public event EventHandler YarnGeometryChanged; + + public event EventHandler YarnGlossLevelChanged; + + public event EventHandler YarnGroupChanged; + + public event EventHandler YarnIndustrysectorChanged; + + public event EventHandler YarnManufacturerChanged; + + public event EventHandler YarnMaterialChanged; + + public event EventHandler YarnSubFamilyChanged; + + public event EventHandler YarnTexturingChanged; + + public event EventHandler YarnTypeChanged; + + protected String _rmlguid; + + /// + /// Gets or sets the rmlsextensionbase rml guid. + /// + + [Column("RML_GUID")] + [ForeignKey("Rml")] + + public String RmlGuid + { + get + { + return _rmlguid; + } + + set + { + if (_rmlguid != value) + { + _rmlguid = value; + + } + } + } + + protected String _userguid; + + /// + /// Gets or sets the rmlsextensionbase user guid. + /// + + [Column("USER_GUID")] + [ForeignKey("User")] + + public String UserGuid + { + get + { + return _userguid; + } + + set + { + if (_userguid != value) + { + _userguid = value; + + } + } + } + + protected DateTime _created; + + /// + /// Gets or sets the rmlsextensionbase created. + /// + + [Column("CREATED")] + + public DateTime Created + { + get + { + return _created; + } + + set + { + if (_created != value) + { + _created = value; + + OnCreatedChanged(value); + + } + } + } + + protected String _yarnmanufacturerguid; + + /// + /// Gets or sets the rmlsextensionbase yarn manufacturer guid. + /// + + [Column("YARN_MANUFACTURER_GUID")] + [ForeignKey("YarnManufacturer")] + + public String YarnManufacturerGuid + { + get + { + return _yarnmanufacturerguid; + } + + set + { + if (_yarnmanufacturerguid != value) + { + _yarnmanufacturerguid = value; + + } + } + } + + protected String _yarnbrandguid; + + /// + /// Gets or sets the rmlsextensionbase yarn brand guid. + /// + + [Column("YARN_BRAND_GUID")] + [ForeignKey("YarnBrand")] + + public String YarnBrandGuid + { + get + { + return _yarnbrandguid; + } + + set + { + if (_yarnbrandguid != value) + { + _yarnbrandguid = value; + + } + } + } + + protected String _country; + + /// + /// Gets or sets the rmlsextensionbase country. + /// + + [Column("COUNTRY")] + + public String Country + { + get + { + return _country; + } + + set + { + if (_country != value) + { + _country = value; + + OnCountryChanged(value); + + } + } + } + + protected String _yarnenduseguid; + + /// + /// Gets or sets the rmlsextensionbase yarn end use guid. + /// + + [Column("YARN_END_USE_GUID")] + [ForeignKey("YarnEndUse")] + + public String YarnEndUseGuid + { + get + { + return _yarnenduseguid; + } + + set + { + if (_yarnenduseguid != value) + { + _yarnenduseguid = value; + + } + } + } + + protected String _yarnapplicationsguid; + + /// + /// Gets or sets the rmlsextensionbase yarn applications guid. + /// + + [Column("YARN_APPLICATIONS_GUID")] + [ForeignKey("YarnApplications")] + + public String YarnApplicationsGuid + { + get + { + return _yarnapplicationsguid; + } + + set + { + if (_yarnapplicationsguid != value) + { + _yarnapplicationsguid = value; + + } + } + } + + protected String _yarnindustrysectorguid; + + /// + /// Gets or sets the rmlsextensionbase yarn industrysector guid. + /// + + [Column("YARN_INDUSTRYSECTOR_GUID")] + [ForeignKey("YarnIndustrysector")] + + public String YarnIndustrysectorGuid + { + get + { + return _yarnindustrysectorguid; + } + + set + { + if (_yarnindustrysectorguid != value) + { + _yarnindustrysectorguid = value; + + } + } + } + + protected String _yarnmaterialguid; + + /// + /// Gets or sets the rmlsextensionbase yarn material guid. + /// + + [Column("YARN_MATERIAL_GUID")] + [ForeignKey("YarnMaterial")] + + public String YarnMaterialGuid + { + get + { + return _yarnmaterialguid; + } + + set + { + if (_yarnmaterialguid != value) + { + _yarnmaterialguid = value; + + } + } + } + + protected String _yarntypeguid; + + /// + /// Gets or sets the rmlsextensionbase yarn type guid. + /// + + [Column("YARN_TYPE_GUID")] + [ForeignKey("YarnType")] + + public String YarnTypeGuid + { + get + { + return _yarntypeguid; + } + + set + { + if (_yarntypeguid != value) + { + _yarntypeguid = value; + + } + } + } + + protected String _yarnfamilyguid; + + /// + /// Gets or sets the rmlsextensionbase yarn family guid. + /// + + [Column("YARN_FAMILY_GUID")] + [ForeignKey("YarnFamily")] + + public String YarnFamilyGuid + { + get + { + return _yarnfamilyguid; + } + + set + { + if (_yarnfamilyguid != value) + { + _yarnfamilyguid = value; + + } + } + } + + protected String _yarnsubfamilyguid; + + /// + /// Gets or sets the rmlsextensionbase yarn sub family guid. + /// + + [Column("YARN_SUB_FAMILY_GUID")] + [ForeignKey("YarnSubFamily")] + + public String YarnSubFamilyGuid + { + get + { + return _yarnsubfamilyguid; + } + + set + { + if (_yarnsubfamilyguid != value) + { + _yarnsubfamilyguid = value; + + } + } + } + + protected String _yarngroupguid; + + /// + /// Gets or sets the rmlsextensionbase yarn group guid. + /// + + [Column("YARN_GROUP_GUID")] + [ForeignKey("YarnGroup")] + + public String YarnGroupGuid + { + get + { + return _yarngroupguid; + } + + set + { + if (_yarngroupguid != value) + { + _yarngroupguid = value; + + } + } + } + + protected String _yarntexturingguid; + + /// + /// Gets or sets the rmlsextensionbase yarn texturing guid. + /// + + [Column("YARN_TEXTURING_GUID")] + [ForeignKey("YarnTexturing")] + + public String YarnTexturingGuid + { + get + { + return _yarntexturingguid; + } + + set + { + if (_yarntexturingguid != value) + { + _yarntexturingguid = value; + + } + } + } + + protected String _yarngeometryguid; + + /// + /// Gets or sets the rmlsextensionbase yarn geometry guid. + /// + + [Column("YARN_GEOMETRY_GUID")] + [ForeignKey("YarnGeometry")] + + public String YarnGeometryGuid + { + get + { + return _yarngeometryguid; + } + + set + { + if (_yarngeometryguid != value) + { + _yarngeometryguid = value; + + } + } + } + + protected String _yarncolorguid; + + /// + /// Gets or sets the rmlsextensionbase yarn color guid. + /// + + [Column("YARN_COLOR_GUID")] + [ForeignKey("YarnColor")] + + public String YarnColorGuid + { + get + { + return _yarncolorguid; + } + + set + { + if (_yarncolorguid != value) + { + _yarncolorguid = value; + + } + } + } + + protected String _yarnglosslevelguid; + + /// + /// Gets or sets the rmlsextensionbase yarn gloss level guid. + /// + + [Column("YARN_GLOSS_LEVEL_GUID")] + [ForeignKey("YarnGlossLevel")] + + public String YarnGlossLevelGuid + { + get + { + return _yarnglosslevelguid; + } + + set + { + if (_yarnglosslevelguid != value) + { + _yarnglosslevelguid = value; + + } + } + } + + protected Int32 _lineardensity; + + /// + /// Gets or sets the rmlsextensionbase linear density. + /// + + [Column("LINEAR_DENSITY")] + + public Int32 LinearDensity + { + get + { + return _lineardensity; + } + + set + { + if (_lineardensity != value) + { + _lineardensity = value; + + OnLinearDensityChanged(value); + + } + } + } + + protected Int32 _unit; + + /// + /// Gets or sets the rmlsextensionbase unit. + /// + + [Column("UNIT")] + + public Int32 Unit + { + get + { + return _unit; + } + + set + { + if (_unit != value) + { + _unit = value; + + OnUnitChanged(value); + + } + } + } + + protected Int32 _plies; + + /// + /// Gets or sets the rmlsextensionbase plies. + /// + + [Column("PLIES")] + + public Int32 Plies + { + get + { + return _plies; + } + + set + { + if (_plies != value) + { + _plies = value; + + OnPliesChanged(value); + + } + } + } + + protected Int32 _filamentcount; + + /// + /// Gets or sets the rmlsextensionbase filament count. + /// + + [Column("FILAMENT_COUNT")] + + public Int32 FilamentCount + { + get + { + return _filamentcount; + } + + set + { + if (_filamentcount != value) + { + _filamentcount = value; + + OnFilamentCountChanged(value); + + } + } + } + + protected Int32 _twisttpm; + + /// + /// Gets or sets the rmlsextensionbase twist tpm. + /// + + [Column("TWIST_TPM")] + + public Int32 TwistTpm + { + get + { + return _twisttpm; + } + + set + { + if (_twisttpm != value) + { + _twisttpm = value; + + OnTwistTpmChanged(value); + + } + } + } + + protected Nullable _twistdirection; + + /// + /// Gets or sets the rmlsextensionbase twist direction. + /// + + [Column("TWIST_DIRECTION")] + + public Nullable TwistDirection + { + get + { + return _twistdirection; + } + + set + { + if (_twistdirection != value) + { + _twistdirection = value; + + OnTwistDirectionChanged(value); + + } + } + } + + protected Nullable _minelongation; + + /// + /// Gets or sets the rmlsextensionbase min elongation. + /// + + [Column("MIN_ELONGATION")] + + public Nullable MinElongation + { + get + { + return _minelongation; + } + + set + { + if (_minelongation != value) + { + _minelongation = value; + + OnMinElongationChanged(value); + + } + } + } + + protected Nullable _maxelongation; + + /// + /// Gets or sets the rmlsextensionbase max elongation. + /// + + [Column("MAX_ELONGATION")] + + public Nullable MaxElongation + { + get + { + return _maxelongation; + } + + set + { + if (_maxelongation != value) + { + _maxelongation = value; + + OnMaxElongationChanged(value); + + } + } + } + + protected Nullable _minmaxforcen; + + /// + /// Gets or sets the rmlsextensionbase min max force n. + /// + + [Column("MIN_MAX_FORCE_N")] + + public Nullable MinMaxForceN + { + get + { + return _minmaxforcen; + } + + set + { + if (_minmaxforcen != value) + { + _minmaxforcen = value; + + OnMinMaxForceNChanged(value); + + } + } + } + + protected Nullable _maxmaxforcen; + + /// + /// Gets or sets the rmlsextensionbase max max force n. + /// + + [Column("MAX_MAX_FORCE_N")] + + public Nullable MaxMaxForceN + { + get + { + return _maxmaxforcen; + } + + set + { + if (_maxmaxforcen != value) + { + _maxmaxforcen = value; + + OnMaxMaxForceNChanged(value); + + } + } + } + + protected Nullable _minelasticity; + + /// + /// Gets or sets the rmlsextensionbase min elasticity. + /// + + [Column("MIN_ELASTICITY")] + + public Nullable MinElasticity + { + get + { + return _minelasticity; + } + + set + { + if (_minelasticity != value) + { + _minelasticity = value; + + OnMinElasticityChanged(value); + + } + } + } + + protected Nullable _maxelasticity; + + /// + /// Gets or sets the rmlsextensionbase max elasticity. + /// + + [Column("MAX_ELASTICITY")] + + public Nullable MaxElasticity + { + get + { + return _maxelasticity; + } + + set + { + if (_maxelasticity != value) + { + _maxelasticity = value; + + OnMaxElasticityChanged(value); + + } + } + } + + protected Nullable _mintenacity; + + /// + /// Gets or sets the rmlsextensionbase min tenacity. + /// + + [Column("MIN_TENACITY")] + + public Nullable MinTenacity + { + get + { + return _mintenacity; + } + + set + { + if (_mintenacity != value) + { + _mintenacity = value; + + OnMinTenacityChanged(value); + + } + } + } + + protected Nullable _maxtenacity; + + /// + /// Gets or sets the rmlsextensionbase max tenacity. + /// + + [Column("MAX_TENACITY")] + + public Nullable MaxTenacity + { + get + { + return _maxtenacity; + } + + set + { + if (_maxtenacity != value) + { + _maxtenacity = value; + + OnMaxTenacityChanged(value); + + } + } + } + + protected String _finishing; + + /// + /// Gets or sets the rmlsextensionbase finishing. + /// + + [Column("FINISHING")] + + public String Finishing + { + get + { + return _finishing; + } + + set + { + if (_finishing != value) + { + _finishing = value; + + OnFinishingChanged(value); + + } + } + } + + protected String _filename; + + /// + /// Gets or sets the rmlsextensionbase file name. + /// + + [Column("FILE_NAME")] + + public String FileName + { + get + { + return _filename; + } + + set + { + if (_filename != value) + { + _filename = value; + + OnFileNameChanged(value); + + } + } + } + + protected Byte[] _data; + + /// + /// Gets or sets the rmlsextensionbase data. + /// + + [Column("DATA")] + + public Byte[] Data + { + get + { + return _data; + } + + set + { + if (_data != value) + { + _data = value; + + OnDataChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _colorprocessparameters; + + /// + /// Gets or sets the rmlsextensionbase color process parameters. + /// + + public virtual SynchronizedObservableCollection ColorProcessParameters + { + get + { + return _colorprocessparameters; + } + + set + { + if (_colorprocessparameters != value) + { + _colorprocessparameters = value; + + OnColorProcessParametersChanged(value); + + } + } + } + + protected Rml _rml; + + /// + /// Gets or sets the rmlsextensionbase rml. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual Rml Rml + { + get + { + return _rml; + } + + set + { + if (_rml != value) + { + _rml = value; + + if (Rml != null) + { + RmlGuid = Rml.Guid; + } + + OnRmlChanged(value); + + } + } + } + + protected User _user; + + /// + /// Gets or sets the rmlsextensionbase user. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual User User + { + get + { + return _user; + } + + set + { + if (_user != value) + { + _user = value; + + if (User != null) + { + UserGuid = User.Guid; + } + + OnUserChanged(value); + + } + } + } + + protected YarnApplication _yarnapplications; + + /// + /// Gets or sets the rmlsextensionbase yarn applications. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual YarnApplication YarnApplications + { + get + { + return _yarnapplications; + } + + set + { + if (_yarnapplications != value) + { + _yarnapplications = value; + + if (YarnApplications != null) + { + YarnApplicationsGuid = YarnApplications.Guid; + } + + OnYarnApplicationsChanged(value); + + } + } + } + + protected YarnBrand _yarnbrand; + + /// + /// Gets or sets the rmlsextensionbase yarn brand. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual YarnBrand YarnBrand + { + get + { + return _yarnbrand; + } + + set + { + if (_yarnbrand != value) + { + _yarnbrand = value; + + if (YarnBrand != null) + { + YarnBrandGuid = YarnBrand.Guid; + } + + OnYarnBrandChanged(value); + + } + } + } + + protected YarnColor _yarncolor; + + /// + /// Gets or sets the rmlsextensionbase yarn color. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual YarnColor YarnColor + { + get + { + return _yarncolor; + } + + set + { + if (_yarncolor != value) + { + _yarncolor = value; + + if (YarnColor != null) + { + YarnColorGuid = YarnColor.Guid; + } + + OnYarnColorChanged(value); + + } + } + } + + protected YarnEndUse _yarnenduse; + + /// + /// Gets or sets the rmlsextensionbase yarn end use. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual YarnEndUse YarnEndUse + { + get + { + return _yarnenduse; + } + + set + { + if (_yarnenduse != value) + { + _yarnenduse = value; + + if (YarnEndUse != null) + { + YarnEndUseGuid = YarnEndUse.Guid; + } + + OnYarnEndUseChanged(value); + + } + } + } + + protected YarnFamily _yarnfamily; + + /// + /// Gets or sets the rmlsextensionbase yarn family. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual YarnFamily YarnFamily + { + get + { + return _yarnfamily; + } + + set + { + if (_yarnfamily != value) + { + _yarnfamily = value; + + if (YarnFamily != null) + { + YarnFamilyGuid = YarnFamily.Guid; + } + + OnYarnFamilyChanged(value); + + } + } + } + + protected YarnGeometry _yarngeometry; + + /// + /// Gets or sets the rmlsextensionbase yarn geometry. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual YarnGeometry YarnGeometry + { + get + { + return _yarngeometry; + } + + set + { + if (_yarngeometry != value) + { + _yarngeometry = value; + + if (YarnGeometry != null) + { + YarnGeometryGuid = YarnGeometry.Guid; + } + + OnYarnGeometryChanged(value); + + } + } + } + + protected YarnGlossLevel _yarnglosslevel; + + /// + /// Gets or sets the rmlsextensionbase yarn gloss level. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual YarnGlossLevel YarnGlossLevel + { + get + { + return _yarnglosslevel; + } + + set + { + if (_yarnglosslevel != value) + { + _yarnglosslevel = value; + + if (YarnGlossLevel != null) + { + YarnGlossLevelGuid = YarnGlossLevel.Guid; + } + + OnYarnGlossLevelChanged(value); + + } + } + } + + protected YarnGroup _yarngroup; + + /// + /// Gets or sets the rmlsextensionbase yarn group. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual YarnGroup YarnGroup + { + get + { + return _yarngroup; + } + + set + { + if (_yarngroup != value) + { + _yarngroup = value; + + if (YarnGroup != null) + { + YarnGroupGuid = YarnGroup.Guid; + } + + OnYarnGroupChanged(value); + + } + } + } + + protected YarnIndustrysector _yarnindustrysector; + + /// + /// Gets or sets the rmlsextensionbase yarn industrysector. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual YarnIndustrysector YarnIndustrysector + { + get + { + return _yarnindustrysector; + } + + set + { + if (_yarnindustrysector != value) + { + _yarnindustrysector = value; + + if (YarnIndustrysector != null) + { + YarnIndustrysectorGuid = YarnIndustrysector.Guid; + } + + OnYarnIndustrysectorChanged(value); + + } + } + } + + protected YarnManufacturer _yarnmanufacturer; + + /// + /// Gets or sets the rmlsextensionbase yarn manufacturer. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual YarnManufacturer YarnManufacturer + { + get + { + return _yarnmanufacturer; + } + + set + { + if (_yarnmanufacturer != value) + { + _yarnmanufacturer = value; + + if (YarnManufacturer != null) + { + YarnManufacturerGuid = YarnManufacturer.Guid; + } + + OnYarnManufacturerChanged(value); + + } + } + } + + protected YarnMaterial _yarnmaterial; /// - /// Gets or sets the rmlsextensionbase name. + /// Gets or sets the rmlsextensionbase yarn materials. /// - [Column("NAME")] + [XmlIgnore] + [JsonIgnore] + public virtual YarnMaterial YarnMaterial + { + get + { + return _yarnmaterial; + } + + set + { + if (_yarnmaterial != value) + { + _yarnmaterial = value; + + if (YarnMaterial != null) + { + YarnMaterialGuid = YarnMaterial.Guid; + } + + OnYarnMaterialChanged(value); + + } + } + } + + protected YarnSubFamily _yarnsubfamily; + + /// + /// Gets or sets the rmlsextensionbase yarn sub family. + /// - public String Name + [XmlIgnore] + [JsonIgnore] + public virtual YarnSubFamily YarnSubFamily { get { - return _name; + return _yarnsubfamily; } set { - if (_name != value) + if (_yarnsubfamily != value) { - _name = value; + _yarnsubfamily = value; - OnNameChanged(value); + if (YarnSubFamily != null) + { + YarnSubFamilyGuid = YarnSubFamily.Guid; + } + + OnYarnSubFamilyChanged(value); } } } - protected String _description; + protected YarnTexturing _yarntexturing; /// - /// Gets or sets the rmlsextensionbase description. + /// Gets or sets the rmlsextensionbase yarn texturing. /// - [Column("DESCRIPTION")] + [XmlIgnore] + [JsonIgnore] + public virtual YarnTexturing YarnTexturing + { + get + { + return _yarntexturing; + } + + set + { + if (_yarntexturing != value) + { + _yarntexturing = value; + + if (YarnTexturing != null) + { + YarnTexturingGuid = YarnTexturing.Guid; + } + + OnYarnTexturingChanged(value); + + } + } + } + + protected YarnType _yarntype; - public String Description + /// + /// Gets or sets the rmlsextensionbase yarn type. + /// + + [XmlIgnore] + [JsonIgnore] + public virtual YarnType YarnType { get { - return _description; + return _yarntype; } set { - if (_description != value) + if (_yarntype != value) { - _description = value; + _yarntype = value; + + if (YarnType != null) + { + YarnTypeGuid = YarnType.Guid; + } - OnDescriptionChanged(value); + OnYarnTypeChanged(value); } } } /// - /// Called when the Name has changed. + /// Called when the Created has changed. + /// + protected virtual void OnCreatedChanged(DateTime created) + { + CreatedChanged?.Invoke(this, created); + RaisePropertyChanged(nameof(Created)); + } + + /// + /// Called when the Country has changed. + /// + protected virtual void OnCountryChanged(String country) + { + CountryChanged?.Invoke(this, country); + RaisePropertyChanged(nameof(Country)); + } + + /// + /// Called when the LinearDensity has changed. + /// + protected virtual void OnLinearDensityChanged(Int32 lineardensity) + { + LinearDensityChanged?.Invoke(this, lineardensity); + RaisePropertyChanged(nameof(LinearDensity)); + } + + /// + /// Called when the Unit has changed. + /// + protected virtual void OnUnitChanged(Int32 unit) + { + UnitChanged?.Invoke(this, unit); + RaisePropertyChanged(nameof(Unit)); + } + + /// + /// Called when the Plies has changed. + /// + protected virtual void OnPliesChanged(Int32 plies) + { + PliesChanged?.Invoke(this, plies); + RaisePropertyChanged(nameof(Plies)); + } + + /// + /// Called when the FilamentCount has changed. + /// + protected virtual void OnFilamentCountChanged(Int32 filamentcount) + { + FilamentCountChanged?.Invoke(this, filamentcount); + RaisePropertyChanged(nameof(FilamentCount)); + } + + /// + /// Called when the TwistTpm has changed. + /// + protected virtual void OnTwistTpmChanged(Int32 twisttpm) + { + TwistTpmChanged?.Invoke(this, twisttpm); + RaisePropertyChanged(nameof(TwistTpm)); + } + + /// + /// Called when the TwistDirection has changed. + /// + protected virtual void OnTwistDirectionChanged(Nullable twistdirection) + { + TwistDirectionChanged?.Invoke(this, twistdirection); + RaisePropertyChanged(nameof(TwistDirection)); + } + + /// + /// Called when the MinElongation has changed. + /// + protected virtual void OnMinElongationChanged(Nullable minelongation) + { + MinElongationChanged?.Invoke(this, minelongation); + RaisePropertyChanged(nameof(MinElongation)); + } + + /// + /// Called when the MaxElongation has changed. + /// + protected virtual void OnMaxElongationChanged(Nullable maxelongation) + { + MaxElongationChanged?.Invoke(this, maxelongation); + RaisePropertyChanged(nameof(MaxElongation)); + } + + /// + /// Called when the MinMaxForceN has changed. + /// + protected virtual void OnMinMaxForceNChanged(Nullable minmaxforcen) + { + MinMaxForceNChanged?.Invoke(this, minmaxforcen); + RaisePropertyChanged(nameof(MinMaxForceN)); + } + + /// + /// Called when the MaxMaxForceN has changed. + /// + protected virtual void OnMaxMaxForceNChanged(Nullable maxmaxforcen) + { + MaxMaxForceNChanged?.Invoke(this, maxmaxforcen); + RaisePropertyChanged(nameof(MaxMaxForceN)); + } + + /// + /// Called when the MinElasticity has changed. + /// + protected virtual void OnMinElasticityChanged(Nullable minelasticity) + { + MinElasticityChanged?.Invoke(this, minelasticity); + RaisePropertyChanged(nameof(MinElasticity)); + } + + /// + /// Called when the MaxElasticity has changed. + /// + protected virtual void OnMaxElasticityChanged(Nullable maxelasticity) + { + MaxElasticityChanged?.Invoke(this, maxelasticity); + RaisePropertyChanged(nameof(MaxElasticity)); + } + + /// + /// Called when the MinTenacity has changed. + /// + protected virtual void OnMinTenacityChanged(Nullable mintenacity) + { + MinTenacityChanged?.Invoke(this, mintenacity); + RaisePropertyChanged(nameof(MinTenacity)); + } + + /// + /// Called when the MaxTenacity has changed. + /// + protected virtual void OnMaxTenacityChanged(Nullable maxtenacity) + { + MaxTenacityChanged?.Invoke(this, maxtenacity); + RaisePropertyChanged(nameof(MaxTenacity)); + } + + /// + /// Called when the Finishing has changed. + /// + protected virtual void OnFinishingChanged(String finishing) + { + FinishingChanged?.Invoke(this, finishing); + RaisePropertyChanged(nameof(Finishing)); + } + + /// + /// Called when the FileName has changed. + /// + protected virtual void OnFileNameChanged(String filename) + { + FileNameChanged?.Invoke(this, filename); + RaisePropertyChanged(nameof(FileName)); + } + + /// + /// Called when the Data has changed. + /// + protected virtual void OnDataChanged(Byte[] data) + { + DataChanged?.Invoke(this, data); + RaisePropertyChanged(nameof(Data)); + } + + /// + /// Called when the ColorProcessParameters has changed. + /// + protected virtual void OnColorProcessParametersChanged(SynchronizedObservableCollection colorprocessparameters) + { + ColorProcessParametersChanged?.Invoke(this, colorprocessparameters); + RaisePropertyChanged(nameof(ColorProcessParameters)); + } + + /// + /// Called when the Rml has changed. + /// + protected virtual void OnRmlChanged(Rml rml) + { + RmlChanged?.Invoke(this, rml); + RaisePropertyChanged(nameof(Rml)); + } + + /// + /// Called when the User has changed. + /// + protected virtual void OnUserChanged(User user) + { + UserChanged?.Invoke(this, user); + RaisePropertyChanged(nameof(User)); + } + + /// + /// Called when the YarnApplications has changed. + /// + protected virtual void OnYarnApplicationsChanged(YarnApplication yarnapplications) + { + YarnApplicationsChanged?.Invoke(this, yarnapplications); + RaisePropertyChanged(nameof(YarnApplications)); + } + + /// + /// Called when the YarnBrand has changed. + /// + protected virtual void OnYarnBrandChanged(YarnBrand yarnbrand) + { + YarnBrandChanged?.Invoke(this, yarnbrand); + RaisePropertyChanged(nameof(YarnBrand)); + } + + /// + /// Called when the YarnColor has changed. + /// + protected virtual void OnYarnColorChanged(YarnColor yarncolor) + { + YarnColorChanged?.Invoke(this, yarncolor); + RaisePropertyChanged(nameof(YarnColor)); + } + + /// + /// Called when the YarnEndUse has changed. + /// + protected virtual void OnYarnEndUseChanged(YarnEndUse yarnenduse) + { + YarnEndUseChanged?.Invoke(this, yarnenduse); + RaisePropertyChanged(nameof(YarnEndUse)); + } + + /// + /// Called when the YarnFamily has changed. + /// + protected virtual void OnYarnFamilyChanged(YarnFamily yarnfamily) + { + YarnFamilyChanged?.Invoke(this, yarnfamily); + RaisePropertyChanged(nameof(YarnFamily)); + } + + /// + /// Called when the YarnGeometry has changed. + /// + protected virtual void OnYarnGeometryChanged(YarnGeometry yarngeometry) + { + YarnGeometryChanged?.Invoke(this, yarngeometry); + RaisePropertyChanged(nameof(YarnGeometry)); + } + + /// + /// Called when the YarnGlossLevel has changed. /// - protected virtual void OnNameChanged(String name) + protected virtual void OnYarnGlossLevelChanged(YarnGlossLevel yarnglosslevel) { - NameChanged?.Invoke(this, name); - RaisePropertyChanged(nameof(Name)); + YarnGlossLevelChanged?.Invoke(this, yarnglosslevel); + RaisePropertyChanged(nameof(YarnGlossLevel)); } /// - /// Called when the Description has changed. + /// Called when the YarnGroup has changed. /// - protected virtual void OnDescriptionChanged(String description) + protected virtual void OnYarnGroupChanged(YarnGroup yarngroup) { - DescriptionChanged?.Invoke(this, description); - RaisePropertyChanged(nameof(Description)); + YarnGroupChanged?.Invoke(this, yarngroup); + RaisePropertyChanged(nameof(YarnGroup)); + } + + /// + /// Called when the YarnIndustrysector has changed. + /// + protected virtual void OnYarnIndustrysectorChanged(YarnIndustrysector yarnindustrysector) + { + YarnIndustrysectorChanged?.Invoke(this, yarnindustrysector); + RaisePropertyChanged(nameof(YarnIndustrysector)); + } + + /// + /// Called when the YarnManufacturer has changed. + /// + protected virtual void OnYarnManufacturerChanged(YarnManufacturer yarnmanufacturer) + { + YarnManufacturerChanged?.Invoke(this, yarnmanufacturer); + RaisePropertyChanged(nameof(YarnManufacturer)); + } + + /// + /// Called when the YarnMaterial has changed. + /// + protected virtual void OnYarnMaterialChanged(YarnMaterial yarnmaterial) + { + YarnMaterialChanged?.Invoke(this, yarnmaterial); + RaisePropertyChanged(nameof(YarnMaterial)); + } + + /// + /// Called when the YarnSubFamily has changed. + /// + protected virtual void OnYarnSubFamilyChanged(YarnSubFamily yarnsubfamily) + { + YarnSubFamilyChanged?.Invoke(this, yarnsubfamily); + RaisePropertyChanged(nameof(YarnSubFamily)); + } + + /// + /// Called when the YarnTexturing has changed. + /// + protected virtual void OnYarnTexturingChanged(YarnTexturing yarntexturing) + { + YarnTexturingChanged?.Invoke(this, yarntexturing); + RaisePropertyChanged(nameof(YarnTexturing)); + } + + /// + /// Called when the YarnType has changed. + /// + protected virtual void OnYarnTypeChanged(YarnType yarntype) + { + YarnTypeChanged?.Invoke(this, yarntype); + RaisePropertyChanged(nameof(YarnType)); } /// @@ -108,6 +1894,9 @@ namespace Tango.BL.Entities /// public RmlsExtensionBase() : base() { + + ColorProcessParameters = new SynchronizedObservableCollection(); + } } } diff --git a/Software/Visual_Studio/Tango.BL/Entities/UserBase.cs b/Software/Visual_Studio/Tango.BL/Entities/UserBase.cs index eb6eae4f7..29981fd75 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/UserBase.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/UserBase.cs @@ -53,6 +53,8 @@ namespace Tango.BL.Entities public event EventHandler OrganizationChanged; + public event EventHandler> RmlsExtensionsChanged; + public event EventHandler> TangoVersionsChanged; public event EventHandler> UsersRolesChanged; @@ -491,6 +493,31 @@ namespace Tango.BL.Entities } } + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the userbase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + protected SynchronizedObservableCollection _tangoversions; /// @@ -658,6 +685,15 @@ namespace Tango.BL.Entities RaisePropertyChanged(nameof(Organization)); } + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + /// /// Called when the TangoVersions has changed. /// @@ -692,6 +728,8 @@ namespace Tango.BL.Entities MachinesEvents = new SynchronizedObservableCollection(); + RmlsExtensions = new SynchronizedObservableCollection(); + TangoVersions = new SynchronizedObservableCollection(); UsersRoles = new SynchronizedObservableCollection(); diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnApplication.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnApplication.cs new file mode 100644 index 000000000..86bc38932 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnApplication.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnApplication: YarnApplicationBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnApplicationBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnApplicationBase.cs new file mode 100644 index 000000000..ec74bfbbb --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnApplicationBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_APPLICATIONS")] + public abstract class YarnApplicationBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarnapplicationbase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarnapplicationbase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnApplicationBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnBrand.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnBrand.cs new file mode 100644 index 000000000..dbf5b5e95 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnBrand.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnBrand: YarnBrandBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnBrandBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnBrandBase.cs new file mode 100644 index 000000000..5f743da43 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnBrandBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_BRAND")] + public abstract class YarnBrandBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarnbrandbase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarnbrandbase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnBrandBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnColor.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnColor.cs new file mode 100644 index 000000000..eb35a37fc --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnColor.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnColor : YarnColorBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnColorBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnColorBase.cs new file mode 100644 index 000000000..e92628012 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnColorBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_COLOR")] + public abstract class YarnColorBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarncolorbase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarncolorbase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnColorBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnEndUse.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnEndUse.cs new file mode 100644 index 000000000..a01f95fd5 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnEndUse.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnEndUse : YarnEndUseBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnEndUseBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnEndUseBase.cs new file mode 100644 index 000000000..25c51eacd --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnEndUseBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_END_USE")] + public abstract class YarnEndUseBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarnendusebase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarnendusebase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnEndUseBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnFamily.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnFamily.cs new file mode 100644 index 000000000..f3b9383fd --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnFamily.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnFamily : YarnFamilyBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnFamilyBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnFamilyBase.cs new file mode 100644 index 000000000..7dd46677e --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnFamilyBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_FAMILY")] + public abstract class YarnFamilyBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarnfamilybase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarnfamilybase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnFamilyBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnGeometry.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnGeometry.cs new file mode 100644 index 000000000..3028558a6 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnGeometry.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnGeometry : YarnGeometryBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnGeometryBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnGeometryBase.cs new file mode 100644 index 000000000..7ee00b957 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnGeometryBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_GEOMETRY")] + public abstract class YarnGeometryBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarngeometrybase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarngeometrybase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnGeometryBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnGlossLevel.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnGlossLevel.cs new file mode 100644 index 000000000..9d368c2e4 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnGlossLevel.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnGlossLevel : YarnGlossLevelBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnGlossLevelBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnGlossLevelBase.cs new file mode 100644 index 000000000..ed87750e7 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnGlossLevelBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_GLOSS_LEVEL")] + public abstract class YarnGlossLevelBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarnglosslevelbase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarnglosslevelbase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnGlossLevelBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnGroup.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnGroup.cs new file mode 100644 index 000000000..bd021a09b --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnGroup.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnGroup : YarnGroupBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnGroupBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnGroupBase.cs new file mode 100644 index 000000000..bc07ba6b2 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnGroupBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_GROUP")] + public abstract class YarnGroupBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarngroupbase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarngroupbase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnGroupBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnIndustrysector.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnIndustrysector.cs new file mode 100644 index 000000000..00e9e6401 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnIndustrysector.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.Entities +{ + public class YarnIndustrysector : YarnIndustrysectorBase + { + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnIndustrysectorBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnIndustrysectorBase.cs new file mode 100644 index 000000000..f807ae88e --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnIndustrysectorBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_INDUSTRYSECTOR")] + public abstract class YarnIndustrysectorBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarnindustrysectorbase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarnindustrysectorbase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnIndustrysectorBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnManufacturer.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnManufacturer.cs new file mode 100644 index 000000000..3c0b4384e --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnManufacturer.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnManufacturer : YarnManufacturerBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnManufacturerBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnManufacturerBase.cs new file mode 100644 index 000000000..d119e54b2 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnManufacturerBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_MANUFACTURER")] + public abstract class YarnManufacturerBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarnmanufacturerbase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarnmanufacturerbase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnManufacturerBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnMaterial.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnMaterial.cs new file mode 100644 index 000000000..508dda1f2 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnMaterial.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnMaterial : YarnMaterialBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnMaterialBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnMaterialBase.cs new file mode 100644 index 000000000..8c4de2cca --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnMaterialBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_MATERIALS")] + public abstract class YarnMaterialBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarnmaterialbase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarnmaterialbase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnMaterialBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnSubFamily.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnSubFamily.cs new file mode 100644 index 000000000..e19b3008c --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnSubFamily.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnSubFamily : YarnSubFamilyBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnSubFamilyBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnSubFamilyBase.cs new file mode 100644 index 000000000..baf467257 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnSubFamilyBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_SUB_FAMILY")] + public abstract class YarnSubFamilyBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarnsubfamilybase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarnsubfamilybase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnSubFamilyBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnTexturing.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnTexturing.cs new file mode 100644 index 000000000..f61b40f67 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnTexturing.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnTexturing : YarnTexturingBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnTexturingBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnTexturingBase.cs new file mode 100644 index 000000000..0d736df59 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnTexturingBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_TEXTURING")] + public abstract class YarnTexturingBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarntexturingbase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarntexturingbase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnTexturingBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnType.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnType.cs new file mode 100644 index 000000000..97ddd1ffc --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnType.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +namespace Tango.BL.Entities +{ + public class YarnType : YarnTypeBase + { + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.BL/Entities/YarnTypeBase.cs b/Software/Visual_Studio/Tango.BL/Entities/YarnTypeBase.cs new file mode 100644 index 000000000..b3ae3ba20 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/YarnTypeBase.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Tango Observables Generator +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. Do not modify! +// +//------------------------------------------------------------------------------ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Xml.Serialization; +using Newtonsoft.Json; +using System.Linq; +using Tango.DAL.Remote.DB; +using Tango.Core; +using System.ComponentModel; +using Tango.Core.CustomAttributes; + +namespace Tango.BL.Entities +{ + [Table("YARN_TYPE")] + public abstract class YarnTypeBase : ObservableEntity + { + + public event EventHandler NameChanged; + + public event EventHandler> RmlsExtensionsChanged; + + protected String _name; + + /// + /// Gets or sets the yarntypebase name. + /// + + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + if (_name != value) + { + _name = value; + + OnNameChanged(value); + + } + } + } + + protected SynchronizedObservableCollection _rmlsextensions; + + /// + /// Gets or sets the yarntypebase rmls extensions. + /// + + public virtual SynchronizedObservableCollection RmlsExtensions + { + get + { + return _rmlsextensions; + } + + set + { + if (_rmlsextensions != value) + { + _rmlsextensions = value; + + OnRmlsExtensionsChanged(value); + + } + } + } + + /// + /// Called when the Name has changed. + /// + protected virtual void OnNameChanged(String name) + { + NameChanged?.Invoke(this, name); + RaisePropertyChanged(nameof(Name)); + } + + /// + /// Called when the RmlsExtensions has changed. + /// + protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) + { + RmlsExtensionsChanged?.Invoke(this, rmlsextensions); + RaisePropertyChanged(nameof(RmlsExtensions)); + } + + /// + /// Initializes a new instance of the class. + /// + public YarnTypeBase() : base() + { + + RmlsExtensions = new SynchronizedObservableCollection(); + + } + } +} diff --git a/Software/Visual_Studio/Tango.BL/Enumerations/Plies.cs b/Software/Visual_Studio/Tango.BL/Enumerations/Plies.cs new file mode 100644 index 000000000..d099bee5d --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Enumerations/Plies.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.ComponentModel; + +namespace Tango.BL.Enumerations +{ + public enum Plies + { + [Description("1")] + P1 = 1, + [Description("2")] + P2 = 2, + [Description("3")] + P3 = 3, + [Description("4")] + P4 = 4, + [Description("5")] + P5 = 5, + [Description("6")] + P6 = 6 + } +} diff --git a/Software/Visual_Studio/Tango.BL/Enumerations/TwistDirections.cs b/Software/Visual_Studio/Tango.BL/Enumerations/TwistDirections.cs new file mode 100644 index 000000000..8c6017f6a --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Enumerations/TwistDirections.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.ComponentModel; + +namespace Tango.BL.Enumerations +{ + public enum TwistDirections + { + S = 0, + Z = 1 + } +} diff --git a/Software/Visual_Studio/Tango.BL/Enumerations/YarnUnits.cs b/Software/Visual_Studio/Tango.BL/Enumerations/YarnUnits.cs new file mode 100644 index 000000000..91ab3bbd1 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Enumerations/YarnUnits.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.BL.Enumerations +{ + public enum YarnUnits + { + [Description("DTEX")] + DTEX = 0, + [Description("Tex")] + Tex = 1, + [Description("Ne")] + Ne = 2, + [Description("Nm")] + Nm = 3, + } +} diff --git a/Software/Visual_Studio/Tango.BL/ObservablesContext.cs b/Software/Visual_Studio/Tango.BL/ObservablesContext.cs index 0f4bbb311..10f4575d4 100644 --- a/Software/Visual_Studio/Tango.BL/ObservablesContext.cs +++ b/Software/Visual_Studio/Tango.BL/ObservablesContext.cs @@ -158,6 +158,30 @@ namespace Tango.BL get; set; } + /// + /// Gets or sets the ColorProcessData. + /// + public DbSet ColorProcessData + { + get; set; + } + + /// + /// Gets or sets the ColorProcessFactor. + /// + public DbSet ColorProcessFactor + { + get; set; + } + + /// + /// Gets or sets the ColorProcessParameters. + /// + public DbSet ColorProcessParameters + { + get; set; + } + /// /// Gets or sets the ColorSpaces. /// @@ -742,5 +766,117 @@ namespace Tango.BL get; set; } + /// + /// Gets or sets the YarnApplications. + /// + public DbSet YarnApplications + { + get; set; + } + + /// + /// Gets or sets the YarnBrand. + /// + public DbSet YarnBrand + { + get; set; + } + + /// + /// Gets or sets the YarnColor. + /// + public DbSet YarnColor + { + get; set; + } + + /// + /// Gets or sets the YarnEndUse. + /// + public DbSet YarnEndUse + { + get; set; + } + + /// + /// Gets or sets the YarnFamily. + /// + public DbSet YarnFamily + { + get; set; + } + + /// + /// Gets or sets the YarnGeometry. + /// + public DbSet YarnGeometry + { + get; set; + } + + /// + /// Gets or sets the YarnGlossLevel. + /// + public DbSet YarnGlossLevel + { + get; set; + } + + /// + /// Gets or sets the YarnGroup. + /// + public DbSet YarnGroup + { + get; set; + } + + /// + /// Gets or sets the YarnIndustrysector. + /// + public DbSet YarnIndustrysector + { + get; set; + } + + /// + /// Gets or sets the YarnManufacturer. + /// + public DbSet YarnManufacturer + { + get; set; + } + + /// + /// Gets or sets the YarnMaterials. + /// + public DbSet YarnMaterials + { + get; set; + } + + /// + /// Gets or sets the YarnSubFamily. + /// + public DbSet YarnSubFamily + { + get; set; + } + + /// + /// Gets or sets the YarnTexturing. + /// + public DbSet YarnTexturing + { + get; set; + } + + /// + /// Gets or sets the YarnType. + /// + public DbSet YarnType + { + get; set; + } + } } diff --git a/Software/Visual_Studio/Tango.BL/ObservablesEntitiesAdapterExtension.cs b/Software/Visual_Studio/Tango.BL/ObservablesEntitiesAdapterExtension.cs index 3bb4c6d83..35d256267 100644 --- a/Software/Visual_Studio/Tango.BL/ObservablesEntitiesAdapterExtension.cs +++ b/Software/Visual_Studio/Tango.BL/ObservablesEntitiesAdapterExtension.cs @@ -629,6 +629,114 @@ namespace Tango.BL } + private ObservableCollection _colorprocessdata; + /// + /// Gets or sets the ColorProcessData. + /// + public ObservableCollection ColorProcessData + { + get + { + return _colorprocessdata; + } + + set + { + _colorprocessdata = value; RaisePropertyChanged(nameof(ColorProcessData)); + } + + } + + private ICollectionView _colorprocessdataViewSource; + /// + /// Gets or sets the ColorProcessData View Source. + /// + public ICollectionView ColorProcessDataViewSource + { + get + { + return _colorprocessdataViewSource; + } + + set + { + _colorprocessdataViewSource = value; RaisePropertyChanged(nameof(ColorProcessDataViewSource)); + } + + } + + private ObservableCollection _colorprocessfactor; + /// + /// Gets or sets the ColorProcessFactor. + /// + public ObservableCollection ColorProcessFactor + { + get + { + return _colorprocessfactor; + } + + set + { + _colorprocessfactor = value; RaisePropertyChanged(nameof(ColorProcessFactor)); + } + + } + + private ICollectionView _colorprocessfactorViewSource; + /// + /// Gets or sets the ColorProcessFactor View Source. + /// + public ICollectionView ColorProcessFactorViewSource + { + get + { + return _colorprocessfactorViewSource; + } + + set + { + _colorprocessfactorViewSource = value; RaisePropertyChanged(nameof(ColorProcessFactorViewSource)); + } + + } + + private ObservableCollection _colorprocessparameters; + /// + /// Gets or sets the ColorProcessParameters. + /// + public ObservableCollection ColorProcessParameters + { + get + { + return _colorprocessparameters; + } + + set + { + _colorprocessparameters = value; RaisePropertyChanged(nameof(ColorProcessParameters)); + } + + } + + private ICollectionView _colorprocessparametersViewSource; + /// + /// Gets or sets the ColorProcessParameters View Source. + /// + public ICollectionView ColorProcessParametersViewSource + { + get + { + return _colorprocessparametersViewSource; + } + + set + { + _colorprocessparametersViewSource = value; RaisePropertyChanged(nameof(ColorProcessParametersViewSource)); + } + + } + private ObservableCollection _colorspaces; /// /// Gets or sets the ColorSpaces. @@ -3257,6 +3365,510 @@ namespace Tango.BL } + private ObservableCollection _yarnapplications; + /// + /// Gets or sets the YarnApplications. + /// + public ObservableCollection YarnApplications + { + get + { + return _yarnapplications; + } + + set + { + _yarnapplications = value; RaisePropertyChanged(nameof(YarnApplications)); + } + + } + + private ICollectionView _yarnapplicationsViewSource; + /// + /// Gets or sets the YarnApplications View Source. + /// + public ICollectionView YarnApplicationsViewSource + { + get + { + return _yarnapplicationsViewSource; + } + + set + { + _yarnapplicationsViewSource = value; RaisePropertyChanged(nameof(YarnApplicationsViewSource)); + } + + } + + private ObservableCollection _yarnbrand; + /// + /// Gets or sets the YarnBrand. + /// + public ObservableCollection YarnBrand + { + get + { + return _yarnbrand; + } + + set + { + _yarnbrand = value; RaisePropertyChanged(nameof(YarnBrand)); + } + + } + + private ICollectionView _yarnbrandViewSource; + /// + /// Gets or sets the YarnBrand View Source. + /// + public ICollectionView YarnBrandViewSource + { + get + { + return _yarnbrandViewSource; + } + + set + { + _yarnbrandViewSource = value; RaisePropertyChanged(nameof(YarnBrandViewSource)); + } + + } + + private ObservableCollection _yarncolor; + /// + /// Gets or sets the YarnColor. + /// + public ObservableCollection YarnColor + { + get + { + return _yarncolor; + } + + set + { + _yarncolor = value; RaisePropertyChanged(nameof(YarnColor)); + } + + } + + private ICollectionView _yarncolorViewSource; + /// + /// Gets or sets the YarnColor View Source. + /// + public ICollectionView YarnColorViewSource + { + get + { + return _yarncolorViewSource; + } + + set + { + _yarncolorViewSource = value; RaisePropertyChanged(nameof(YarnColorViewSource)); + } + + } + + private ObservableCollection _yarnenduse; + /// + /// Gets or sets the YarnEndUse. + /// + public ObservableCollection YarnEndUse + { + get + { + return _yarnenduse; + } + + set + { + _yarnenduse = value; RaisePropertyChanged(nameof(YarnEndUse)); + } + + } + + private ICollectionView _yarnenduseViewSource; + /// + /// Gets or sets the YarnEndUse View Source. + /// + public ICollectionView YarnEndUseViewSource + { + get + { + return _yarnenduseViewSource; + } + + set + { + _yarnenduseViewSource = value; RaisePropertyChanged(nameof(YarnEndUseViewSource)); + } + + } + + private ObservableCollection _yarnfamily; + /// + /// Gets or sets the YarnFamily. + /// + public ObservableCollection YarnFamily + { + get + { + return _yarnfamily; + } + + set + { + _yarnfamily = value; RaisePropertyChanged(nameof(YarnFamily)); + } + + } + + private ICollectionView _yarnfamilyViewSource; + /// + /// Gets or sets the YarnFamily View Source. + /// + public ICollectionView YarnFamilyViewSource + { + get + { + return _yarnfamilyViewSource; + } + + set + { + _yarnfamilyViewSource = value; RaisePropertyChanged(nameof(YarnFamilyViewSource)); + } + + } + + private ObservableCollection _yarngeometry; + /// + /// Gets or sets the YarnGeometry. + /// + public ObservableCollection YarnGeometry + { + get + { + return _yarngeometry; + } + + set + { + _yarngeometry = value; RaisePropertyChanged(nameof(YarnGeometry)); + } + + } + + private ICollectionView _yarngeometryViewSource; + /// + /// Gets or sets the YarnGeometry View Source. + /// + public ICollectionView YarnGeometryViewSource + { + get + { + return _yarngeometryViewSource; + } + + set + { + _yarngeometryViewSource = value; RaisePropertyChanged(nameof(YarnGeometryViewSource)); + } + + } + + private ObservableCollection _yarnglosslevel; + /// + /// Gets or sets the YarnGlossLevel. + /// + public ObservableCollection YarnGlossLevel + { + get + { + return _yarnglosslevel; + } + + set + { + _yarnglosslevel = value; RaisePropertyChanged(nameof(YarnGlossLevel)); + } + + } + + private ICollectionView _yarnglosslevelViewSource; + /// + /// Gets or sets the YarnGlossLevel View Source. + /// + public ICollectionView YarnGlossLevelViewSource + { + get + { + return _yarnglosslevelViewSource; + } + + set + { + _yarnglosslevelViewSource = value; RaisePropertyChanged(nameof(YarnGlossLevelViewSource)); + } + + } + + private ObservableCollection _yarngroup; + /// + /// Gets or sets the YarnGroup. + /// + public ObservableCollection YarnGroup + { + get + { + return _yarngroup; + } + + set + { + _yarngroup = value; RaisePropertyChanged(nameof(YarnGroup)); + } + + } + + private ICollectionView _yarngroupViewSource; + /// + /// Gets or sets the YarnGroup View Source. + /// + public ICollectionView YarnGroupViewSource + { + get + { + return _yarngroupViewSource; + } + + set + { + _yarngroupViewSource = value; RaisePropertyChanged(nameof(YarnGroupViewSource)); + } + + } + + private ObservableCollection _yarnindustrysector; + /// + /// Gets or sets the YarnIndustrysector. + /// + public ObservableCollection YarnIndustrysector + { + get + { + return _yarnindustrysector; + } + + set + { + _yarnindustrysector = value; RaisePropertyChanged(nameof(YarnIndustrysector)); + } + + } + + private ICollectionView _yarnindustrysectorViewSource; + /// + /// Gets or sets the YarnIndustrysector View Source. + /// + public ICollectionView YarnIndustrysectorViewSource + { + get + { + return _yarnindustrysectorViewSource; + } + + set + { + _yarnindustrysectorViewSource = value; RaisePropertyChanged(nameof(YarnIndustrysectorViewSource)); + } + + } + + private ObservableCollection _yarnmanufacturer; + /// + /// Gets or sets the YarnManufacturer. + /// + public ObservableCollection YarnManufacturer + { + get + { + return _yarnmanufacturer; + } + + set + { + _yarnmanufacturer = value; RaisePropertyChanged(nameof(YarnManufacturer)); + } + + } + + private ICollectionView _yarnmanufacturerViewSource; + /// + /// Gets or sets the YarnManufacturer View Source. + /// + public ICollectionView YarnManufacturerViewSource + { + get + { + return _yarnmanufacturerViewSource; + } + + set + { + _yarnmanufacturerViewSource = value; RaisePropertyChanged(nameof(YarnManufacturerViewSource)); + } + + } + + private ObservableCollection _yarnmaterials; + /// + /// Gets or sets the YarnMaterials. + /// + public ObservableCollection YarnMaterials + { + get + { + return _yarnmaterials; + } + + set + { + _yarnmaterials = value; RaisePropertyChanged(nameof(YarnMaterials)); + } + + } + + private ICollectionView _yarnmaterialsViewSource; + /// + /// Gets or sets the YarnMaterials View Source. + /// + public ICollectionView YarnMaterialsViewSource + { + get + { + return _yarnmaterialsViewSource; + } + + set + { + _yarnmaterialsViewSource = value; RaisePropertyChanged(nameof(YarnMaterialsViewSource)); + } + + } + + private ObservableCollection _yarnsubfamily; + /// + /// Gets or sets the YarnSubFamily. + /// + public ObservableCollection YarnSubFamily + { + get + { + return _yarnsubfamily; + } + + set + { + _yarnsubfamily = value; RaisePropertyChanged(nameof(YarnSubFamily)); + } + + } + + private ICollectionView _yarnsubfamilyViewSource; + /// + /// Gets or sets the YarnSubFamily View Source. + /// + public ICollectionView YarnSubFamilyViewSource + { + get + { + return _yarnsubfamilyViewSource; + } + + set + { + _yarnsubfamilyViewSource = value; RaisePropertyChanged(nameof(YarnSubFamilyViewSource)); + } + + } + + private ObservableCollection _yarntexturing; + /// + /// Gets or sets the YarnTexturing. + /// + public ObservableCollection YarnTexturing + { + get + { + return _yarntexturing; + } + + set + { + _yarntexturing = value; RaisePropertyChanged(nameof(YarnTexturing)); + } + + } + + private ICollectionView _yarntexturingViewSource; + /// + /// Gets or sets the YarnTexturing View Source. + /// + public ICollectionView YarnTexturingViewSource + { + get + { + return _yarntexturingViewSource; + } + + set + { + _yarntexturingViewSource = value; RaisePropertyChanged(nameof(YarnTexturingViewSource)); + } + + } + + private ObservableCollection _yarntype; + /// + /// Gets or sets the YarnType. + /// + public ObservableCollection YarnType + { + get + { + return _yarntype; + } + + set + { + _yarntype = value; RaisePropertyChanged(nameof(YarnType)); + } + + } + + private ICollectionView _yarntypeViewSource; + /// + /// Gets or sets the YarnType View Source. + /// + public ICollectionView YarnTypeViewSource + { + get + { + return _yarntypeViewSource; + } + + set + { + _yarntypeViewSource = value; RaisePropertyChanged(nameof(YarnTypeViewSource)); + } + + } + /// /// Initialize collection sources. /// @@ -3297,6 +3909,12 @@ namespace Tango.BL ColorCatalogsItemsRecipesViewSource = CreateCollectionView(ColorCatalogsItemsRecipes); + ColorProcessDataViewSource = CreateCollectionView(ColorProcessData); + + ColorProcessFactorViewSource = CreateCollectionView(ColorProcessFactor); + + ColorProcessParametersViewSource = CreateCollectionView(ColorProcessParameters); + ColorSpacesViewSource = CreateCollectionView(ColorSpaces); ConfigurationsViewSource = CreateCollectionView(Configurations); @@ -3443,6 +4061,34 @@ namespace Tango.BL WindingMethodsViewSource = CreateCollectionView(WindingMethods); + YarnApplicationsViewSource = CreateCollectionView(YarnApplications); + + YarnBrandViewSource = CreateCollectionView(YarnBrand); + + YarnColorViewSource = CreateCollectionView(YarnColor); + + YarnEndUseViewSource = CreateCollectionView(YarnEndUse); + + YarnFamilyViewSource = CreateCollectionView(YarnFamily); + + YarnGeometryViewSource = CreateCollectionView(YarnGeometry); + + YarnGlossLevelViewSource = CreateCollectionView(YarnGlossLevel); + + YarnGroupViewSource = CreateCollectionView(YarnGroup); + + YarnIndustrysectorViewSource = CreateCollectionView(YarnIndustrysector); + + YarnManufacturerViewSource = CreateCollectionView(YarnManufacturer); + + YarnMaterialsViewSource = CreateCollectionView(YarnMaterials); + + YarnSubFamilyViewSource = CreateCollectionView(YarnSubFamily); + + YarnTexturingViewSource = CreateCollectionView(YarnTexturing); + + YarnTypeViewSource = CreateCollectionView(YarnType); + } } } diff --git a/Software/Visual_Studio/Tango.BL/ObservablesStaticCollectionsExtension.cs b/Software/Visual_Studio/Tango.BL/ObservablesStaticCollectionsExtension.cs index c113de4a6..daaf341a2 100644 --- a/Software/Visual_Studio/Tango.BL/ObservablesStaticCollectionsExtension.cs +++ b/Software/Visual_Studio/Tango.BL/ObservablesStaticCollectionsExtension.cs @@ -629,6 +629,114 @@ namespace Tango.BL } + private ObservableCollection _colorprocessdata; + /// + /// Gets or sets the ColorProcessData. + /// + public ObservableCollection ColorProcessData + { + get + { + return _colorprocessdata; + } + + set + { + _colorprocessdata = value; RaisePropertyChanged(nameof(ColorProcessData)); + } + + } + + private ICollectionView _colorprocessdataViewSource; + /// + /// Gets or sets the ColorProcessData View Source. + /// + public ICollectionView ColorProcessDataViewSource + { + get + { + return _colorprocessdataViewSource; + } + + set + { + _colorprocessdataViewSource = value; RaisePropertyChanged(nameof(ColorProcessDataViewSource)); + } + + } + + private ObservableCollection _colorprocessfactor; + /// + /// Gets or sets the ColorProcessFactor. + /// + public ObservableCollection ColorProcessFactor + { + get + { + return _colorprocessfactor; + } + + set + { + _colorprocessfactor = value; RaisePropertyChanged(nameof(ColorProcessFactor)); + } + + } + + private ICollectionView _colorprocessfactorViewSource; + /// + /// Gets or sets the ColorProcessFactor View Source. + /// + public ICollectionView ColorProcessFactorViewSource + { + get + { + return _colorprocessfactorViewSource; + } + + set + { + _colorprocessfactorViewSource = value; RaisePropertyChanged(nameof(ColorProcessFactorViewSource)); + } + + } + + private ObservableCollection _colorprocessparameters; + /// + /// Gets or sets the ColorProcessParameters. + /// + public ObservableCollection ColorProcessParameters + { + get + { + return _colorprocessparameters; + } + + set + { + _colorprocessparameters = value; RaisePropertyChanged(nameof(ColorProcessParameters)); + } + + } + + private ICollectionView _colorprocessparametersViewSource; + /// + /// Gets or sets the ColorProcessParameters View Source. + /// + public ICollectionView ColorProcessParametersViewSource + { + get + { + return _colorprocessparametersViewSource; + } + + set + { + _colorprocessparametersViewSource = value; RaisePropertyChanged(nameof(ColorProcessParametersViewSource)); + } + + } + private ObservableCollection _colorspaces; /// /// Gets or sets the ColorSpaces. @@ -3257,6 +3365,510 @@ namespace Tango.BL } + private ObservableCollection _yarnapplications; + /// + /// Gets or sets the YarnApplications. + /// + public ObservableCollection YarnApplications + { + get + { + return _yarnapplications; + } + + set + { + _yarnapplications = value; RaisePropertyChanged(nameof(YarnApplications)); + } + + } + + private ICollectionView _yarnapplicationsViewSource; + /// + /// Gets or sets the YarnApplications View Source. + /// + public ICollectionView YarnApplicationsViewSource + { + get + { + return _yarnapplicationsViewSource; + } + + set + { + _yarnapplicationsViewSource = value; RaisePropertyChanged(nameof(YarnApplicationsViewSource)); + } + + } + + private ObservableCollection _yarnbrand; + /// + /// Gets or sets the YarnBrand. + /// + public ObservableCollection YarnBrand + { + get + { + return _yarnbrand; + } + + set + { + _yarnbrand = value; RaisePropertyChanged(nameof(YarnBrand)); + } + + } + + private ICollectionView _yarnbrandViewSource; + /// + /// Gets or sets the YarnBrand View Source. + /// + public ICollectionView YarnBrandViewSource + { + get + { + return _yarnbrandViewSource; + } + + set + { + _yarnbrandViewSource = value; RaisePropertyChanged(nameof(YarnBrandViewSource)); + } + + } + + private ObservableCollection _yarncolor; + /// + /// Gets or sets the YarnColor. + /// + public ObservableCollection YarnColor + { + get + { + return _yarncolor; + } + + set + { + _yarncolor = value; RaisePropertyChanged(nameof(YarnColor)); + } + + } + + private ICollectionView _yarncolorViewSource; + /// + /// Gets or sets the YarnColor View Source. + /// + public ICollectionView YarnColorViewSource + { + get + { + return _yarncolorViewSource; + } + + set + { + _yarncolorViewSource = value; RaisePropertyChanged(nameof(YarnColorViewSource)); + } + + } + + private ObservableCollection _yarnenduse; + /// + /// Gets or sets the YarnEndUse. + /// + public ObservableCollection YarnEndUse + { + get + { + return _yarnenduse; + } + + set + { + _yarnenduse = value; RaisePropertyChanged(nameof(YarnEndUse)); + } + + } + + private ICollectionView _yarnenduseViewSource; + /// + /// Gets or sets the YarnEndUse View Source. + /// + public ICollectionView YarnEndUseViewSource + { + get + { + return _yarnenduseViewSource; + } + + set + { + _yarnenduseViewSource = value; RaisePropertyChanged(nameof(YarnEndUseViewSource)); + } + + } + + private ObservableCollection _yarnfamily; + /// + /// Gets or sets the YarnFamily. + /// + public ObservableCollection YarnFamily + { + get + { + return _yarnfamily; + } + + set + { + _yarnfamily = value; RaisePropertyChanged(nameof(YarnFamily)); + } + + } + + private ICollectionView _yarnfamilyViewSource; + /// + /// Gets or sets the YarnFamily View Source. + /// + public ICollectionView YarnFamilyViewSource + { + get + { + return _yarnfamilyViewSource; + } + + set + { + _yarnfamilyViewSource = value; RaisePropertyChanged(nameof(YarnFamilyViewSource)); + } + + } + + private ObservableCollection _yarngeometry; + /// + /// Gets or sets the YarnGeometry. + /// + public ObservableCollection YarnGeometry + { + get + { + return _yarngeometry; + } + + set + { + _yarngeometry = value; RaisePropertyChanged(nameof(YarnGeometry)); + } + + } + + private ICollectionView _yarngeometryViewSource; + /// + /// Gets or sets the YarnGeometry View Source. + /// + public ICollectionView YarnGeometryViewSource + { + get + { + return _yarngeometryViewSource; + } + + set + { + _yarngeometryViewSource = value; RaisePropertyChanged(nameof(YarnGeometryViewSource)); + } + + } + + private ObservableCollection _yarnglosslevel; + /// + /// Gets or sets the YarnGlossLevel. + /// + public ObservableCollection YarnGlossLevel + { + get + { + return _yarnglosslevel; + } + + set + { + _yarnglosslevel = value; RaisePropertyChanged(nameof(YarnGlossLevel)); + } + + } + + private ICollectionView _yarnglosslevelViewSource; + /// + /// Gets or sets the YarnGlossLevel View Source. + /// + public ICollectionView YarnGlossLevelViewSource + { + get + { + return _yarnglosslevelViewSource; + } + + set + { + _yarnglosslevelViewSource = value; RaisePropertyChanged(nameof(YarnGlossLevelViewSource)); + } + + } + + private ObservableCollection _yarngroup; + /// + /// Gets or sets the YarnGroup. + /// + public ObservableCollection YarnGroup + { + get + { + return _yarngroup; + } + + set + { + _yarngroup = value; RaisePropertyChanged(nameof(YarnGroup)); + } + + } + + private ICollectionView _yarngroupViewSource; + /// + /// Gets or sets the YarnGroup View Source. + /// + public ICollectionView YarnGroupViewSource + { + get + { + return _yarngroupViewSource; + } + + set + { + _yarngroupViewSource = value; RaisePropertyChanged(nameof(YarnGroupViewSource)); + } + + } + + private ObservableCollection _yarnindustrysector; + /// + /// Gets or sets the YarnIndustrysector. + /// + public ObservableCollection YarnIndustrysector + { + get + { + return _yarnindustrysector; + } + + set + { + _yarnindustrysector = value; RaisePropertyChanged(nameof(YarnIndustrysector)); + } + + } + + private ICollectionView _yarnindustrysectorViewSource; + /// + /// Gets or sets the YarnIndustrysector View Source. + /// + public ICollectionView YarnIndustrysectorViewSource + { + get + { + return _yarnindustrysectorViewSource; + } + + set + { + _yarnindustrysectorViewSource = value; RaisePropertyChanged(nameof(YarnIndustrysectorViewSource)); + } + + } + + private ObservableCollection _yarnmanufacturer; + /// + /// Gets or sets the YarnManufacturer. + /// + public ObservableCollection YarnManufacturer + { + get + { + return _yarnmanufacturer; + } + + set + { + _yarnmanufacturer = value; RaisePropertyChanged(nameof(YarnManufacturer)); + } + + } + + private ICollectionView _yarnmanufacturerViewSource; + /// + /// Gets or sets the YarnManufacturer View Source. + /// + public ICollectionView YarnManufacturerViewSource + { + get + { + return _yarnmanufacturerViewSource; + } + + set + { + _yarnmanufacturerViewSource = value; RaisePropertyChanged(nameof(YarnManufacturerViewSource)); + } + + } + + private ObservableCollection _yarnmaterials; + /// + /// Gets or sets the YarnMaterials. + /// + public ObservableCollection YarnMaterials + { + get + { + return _yarnmaterials; + } + + set + { + _yarnmaterials = value; RaisePropertyChanged(nameof(YarnMaterials)); + } + + } + + private ICollectionView _yarnmaterialsViewSource; + /// + /// Gets or sets the YarnMaterials View Source. + /// + public ICollectionView YarnMaterialsViewSource + { + get + { + return _yarnmaterialsViewSource; + } + + set + { + _yarnmaterialsViewSource = value; RaisePropertyChanged(nameof(YarnMaterialsViewSource)); + } + + } + + private ObservableCollection _yarnsubfamily; + /// + /// Gets or sets the YarnSubFamily. + /// + public ObservableCollection YarnSubFamily + { + get + { + return _yarnsubfamily; + } + + set + { + _yarnsubfamily = value; RaisePropertyChanged(nameof(YarnSubFamily)); + } + + } + + private ICollectionView _yarnsubfamilyViewSource; + /// + /// Gets or sets the YarnSubFamily View Source. + /// + public ICollectionView YarnSubFamilyViewSource + { + get + { + return _yarnsubfamilyViewSource; + } + + set + { + _yarnsubfamilyViewSource = value; RaisePropertyChanged(nameof(YarnSubFamilyViewSource)); + } + + } + + private ObservableCollection _yarntexturing; + /// + /// Gets or sets the YarnTexturing. + /// + public ObservableCollection YarnTexturing + { + get + { + return _yarntexturing; + } + + set + { + _yarntexturing = value; RaisePropertyChanged(nameof(YarnTexturing)); + } + + } + + private ICollectionView _yarntexturingViewSource; + /// + /// Gets or sets the YarnTexturing View Source. + /// + public ICollectionView YarnTexturingViewSource + { + get + { + return _yarntexturingViewSource; + } + + set + { + _yarntexturingViewSource = value; RaisePropertyChanged(nameof(YarnTexturingViewSource)); + } + + } + + private ObservableCollection _yarntype; + /// + /// Gets or sets the YarnType. + /// + public ObservableCollection YarnType + { + get + { + return _yarntype; + } + + set + { + _yarntype = value; RaisePropertyChanged(nameof(YarnType)); + } + + } + + private ICollectionView _yarntypeViewSource; + /// + /// Gets or sets the YarnType View Source. + /// + public ICollectionView YarnTypeViewSource + { + get + { + return _yarntypeViewSource; + } + + set + { + _yarntypeViewSource = value; RaisePropertyChanged(nameof(YarnTypeViewSource)); + } + + } + /// /// Initialize collection sources. /// @@ -3297,6 +3909,12 @@ namespace Tango.BL ColorCatalogsItemsRecipesViewSource = CreateCollectionView(ColorCatalogsItemsRecipes); + ColorProcessDataViewSource = CreateCollectionView(ColorProcessData); + + ColorProcessFactorViewSource = CreateCollectionView(ColorProcessFactor); + + ColorProcessParametersViewSource = CreateCollectionView(ColorProcessParameters); + ColorSpacesViewSource = CreateCollectionView(ColorSpaces); ConfigurationsViewSource = CreateCollectionView(Configurations); @@ -3443,6 +4061,34 @@ namespace Tango.BL WindingMethodsViewSource = CreateCollectionView(WindingMethods); + YarnApplicationsViewSource = CreateCollectionView(YarnApplications); + + YarnBrandViewSource = CreateCollectionView(YarnBrand); + + YarnColorViewSource = CreateCollectionView(YarnColor); + + YarnEndUseViewSource = CreateCollectionView(YarnEndUse); + + YarnFamilyViewSource = CreateCollectionView(YarnFamily); + + YarnGeometryViewSource = CreateCollectionView(YarnGeometry); + + YarnGlossLevelViewSource = CreateCollectionView(YarnGlossLevel); + + YarnGroupViewSource = CreateCollectionView(YarnGroup); + + YarnIndustrysectorViewSource = CreateCollectionView(YarnIndustrysector); + + YarnManufacturerViewSource = CreateCollectionView(YarnManufacturer); + + YarnMaterialsViewSource = CreateCollectionView(YarnMaterials); + + YarnSubFamilyViewSource = CreateCollectionView(YarnSubFamily); + + YarnTexturingViewSource = CreateCollectionView(YarnTexturing); + + YarnTypeViewSource = CreateCollectionView(YarnType); + } } } diff --git a/Software/Visual_Studio/Tango.BL/Tango.BL.csproj b/Software/Visual_Studio/Tango.BL/Tango.BL.csproj index bdc5b4c23..a0f33ac59 100644 --- a/Software/Visual_Studio/Tango.BL/Tango.BL.csproj +++ b/Software/Visual_Studio/Tango.BL/Tango.BL.csproj @@ -106,6 +106,7 @@ + @@ -115,6 +116,8 @@ + + @@ -173,6 +176,12 @@ + + + + + + @@ -319,6 +328,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -342,6 +379,12 @@ + + + + + + @@ -442,6 +485,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -450,9 +521,12 @@ + + + @@ -678,7 +752,7 @@ - + \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/COLOR_PROCESS_DATA.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/COLOR_PROCESS_DATA.cs new file mode 100644 index 000000000..711e6597c --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/COLOR_PROCESS_DATA.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class COLOR_PROCESS_DATA + { + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string COLOR_PROCESS_PARAMETERS_GUID { get; set; } + public string COLOR_NAME { get; set; } + public int INK_NL_CM { get; set; } + public double L { get; set; } + public double A { get; set; } + public double B { get; set; } + + public virtual COLOR_PROCESS_PARAMETERS COLOR_PROCESS_PARAMETERS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/COLOR_PROCESS_FACTOR.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/COLOR_PROCESS_FACTOR.cs new file mode 100644 index 000000000..ad5eadb0a --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/COLOR_PROCESS_FACTOR.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class COLOR_PROCESS_FACTOR + { + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string COLOR_PROCESS_PARAMETERS_GUID { get; set; } + public string COLOR_NAME { get; set; } + public int INK_NL_CM { get; set; } + public double L { get; set; } + public double A { get; set; } + public double B { get; set; } + public int FACTOR_PERCENT { get; set; } + + public virtual COLOR_PROCESS_PARAMETERS COLOR_PROCESS_PARAMETERS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/COLOR_PROCESS_PARAMETERS.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/COLOR_PROCESS_PARAMETERS.cs new file mode 100644 index 000000000..3e620912e --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/COLOR_PROCESS_PARAMETERS.cs @@ -0,0 +1,38 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class COLOR_PROCESS_PARAMETERS + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public COLOR_PROCESS_PARAMETERS() + { + this.COLOR_PROCESS_DATA = new HashSet(); + this.COLOR_PROCESS_FACTOR = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string RMLS_EXTENSIONS_GUID { get; set; } + public double WHITE_POINT_L { get; set; } + public double WHITE_POINT_A { get; set; } + public double WHITE_POINT_B { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection COLOR_PROCESS_DATA { get; set; } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection COLOR_PROCESS_FACTOR { get; set; } + public virtual RMLS_EXTENSIONS RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/RML.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/RML.cs index 4a9908912..f4c6880bc 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/RML.cs +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/RML.cs @@ -22,6 +22,7 @@ namespace Tango.DAL.Remote.DB this.JOBS = new HashSet(); this.LIQUID_TYPES_RMLS = new HashSet(); this.PROCESS_PARAMETERS_TABLES_GROUPS = new HashSet(); + this.RMLS_EXTENSIONS = new HashSet(); this.RMLS_SPOOLS = new HashSet(); this.SITES_RMLS = new HashSet(); } @@ -99,6 +100,8 @@ namespace Tango.DAL.Remote.DB [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection PROCESS_PARAMETERS_TABLES_GROUPS { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection RMLS_SPOOLS { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection SITES_RMLS { get; set; } diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/RMLS_EXTENSIONS.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/RMLS_EXTENSIONS.cs index c8f452bc4..a65820556 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/RMLS_EXTENSIONS.cs +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/RMLS_EXTENSIONS.cs @@ -14,10 +14,68 @@ namespace Tango.DAL.Remote.DB public partial class RMLS_EXTENSIONS { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public RMLS_EXTENSIONS() + { + this.COLOR_PROCESS_PARAMETERS = new HashSet(); + } + public int ID { get; set; } public string GUID { get; set; } public System.DateTime LAST_UPDATED { get; set; } - public string NAME { get; set; } - public string DESCRIPTION { get; set; } + public string RML_GUID { get; set; } + public string USER_GUID { get; set; } + public System.DateTime CREATED { get; set; } + public string YARN_MANUFACTURER_GUID { get; set; } + public string YARN_BRAND_GUID { get; set; } + public string COUNTRY { get; set; } + public string YARN_END_USE_GUID { get; set; } + public string YARN_APPLICATIONS_GUID { get; set; } + public string YARN_INDUSTRYSECTOR_GUID { get; set; } + public string YARN_MATERIAL_GUID { get; set; } + public string YARN_TYPE_GUID { get; set; } + public string YARN_FAMILY_GUID { get; set; } + public string YARN_SUB_FAMILY_GUID { get; set; } + public string YARN_GROUP_GUID { get; set; } + public string YARN_TEXTURING_GUID { get; set; } + public string YARN_GEOMETRY_GUID { get; set; } + public string YARN_COLOR_GUID { get; set; } + public string YARN_GLOSS_LEVEL_GUID { get; set; } + public int LINEAR_DENSITY { get; set; } + public int UNIT { get; set; } + public int PLIES { get; set; } + public int FILAMENT_COUNT { get; set; } + public int TWIST_TPM { get; set; } + public Nullable TWIST_DIRECTION { get; set; } + public Nullable MIN_ELONGATION { get; set; } + public Nullable MAX_ELONGATION { get; set; } + public Nullable MIN_MAX_FORCE_N { get; set; } + public Nullable MAX_MAX_FORCE_N { get; set; } + public Nullable MIN_ELASTICITY { get; set; } + public Nullable MAX_ELASTICITY { get; set; } + public Nullable MIN_TENACITY { get; set; } + public Nullable MAX_TENACITY { get; set; } + public string FINISHING { get; set; } + public string FILE_NAME { get; set; } + public byte[] DATA { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection COLOR_PROCESS_PARAMETERS { get; set; } + public virtual RML RML { get; set; } + public virtual USER USER { get; set; } + public virtual YARN_APPLICATIONS YARN_APPLICATIONS { get; set; } + public virtual YARN_BRAND YARN_BRAND { get; set; } + public virtual YARN_COLOR YARN_COLOR { get; set; } + public virtual YARN_END_USE YARN_END_USE { get; set; } + public virtual YARN_FAMILY YARN_FAMILY { get; set; } + public virtual YARN_GEOMETRY YARN_GEOMETRY { get; set; } + public virtual YARN_GLOSS_LEVEL YARN_GLOSS_LEVEL { get; set; } + public virtual YARN_GROUP YARN_GROUP { get; set; } + public virtual YARN_INDUSTRYSECTOR YARN_INDUSTRYSECTOR { get; set; } + public virtual YARN_MANUFACTURER YARN_MANUFACTURER { get; set; } + public virtual YARN_MATERIALS YARN_MATERIALS { get; set; } + public virtual YARN_SUB_FAMILY YARN_SUB_FAMILY { get; set; } + public virtual YARN_TEXTURING YARN_TEXTURING { get; set; } + public virtual YARN_TYPE YARN_TYPE { get; set; } } } diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.Context.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.Context.cs index d86ec98ae..a37de51db 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.Context.cs +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.Context.cs @@ -42,6 +42,9 @@ namespace Tango.DAL.Remote.DB public virtual DbSet COLOR_CATALOGS_GROUPS { get; set; } public virtual DbSet COLOR_CATALOGS_ITEMS { get; set; } public virtual DbSet COLOR_CATALOGS_ITEMS_RECIPES { get; set; } + public virtual DbSet COLOR_PROCESS_DATA { get; set; } + public virtual DbSet COLOR_PROCESS_FACTOR { get; set; } + public virtual DbSet COLOR_PROCESS_PARAMETERS { get; set; } public virtual DbSet COLOR_SPACES { get; set; } public virtual DbSet CONFIGURATIONS { get; set; } public virtual DbSet CONTACTS { get; set; } @@ -115,5 +118,19 @@ namespace Tango.DAL.Remote.DB public virtual DbSet USERS { get; set; } public virtual DbSet USERS_ROLES { get; set; } public virtual DbSet WINDING_METHODS { get; set; } + public virtual DbSet YARN_APPLICATIONS { get; set; } + public virtual DbSet YARN_BRAND { get; set; } + public virtual DbSet YARN_COLOR { get; set; } + public virtual DbSet YARN_END_USE { get; set; } + public virtual DbSet YARN_FAMILY { get; set; } + public virtual DbSet YARN_GEOMETRY { get; set; } + public virtual DbSet YARN_GLOSS_LEVEL { get; set; } + public virtual DbSet YARN_GROUP { get; set; } + public virtual DbSet YARN_INDUSTRYSECTOR { get; set; } + public virtual DbSet YARN_MANUFACTURER { get; set; } + public virtual DbSet YARN_MATERIALS { get; set; } + public virtual DbSet YARN_SUB_FAMILY { get; set; } + public virtual DbSet YARN_TEXTURING { get; set; } + public virtual DbSet YARN_TYPE { get; set; } } } diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx index 8ce8f6e02..79403a182 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx @@ -243,6 +243,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1098,8 +1139,41 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1389,6 +1463,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1549,6 +1749,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2323,6 +2565,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2594,6 +3030,9 @@ + + + @@ -2668,6 +3107,20 @@ + + + + + + + + + + + + + + @@ -2716,6 +3169,18 @@ + + + + + + + + + + + + @@ -2956,6 +3421,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3055,6 +3584,9 @@ + + + @@ -3128,6 +3660,20 @@ + + + + + + + + + + + + + + @@ -3220,6 +3766,18 @@ + + + + + + + + + + + + @@ -3452,6 +4010,10 @@ + + + + @@ -3460,6 +4022,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3767,6 +4389,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4731,6 +5399,7 @@ + @@ -4741,8 +5410,58 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5032,6 +5751,7 @@ + @@ -5059,6 +5779,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5313,45 +6173,87 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - + + - - + + - + - + - - + + - - + + - + - + - - + + @@ -6109,6 +7011,20 @@ + + + + + + + + + + + + + + @@ -6137,6 +7053,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -6516,6 +7612,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7418,8 +8558,41 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7727,6 +8900,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx.diagram b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx.diagram index b47d276c4..017f43c06 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx.diagram +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx.diagram @@ -5,95 +5,112 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -117,6 +134,9 @@ + + + @@ -175,8 +195,24 @@ + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/USER.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/USER.cs index 75cc4e444..375008753 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/USER.cs +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/USER.cs @@ -22,6 +22,7 @@ namespace Tango.DAL.Remote.DB this.JOBS = new HashSet(); this.MACHINE_STUDIO_VERSIONS = new HashSet(); this.MACHINES_EVENTS = new HashSet(); + this.RMLS_EXTENSIONS = new HashSet(); this.TANGO_VERSIONS = new HashSet(); this.USERS_ROLES = new HashSet(); } @@ -52,6 +53,8 @@ namespace Tango.DAL.Remote.DB public virtual ICollection MACHINES_EVENTS { get; set; } public virtual ORGANIZATION ORGANIZATION { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection TANGO_VERSIONS { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection USERS_ROLES { get; set; } diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_APPLICATIONS.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_APPLICATIONS.cs new file mode 100644 index 000000000..771e3ccaa --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_APPLICATIONS.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_APPLICATIONS + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_APPLICATIONS() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_BRAND.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_BRAND.cs new file mode 100644 index 000000000..2ba5f08cd --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_BRAND.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_BRAND + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_BRAND() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_COLOR.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_COLOR.cs new file mode 100644 index 000000000..b863f937c --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_COLOR.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_COLOR + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_COLOR() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_END_USE.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_END_USE.cs new file mode 100644 index 000000000..4008c4f0e --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_END_USE.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_END_USE + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_END_USE() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_FAMILY.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_FAMILY.cs new file mode 100644 index 000000000..4e29b0ab1 --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_FAMILY.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_FAMILY + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_FAMILY() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_GEOMETRY.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_GEOMETRY.cs new file mode 100644 index 000000000..87f07131e --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_GEOMETRY.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_GEOMETRY + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_GEOMETRY() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_GLOSS_LEVEL.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_GLOSS_LEVEL.cs new file mode 100644 index 000000000..75f4dd0b4 --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_GLOSS_LEVEL.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_GLOSS_LEVEL + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_GLOSS_LEVEL() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_GROUP.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_GROUP.cs new file mode 100644 index 000000000..1442fa1e1 --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_GROUP.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_GROUP + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_GROUP() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_INDUSTRYSECTOR.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_INDUSTRYSECTOR.cs new file mode 100644 index 000000000..3ca6eeb67 --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_INDUSTRYSECTOR.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_INDUSTRYSECTOR + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_INDUSTRYSECTOR() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_MANUFACTURER.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_MANUFACTURER.cs new file mode 100644 index 000000000..b2fec3ac4 --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_MANUFACTURER.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_MANUFACTURER + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_MANUFACTURER() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_MATERIALS.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_MATERIALS.cs new file mode 100644 index 000000000..8e14102bc --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_MATERIALS.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_MATERIALS + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_MATERIALS() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_SUB_FAMILY.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_SUB_FAMILY.cs new file mode 100644 index 000000000..5172bfb8e --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_SUB_FAMILY.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_SUB_FAMILY + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_SUB_FAMILY() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_TEXTURING.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_TEXTURING.cs new file mode 100644 index 000000000..7107eba01 --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_TEXTURING.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_TEXTURING + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_TEXTURING() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_TYPE.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_TYPE.cs new file mode 100644 index 000000000..0070c5da6 --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/YARN_TYPE.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class YARN_TYPE + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public YARN_TYPE() + { + this.RMLS_EXTENSIONS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public string NAME { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection RMLS_EXTENSIONS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/Tango.DAL.Remote.csproj b/Software/Visual_Studio/Tango.DAL.Remote/Tango.DAL.Remote.csproj index 13d896eb2..32add4378 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/Tango.DAL.Remote.csproj +++ b/Software/Visual_Studio/Tango.DAL.Remote/Tango.DAL.Remote.csproj @@ -114,6 +114,15 @@ RemoteADO.tt + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + RemoteADO.tt @@ -351,6 +360,48 @@ RemoteADO.tt + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + + + RemoteADO.tt + @@ -401,7 +452,7 @@ - + \ No newline at end of file -- cgit v1.3.1