aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs2
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Controls/RunningJobViewerEureka.xaml.cs4
-rw-r--r--Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs3
-rw-r--r--Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs1
4 files changed, 8 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs
index 5738fe8a0..c874e5fc2 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs
@@ -1805,7 +1805,7 @@ namespace Tango.PPC.Jobs.ViewModels
{
if (!e.JobHandler.Status.IsCompleted)
{
- if (e.JobHandler.JobStatus.Progress <= 0) return;
+ if (e.JobHandler.JobStatus.Progress <= e.JobHandler.ProcessParameters.DryerBufferLengthMeters) return;
var model = JobResumeDB.Default.Get(e.Job.Guid);
bool insert = false;
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Controls/RunningJobViewerEureka.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Controls/RunningJobViewerEureka.xaml.cs
index c87c50db2..11823f797 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Controls/RunningJobViewerEureka.xaml.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Controls/RunningJobViewerEureka.xaml.cs
@@ -251,6 +251,10 @@ namespace Tango.PPC.UI.Controls
if(_prevUnit < currentUnit)
{
+ if(_prevOffset == 0)//resume
+ {
+ _prevOffset = ControlWidth * (1-multiplier) * currentUnit;
+ }
_addOffset = _prevOffset;
//Debug.WriteLine($"OnSliderValueChanged prevOffset: '{_prevOffset}' currentUnit = {currentUnit}, total:{total}");
}
diff --git a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs
index 9464b37ec..7074582d0 100644
--- a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs
+++ b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs
@@ -847,10 +847,11 @@ namespace Tango.Emulations.Emulators
double firstUnitStartPosition = request.Message.FirstUnitStartPosition;
bool addedResume = firstUnitStartPosition <= 0;
+ bool bIsResumeProcess = firstUnitStartPosition > 0;
for (int i = 0; i < units; i++)
{
- while (progress < unit_length + (i == units - 1 ? dryerLength : 0) && !_cancelJob)
+ while (progress < unit_length + (!bIsResumeProcess && i == units - 1 ? dryerLength : 0) && !_cancelJob)
{
var status = new PMR.Printing.JobStatus();
status.Progress = progress;
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
index d159b20bc..11634109f 100644
--- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
+++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
@@ -3254,6 +3254,7 @@ namespace Tango.Integration.Operation
{
resumePreProgress = config.ResumeConfig.GlobalStartPosition - request.FirstUnitStartPosition;
request.FirstUnitStartPosition = config.ResumeConfig.FirstUnitStartPosition;
+ request.JobTicket.Length = (request.JobTicket.Length / Math.Max(request.JobTicket.NumberOfUnits, 1)) *(int)Math.Max(config.ResumeConfig.RemainingUnits, 1);
request.JobTicket.NumberOfUnits = (uint)Math.Max(config.ResumeConfig.RemainingUnits, 1);
}