alsmanager_lib 3.0.127 → 3.0.129
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 +46 -6
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -2817,6 +2817,41 @@ function queryDeviceModelsByFilter(db_used, manifacturer, dev_type) {
|
|
|
2817
2817
|
|
|
2818
2818
|
|
|
2819
2819
|
//end of Manage models
|
|
2820
|
+
//Infos from details
|
|
2821
|
+
function queryOSByFilter(tipo) {
|
|
2822
|
+
var query = "select distinct dt.os as os from devices d ";
|
|
2823
|
+
query += "left join device_pc dt on d.id = dt.id_device ";
|
|
2824
|
+
query += "where d.type = '" + tipo + "' ";
|
|
2825
|
+
query += "order dt.os";
|
|
2826
|
+
return query;
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
function queryOSVersionByFilter(os) {
|
|
2830
|
+
var query = "select distinct dt.os_version as version from device_pc dt ";
|
|
2831
|
+
query += "where dt.os = '" + os + "' ";
|
|
2832
|
+
query += "order dt.os_version";
|
|
2833
|
+
return query;
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
function queryStoragesByFilter() {
|
|
2837
|
+
var query = "";
|
|
2838
|
+
query += "";
|
|
2839
|
+
return query;
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
function queryAddOnsByFilter() {
|
|
2843
|
+
var query = "";
|
|
2844
|
+
query += "";
|
|
2845
|
+
return query;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
function queryNetworksByFilter() {
|
|
2849
|
+
var query = "";
|
|
2850
|
+
query += "";
|
|
2851
|
+
return query;
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
//End Infos from details
|
|
2820
2855
|
|
|
2821
2856
|
// Device select
|
|
2822
2857
|
function getDevicesSelectSQLite(search_type, inv_code, dev_type, marca, dev_model, is_PNRR, dev_status, dev_gestione, no_inv, in_consegna, id_dev_exclude) {
|
|
@@ -3547,7 +3582,7 @@ function queryDeviceByIdSQLite(id_device) {
|
|
|
3547
3582
|
query += "d.manifacturer as Marca, d.model as Modello, ";
|
|
3548
3583
|
query += "d.inv_ict3_number as Inventario, d.serial_no, ";
|
|
3549
3584
|
query += "d.inv_tn_number, d.inv_pnrr_number, d.inv_tndigit_number, ";
|
|
3550
|
-
query += "d.note, d.num_objects, d.no_inventario from devices d ";
|
|
3585
|
+
query += "d.note, d.num_objects, d.no_inventario, d.peso_g from devices d ";
|
|
3551
3586
|
query += "where d.id = " + id_device;
|
|
3552
3587
|
return query;
|
|
3553
3588
|
}
|
|
@@ -3556,7 +3591,7 @@ function queryDeviceByIdMySQL(id_device) {
|
|
|
3556
3591
|
query += "d.manifacturer as Marca, d.model as Modello, ";
|
|
3557
3592
|
query += "d.inv_ict3_number as Inventario, d.serial_no, ";
|
|
3558
3593
|
query += "d.inv_tn_number, d.inv_pnrr_number, d.inv_tndigit_number, ";
|
|
3559
|
-
query += "d.note, d.num_objects, d.no_inventario from devices d ";
|
|
3594
|
+
query += "d.note, d.num_objects, d.no_inventario, d.peso_g from devices d ";
|
|
3560
3595
|
query += "where d.id = :id_device";
|
|
3561
3596
|
return query;
|
|
3562
3597
|
}
|
|
@@ -3589,7 +3624,7 @@ function queryDeviceForConsegneByIdSQLite(id_device) {
|
|
|
3589
3624
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)') ";
|
|
3590
3625
|
query += "else concat(d.id, '(ID)') "
|
|
3591
3626
|
query += "end as Codice, ";
|
|
3592
|
-
query += "d.note, d.num_objects, d.no_inventario from devices d ";
|
|
3627
|
+
query += "d.note, d.num_objects, d.no_inventario, d.peso_g from devices d ";
|
|
3593
3628
|
query += "where d.id = " + id_device;
|
|
3594
3629
|
return query;
|
|
3595
3630
|
}
|
|
@@ -3604,7 +3639,7 @@ function queryDeviceForConsegneByIdMySQL(id_device) {
|
|
|
3604
3639
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)') ";
|
|
3605
3640
|
query += "else concat(d.id, '(ID)') "
|
|
3606
3641
|
query += "end as Codice, ";
|
|
3607
|
-
query += "d.note, d.num_objects, d.no_inventario from devices d ";
|
|
3642
|
+
query += "d.note, d.num_objects, d.no_inventario, d.peso_g from devices d ";
|
|
3608
3643
|
query += "where d.id = :id_device";
|
|
3609
3644
|
return query;
|
|
3610
3645
|
}
|
|
@@ -3636,7 +3671,7 @@ function queryDeviceByIdentificativoSQLite(identificativo) {
|
|
|
3636
3671
|
query += "d.manifacturer as Marca, d.model as Modello, ";
|
|
3637
3672
|
query += "d.inv_ict3_number as Inventario, d.serial_no, ";
|
|
3638
3673
|
query += "d.inv_tn_number, d.inv_pnrr_number, d.inv_tndigit_number, ";
|
|
3639
|
-
query += "d.note, d.num_objects, d.no_inventario from devices d ";
|
|
3674
|
+
query += "d.note, d.num_objects, d.no_inventario, d.peso_g from devices d ";
|
|
3640
3675
|
query += "where (d.inv_ict3_number = '" + identificativo + "' or ";
|
|
3641
3676
|
query += "d.serial_no = '" + identificativo + "' or ";
|
|
3642
3677
|
query += "d.inv_tndigit_number = '" + identificativo + "' or ";
|
|
@@ -3649,7 +3684,7 @@ function queryDeviceByIdentificativoMySQL(identificativo) {
|
|
|
3649
3684
|
query += "d.manifacturer as Marca, d.model as Modello, ";
|
|
3650
3685
|
query += "d.inv_ict3_number as Inventario, d.serial_no, ";
|
|
3651
3686
|
query += "d.inv_tn_number, d.inv_pnrr_number, d.inv_tndigit_number, ";
|
|
3652
|
-
query += "d.note, d.num_objects, d.no_inventario from devices d ";
|
|
3687
|
+
query += "d.note, d.num_objects, d.no_inventario, d.peso_g from devices d ";
|
|
3653
3688
|
query += "where (d.inv_ict3_number = :identificativo or ";
|
|
3654
3689
|
query += "d.serial_no = :identificativo or ";
|
|
3655
3690
|
query += "d.inv_tndigit_number = :identificativo or ";
|
|
@@ -15027,6 +15062,11 @@ module.exports = {
|
|
|
15027
15062
|
queryDeviceManifacturesByFilter,
|
|
15028
15063
|
queryDeviceModels,
|
|
15029
15064
|
queryDeviceModelsByFilter,
|
|
15065
|
+
queryOSByFilter,
|
|
15066
|
+
queryOSVersionByFilter,
|
|
15067
|
+
queryStoragesByFilter,
|
|
15068
|
+
queryAddOnsByFilter,
|
|
15069
|
+
queryNetworksByFilter,
|
|
15030
15070
|
getDevicesSelectByRelated,
|
|
15031
15071
|
getDevicesSelect,
|
|
15032
15072
|
getDevicesByIdDoc,
|