PCHD#41213 -- TV Schermen voor monitoring

svn path=/Website/branches/v2017.2/; revision=35982
This commit is contained in:
Arthur Egberink
2017-11-14 10:11:56 +00:00
parent 3920bb2274
commit 211a829da3

View File

@@ -3,6 +3,71 @@
<xsl:import href="../../../appl/shared/default.xsl"/>
<xsl:import href="../../pchx/xsl/default.xsl"/>
<xsl:template name="pageheader-idnova">
<table border="0" width="100%">
<tr>
<td width="34%" bordercolor="#FFFFFF">
<xsl:choose>
<xsl:when test="$mode='email'">
<img src="cid:idnova.gif"/>
</xsl:when>
<xsl:otherwise>
<xsl:element name="img">
<xsl:attribute name="class">flogoimg</xsl:attribute>
<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/idnova.gif</xsl:attribute>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</td>
<td width="33%"></td>
<td width="33%" align="right" valign="bottom" style="text-align:right" class="fheaddate">
<b><xsl:value-of select="//lcl/FAC/printdatum"/>:&#xA0;</b>
<xsl:value-of select="//header/dateTime"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="melding" mode="full">
<xsl:choose>
<xsl:when test="$mode='summary'"></xsl:when>
<xsl:otherwise>
<html>
<xsl:comment>================================ MELDINGEN ==============================</xsl:comment>
<xsl:comment>FACILITOR default XSL template for melding</xsl:comment>
<xsl:call-template name="htmlhead"/>
<xsl:element name="body">
<xsl:call-template name="pageheader-idnova"/>
<xsl:choose>
<xsl:when test="$srtnotificatiecode = 'MLDKTO'">
<xsl:apply-templates select="." mode="kto"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="include"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$mode = 'email'">
<tr>
<br/>
<td colspan="4">
<xsl:element name="a">
<xsl:attribute name="href">https://<xsl:value-of select="$FacilitorRoot"/>?SSO=1&amp;<xsl:value-of select="../bookmarks/melding"/>
<xsl:value-of select="key"/>
</xsl:attribute>
<xsl:value-of select="$clicktxt"/>
</xsl:element>
</td>
</tr>
</xsl:if>
<xsl:call-template name="pagefooter"/>
</xsl:element>
</html>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="rapport">
<style>td { border-bottom: 1px solid #ccc; padding: 4px 3px 8px 3px;}</style>
<xsl:if test="@view='pcha_v_rap_gbs_status_info'">
@@ -117,10 +182,97 @@
</tr>
</xsl:if>
<xsl:choose>
<xsl:when test="@usrrap_key='441'">
<!-- 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 &lt; 5">
<xsl:sort select="HIDE_F_MARGE" order="ascending" data-type="number"/>
<xsl:if test="HIDE_F_MARGE &gt; 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:center">Marge</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>
<tr>
<xsl:element name="td">
<xsl:value-of select="MELDING"/>
</xsl:element>
<td style="text-align:left">
<xsl:value-of select="OMSCHRIJVING"/>
</td>
<xsl:element name="td">
<xsl:choose>
<xsl:when test="HIDE_F_MARGE &lt; 0">
<xsl:attribute name="style">text-align:center; background-color: red; color: white; font-weight: bold</xsl:attribute>
</xsl:when>
<xsl:when test="HIDE_F_MARGE &lt; 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 &lt; 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:choose>
<xsl:when test="HIDE_F_MARGE &lt; 2 and HIDE_F_MARGE &gt; -2 and EENHEID = 'U'">
<xsl:value-of select="round(HIDE_F_MARGE * 60)"/>&#xA0;Min.
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="HIDE_F_MARGE"/>&#xA0;
<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="THT_TIJDSTIP"/>
</td>
<td style="text-align:right">
<xsl:choose>
<xsl:when test="THT &lt; 1 and EENHEID = 'U'">
<xsl:value-of select="round(THT * 60)"/>&#xA0;Min.
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="THT"/>&#xA0;
<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='461'">
<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 &lt; 0">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
@@ -151,18 +303,25 @@
<xsl:attribute name="style">text-align:center; background-color: red; color: white; font-weight: bold</xsl:attribute>
</xsl:when>
<xsl:when test="HIDE_F_MARGE &lt; 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 &lt; 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 &lt; 2 and HIDE_F_MARGE &gt; -2 and EENHEID = 'U'">
<xsl:value-of select="round(HIDE_F_MARGE * 60)"/>&#xA0;Min.
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="HIDE_F_MARGE"/>&#xA0;
<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>
@@ -194,8 +353,70 @@
</td>
</tr>
</xsl:for-each>
</xsl:when>
</xsl:choose>
</table>
</xsl:if>
<xsl:if test="@view='pcha_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() &lt; 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:right">Omschrijving</th>
<th style="text-align:right">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:left">
<xsl:value-of select="MLD_MELDING_DATUM"/>
</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-2009. Progress Software Corporation. All rights reserved. -->