KFNS#38373 -- Kostenmatrix in FACILITOR

svn path=/Website/branches/v2016.2/; revision=32165
This commit is contained in:
Arthur Egberink
2017-01-02 10:23:52 +00:00
parent 1816bb9f8d
commit 451518912e

View File

@@ -24,6 +24,16 @@
border: 0; border: 0;
} }
table.monitor td {
border: 1px solid grey;
border-collapse: collapse;
}
table.monitor th {
border: 1px solid white;
border-collapse: collapse;
}
table.details { table.details {
background-color: #366f7b; background-color: #366f7b;
} }
@@ -3277,6 +3287,69 @@ Wij verzoeken u de met de uitvoeringsdatum en de werkzaamheden gespecificeerde f
</xsl:choose> </xsl:choose>
</table> </table>
</xsl:if> </xsl:if>
<xsl:if test="@view='KFNS_V_RAP_KOSTEN_MONITOR'">
<!-- vind de eerste kostensoort om daar op te filteren en zo
alle distinct gebouwen in een for-each te krijgen -->
<xsl:variable name="kostensoort">
<xsl:for-each select="rapport_data/data_row">
<xsl:if test="position()=1">
<xsl:value-of select="PRS_KOSTENSOORT_OMS"/>
</xsl:if>
</xsl:for-each>
</xsl:variable>
<!-- De lijst met alle records -->
<xsl:variable name="sorted">
<xsl:for-each select="rapport_data/data_row">
<xsl:sort select="ALG_GEBOUW_CODE"/>
<xsl:sort select="VOLGORDE"/>
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:variable>
<!-- Lijst met alleen de distinct gebouwen van de kostensoort
die we gevonden hebben hierboven -->
<xsl:variable name="distinct">
<xsl:for-each select="rapport_data/data_row">
<xsl:sort select="ALG_GEBOUW_CODE"/>
<xsl:if test="PRS_KOSTENSOORT_OMS = $kostensoort">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:variable>
<table class="monitor">
<xsl:for-each select="msxml:node-set($distinct)/data_row">
<xsl:variable name="gebouw">
<xsl:value-of select="ALG_GEBOUW_CODE"/>
</xsl:variable>
<xsl:if test="position() = 1">
<th>Gebouw</th>
<xsl:for-each select="msxml:node-set($sorted)/data_row[ALG_GEBOUW_CODE=$gebouw]">
<th>
<xsl:value-of select="PRS_KOSTENSOORT_OMS"/>
</th>
</xsl:for-each>
</xsl:if>
<tr>
<td>
<xsl:value-of select="ALG_GEBOUW_CODE"/>
</td>
<xsl:for-each select="msxml:node-set($sorted)/data_row[ALG_GEBOUW_CODE=$gebouw]">
<td style="text-align: right">
<xsl:if test="format-number(BEDRAG, '###.###.##0,00', 'european') != 'NaN'">
<xsl:value-of select="format-number(BEDRAG, '###.###.##0,00', 'european')"/>
</xsl:if>
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>
</xsl:if>
</body> </body>
</html> </html>
</xsl:template> </xsl:template>