aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2022-11-20 22:45:16 +0200
committerRoy <Roy.mail.net@gmail.com>2022-11-20 22:45:16 +0200
commitb9e1a0f73ebfd1f22c5409fc06d81b198139d67a (patch)
treef8f4050ac6583f03085eba79ad3738ef297b6c63 /Software/Visual_Studio/Tango.BL
parent7c7e27fad7deb4c82a5ca7e5cb19184fa324b8d5 (diff)
downloadTango-b9e1a0f73ebfd1f22c5409fc06d81b198139d67a.tar.gz
Tango-b9e1a0f73ebfd1f22c5409fc06d81b198139d67a.zip
Fix job run DB order to avoid schema sync timeout.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL')
-rw-r--r--Software/Visual_Studio/Tango.BL/DTO/JobRunDTOBase.cs48
-rw-r--r--Software/Visual_Studio/Tango.BL/Entities/JobRunBase.cs228
2 files changed, 138 insertions, 138 deletions
diff --git a/Software/Visual_Studio/Tango.BL/DTO/JobRunDTOBase.cs b/Software/Visual_Studio/Tango.BL/DTO/JobRunDTOBase.cs
index 02e445c09..3f3efb015 100644
--- a/Software/Visual_Studio/Tango.BL/DTO/JobRunDTOBase.cs
+++ b/Software/Visual_Studio/Tango.BL/DTO/JobRunDTOBase.cs
@@ -142,22 +142,6 @@ namespace Tango.BL.DTO
}
/// <summary>
- /// job logical length
- /// </summary>
- public Double JobLogicalLength
- {
- get; set;
- }
-
- /// <summary>
- /// number of units
- /// </summary>
- public Int32 NumberOfUnits
- {
- get; set;
- }
-
- /// <summary>
/// is gradient
/// </summary>
public Boolean IsGradient
@@ -286,6 +270,30 @@ namespace Tango.BL.DTO
}
/// <summary>
+ /// is synchronized
+ /// </summary>
+ public Boolean IsSynchronized
+ {
+ get; set;
+ }
+
+ /// <summary>
+ /// job logical length
+ /// </summary>
+ public Double JobLogicalLength
+ {
+ get; set;
+ }
+
+ /// <summary>
+ /// number of units
+ /// </summary>
+ public Int32 NumberOfUnits
+ {
+ get; set;
+ }
+
+ /// <summary>
/// application version
/// </summary>
public String ApplicationVersion
@@ -325,13 +333,5 @@ namespace Tango.BL.DTO
get; set;
}
- /// <summary>
- /// is synchronized
- /// </summary>
- public Boolean IsSynchronized
- {
- get; set;
- }
-
}
}
diff --git a/Software/Visual_Studio/Tango.BL/Entities/JobRunBase.cs b/Software/Visual_Studio/Tango.BL/Entities/JobRunBase.cs
index 4c0092e55..da3ff6f5b 100644
--- a/Software/Visual_Studio/Tango.BL/Entities/JobRunBase.cs
+++ b/Software/Visual_Studio/Tango.BL/Entities/JobRunBase.cs
@@ -49,10 +49,6 @@ namespace Tango.BL.Entities
public event EventHandler<Double> JobLengthChanged;
- public event EventHandler<Double> JobLogicalLengthChanged;
-
- public event EventHandler<Int32> NumberOfUnitsChanged;
-
public event EventHandler<Boolean> IsGradientChanged;
public event EventHandler<Int32> GradientResolutionCmChanged;
@@ -85,6 +81,12 @@ namespace Tango.BL.Entities
public event EventHandler<Boolean> IsHeadCleaningChanged;
+ public event EventHandler<Boolean> IsSynchronizedChanged;
+
+ public event EventHandler<Double> JobLogicalLengthChanged;
+
+ public event EventHandler<Int32> NumberOfUnitsChanged;
+
public event EventHandler<String> ApplicationVersionChanged;
public event EventHandler<String> FirmwareVersionChanged;
@@ -93,8 +95,6 @@ namespace Tango.BL.Entities
public event EventHandler<String> FineTuningStringChanged;
- public event EventHandler<Boolean> IsSynchronizedChanged;
-
protected String _machineguid;
/// <summary>
@@ -494,60 +494,6 @@ namespace Tango.BL.Entities
}
}
- protected Double _joblogicallength;
-
- /// <summary>
- /// Gets or sets the jobrunbase job logical length.
- /// </summary>
-
- [Column("JOB_LOGICAL_LENGTH")]
-
- public Double JobLogicalLength
- {
- get
- {
- return _joblogicallength;
- }
-
- set
- {
- if (_joblogicallength != value)
- {
- _joblogicallength = value;
-
- OnJobLogicalLengthChanged(value);
-
- }
- }
- }
-
- protected Int32 _numberofunits;
-
- /// <summary>
- /// Gets or sets the jobrunbase number of units.
- /// </summary>
-
- [Column("NUMBER_OF_UNITS")]
-
- public Int32 NumberOfUnits
- {
- get
- {
- return _numberofunits;
- }
-
- set
- {
- if (_numberofunits != value)
- {
- _numberofunits = value;
-
- OnNumberOfUnitsChanged(value);
-
- }
- }
- }
-
protected Boolean _isgradient;
/// <summary>
@@ -980,6 +926,87 @@ namespace Tango.BL.Entities
}
}
+ protected Boolean _issynchronized;
+
+ /// <summary>
+ /// Gets or sets the jobrunbase is synchronized.
+ /// </summary>
+
+ [Column("IS_SYNCHRONIZED")]
+
+ public Boolean IsSynchronized
+ {
+ get
+ {
+ return _issynchronized;
+ }
+
+ set
+ {
+ if (_issynchronized != value)
+ {
+ _issynchronized = value;
+
+ OnIsSynchronizedChanged(value);
+
+ }
+ }
+ }
+
+ protected Double _joblogicallength;
+
+ /// <summary>
+ /// Gets or sets the jobrunbase job logical length.
+ /// </summary>
+
+ [Column("JOB_LOGICAL_LENGTH")]
+
+ public Double JobLogicalLength
+ {
+ get
+ {
+ return _joblogicallength;
+ }
+
+ set
+ {
+ if (_joblogicallength != value)
+ {
+ _joblogicallength = value;
+
+ OnJobLogicalLengthChanged(value);
+
+ }
+ }
+ }
+
+ protected Int32 _numberofunits;
+
+ /// <summary>
+ /// Gets or sets the jobrunbase number of units.
+ /// </summary>
+
+ [Column("NUMBER_OF_UNITS")]
+
+ public Int32 NumberOfUnits
+ {
+ get
+ {
+ return _numberofunits;
+ }
+
+ set
+ {
+ if (_numberofunits != value)
+ {
+ _numberofunits = value;
+
+ OnNumberOfUnitsChanged(value);
+
+ }
+ }
+ }
+
protected String _applicationversion;
/// <summary>
@@ -1113,33 +1140,6 @@ namespace Tango.BL.Entities
}
}
- protected Boolean _issynchronized;
-
- /// <summary>
- /// Gets or sets the jobrunbase is synchronized.
- /// </summary>
-
- [Column("IS_SYNCHRONIZED")]
-
- public Boolean IsSynchronized
- {
- get
- {
- return _issynchronized;
- }
-
- set
- {
- if (_issynchronized != value)
- {
- _issynchronized = value;
-
- OnIsSynchronizedChanged(value);
-
- }
- }
- }
-
/// <summary>
/// Called when the JobName has changed.
/// </summary>
@@ -1240,24 +1240,6 @@ namespace Tango.BL.Entities
}
/// <summary>
- /// Called when the JobLogicalLength has changed.
- /// </summary>
- protected virtual void OnJobLogicalLengthChanged(Double joblogicallength)
- {
- JobLogicalLengthChanged?.Invoke(this, joblogicallength);
- RaisePropertyChanged(nameof(JobLogicalLength));
- }
-
- /// <summary>
- /// Called when the NumberOfUnits has changed.
- /// </summary>
- protected virtual void OnNumberOfUnitsChanged(Int32 numberofunits)
- {
- NumberOfUnitsChanged?.Invoke(this, numberofunits);
- RaisePropertyChanged(nameof(NumberOfUnits));
- }
-
- /// <summary>
/// Called when the IsGradient has changed.
/// </summary>
protected virtual void OnIsGradientChanged(Boolean isgradient)
@@ -1402,6 +1384,33 @@ namespace Tango.BL.Entities
}
/// <summary>
+ /// Called when the IsSynchronized has changed.
+ /// </summary>
+ protected virtual void OnIsSynchronizedChanged(Boolean issynchronized)
+ {
+ IsSynchronizedChanged?.Invoke(this, issynchronized);
+ RaisePropertyChanged(nameof(IsSynchronized));
+ }
+
+ /// <summary>
+ /// Called when the JobLogicalLength has changed.
+ /// </summary>
+ protected virtual void OnJobLogicalLengthChanged(Double joblogicallength)
+ {
+ JobLogicalLengthChanged?.Invoke(this, joblogicallength);
+ RaisePropertyChanged(nameof(JobLogicalLength));
+ }
+
+ /// <summary>
+ /// Called when the NumberOfUnits has changed.
+ /// </summary>
+ protected virtual void OnNumberOfUnitsChanged(Int32 numberofunits)
+ {
+ NumberOfUnitsChanged?.Invoke(this, numberofunits);
+ RaisePropertyChanged(nameof(NumberOfUnits));
+ }
+
+ /// <summary>
/// Called when the ApplicationVersion has changed.
/// </summary>
protected virtual void OnApplicationVersionChanged(String applicationversion)
@@ -1438,15 +1447,6 @@ namespace Tango.BL.Entities
}
/// <summary>
- /// Called when the IsSynchronized has changed.
- /// </summary>
- protected virtual void OnIsSynchronizedChanged(Boolean issynchronized)
- {
- IsSynchronizedChanged?.Invoke(this, issynchronized);
- RaisePropertyChanged(nameof(IsSynchronized));
- }
-
- /// <summary>
/// Initializes a new instance of the <see cref="JobRunBase" /> class.
/// </summary>
public JobRunBase() : base()