- aggiunto anche nei beni, servizi e ospitalità la possibilità di aggiungerli come "Gruppo"
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user