Aggiunto il filtro per Provincia

This commit is contained in:
paoloar77
2022-01-23 23:25:19 +01:00
parent 6e54fa06c4
commit 030523c8ee
25 changed files with 1097 additions and 405 deletions

View File

@@ -4484,7 +4484,7 @@ export const tools = {
'(?:\"([^\"]*(?:\"\"[^\"]*)*)\"|' +
// Standard fields.
'([^\'\\' + strDelimiter + '\\r\\n]*))'
'([^\"\\' + strDelimiter + '\\r\\n]*))'
),
'gi'
)
@@ -4551,6 +4551,33 @@ export const tools = {
return (arrData)
},
getValue(myrow: any, field: string, subfield: string) {
let myvalue = ''
if (subfield !== '') {
if (myrow[field] === undefined) {
myrow[field] = {}
myvalue = ''
} else {
myvalue = myrow[field][subfield]
}
} else {
if (field !== '')
myvalue = myrow[field]
else {
// @ts-ignore
myvalue = myrow
}
}
if (Array.isArray(myvalue)) {
return myvalue.length > 0 ? myvalue : ''
} else {
return myvalue
}
},
addslashes(str: string) {
return (str + '').replace(/[\\"']/g, '\\$&').replace(/\u0000/g, '\\0')
},
// getLocale() {
// if (navigator.languages && navigator.languages.length > 0) {