Accomodations ...
This commit is contained in:
@@ -59,16 +59,16 @@ export const costanti = {
|
||||
visible: true,
|
||||
title: 'Scambio Ospitalità',
|
||||
strsingolo: 'Scambio Ospitalità',
|
||||
to: '/places',
|
||||
to: '/hosps',
|
||||
icon: 'fas fa-taxi',
|
||||
color: 'lime-6',
|
||||
textcolor: '',
|
||||
hint: '',
|
||||
disable: true,
|
||||
disable: false,
|
||||
small: false,
|
||||
},
|
||||
{
|
||||
visible: true,
|
||||
visible: false,
|
||||
title: 'Scuola',
|
||||
strsingolo: 'Scuola',
|
||||
to: '/school',
|
||||
@@ -92,7 +92,7 @@ export const costanti = {
|
||||
small: false,
|
||||
},
|
||||
{
|
||||
visible: true,
|
||||
visible: false,
|
||||
strsingolo: 'Luogo',
|
||||
title: 'Luoghi',
|
||||
to: '/places',
|
||||
@@ -249,6 +249,7 @@ export const costanti = {
|
||||
separator: 11000,
|
||||
username_chip: 12000,
|
||||
link: 12500,
|
||||
listobj: 13000,
|
||||
},
|
||||
|
||||
FieldTypeArr: [
|
||||
|
||||
@@ -944,18 +944,6 @@ export const colmySkills = [
|
||||
]
|
||||
|
||||
export const colmyHosp = [
|
||||
AddCol({
|
||||
name: 'idStatusSkill',
|
||||
label_trans: 'statusSkill.name',
|
||||
fieldtype: costanti.FieldType.multiselect,
|
||||
jointable: 'statusSkills',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
icon: 'mood',
|
||||
isadvanced_field: true,
|
||||
sortable: false,
|
||||
}),
|
||||
|
||||
AddCol({
|
||||
name: 'username',
|
||||
label_trans: 'reg.username',
|
||||
@@ -967,6 +955,40 @@ export const colmyHosp = [
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
sortable: false,
|
||||
}),
|
||||
|
||||
AddCol({
|
||||
name: 'typeHosp',
|
||||
label_trans: 'hosps.typeHosp',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
required: true,
|
||||
jointable: toolsext.TABTYPEHOSP,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
visible: true,
|
||||
icon: 'category',
|
||||
sortable: false,
|
||||
}),
|
||||
|
||||
AddCol({
|
||||
name: 'numMaxPeopleHosp',
|
||||
label_trans: 'hosps.numMaxPeopleHosp',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
required: true,
|
||||
jointable: toolsext.TABPEOPLE,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
visible: true,
|
||||
icon: 'category',
|
||||
sortable: false,
|
||||
}),
|
||||
|
||||
AddCol({
|
||||
name: 'accomodation',
|
||||
label_trans: 'hosps.accomodation.title',
|
||||
fieldtype: costanti.FieldType.listobj,
|
||||
jointable: '',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
sortable: false,
|
||||
}),
|
||||
|
||||
AddCol({
|
||||
name: 'idCity',
|
||||
label_trans: 'skill.city',
|
||||
@@ -982,64 +1004,6 @@ export const colmyHosp = [
|
||||
sortable: false,
|
||||
required: true,
|
||||
}),
|
||||
AddCol(
|
||||
{
|
||||
name: 'dateTimeStart',
|
||||
label_trans: 'event.dateTimeStart',
|
||||
// jointable: toolsext.TABCALALLDATE,
|
||||
fieldtype: costanti.FieldType.date,
|
||||
// fieldtype: costanti.FieldType.select,
|
||||
// fieldtype_real: costanti.FieldType.onlydate,
|
||||
// fieldtype: costanti.FieldType.onlydate,
|
||||
icon: 'fas fa-calendar-day',
|
||||
}),
|
||||
AddCol(
|
||||
{
|
||||
name: 'dateTimeEnd',
|
||||
label_trans: 'event.dateTimeEnd',
|
||||
fieldtype: costanti.FieldType.date,
|
||||
// jointable: toolsext.TABCALALLDATE,
|
||||
// fieldtype: costanti.FieldType.select,
|
||||
// fieldtype_real: costanti.FieldType.onlydate,
|
||||
icon: 'fas fa-calendar-day',
|
||||
sortable: false,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'descr',
|
||||
label_trans: 'proj.shortdescr',
|
||||
fieldtype: costanti.FieldType.string,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
maxlength: 120,
|
||||
required: true,
|
||||
sortable: false,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idSector',
|
||||
label_trans: 'sectors.name',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
required: true,
|
||||
jointable: toolsext.TABSECTORS,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
visible: true,
|
||||
icon: 'category',
|
||||
sortable: false,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idSkill',
|
||||
label_trans: 'skill.name',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
jointable: 'skills',
|
||||
addnone: true,
|
||||
filter_table: toolsext.TABSECTORS,
|
||||
filter_field: 'idSector',
|
||||
noshowlabel: true,
|
||||
icon: 'engineering',
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
allowNewValue: false,
|
||||
required: false,
|
||||
sortable: false,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idContribType',
|
||||
label_trans: 'contribtype.name',
|
||||
@@ -1052,28 +1016,24 @@ export const colmyHosp = [
|
||||
isadvanced_field: false,
|
||||
sortable: false,
|
||||
}),
|
||||
/*AddCol({
|
||||
name: '',
|
||||
fieldtype: costanti.FieldType.separator,
|
||||
required: false,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit,
|
||||
visible: false,
|
||||
AddCol({
|
||||
name: 'descr',
|
||||
label_trans: 'proj.shortdescr',
|
||||
fieldtype: costanti.FieldType.string,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
noshowlabel: true,
|
||||
maxlength: 120,
|
||||
required: true,
|
||||
sortable: false,
|
||||
}),*/
|
||||
AddCol({ name: 'date_created', label_trans: 'event.dateCreated', fieldtype: costanti.FieldType.onlydate,
|
||||
required: false,
|
||||
visible: false,
|
||||
sortable: true,
|
||||
showWhen: 0}),
|
||||
}),
|
||||
AddCol({
|
||||
name: 'photos',
|
||||
label_trans: 'skill.photos',
|
||||
fieldtype: costanti.FieldType.listimages,
|
||||
jointable: '',
|
||||
showpicprofile_ifnotset: true,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
|
||||
isadvanced_field: true,
|
||||
sortable: false,
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit,
|
||||
isadvanced_field: false,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'note', label_trans: 'proj.longdescr', fieldtype: costanti.FieldType.html,
|
||||
@@ -1088,6 +1048,11 @@ export const colmyHosp = [
|
||||
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
|
||||
sortable: false,
|
||||
}),
|
||||
AddCol({ name: 'date_created', label_trans: 'event.dateCreated', fieldtype: costanti.FieldType.onlydate,
|
||||
required: false,
|
||||
visible: false,
|
||||
sortable: true,
|
||||
showWhen: 0}),
|
||||
AddCol(DuplicateRec),
|
||||
AddCol(ModifRec),
|
||||
AddCol(DeleteRec),
|
||||
@@ -2917,6 +2882,42 @@ export const fieldsTable = {
|
||||
colkey: '_id',
|
||||
collabel: 'name',
|
||||
},
|
||||
{
|
||||
value: toolsext.TABTYPEHOSP,
|
||||
label: 'Tipo Ospitalità',
|
||||
columns: colTableGeneric,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: toolsext.TABPEOPLE,
|
||||
label: 'Persone',
|
||||
columns: colTableGeneric,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: toolsext.TABTYPEACCOM,
|
||||
label: 'Tipo di Accomodazione',
|
||||
columns: colTableGeneric,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: toolsext.TABLOCACCOM,
|
||||
label: 'Locazione',
|
||||
columns: colTableGeneric,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
],
|
||||
|
||||
}
|
||||
|
||||
@@ -5088,7 +5088,7 @@ export const tools = {
|
||||
obj.col_footer = 'idCity'
|
||||
obj.col_tabfooter = 'mycities'
|
||||
} else if (table === toolsext.TABMYHOSPS) {
|
||||
obj.prop_colkey = 'idHosp'
|
||||
obj.prop_colkey = 'descr'
|
||||
obj.col_title = 'descr'
|
||||
obj.col_footer = 'idCity'
|
||||
obj.col_tabfooter = 'mycities'
|
||||
@@ -5225,20 +5225,13 @@ export const tools = {
|
||||
getdefaultnewrec_MyHosp(): any {
|
||||
return {
|
||||
_id: 0,
|
||||
idSector: tools.getSelectionByTable('sectors', 0),
|
||||
idHosp: tools.getSelectionByTable('hosps', 0),
|
||||
idStatusSkill: tools.getSelectionByTable('statusSkills', []),
|
||||
typeHosp: tools.getSelectionByTable(toolsext.TABTYPEHOSP, 2),
|
||||
idContribType: tools.getSelectionByTable('contribtypes', []),
|
||||
dateTimeStart: new Date(),
|
||||
dateTimeEnd: new Date(),
|
||||
idCity: this.getCitySel(),
|
||||
NumLevel: 0,
|
||||
adType: tools.getSelectionByTable('adtypes', costanti.AdType.OFFRO),
|
||||
photos: [],
|
||||
note: '',
|
||||
//**ADDFIELD_MYBACHECAS
|
||||
website: '',
|
||||
descr: '',
|
||||
note: '',
|
||||
website: '',
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
@@ -85,12 +85,17 @@ export const toolsext = {
|
||||
TABTEMPLEMAIL: 'templemail',
|
||||
TABOPZEMAIL: 'opzemail',
|
||||
TABSHAREWITHUS: 'sharewithus',
|
||||
TABTYPEHOSP: 'typehosps',
|
||||
TABTYPEACCOM: 'typeaccoms',
|
||||
TABLOCACCOM: 'locaccoms',
|
||||
TABPEOPLE: 'people',
|
||||
SERVKEY_VERS: 'vers',
|
||||
|
||||
ERR_GENERICO: -1,
|
||||
ERR_SERVERFETCH: -2,
|
||||
ERR_AUTHENTICATION: -5,
|
||||
|
||||
|
||||
localStorage: {
|
||||
teleg_id: 'ti',
|
||||
verified_email: 'vf',
|
||||
|
||||
@@ -1547,6 +1547,10 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
else if (table === 'otherfilters') myarr = shared_consts.OtherFilters
|
||||
else if (table === toolsext.TABCALDATE) myarr = this.getArrDateEvent()
|
||||
else if (table === toolsext.TABCALALLDATE) myarr = this.getArrAllDateEvent()
|
||||
else if (table === toolsext.TABTYPEHOSP) myarr = shared_consts.TypeHosps
|
||||
else if (table === toolsext.TABPEOPLE) myarr = shared_consts.People
|
||||
else if (table === toolsext.TABTYPEACCOM) myarr = shared_consts.TypeAccom
|
||||
else if (table === toolsext.TABLOCACCOM) myarr = shared_consts.LocationAccom
|
||||
else myarr = this.getListByTable(table)
|
||||
|
||||
if (costanti.TABLES_ARRAY.includes(table)) {
|
||||
|
||||
Reference in New Issue
Block a user