PCHD#41213 -- TV Schermen voor monitoring
svn path=/Website/branches/v2017.2/; revision=36200
This commit is contained in:
@@ -883,7 +883,8 @@ function alternate(){
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:if>
|
||||
<xsl:if test="@view='pchx_v_dashboard_korting'">
|
||||
|
||||
<xsl:if test="@view='pchx_v_dashboard_korting' or @view='pchx_v_dashboard_korting_optij'">
|
||||
|
||||
<table width="100%" class="RStable" border="1" cellpadding="2" cellspacing="2" style="border:1; border-color: #ccc">
|
||||
|
||||
@@ -897,12 +898,16 @@ function alternate(){
|
||||
</tr>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="@usrrap_key='501'">
|
||||
<!-- Dashboard: Op tijd -->
|
||||
|
||||
<xsl:variable name="sorted">
|
||||
<xsl:for-each select="rapport_data/data_row">
|
||||
<xsl:sort select="HIDE_F_MARGE" order="ascending"/>
|
||||
<xsl:if test="HIDE_F_MARGE < 5">
|
||||
<xsl:copy-of select="."/>
|
||||
</xsl:if>
|
||||
<xsl:sort select="HIDE_F_MARGE" order="ascending" data-type="number"/>
|
||||
<xsl:if test="HIDE_F_MARGE > 0">
|
||||
<xsl:copy-of select="."/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
@@ -912,9 +917,10 @@ function alternate(){
|
||||
<th style="text-align:left">Melding</th>
|
||||
<th style="text-align:left">Omschrijving</th>
|
||||
<th style="text-align:center">Marge</th>
|
||||
<th style="text-align:right">Korting/THT</th>
|
||||
<th style="text-align:right">THT tijdstip</th>
|
||||
<th style="text-align:right">THT</th>
|
||||
<th style="text-align:right">Basiskorting</th>
|
||||
<th style="text-align:right">Variabele korting</th>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
|
||||
@@ -928,42 +934,204 @@ function alternate(){
|
||||
<xsl:element name="td">
|
||||
<xsl:choose>
|
||||
<xsl:when test="HIDE_F_MARGE < 0">
|
||||
<xsl:attribute name="style">text-align:center; background-color: red; color: white; font-weight: bold</xsl:attribute>
|
||||
<xsl:attribute name="style">text-align:center; background-color: #cc0000; color: white; font-weight: bold</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:when test="HIDE_F_MARGE < 0.25">
|
||||
<xsl:comment>Kwartier</xsl:comment>
|
||||
<xsl:attribute name="style">text-align:center; background-color: orange; font-weight: bold</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:when test="HIDE_F_MARGE < 0.5">
|
||||
<xsl:comment>Half uur</xsl:comment>
|
||||
<xsl:attribute name="style">text-align:center; background-color: yellow; font-weight: bold</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="style">text-align:center;</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:value-of select="MARGE"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="HIDE_F_MARGE < 2 and HIDE_F_MARGE > -2 and EENHEID = 'U'">
|
||||
<xsl:value-of select="round(HIDE_F_MARGE * 60)"/> Min.
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="HIDE_F_MARGE"/> 
|
||||
<xsl:if test="EENHEID = 'U'">Uren</xsl:if>
|
||||
<xsl:if test="EENHEID = 'D'">Dagen</xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:element>
|
||||
<td style="text-align:right">
|
||||
<xsl:value-of select="substring-before(THT_TIJDSTIP, 'T')"/> <xsl:value-of select="substring-after(THT_TIJDSTIP, 'T')"/>
|
||||
</td>
|
||||
<td style="text-align:right">
|
||||
<xsl:choose>
|
||||
<xsl:when test="THT < 1 and EENHEID = 'U'">
|
||||
<xsl:value-of select="round(THT * 60)"/> Min.
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="THT"/> 
|
||||
<xsl:if test="EENHEID = 'U'">Uren</xsl:if>
|
||||
<xsl:if test="EENHEID = 'D'">Dagen</xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</td>
|
||||
<td style="text-align:right">
|
||||
<xsl:value-of select="BASISKORTING"/>
|
||||
</td>
|
||||
<td style="text-align:right">
|
||||
<xsl:value-of select="VARIABELEKORTING"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
|
||||
<!-- Dashboard: Te Laat -->
|
||||
<xsl:when test="@usrrap_key='502'">
|
||||
<xsl:variable name="sorted">
|
||||
<xsl:for-each select="rapport_data/data_row">
|
||||
<xsl:sort select="TOTAAL_INDEX" order="descending" data-type="number"/>
|
||||
<xsl:if test="HIDE_F_MARGE < 0">
|
||||
<xsl:copy-of select="."/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:for-each select="msxml:node-set($sorted)/data_row">
|
||||
<xsl:if test="position() = 1">
|
||||
<tr>
|
||||
<th style="text-align:left">Melding</th>
|
||||
<th style="text-align:left">Omschrijving</th>
|
||||
<th style="text-align:left">Overlappend</th>
|
||||
<th style="text-align:center">Marge</th>
|
||||
<th style="text-align:center">Korting/THT</th>
|
||||
<th style="text-align:right">THT tijdstip</th>
|
||||
<th style="text-align:right">THT</th>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
|
||||
<tr>
|
||||
<xsl:element name="td">
|
||||
<xsl:value-of select="MELDING"/>
|
||||
</xsl:element>
|
||||
<td style="text-align:left">
|
||||
<xsl:value-of select="OMSCHRIJVING"/>
|
||||
</td>
|
||||
<td style="text-align:left">
|
||||
<xsl:value-of select="OVERLAP_KORT"/>
|
||||
</td>
|
||||
<xsl:element name="td">
|
||||
<xsl:choose>
|
||||
<xsl:when test="HIDE_F_MARGE < 0">
|
||||
<xsl:attribute name="style">text-align:center; background-color: red; color: white; font-weight: bold</xsl:attribute>
|
||||
<xsl:attribute name="style">text-align:center; background-color: #cc0000; color: white; font-weight: bold</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:when test="HIDE_F_MARGE < 0.25">
|
||||
<xsl:attribute name="style">text-align:center; background-color: orange; font-weight: bold</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:when test="HIDE_F_MARGE < 0.5">
|
||||
<xsl:attribute name="style">text-align:center; background-color: yellow; font-weight: bold</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="style">text-align:center;</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>€
|
||||
<xsl:value-of select="format-number(KORTING, '0,00', 'european')"/>
|
||||
</xsl:choose>
|
||||
<xsl:choose>
|
||||
<xsl:when test="HIDE_F_MARGE < 2 and HIDE_F_MARGE > -2 and EENHEID = 'U'">
|
||||
<xsl:value-of select="round(HIDE_F_MARGE * 60)"/> Min.
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="HIDE_F_MARGE"/> 
|
||||
<xsl:if test="EENHEID = 'U'">Uren</xsl:if>
|
||||
<xsl:if test="EENHEID = 'D'">Dagen</xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:element>
|
||||
<xsl:element name="td">
|
||||
<xsl:choose>
|
||||
<xsl:when test="HIDE_F_MARGE < 0">
|
||||
<xsl:attribute name="style">text-align:center; background-color: #cc0000;; color: white; font-weight: bold</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="style">text-align:center;</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose> 
|
||||
<xsl:if test="TOTAAL_INDEX != '' and TOTAAL_INDEX != '0'">€
|
||||
<xsl:value-of select="format-number(TOTAAL_INDEX, '0,00', 'european')"/>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
<td style="text-align:right">
|
||||
<xsl:value-of select="THT_TIJDSTIP"/>
|
||||
<xsl:value-of select="substring-before(THT_TIJDSTIP, 'T')"/> <xsl:value-of select="substring-after(THT_TIJDSTIP, 'T')"/>
|
||||
</td>
|
||||
<td style="text-align:right">
|
||||
<xsl:value-of select="THT"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="THT < 1 and EENHEID = 'U'">
|
||||
<xsl:value-of select="round(THT * 60)"/> Min.
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="THT"/> 
|
||||
<xsl:if test="EENHEID = 'U'">Uren</xsl:if>
|
||||
<xsl:if test="EENHEID = 'D'">Dagen</xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</table>
|
||||
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="@view='pchw_v_dashboard_new'">
|
||||
|
||||
<table width="100%" class="RStable" border="1" cellpadding="2" cellspacing="2" style="border:1; border-color: #ccc">
|
||||
|
||||
<xsl:if test="count(rapport_data/data_row)=0">
|
||||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<b>Geen gegevens gevonden</b>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<xsl:variable name="sorted">
|
||||
<xsl:for-each select="rapport_data/data_row">
|
||||
<xsl:sort select="MLD_MELDING_KEY" order="descending" data-type="number"/>
|
||||
<xsl:if test="position() < 10">
|
||||
<xsl:copy-of select="."/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:for-each select="msxml:node-set($sorted)/data_row">
|
||||
<xsl:if test="position() = 1">
|
||||
<tr>
|
||||
<th style="text-align:left">Melding</th>
|
||||
<th style="text-align:left">Melder</th>
|
||||
<th style="text-align:center">Datum</th>
|
||||
<th style="text-align:left">Omschrijving</th>
|
||||
<th style="text-align:left">Vakgroep</th>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<tr>
|
||||
<xsl:element name="td">
|
||||
<xsl:value-of select="MLD_MELDING_KEY"/>
|
||||
</xsl:element>
|
||||
<td style="text-align:left">
|
||||
<xsl:value-of select="PRS_PERSLID_NAAM_FULL"/>
|
||||
</td>
|
||||
<td style="text-align:center">
|
||||
<xsl:value-of select="substring-before(MLD_MELDING_DATUM, 'T')"/> <xsl:value-of select="substring-after(MLD_MELDING_DATUM, 'T')"/>
|
||||
</td>
|
||||
<td style="text-align:left">
|
||||
<xsl:value-of select="INS_DISCIPLINE_OMSCHRIJVING"/>
|
||||
</td>
|
||||
<td style="text-align:left">
|
||||
<xsl:value-of select="MLD_STDMELDING_OMSCHRIJVING"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
|
||||
</table>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2009. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2009. Progress Software Corporation. All rights reserved. -->
|
||||
</xsl:stylesheet><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2009. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2009. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2009. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2009. Progress Software Corporation. All rights reserved. -->
|
||||
Reference in New Issue
Block a user