diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2022-07-24 16:45:32 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2022-07-24 16:45:32 +0300 |
| commit | c4e8c98689dcedf035484cd079eac8d9678286db (patch) | |
| tree | f7c21491c5528b7d83a730c078dfd896524904b4 /Software/Visual_Studio/Tango.BL/Entities/RmlExtensionTestWashingResultBase.cs | |
| parent | d208f2029740f203ce79c6452432fa083a4c5c07 (diff) | |
| download | Tango-c4e8c98689dcedf035484cd079eac8d9678286db.tar.gz Tango-c4e8c98689dcedf035484cd079eac8d9678286db.zip | |
Added Washing test results tables
Related Work Items: #6660
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities/RmlExtensionTestWashingResultBase.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/RmlExtensionTestWashingResultBase.cs | 251 |
1 files changed, 251 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/RmlExtensionTestWashingResultBase.cs b/Software/Visual_Studio/Tango.BL/Entities/RmlExtensionTestWashingResultBase.cs new file mode 100644 index 000000000..0927baa04 --- /dev/null +++ b/Software/Visual_Studio/Tango.BL/Entities/RmlExtensionTestWashingResultBase.cs @@ -0,0 +1,251 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// 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! +// </auto-generated> +//------------------------------------------------------------------------------ + +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("RML_EXTENSION_TEST_WASHING_RESULTS")] + public abstract class RmlExtensionTestWashingResultBase : ObservableEntity<RmlExtensionTestWashingResult> + { + + public event EventHandler<Int32> ColorChanged; + + public event EventHandler<Nullable<Double>> WashingValueChanged; + + public event EventHandler<RmlExtensionTestResult> RmlExtensionTestResultsChanged; + + public event EventHandler<WashingTestMaterial> WashingTestMaterialsChanged; + + protected String _rmlextensiontestresultsguid; + + /// <summary> + /// Gets or sets the rmlextensiontestwashingresultbase rml extension test results guid. + /// </summary> + + [Column("RML_EXTENSION_TEST_RESULTS_GUID")] + [ForeignKey("RmlExtensionTestResults")] + + public String RmlExtensionTestResultsGuid + { + get + { + return _rmlextensiontestresultsguid; + } + + set + { + if (_rmlextensiontestresultsguid != value) + { + _rmlextensiontestresultsguid = value; + + } + } + } + + protected String _washingtestmaterialsguid; + + /// <summary> + /// Gets or sets the rmlextensiontestwashingresultbase washing test materials guid. + /// </summary> + + [Column("WASHING_TEST_MATERIALS_GUID")] + [ForeignKey("WashingTestMaterials")] + + public String WashingTestMaterialsGuid + { + get + { + return _washingtestmaterialsguid; + } + + set + { + if (_washingtestmaterialsguid != value) + { + _washingtestmaterialsguid = value; + + } + } + } + + protected Int32 _color; + + /// <summary> + /// Gets or sets the rmlextensiontestwashingresultbase color. + /// </summary> + + [Column("COLOR")] + + public Int32 Color + { + get + { + return _color; + } + + set + { + if (_color != value) + { + _color = value; + + OnColorChanged(value); + + } + } + } + + protected Nullable<Double> _washingvalue; + + /// <summary> + /// Gets or sets the rmlextensiontestwashingresultbase washing value. + /// </summary> + + [Column("WASHING_VALUE")] + + public Nullable<Double> WashingValue + { + get + { + return _washingvalue; + } + + set + { + if (_washingvalue != value) + { + _washingvalue = value; + + OnWashingValueChanged(value); + + } + } + } + + protected RmlExtensionTestResult _rmlextensiontestresults; + + /// <summary> + /// Gets or sets the rmlextensiontestwashingresultbase rml extension test results. + /// </summary> + + [XmlIgnore] + [JsonIgnore] + public virtual RmlExtensionTestResult RmlExtensionTestResults + { + get + { + return _rmlextensiontestresults; + } + + set + { + if (_rmlextensiontestresults != value) + { + _rmlextensiontestresults = value; + + if (RmlExtensionTestResults != null) + { + RmlExtensionTestResultsGuid = RmlExtensionTestResults.Guid; + } + + OnRmlExtensionTestResultsChanged(value); + + } + } + } + + protected WashingTestMaterial _washingtestmaterials; + + /// <summary> + /// Gets or sets the rmlextensiontestwashingresultbase washing test materials. + /// </summary> + + [XmlIgnore] + [JsonIgnore] + public virtual WashingTestMaterial WashingTestMaterials + { + get + { + return _washingtestmaterials; + } + + set + { + if (_washingtestmaterials != value) + { + _washingtestmaterials = value; + + if (WashingTestMaterials != null) + { + WashingTestMaterialsGuid = WashingTestMaterials.Guid; + } + + OnWashingTestMaterialsChanged(value); + + } + } + } + + /// <summary> + /// Called when the Color has changed. + /// </summary> + protected virtual void OnColorChanged(Int32 color) + { + ColorChanged?.Invoke(this, color); + RaisePropertyChanged(nameof(Color)); + } + + /// <summary> + /// Called when the WashingValue has changed. + /// </summary> + protected virtual void OnWashingValueChanged(Nullable<Double> washingvalue) + { + WashingValueChanged?.Invoke(this, washingvalue); + RaisePropertyChanged(nameof(WashingValue)); + } + + /// <summary> + /// Called when the RmlExtensionTestResults has changed. + /// </summary> + protected virtual void OnRmlExtensionTestResultsChanged(RmlExtensionTestResult rmlextensiontestresults) + { + RmlExtensionTestResultsChanged?.Invoke(this, rmlextensiontestresults); + RaisePropertyChanged(nameof(RmlExtensionTestResults)); + } + + /// <summary> + /// Called when the WashingTestMaterials has changed. + /// </summary> + protected virtual void OnWashingTestMaterialsChanged(WashingTestMaterial washingtestmaterials) + { + WashingTestMaterialsChanged?.Invoke(this, washingtestmaterials); + RaisePropertyChanged(nameof(WashingTestMaterials)); + } + + /// <summary> + /// Initializes a new instance of the <see cref="RmlExtensionTestWashingResultBase" /> class. + /// </summary> + public RmlExtensionTestWashingResultBase() : base() + { + } + } +} |
