aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-21 23:17:25 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-21 23:17:25 +0200
commitcd670d0404673efd095ae2baec1873b916c49c81 (patch)
tree2b058baa663372411956ece0c6cfdae8c1382742 /Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
parentaeb55d27a8abf291913724fc1676ecbf27cb2c1a (diff)
downloadTango-cd670d0404673efd095ae2baec1873b916c49c81.tar.gz
Tango-cd670d0404673efd095ae2baec1873b916c49c81.zip
Implemented not existing deleted RML check for PPC update and error message.
Added proper notification when trying to remove used RML onMS.
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
index ade8f88bc..1bb025217 100644
--- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
+++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
@@ -330,6 +330,10 @@ namespace Tango.MachineService.Controllers
var hardwareVersions = db.HardwareVersions.Select(x => new { x.Guid, x.LastUpdated }).ToList();
var catalogs = db.ColorCatalogs.Select(x => new { x.Guid, x.LastUpdated }).ToList();
+ var arr = request.UsedRmlsGuids.ToArray();
+ var existingRml = db.Rmls.Where(x => arr.Contains(x.Guid)).Select(x => x.Guid).Distinct().ToList();
+ response.UsedNotExistingRmlsGuids = arr.Where(x => !existingRml.Exists(y => y == x)).ToList();
+
bool hasDatabaseUpdates = false;
hasDatabaseUpdates = machine.LastUpdated > request.MachineLastUpdated;