aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2022-05-31 13:21:14 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2022-05-31 13:21:14 +0300
commitc19b747be8ada6a1fc1aaa0c792317080e63170e (patch)
tree96447c44a5d14decc4d4d846074cfd10451e2e6a /Software/Visual_Studio/PPC/Modules
parent209d0f0c99d0244fb4678e975141d0f602fe3ced (diff)
downloadTango-c19b747be8ada6a1fc1aaa0c792317080e63170e.tar.gz
Tango-c19b747be8ada6a1fc1aaa0c792317080e63170e.zip
PPC. Bug: Create BrushStop with color space CMYK from MS job.
Related Work Items: #6587
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs20
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModels/JobViewVM.cs4
2 files changed, 17 insertions, 7 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs
index e7a282382..2368cf936 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs
@@ -689,12 +689,22 @@ namespace Tango.PPC.Jobs.Models
_stopindex = brushStop.StopIndex;
PreventPropertyUpdate = true;
- if (version == 1)
+ if (version == 1)//loaded from MS
{
- Cyan = brushStop.GetVolume(LiquidTypes.Cyan);
- Magenta = brushStop.GetVolume(LiquidTypes.Magenta);
- Yellow = brushStop.GetVolume(LiquidTypes.Yellow);
- Black = brushStop.GetVolume(LiquidTypes.Black);
+ if (brushStop.ColorSpace.Space == ColorSpaces.CMYK)
+ {
+ Cyan = brushStop.Cyan * 100;
+ Magenta = brushStop.Magenta * 100;
+ Yellow = brushStop.Yellow * 100;
+ Black = brushStop.Black * 100;
+ }
+ else
+ {
+ Cyan = brushStop.GetVolume(LiquidTypes.Cyan);
+ Magenta = brushStop.GetVolume(LiquidTypes.Magenta);
+ Yellow = brushStop.GetVolume(LiquidTypes.Yellow);
+ Black = brushStop.GetVolume(LiquidTypes.Black);
+ }
}
else
{
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 f1a736180..590f39399 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
@@ -431,8 +431,8 @@ namespace Tango.PPC.Jobs.ViewModels
//await SetSpoolTension(Job.Rml);
LogManager.Log("Loading RMLS...");
- //Rmls = (await new RmlsCollectionBuilder(_db).SetAll().ForHeadType(MachineProvider.Machine.MachineHeadType).ForSite(MachineProvider.Machine.SiteGuid).BuildAsync()).OrderBy(x => x.FinalName).ToList();
- Rmls = (await new RmlsCollectionBuilder(_db).SetAll().BuildAsync()).OrderBy(x => x.FinalName).ToList();
+ Rmls = (await new RmlsCollectionBuilder(_db).SetAll().ForHeadType(MachineProvider.Machine.MachineHeadType).ForSite(MachineProvider.Machine.SiteGuid).BuildAsync()).OrderBy(x => x.FinalName).ToList();
+ // for test only: Rmls = (await new RmlsCollectionBuilder(_db).SetAll().BuildAsync()).OrderBy(x => x.FinalName).ToList();
LogManager.Log("Loading Color Spaces...");
ColorSpaces = await _db.ColorSpaces.Where(x => x.Code != (int)BL.Enumerations.ColorSpaces.CMYK).ToListAsync();
LogManager.Log("Loading Spool Types...");