//------------------------------------------------------------------------------ // // 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("RMLS")] public abstract class RmlBase : ObservableEntity { public event EventHandler NameChanged; public event EventHandler DisplayNameChanged; public event EventHandler ManufacturerChanged; public event EventHandler CodeChanged; public event EventHandler WhitePointLChanged; public event EventHandler WhitePointAChanged; public event EventHandler WhitePointBChanged; public event EventHandler FiberSizeChanged; public event EventHandler NumberOfFibersChanged; public event EventHandler PliesPerFiberChanged; public event EventHandler PliesPerThreadChanged; public event EventHandler TwistedChanged; public event EventHandler AirEntanglementChanged; public event EventHandler LubricantChanged; public event EventHandler TensileStrengthChanged; public event EventHandler ElongationAtBreakPercentageChanged; public event EventHandler EstimatedThreadDiameterChanged; public event EventHandler RankChanged; public event EventHandler ThumbnailChanged; public event EventHandler ColorConversionVersionChanged; public event EventHandler UseColorLibGradientsChanged; public event EventHandler UseLightInksChanged; public event EventHandler UseLubricantTransformChanged; public event EventHandler HeadTypeChanged; public event EventHandler QualificationLevelChanged; public event EventHandler> QualificationDateChanged; public event EventHandler SpoolsCalibrationsStringChanged; public event EventHandler FeederPChanged; public event EventHandler FeederIChanged; public event EventHandler FeederDChanged; public event EventHandler PullerPChanged; public event EventHandler PullerIChanged; public event EventHandler PullerDChanged; public event EventHandler WinderPChanged; public event EventHandler WinderIChanged; public event EventHandler WinderDChanged; public event EventHandler BypassRockersChanged; public event EventHandler CleanerFlowChanged; public event EventHandler ArcHeadCleaningMotorSpeedChanged; public event EventHandler VMaxChanged; public event EventHandler BtsrTensionErrorChanged; public event EventHandler DefaultLiquidFactorChanged; public event EventHandler> MachineTypeChanged; public event EventHandler BtsrApplicationTypeChanged; public event EventHandler BtsrYarnTypeChanged; public event EventHandler> CatsChanged; public event EventHandler CctChanged; public event EventHandler> ColorCatalogsItemsRecipesChanged; public event EventHandler FiberShapeChanged; public event EventHandler FiberSynthChanged; public event EventHandler GbdChanged; public event EventHandler> JobsChanged; public event EventHandler LinearMassDensityUnitChanged; public event EventHandler> LiquidTypesRmlsChanged; public event EventHandler LubChanged; public event EventHandler MediaConditionChanged; public event EventHandler MediaMaterialChanged; public event EventHandler MediaPurposeChanged; public event EventHandler> ProcessParametersTablesGroupsChanged; public event EventHandler> RmlsExtensionsChanged; public event EventHandler> RmlsSpoolsChanged; public event EventHandler> SitesRmlsChanged; protected String _name; /// /// Gets or sets the rmlbase name. /// [Column("NAME")] public String Name { get { return _name; } set { if (_name != value) { _name = value; OnNameChanged(value); } } } protected String _displayname; /// /// Gets or sets the rmlbase display name. /// [Column("DISPLAY_NAME")] public String DisplayName { get { return _displayname; } set { if (_displayname != value) { _displayname = value; OnDisplayNameChanged(value); } } } protected String _manufacturer; /// /// Gets or sets the rmlbase manufacturer. /// [Column("MANUFACTURER")] public String Manufacturer { get { return _manufacturer; } set { if (_manufacturer != value) { _manufacturer = value; OnManufacturerChanged(value); } } } protected Int32 _code; /// /// Gets or sets the rmlbase code. /// [Column("CODE")] public Int32 Code { get { return _code; } set { if (_code != value) { _code = value; OnCodeChanged(value); } } } protected Double _whitepointl; /// /// Gets or sets the rmlbase 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 rmlbase 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 rmlbase white point b. /// [Column("WHITE_POINT_B")] public Double WhitePointB { get { return _whitepointb; } set { if (_whitepointb != value) { _whitepointb = value; OnWhitePointBChanged(value); } } } protected String _mediamaterialguid; /// /// Gets or sets the rmlbase media material guid. /// [Column("MEDIA_MATERIAL_GUID")] [ForeignKey("MediaMaterial")] public String MediaMaterialGuid { get { return _mediamaterialguid; } set { if (_mediamaterialguid != value) { _mediamaterialguid = value; } } } protected String _mediapurposeguid; /// /// Gets or sets the rmlbase media purpose guid. /// [Column("MEDIA_PURPOSE_GUID")] [ForeignKey("MediaPurpose")] public String MediaPurposeGuid { get { return _mediapurposeguid; } set { if (_mediapurposeguid != value) { _mediapurposeguid = value; } } } protected String _mediaconditionguid; /// /// Gets or sets the rmlbase media condition guid. /// [Column("MEDIA_CONDITION_GUID")] [ForeignKey("MediaCondition")] public String MediaConditionGuid { get { return _mediaconditionguid; } set { if (_mediaconditionguid != value) { _mediaconditionguid = value; } } } protected String _linearmassdensityunitguid; /// /// Gets or sets the rmlbase linear mass density unit guid. /// [Column("LINEAR_MASS_DENSITY_UNIT_GUID")] [ForeignKey("LinearMassDensityUnit")] public String LinearMassDensityUnitGuid { get { return _linearmassdensityunitguid; } set { if (_linearmassdensityunitguid != value) { _linearmassdensityunitguid = value; } } } protected String _fibershapeguid; /// /// Gets or sets the rmlbase fiber shape guid. /// [Column("FIBER_SHAPE_GUID")] [ForeignKey("FiberShape")] public String FiberShapeGuid { get { return _fibershapeguid; } set { if (_fibershapeguid != value) { _fibershapeguid = value; } } } protected String _fibersynthguid; /// /// Gets or sets the rmlbase fiber synth guid. /// [Column("FIBER_SYNTH_GUID")] [ForeignKey("FiberSynth")] public String FiberSynthGuid { get { return _fibersynthguid; } set { if (_fibersynthguid != value) { _fibersynthguid = value; } } } protected Double _fibersize; /// /// Gets or sets the rmlbase fiber size. /// [Column("FIBER_SIZE")] public Double FiberSize { get { return _fibersize; } set { if (_fibersize != value) { _fibersize = value; OnFiberSizeChanged(value); } } } protected Int32 _numberoffibers; /// /// Gets or sets the rmlbase number of fibers. /// [Column("NUMBER_OF_FIBERS")] public Int32 NumberOfFibers { get { return _numberoffibers; } set { if (_numberoffibers != value) { _numberoffibers = value; OnNumberOfFibersChanged(value); } } } protected Int32 _pliesperfiber; /// /// Gets or sets the rmlbase plies per fiber. /// [Column("PLIES_PER_FIBER")] public Int32 PliesPerFiber { get { return _pliesperfiber; } set { if (_pliesperfiber != value) { _pliesperfiber = value; OnPliesPerFiberChanged(value); } } } protected Int32 _pliesperthread; /// /// Gets or sets the rmlbase plies per thread. /// [Column("PLIES_PER_THREAD")] public Int32 PliesPerThread { get { return _pliesperthread; } set { if (_pliesperthread != value) { _pliesperthread = value; OnPliesPerThreadChanged(value); } } } protected Boolean _twisted; /// /// Gets or sets the rmlbase twisted. /// [Column("TWISTED")] public Boolean Twisted { get { return _twisted; } set { if (_twisted != value) { _twisted = value; OnTwistedChanged(value); } } } protected Boolean _airentanglement; /// /// Gets or sets the rmlbase air entanglement. /// [Column("AIR_ENTANGLEMENT")] public Boolean AirEntanglement { get { return _airentanglement; } set { if (_airentanglement != value) { _airentanglement = value; OnAirEntanglementChanged(value); } } } protected Boolean _lubricant; /// /// Gets or sets the rmlbase lubricant. /// [Column("LUBRICANT")] public Boolean Lubricant { get { return _lubricant; } set { if (_lubricant != value) { _lubricant = value; OnLubricantChanged(value); } } } protected Double _tensilestrength; /// /// Gets or sets the rmlbase tensile strength. /// [Column("TENSILE_STRENGTH")] public Double TensileStrength { get { return _tensilestrength; } set { if (_tensilestrength != value) { _tensilestrength = value; OnTensileStrengthChanged(value); } } } protected Double _elongationatbreakpercentage; /// /// Gets or sets the rmlbase elongation at break percentage. /// [Column("ELONGATION_AT_BREAK_PERCENTAGE")] public Double ElongationAtBreakPercentage { get { return _elongationatbreakpercentage; } set { if (_elongationatbreakpercentage != value) { _elongationatbreakpercentage = value; OnElongationAtBreakPercentageChanged(value); } } } protected Double _estimatedthreaddiameter; /// /// Gets or sets the rmlbase estimated thread diameter. /// [Column("ESTIMATED_THREAD_DIAMETER")] public Double EstimatedThreadDiameter { get { return _estimatedthreaddiameter; } set { if (_estimatedthreaddiameter != value) { _estimatedthreaddiameter = value; OnEstimatedThreadDiameterChanged(value); } } } protected Int32 _rank; /// /// Gets or sets the rmlbase rank. /// [Column("RANK")] public Int32 Rank { get { return _rank; } set { if (_rank != value) { _rank = value; OnRankChanged(value); } } } protected Byte[] _thumbnail; /// /// Gets or sets the rmlbase thumbnail. /// [Column("THUMBNAIL")] public Byte[] Thumbnail { get { return _thumbnail; } set { if (_thumbnail != value) { _thumbnail = value; OnThumbnailChanged(value); } } } protected String _cctguid; /// /// Gets or sets the rmlbase cct guid. /// [Column("CCT_GUID")] [ForeignKey("Cct")] public String CctGuid { get { return _cctguid; } set { if (_cctguid != value) { _cctguid = value; } } } protected String _gbdguid; /// /// Gets or sets the rmlbase gbd guid. /// [Column("GBD_GUID")] [ForeignKey("Gbd")] public String GbdGuid { get { return _gbdguid; } set { if (_gbdguid != value) { _gbdguid = value; } } } protected String _lubguid; /// /// Gets or sets the rmlbase lub guid. /// [Column("LUB_GUID")] [ForeignKey("Lub")] public String LubGuid { get { return _lubguid; } set { if (_lubguid != value) { _lubguid = value; } } } protected Int32 _colorconversionversion; /// /// Gets or sets the rmlbase color conversion version. /// [Column("COLOR_CONVERSION_VERSION")] public Int32 ColorConversionVersion { get { return _colorconversionversion; } set { if (_colorconversionversion != value) { _colorconversionversion = value; OnColorConversionVersionChanged(value); } } } protected Boolean _usecolorlibgradients; /// /// Gets or sets the rmlbase use color lib gradients. /// [Column("USE_COLOR_LIB_GRADIENTS")] public Boolean UseColorLibGradients { get { return _usecolorlibgradients; } set { if (_usecolorlibgradients != value) { _usecolorlibgradients = value; OnUseColorLibGradientsChanged(value); } } } protected Boolean _uselightinks; /// /// Gets or sets the rmlbase use light inks. /// [Column("USE_LIGHT_INKS")] public Boolean UseLightInks { get { return _uselightinks; } set { if (_uselightinks != value) { _uselightinks = value; OnUseLightInksChanged(value); } } } protected Boolean _uselubricanttransform; /// /// Gets or sets the rmlbase use lubricant transform. /// [Column("USE_LUBRICANT_TRANSFORM")] public Boolean UseLubricantTransform { get { return _uselubricanttransform; } set { if (_uselubricanttransform != value) { _uselubricanttransform = value; OnUseLubricantTransformChanged(value); } } } protected Int32 _headtype; /// /// Gets or sets the rmlbase head type. /// [Column("HEAD_TYPE")] public Int32 HeadType { get { return _headtype; } set { if (_headtype != value) { _headtype = value; OnHeadTypeChanged(value); } } } protected Int32 _qualificationlevel; /// /// Gets or sets the rmlbase qualification level. /// [Column("QUALIFICATION_LEVEL")] public Int32 QualificationLevel { get { return _qualificationlevel; } set { if (_qualificationlevel != value) { _qualificationlevel = value; OnQualificationLevelChanged(value); } } } protected Nullable _qualificationdate; /// /// Gets or sets the rmlbase qualification date. /// [Column("QUALIFICATION_DATE")] public Nullable QualificationDate { get { return _qualificationdate; } set { if (_qualificationdate != value) { _qualificationdate = value; OnQualificationDateChanged(value); } } } protected String _spoolscalibrationsstring; /// /// Gets or sets the rmlbase spools calibrations string. /// [Column("SPOOLS_CALIBRATIONS_STRING")] public String SpoolsCalibrationsString { get { return _spoolscalibrationsstring; } set { if (_spoolscalibrationsstring != value) { _spoolscalibrationsstring = value; OnSpoolsCalibrationsStringChanged(value); } } } protected Int32 _feederp; /// /// Gets or sets the rmlbase feeder p. /// [Column("FEEDER_P")] public Int32 FeederP { get { return _feederp; } set { if (_feederp != value) { _feederp = value; OnFeederPChanged(value); } } } protected Int32 _feederi; /// /// Gets or sets the rmlbase feeder i. /// [Column("FEEDER_I")] public Int32 FeederI { get { return _feederi; } set { if (_feederi != value) { _feederi = value; OnFeederIChanged(value); } } } protected Int32 _feederd; /// /// Gets or sets the rmlbase feeder d. /// [Column("FEEDER_D")] public Int32 FeederD { get { return _feederd; } set { if (_feederd != value) { _feederd = value; OnFeederDChanged(value); } } } protected Int32 _pullerp; /// /// Gets or sets the rmlbase puller p. /// [Column("PULLER_P")] public Int32 PullerP { get { return _pullerp; } set { if (_pullerp != value) { _pullerp = value; OnPullerPChanged(value); } } } protected Int32 _pulleri; /// /// Gets or sets the rmlbase puller i. /// [Column("PULLER_I")] public Int32 PullerI { get { return _pulleri; } set { if (_pulleri != value) { _pulleri = value; OnPullerIChanged(value); } } } protected Int32 _pullerd; /// /// Gets or sets the rmlbase puller d. /// [Column("PULLER_D")] public Int32 PullerD { get { return _pullerd; } set { if (_pullerd != value) { _pullerd = value; OnPullerDChanged(value); } } } protected Int32 _winderp; /// /// Gets or sets the rmlbase winder p. /// [Column("WINDER_P")] public Int32 WinderP { get { return _winderp; } set { if (_winderp != value) { _winderp = value; OnWinderPChanged(value); } } } protected Int32 _winderi; /// /// Gets or sets the rmlbase winder i. /// [Column("WINDER_I")] public Int32 WinderI { get { return _winderi; } set { if (_winderi != value) { _winderi = value; OnWinderIChanged(value); } } } protected Int32 _winderd; /// /// Gets or sets the rmlbase winder d. /// [Column("WINDER_D")] public Int32 WinderD { get { return _winderd; } set { if (_winderd != value) { _winderd = value; OnWinderDChanged(value); } } } protected Boolean _bypassrockers; /// /// Gets or sets the rmlbase bypass rockers. /// [Column("BYPASS_ROCKERS")] public Boolean BypassRockers { get { return _bypassrockers; } set { if (_bypassrockers != value) { _bypassrockers = value; OnBypassRockersChanged(value); } } } protected Int32 _cleanerflow; /// /// Gets or sets the rmlbase cleaner flow. /// [Column("CLEANER_FLOW")] public Int32 CleanerFlow { get { return _cleanerflow; } set { if (_cleanerflow != value) { _cleanerflow = value; OnCleanerFlowChanged(value); } } } protected Double _archeadcleaningmotorspeed; /// /// Gets or sets the rmlbase arc head cleaning motor speed. /// [Column("ARC_HEAD_CLEANING_MOTOR_SPEED")] public Double ArcHeadCleaningMotorSpeed { get { return _archeadcleaningmotorspeed; } set { if (_archeadcleaningmotorspeed != value) { _archeadcleaningmotorspeed = value; OnArcHeadCleaningMotorSpeedChanged(value); } } } protected Double _vmax; /// /// Gets or sets the rmlbase v max. /// [Column("V_MAX")] public Double VMax { get { return _vmax; } set { if (_vmax != value) { _vmax = value; OnVMaxChanged(value); } } } protected String _btsrapplicationtypeguid; /// /// Gets or sets the rmlbase btsr application type guid. /// [Column("BTSR_APPLICATION_TYPE_GUID")] [ForeignKey("BtsrApplicationType")] public String BtsrApplicationTypeGuid { get { return _btsrapplicationtypeguid; } set { if (_btsrapplicationtypeguid != value) { _btsrapplicationtypeguid = value; } } } protected String _btsryarntypeguid; /// /// Gets or sets the rmlbase btsr yarn type guid. /// [Column("BTSR_YARN_TYPE_GUID")] [ForeignKey("BtsrYarnType")] public String BtsrYarnTypeGuid { get { return _btsryarntypeguid; } set { if (_btsryarntypeguid != value) { _btsryarntypeguid = value; } } } protected Double _btsrtensionerror; /// /// Gets or sets the rmlbase btsr tension error. /// [Column("BTSR_TENSION_ERROR")] public Double BtsrTensionError { get { return _btsrtensionerror; } set { if (_btsrtensionerror != value) { _btsrtensionerror = value; OnBtsrTensionErrorChanged(value); } } } protected Double _defaultliquidfactor; /// /// Gets or sets the rmlbase default liquid factor. /// [Column("DEFAULT_LIQUID_FACTOR")] public Double DefaultLiquidFactor { get { return _defaultliquidfactor; } set { if (_defaultliquidfactor != value) { _defaultliquidfactor = value; OnDefaultLiquidFactorChanged(value); } } } protected Nullable _machinetype; /// /// Gets or sets the rmlbase machine type. /// [Column("MACHINE_TYPE")] public Nullable MachineType { get { return _machinetype; } set { if (_machinetype != value) { _machinetype = value; OnMachineTypeChanged(value); } } } protected String _createdbyuserguid; /// /// Gets or sets the rmlbase created by user guid. /// [Column("CREATED_BY_USER_GUID")] public String CreatedByUserGuid { get { return _createdbyuserguid; } set { if (_createdbyuserguid != value) { _createdbyuserguid = value; } } } protected String _createdbyorganizationguid; /// /// Gets or sets the rmlbase created by organization guid. /// [Column("CREATED_BY_ORGANIZATION_GUID")] public String CreatedByOrganizationGuid { get { return _createdbyorganizationguid; } set { if (_createdbyorganizationguid != value) { _createdbyorganizationguid = value; } } } protected BtsrApplicationType _btsrapplicationtype; /// /// Gets or sets the rmlbase btsr application types. /// [XmlIgnore] [JsonIgnore] public virtual BtsrApplicationType BtsrApplicationType { get { return _btsrapplicationtype; } set { if (_btsrapplicationtype != value) { _btsrapplicationtype = value; if (BtsrApplicationType != null) { BtsrApplicationTypeGuid = BtsrApplicationType.Guid; } OnBtsrApplicationTypeChanged(value); } } } protected BtsrYarnType _btsryarntype; /// /// Gets or sets the rmlbase btsr yarn types. /// [XmlIgnore] [JsonIgnore] public virtual BtsrYarnType BtsrYarnType { get { return _btsryarntype; } set { if (_btsryarntype != value) { _btsryarntype = value; if (BtsrYarnType != null) { BtsrYarnTypeGuid = BtsrYarnType.Guid; } OnBtsrYarnTypeChanged(value); } } } protected SynchronizedObservableCollection _cats; /// /// Gets or sets the rmlbase cats. /// public virtual SynchronizedObservableCollection Cats { get { return _cats; } set { if (_cats != value) { _cats = value; OnCatsChanged(value); } } } protected Cct _cct; /// /// Gets or sets the rmlbase cct. /// [XmlIgnore] [JsonIgnore] public virtual Cct Cct { get { return _cct; } set { if (_cct != value) { _cct = value; if (Cct != null) { CctGuid = Cct.Guid; } OnCctChanged(value); } } } protected SynchronizedObservableCollection _colorcatalogsitemsrecipes; /// /// Gets or sets the rmlbase color catalogs items recipes. /// public virtual SynchronizedObservableCollection ColorCatalogsItemsRecipes { get { return _colorcatalogsitemsrecipes; } set { if (_colorcatalogsitemsrecipes != value) { _colorcatalogsitemsrecipes = value; OnColorCatalogsItemsRecipesChanged(value); } } } protected FiberShape _fibershape; /// /// Gets or sets the rmlbase fiber shapes. /// [XmlIgnore] [JsonIgnore] public virtual FiberShape FiberShape { get { return _fibershape; } set { if (_fibershape != value) { _fibershape = value; if (FiberShape != null) { FiberShapeGuid = FiberShape.Guid; } OnFiberShapeChanged(value); } } } protected FiberSynth _fibersynth; /// /// Gets or sets the rmlbase fiber synths. /// [XmlIgnore] [JsonIgnore] public virtual FiberSynth FiberSynth { get { return _fibersynth; } set { if (_fibersynth != value) { _fibersynth = value; if (FiberSynth != null) { FiberSynthGuid = FiberSynth.Guid; } OnFiberSynthChanged(value); } } } protected Gbd _gbd; /// /// Gets or sets the rmlbase gbd. /// [XmlIgnore] [JsonIgnore] public virtual Gbd Gbd { get { return _gbd; } set { if (_gbd != value) { _gbd = value; if (Gbd != null) { GbdGuid = Gbd.Guid; } OnGbdChanged(value); } } } protected SynchronizedObservableCollection _jobs; /// /// Gets or sets the rmlbase jobs. /// public virtual SynchronizedObservableCollection Jobs { get { return _jobs; } set { if (_jobs != value) { _jobs = value; OnJobsChanged(value); } } } protected LinearMassDensityUnit _linearmassdensityunit; /// /// Gets or sets the rmlbase linear mass density units. /// [XmlIgnore] [JsonIgnore] public virtual LinearMassDensityUnit LinearMassDensityUnit { get { return _linearmassdensityunit; } set { if (_linearmassdensityunit != value) { _linearmassdensityunit = value; if (LinearMassDensityUnit != null) { LinearMassDensityUnitGuid = LinearMassDensityUnit.Guid; } OnLinearMassDensityUnitChanged(value); } } } protected SynchronizedObservableCollection _liquidtypesrmls; /// /// Gets or sets the rmlbase liquid types rmls. /// public virtual SynchronizedObservableCollection LiquidTypesRmls { get { return _liquidtypesrmls; } set { if (_liquidtypesrmls != value) { _liquidtypesrmls = value; OnLiquidTypesRmlsChanged(value); } } } protected Lub _lub; /// /// Gets or sets the rmlbase lub. /// [XmlIgnore] [JsonIgnore] public virtual Lub Lub { get { return _lub; } set { if (_lub != value) { _lub = value; if (Lub != null) { LubGuid = Lub.Guid; } OnLubChanged(value); } } } protected MediaCondition _mediacondition; /// /// Gets or sets the rmlbase media conditions. /// [XmlIgnore] [JsonIgnore] public virtual MediaCondition MediaCondition { get { return _mediacondition; } set { if (_mediacondition != value) { _mediacondition = value; if (MediaCondition != null) { MediaConditionGuid = MediaCondition.Guid; } OnMediaConditionChanged(value); } } } protected MediaMaterial _mediamaterial; /// /// Gets or sets the rmlbase media materials. /// [XmlIgnore] [JsonIgnore] public virtual MediaMaterial MediaMaterial { get { return _mediamaterial; } set { if (_mediamaterial != value) { _mediamaterial = value; if (MediaMaterial != null) { MediaMaterialGuid = MediaMaterial.Guid; } OnMediaMaterialChanged(value); } } } protected MediaPurpos _mediapurpose; /// /// Gets or sets the rmlbase media purposes. /// [XmlIgnore] [JsonIgnore] public virtual MediaPurpos MediaPurpose { get { return _mediapurpose; } set { if (_mediapurpose != value) { _mediapurpose = value; if (MediaPurpose != null) { MediaPurposeGuid = MediaPurpose.Guid; } OnMediaPurposeChanged(value); } } } protected SynchronizedObservableCollection _processparameterstablesgroups; /// /// Gets or sets the rmlbase process parameters tables groups. /// public virtual SynchronizedObservableCollection ProcessParametersTablesGroups { get { return _processparameterstablesgroups; } set { if (_processparameterstablesgroups != value) { _processparameterstablesgroups = value; OnProcessParametersTablesGroupsChanged(value); } } } 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; /// /// Gets or sets the rmlbase rmls spools. /// public virtual SynchronizedObservableCollection RmlsSpools { get { return _rmlsspools; } set { if (_rmlsspools != value) { _rmlsspools = value; OnRmlsSpoolsChanged(value); } } } protected SynchronizedObservableCollection _sitesrmls; /// /// Gets or sets the rmlbase sites rmls. /// public virtual SynchronizedObservableCollection SitesRmls { get { return _sitesrmls; } set { if (_sitesrmls != value) { _sitesrmls = value; OnSitesRmlsChanged(value); } } } /// /// Called when the Name has changed. /// protected virtual void OnNameChanged(String name) { NameChanged?.Invoke(this, name); RaisePropertyChanged(nameof(Name)); } /// /// Called when the DisplayName has changed. /// protected virtual void OnDisplayNameChanged(String displayname) { DisplayNameChanged?.Invoke(this, displayname); RaisePropertyChanged(nameof(DisplayName)); } /// /// Called when the Manufacturer has changed. /// protected virtual void OnManufacturerChanged(String manufacturer) { ManufacturerChanged?.Invoke(this, manufacturer); RaisePropertyChanged(nameof(Manufacturer)); } /// /// Called when the Code has changed. /// protected virtual void OnCodeChanged(Int32 code) { CodeChanged?.Invoke(this, code); RaisePropertyChanged(nameof(Code)); } /// /// 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 FiberSize has changed. /// protected virtual void OnFiberSizeChanged(Double fibersize) { FiberSizeChanged?.Invoke(this, fibersize); RaisePropertyChanged(nameof(FiberSize)); } /// /// Called when the NumberOfFibers has changed. /// protected virtual void OnNumberOfFibersChanged(Int32 numberoffibers) { NumberOfFibersChanged?.Invoke(this, numberoffibers); RaisePropertyChanged(nameof(NumberOfFibers)); } /// /// Called when the PliesPerFiber has changed. /// protected virtual void OnPliesPerFiberChanged(Int32 pliesperfiber) { PliesPerFiberChanged?.Invoke(this, pliesperfiber); RaisePropertyChanged(nameof(PliesPerFiber)); } /// /// Called when the PliesPerThread has changed. /// protected virtual void OnPliesPerThreadChanged(Int32 pliesperthread) { PliesPerThreadChanged?.Invoke(this, pliesperthread); RaisePropertyChanged(nameof(PliesPerThread)); } /// /// Called when the Twisted has changed. /// protected virtual void OnTwistedChanged(Boolean twisted) { TwistedChanged?.Invoke(this, twisted); RaisePropertyChanged(nameof(Twisted)); } /// /// Called when the AirEntanglement has changed. /// protected virtual void OnAirEntanglementChanged(Boolean airentanglement) { AirEntanglementChanged?.Invoke(this, airentanglement); RaisePropertyChanged(nameof(AirEntanglement)); } /// /// Called when the Lubricant has changed. /// protected virtual void OnLubricantChanged(Boolean lubricant) { LubricantChanged?.Invoke(this, lubricant); RaisePropertyChanged(nameof(Lubricant)); } /// /// Called when the TensileStrength has changed. /// protected virtual void OnTensileStrengthChanged(Double tensilestrength) { TensileStrengthChanged?.Invoke(this, tensilestrength); RaisePropertyChanged(nameof(TensileStrength)); } /// /// Called when the ElongationAtBreakPercentage has changed. /// protected virtual void OnElongationAtBreakPercentageChanged(Double elongationatbreakpercentage) { ElongationAtBreakPercentageChanged?.Invoke(this, elongationatbreakpercentage); RaisePropertyChanged(nameof(ElongationAtBreakPercentage)); } /// /// Called when the EstimatedThreadDiameter has changed. /// protected virtual void OnEstimatedThreadDiameterChanged(Double estimatedthreaddiameter) { EstimatedThreadDiameterChanged?.Invoke(this, estimatedthreaddiameter); RaisePropertyChanged(nameof(EstimatedThreadDiameter)); } /// /// Called when the Rank has changed. /// protected virtual void OnRankChanged(Int32 rank) { RankChanged?.Invoke(this, rank); RaisePropertyChanged(nameof(Rank)); } /// /// Called when the Thumbnail has changed. /// protected virtual void OnThumbnailChanged(Byte[] thumbnail) { ThumbnailChanged?.Invoke(this, thumbnail); RaisePropertyChanged(nameof(Thumbnail)); } /// /// Called when the ColorConversionVersion has changed. /// protected virtual void OnColorConversionVersionChanged(Int32 colorconversionversion) { ColorConversionVersionChanged?.Invoke(this, colorconversionversion); RaisePropertyChanged(nameof(ColorConversionVersion)); } /// /// Called when the UseColorLibGradients has changed. /// protected virtual void OnUseColorLibGradientsChanged(Boolean usecolorlibgradients) { UseColorLibGradientsChanged?.Invoke(this, usecolorlibgradients); RaisePropertyChanged(nameof(UseColorLibGradients)); } /// /// Called when the UseLightInks has changed. /// protected virtual void OnUseLightInksChanged(Boolean uselightinks) { UseLightInksChanged?.Invoke(this, uselightinks); RaisePropertyChanged(nameof(UseLightInks)); } /// /// Called when the UseLubricantTransform has changed. /// protected virtual void OnUseLubricantTransformChanged(Boolean uselubricanttransform) { UseLubricantTransformChanged?.Invoke(this, uselubricanttransform); RaisePropertyChanged(nameof(UseLubricantTransform)); } /// /// Called when the HeadType has changed. /// protected virtual void OnHeadTypeChanged(Int32 headtype) { HeadTypeChanged?.Invoke(this, headtype); RaisePropertyChanged(nameof(HeadType)); } /// /// Called when the QualificationLevel has changed. /// protected virtual void OnQualificationLevelChanged(Int32 qualificationlevel) { QualificationLevelChanged?.Invoke(this, qualificationlevel); RaisePropertyChanged(nameof(QualificationLevel)); } /// /// Called when the QualificationDate has changed. /// protected virtual void OnQualificationDateChanged(Nullable qualificationdate) { QualificationDateChanged?.Invoke(this, qualificationdate); RaisePropertyChanged(nameof(QualificationDate)); } /// /// Called when the SpoolsCalibrationsString has changed. /// protected virtual void OnSpoolsCalibrationsStringChanged(String spoolscalibrationsstring) { SpoolsCalibrationsStringChanged?.Invoke(this, spoolscalibrationsstring); RaisePropertyChanged(nameof(SpoolsCalibrationsString)); } /// /// Called when the FeederP has changed. /// protected virtual void OnFeederPChanged(Int32 feederp) { FeederPChanged?.Invoke(this, feederp); RaisePropertyChanged(nameof(FeederP)); } /// /// Called when the FeederI has changed. /// protected virtual void OnFeederIChanged(Int32 feederi) { FeederIChanged?.Invoke(this, feederi); RaisePropertyChanged(nameof(FeederI)); } /// /// Called when the FeederD has changed. /// protected virtual void OnFeederDChanged(Int32 feederd) { FeederDChanged?.Invoke(this, feederd); RaisePropertyChanged(nameof(FeederD)); } /// /// Called when the PullerP has changed. /// protected virtual void OnPullerPChanged(Int32 pullerp) { PullerPChanged?.Invoke(this, pullerp); RaisePropertyChanged(nameof(PullerP)); } /// /// Called when the PullerI has changed. /// protected virtual void OnPullerIChanged(Int32 pulleri) { PullerIChanged?.Invoke(this, pulleri); RaisePropertyChanged(nameof(PullerI)); } /// /// Called when the PullerD has changed. /// protected virtual void OnPullerDChanged(Int32 pullerd) { PullerDChanged?.Invoke(this, pullerd); RaisePropertyChanged(nameof(PullerD)); } /// /// Called when the WinderP has changed. /// protected virtual void OnWinderPChanged(Int32 winderp) { WinderPChanged?.Invoke(this, winderp); RaisePropertyChanged(nameof(WinderP)); } /// /// Called when the WinderI has changed. /// protected virtual void OnWinderIChanged(Int32 winderi) { WinderIChanged?.Invoke(this, winderi); RaisePropertyChanged(nameof(WinderI)); } /// /// Called when the WinderD has changed. /// protected virtual void OnWinderDChanged(Int32 winderd) { WinderDChanged?.Invoke(this, winderd); RaisePropertyChanged(nameof(WinderD)); } /// /// Called when the BypassRockers has changed. /// protected virtual void OnBypassRockersChanged(Boolean bypassrockers) { BypassRockersChanged?.Invoke(this, bypassrockers); RaisePropertyChanged(nameof(BypassRockers)); } /// /// Called when the CleanerFlow has changed. /// protected virtual void OnCleanerFlowChanged(Int32 cleanerflow) { CleanerFlowChanged?.Invoke(this, cleanerflow); RaisePropertyChanged(nameof(CleanerFlow)); } /// /// Called when the ArcHeadCleaningMotorSpeed has changed. /// protected virtual void OnArcHeadCleaningMotorSpeedChanged(Double archeadcleaningmotorspeed) { ArcHeadCleaningMotorSpeedChanged?.Invoke(this, archeadcleaningmotorspeed); RaisePropertyChanged(nameof(ArcHeadCleaningMotorSpeed)); } /// /// Called when the VMax has changed. /// protected virtual void OnVMaxChanged(Double vmax) { VMaxChanged?.Invoke(this, vmax); RaisePropertyChanged(nameof(VMax)); } /// /// Called when the BtsrTensionError has changed. /// protected virtual void OnBtsrTensionErrorChanged(Double btsrtensionerror) { BtsrTensionErrorChanged?.Invoke(this, btsrtensionerror); RaisePropertyChanged(nameof(BtsrTensionError)); } /// /// Called when the DefaultLiquidFactor has changed. /// protected virtual void OnDefaultLiquidFactorChanged(Double defaultliquidfactor) { DefaultLiquidFactorChanged?.Invoke(this, defaultliquidfactor); RaisePropertyChanged(nameof(DefaultLiquidFactor)); } /// /// Called when the MachineType has changed. /// protected virtual void OnMachineTypeChanged(Nullable machinetype) { MachineTypeChanged?.Invoke(this, machinetype); RaisePropertyChanged(nameof(MachineType)); } /// /// Called when the BtsrApplicationType has changed. /// protected virtual void OnBtsrApplicationTypeChanged(BtsrApplicationType btsrapplicationtype) { BtsrApplicationTypeChanged?.Invoke(this, btsrapplicationtype); RaisePropertyChanged(nameof(BtsrApplicationType)); } /// /// Called when the BtsrYarnType has changed. /// protected virtual void OnBtsrYarnTypeChanged(BtsrYarnType btsryarntype) { BtsrYarnTypeChanged?.Invoke(this, btsryarntype); RaisePropertyChanged(nameof(BtsrYarnType)); } /// /// Called when the Cats has changed. /// protected virtual void OnCatsChanged(SynchronizedObservableCollection cats) { CatsChanged?.Invoke(this, cats); RaisePropertyChanged(nameof(Cats)); } /// /// Called when the Cct has changed. /// protected virtual void OnCctChanged(Cct cct) { CctChanged?.Invoke(this, cct); RaisePropertyChanged(nameof(Cct)); } /// /// Called when the ColorCatalogsItemsRecipes has changed. /// protected virtual void OnColorCatalogsItemsRecipesChanged(SynchronizedObservableCollection colorcatalogsitemsrecipes) { ColorCatalogsItemsRecipesChanged?.Invoke(this, colorcatalogsitemsrecipes); RaisePropertyChanged(nameof(ColorCatalogsItemsRecipes)); } /// /// Called when the FiberShape has changed. /// protected virtual void OnFiberShapeChanged(FiberShape fibershape) { FiberShapeChanged?.Invoke(this, fibershape); RaisePropertyChanged(nameof(FiberShape)); } /// /// Called when the FiberSynth has changed. /// protected virtual void OnFiberSynthChanged(FiberSynth fibersynth) { FiberSynthChanged?.Invoke(this, fibersynth); RaisePropertyChanged(nameof(FiberSynth)); } /// /// Called when the Gbd has changed. /// protected virtual void OnGbdChanged(Gbd gbd) { GbdChanged?.Invoke(this, gbd); RaisePropertyChanged(nameof(Gbd)); } /// /// Called when the Jobs has changed. /// protected virtual void OnJobsChanged(SynchronizedObservableCollection jobs) { JobsChanged?.Invoke(this, jobs); RaisePropertyChanged(nameof(Jobs)); } /// /// Called when the LinearMassDensityUnit has changed. /// protected virtual void OnLinearMassDensityUnitChanged(LinearMassDensityUnit linearmassdensityunit) { LinearMassDensityUnitChanged?.Invoke(this, linearmassdensityunit); RaisePropertyChanged(nameof(LinearMassDensityUnit)); } /// /// Called when the LiquidTypesRmls has changed. /// protected virtual void OnLiquidTypesRmlsChanged(SynchronizedObservableCollection liquidtypesrmls) { LiquidTypesRmlsChanged?.Invoke(this, liquidtypesrmls); RaisePropertyChanged(nameof(LiquidTypesRmls)); } /// /// Called when the Lub has changed. /// protected virtual void OnLubChanged(Lub lub) { LubChanged?.Invoke(this, lub); RaisePropertyChanged(nameof(Lub)); } /// /// Called when the MediaCondition has changed. /// protected virtual void OnMediaConditionChanged(MediaCondition mediacondition) { MediaConditionChanged?.Invoke(this, mediacondition); RaisePropertyChanged(nameof(MediaCondition)); } /// /// Called when the MediaMaterial has changed. /// protected virtual void OnMediaMaterialChanged(MediaMaterial mediamaterial) { MediaMaterialChanged?.Invoke(this, mediamaterial); RaisePropertyChanged(nameof(MediaMaterial)); } /// /// Called when the MediaPurpose has changed. /// protected virtual void OnMediaPurposeChanged(MediaPurpos mediapurpose) { MediaPurposeChanged?.Invoke(this, mediapurpose); RaisePropertyChanged(nameof(MediaPurpose)); } /// /// Called when the ProcessParametersTablesGroups has changed. /// protected virtual void OnProcessParametersTablesGroupsChanged(SynchronizedObservableCollection processparameterstablesgroups) { ProcessParametersTablesGroupsChanged?.Invoke(this, processparameterstablesgroups); 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. /// protected virtual void OnRmlsSpoolsChanged(SynchronizedObservableCollection rmlsspools) { RmlsSpoolsChanged?.Invoke(this, rmlsspools); RaisePropertyChanged(nameof(RmlsSpools)); } /// /// Called when the SitesRmls has changed. /// protected virtual void OnSitesRmlsChanged(SynchronizedObservableCollection sitesrmls) { SitesRmlsChanged?.Invoke(this, sitesrmls); RaisePropertyChanged(nameof(SitesRmls)); } /// /// Initializes a new instance of the class. /// public RmlBase() : base() { Cats = new SynchronizedObservableCollection(); ColorCatalogsItemsRecipes = new SynchronizedObservableCollection(); Jobs = new SynchronizedObservableCollection(); LiquidTypesRmls = new SynchronizedObservableCollection(); ProcessParametersTablesGroups = new SynchronizedObservableCollection(); RmlsExtensions = new SynchronizedObservableCollection(); RmlsSpools = new SynchronizedObservableCollection(); SitesRmls = new SynchronizedObservableCollection(); } } }