//------------------------------------------------------------------------------ // // 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; namespace Tango.BL.Entities { [Table("MACHINES")] public abstract class MachineBase : ObservableEntity { public event EventHandler SerialNumberChanged; public event EventHandler NameChanged; public event EventHandler ProductionDateChanged; public event EventHandler TargetJobTypesChanged; public event EventHandler TargetColorSpaceCodesChanged; public event EventHandler DefaultSegmentLengthChanged; public event EventHandler OsKeyChanged; public event EventHandler AutoLoginChanged; public event EventHandler AutoCheckForUpdatesChanged; public event EventHandler SetupActivationChanged; public event EventHandler SetupRemoteAssistanceChanged; public event EventHandler SetupUwfChanged; public event EventHandler SetupFirmwareChanged; public event EventHandler SetupFpgaChanged; public event EventHandler IsDemoChanged; public event EventHandler SuspendVersionUpdateChanged; public event EventHandler ForceVersionUpdateChanged; public event EventHandler PerformSchemaUpdateOnDataUpdateChanged; public event EventHandler DeviceComPortChanged; public event EventHandler IsDeviceRegisteredChanged; public event EventHandler DeviceIdChanged; public event EventHandler DeviceNameChanged; public event EventHandler> CatsChanged; public event EventHandler DefaultColorSpaceChanged; public event EventHandler ConfigurationChanged; public event EventHandler> JobsChanged; public event EventHandler MachineVersionChanged; public event EventHandler> MachinesEventsChanged; public event EventHandler OrganizationChanged; public event EventHandler DefaultRmlChanged; public event EventHandler DefaultSpoolTypeChanged; public event EventHandler> SpoolsChanged; protected String _serialnumber; /// /// Gets or sets the machinebase serial number. /// [Column("SERIAL_NUMBER")] public String SerialNumber { get { return _serialnumber; } set { if (_serialnumber != value) { _serialnumber = value; OnSerialNumberChanged(value); } } } protected String _name; /// /// Gets or sets the machinebase name. /// [Column("NAME")] public String Name { get { return _name; } set { if (_name != value) { _name = value; OnNameChanged(value); } } } protected DateTime _productiondate; /// /// Gets or sets the machinebase production date. /// [Column("PRODUCTION_DATE")] public DateTime ProductionDate { get { return _productiondate; } set { if (_productiondate != value) { _productiondate = value; OnProductionDateChanged(value); } } } protected String _organizationguid; /// /// Gets or sets the machinebase organization guid. /// [Column("ORGANIZATION_GUID")] [ForeignKey("Organization")] public String OrganizationGuid { get { return _organizationguid; } set { if (_organizationguid != value) { _organizationguid = value; } } } protected String _machineversionguid; /// /// Gets or sets the machinebase machine version guid. /// [Column("MACHINE_VERSION_GUID")] [ForeignKey("MachineVersion")] public String MachineVersionGuid { get { return _machineversionguid; } set { if (_machineversionguid != value) { _machineversionguid = value; } } } protected String _configurationguid; /// /// Gets or sets the machinebase configuration guid. /// [Column("CONFIGURATION_GUID")] [ForeignKey("Configuration")] public String ConfigurationGuid { get { return _configurationguid; } set { if (_configurationguid != value) { _configurationguid = value; } } } protected String _defaultrmlguid; /// /// Gets or sets the machinebase default rml guid. /// [Column("DEFAULT_RML_GUID")] [ForeignKey("DefaultRml")] public String DefaultRmlGuid { get { return _defaultrmlguid; } set { if (_defaultrmlguid != value) { _defaultrmlguid = value; } } } protected String _loadedrmlguid; /// /// Gets or sets the machinebase loaded rml guid. /// [Column("LOADED_RML_GUID")] public String LoadedRmlGuid { get { return _loadedrmlguid; } set { if (_loadedrmlguid != value) { _loadedrmlguid = value; } } } protected String _targetjobtypes; /// /// Gets or sets the machinebase target job types. /// [Column("TARGET_JOB_TYPES")] public String TargetJobTypes { get { return _targetjobtypes; } set { if (_targetjobtypes != value) { _targetjobtypes = value; OnTargetJobTypesChanged(value); } } } protected String _targetcolorspacecodes; /// /// Gets or sets the machinebase target color space codes. /// [Column("TARGET_COLOR_SPACE_CODES")] public String TargetColorSpaceCodes { get { return _targetcolorspacecodes; } set { if (_targetcolorspacecodes != value) { _targetcolorspacecodes = value; OnTargetColorSpaceCodesChanged(value); } } } protected String _defaultcolorspaceguid; /// /// Gets or sets the machinebase default color space guid. /// [Column("DEFAULT_COLOR_SPACE_GUID")] [ForeignKey("DefaultColorSpace")] public String DefaultColorSpaceGuid { get { return _defaultcolorspaceguid; } set { if (_defaultcolorspaceguid != value) { _defaultcolorspaceguid = value; } } } protected Double _defaultsegmentlength; /// /// Gets or sets the machinebase default segment length. /// [Column("DEFAULT_SEGMENT_LENGTH")] public Double DefaultSegmentLength { get { return _defaultsegmentlength; } set { if (_defaultsegmentlength != value) { _defaultsegmentlength = value; OnDefaultSegmentLengthChanged(value); } } } protected String _defaultspooltypeguid; /// /// Gets or sets the machinebase default spool type guid. /// [Column("DEFAULT_SPOOL_TYPE_GUID")] [ForeignKey("DefaultSpoolType")] public String DefaultSpoolTypeGuid { get { return _defaultspooltypeguid; } set { if (_defaultspooltypeguid != value) { _defaultspooltypeguid = value; } } } protected String _oskey; /// /// Gets or sets the machinebase os key. /// [Column("OS_KEY")] public String OsKey { get { return _oskey; } set { if (_oskey != value) { _oskey = value; OnOsKeyChanged(value); } } } protected Boolean _autologin; /// /// Gets or sets the machinebase auto login. /// [Column("AUTO_LOGIN")] public Boolean AutoLogin { get { return _autologin; } set { if (_autologin != value) { _autologin = value; OnAutoLoginChanged(value); } } } protected Boolean _autocheckforupdates; /// /// Gets or sets the machinebase auto check for updates. /// [Column("AUTO_CHECK_FOR_UPDATES")] public Boolean AutoCheckForUpdates { get { return _autocheckforupdates; } set { if (_autocheckforupdates != value) { _autocheckforupdates = value; OnAutoCheckForUpdatesChanged(value); } } } protected Boolean _setupactivation; /// /// Gets or sets the machinebase setup activation. /// [Column("SETUP_ACTIVATION")] public Boolean SetupActivation { get { return _setupactivation; } set { if (_setupactivation != value) { _setupactivation = value; OnSetupActivationChanged(value); } } } protected Boolean _setupremoteassistance; /// /// Gets or sets the machinebase setup remote assistance. /// [Column("SETUP_REMOTE_ASSISTANCE")] public Boolean SetupRemoteAssistance { get { return _setupremoteassistance; } set { if (_setupremoteassistance != value) { _setupremoteassistance = value; OnSetupRemoteAssistanceChanged(value); } } } protected Boolean _setupuwf; /// /// Gets or sets the machinebase setup uwf. /// [Column("SETUP_UWF")] public Boolean SetupUwf { get { return _setupuwf; } set { if (_setupuwf != value) { _setupuwf = value; OnSetupUwfChanged(value); } } } protected Boolean _setupfirmware; /// /// Gets or sets the machinebase setup firmware. /// [Column("SETUP_FIRMWARE")] public Boolean SetupFirmware { get { return _setupfirmware; } set { if (_setupfirmware != value) { _setupfirmware = value; OnSetupFirmwareChanged(value); } } } protected Boolean _setupfpga; /// /// Gets or sets the machinebase setup fpga. /// [Column("SETUP_FPGA")] public Boolean SetupFpga { get { return _setupfpga; } set { if (_setupfpga != value) { _setupfpga = value; OnSetupFpgaChanged(value); } } } protected Boolean _isdemo; /// /// Gets or sets the machinebase is demo. /// [Column("IS_DEMO")] public Boolean IsDemo { get { return _isdemo; } set { if (_isdemo != value) { _isdemo = value; OnIsDemoChanged(value); } } } protected Boolean _suspendversionupdate; /// /// Gets or sets the machinebase suspend version update. /// [Column("SUSPEND_VERSION_UPDATE")] public Boolean SuspendVersionUpdate { get { return _suspendversionupdate; } set { if (_suspendversionupdate != value) { _suspendversionupdate = value; OnSuspendVersionUpdateChanged(value); } } } protected Boolean _forceversionupdate; /// /// Gets or sets the machinebase force version update. /// [Column("FORCE_VERSION_UPDATE")] public Boolean ForceVersionUpdate { get { return _forceversionupdate; } set { if (_forceversionupdate != value) { _forceversionupdate = value; OnForceVersionUpdateChanged(value); } } } protected Boolean _performschemaupdateondataupdate; /// /// Gets or sets the machinebase perform schema update on data update. /// [Column("PERFORM_SCHEMA_UPDATE_ON_DATA_UPDATE")] public Boolean PerformSchemaUpdateOnDataUpdate { get { return _performschemaupdateondataupdate; } set { if (_performschemaupdateondataupdate != value) { _performschemaupdateondataupdate = value; OnPerformSchemaUpdateOnDataUpdateChanged(value); } } } protected String _devicecomport; /// /// Gets or sets the machinebase device com port. /// [Column("DEVICE_COM_PORT")] public String DeviceComPort { get { return _devicecomport; } set { if (_devicecomport != value) { _devicecomport = value; OnDeviceComPortChanged(value); } } } protected Boolean _isdeviceregistered; /// /// Gets or sets the machinebase is device registered. /// [Column("IS_DEVICE_REGISTERED")] public Boolean IsDeviceRegistered { get { return _isdeviceregistered; } set { if (_isdeviceregistered != value) { _isdeviceregistered = value; OnIsDeviceRegisteredChanged(value); } } } protected String _deviceid; /// /// Gets or sets the machinebase device id. /// [Column("DEVICE_ID")] public String DeviceId { get { return _deviceid; } set { if (_deviceid != value) { _deviceid = value; OnDeviceIdChanged(value); } } } protected String _devicename; /// /// Gets or sets the machinebase device name. /// [Column("DEVICE_NAME")] public String DeviceName { get { return _devicename; } set { if (_devicename != value) { _devicename = value; OnDeviceNameChanged(value); } } } protected SynchronizedObservableCollection _cats; /// /// Gets or sets the machinebase cats. /// public virtual SynchronizedObservableCollection Cats { get { return _cats; } set { if (_cats != value) { _cats = value; OnCatsChanged(value); } } } protected ColorSpace _defaultcolorspace; /// /// Gets or sets the machinebase color spaces. /// [XmlIgnore] [JsonIgnore] public virtual ColorSpace DefaultColorSpace { get { return _defaultcolorspace; } set { if (_defaultcolorspace != value) { _defaultcolorspace = value; if (DefaultColorSpace != null) { DefaultColorSpaceGuid = DefaultColorSpace.Guid; } OnDefaultColorSpaceChanged(value); } } } protected Configuration _configuration; /// /// Gets or sets the machinebase configuration. /// [XmlIgnore] [JsonIgnore] public virtual Configuration Configuration { get { return _configuration; } set { if (_configuration != value) { _configuration = value; if (Configuration != null) { ConfigurationGuid = Configuration.Guid; } OnConfigurationChanged(value); } } } protected SynchronizedObservableCollection _jobs; /// /// Gets or sets the machinebase jobs. /// public virtual SynchronizedObservableCollection Jobs { get { return _jobs; } set { if (_jobs != value) { _jobs = value; OnJobsChanged(value); } } } protected MachineVersion _machineversion; /// /// Gets or sets the machinebase machine versions. /// [XmlIgnore] [JsonIgnore] public virtual MachineVersion MachineVersion { get { return _machineversion; } set { if (_machineversion != value) { _machineversion = value; if (MachineVersion != null) { MachineVersionGuid = MachineVersion.Guid; } OnMachineVersionChanged(value); } } } protected SynchronizedObservableCollection _machinesevents; /// /// Gets or sets the machinebase machines events. /// public virtual SynchronizedObservableCollection MachinesEvents { get { return _machinesevents; } set { if (_machinesevents != value) { _machinesevents = value; OnMachinesEventsChanged(value); } } } protected Organization _organization; /// /// Gets or sets the machinebase organization. /// [XmlIgnore] [JsonIgnore] public virtual Organization Organization { get { return _organization; } set { if (_organization != value) { _organization = value; if (Organization != null) { OrganizationGuid = Organization.Guid; } OnOrganizationChanged(value); } } } protected Rml _defaultrml; /// /// Gets or sets the machinebase rml. /// [XmlIgnore] [JsonIgnore] public virtual Rml DefaultRml { get { return _defaultrml; } set { if (_defaultrml != value) { _defaultrml = value; if (DefaultRml != null) { DefaultRmlGuid = DefaultRml.Guid; } OnDefaultRmlChanged(value); } } } protected SpoolType _defaultspooltype; /// /// Gets or sets the machinebase spool types. /// [XmlIgnore] [JsonIgnore] public virtual SpoolType DefaultSpoolType { get { return _defaultspooltype; } set { if (_defaultspooltype != value) { _defaultspooltype = value; if (DefaultSpoolType != null) { DefaultSpoolTypeGuid = DefaultSpoolType.Guid; } OnDefaultSpoolTypeChanged(value); } } } protected SynchronizedObservableCollection _spools; /// /// Gets or sets the machinebase spools. /// public virtual SynchronizedObservableCollection Spools { get { return _spools; } set { if (_spools != value) { _spools = value; OnSpoolsChanged(value); } } } /// /// Called when the SerialNumber has changed. /// protected virtual void OnSerialNumberChanged(String serialnumber) { SerialNumberChanged?.Invoke(this, serialnumber); RaisePropertyChanged(nameof(SerialNumber)); } /// /// Called when the Name has changed. /// protected virtual void OnNameChanged(String name) { NameChanged?.Invoke(this, name); RaisePropertyChanged(nameof(Name)); } /// /// Called when the ProductionDate has changed. /// protected virtual void OnProductionDateChanged(DateTime productiondate) { ProductionDateChanged?.Invoke(this, productiondate); RaisePropertyChanged(nameof(ProductionDate)); } /// /// Called when the TargetJobTypes has changed. /// protected virtual void OnTargetJobTypesChanged(String targetjobtypes) { TargetJobTypesChanged?.Invoke(this, targetjobtypes); RaisePropertyChanged(nameof(TargetJobTypes)); } /// /// Called when the TargetColorSpaceCodes has changed. /// protected virtual void OnTargetColorSpaceCodesChanged(String targetcolorspacecodes) { TargetColorSpaceCodesChanged?.Invoke(this, targetcolorspacecodes); RaisePropertyChanged(nameof(TargetColorSpaceCodes)); } /// /// Called when the DefaultSegmentLength has changed. /// protected virtual void OnDefaultSegmentLengthChanged(Double defaultsegmentlength) { DefaultSegmentLengthChanged?.Invoke(this, defaultsegmentlength); RaisePropertyChanged(nameof(DefaultSegmentLength)); } /// /// Called when the OsKey has changed. /// protected virtual void OnOsKeyChanged(String oskey) { OsKeyChanged?.Invoke(this, oskey); RaisePropertyChanged(nameof(OsKey)); } /// /// Called when the AutoLogin has changed. /// protected virtual void OnAutoLoginChanged(Boolean autologin) { AutoLoginChanged?.Invoke(this, autologin); RaisePropertyChanged(nameof(AutoLogin)); } /// /// Called when the AutoCheckForUpdates has changed. /// protected virtual void OnAutoCheckForUpdatesChanged(Boolean autocheckforupdates) { AutoCheckForUpdatesChanged?.Invoke(this, autocheckforupdates); RaisePropertyChanged(nameof(AutoCheckForUpdates)); } /// /// Called when the SetupActivation has changed. /// protected virtual void OnSetupActivationChanged(Boolean setupactivation) { SetupActivationChanged?.Invoke(this, setupactivation); RaisePropertyChanged(nameof(SetupActivation)); } /// /// Called when the SetupRemoteAssistance has changed. /// protected virtual void OnSetupRemoteAssistanceChanged(Boolean setupremoteassistance) { SetupRemoteAssistanceChanged?.Invoke(this, setupremoteassistance); RaisePropertyChanged(nameof(SetupRemoteAssistance)); } /// /// Called when the SetupUwf has changed. /// protected virtual void OnSetupUwfChanged(Boolean setupuwf) { SetupUwfChanged?.Invoke(this, setupuwf); RaisePropertyChanged(nameof(SetupUwf)); } /// /// Called when the SetupFirmware has changed. /// protected virtual void OnSetupFirmwareChanged(Boolean setupfirmware) { SetupFirmwareChanged?.Invoke(this, setupfirmware); RaisePropertyChanged(nameof(SetupFirmware)); } /// /// Called when the SetupFpga has changed. /// protected virtual void OnSetupFpgaChanged(Boolean setupfpga) { SetupFpgaChanged?.Invoke(this, setupfpga); RaisePropertyChanged(nameof(SetupFpga)); } /// /// Called when the IsDemo has changed. /// protected virtual void OnIsDemoChanged(Boolean isdemo) { IsDemoChanged?.Invoke(this, isdemo); RaisePropertyChanged(nameof(IsDemo)); } /// /// Called when the SuspendVersionUpdate has changed. /// protected virtual void OnSuspendVersionUpdateChanged(Boolean suspendversionupdate) { SuspendVersionUpdateChanged?.Invoke(this, suspendversionupdate); RaisePropertyChanged(nameof(SuspendVersionUpdate)); } /// /// Called when the ForceVersionUpdate has changed. /// protected virtual void OnForceVersionUpdateChanged(Boolean forceversionupdate) { ForceVersionUpdateChanged?.Invoke(this, forceversionupdate); RaisePropertyChanged(nameof(ForceVersionUpdate)); } /// /// Called when the PerformSchemaUpdateOnDataUpdate has changed. /// protected virtual void OnPerformSchemaUpdateOnDataUpdateChanged(Boolean performschemaupdateondataupdate) { PerformSchemaUpdateOnDataUpdateChanged?.Invoke(this, performschemaupdateondataupdate); RaisePropertyChanged(nameof(PerformSchemaUpdateOnDataUpdate)); } /// /// Called when the DeviceComPort has changed. /// protected virtual void OnDeviceComPortChanged(String devicecomport) { DeviceComPortChanged?.Invoke(this, devicecomport); RaisePropertyChanged(nameof(DeviceComPort)); } /// /// Called when the IsDeviceRegistered has changed. /// protected virtual void OnIsDeviceRegisteredChanged(Boolean isdeviceregistered) { IsDeviceRegisteredChanged?.Invoke(this, isdeviceregistered); RaisePropertyChanged(nameof(IsDeviceRegistered)); } /// /// Called when the DeviceId has changed. /// protected virtual void OnDeviceIdChanged(String deviceid) { DeviceIdChanged?.Invoke(this, deviceid); RaisePropertyChanged(nameof(DeviceId)); } /// /// Called when the DeviceName has changed. /// protected virtual void OnDeviceNameChanged(String devicename) { DeviceNameChanged?.Invoke(this, devicename); RaisePropertyChanged(nameof(DeviceName)); } /// /// Called when the Cats has changed. /// protected virtual void OnCatsChanged(SynchronizedObservableCollection cats) { CatsChanged?.Invoke(this, cats); RaisePropertyChanged(nameof(Cats)); } /// /// Called when the DefaultColorSpace has changed. /// protected virtual void OnDefaultColorSpaceChanged(ColorSpace defaultcolorspace) { DefaultColorSpaceChanged?.Invoke(this, defaultcolorspace); RaisePropertyChanged(nameof(DefaultColorSpace)); } /// /// Called when the Configuration has changed. /// protected virtual void OnConfigurationChanged(Configuration configuration) { ConfigurationChanged?.Invoke(this, configuration); RaisePropertyChanged(nameof(Configuration)); } /// /// Called when the Jobs has changed. /// protected virtual void OnJobsChanged(SynchronizedObservableCollection jobs) { JobsChanged?.Invoke(this, jobs); RaisePropertyChanged(nameof(Jobs)); } /// /// Called when the MachineVersion has changed. /// protected virtual void OnMachineVersionChanged(MachineVersion machineversion) { MachineVersionChanged?.Invoke(this, machineversion); RaisePropertyChanged(nameof(MachineVersion)); } /// /// Called when the MachinesEvents has changed. /// protected virtual void OnMachinesEventsChanged(SynchronizedObservableCollection machinesevents) { MachinesEventsChanged?.Invoke(this, machinesevents); RaisePropertyChanged(nameof(MachinesEvents)); } /// /// Called when the Organization has changed. /// protected virtual void OnOrganizationChanged(Organization organization) { OrganizationChanged?.Invoke(this, organization); RaisePropertyChanged(nameof(Organization)); } /// /// Called when the DefaultRml has changed. /// protected virtual void OnDefaultRmlChanged(Rml defaultrml) { DefaultRmlChanged?.Invoke(this, defaultrml); RaisePropertyChanged(nameof(DefaultRml)); } /// /// Called when the DefaultSpoolType has changed. /// protected virtual void OnDefaultSpoolTypeChanged(SpoolType defaultspooltype) { DefaultSpoolTypeChanged?.Invoke(this, defaultspooltype); RaisePropertyChanged(nameof(DefaultSpoolType)); } /// /// Called when the Spools has changed. /// protected virtual void OnSpoolsChanged(SynchronizedObservableCollection spools) { SpoolsChanged?.Invoke(this, spools); RaisePropertyChanged(nameof(Spools)); } /// /// Initializes a new instance of the class. /// public MachineBase() : base() { Cats = new SynchronizedObservableCollection(); Jobs = new SynchronizedObservableCollection(); MachinesEvents = new SynchronizedObservableCollection(); Spools = new SynchronizedObservableCollection(); } } }