//------------------------------------------------------------------------------
//
// 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("JOBS")]
public abstract class JobBase : ObservableEntity
{
public event EventHandler CreationDateChanged;
public event EventHandler> LastRunChanged;
public event EventHandler NameChanged;
public event EventHandler DescriptionChanged;
public event EventHandler InterSegmentLengthChanged;
public event EventHandler EnableInterSegmentChanged;
public event EventHandler EnableLubricationChanged;
public event EventHandler JobIndexChanged;
public event EventHandler EstimatedDurationMiliChanged;
public event EventHandler HasEmbroideryFileChanged;
public event EventHandler EmbroideryFileDataChanged;
public event EventHandler EmbroideryFileNameChanged;
public event EventHandler EmbroideryJpegChanged;
public event EventHandler StatusChanged;
public event EventHandler NumberOfUnitsChanged;
public event EventHandler TypeChanged;
public event EventHandler SpoolsDistributionChanged;
public event EventHandler NumberOfHeadsChanged;
public event EventHandler SampleUnitsOrMetersChanged;
public event EventHandler FineTuningStatusChanged;
public event EventHandler> FineTuningApproveDateChanged;
public event EventHandler SampleDyeStatusChanged;
public event EventHandler> SampleDyeApproveDateChanged;
public event EventHandler EditingStateChanged;
public event EventHandler LengthPercentageFactorChanged;
public event EventHandler IsSynchronizedChanged;
public event EventHandler SourceChanged;
public event EventHandler VersionChanged;
public event EventHandler NumberOfSpoolsChanged;
public event EventHandler ColorCatalogChanged;
public event EventHandler ColorSpaceChanged;
public event EventHandler CustomerChanged;
public event EventHandler MachineChanged;
public event EventHandler RmlChanged;
public event EventHandler SpoolTypeChanged;
public event EventHandler UserChanged;
public event EventHandler WindingMethodChanged;
public event EventHandler> SegmentsGroupsChanged;
public event EventHandler> SegmentsChanged;
protected DateTime _creationdate;
///
/// Gets or sets the jobbase creation date.
///
[Column("CREATION_DATE")]
public DateTime CreationDate
{
get
{
return _creationdate;
}
set
{
if (_creationdate != value)
{
_creationdate = value;
OnCreationDateChanged(value);
}
}
}
protected Nullable _lastrun;
///
/// Gets or sets the jobbase last run.
///
[Column("LAST_RUN")]
public Nullable LastRun
{
get
{
return _lastrun;
}
set
{
if (_lastrun != value)
{
_lastrun = value;
OnLastRunChanged(value);
}
}
}
protected String _machineguid;
///
/// Gets or sets the jobbase machine guid.
///
[Column("MACHINE_GUID")]
[ForeignKey("Machine")]
public String MachineGuid
{
get
{
return _machineguid;
}
set
{
if (_machineguid != value)
{
_machineguid = value;
}
}
}
protected String _userguid;
///
/// Gets or sets the jobbase user guid.
///
[Column("USER_GUID")]
[ForeignKey("User")]
public String UserGuid
{
get
{
return _userguid;
}
set
{
if (_userguid != value)
{
_userguid = value;
}
}
}
protected String _rmlguid;
///
/// Gets or sets the jobbase rml guid.
///
[Column("RML_GUID")]
[ForeignKey("Rml")]
public String RmlGuid
{
get
{
return _rmlguid;
}
set
{
if (_rmlguid != value)
{
_rmlguid = value;
}
}
}
protected String _windingmethodguid;
///
/// Gets or sets the jobbase winding method guid.
///
[Column("WINDING_METHOD_GUID")]
[ForeignKey("WindingMethod")]
public String WindingMethodGuid
{
get
{
return _windingmethodguid;
}
set
{
if (_windingmethodguid != value)
{
_windingmethodguid = value;
}
}
}
protected String _spooltypeguid;
///
/// Gets or sets the jobbase spool type guid.
///
[Column("SPOOL_TYPE_GUID")]
[ForeignKey("SpoolType")]
public String SpoolTypeGuid
{
get
{
return _spooltypeguid;
}
set
{
if (_spooltypeguid != value)
{
_spooltypeguid = value;
}
}
}
protected String _name;
///
/// Gets or sets the jobbase name.
///
[Column("NAME")]
public String Name
{
get
{
return _name;
}
set
{
if (_name != value)
{
_name = value;
OnNameChanged(value);
}
}
}
protected String _description;
///
/// Gets or sets the jobbase description.
///
[Column("DESCRIPTION")]
public String Description
{
get
{
return _description;
}
set
{
if (_description != value)
{
_description = value;
OnDescriptionChanged(value);
}
}
}
protected Double _intersegmentlength;
///
/// Gets or sets the jobbase inter segment length.
///
[Column("INTER_SEGMENT_LENGTH")]
public Double InterSegmentLength
{
get
{
return _intersegmentlength;
}
set
{
if (_intersegmentlength != value)
{
_intersegmentlength = value;
OnInterSegmentLengthChanged(value);
}
}
}
protected Boolean _enableintersegment;
///
/// Gets or sets the jobbase enable inter segment.
///
[Column("ENABLE_INTER_SEGMENT")]
public Boolean EnableInterSegment
{
get
{
return _enableintersegment;
}
set
{
if (_enableintersegment != value)
{
_enableintersegment = value;
OnEnableInterSegmentChanged(value);
}
}
}
protected Boolean _enablelubrication;
///
/// Gets or sets the jobbase enable lubrication.
///
[Column("ENABLE_LUBRICATION")]
public Boolean EnableLubrication
{
get
{
return _enablelubrication;
}
set
{
if (_enablelubrication != value)
{
_enablelubrication = value;
OnEnableLubricationChanged(value);
}
}
}
protected Int32 _jobindex;
///
/// Gets or sets the jobbase job index.
///
[Column("JOB_INDEX")]
public Int32 JobIndex
{
get
{
return _jobindex;
}
set
{
if (_jobindex != value)
{
_jobindex = value;
OnJobIndexChanged(value);
}
}
}
protected Int32 _estimateddurationmili;
///
/// Gets or sets the jobbase estimated duration mili.
///
[Column("ESTIMATED_DURATION_MILI")]
public Int32 EstimatedDurationMili
{
get
{
return _estimateddurationmili;
}
set
{
if (_estimateddurationmili != value)
{
_estimateddurationmili = value;
OnEstimatedDurationMiliChanged(value);
}
}
}
protected Boolean _hasembroideryfile;
///
/// Gets or sets the jobbase has embroidery file.
///
[Column("HAS_EMBROIDERY_FILE")]
public Boolean HasEmbroideryFile
{
get
{
return _hasembroideryfile;
}
set
{
if (_hasembroideryfile != value)
{
_hasembroideryfile = value;
OnHasEmbroideryFileChanged(value);
}
}
}
protected Byte[] _embroideryfiledata;
///
/// Gets or sets the jobbase embroidery file data.
///
[Column("EMBROIDERY_FILE_DATA")]
public Byte[] EmbroideryFileData
{
get
{
return _embroideryfiledata;
}
set
{
if (_embroideryfiledata != value)
{
_embroideryfiledata = value;
OnEmbroideryFileDataChanged(value);
}
}
}
protected String _embroideryfilename;
///
/// Gets or sets the jobbase embroidery file name.
///
[Column("EMBROIDERY_FILE_NAME")]
public String EmbroideryFileName
{
get
{
return _embroideryfilename;
}
set
{
if (_embroideryfilename != value)
{
_embroideryfilename = value;
OnEmbroideryFileNameChanged(value);
}
}
}
protected Byte[] _embroideryjpeg;
///
/// Gets or sets the jobbase embroidery jpeg.
///
[Column("EMBROIDERY_JPEG")]
public Byte[] EmbroideryJpeg
{
get
{
return _embroideryjpeg;
}
set
{
if (_embroideryjpeg != value)
{
_embroideryjpeg = value;
OnEmbroideryJpegChanged(value);
}
}
}
protected Int32 _status;
///
/// 0 = Draft
/// 1 = Completed
/// 2 = Disrupted
/// 3 = Aborted
///
[Column("STATUS")]
public Int32 Status
{
get
{
return _status;
}
set
{
if (_status != value)
{
_status = value;
OnStatusChanged(value);
}
}
}
protected String _colorspaceguid;
///
/// Gets or sets the jobbase color space guid.
///
[Column("COLOR_SPACE_GUID")]
[ForeignKey("ColorSpace")]
public String ColorSpaceGuid
{
get
{
return _colorspaceguid;
}
set
{
if (_colorspaceguid != value)
{
_colorspaceguid = value;
}
}
}
protected String _colorcatalogguid;
///
/// Gets or sets the jobbase color catalog guid.
///
[Column("COLOR_CATALOG_GUID")]
[ForeignKey("ColorCatalog")]
public String ColorCatalogGuid
{
get
{
return _colorcatalogguid;
}
set
{
if (_colorcatalogguid != value)
{
_colorcatalogguid = value;
}
}
}
protected Int32 _numberofunits;
///
/// Gets or sets the jobbase number of units.
///
[Column("NUMBER_OF_UNITS")]
public Int32 NumberOfUnits
{
get
{
return _numberofunits;
}
set
{
if (_numberofunits != value)
{
_numberofunits = value;
OnNumberOfUnitsChanged(value);
}
}
}
protected Int32 _type;
///
/// 0 = Sewing
/// 1 = Embroidery
///
[Column("TYPE")]
public Int32 Type
{
get
{
return _type;
}
set
{
if (_type != value)
{
_type = value;
OnTypeChanged(value);
}
}
}
protected String _customerguid;
///
/// Gets or sets the jobbase customer guid.
///
[Column("CUSTOMER_GUID")]
[ForeignKey("Customer")]
public String CustomerGuid
{
get
{
return _customerguid;
}
set
{
if (_customerguid != value)
{
_customerguid = value;
}
}
}
protected Int32 _spoolsdistribution;
///
/// 0 = All segments per spool
/// 1 = One segments per spool
///
[Column("SPOOLS_DISTRIBUTION")]
public Int32 SpoolsDistribution
{
get
{
return _spoolsdistribution;
}
set
{
if (_spoolsdistribution != value)
{
_spoolsdistribution = value;
OnSpoolsDistributionChanged(value);
}
}
}
protected Int32 _numberofheads;
///
/// Gets or sets the jobbase number of heads.
///
[Column("NUMBER_OF_HEADS")]
public Int32 NumberOfHeads
{
get
{
return _numberofheads;
}
set
{
if (_numberofheads != value)
{
_numberofheads = value;
OnNumberOfHeadsChanged(value);
}
}
}
protected Int32 _sampleunitsormeters;
///
/// Gets or sets the jobbase sample units or meters.
///
[Column("SAMPLE_UNITS_OR_METERS")]
public Int32 SampleUnitsOrMeters
{
get
{
return _sampleunitsormeters;
}
set
{
if (_sampleunitsormeters != value)
{
_sampleunitsormeters = value;
OnSampleUnitsOrMetersChanged(value);
}
}
}
protected Int32 _finetuningstatus;
///
/// 0 = Unspecified
/// 1 = PendingApproval
/// 2 = Approved
///
[Column("FINE_TUNING_STATUS")]
public Int32 FineTuningStatus
{
get
{
return _finetuningstatus;
}
set
{
if (_finetuningstatus != value)
{
_finetuningstatus = value;
OnFineTuningStatusChanged(value);
}
}
}
protected Nullable _finetuningapprovedate;
///
/// Gets or sets the jobbase fine tuning approve date.
///
[Column("FINE_TUNING_APPROVE_DATE")]
public Nullable FineTuningApproveDate
{
get
{
return _finetuningapprovedate;
}
set
{
if (_finetuningapprovedate != value)
{
_finetuningapprovedate = value;
OnFineTuningApproveDateChanged(value);
}
}
}
protected Int32 _sampledyestatus;
///
/// 0 = Unspecified
/// 1 = PendingApproval
/// 2 = Approved
///
[Column("SAMPLE_DYE_STATUS")]
public Int32 SampleDyeStatus
{
get
{
return _sampledyestatus;
}
set
{
if (_sampledyestatus != value)
{
_sampledyestatus = value;
OnSampleDyeStatusChanged(value);
}
}
}
protected Nullable _sampledyeapprovedate;
///
/// Gets or sets the jobbase sample dye approve date.
///
[Column("SAMPLE_DYE_APPROVE_DATE")]
public Nullable SampleDyeApproveDate
{
get
{
return _sampledyeapprovedate;
}
set
{
if (_sampledyeapprovedate != value)
{
_sampledyeapprovedate = value;
OnSampleDyeApproveDateChanged(value);
}
}
}
protected Int32 _editingstate;
///
/// 0 = Default
/// 1 = SampleDye
/// 2 = FineTuning
///
[Column("EDITING_STATE")]
public Int32 EditingState
{
get
{
return _editingstate;
}
set
{
if (_editingstate != value)
{
_editingstate = value;
OnEditingStateChanged(value);
}
}
}
protected Double _lengthpercentagefactor;
///
/// Gets or sets the jobbase length percentage factor.
///
[Column("LENGTH_PERCENTAGE_FACTOR")]
public Double LengthPercentageFactor
{
get
{
return _lengthpercentagefactor;
}
set
{
if (_lengthpercentagefactor != value)
{
_lengthpercentagefactor = value;
OnLengthPercentageFactorChanged(value);
}
}
}
protected Boolean _issynchronized;
///
/// Gets or sets the jobbase is synchronized.
///
[Column("IS_SYNCHRONIZED")]
public Boolean IsSynchronized
{
get
{
return _issynchronized;
}
set
{
if (_issynchronized != value)
{
_issynchronized = value;
OnIsSynchronizedChanged(value);
}
}
}
protected Int32 _source;
///
/// 0 = Remote
/// 1 = Local
///
[Column("SOURCE")]
public Int32 Source
{
get
{
return _source;
}
set
{
if (_source != value)
{
_source = value;
OnSourceChanged(value);
}
}
}
protected Int32 _version;
///
/// Gets or sets the jobbase version.
///
[Column("VERSION")]
public Int32 Version
{
get
{
return _version;
}
set
{
if (_version != value)
{
_version = value;
OnVersionChanged(value);
}
}
}
protected Int32 _numberofspools;
///
/// Gets or sets the jobbase number of spools.
///
[Column("NUMBER_OF_SPOOLS")]
public Int32 NumberOfSpools
{
get
{
return _numberofspools;
}
set
{
if (_numberofspools != value)
{
_numberofspools = value;
OnNumberOfSpoolsChanged(value);
}
}
}
protected ColorCatalog _colorcatalog;
///
/// Gets or sets the jobbase color catalogs.
///
[XmlIgnore]
[JsonIgnore]
public virtual ColorCatalog ColorCatalog
{
get
{
return _colorcatalog;
}
set
{
if (_colorcatalog != value)
{
_colorcatalog = value;
if (ColorCatalog != null)
{
ColorCatalogGuid = ColorCatalog.Guid;
}
OnColorCatalogChanged(value);
}
}
}
protected ColorSpace _colorspace;
///
/// Gets or sets the jobbase color spaces.
///
[XmlIgnore]
[JsonIgnore]
public virtual ColorSpace ColorSpace
{
get
{
return _colorspace;
}
set
{
if (_colorspace != value)
{
_colorspace = value;
if (ColorSpace != null)
{
ColorSpaceGuid = ColorSpace.Guid;
}
OnColorSpaceChanged(value);
}
}
}
protected Customer _customer;
///
/// Gets or sets the jobbase customer.
///
[XmlIgnore]
[JsonIgnore]
public virtual Customer Customer
{
get
{
return _customer;
}
set
{
if (_customer != value)
{
_customer = value;
if (Customer != null)
{
CustomerGuid = Customer.Guid;
}
OnCustomerChanged(value);
}
}
}
protected Machine _machine;
///
/// Gets or sets the jobbase machine.
///
[XmlIgnore]
[JsonIgnore]
public virtual Machine Machine
{
get
{
return _machine;
}
set
{
if (_machine != value)
{
_machine = value;
if (Machine != null)
{
MachineGuid = Machine.Guid;
}
OnMachineChanged(value);
}
}
}
protected Rml _rml;
///
/// Gets or sets the jobbase 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 jobbase 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);
}
}
}
protected User _user;
///
/// Gets or sets the jobbase 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 WindingMethod _windingmethod;
///
/// Gets or sets the jobbase winding methods.
///
[XmlIgnore]
[JsonIgnore]
public virtual WindingMethod WindingMethod
{
get
{
return _windingmethod;
}
set
{
if (_windingmethod != value)
{
_windingmethod = value;
if (WindingMethod != null)
{
WindingMethodGuid = WindingMethod.Guid;
}
OnWindingMethodChanged(value);
}
}
}
protected SynchronizedObservableCollection _segmentsgroups;
///
/// Gets or sets the jobbase segments groups.
///
public virtual SynchronizedObservableCollection SegmentsGroups
{
get
{
return _segmentsgroups;
}
set
{
if (_segmentsgroups != value)
{
_segmentsgroups = value;
OnSegmentsGroupsChanged(value);
}
}
}
protected SynchronizedObservableCollection _segments;
///
/// Gets or sets the jobbase segments.
///
public virtual SynchronizedObservableCollection Segments
{
get
{
return _segments;
}
set
{
if (_segments != value)
{
_segments = value;
OnSegmentsChanged(value);
}
}
}
///
/// Called when the CreationDate has changed.
///
protected virtual void OnCreationDateChanged(DateTime creationdate)
{
CreationDateChanged?.Invoke(this, creationdate);
RaisePropertyChanged(nameof(CreationDate));
}
///
/// Called when the LastRun has changed.
///
protected virtual void OnLastRunChanged(Nullable lastrun)
{
LastRunChanged?.Invoke(this, lastrun);
RaisePropertyChanged(nameof(LastRun));
}
///
/// Called when the Name has changed.
///
protected virtual void OnNameChanged(String name)
{
NameChanged?.Invoke(this, name);
RaisePropertyChanged(nameof(Name));
}
///
/// Called when the Description has changed.
///
protected virtual void OnDescriptionChanged(String description)
{
DescriptionChanged?.Invoke(this, description);
RaisePropertyChanged(nameof(Description));
}
///
/// Called when the InterSegmentLength has changed.
///
protected virtual void OnInterSegmentLengthChanged(Double intersegmentlength)
{
InterSegmentLengthChanged?.Invoke(this, intersegmentlength);
RaisePropertyChanged(nameof(InterSegmentLength));
}
///
/// Called when the EnableInterSegment has changed.
///
protected virtual void OnEnableInterSegmentChanged(Boolean enableintersegment)
{
EnableInterSegmentChanged?.Invoke(this, enableintersegment);
RaisePropertyChanged(nameof(EnableInterSegment));
}
///
/// Called when the EnableLubrication has changed.
///
protected virtual void OnEnableLubricationChanged(Boolean enablelubrication)
{
EnableLubricationChanged?.Invoke(this, enablelubrication);
RaisePropertyChanged(nameof(EnableLubrication));
}
///
/// Called when the JobIndex has changed.
///
protected virtual void OnJobIndexChanged(Int32 jobindex)
{
JobIndexChanged?.Invoke(this, jobindex);
RaisePropertyChanged(nameof(JobIndex));
}
///
/// Called when the EstimatedDurationMili has changed.
///
protected virtual void OnEstimatedDurationMiliChanged(Int32 estimateddurationmili)
{
EstimatedDurationMiliChanged?.Invoke(this, estimateddurationmili);
RaisePropertyChanged(nameof(EstimatedDurationMili));
}
///
/// Called when the HasEmbroideryFile has changed.
///
protected virtual void OnHasEmbroideryFileChanged(Boolean hasembroideryfile)
{
HasEmbroideryFileChanged?.Invoke(this, hasembroideryfile);
RaisePropertyChanged(nameof(HasEmbroideryFile));
}
///
/// Called when the EmbroideryFileData has changed.
///
protected virtual void OnEmbroideryFileDataChanged(Byte[] embroideryfiledata)
{
EmbroideryFileDataChanged?.Invoke(this, embroideryfiledata);
RaisePropertyChanged(nameof(EmbroideryFileData));
}
///
/// Called when the EmbroideryFileName has changed.
///
protected virtual void OnEmbroideryFileNameChanged(String embroideryfilename)
{
EmbroideryFileNameChanged?.Invoke(this, embroideryfilename);
RaisePropertyChanged(nameof(EmbroideryFileName));
}
///
/// Called when the EmbroideryJpeg has changed.
///
protected virtual void OnEmbroideryJpegChanged(Byte[] embroideryjpeg)
{
EmbroideryJpegChanged?.Invoke(this, embroideryjpeg);
RaisePropertyChanged(nameof(EmbroideryJpeg));
}
///
/// Called when the Status has changed.
///
protected virtual void OnStatusChanged(Int32 status)
{
StatusChanged?.Invoke(this, status);
RaisePropertyChanged(nameof(Status));
}
///
/// Called when the NumberOfUnits has changed.
///
protected virtual void OnNumberOfUnitsChanged(Int32 numberofunits)
{
NumberOfUnitsChanged?.Invoke(this, numberofunits);
RaisePropertyChanged(nameof(NumberOfUnits));
}
///
/// Called when the Type has changed.
///
protected virtual void OnTypeChanged(Int32 type)
{
TypeChanged?.Invoke(this, type);
RaisePropertyChanged(nameof(Type));
}
///
/// Called when the SpoolsDistribution has changed.
///
protected virtual void OnSpoolsDistributionChanged(Int32 spoolsdistribution)
{
SpoolsDistributionChanged?.Invoke(this, spoolsdistribution);
RaisePropertyChanged(nameof(SpoolsDistribution));
}
///
/// Called when the NumberOfHeads has changed.
///
protected virtual void OnNumberOfHeadsChanged(Int32 numberofheads)
{
NumberOfHeadsChanged?.Invoke(this, numberofheads);
RaisePropertyChanged(nameof(NumberOfHeads));
}
///
/// Called when the SampleUnitsOrMeters has changed.
///
protected virtual void OnSampleUnitsOrMetersChanged(Int32 sampleunitsormeters)
{
SampleUnitsOrMetersChanged?.Invoke(this, sampleunitsormeters);
RaisePropertyChanged(nameof(SampleUnitsOrMeters));
}
///
/// Called when the FineTuningStatus has changed.
///
protected virtual void OnFineTuningStatusChanged(Int32 finetuningstatus)
{
FineTuningStatusChanged?.Invoke(this, finetuningstatus);
RaisePropertyChanged(nameof(FineTuningStatus));
}
///
/// Called when the FineTuningApproveDate has changed.
///
protected virtual void OnFineTuningApproveDateChanged(Nullable finetuningapprovedate)
{
FineTuningApproveDateChanged?.Invoke(this, finetuningapprovedate);
RaisePropertyChanged(nameof(FineTuningApproveDate));
}
///
/// Called when the SampleDyeStatus has changed.
///
protected virtual void OnSampleDyeStatusChanged(Int32 sampledyestatus)
{
SampleDyeStatusChanged?.Invoke(this, sampledyestatus);
RaisePropertyChanged(nameof(SampleDyeStatus));
}
///
/// Called when the SampleDyeApproveDate has changed.
///
protected virtual void OnSampleDyeApproveDateChanged(Nullable sampledyeapprovedate)
{
SampleDyeApproveDateChanged?.Invoke(this, sampledyeapprovedate);
RaisePropertyChanged(nameof(SampleDyeApproveDate));
}
///
/// Called when the EditingState has changed.
///
protected virtual void OnEditingStateChanged(Int32 editingstate)
{
EditingStateChanged?.Invoke(this, editingstate);
RaisePropertyChanged(nameof(EditingState));
}
///
/// Called when the LengthPercentageFactor has changed.
///
protected virtual void OnLengthPercentageFactorChanged(Double lengthpercentagefactor)
{
LengthPercentageFactorChanged?.Invoke(this, lengthpercentagefactor);
RaisePropertyChanged(nameof(LengthPercentageFactor));
}
///
/// Called when the IsSynchronized has changed.
///
protected virtual void OnIsSynchronizedChanged(Boolean issynchronized)
{
IsSynchronizedChanged?.Invoke(this, issynchronized);
RaisePropertyChanged(nameof(IsSynchronized));
}
///
/// Called when the Source has changed.
///
protected virtual void OnSourceChanged(Int32 source)
{
SourceChanged?.Invoke(this, source);
RaisePropertyChanged(nameof(Source));
}
///
/// Called when the Version has changed.
///
protected virtual void OnVersionChanged(Int32 version)
{
VersionChanged?.Invoke(this, version);
RaisePropertyChanged(nameof(Version));
}
///
/// Called when the NumberOfSpools has changed.
///
protected virtual void OnNumberOfSpoolsChanged(Int32 numberofspools)
{
NumberOfSpoolsChanged?.Invoke(this, numberofspools);
RaisePropertyChanged(nameof(NumberOfSpools));
}
///
/// Called when the ColorCatalog has changed.
///
protected virtual void OnColorCatalogChanged(ColorCatalog colorcatalog)
{
ColorCatalogChanged?.Invoke(this, colorcatalog);
RaisePropertyChanged(nameof(ColorCatalog));
}
///
/// Called when the ColorSpace has changed.
///
protected virtual void OnColorSpaceChanged(ColorSpace colorspace)
{
ColorSpaceChanged?.Invoke(this, colorspace);
RaisePropertyChanged(nameof(ColorSpace));
}
///
/// Called when the Customer has changed.
///
protected virtual void OnCustomerChanged(Customer customer)
{
CustomerChanged?.Invoke(this, customer);
RaisePropertyChanged(nameof(Customer));
}
///
/// Called when the Machine has changed.
///
protected virtual void OnMachineChanged(Machine machine)
{
MachineChanged?.Invoke(this, machine);
RaisePropertyChanged(nameof(Machine));
}
///
/// 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));
}
///
/// Called when the User has changed.
///
protected virtual void OnUserChanged(User user)
{
UserChanged?.Invoke(this, user);
RaisePropertyChanged(nameof(User));
}
///
/// Called when the WindingMethod has changed.
///
protected virtual void OnWindingMethodChanged(WindingMethod windingmethod)
{
WindingMethodChanged?.Invoke(this, windingmethod);
RaisePropertyChanged(nameof(WindingMethod));
}
///
/// Called when the SegmentsGroups has changed.
///
protected virtual void OnSegmentsGroupsChanged(SynchronizedObservableCollection segmentsgroups)
{
SegmentsGroupsChanged?.Invoke(this, segmentsgroups);
RaisePropertyChanged(nameof(SegmentsGroups));
}
///
/// Called when the Segments has changed.
///
protected virtual void OnSegmentsChanged(SynchronizedObservableCollection segments)
{
SegmentsChanged?.Invoke(this, segments);
RaisePropertyChanged(nameof(Segments));
}
///
/// Initializes a new instance of the class.
///
public JobBase() : base()
{
SegmentsGroups = new SynchronizedObservableCollection();
Segments = new SynchronizedObservableCollection();
}
}
}