-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExtern-Link007
165 lines (150 loc) · 6.92 KB
/
Extern-Link007
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY acute "´">
<!ENTITY Agrave "À">
<!ENTITY Aacute "Á">
<!ENTITY Acirc "Â">
<!ENTITY Egrave "È">
<!ENTITY Eacute "É">
<!ENTITY Ecirc "Ê">
<!ENTITY Igrave "Ì">
<!ENTITY Iacute "Í">
<!ENTITY Icirc "Î">
<!ENTITY Ntilde "Ñ">
<!ENTITY Ograve "Ò">
<!ENTITY Oacute "Ó">
<!ENTITY Ocirc "Ô">
<!ENTITY Ugrave "Ù">
<!ENTITY Uacute "Ú">
<!ENTITY Ucirc "Û">
<!ENTITY agrave "à">
<!ENTITY aacute "á">
<!ENTITY acirc "â">
<!ENTITY egrave "è">
<!ENTITY eacute "é">
<!ENTITY ecirc "ê">
<!ENTITY igrave "ì">
<!ENTITY iacute "í">
<!ENTITY icirc "î">
<!ENTITY ograve "ò">
<!ENTITY oacute "ó">
<!ENTITY ocirc "ô">
<!ENTITY ugrave "ù">
<!ENTITY uacute "ú">
<!ENTITY ucirc "û">
]>
<!--*****************************************************************************
Chiamata link esterno UBI ASSICURAZIONI
*****************************************************************************-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xalan="http://xml.apache.org/xslt">
<!--*****************************************************************************
Creazione form con campi di input hidden e loro valorizzazione da XML Host
ma solo se è presente un evento di tipo 'ESTERNO' verso UBI ASSICURAZIONI
Verificare se i campi sono giusti.
*****************************************************************************-->
<xsl:template name="Extern-Link0007">
<form method="post" name="formEventoEsterno" target="_blank" style="margin=0px;">
<!-- <xsl:attribute name="action">http://172.16.70.6/bpb/ServletLogin</xsl:attribute> --> <!-- link di produzione -->
<!-- <xsl:attribute name="action">http://172.16.70.3/bpb/ServletLogin</xsl:attribute> --> <!-- link di test -->
<xsl:attribute name="action">../../jpasscomp/bpb/ServletLogin</xsl:attribute> <!-- link universale -->
<!--PARAMETRI FISSI RICHIESTI DA PASSCOMPAGNIA-->
<input type="hidden" name="RGICommand" id="RGICommand">
<xsl:attribute name="value">singleSignOn</xsl:attribute>
</input>
<input type="hidden" name="RGIResponseOk" id="RGIResponseOk">
<xsl:attribute name="value">/bpbres/login/SelectPv.html</xsl:attribute>
</input>
<input type="hidden" name="RGIResponseError" id="RGIResponseError">
<xsl:attribute name="value">/bpbres/login/Start.html</xsl:attribute>
</input>
<input type="hidden" name="RGIResponseFast" id="RGIResponseFast">
<xsl:attribute name="value">/bpbres/login/Home.html</xsl:attribute>
</input>
<!--CON CAMPI TESTO HIDDEN-->
<!--DIMENSIONATI CON LA DIMENSIONE PREVISTA DA LENINT-->
<input type="hidden" name="UBIuid" id="UBIuid">
<xsl:attribute name="value">
<xsl:value-of select="substring(//TEMPLATE[@CDOGG = 'SECTI' and @CARD = '001']/CAMPO[@CODICE = 'MATR']/VALORE,1,//TEMPLATE[@CDOGG = 'SECTI' and @CARD = '001']/CAMPO[@CODICE = 'MATR']/LENINT)" />
</xsl:attribute>
<xsl:attribute name="maxlength">7</xsl:attribute>
</input>
<input type="hidden" name="UBIabi" id="UBIabi">
<xsl:attribute name="value">
<xsl:value-of select="format-number(substring(//TEMPLATE[@CDOGG = 'SECTI' and @CARD = '001']/CAMPO[@CODICE = 'CODABI']/VALORE,1,//TEMPLATE[@CDOGG = 'SECTI' and @CARD = '001']/CAMPO[@CODICE = 'CODABI']/LENINT), '00000')" />
</xsl:attribute>
<xsl:attribute name="maxlength">
<xsl:value-of select="format-number(//TEMPLATE[@CDOGG = 'SECTI' and @CARD = '001']/CAMPO[@CODICE = 'CODABI']/LENINT,00)" />
</xsl:attribute>
</input>
<input type="hidden" name="UBIcab" id="UBIcab">
<xsl:attribute name="value">
<xsl:value-of select="format-number(substring(//TEMPLATE[@CDOGG = 'SECTI' and @CARD = '001']/CAMPO[@CODICE = 'CDCABEMI']/VALORE,1,//TEMPLATE[@CDOGG = 'SECTI' and @CARD = '001']/CAMPO[@CODICE = 'CDCABEMI']/LENINT), '00000')" />
</xsl:attribute>
<xsl:attribute name="maxlength">
<xsl:value-of select="format-number(//TEMPLATE[@CDOGG = 'SECTI' and @CARD = '001']/CAMPO[@CODICE = 'CDCABEMI']/LENINT,00)" />
</xsl:attribute>
</input>
<input type="hidden" name="UBIfilialiOperatore" id="UBIfilialiOperatore">
<xsl:attribute name="value">
<xsl:value-of select="format-number(substring(//TEMPLATE[@CDOGG = 'SECTI' and @CARD = '001']/CAMPO[@CODICE = 'CDDIPEMI']/VALORE,2,//TEMPLATE[@CDOGG = 'SECTI' and @CARD = '001']/CAMPO[@CODICE = 'CDDIPEMI']/LENINT), '0000')" />
</xsl:attribute>
<xsl:attribute name="maxlength">4</xsl:attribute>
</input>
<xsl:for-each select="/SERVICE/SESSION/PROCESSO/FRAME/TEMPLATE/CAMPO[@CODICE='CDDIPAGG1']/OPTION">
<input type="hidden" name="UBIelencoFiliali">
<xsl:attribute name="value">
<xsl:value-of select="@VALUE"/>
</xsl:attribute>
</input>
</xsl:for-each>
<!--TRANSCODIFICA DEL PROFILO-->
<!--LIV1, LIV2, LIV3, LIV4 e LIV5-->
<!--
1 : Filiale di Cassa
2: Filiale commerciale BPU
3: Responsabile filiale BPU
4: Commerciale BPU
5: Banca telefonica.
-->
<input type="hidden" name="UBIprofilo" id="UBIprofilo">
<xsl:attribute name="value">
<xsl:value-of select="substring(//TEMPLATE[@CDOGG = 'SECTI' and @CARD = '001']/CAMPO[@CODICE = 'CPROFILO']/VALORE,1,5)" />
</xsl:attribute>
<xsl:attribute name="maxlength">1</xsl:attribute>
</input>
<input type="hidden" name="UBIlivelloDeroga" id="UBIlivelloDeroga">
<xsl:attribute name="value">38</xsl:attribute>
<xsl:attribute name="maxlength">2</xsl:attribute>
</input>
<input type="hidden" name="UBIlivelloVisione" id="UBIlivelloVisione">
<xsl:attribute name="value">2</xsl:attribute>
<xsl:attribute name="maxlength">1</xsl:attribute>
</input>
<input type="hidden" name="UBIidTipiProdotto" id="UBIidTipiProdotto">
<xsl:attribute name="value">1,4,5,6</xsl:attribute>
<xsl:attribute name="maxlength">7</xsl:attribute>
</input>
<input type="hidden" name="Token" id="Token">
<xsl:attribute name="value">
<xsl:value-of select="//TOKEN" />
</xsl:attribute>
<xsl:attribute name="maxlength">48</xsl:attribute>
</input>
</form>
</xsl:template>
<!--*****************************************************************************
Creazione Pulsante per passaggio a UBI ASSICURAZIONI.
*****************************************************************************-->
<xsl:template name="Button-Link0007">
<input type="button" class="formButton">
<!--Reperisco il Nome del servizio dal contenuto del tag-->
<xsl:attribute name="value">
<xsl:value-of select="normalize-space(//EVENTO[@TIPO='E' and @CODICE = 'LINK0007'])" />
</xsl:attribute>
<xsl:attribute name="onclick">
<xsl:value-of select="'javascript:document.formEventoEsterno.submit();location.href="exampleAction?cmd=home"'" />
</xsl:attribute>
</input>
</xsl:template>
</xsl:stylesheet>