alsmanager_lib 3.0.158 → 3.0.160
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 -11
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -3175,7 +3175,8 @@ function getDevicesByDetailsSelectSQLite(search_criteria, details) {
|
|
|
3175
3175
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number,'(TN)') ";
|
|
3176
3176
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)') ";
|
|
3177
3177
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)') ";
|
|
3178
|
-
query += "end as Codice ";
|
|
3178
|
+
query += "end as Codice, ";
|
|
3179
|
+
query += "d.part_of as Parte ";
|
|
3179
3180
|
query += "from devices d ";
|
|
3180
3181
|
if (search_criteria.dev_status)
|
|
3181
3182
|
query += "left join device_usage du on d.id = du.id_device ";
|
|
@@ -3349,7 +3350,8 @@ function getDevicesByDetailsSelectMySQL(search_criteria, details) {
|
|
|
3349
3350
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number,'(TN)') ";
|
|
3350
3351
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)') ";
|
|
3351
3352
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)') ";
|
|
3352
|
-
query += "end as Codice ";
|
|
3353
|
+
query += "end as Codice, ";
|
|
3354
|
+
query += "d.part_of as Parte ";
|
|
3353
3355
|
query += "from devices d ";
|
|
3354
3356
|
if (search_criteria.dev_status)
|
|
3355
3357
|
query += "left join device_usage du on d.id = du.id_device ";
|
|
@@ -3526,7 +3528,8 @@ function getDevicesByDetailsSelectMySQL2(search_criteria, details) {
|
|
|
3526
3528
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number,'(TN)') ";
|
|
3527
3529
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)') ";
|
|
3528
3530
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)') ";
|
|
3529
|
-
query += "end as Codice ";
|
|
3531
|
+
query += "end as Codice, ";
|
|
3532
|
+
query += "d.part_of as Parte ";
|
|
3530
3533
|
query += "from devices d ";
|
|
3531
3534
|
if (search_criteria.dev_status)
|
|
3532
3535
|
query += "left join device_usage du on d.id = du.id_device ";
|
|
@@ -4834,11 +4837,11 @@ function getDevicesSelectComboSQLite(categoria, id_dev_exclude, with_properties)
|
|
|
4834
4837
|
*/
|
|
4835
4838
|
query += "case ";
|
|
4836
4839
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4837
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4840
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number,iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),''), ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4838
4841
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number, '(TN)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4839
4842
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4840
4843
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4841
|
-
query += "else '' "
|
|
4844
|
+
query += "else '' ";
|
|
4842
4845
|
query += "end as Descrizione ";
|
|
4843
4846
|
query += "from devices d ";
|
|
4844
4847
|
if (with_properties && with_properties > 0) {
|
|
@@ -4862,7 +4865,7 @@ function getDevicesSelectComboMySQL(categoria, id_dev_exclude, with_properties)
|
|
|
4862
4865
|
var query = "SELECT d.id, d.type as Tipo, d.manifacturer as Marca, d.model as Modello, ";
|
|
4863
4866
|
query += "case ";
|
|
4864
4867
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4865
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4868
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number,iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),''), ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4866
4869
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number, '(TN)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4867
4870
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4868
4871
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
@@ -4908,7 +4911,7 @@ function getDevicesSelectBySiteComboSQLite(id_site, dev_type) {
|
|
|
4908
4911
|
var query = "SELECT d.id, d.type as Tipo, d.manifacturer as Marca, d.model as Modello, ";
|
|
4909
4912
|
query += "case ";
|
|
4910
4913
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4911
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4914
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number,iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),''), ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4912
4915
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number, '(TN)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4913
4916
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4914
4917
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
@@ -4929,7 +4932,7 @@ function getDevicesSelectBySiteComboMySQL(id_site, dev_type) {
|
|
|
4929
4932
|
var query = "SELECT d.id, d.type as Tipo, d.manifacturer as Marca, d.model as Modello, ";
|
|
4930
4933
|
query += "case ";
|
|
4931
4934
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4932
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4935
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number,iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),''), ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4933
4936
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number, '(TN)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4934
4937
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4935
4938
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
@@ -4950,7 +4953,7 @@ function getDevicesSelectBySiteComboMySQL2(id_site, dev_type) {
|
|
|
4950
4953
|
var query = "SELECT d.id, d.type as Tipo, d.manifacturer as Marca, d.model as Modello, ";
|
|
4951
4954
|
query += "case ";
|
|
4952
4955
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4953
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4956
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number,iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),''), ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4954
4957
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number, '(TN)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4955
4958
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
4956
4959
|
query += "when d.serial_no != '' and d.serial_no is not null then concat(d.serial_no,'(S/N)', ' - ', d.type, ' - ', d.manifacturer, ' - ', d.model) ";
|
|
@@ -5093,7 +5096,7 @@ function getDevicesWithPropertiesSQLite(id_device) {
|
|
|
5093
5096
|
var query = "select ";
|
|
5094
5097
|
query += "case ";
|
|
5095
5098
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)') ";
|
|
5096
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then d.inv_ict3_number ";
|
|
5099
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),'')) ";
|
|
5097
5100
|
query += "when d.inv_pnrr_number != '' and d.inv_pnrr_number is not null then d.inv_pnrr_number ";
|
|
5098
5101
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number,'(TN)') ";
|
|
5099
5102
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)') ";
|
|
@@ -5112,7 +5115,7 @@ function getDevicesWithPropertiesMySQL(id_device) {
|
|
|
5112
5115
|
var query = "select ";
|
|
5113
5116
|
query += "case ";
|
|
5114
5117
|
query += "when d.no_inventario is not null and d.no_inventario > 0 then concat(d.id, '(ID)') ";
|
|
5115
|
-
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then d.inv_ict3_number ";
|
|
5118
|
+
query += "when d.inv_ict3_number != '' and d.inv_ict3_number is not null then concat(d.inv_ict3_number, iif(d.part_of is not null and trim(d.part_of) <> '', concat('/',d.part_of),'')) ";
|
|
5116
5119
|
query += "when d.inv_pnrr_number != '' and d.inv_pnrr_number is not null then d.inv_pnrr_number ";
|
|
5117
5120
|
query += "when d.inv_tn_number != '' and d.inv_tn_number is not null then concat(d.inv_tn_number,'(TN)') ";
|
|
5118
5121
|
query += "when d.inv_tndigit_number != '' and d.inv_tndigit_number is not null then concat(d.inv_tndigit_number,'(TNDigit)') ";
|