alsmanager_lib 3.0.230 → 3.0.231

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.
Files changed (2) hide show
  1. package/lib/modules.js +22 -0
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -17105,6 +17105,7 @@ function removeDismissioneAltroBeneFromDismissione(db_used, id_benedismiss, id_d
17105
17105
 
17106
17106
 
17107
17107
  //End Manage altri beni
17108
+ //Manage Maps
17108
17109
  function getMapScript(map_tag) {
17109
17110
  var text = "<script>";
17110
17111
  text += "(function($scope) {";
@@ -17192,6 +17193,25 @@ function getMapPointsById(id_point) {
17192
17193
  query += "where id = " + id_point;
17193
17194
  return query;
17194
17195
  }
17196
+
17197
+ function getMapByPlaceAndFloor(id_place, floor) {
17198
+ var query = "select id, id_place, piano, initial_zoom, filename from maps ";
17199
+ query += "where id_place = '" + id_place + "' ";
17200
+ query += "and piano = " + floor + " ";
17201
+ query += "limit 1";
17202
+ return query;
17203
+ }
17204
+
17205
+ function getMapLastRefByIdMap(id_map) {
17206
+ var query = "select date_ref from maps_cronology ";
17207
+ query += "where id_map = " + id_map + " ";
17208
+ query += "order by date_ref desc ";
17209
+ query += "limit 1";
17210
+ return query;
17211
+ }
17212
+
17213
+
17214
+ //End Manage Maps
17195
17215
  // Printer management
17196
17216
  /*
17197
17217
  CREATE TABLE "printer_cost_per_copy" (
@@ -17974,6 +17994,8 @@ module.exports = {
17974
17994
  removeMapPointByPlace,
17975
17995
  queryMapPointsByPlaceAndFloor,
17976
17996
  getMapPointsById,
17997
+ getMapByPlaceAndFloor,
17998
+ getMapLastRefByIdMap,
17977
17999
  //
17978
18000
  selectPrinters,
17979
18001
  selectCountersPrinters,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./lib/modules.js",
5
5
  "./dbconn": "./lib/dbconn.js"
6
6
  },
7
- "version": "3.0.230",
7
+ "version": "3.0.231",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",