diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-08-15 10:27:35 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-08-15 10:27:35 +0300 |
| commit | 7867b3ac045364fc2aa11a860871bee2bfeb072d (patch) | |
| tree | 78a9a5c665a6c123ecaecf9bce28be75a44af580 /Software/Visual_Studio/Tango.Integration | |
| parent | b59b10c6b53f75fd9564662f6c198e794456d47b (diff) | |
| download | Tango-7867b3ac045364fc2aa11a860871bee2bfeb072d.tar.gz Tango-7867b3ac045364fc2aa11a860871bee2bfeb072d.zip | |
Multiple Jobs on one spool.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs | 5 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs index ac7bc75c5..23cc4aa48 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs @@ -127,6 +127,11 @@ namespace Tango.Integration.Operation TimeSpan ContinuousRequestTimeout { get; set; } /// <summary> + /// Gets a value indicating whether the spool was replaced after the last job. + /// </summary> + bool IsSpoolReplaced { get; } + + /// <summary> /// Occurs when the machine <see cref="Status"/> has changed. /// </summary> event EventHandler<MachineStatuses> StatusChanged; diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index e15a5a0bd..fb43b55b3 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -154,6 +154,7 @@ namespace Tango.Integration.Operation EmergencyNotificationProvider = new UsbEmergencyNotificationProvider("COM1"); EnableJobLiquidQuantityValidation = true; FailsWithAdapter = true; + IsSpoolReplaced = true; ContinuousRequestTimeout = TimeSpan.FromSeconds(2); ResetInkFllingStatus(); } @@ -651,6 +652,11 @@ namespace Tango.Integration.Operation /// </summary> public TimeSpan ContinuousRequestTimeout { get; set; } + /// <summary> + /// Gets a value indicating whether the spool was replaced after the last job. + /// </summary> + public bool IsSpoolReplaced { get; private set; } + #endregion #region Virtual Methods @@ -1018,6 +1024,11 @@ namespace Tango.Integration.Operation { OnMachineStateChanged(MachineStatus.State); } + + if (MachineStatus.SpoolState == SpoolState.Absent) + { + IsSpoolReplaced = true; + } } /// <summary> @@ -1348,6 +1359,8 @@ namespace Tango.Integration.Operation /// <param name="job">The job.</param> protected virtual void OnPrintingEnded(JobHandler handler, Job job) { + IsSpoolReplaced = false; + LogManager.Log("Raising printing ended event..."); PrintingEnded?.Invoke(this, new PrintingEventArgs(handler, job) |
