Toevoegen Investeringsbegroting en Meerjarenonderhoudsbegroting à la LUDE

Aanpassen bezoekersbadge voor oproep-bezoekers

svn path=/Website/trunk/; revision=23316
This commit is contained in:
Peter Koerhuis
2014-11-12 12:20:04 +00:00
parent 9e11332d82
commit 8c1f148aa0

View File

@@ -7,10 +7,44 @@
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>
<xsl:variable name="PRJ_AFDELING_THEMA_KEY">82</xsl:variable>
<xsl:variable name="PRJ_ONDERHANDEN_THEMA_KEY">26</xsl:variable>
<xsl:variable name="PRJ_BEWONER_LABEL_KEY">-1</xsl:variable>
<xsl:variable name="FacilitorRoot"><xsl:value-of select="//header/custId"/>.facilitorlabs.nl</xsl:variable>
<xsl:variable name="smallcase" select="'abcdefghijklmnopqrstuvwxyz'"/>
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
<xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/>
<xsl:variable name="PRJ_AFDELING_THEMA_KEY">82</xsl:variable>
<xsl:variable name="PRJ_ONDERHANDEN_THEMA_KEY">26</xsl:variable>
<xsl:variable name="PRJ_BEWONER_LABEL_KEY">-1</xsl:variable>
<xsl:variable name="FacilitorRoot"><xsl:value-of select="//header/custId"/>.facilitorlabs.nl</xsl:variable>
<xsl:template match="bezoeker" mode="badge">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
<tr>
<td colspan="2" style="text-align:center; font-size:30px; font-weight: bold; height:60px;"><xsl:value-of select="//lcl/BEZ/bezoeker"/></td>
</tr>
<tr>
<td colspan="2" style="text-align:center; font-size:24px; font-weight: bold; height:30px;"><xsl:value-of select="naam"/></td>
</tr>
<xsl:if test="bedrijf!=''">
<tr>
<td colspan="2" style="text-align:center; font-size:16px; height:30px;"><xsl:value-of select="bedrijf"/></td>
</tr>
</xsl:if>
<xsl:if test="pasnr!=''">
<tr>
<td colspan="2" style="text-align:center; font-size:24px; font-weight: bold; height:40px;"><xsl:value-of select="pasnr"/></td>
</tr>
</xsl:if>
<tr>
<td style="width: 50%;">&#160;</td>
<td style="width: 50%; padding-top: 20px; text-align:right;">
<xsl:element name="img">
<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/tmpl_logo.gif</xsl:attribute>
<xsl:attribute name="style">width: 100%;</xsl:attribute>
</xsl:element>
</td>
</tr>
</TABLE>
</xsl:template>
<xsl:template match="melding" mode="full">
<xsl:choose>
@@ -495,6 +529,104 @@ function startAutoRefreshTim() {
</table>
</xsl:if>
<xsl:if test="translate(@view, $smallcase, $uppercase)='DEMO_V_RAP_MJB_GRID'">
<table width="100%" class="DefResultsetTable" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th style="text-align: left">Locatie</th>
<th style="text-align: left">Categorie</th>
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row[generate-id(.)=generate-id(key('jaar',FCLT_F_JAAR)[1])]">
<xsl:sort select="FCLT_F_JAAR"/>
<th style="text-align: right">
<xsl:value-of select="FCLT_F_JAAR"/>
</th>
</xsl:for-each>
<th style="text-align: right">Totaal</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row[generate-id(.)=generate-id(key('regel',HIDE_F_REGEL)[1])]">
<xsl:sort select="HIDE_F_REGEL"/>
<xsl:variable name="regelbedrag">
<xsl:value-of select="sum(key('regel', HIDE_F_REGEL)/BEDRAG)"/>
</xsl:variable>
<xsl:if test="$regelbedrag!=0">
<tr>
<td>
<xsl:value-of select="FCLT_F_LOCATIE"/>
</td>
<td>
<xsl:value-of select="FCLT_F_CATEGORIE"/>
</td>
<xsl:for-each select="key('regel', HIDE_F_REGEL)">
<xsl:sort select="FCLT_F_JAAR"/>
<td style="text-align: right">
<xsl:if test="BEDRAG!=0">
<xsl:value-of select="format-number(BEDRAG, '#,#', 'euro')"/>
</xsl:if>
</td>
</xsl:for-each>
<!--td style="text-align: right"><xsl:value-of select="sum(key('regel', HIDE_F_REGEL)/BEDRAG)"/></td-->
<td style="text-align: right"><xsl:value-of select="format-number($regelbedrag, '#,#', 'euro')"/></td>
</tr>
</xsl:if>
</xsl:for-each>
</tbody>
<tfoot>
<tr>
<th colspan="2" style="text-align: left">Totaal</th>
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row[generate-id(.)=generate-id(key('jaar',FCLT_F_JAAR)[1])]">
<xsl:sort select="FCLT_F_JAAR"/>
<th style="text-align: right">
<xsl:value-of select="format-number(sum(key('jaar', FCLT_F_JAAR)/BEDRAG), '#,#', 'euro')"/>
</th>
</xsl:for-each>
<th style="text-align: right"><xsl:value-of select="format-number(sum(//BEDRAG), '#,#', 'euro')"/></th>
</tr>
</tfoot>
</table>
</xsl:if>
<xsl:if test="translate(@view, $smallcase, $uppercase)='DEMO_V_RAP_BEZ_OPROEP'">
<style>
.oproep-table {
width: 90%;
margin: 2em auto 2em auto;
text-align: center;
font-size: 3em;
}
.oproep-table th {
padding: 0.2em;
}
.oproep-table td {
border-bottom: 1px solid #ccc;
padding: 1em;
}
.oproep-table td.oproep-nr {
font-weight: bold;
}
.oproep-table td.new {
font-weight: bold;
background-color: #f1f1f1;
}
</style>
<table class="oproep-table">
<tr>
<th>Nummer</th>
<th>Naar</th>
</tr>
<xsl:for-each select="rapport_data/data_row">
<xsl:sort select="HIDE_F_OPROEPTIJD" order="descending"/>
<tr>
<td class="oproep-nr"><xsl:value-of select="OPROEPNR"/></td>
<td class="oproep-ruimte"><xsl:value-of select="FCLT_F_RUIMTENR"/></td>
</tr>
</xsl:for-each>
</table>
</xsl:if>
</xsl:template>
</xsl:stylesheet>