versione 0.3.16:

- Aggiunto bottone "Scambio Ospitalità" (nuova tabella)
This commit is contained in:
Paolo Arena
2022-05-06 19:51:47 +02:00
parent fa9c6f1c6b
commit b276a6185f

View File

@@ -74,6 +74,9 @@ const MyHospSchema = new Schema({
website: { website: {
type: String, type: String,
}, },
link_maplocation: {
type: String,
},
date_created: { date_created: {
type: Date, type: Date,
default: Date.now, default: Date.now,
@@ -123,10 +126,8 @@ MyHospSchema.statics.getFieldsForSearch = function() {
MyHospSchema.statics.getFieldsLastForSearch = function() { MyHospSchema.statics.getFieldsLastForSearch = function() {
return [ return [
{field: 'note', type: tools.FieldType.string},
{field: 'descr', type: tools.FieldType.string}, {field: 'descr', type: tools.FieldType.string},
{field: 'recSkill.descr', type: tools.FieldType.string}, {field: 'note', type: tools.FieldType.string},
{field: 'MyHosp.descr', type: tools.FieldType.string},
]; ];
}; };
@@ -142,20 +143,15 @@ MyHospSchema.statics.executeQueryTable = function(idapp, params) {
lk_as: 'user', lk_as: 'user',
af_objId_tab: 'myId', af_objId_tab: 'myId',
lk_proj: { lk_proj: {
idSkill: 1, typeHosp: 1,
idSubSkill: 1, numMaxPeopleHosp: 1,
MyHosp: 1, accomodation: 1,
idStatusSkill: 1, preferences: 1,
idContribType: 1, idContribType: 1,
dateTimeStart: 1,
dateTimeEnd: 1,
idCity: 1, idCity: 1,
numLevel: 1,
adType: 1,
photos: 1,
note: 1, note: 1,
//**ADDFIELD_MyHospS
website: 1, website: 1,
link_maplocation: 1,
descr: 1, descr: 1,
date_created: 1, date_created: 1,
date_updated: 1, date_updated: 1,
@@ -229,25 +225,18 @@ MyHospSchema.statics.getMyRecById = function(idapp, id) {
}, },
{ {
'$project': { '$project': {
'recSkill': 1, typeHosp: 1,
'sector': 1, numMaxPeopleHosp: 1,
'idSector': 1, accomodation: 1,
'idSkill': 1, preferences: 1,
'idSubSkill': 1, idContribType: 1,
'idStatusSkill': 1, idCity: 1,
'idContribType': 1, note: 1,
dateTimeStart: 1,
dateTimeEnd: 1,
'idCity': 1,
'numLevel': 1,
adType: 1,
'photos': 1,
'note': 1,
website: 1, website: 1,
//**ADDFIELD_MyHospS link_maplocation: 1,
'descr': 1, descr: 1,
'date_created': 1, date_created: 1,
'date_updated': 1, date_updated: 1,
'userId': 1, 'userId': 1,
'username': 1, 'username': 1,
'name': 1, 'name': 1,
@@ -283,25 +272,18 @@ MyHospSchema.statics.getMyRecById = function(idapp, id) {
}, },
{ {
'$project': { '$project': {
'recSkill': 1, typeHosp: 1,
'sector': 1, numMaxPeopleHosp: 1,
'idSector': 1, accomodation: 1,
'idSkill': 1, preferences: 1,
'idSubSkill': 1, idContribType: 1,
'idStatusSkill': 1, idCity: 1,
'idContribType': 1, note: 1,
dateTimeStart: 1,
dateTimeEnd: 1,
'idCity': 1,
'numLevel': 1,
adType: 1,
'photos': 1,
'note': 1,
website: 1, website: 1,
//**ADDFIELD_MyHospS link_maplocation: 1,
'descr': 1, descr: 1,
'date_created': 1, date_created: 1,
'date_updated': 1, date_updated: 1,
'userId': 1, 'userId': 1,
'username': 1, 'username': 1,
'name': 1, 'name': 1,
@@ -337,25 +319,18 @@ MyHospSchema.statics.getMyRecById = function(idapp, id) {
}, },
{ {
'$project': { '$project': {
'recSkill': 1, typeHosp: 1,
'sector': 1, numMaxPeopleHosp: 1,
'idSector': 1, accomodation: 1,
'idSkill': 1, preferences: 1,
'idSubSkill': 1, idContribType: 1,
'idStatusSkill': 1, idCity: 1,
'idContribType': 1, note: 1,
dateTimeStart: 1,
dateTimeEnd: 1,
'idCity': 1,
'numLevel': 1,
adType: 1,
'photos': 1,
'note': 1,
website: 1, website: 1,
//**ADDFIELD_MyHospS link_maplocation: 1,
'descr': 1, descr: 1,
'date_created': 1, date_created: 1,
'date_updated': 1, date_updated: 1,
'userId': 1, 'userId': 1,
'username': 1, 'username': 1,
'name': 1, 'name': 1,
@@ -391,25 +366,18 @@ MyHospSchema.statics.getMyRecById = function(idapp, id) {
}, },
{ {
'$project': { '$project': {
'recSkill': 1, typeHosp: 1,
'sector': 1, numMaxPeopleHosp: 1,
'idSector': 1, accomodation: 1,
'idSkill': 1, preferences: 1,
// 'idSubSkill': 1, idContribType: 1,
'idStatusSkill': 1, idCity: 1,
'idContribType': 1, note: 1,
dateTimeStart: 1,
dateTimeEnd: 1,
'idCity': 1,
'numLevel': 1,
adType: 1,
'photos': 1,
'note': 1,
website: 1, website: 1,
//**ADDFIELD_MyHospS link_maplocation: 1,
'descr': 1, descr: 1,
'date_created': 1, date_created: 1,
'date_updated': 1, date_updated: 1,
'userId': 1, 'userId': 1,
'username': 1, 'username': 1,
'name': 1, 'name': 1,
@@ -445,25 +413,18 @@ MyHospSchema.statics.getMyRecById = function(idapp, id) {
}, },
{ {
'$project': { '$project': {
'recSkill': 1, typeHosp: 1,
'sector': 1, numMaxPeopleHosp: 1,
'idSector': 1, accomodation: 1,
'idSkill': 1, preferences: 1,
// 'idSubSkill': 1, idContribType: 1,
'idStatusSkill': 1, idCity: 1,
'idContribType': 1, note: 1,
dateTimeStart: 1,
dateTimeEnd: 1,
'idCity': 1,
'numLevel': 1,
adType: 1,
'photos': 1,
'note': 1,
website: 1, website: 1,
//**ADDFIELD_MyHospS link_maplocation: 1,
'descr': 1, descr: 1,
'date_created': 1, date_created: 1,
'date_updated': 1, date_updated: 1,
'userId': 1, 'userId': 1,
'username': 1, 'username': 1,
'name': 1, 'name': 1,