alsmanager_lib 3.0.230 → 3.0.232
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 +23 -1
- 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" (
|
|
@@ -17416,7 +17436,7 @@ function insertPrinterCartridge(tipo, marca, modello, color, numero, data_ultimo
|
|
|
17416
17436
|
}
|
|
17417
17437
|
|
|
17418
17438
|
function updatePrinterCartridge(id_cart, tipo, marca, modello, color, numero, data_ultimo_acq, note) {
|
|
17419
|
-
var query = "update printer_cartridges
|
|
17439
|
+
var query = "update printer_cartridges ";
|
|
17420
17440
|
var dt_ultimo_acq_str = convertDateToStringDB(data_ultimo_acq);
|
|
17421
17441
|
query += "set ";
|
|
17422
17442
|
query += "tipo = '" + tipo + "', ";
|
|
@@ -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,
|