aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2020-01-22 11:28:50 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2020-01-22 11:28:50 +0200
commitb06466e5b4fd861207452fa4cebb2ee68195a8e6 (patch)
tree754c87679293ee362db1c717b61c38b2a8592b7c /Software/Visual_Studio/Utilities/Tango.JobRunsGenerator
parent21654e86a9909a0961711d4d1901766760f7bb99 (diff)
downloadTango-b06466e5b4fd861207452fa4cebb2ee68195a8e6.tar.gz
Tango-b06466e5b4fd861207452fa4cebb2ee68195a8e6.zip
Moved job run liquid quantity integral method to static method.
Added liquid quantity fix to job run fixer.
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.JobRunsGenerator')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs6
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Tango.JobRunsGenerator.csproj8
2 files changed, 14 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs b/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs
index 40c784815..7808a6957 100644
--- a/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs
+++ b/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Program.cs
@@ -9,6 +9,7 @@ using Tango.BL;
using Tango.BL.Builders;
using Tango.BL.Entities;
using Tango.Core;
+using Tango.Integration.Operation;
namespace Tango.JobRunsGenerator
{
@@ -80,6 +81,11 @@ namespace Tango.JobRunsGenerator
run.JobString = job.ToJobFileWhenLoaded().ToString();
}
+ if (run.LiquidQuantityString == null)
+ {
+ run.LiquidQuantities = MachineOperator.CreateJobRunLiquidQuantities(job, machine.Configuration, job.Rml.GetActiveProcessGroup().ProcessParametersTables.First(), run.EndPosition, job.LengthIncludingNumberOfUnits, 20);
+ }
+
saveIndex++;
if (saveIndex > 100)
diff --git a/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Tango.JobRunsGenerator.csproj b/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Tango.JobRunsGenerator.csproj
index 9346439ea..6fa34ed2d 100644
--- a/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Tango.JobRunsGenerator.csproj
+++ b/Software/Visual_Studio/Utilities/Tango.JobRunsGenerator/Tango.JobRunsGenerator.csproj
@@ -69,10 +69,18 @@
<Project>{a34ee0f0-649d-41c8-8489-b6f1cc6924ee}</Project>
<Name>Tango.Core</Name>
</ProjectReference>
+ <ProjectReference Include="..\..\Tango.Integration\Tango.Integration.csproj">
+ <Project>{4206AC58-3B57-4699-8835-90BF6DB01A61}</Project>
+ <Name>Tango.Integration</Name>
+ </ProjectReference>
<ProjectReference Include="..\..\Tango.PMR\Tango.PMR.csproj">
<Project>{e4927038-348d-4295-aaf4-861c58cb3943}</Project>
<Name>Tango.PMR</Name>
</ProjectReference>
+ <ProjectReference Include="..\..\Tango.Transport\Tango.Transport.csproj">
+ <Project>{74E700B0-1156-4126-BE40-EE450D3C3026}</Project>
+ <Name>Tango.Transport</Name>
+ </ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> \ No newline at end of file