move bruno collections in own folder
This commit is contained in:
+62
@@ -0,0 +1,62 @@
|
||||
info:
|
||||
name: Calcolo D.1.3 5% con virgole
|
||||
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: "22737"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22224"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22748"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"qualificheDocenti": ";Docente;Ricercatore;"
|
||||
}
|
||||
}
|
||||
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="D1_1" type="number"][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_D_1_1,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="D1_2" type="number"][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_D_1_2,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="A" type="number"][TAG]SCHEMAID,338,COL0001,IUQOID, , [/TAG][/VAR]
|
||||
[VAR name="D1_3" type="number"][% D1_3 = D1_1 + D1_2 - (A * 0.20); %][/VAR]
|
||||
[VAR name="QuotaAteneo" type="number"][% QuotaAteneo = 0; %][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% D1_3 > 0 %][/CONDITION]
|
||||
[THEN][% QuotaAteneo = D1_3 * 0.05; %][/THEN]
|
||||
[/IF]
|
||||
|
||||
[FORMAT type="number" pattern="#,##0.00"][% QuotaAteneo %][/FORMAT]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
info:
|
||||
name: Calcolo D.1.3 con virgole
|
||||
type: http
|
||||
seq: 4
|
||||
|
||||
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: "22737"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22224"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22748"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22705"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22754"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"qualificheDocenti": ";Docente;Ricercatore;"
|
||||
}
|
||||
}
|
||||
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="ceiling" type="string"][TAG]GETVALUEBYTAG,CORRISPETTIVO_CEILING,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[!-- HACK per numeri corretti!!!1! --]
|
||||
[VAR name="ceilingIterable" type="iterable"][SPLIT regex="\."][TAG]GETVALUEBYTAG,CORRISPETTIVO_CEILING,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]
|
||||
[VAR name="first" type="number"][% first = 0; %][/VAR]
|
||||
[VAR name="second" type="number"][% second = 1; %][/VAR]
|
||||
[VAR name="ceilingInteger" type="string"][VALUE_OF varname="ceilingIterable" index="first" /][/VAR]
|
||||
[VAR name="ceilingDecimal" type="string"][VALUE_OF varname="ceilingIterable" index="second" /][/VAR]
|
||||
[IF][CONDITION][IS_EMPTY varname="ceilingDecimal" /][/CONDITION][THEN][% ceilingDecimal = "00"; %][/THEN][/IF]
|
||||
[VAR name="ceilingNumber" type="number"][% ceilingNumber = ceilingInteger + "," + ceilingDecimal; %][/VAR]
|
||||
|
||||
[%= ceilingNumber %]
|
||||
[%= " --- " %]
|
||||
[%= ceilingNumber * 0.20 %]
|
||||
[%= " --- " %]
|
||||
[%= ceiling %]
|
||||
[%= " --- " %]
|
||||
[%= ceilingInteger %]
|
||||
[%= " --- " %]
|
||||
[%= ceilingDecimal %]
|
||||
|
||||
[VAR name="numberIterable" type="iterable"][SPLIT regex="\."][TAG]SCHEMAID,341,COL0009,IUQOID, , [/TAG][/SPLIT][/VAR]
|
||||
[VAR name="first" type="number"][% first = 0; %][/VAR]
|
||||
[VAR name="second" type="number"][% second = 1; %][/VAR]
|
||||
[VAR name="numberIntegerPart" type="string"][VALUE_OF varname="numberIterable" index="first" /][/VAR]
|
||||
[VAR name="numberDecimalPart" type="string"][VALUE_OF varname="numberIterable" index="second" /][/VAR]
|
||||
[IF][CONDITION][IS_EMPTY varname="numberDecimalPart" /][/CONDITION][THEN][% numberDecimalPart = "00"; %][/THEN][/IF]
|
||||
[VAR name="valueAsNumber" type="number"][% valueAsNumber = numberIntegerPart + "," + numberDecimalPart; %][/VAR]
|
||||
|
||||
[VAR name="fattoreRitenuta2max" type="number"][TAG]SCHEMAID,341,COL0030,IUQOID, , [/TAG][/VAR]
|
||||
[VAR name="ritenuta2max" type="number"][% ritenuta2max = valueAsNumber * fattoreRitenuta2max; %][/VAR]
|
||||
[VAR name="ritenuta2maxMessage" type="string"][% ritenuta2maxMessage = "L'importo massimo (2%) dell'ulteriore ritenuta deliberata dalla struttura è: " + ritenuta2max + " €"; %][/VAR]
|
||||
|
||||
[%= ritenuta2maxMessage %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
info:
|
||||
name: Codice Contratto con caratteri strani
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
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: "16204"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"itemCodiceContratto": "CRIS_G_25_CCS_IST_RA_UNIVERSITÀPOLITECNICADELL_01"
|
||||
}
|
||||
}
|
||||
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=\"codiceContratto\" type=\"string\"][VALUE_OF varname=\"itemCodiceContratto\" /][/VAR]
|
||||
|
||||
[VAR name=\"debug\" type=\"boolean\"][% debug = false; %][/VAR]
|
||||
|
||||
|
||||
[!-- Titolo contratto ha il formato \"[codice_contratto] titolo\" --]
|
||||
|
||||
[!-- La prima split fatta per \"\\] \" mi restituisce \"[codice_contratto\" --]
|
||||
|
||||
[VAR name=\"firstSplit\" type=\"iterable\"][SPLIT regex=\"\\] \"][VALUE_OF varname=\"itemCodiceContratto\" /][/SPLIT][/VAR]
|
||||
|
||||
[VAR name=\"firstSplitIdx\"][% firstSplitIdx = 0; %][/VAR]
|
||||
|
||||
[!-- La seconda split fatta per \"\\[\" mi restituisce \"codice_contratto\" --]
|
||||
|
||||
[VAR name=\"secondSplit\" type=\"iterable\"][SPLIT regex=\"\\[\"][VALUE_OF varname=\"firstSplit\" index=\"firstSplitIdx\" /][/SPLIT][/VAR]
|
||||
|
||||
[VAR name=\"secondSplitIdx\"][% secondSplitIdx = 1; %][/VAR]
|
||||
|
||||
|
||||
[VAR name=\"condizione\"][SIZE_OF varname=\"secondSplit\" /][/VAR]
|
||||
|
||||
[IF]
|
||||
|
||||
\ [CONDITION][% condizione > 1 %][/CONDITION]
|
||||
|
||||
\ [THEN]
|
||||
|
||||
\ [VAR name=\"codiceContratto\" type=\"string\"][VALUE_OF varname=\"secondSplit\" index=\"secondSplitIdx\" /][/VAR]
|
||||
|
||||
\ [/THEN]
|
||||
|
||||
[/IF]
|
||||
|
||||
|
||||
[VAR name=\"codiceContrattoSplit\" type=\"iterable\"][SPLIT regex=\"Ã\"][VALUE_OF varname=\"codiceContratto\" /][/SPLIT][/VAR]
|
||||
|
||||
[VAR name=\"condizioneSplit\"][SIZE_OF varname=\"codiceContrattoSplit\" /][/VAR]
|
||||
|
||||
[IF]
|
||||
|
||||
\ [CONDITION][% condizioneSplit > 1 %][/CONDITION]
|
||||
|
||||
\ [THEN]
|
||||
|
||||
\ [% debug = true; %]
|
||||
|
||||
\ [VAR name=\"codiceContrattoSplitFirst\" type=\"string\"][VALUE_OF varname=\"codiceContrattoSplit\" index=\"firstSplitIdx\" /][/VAR]
|
||||
|
||||
\ [VAR name=\"codiceContrattoSplitSecond\" type=\"string\"][VALUE_OF varname=\"codiceContrattoSplit\" index=\"secondSplitIdx\" /][/VAR]
|
||||
|
||||
\ [% codiceContratto = codiceContrattoSplitFirst + \"%C3%80\" + codiceContrattoSplitSecond; %]
|
||||
|
||||
\ [/THEN]
|
||||
|
||||
[/IF]
|
||||
|
||||
|
||||
<html>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>[%= codiceContratto %]</li>
|
||||
|
||||
<li>[%= codiceContrattoSplit %]</li>
|
||||
|
||||
<li>[%= debug %]</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</html>
|
||||
|
||||
[/EFTL]
|
||||
|
||||
`);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
info:
|
||||
name: Contratto IS economico
|
||||
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: "8463"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"docs": [
|
||||
{
|
||||
"name": "doc1",
|
||||
"quantity": 3,
|
||||
"price": 123.3
|
||||
},
|
||||
{
|
||||
"name": "doc2",
|
||||
"quantity": 5,
|
||||
"price": 213.3
|
||||
},
|
||||
{
|
||||
"name": "doc3",
|
||||
"quantity": 10,
|
||||
"price": 321.3
|
||||
}
|
||||
],
|
||||
"docsAsEntities": [
|
||||
{
|
||||
"eftlEntityType": "com.anthesi.elixforms.api.eftl.model.mock.EftlDoc",
|
||||
"eftlEntity": {
|
||||
"name": "doc1",
|
||||
"quantity": 3,
|
||||
"price": 123.3
|
||||
}
|
||||
},
|
||||
{
|
||||
"eftlEntityType": "com.anthesi.elixforms.api.eftl.model.mock.EftlDoc",
|
||||
"eftlEntity": {
|
||||
"name": "doc2",
|
||||
"quantity": 5,
|
||||
"price": 213.3
|
||||
}
|
||||
},
|
||||
{
|
||||
"eftlEntityType": "com.anthesi.elixforms.api.eftl.model.mock.EftlDoc",
|
||||
"eftlEntity": {
|
||||
"name": "doc3",
|
||||
"quantity": 10,
|
||||
"price": 321.3
|
||||
}
|
||||
}
|
||||
],
|
||||
"singleEntity": {
|
||||
"eftlEntityType": "com.anthesi.elixforms.api.eftl.model.mock.EftlDoc",
|
||||
"eftlEntity": {
|
||||
"name": "doc1",
|
||||
"quantity": 3,
|
||||
"price": 123.3
|
||||
}
|
||||
},
|
||||
"simpleList": [
|
||||
"s1",
|
||||
"s2",
|
||||
"s3"
|
||||
],
|
||||
"docsSize": 3
|
||||
}
|
||||
}
|
||||
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="tipologiaCodice" type="string"][TAG]GETVALUEBYTAG,TIPOLOGIA_CODICE,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="isEconomico" type="boolean"][% isEconomico = true; %][/VAR]
|
||||
[VAR name="tipologieNonEconomico" type="iterable"][SPLIT regex=";"][TAG]GETVALUEBYTAG,TIPOLOGIE_NON_ECONOMICO,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION]
|
||||
[CONTAINS varname="tipologieNonEconomico"][VALUE_OF varname="tipologiaCodice" /][/CONTAINS]
|
||||
[/CONDITION]
|
||||
[THEN][% isEconomico = false; %][/THEN]
|
||||
[/IF]
|
||||
|
||||
[%= isEconomico %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
info:
|
||||
name: Elenco Contraenti CSV (nominativo)
|
||||
type: http
|
||||
seq: 8
|
||||
|
||||
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: "17144"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "15956"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"DEBUG": "S"
|
||||
}
|
||||
}
|
||||
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="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
[VAR name="elencoContraentiCsv" type="string"][% elencoContraentiCsv = ""; %][/VAR]
|
||||
|
||||
[VAR name="elencoContraenti" type="string"][TRIM][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRAENTI,REQUEST,ID_OBJECT[/TAG][/TRIM][/VAR]
|
||||
[VAR name="elencoContraentiIterable" type="iterable"][SPLIT regex="\n" emptyIfBlank="true"][VALUE_OF varname="elencoContraenti" /][/SPLIT][/VAR]
|
||||
[VAR name="elencoContraentiCount" type="number"][SIZE_OF varname="elencoContraentiIterable" /][/VAR]
|
||||
|
||||
[VAR name="contraenteIdx" type="number"][% contraenteIdx = 0; %][/VAR]
|
||||
[WHILE threshold="99"]
|
||||
[CONDITION][% contraenteIdx < elencoContraentiCount %][/CONDITION]
|
||||
[DO]
|
||||
[VAR name="contraenteIterable" type="iterable"][SPLIT regex=", CF/PIVA: " emptyIfBlank="true"][TRIM][VALUE_OF varname="elencoContraentiIterable" index="contraenteIdx" /][/TRIM][/SPLIT][/VAR]
|
||||
[VAR name="contraenteDenominazione" type="string"][VALUE_OF varname="contraenteIterable" index="firstItem" /][/VAR]
|
||||
|
||||
[% elencoContraentiCsv = elencoContraentiCsv + contraenteDenominazione; %]
|
||||
[% contraenteIdx = contraenteIdx + 1; %]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% contraenteIdx < elencoContraentiCount %][/CONDITION]
|
||||
[THEN]
|
||||
[% elencoContraentiCsv = elencoContraentiCsv + ", "; %]
|
||||
[/THEN]
|
||||
[/IF]
|
||||
[/DO][/WHILE]
|
||||
|
||||
[%= elencoContraentiCsv %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
info:
|
||||
name: Elenco RS CSV (cognome nome)
|
||||
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: "17144"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"DEBUG": "S"
|
||||
}
|
||||
}
|
||||
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="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
[VAR name="elencoResponsabiliCsv" type="string"][% elencoResponsabiliCsv = ""; %][/VAR]
|
||||
|
||||
[VAR name="elencoResponsabili" type="string"][TRIM][TAG]GETVALUEBYTAG,PROPOSTA_CCT_ALTRI_RS,REQUEST,ID_OBJECT[/TAG][/TRIM][/VAR]
|
||||
[VAR name="elencoResponsabiliIterable" type="iterable"][SPLIT regex="\n" emptyIfBlank="true"][VALUE_OF varname="elencoResponsabili" /][/SPLIT][/VAR]
|
||||
[VAR name="elencoResponsabiliCount" type="number"][SIZE_OF varname="elencoResponsabiliIterable" /][/VAR]
|
||||
|
||||
[VAR name="responsabileIdx" type="number"][% responsabileIdx = 0; %][/VAR]
|
||||
[WHILE threshold="99"]
|
||||
[CONDITION][% responsabileIdx < elencoResponsabiliCount %][/CONDITION]
|
||||
[DO]
|
||||
[VAR name="responsabileIterable" type="iterable"][SPLIT regex=", CF: " emptyIfBlank="true"][TRIM][VALUE_OF varname="elencoResponsabiliIterable" index="responsabileIdx" /][/TRIM][/SPLIT][/VAR]
|
||||
[VAR name="responsabileNominativo" type="string"][VALUE_OF varname="responsabileIterable" index="firstItem" /][/VAR]
|
||||
|
||||
[% elencoResponsabiliCsv = elencoResponsabiliCsv + responsabileNominativo; %]
|
||||
[% responsabileIdx = responsabileIdx + 1; %]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% responsabileIdx < elencoResponsabiliCount %][/CONDITION]
|
||||
[THEN]
|
||||
[% elencoResponsabiliCsv = elencoResponsabiliCsv + ", "; %]
|
||||
[/THEN]
|
||||
[/IF]
|
||||
[/DO][/WHILE]
|
||||
|
||||
[%= elencoResponsabiliCsv %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
info:
|
||||
name: Elenco contraenti formattati
|
||||
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: "8760"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"docs": [
|
||||
{
|
||||
"name": "doc1",
|
||||
"quantity": 3,
|
||||
"price": 123.3
|
||||
},
|
||||
{
|
||||
"name": "doc2",
|
||||
"quantity": 5,
|
||||
"price": 213.3
|
||||
},
|
||||
{
|
||||
"name": "doc3",
|
||||
"quantity": 10,
|
||||
"price": 321.3
|
||||
}
|
||||
],
|
||||
"docsAsEntities": [
|
||||
{
|
||||
"eftlEntityType": "com.anthesi.elixforms.api.eftl.model.mock.EftlDoc",
|
||||
"eftlEntity": {
|
||||
"name": "doc1",
|
||||
"quantity": 3,
|
||||
"price": 123.3
|
||||
}
|
||||
},
|
||||
{
|
||||
"eftlEntityType": "com.anthesi.elixforms.api.eftl.model.mock.EftlDoc",
|
||||
"eftlEntity": {
|
||||
"name": "doc2",
|
||||
"quantity": 5,
|
||||
"price": 213.3
|
||||
}
|
||||
},
|
||||
{
|
||||
"eftlEntityType": "com.anthesi.elixforms.api.eftl.model.mock.EftlDoc",
|
||||
"eftlEntity": {
|
||||
"name": "doc3",
|
||||
"quantity": 10,
|
||||
"price": 321.3
|
||||
}
|
||||
}
|
||||
],
|
||||
"singleEntity": {
|
||||
"eftlEntityType": "com.anthesi.elixforms.api.eftl.model.mock.EftlDoc",
|
||||
"eftlEntity": {
|
||||
"name": "doc1",
|
||||
"quantity": 3,
|
||||
"price": 123.3
|
||||
}
|
||||
},
|
||||
"simpleList": [
|
||||
"s1",
|
||||
"s2",
|
||||
"s3"
|
||||
],
|
||||
"docsSize": 3
|
||||
}
|
||||
}
|
||||
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="idxNome" type="number"][% idxNome = 0; %][/VAR]
|
||||
[VAR name="idxCfPIva" type="number"][% idxCfPIva = 1; %][/VAR]
|
||||
[VAR name="idxSede" type="number"][% idxSede = 2; %][/VAR]
|
||||
|
||||
[VAR name="elencoContraentiCompleto" type="string"][% elencoContraentiCompleto = ""; %][/VAR]
|
||||
|
||||
[VAR name="contraenti" type="iterable"][SPLIT regex="\n"][TAG]SCHEMAID,341,COL0004,IUQOID, , [/TAG][/SPLIT][/VAR]
|
||||
[VAR name="countContraenti" type="number"][SIZE_OF varname="contraenti" /][/VAR]
|
||||
[VAR name="idxContraente" type="number"][% idxContraente = 0; %][/VAR]
|
||||
|
||||
[!-- Estraggo i dati del primo contraente (ce ne sarà sempre almeno uno) --]
|
||||
[VAR name="currContraente" type="string"][VALUE_OF varname="contraenti" index="idxContraente" /][/VAR]
|
||||
[VAR name="currContraenteSplit" type="iterable"][SPLIT regex=", (.*?):"][TRIM][VALUE_OF varname="currContraente" /][/TRIM][/SPLIT][/VAR]
|
||||
[VAR name="currContraenteNome" type="string"][TRIM][VALUE_OF varname="currContraenteSplit" index="idxNome" /][/TRIM][/VAR]
|
||||
[VAR name="currContraenteCfPIva" type="string"][TRIM][VALUE_OF varname="currContraenteSplit" index="idxCfPIva" /][/TRIM][/VAR]
|
||||
[VAR name="currContraenteSede" type="string"][TRIM][VALUE_OF varname="currContraenteSplit" index="idxSede" /][/TRIM][/VAR]
|
||||
[% elencoContraentiCompleto = currContraenteNome + " (CF/PIVA: " + currContraenteCfPIva + ") con sede legale in " + currContraenteSede; %]
|
||||
|
||||
[!-- Se c'è più di un contraente, ciclo su tutti i rimanenti (tutto questo per non avere una ", " in fondo alla stringa finale...) --]
|
||||
[WHILE]
|
||||
[CONDITION][% idxContraente < countContraenti - 1 %][/CONDITION]
|
||||
[DO]
|
||||
[% idxContraente = idxContraente + 1; %]
|
||||
|
||||
[VAR name="currContraente" type="string"][VALUE_OF varname="contraenti" index="idxContraente" /][/VAR]
|
||||
[VAR name="currContraenteSplit" type="iterable"][SPLIT regex=", (.*?):"][TRIM][VALUE_OF varname="currContraente" /][/TRIM][/SPLIT][/VAR]
|
||||
[VAR name="currContraenteNome" type="string"][VALUE_OF varname="currContraenteSplit" index="idxNome" /][/VAR]
|
||||
[VAR name="currContraenteCfPIva" type="string"][VALUE_OF varname="currContraenteSplit" index="idxCfPIva" /][/VAR]
|
||||
[VAR name="currContraenteSede" type="string"][VALUE_OF varname="currContraenteSplit" index="idxSede" /][/VAR]
|
||||
[% elencoContraentiCompleto = elencoContraentiCompleto + ", " + currContraenteNome + " (CF/PIVA: " + currContraenteCfPIva + ") con sede legale in " + currContraenteSede; %]
|
||||
[/DO]
|
||||
[/WHILE]
|
||||
|
||||
[%= elencoContraentiCompleto %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
info:
|
||||
name: Fascicolo e documento - Nuovo formato
|
||||
type: http
|
||||
seq: 9
|
||||
|
||||
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: "17144"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "15956"
|
||||
- name: x-ef-request-id
|
||||
value: "25981"
|
||||
disabled: true
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"DEBUG": "S"
|
||||
}
|
||||
}
|
||||
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="idContratto" type="string"][TAG]GETVALUEBYTAG,ID_IRIS,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="titoloContratto" type="string"][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_DESCR,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="responsabiliCsv" type="string"][TAG]GETVALUEBYTAG,ELENCO_RS_CSV,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="contraentiCsv" type="string"][TAG]GETVALUEBYTAG,ELENCO_CONTRAENTI_CSV,REQUEST,IUQOID[/TAG][/VAR]
|
||||
|
||||
Debug: [TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG]
|
||||
|
||||
Fascicolo: [TAG]GETVALUEBYTAG,ID_IRIS,REQUEST,IUQOID[/TAG] - [TAG]GETVALUEBYTAG,ELENCO_CONTRAENTI_CSV,REQUEST,IUQOID[/TAG] - [TAG]GETVALUEBYTAG,ELENCO_RS_CSV,REQUEST,IUQOID[/TAG] - [TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_DESCR,REQUEST,IUQOID[/TAG]
|
||||
Documento: Proposta di Contratto / Convenzione - [TAG]GETVALUEBYTAG,ID_IRIS,REQUEST,IUQOID[/TAG] - [TAG]GETVALUEBYTAG,ELENCO_CONTRAENTI_CSV,REQUEST,IUQOID[/TAG] - [TAG]GETVALUEBYTAG,ELENCO_RS_CSV,REQUEST,IUQOID[/TAG] - [TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_DESCR,REQUEST,IUQOID[/TAG]
|
||||
|
||||
Old Fas: [TAG]SCHEMAID,341,COL0001,IUQOID, , [/TAG]
|
||||
Old Doc: Proposta di contratto / convenzione - ID contratto: [TAG]SCHEMAID,341,COL0001,IUQOID, , [/TAG]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
info:
|
||||
name: Fascicolo e documento su Titulus
|
||||
type: http
|
||||
seq: 6
|
||||
|
||||
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: "17144"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "25889"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"DEBUG": "S"
|
||||
}
|
||||
}
|
||||
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" /]
|
||||
|
||||
[TAG]GETVALUEBYTAG,ID_IRIS,REQUEST,ID_OBJECT[/TAG] - [TAG]GETVALUEBYTAG,ELENCO_CONTRAENTI_CSV,REQUEST,ID_OBJECT[/TAG] - [TAG]GETVALUEBYTAG,ELENCO_RS_CSV,REQUEST,ID_OBJECT[/TAG] - [TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_DESCR,REQUEST,ID_OBJECT[/TAG]
|
||||
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
info:
|
||||
name: Messaggio ritenute massime
|
||||
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: "22737"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22224"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22748"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22705"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22754"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"qualificheDocenti": ";Docente;Ricercatore;"
|
||||
}
|
||||
}
|
||||
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="C_B3" type="number"][TAG]GETVALUEBYTAG,C_B3,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="D1_1" type="number"][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_D_1_1,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="D1_2" type="number"][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_D_1_2,REQUEST,IUQOID[/TAG][/VAR]
|
||||
|
||||
[VAR name="numberIterable" type="iterable"][SPLIT regex="\."][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_A,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]
|
||||
[VAR name="first" type="number"][% first = 0; %][/VAR]
|
||||
[VAR name="second" type="number"][% second = 1; %][/VAR]
|
||||
[VAR name="numberIntegerPart" type="string"][VALUE_OF varname="numberIterable" index="first" /][/VAR]
|
||||
[VAR name="numberDecimalPart" type="string"][VALUE_OF varname="numberIterable" index="second" /][/VAR]
|
||||
[IF][CONDITION][IS_EMPTY varname="numberDecimalPart" /][/CONDITION][THEN][% numberDecimalPart = "00"; %][/THEN][/IF]
|
||||
[VAR name="A" type="number"][% A = numberIntegerPart + "," + numberDecimalPart; %][/VAR]
|
||||
|
||||
[VAR name="D1_3" type="number"][% D1_3 = D1_1 + D1_2 - (A * 0.20); %][/VAR]
|
||||
[VAR name="QuotaAteneo" type="number"][% QuotaAteneo = 0; %][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% D1_3 > 0 %][/CONDITION]
|
||||
[THEN][% QuotaAteneo = D1_3 * 0.05; %][/THEN]
|
||||
[/IF]
|
||||
|
||||
[VAR name="D2" type="number"][% D2 = C_B3 - D1_1 - D1_2 - (2 * QuotaAteneo); %][/VAR]
|
||||
|
||||
[FORMAT type="number" pattern="#,##0.00"][% D2 %][/FORMAT]
|
||||
[/EFTL]
|
||||
`)
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: CCT - Proposta Operatore
|
||||
type: folder
|
||||
seq: 1
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
Reference in New Issue
Block a user