aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules
diff options
context:
space:
mode:
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...");