- aggiunto anche nei beni, servizi e ospitalità la possibilità di aggiungerli come "Gruppo"

This commit is contained in:
Surya Paolo
2025-01-14 18:34:58 +01:00
parent 37970c5c91
commit 08a089881c
23 changed files with 484 additions and 94 deletions

View File

@@ -1151,6 +1151,15 @@ export const colmyGoods = [
icon: 'fas fa-users',
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
}),
AddCol({
name: 'groupname',
label_trans: 'proj.gruppo',
foredit: false,
tipovisu: costanti.TipoVisu.LINK,
fieldtype: costanti.FieldType.username_chip,
link: '/mygrp/groupname',
noshowlabel: true,
}),
AddCol({
name: 'adType',
label_trans: 'adTypes.name',
@@ -1499,6 +1508,15 @@ export const colmySkills = [
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
numpag_carousel: 2,
}),
AddCol({
name: 'groupname',
label_trans: 'proj.gruppo',
foredit: false,
tipovisu: costanti.TipoVisu.LINK,
fieldtype: costanti.FieldType.username_chip,
link: '/mygrp/groupname',
noshowlabel: true,
}),
AddCol({
name: 'descr',
label_trans: 'proj.shortdescr',
@@ -1692,6 +1710,15 @@ export const colmyHosp = [
icon: 'fas fa-users',
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
}),
AddCol({
name: 'groupname',
label_trans: 'proj.gruppo',
foredit: false,
tipovisu: costanti.TipoVisu.LINK,
fieldtype: costanti.FieldType.username_chip,
link: '/mygrp/groupname',
noshowlabel: true,
}),
AddCol({
name: 'idContribType',
label_trans: 'contribtype.name',
@@ -3188,6 +3215,7 @@ export const colTableUsersCNM = [
}),
AddCol({ name: 'profile.motivazioni', field: 'profile', subfield: 'motivazioni', label_trans: 'reg.motivazioni' }),
AddCol({ name: 'profile.biografia', field: 'profile', subfield: 'biografia', label_trans: 'reg.biografia' }),
AddCol({ name: 'profile.note', field: 'profile', subfield: 'note', label_trans: 'reg.note' }),
AddCol({
name: 'profile.competenze_professionalita',
field: 'profile',
@@ -3465,6 +3493,7 @@ export const colTableUsersISP = [
}),
// AddCol({ name: 'profile.motivazioni', field: 'profile', subfield: 'motivazioni', label_trans: 'reg.motivazioni', }),
AddCol({ name: 'profile.biografia', field: 'profile', subfield: 'biografia', label_trans: 'reg.biografia' }),
AddCol({ name: 'profile.note', field: 'profile', subfield: 'note', label_trans: 'reg.note' }),
AddCol({ name: 'profile.qualifica', field: 'profile', subfield: 'qualifica', label_trans: 'reg.qualifica' }),
AddCol({
name: 'profile.paymenttypes',

View File

@@ -7320,7 +7320,7 @@ export const tools = {
return ris
},
getdefaultnewrec_MySkill(groupname?: string): any {
getdefaultnewrec_MySkill(extrarec: any): any {
return {
idSector: tools.getSelectionByTable('sectors', 0, true),
@@ -7336,11 +7336,11 @@ export const tools = {
//**ADDFIELD_MYSKILL
website: '',
descr: '',
groupname,
groupname: extrarec && extrarec.groupname ? extrarec.groupname : '',
}
},
getdefaultnewrec_MyGoods(): any {
getdefaultnewrec_MyGoods(extrarec: any): any {
return {
// idSectorGood: 0,
// idGood: 0,
@@ -7366,6 +7366,7 @@ export const tools = {
//**ADDFIELD_MYSKILL
website: '',
descr: '',
groupname: extrarec && extrarec.groupname ? extrarec.groupname : '',
}
},
@@ -7442,7 +7443,7 @@ export const tools = {
}
},
getdefaultnewrec_MyHosp(): any {
getdefaultnewrec_MyHosp(extrarec: any): any {
return {
visibile: true,
adType: tools.getSelectionByTable('adtypes', costanti.AdType.OFFRO),
@@ -7455,6 +7456,7 @@ export const tools = {
descr: '',
note: '',
website: '',
groupname: extrarec && extrarec.groupname ? extrarec.groupname : '',
}
},
@@ -8367,13 +8369,13 @@ export const tools = {
getdefaultnewrec(table: string, extrarec?: any): any {
if (table === toolsext.TABMYSKILLS) {
return tools.getdefaultnewrec_MySkill()
return tools.getdefaultnewrec_MySkill(extrarec)
} else if (table === toolsext.TABMYBACHECAS) {
return tools.getdefaultnewrec_MyBacheca(extrarec)
} else if (table === toolsext.TABMYHOSPS) {
return tools.getdefaultnewrec_MyHosp()
return tools.getdefaultnewrec_MyHosp(extrarec)
} else if (table === toolsext.TABMYGOODS) {
return tools.getdefaultnewrec_MyGoods()
return tools.getdefaultnewrec_MyGoods(extrarec)
} else if (table === toolsext.TABMYGROUPS) {
return tools.getdefaultnewrec_MyGroup()
} else if (table === toolsext.TABCIRCUITS) {
@@ -8498,6 +8500,15 @@ export const tools = {
lk_as: 'mycities',
af_objId_tab: '',
},
lookup5: {
lk_tab: 'mygroups',
lk_LF: 'groupname',
lk_FF: 'groupname',
lk_as: 'mygrp',
lk_proj: shared_consts.getProjectForAll({}, table),
unwind: true,
noarray: true,
},
}
} else if (table === toolsext.TABMYBACHECAS) {
return {
@@ -8566,6 +8577,15 @@ export const tools = {
af_objId_tab: '',
lk_proj: shared_consts.getProjectForAll({}, table),
},
lookup3: {
lk_tab: 'mygroups',
lk_LF: 'groupname',
lk_FF: 'groupname',
lk_as: 'mygrp',
lk_proj: shared_consts.getProjectForAll({}, table),
unwind: true,
noarray: true,
},
}
} else {
@@ -8593,13 +8613,22 @@ export const tools = {
lk_as: 'sector',
af_objId_tab: '',
},
lookup5: {
lookup4: {
lk_tab: 'cities',
lk_LF: 'idCity',
lk_FF: '_id',
lk_as: 'mycities',
af_objId_tab: '',
},
lookup5: {
lk_tab: 'mygroups',
lk_LF: 'groupname',
lk_FF: 'groupname',
lk_as: 'mygrp',
lk_proj: shared_consts.getProjectForAll({}, table),
unwind: true,
noarray: true,
},
}
}
},