diff options
| author | Roy <Roy.mail.net@gmail.com> | 2023-03-05 22:47:23 +0200 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2023-03-05 22:47:23 +0200 |
| commit | a47bbe8211c4b7a02c6974cba017d77ea31ffc37 (patch) | |
| tree | 59e94a7511053aaa0dc78978cb572f3a8fe3c57a /Software/Visual_Studio/Tango.Integration | |
| parent | c256fc124a867707c787074c9076227341766794 (diff) | |
| download | Tango-a47bbe8211c4b7a02c6974cba017d77ea31ffc37.tar.gz Tango-a47bbe8211c4b7a02c6974cba017d77ea31ffc37.zip | |
Dialog Adaptations.
Separate Job View.
Machine Status View Start.
EurekaTouchPanel.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs | 6 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs b/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs index a8208323a..d21dcc781 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/JobHandler.cs @@ -5,6 +5,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.BL.Entities; +using Tango.BL.Enumerations; using Tango.Core; using Tango.Logging; using Tango.PMR.Printing; @@ -26,6 +27,7 @@ namespace Tango.Integration.Operation protected double _last_progress; protected const int PROGRESS_REPORT_RANGE_METERS = 5; protected bool loggedContinueMessage; + private MachineTypes _machineType; #region Events @@ -154,9 +156,10 @@ namespace Tango.Integration.Operation /// Initializes a new instance of the <see cref="JobHandler"/> class. /// </summary> /// <param name="cancelAction">The cancel action.</param> - public JobHandler(Action cancelAction, Job job, JobTicket jobTicket, ProcessParametersTable processParameters, JobHandlerModes mode) : this() + public JobHandler(Action cancelAction, Job job, JobTicket jobTicket, ProcessParametersTable processParameters, JobHandlerModes mode, MachineTypes machineType) : this() { _mode = mode; + _machineType = machineType; ProcessParameters = processParameters; Job = job; @@ -175,6 +178,7 @@ namespace Tango.Integration.Operation Status = new RunningJobStatus(); + Status.TotalTime = job.GetEstimatedDuration(processParameters); Status.RemainingUnits = job.NumberOfUnits; Status.TotalProgress = Job.LengthIncludingNumberOfUnits + processParameters.DryerBufferLengthMeters; diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index 9c94363df..c5841a8b5 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -1801,7 +1801,7 @@ namespace Tango.Integration.Operation handler.CanCancel = true; LogManager.Log(ex, "Failed to cancel job."); } - }, job, jobTicket, processParameters, JobHandlingMode); + }, job, jobTicket, processParameters, JobHandlingMode, MachineType); handler.StatusChanged += (x, s) => { @@ -2913,7 +2913,7 @@ namespace Tango.Integration.Operation handler.CanCancel = true; LogManager.Log(ex, "Failed to cancel job."); } - }, clonedJob, ticket, processParameters, JobHandlingMode); + }, clonedJob, ticket, processParameters, JobHandlingMode, MachineType); handler.StatusChanged += (x, s) => { |
