Merge branch 'main' of https://gitea.synno-qc.synology.me/UniPR/Bruno-API
# Conflicts: # collections/IDEM WebServices/Anagrafiche/Dipendente (E-mail).yml # collections/IDEM WebServices/Anagrafiche/Studente (Codice Fiscale).yml # collections/elixForms API v2/Request details/Get ExportTags.yml
This commit is contained in:
+53
@@ -0,0 +1,53 @@
|
||||
info:
|
||||
name: CSV attività per export
|
||||
type: http
|
||||
seq: 5
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "31470"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"useTestCF": false
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="importoAssegnato" type="number"][TAG]SCHEMAID,709,COL0118,IUQOID, ,,,0.00[/TAG][/VAR]
|
||||
[VAR name="oreTotali" type="number"][TAG]SCHEMAID,709,COL0119,IUQOID, ,,,0[/TAG][/VAR]
|
||||
|
||||
[VAR name="anno" type="string"][TAG]GETVALUEBYTAG,ATTIVITA_ANNO,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="ore" type="string"][TAG]GETVALUEBYTAG,ATTIVITA_ORE;ORE_DENTRO_ORARIO,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
|
||||
[VAR name="importoProporzionato" type="number"][% importoProporzionato = (importoAssegnato * ore) / oreTotali; %][/VAR]
|
||||
|
||||
[%= anno %];[%= ore %];[FORMAT type="number" pattern="0.00"][% importoProporzionato %][/FORMAT]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Calcolo dinamico ore equivalenti
|
||||
type: http
|
||||
seq: 26
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
info:
|
||||
name: Calcolo importo in orario proporzionale
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "30661"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"useTestCF": false
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="importoAssegnato" type="number"][TAG]SCHEMAID,709,COL0118,IUQOID, ,,,0.00[/TAG][/VAR]
|
||||
[VAR name="oreTotali" type="number"][TAG]SCHEMAID,709,COL0119,IUQOID, ,,,0[/TAG][/VAR]
|
||||
[VAR name="oreAttivita" type="number"][TAG]GETVALUEBYTAG,ATTIVITA_ORE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
|
||||
[VAR name="importoProporzionato" type="number"][% importoProporzionato = (importoAssegnato * oreAttivita) / oreTotali; %][/VAR]
|
||||
|
||||
[FORMAT type="number" pattern="0.00"][% importoProporzionato %][/FORMAT]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
info:
|
||||
name: Calcolo limiti ore e altro
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "31418"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"useTestCF": false
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="percentualePartTime" type="number"][TAG]GETVALUEBYTAG,DIPENDENTE_PERC_PARTTIME,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="oreEquivalenti" type="number"][TAG]GETVALUEBYTAG,ORE_RIPARTIZIONE_ASSEGNATA,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="maxOre" type="number"][TAG]GETVALUEBYTAG,MAX_ORE_DENTRO_ORARIO,REQUEST,IUQOID[/TAG][/VAR]
|
||||
|
||||
[VAR name="limiteOre" type="number"][% limiteOre = (percentualePartTime * maxOre); %][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% limiteOre > oreEquivalenti %][/CONDITION]
|
||||
[THEN][% limiteOre = oreEquivalenti; %][/THEN]
|
||||
[/IF]
|
||||
|
||||
[FORMAT type="number" pattern="integer"][% limiteOre %][/FORMAT]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Calcolo ore IN o OUT servizio
|
||||
type: http
|
||||
seq: 25
|
||||
seq: 4
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Get year from date
|
||||
type: http
|
||||
seq: 21
|
||||
seq: 6
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
info:
|
||||
name: Importo richiedente da Proposta ADVANCED
|
||||
type: http
|
||||
seq: 13
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "31555"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"useTestCF": false
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="codiceFiscaleRichiedente" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="datiRipartizioniIterable" type="iterable"][SPLIT regex="##"][TAG]GETVALUEBYTAG,RIPARTIZIONE_DATI_COMPLETI,REQUEST,IUQOID,CONCAT,##[/TAG][/SPLIT][/VAR]
|
||||
|
||||
[VAR name="item2" type="number"][% item2 = 1; %][/VAR]
|
||||
[VAR name="item5" type="number"][% item5 = 4; %][/VAR]
|
||||
|
||||
[VAR name="importoRichiedente" type="number"][% importoRichiedente = 0; %][/VAR]
|
||||
|
||||
[FOR varname="riga" iterable="datiRipartizioniIterable"]
|
||||
[VAR name="rigaiIterable" type="iterable"][SPLIT regex=";;"][VALUE_OF varname="riga" /][/SPLIT][/VAR]
|
||||
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="rigaiIterable" index="item2" /][/VAR]
|
||||
[VAR name="importo" type="number"][VALUE_OF varname="rigaiIterable" index="item5" /][/VAR]
|
||||
[IF]
|
||||
[CONDITION][% codiceFiscale == codiceFiscaleRichiedente %][/CONDITION]
|
||||
[THEN][% importoRichiedente = importo; %][/THEN]
|
||||
[/IF]
|
||||
[/FOR]
|
||||
|
||||
[FORMAT type="number" pattern="0.00"][% importoRichiedente %][/FORMAT]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
|
||||
docs: |-
|
||||
SchemaId 709
|
||||
Campo COL0118
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
info:
|
||||
name: Indicazioni limiti annuali ore
|
||||
type: http
|
||||
seq: 7
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "30661"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"useTestCF": false
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
|
||||
In base alle ore equivalenti e al part-time, il limite annuale di ore di attivita' svolte dentro l'orario di lavoro e' pari a [TAG]GETVALUEBYTAG,LIMITE_ORE_DENTRO_ORARIO,REQUEST,IUQOID,UPDATED_LAST[/TAG]
|
||||
|
||||
In base alle ore equivalenti e al part-time, il limite annuale di ore di attivita' svolte fuori dall'orario di lavoro e' pari a [TAG]GETVALUEBYTAG,LIMITE_ORE_FUORI_ORARIO,REQUEST,IUQOID,UPDATED_LAST[/TAG]
|
||||
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Notifiche email partecipanti - Body
|
||||
type: http
|
||||
seq: 23
|
||||
seq: 8
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Notifiche email partecipanti - Subject
|
||||
type: http
|
||||
seq: 22
|
||||
seq: 9
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Nuovo check richiedente DSAN
|
||||
type: http
|
||||
seq: 20
|
||||
seq: 12
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
info:
|
||||
name: Ore richiedente da Proposta ADVANCED
|
||||
type: http
|
||||
seq: 14
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "31555"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"IS_OP": "OP0",
|
||||
"IS_CO": "CO0",
|
||||
"IS_FU": "FU0",
|
||||
"IS_EP": "EP0",
|
||||
"OP": 0.0431,
|
||||
"CO": 0.0405,
|
||||
"FU": 0.0350,
|
||||
"EP": 0.0307,
|
||||
"useTestCF": false
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="inquadramentoRichiedente" type="string"][TAG]GETVALUEBYTAG,INQUADRAMENTO_DIPENDENTE,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="codiceFiscaleRichiedente" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="datiRipartizioniIterable" type="iterable"][SPLIT regex="##"][TAG]GETVALUEBYTAG,RIPARTIZIONE_DATI_COMPLETI,REQUEST,IUQOID,CONCAT,##[/TAG][/SPLIT][/VAR]
|
||||
|
||||
[% item2 = 1; %]
|
||||
[% item5 = 4; %]
|
||||
[% importoRichiedente = 0; %]
|
||||
[% fattoreConversione = 0; %]
|
||||
|
||||
[FOR varname="riga" iterable="datiRipartizioniIterable"]
|
||||
[VAR name="rigaIterable" type="iterable"][SPLIT regex=";;"][VALUE_OF varname="riga" /][/SPLIT][/VAR]
|
||||
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="rigaIterable" index="item2" /][/VAR]
|
||||
[VAR name="importo" type="number"][VALUE_OF varname="rigaIterable" index="item5" /][/VAR]
|
||||
[IF]
|
||||
[CONDITION][% codiceFiscale == codiceFiscaleRichiedente %][/CONDITION]
|
||||
[THEN][% importoRichiedente = importo; %][/THEN]
|
||||
[/IF]
|
||||
[/FOR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][CONTAINS varname="IS_OP"][% inquadramentoRichiedente %][/CONTAINS][/CONDITION]
|
||||
[THEN][% fattoreConversione = OP; %][/THEN]
|
||||
[ELSE IF]
|
||||
[CONDITION][CONTAINS varname="IS_CO"][% inquadramentoRichiedente %][/CONTAINS][/CONDITION]
|
||||
[THEN][% fattoreConversione = CO; %][/THEN]
|
||||
[/ELSE IF]
|
||||
[ELSE IF]
|
||||
[CONDITION][CONTAINS varname="IS_FU"][% inquadramentoRichiedente %][/CONTAINS][/CONDITION]
|
||||
[THEN][% fattoreConversione = FU; %][/THEN]
|
||||
[/ELSE IF]
|
||||
[ELSE IF]
|
||||
[CONDITION][CONTAINS varname="IS_EP"][% inquadramentoRichiedente %][/CONTAINS][/CONDITION]
|
||||
[THEN][% fattoreConversione = EP; %][/THEN]
|
||||
[/ELSE IF]
|
||||
[/IF]
|
||||
|
||||
[!--
|
||||
inquadramentoRichiedente: [%= inquadramentoRichiedente %]
|
||||
codiceFiscaleRichiedente: [%= codiceFiscaleRichiedente %]
|
||||
importoRichiedente: [%= importoRichiedente %]
|
||||
fattoreConversione: [%= fattoreConversione %]
|
||||
Output
|
||||
--]
|
||||
|
||||
[FORMAT type="number" pattern="0"][% importoRichiedente * fattoreConversione %][/FORMAT]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
|
||||
docs: |-
|
||||
SchemaId 709
|
||||
Campo COL0118
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Partecipanti HAS DSAN
|
||||
type: http
|
||||
seq: 24
|
||||
seq: 10
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+22
-15
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Recupero email da array
|
||||
type: http
|
||||
seq: 27
|
||||
seq: 11
|
||||
|
||||
http:
|
||||
method: POST
|
||||
@@ -12,7 +12,7 @@ http:
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "25286"
|
||||
value: "31397"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
@@ -35,6 +35,7 @@ runtime:
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
|
||||
[VAR name="richiedenteCF" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
|
||||
@@ -44,21 +45,27 @@ runtime:
|
||||
[VAR name="lastUpdatedNominativoCF" type="string"][VALUE_OF varname="lastUpdatedNominativoRightIterable" index="firstItem" /][/VAR]
|
||||
|
||||
[VAR name="emailPartecipante" type="string"][% emailPartecipante = ""; %][/VAR]
|
||||
[VAR name="arrayCfEmailIterable" type="iterable"][SPLIT regex=";"][TAG]GETVALUEBYTAG,SOGGETTI_EMAIL,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]
|
||||
[FOR varname="coppia" iterable="arrayCfEmailIterable"]
|
||||
[VAR name="coppiaIterable" type="iterable"][SPLIT regex=":"][VALUE_OF varname="coppia" /][/SPLIT][/VAR]
|
||||
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="coppiaIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="email" type="string"][VALUE_OF varname="coppiaIterable" index="secondItem" /][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% lastUpdatedNominativoCF == codiceFiscale %][/CONDITION]
|
||||
[THEN][% emailPartecipante = email; %][/THEN]
|
||||
[/IF]
|
||||
[/FOR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% DEBUG == "S" %][/CONDITION]
|
||||
[THEN][% emailPartecipante = "pierpaolo.mammi@unipr.it"; %][/THEN]
|
||||
[CONDITION][% lastUpdatedNominativoCF != "" && lastUpdatedNominativoCF != richiedenteCF %][/CONDITION]
|
||||
[THEN]
|
||||
[VAR name="arrayCfEmailIterable" type="iterable"][SPLIT regex=";"][TAG]GETVALUEBYTAG,SOGGETTI_EMAIL,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]
|
||||
[FOR varname="coppia" iterable="arrayCfEmailIterable"]
|
||||
[VAR name="coppiaIterable" type="iterable"][SPLIT regex=":"][VALUE_OF varname="coppia" /][/SPLIT][/VAR]
|
||||
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="coppiaIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="email" type="string"][VALUE_OF varname="coppiaIterable" index="secondItem" /][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% lastUpdatedNominativoCF == codiceFiscale %][/CONDITION]
|
||||
[THEN][% emailPartecipante = email; %][/THEN]
|
||||
[/IF]
|
||||
[/FOR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% DEBUG == "S" %][/CONDITION]
|
||||
[THEN][% emailPartecipante = "pierpaolo.mammi@unipr.it"; %][/THEN]
|
||||
[/IF]
|
||||
[/THEN]
|
||||
[/IF]
|
||||
|
||||
[%= emailPartecipante %]
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
info:
|
||||
name: Richiedente ammesso ADVANCED
|
||||
type: http
|
||||
seq: 15
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "31555"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"useTestCF": false
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="checkUtentePartecipante" type="string"][% checkUtentePartecipante = "Il richiedente non è ammesso alla compilazione perché non partecipa alle ripartizioni"; %][/VAR]
|
||||
[VAR name="richiedenteCF" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="richiedentePropostaCF" type="string"][TAG]GETVALUEBYTAG,PROPOSTA_RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="ripartizioniDatiCompleti" type="string"][TAG]GETVALUEBYTAG,RIPARTIZIONE_DATI_COMPLETI,REQUEST,IUQOID[/TAG][/VAR]
|
||||
|
||||
[!-- ATTENZIONE: gli ELSEIF non rispettano la logica di esclusione dei blocchi! Lasciare le condizioni in questo ordine! --]
|
||||
[!-- 1. Il richiedente non deve essere vuoto --]
|
||||
[!-- 2. Il richiedente deve comparire fra le ripartizioni --]
|
||||
[!-- 3. Il richiedente può eventualmente comparire fra i nominativi ammessi (DEBUG) --]
|
||||
[!-- 4. Il richiedente non deve essere il RS che ha presentato la Proposta --]
|
||||
[IF]
|
||||
[CONDITION][IS_EMPTY varname="richiedenteCF" /][/CONDITION]
|
||||
[THEN][% checkUtentePartecipante = "Nessun richiedente trovato"; %][/THEN]
|
||||
[ELSE IF]
|
||||
[CONDITION][CONTAINS varname="ripartizioniDatiCompleti"];;[VALUE_OF varname="richiedenteCF" /];;[/CONTAINS][/CONDITION]
|
||||
[THEN][% checkUtentePartecipante = ""; %][/THEN]
|
||||
[/ELSE IF]
|
||||
[ELSE IF]
|
||||
[CONDITION][CONTAINS varname="codiciFiscaliAmmessi"][VALUE_OF varname="richiedenteCF" /][/CONTAINS][/CONDITION]
|
||||
[THEN][% checkUtentePartecipante = ""; %][/THEN]
|
||||
[/ELSE IF]
|
||||
[ELSE IF]
|
||||
[CONDITION][% richiedenteCF == richiedentePropostaCF %][/CONDITION]
|
||||
[THEN][% checkUtentePartecipante = "Il Responsabile Scientifico proponente della Proposta non deve compilare la DSAN"; %][/THEN]
|
||||
[/ELSE IF]
|
||||
[/IF]
|
||||
|
||||
[%= checkUtentePartecipante %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
|
||||
docs: |-
|
||||
SchemaId 709
|
||||
Campo COL0118
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: DSAN
|
||||
type: folder
|
||||
seq: 2
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
-85
@@ -1,85 +0,0 @@
|
||||
info:
|
||||
name: Elenco partecipanti per tabella HTML Copy
|
||||
type: http
|
||||
seq: 10
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "19758"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL]
|
||||
[VAR name="newLine" type="string"][VALUE_OF varname="crlf" /][/VAR]
|
||||
[VAR name="ripartizioniNominativiWithSep" type="string"][TAG]SCHEMAID,538,COL0005,ID_OBJECT,,#[/TAG][/VAR]
|
||||
[VAR name="ripartizioniImportiWithSep" type="string"][TAG]SCHEMAID,538,COL0002,ID_OBJECT,,#[/TAG][/VAR]
|
||||
<table>
|
||||
<tr><th>Partecipante</th><th>Importo (EUR)</th></tr>
|
||||
[IF][CONDITION][IS_NOT_EMPTY varname="ripartizioniNominativiWithSep" /][/CONDITION][THEN]
|
||||
[VAR name="ripartizioniNominativiIterable" type="iterable"][SPLIT regex="#"][VALUE_OF varname="ripartizioniNominativiWithSep" /][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioniImportiIterable" type="iterable"][SPLIT regex="#"][VALUE_OF varname="ripartizioniImportiWithSep" /][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioniCount" type="number"][SIZE_OF varname="ripartizioniNominativiIterable" /][/VAR]
|
||||
[VAR name="ripartizioneIdx" type="string"][% ripartizioneIdx = 0; %][/VAR]
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
|
||||
|
||||
[FOR varName="ripartizione" iterable="ripartizioniNominativiIterable"]
|
||||
[VAR name="ripartizioneNominativoFull" type="string"][VALUE_OF varname="ripartizioniNominativiIterable" index="ripartizioneIdx" /][/VAR]
|
||||
[VAR name="ripartizioneImporto" type="string"][VALUE_OF varname="ripartizioniImportiIterable" index="ripartizioneIdx" /][/VAR]
|
||||
[VAR name="ripartizioneNominativoIterable" type="iterable"][SPLIT regex="] "][TRIM][VALUE_OF varname="ripartizioneNominativoFull" /][/TRIM][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioneNominativo" type="string"][VALUE_OF varname="ripartizioneNominativoIterable" index="secondItem" /][/VAR]
|
||||
[% ripartizioneIdx = ripartizioneIdx + 1; %]
|
||||
[VAR name="ripartizioneKeyIterable" type="iterable"][SPLIT regex="\."][% ripartizioneIdx + "" %][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioneKey" type="string"][VALUE_OF varname="ripartizioneKeyIterable" index="firstItem" /][/VAR]
|
||||
<tr><td>[VALUE_OF varname="ripartizioneNominativo" /]</td><td>[VALUE_OF varname="ripartizioneImporto" /]</td></tr>
|
||||
[/FOR]
|
||||
|
||||
[!--
|
||||
[WHILE threshold="99"]
|
||||
[CONDITION][% ripartizioneIdx < ripartizioniCount %][/CONDITION]
|
||||
[DO]
|
||||
[VAR name="ripartizioneNominativoFull" type="string"][VALUE_OF varname="ripartizioniNominativiIterable" index="ripartizioneIdx" /][/VAR]
|
||||
[VAR name="ripartizioneImporto" type="string"][VALUE_OF varname="ripartizioniImportiIterable" index="ripartizioneIdx" /][/VAR]
|
||||
[VAR name="ripartizioneNominativoIterable" type="iterable"][SPLIT regex="] "][TRIM][VALUE_OF varname="ripartizioneNominativoFull" /][/TRIM][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioneNominativo" type="string"][VALUE_OF varname="ripartizioneNominativoIterable" index="secondItem" /][/VAR]
|
||||
[% ripartizioneIdx = ripartizioneIdx + 1; %]
|
||||
[VAR name="ripartizioneKeyIterable" type="iterable"][SPLIT regex="\."][% ripartizioneIdx + "" %][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioneKey" type="string"][VALUE_OF varname="ripartizioneKeyIterable" index="firstItem" /][/VAR]
|
||||
<tr><td>[VALUE_OF varname="ripartizioneNominativo" /]</td><td>[VALUE_OF varname="ripartizioneImporto" /]</td></tr>
|
||||
[/DO]
|
||||
[/WHILE]
|
||||
--]
|
||||
[/THEN][/IF]
|
||||
</table>
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Calcolo importo per singolo partecipante
|
||||
type: http
|
||||
seq: 16
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Calcolo ore equivalenti
|
||||
type: http
|
||||
seq: 19
|
||||
seq: 3
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Calcolo ripartizione per tipologia persona
|
||||
type: http
|
||||
seq: 14
|
||||
seq: 4
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Check richiedente in partecipanti by CodFis
|
||||
type: http
|
||||
seq: 4
|
||||
seq: 6
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Check richiedente in partecipanti
|
||||
type: http
|
||||
seq: 3
|
||||
seq: 5
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Codice fiscale ammesso
|
||||
type: http
|
||||
seq: 1
|
||||
seq: 7
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Codici fiscali ripartizioni Simple-minded
|
||||
type: http
|
||||
seq: 6
|
||||
seq: 9
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Codici fiscali ripartizioni
|
||||
type: http
|
||||
seq: 5
|
||||
seq: 8
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
info:
|
||||
name: Dati completi ripartizione
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "31499"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="partecipante" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="importo" type="string"][TAG]GETVALUEBYTAG,IMPORTO_RIPARTIZIONE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
|
||||
[!-- Rimuoviamo l'indice della scelta da tendina "[X] " --]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex="] "][VALUE_OF varname="partecipante" /][/SPLIT][/VAR]
|
||||
[!-- Scorriamo l'iterable splittando man mano per i divisori nella scelta da tendina --]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex=" \(CF: "][VALUE_OF varname="datiIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="nominativo" type="string"][VALUE_OF varname="datiIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="datiIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="datiIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex=", Struttura di afferenza: "][VALUE_OF varname="datiIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="qualifica" type="string"][VALUE_OF varname="datiIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="struttura" type="string"][VALUE_OF varname="datiIterable" index="secondItem" /][/VAR]
|
||||
|
||||
[%= nominativo + ";;" + codiceFiscale + ";;" + qualifica + ";;" + struttura + ";;" + importo %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Elenco contraenti formattati
|
||||
type: http
|
||||
seq: 7
|
||||
seq: 10
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Elenco partecipanti per dropdown con chiave
|
||||
type: http
|
||||
seq: 8
|
||||
seq: 11
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Elenco partecipanti per tendina
|
||||
type: http
|
||||
seq: 11
|
||||
seq: 12
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Numero partecipanti meno RS (se c'è)
|
||||
type: http
|
||||
seq: 15
|
||||
seq: 13
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Numero ripartizioni da form partecipanti
|
||||
type: http
|
||||
seq: 12
|
||||
seq: 14
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Partecipanti per Qualifica
|
||||
type: http
|
||||
seq: 2
|
||||
seq: 15
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: RS proponente completo (multipli)
|
||||
type: http
|
||||
seq: 13
|
||||
seq: 17
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+9
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Recupero importo richiedente da proposta
|
||||
type: http
|
||||
seq: 18
|
||||
seq: 16
|
||||
|
||||
http:
|
||||
method: POST
|
||||
@@ -62,7 +62,11 @@ runtime:
|
||||
[/IF]
|
||||
[/FOR]
|
||||
|
||||
[!--
|
||||
[%= importoRichiedente %]
|
||||
--]
|
||||
|
||||
[FORMAT type="number" pattern="0.00"][% importoRichiedente %][/FORMAT]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
@@ -71,3 +75,7 @@ settings:
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
|
||||
docs: |-
|
||||
SchemaId 709
|
||||
Campo COL0118
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: TEST ordine GetValueByTag
|
||||
type: http
|
||||
seq: 17
|
||||
seq: 18
|
||||
|
||||
http:
|
||||
method: POST
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
info:
|
||||
name: Tabella HTML ripartizioni FOR ADVANCED
|
||||
type: http
|
||||
seq: 21
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "31499"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL]
|
||||
[VAR name="datiRipartizioneIterable" type="iterable"][SPLIT regex="##" emptyIfBlank="true"][TAG]GETVALUEBYTAG,RIPARTIZIONE_DATI_COMPLETI,REQUEST,IUQOID,CONCAT,##[/TAG][/SPLIT][/VAR]
|
||||
|
||||
[VAR name="item1" type="number"][% item1 = 0; %][/VAR]
|
||||
[VAR name="item2" type="number"][% item2 = 1; %][/VAR]
|
||||
[VAR name="item3" type="number"][% item3 = 2; %][/VAR]
|
||||
[VAR name="item4" type="number"][% item4 = 3; %][/VAR]
|
||||
[VAR name="item5" type="number"][% item5 = 4; %][/VAR]
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Nominativo</th>
|
||||
<th>Codice fiscale</th>
|
||||
<th>Qualifica</th>
|
||||
<th>Struttura</th>
|
||||
<th>Importo (€)</th>
|
||||
</tr>
|
||||
[FOR varName="ripartizione" iterable="datiRipartizioneIterable"][VAR name="datiIterable" type="iterable"][SPLIT regex=";;" emptyIfBlank="true"][VALUE_OF varname="ripartizione" /][/SPLIT][/VAR]
|
||||
<tr>
|
||||
<td>[VALUE_OF varname="datiIterable" index="item1" /]</td>
|
||||
<td>[VALUE_OF varname="datiIterable" index="item2" /]</td>
|
||||
<td>[VALUE_OF varname="datiIterable" index="item3" /]</td>
|
||||
<td>[VALUE_OF varname="datiIterable" index="item4" /]</td>
|
||||
<td style="text-align: right;">[FORMAT type="number" pattern="#,##0.00"][VALUE_OF varname="datiIterable" index="item5" /][/FORMAT]</td>
|
||||
</tr>[/FOR]
|
||||
</table>
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
info:
|
||||
name: Tabella HTML ripartizioni FOR
|
||||
type: http
|
||||
seq: 20
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "31499"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL]
|
||||
[VAR name="newLine" type="string"][VALUE_OF varname="crlf" /][/VAR]
|
||||
[VAR name="ripartizioniNominativiWithSep" type="string"][TAG]SCHEMAID,538,COL0005,ID_OBJECT,,#[/TAG][/VAR]
|
||||
[VAR name="ripartizioniImportiWithSep" type="string"][TAG]SCHEMAID,538,COL0002,ID_OBJECT,,#[/TAG][/VAR]
|
||||
[VAR name="ripartizioniNominativiIterable" type="iterable"][SPLIT regex="#" emptyIfBlank="true"][VALUE_OF varname="ripartizioniNominativiWithSep" /][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioniImportiIterable" type="iterable"][SPLIT regex="#" emptyIfBlank="true"][VALUE_OF varname="ripartizioniImportiWithSep" /][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioneIdx" type="string"][% ripartizioneIdx = 0; %][/VAR]
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
|
||||
[%= ripartizioniNominativiIterable %]
|
||||
<table>
|
||||
<tr>
|
||||
<th>Partecipante</th><th>Importo (EUR)</th></tr>
|
||||
[FOR varName="ripartizione" iterable="ripartizioniNominativiIterable"]
|
||||
[VAR name="ripartizioneNominativoFull" type="string"][VALUE_OF varname="ripartizioniNominativiIterable" index="ripartizioneIdx" /][/VAR]
|
||||
[VAR name="ripartizioneImporto" type="string"][VALUE_OF varname="ripartizioniImportiIterable" index="ripartizioneIdx" /][/VAR]
|
||||
[VAR name="ripartizioneNominativoIterable" type="iterable"][SPLIT regex="] "][TRIM][VALUE_OF varname="ripartizioneNominativoFull" /][/TRIM][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioneNominativo" type="string"][VALUE_OF varname="ripartizioneNominativoIterable" index="secondItem" /][/VAR]
|
||||
[% ripartizioneIdx = ripartizioneIdx + 1; %]
|
||||
[VAR name="ripartizioneKeyIterable" type="iterable"][SPLIT regex="\."][% ripartizioneIdx + "" %][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioneKey" type="string"][VALUE_OF varname="ripartizioneKeyIterable" index="firstItem" /][/VAR]
|
||||
<tr>
|
||||
<td>[VALUE_OF varname="ripartizioneNominativo" /]</td><td>[VALUE_OF varname="ripartizioneImporto" /]</td>
|
||||
</tr>
|
||||
[/FOR]
|
||||
</table>
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+5
-2
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Elenco partecipanti per tabella HTML
|
||||
name: Tabella HTML ripartizioni WHILE
|
||||
type: http
|
||||
seq: 9
|
||||
seq: 19
|
||||
|
||||
http:
|
||||
method: POST
|
||||
@@ -19,6 +19,9 @@ http:
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "23761"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "31499"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: Proposta
|
||||
type: folder
|
||||
seq: 1
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
Reference in New Issue
Block a user