alsmanager_lib 3.0.91 → 3.0.92
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 +51 -1
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -14478,7 +14478,51 @@ function getMapScript(map_tag) {
|
|
|
14478
14478
|
return text;
|
|
14479
14479
|
}
|
|
14480
14480
|
|
|
14481
|
+
function writeMapPoint(id_place, floor, id_site, x_coor, y_coor, map_scale) {
|
|
14482
|
+
var query = "insert into map_points (id_place, floor, id_site, point_x, point_y, map_scale) values ";
|
|
14483
|
+
query += "('" + id_place + "', " + floor + ", " + id_site + ", " + x_coor + ", " + y_coor + ", " + map_scale + ")";
|
|
14484
|
+
return query;
|
|
14485
|
+
}
|
|
14486
|
+
|
|
14487
|
+
function updateMapPoint(id_point, id_site, x_coor, y_coor, map_scale) {
|
|
14488
|
+
var query = "update map_points set (id_place, floor, id_site, point_x, point_y, map_scale) values ";
|
|
14489
|
+
query += "id_place = '" + id_place + "', ";
|
|
14490
|
+
query += "floor = " + floor + ", ";
|
|
14491
|
+
query += "id_site = " + id_site + ", ";
|
|
14492
|
+
query += "point_x = " + x_coor + ", ";
|
|
14493
|
+
query += "point_y = " + y_coor + ", ";
|
|
14494
|
+
query += "map_scale = " + map_scale + " ";
|
|
14495
|
+
query += "where id = " + id_point;
|
|
14496
|
+
return query;
|
|
14497
|
+
}
|
|
14481
14498
|
|
|
14499
|
+
function removeMapPoint(id_point) {
|
|
14500
|
+
var query = "delete from map_points ";
|
|
14501
|
+
query += "where id = " + id_point;
|
|
14502
|
+
return query;
|
|
14503
|
+
}
|
|
14504
|
+
|
|
14505
|
+
function removeMapPointByPlace(id_place, floor) {
|
|
14506
|
+
var query = "delete from map_points ";
|
|
14507
|
+
query += "where id_place = '" + id_place + "'";
|
|
14508
|
+
if (floor) {
|
|
14509
|
+
query += " and floor = " + floor;
|
|
14510
|
+
}
|
|
14511
|
+
return query;
|
|
14512
|
+
}
|
|
14513
|
+
|
|
14514
|
+
|
|
14515
|
+
function queryMapPointsByPlaceAndFloor(id_place, floor, map_scale) {
|
|
14516
|
+
var query = "select id, floor, id_site, from map_points ";
|
|
14517
|
+
query += "";
|
|
14518
|
+
return query;
|
|
14519
|
+
}
|
|
14520
|
+
|
|
14521
|
+
function getMapPointsById(id_point) {
|
|
14522
|
+
var query = "";
|
|
14523
|
+
query += "";
|
|
14524
|
+
return query;
|
|
14525
|
+
}
|
|
14482
14526
|
|
|
14483
14527
|
// Exports
|
|
14484
14528
|
|
|
@@ -14866,6 +14910,12 @@ module.exports = {
|
|
|
14866
14910
|
removeAltriBeniFromDismissione,
|
|
14867
14911
|
removeDismissioneAltroBeneFromDismissione,
|
|
14868
14912
|
//
|
|
14869
|
-
getMapScript
|
|
14913
|
+
getMapScript,
|
|
14914
|
+
writeMapPoint,
|
|
14915
|
+
updateMapPoint,
|
|
14916
|
+
removeMapPoint,
|
|
14917
|
+
removeMapPointByPlace,
|
|
14918
|
+
queryMapPointsByPlaceAndFloor,
|
|
14919
|
+
getMapPointsById
|
|
14870
14920
|
};
|
|
14871
14921
|
// end of source
|