alsmanager_lib 2.0.73 → 2.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules.js +14 -8
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -2182,7 +2182,7 @@ function updateDisplayPartPropertiesSQLite(id_device, dev_prop) {
|
|
|
2182
2182
|
query += "touch = " + dev_prop.touch + ", ";
|
|
2183
2183
|
query += "size_inch = " + dev_prop.size + ", ";
|
|
2184
2184
|
query += "format = '" + dev_prop.format + "', ";
|
|
2185
|
-
query += "technology = '" + dev_prop.
|
|
2185
|
+
query += "technology = '" + dev_prop.technology + "', ";
|
|
2186
2186
|
query += "is_removable = " + dev_prop.is_removable + " ";
|
|
2187
2187
|
query += "where id_device = " + id_device;
|
|
2188
2188
|
return query;
|
|
@@ -2194,7 +2194,7 @@ function updateDisplayPartPropertiesMySQL() {
|
|
|
2194
2194
|
query += "touch = :touch, ";
|
|
2195
2195
|
query += "size_inch = :size, ";
|
|
2196
2196
|
query += "format = :format, ";
|
|
2197
|
-
query += "technology = :
|
|
2197
|
+
query += "technology = :technology, ";
|
|
2198
2198
|
query += "is_removable = :is_removable ";
|
|
2199
2199
|
query += "where id_device = :id_device";
|
|
2200
2200
|
return query;
|
|
@@ -2284,21 +2284,27 @@ function getDisplayProperties(db_used, id_device) {
|
|
|
2284
2284
|
function createDisplayPropertiesMySQLObj(id_device, dev_prop) {
|
|
2285
2285
|
var obj = {};
|
|
2286
2286
|
obj.id_device = id_device;
|
|
2287
|
-
|
|
2287
|
+
if (!dev_prop.touch || dev_prop.touch == null)
|
|
2288
|
+
obj.touch = 0;
|
|
2289
|
+
else
|
|
2290
|
+
obj.touch = dev_prop.touch;
|
|
2288
2291
|
obj.format = dev_prop.formato;
|
|
2289
2292
|
obj.size = dev_prop.dimensione;
|
|
2290
2293
|
obj.technology = dev_prop.tecnologia;
|
|
2291
|
-
|
|
2294
|
+
if (!dev_prop.rimovibile || dev_prop.rimovibile == null)
|
|
2295
|
+
obj.is_removable = 0;
|
|
2296
|
+
else
|
|
2297
|
+
obj.is_removable = dev_prop.rimovibile;
|
|
2292
2298
|
return obj;
|
|
2293
2299
|
}
|
|
2294
2300
|
|
|
2295
2301
|
function insertDisplayPropertiesSQLite(id_device, dev_prop) {
|
|
2296
|
-
var query = "insert into device_monitor (id_device, touch, size_inch, format,
|
|
2302
|
+
var query = "insert into device_monitor (id_device, touch, size_inch, format, technology) values ";
|
|
2297
2303
|
query += "(" + id_device + ", " + dev_prop.touch + ", " + dev_prop.size + ", '" + dev_prop.format + "', '" + dev_prop.technology + "')";
|
|
2298
2304
|
return query;
|
|
2299
2305
|
}
|
|
2300
2306
|
function insertDisplayPropertiesMySQL() {
|
|
2301
|
-
var query = "insert into device_monitor (id_device, touch, size_inch, format,
|
|
2307
|
+
var query = "insert into device_monitor (id_device, touch, size_inch, format, technology) values ";
|
|
2302
2308
|
query += "(:id_device, :touch, :size, :format, :technology)";
|
|
2303
2309
|
return query;
|
|
2304
2310
|
}
|
|
@@ -2326,7 +2332,7 @@ function updateDisplayPropertiesSQLite(id_device, dev_prop) {
|
|
|
2326
2332
|
query += "touch = " + dev_prop.touch + ", ";
|
|
2327
2333
|
query += "size_inch = " + dev_prop.size + ", ";
|
|
2328
2334
|
query += "format = '" + dev_prop.format + "', ";
|
|
2329
|
-
query += "technology = '" + dev_prop.
|
|
2335
|
+
query += "technology = '" + dev_prop.technology + "' ";
|
|
2330
2336
|
query += "where id_device = " + id_device;
|
|
2331
2337
|
return query;
|
|
2332
2338
|
}
|
|
@@ -2337,7 +2343,7 @@ function updateDisplayPropertiesMySQL() {
|
|
|
2337
2343
|
query += "touch = :touch, ";
|
|
2338
2344
|
query += "size_inch = :size, ";
|
|
2339
2345
|
query += "format = :format, ";
|
|
2340
|
-
query += "technology = :
|
|
2346
|
+
query += "technology = :technology ";
|
|
2341
2347
|
query += "where id_device = :id_device";
|
|
2342
2348
|
return query;
|
|
2343
2349
|
}
|