//------------------------------------------------------------------------------
//
// 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_SPOOLS")]
public abstract class RmlsSpoolBase : ObservableEntity
{
public event EventHandler> RotationsPerPassageChanged;
public event EventHandler> LengthChanged;
public event EventHandler> BackingRateChanged;
public event EventHandler> BottomBackingRateChanged;
public event EventHandler> StartOffsetPulsesChanged;
public event EventHandler> SegmentOffsetPulsesChanged;
public event EventHandler> BtsrSpoolTensionChanged;
public event EventHandler RmlChanged;
public event EventHandler SpoolTypeChanged;
protected String _spooltypeguid;
///
/// Gets or sets the rmlsspoolbase spool type guid.
///
[Column("SPOOL_TYPE_GUID")]
[ForeignKey("SpoolType")]
public String SpoolTypeGuid
{
get
{
return _spooltypeguid;
}
set
{
if (_spooltypeguid != value)
{
_spooltypeguid = value;
}
}
}
protected String _rmlguid;
///
/// Gets or sets the rmlsspoolbase rml guid.
///
[Column("RML_GUID")]
[ForeignKey("Rml")]
public String RmlGuid
{
get
{
return _rmlguid;
}
set
{
if (_rmlguid != value)
{
_rmlguid = value;
}
}
}
protected Nullable _rotationsperpassage;
///
/// Gets or sets the rmlsspoolbase rotations per passage.
///
[Column("ROTATIONS_PER_PASSAGE")]
public Nullable RotationsPerPassage
{
get
{
return _rotationsperpassage;
}
set
{
if (_rotationsperpassage != value)
{
_rotationsperpassage = value;
OnRotationsPerPassageChanged(value);
}
}
}
protected Nullable _length;
///
/// Gets or sets the rmlsspoolbase length.
///
[Column("LENGTH")]
public Nullable Length
{
get
{
return _length;
}
set
{
if (_length != value)
{
_length = value;
OnLengthChanged(value);
}
}
}
protected Nullable _backingrate;
///
/// Gets or sets the rmlsspoolbase backing rate.
///
[Column("BACKING_RATE")]
public Nullable BackingRate
{
get
{
return _backingrate;
}
set
{
if (_backingrate != value)
{
_backingrate = value;
OnBackingRateChanged(value);
}
}
}
protected Nullable _bottombackingrate;
///
/// Gets or sets the rmlsspoolbase bottom backing rate.
///
[Column("BOTTOM_BACKING_RATE")]
public Nullable BottomBackingRate
{
get
{
return _bottombackingrate;
}
set
{
if (_bottombackingrate != value)
{
_bottombackingrate = value;
OnBottomBackingRateChanged(value);
}
}
}
protected Nullable _startoffsetpulses;
///
/// Gets or sets the rmlsspoolbase start offset pulses.
///
[Column("START_OFFSET_PULSES")]
public Nullable StartOffsetPulses
{
get
{
return _startoffsetpulses;
}
set
{
if (_startoffsetpulses != value)
{
_startoffsetpulses = value;
OnStartOffsetPulsesChanged(value);
}
}
}
protected Nullable _segmentoffsetpulses;
///
/// Gets or sets the rmlsspoolbase segment offset pulses.
///
[Column("SEGMENT_OFFSET_PULSES")]
public Nullable SegmentOffsetPulses
{
get
{
return _segmentoffsetpulses;
}
set
{
if (_segmentoffsetpulses != value)
{
_segmentoffsetpulses = value;
OnSegmentOffsetPulsesChanged(value);
}
}
}
protected Nullable _btsrspooltension;
///
/// Gets or sets the rmlsspoolbase btsr spool tension.
///
[Column("BTSR_SPOOL_TENSION")]
public Nullable BtsrSpoolTension
{
get
{
return _btsrspooltension;
}
set
{
if (_btsrspooltension != value)
{
_btsrspooltension = value;
OnBtsrSpoolTensionChanged(value);
}
}
}
protected Rml _rml;
///
/// Gets or sets the rmlsspoolbase 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 SpoolType _spooltype;
///
/// Gets or sets the rmlsspoolbase spool types.
///
[XmlIgnore]
[JsonIgnore]
public virtual SpoolType SpoolType
{
get
{
return _spooltype;
}
set
{
if (_spooltype != value)
{
_spooltype = value;
if (SpoolType != null)
{
SpoolTypeGuid = SpoolType.Guid;
}
OnSpoolTypeChanged(value);
}
}
}
///
/// Called when the RotationsPerPassage has changed.
///
protected virtual void OnRotationsPerPassageChanged(Nullable rotationsperpassage)
{
RotationsPerPassageChanged?.Invoke(this, rotationsperpassage);
RaisePropertyChanged(nameof(RotationsPerPassage));
}
///
/// Called when the Length has changed.
///
protected virtual void OnLengthChanged(Nullable length)
{
LengthChanged?.Invoke(this, length);
RaisePropertyChanged(nameof(Length));
}
///
/// Called when the BackingRate has changed.
///
protected virtual void OnBackingRateChanged(Nullable backingrate)
{
BackingRateChanged?.Invoke(this, backingrate);
RaisePropertyChanged(nameof(BackingRate));
}
///
/// Called when the BottomBackingRate has changed.
///
protected virtual void OnBottomBackingRateChanged(Nullable bottombackingrate)
{
BottomBackingRateChanged?.Invoke(this, bottombackingrate);
RaisePropertyChanged(nameof(BottomBackingRate));
}
///
/// Called when the StartOffsetPulses has changed.
///
protected virtual void OnStartOffsetPulsesChanged(Nullable startoffsetpulses)
{
StartOffsetPulsesChanged?.Invoke(this, startoffsetpulses);
RaisePropertyChanged(nameof(StartOffsetPulses));
}
///
/// Called when the SegmentOffsetPulses has changed.
///
protected virtual void OnSegmentOffsetPulsesChanged(Nullable segmentoffsetpulses)
{
SegmentOffsetPulsesChanged?.Invoke(this, segmentoffsetpulses);
RaisePropertyChanged(nameof(SegmentOffsetPulses));
}
///
/// Called when the BtsrSpoolTension has changed.
///
protected virtual void OnBtsrSpoolTensionChanged(Nullable btsrspooltension)
{
BtsrSpoolTensionChanged?.Invoke(this, btsrspooltension);
RaisePropertyChanged(nameof(BtsrSpoolTension));
}
///
/// Called when the Rml has changed.
///
protected virtual void OnRmlChanged(Rml rml)
{
RmlChanged?.Invoke(this, rml);
RaisePropertyChanged(nameof(Rml));
}
///
/// Called when the SpoolType has changed.
///
protected virtual void OnSpoolTypeChanged(SpoolType spooltype)
{
SpoolTypeChanged?.Invoke(this, spooltype);
RaisePropertyChanged(nameof(SpoolType));
}
///
/// Initializes a new instance of the class.
///
public RmlsSpoolBase() : base()
{
}
}
}