- Nuovo Sistema di Flotte per Tutor.
X - Mettere anche la email del sognatore, per chi è abituato ad inviarla in quel modo... X - Controllare che sul sito compaiano le informazioni del Sognatore...
This commit is contained in:
@@ -864,6 +864,32 @@ namespace Actions {
|
||||
})
|
||||
}
|
||||
|
||||
async function InviaMsgAFlotta(context, { flotta, inviareale, inviaemail, tipomsg }) {
|
||||
console.log('InviaMsgAFlotta')
|
||||
|
||||
const mydata = {
|
||||
idapp: process.env.APP_ID,
|
||||
tipomsg,
|
||||
flotta,
|
||||
inviareale,
|
||||
inviaemail,
|
||||
}
|
||||
|
||||
return await Api.SendReq('/dashboard/msgflotta', 'POST', mydata)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
if (res.data.code === serv_constants.RIS_CODE_OK) {
|
||||
return res.data.ris
|
||||
}
|
||||
}
|
||||
return null
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error)
|
||||
return null
|
||||
})
|
||||
}
|
||||
|
||||
async function GetArrNavi(context) {
|
||||
console.log('GetArrNavi')
|
||||
|
||||
@@ -886,6 +912,28 @@ namespace Actions {
|
||||
})
|
||||
}
|
||||
|
||||
async function GetMsgTemplates(context) {
|
||||
console.log('GetMsgTemplates')
|
||||
|
||||
const mydata = {
|
||||
idapp: process.env.APP_ID
|
||||
}
|
||||
|
||||
return await Api.SendReq('/dashboard/getmsg_templates', 'POST', mydata)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
if (res.data.code === serv_constants.RIS_CODE_OK) {
|
||||
return res.data.ris
|
||||
}
|
||||
}
|
||||
return null
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error)
|
||||
return null
|
||||
})
|
||||
}
|
||||
|
||||
async function GetNave(context, { riga, col, riga1don, col1don, ind_order }) {
|
||||
// console.log('GetNave')
|
||||
|
||||
@@ -960,6 +1008,55 @@ namespace Actions {
|
||||
})
|
||||
}
|
||||
|
||||
async function GetFlotte(context, { ricalcola, showall }) {
|
||||
console.log('GetFlotte')
|
||||
|
||||
const mydata = {
|
||||
idapp: process.env.APP_ID,
|
||||
ricalcola,
|
||||
showall
|
||||
}
|
||||
|
||||
return await Api.SendReq('/dashboard/getflotte', 'POST', mydata)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
if (res.data.code === serv_constants.RIS_CODE_OK) {
|
||||
return res.data.arrflotte
|
||||
}
|
||||
}
|
||||
return null
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error)
|
||||
return null
|
||||
})
|
||||
}
|
||||
|
||||
async function GetFlotta(context, { riga, col_prima, col_ultima}) {
|
||||
console.log('GetFlotta')
|
||||
|
||||
const mydata = {
|
||||
idapp: process.env.APP_ID,
|
||||
riga,
|
||||
col_prima,
|
||||
col_ultima,
|
||||
}
|
||||
|
||||
return await Api.SendReq('/dashboard/getflotta', 'POST', mydata)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
if (res.data.code === serv_constants.RIS_CODE_OK) {
|
||||
return res.data
|
||||
}
|
||||
}
|
||||
return null
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error)
|
||||
return null
|
||||
})
|
||||
}
|
||||
|
||||
async function loadSite(context) {
|
||||
// console.log('CalendarStore: loadAfterLogin')
|
||||
// Load local data
|
||||
@@ -1144,9 +1241,13 @@ namespace Actions {
|
||||
sendEmailTest: b.dispatch(sendEmailTest),
|
||||
DuplicateRec: b.dispatch(DuplicateRec),
|
||||
InviaMsgADonatori: b.dispatch(InviaMsgADonatori),
|
||||
InviaMsgAFlotta: b.dispatch(InviaMsgAFlotta),
|
||||
GetArrNavi: b.dispatch(GetArrNavi),
|
||||
GetMsgTemplates: b.dispatch(GetMsgTemplates),
|
||||
GetNave: b.dispatch(GetNave),
|
||||
GetArrDoniNavi: b.dispatch(GetArrDoniNavi),
|
||||
GetFlotta: b.dispatch(GetFlotta),
|
||||
GetFlotte: b.dispatch(GetFlotte),
|
||||
GetData: b.dispatch(GetData),
|
||||
addDynamicPages: b.dispatch(addDynamicPages)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user