HOUT#53141 MLDACP/MLDAFM-noti (incl. clean-up)

svn path=/Website/branches/v2017.3/; revision=37944
This commit is contained in:
Maarten van der Heide
2018-05-18 11:40:31 +00:00
parent 30300ef247
commit 28490b06aa

View File

@@ -6,48 +6,22 @@
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>
<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:if test="$mode!='email'">
<xsl:attribute name="onload">window.print();</xsl:attribute>
</xsl:if>
<xsl:call-template name="pageheader"/>
<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:call-template name="pagefooter"/>
</xsl:element>
</html>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:variable name="Xsrtnotificatiecode">MLDAFM</xsl:variable>
<xsl:template match="melding" mode="include">
<table border="0" width="100%" cellpadding="2">
<tr>
<td colspan="3"/>
<td style="text-align:right"><xsl:element name="img">
<xsl:attribute name="width">140px</xsl:attribute>
<xsl:attribute name="src">../../appl/shared/barcode.asp?text=<xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/>&amp;height=50&amp;narrow=1&amp;wide=3</xsl:attribute>
</xsl:element>
</td>
</tr>
<tr>
<td colspan="4" style="text-align:right">
<xsl:element name="img">
<xsl:attribute name="width">140px</xsl:attribute>
<xsl:attribute name="src">../../appl/shared/barcode.asp?text=<xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/>&amp;height=50&amp;narrow=1&amp;wide=3</xsl:attribute>
</xsl:element>
</td>
</tr>
<xsl:if test="not(//opdracht/extra_key) and extra_key">
<xsl:variable name="mx_key"><xsl:value-of select="extra_key"/></xsl:variable>
<tr>
<td align="right" valign="top" style="padding-top:10px;">
<td style="padding-top:10px;">
<b><xsl:value-of select="//lcl/FAC/bericht"/>:</b>
</td>
<td colspan="3" style="padding-top:10px;">
@@ -57,9 +31,7 @@
</td>
</tr>
<tr>
<td colspan="4" style="padding-bottom:20px;">
<hr/>
</td>
<td colspan="4" style="padding-bottom:20px;"><hr/></td>
</tr>
</xsl:if>
<xsl:choose>
@@ -69,283 +41,199 @@
<!--==============================================-->
<!-- DEFAULT BON -->
<!--==============================================-->
<!--121=FM Facilities Management = oud?-->
<xsl:when test="discipline/srtdiscipline/key=121">
<tr height="30px">
<td colspan="3"/>
<tr height="30px"><td colspan="4"/></tr>
<tr><td colspan="4">Statusmelding Facilities <xsl:value-of select="discipline/omschrijving"/></td></tr>
<tr height="20px"><td colspan="4"/></tr>
<tr>
<td width="16%"><b>Status:</b></td>
<td colspan="3"><b><xsl:value-of select="status"/></b></td>
</tr>
<tr height="20px"><td colspan="4"/></tr>
<tr>
<td><b>Nummer:</b></td>
<td colspan="3"><xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/></td>
</tr>
<tr>
<td colspan="3">Statusmelding Facilities <xsl:value-of select="discipline/omschrijving"/></td>
</tr>
<tr height="20px">
<td colspan="3"/>
<td><b>Startdatum:</b></td>
<td colspan="3"><xsl:value-of select="gemeld/datum"/></td>
</tr>
<tr>
<td align="right" width="16%"><b>Status:</b></td>
<td align="left"><b><xsl:value-of select="status"/></b></td>
</tr>
<tr height="20px">
<td colspan="3"/>
<td><b>Behandelaar:</b></td>
<td colspan="3"><xsl:value-of select="behandelaar/naam_full"/></td>
</tr>
<tr>
<td align="right" width="16%"><b>Nummer:</b></td>
<td align="left"><xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/></td>
<td><b>Betreft:</b></td>
<td colspan="3"><xsl:value-of select="stdmelding/omschrijving"/></td>
</tr>
<tr height="20px"><td colspan="4"/></tr>
<tr>
<td align="right" width="16%"><b>Startdatum:</b></td>
<td align="left"><xsl:value-of select="gemeld/datum"/></td>
<td><b>Aanvrager:</b></td>
<td colspan="3"><xsl:value-of select="voor/naam_full"/></td>
</tr>
<tr>
<td align="right" width="16%"><b>Behandelaar:</b></td>
<td align="left"><xsl:value-of select="behandelaar/naam_full"/></td>
</tr>
<tr>
<td align="right" width="16%"><b>Betreft:</b></td>
<td align="left"><xsl:value-of select="stdmelding/omschrijving"/></td>
</tr>
<tr height="20px">
<td colspan="3"/>
</tr>
<tr>
<td align="right" width="16%"><b>Aanvrager:</b></td>
<td align="left"><xsl:value-of select="voor/naam_full"/></td>
</tr>
<xsl:if test="onderwerp != ''">
<xsl:if test="onderwerp!=''">
<tr>
<td align="right" width="16%"><b>Onderwerp:</b></td>
<td align="left"><xsl:value-of select="onderwerp"/></td>
<td><b>Onderwerp:</b></td>
<td colspan="3"><xsl:value-of select="onderwerp"/></td>
</tr>
</xsl:if>
<tr>
<td align="right" width="16%"><b>Omschrijving:</b></td>
<td align="left">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="omschrijving"/>
</xsl:call-template>
</td>
</tr>
<tr height="20px">
<td colspan="3"/>
<td><b>Omschrijving:</b></td>
<td colspan="3"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="omschrijving"/></xsl:call-template></td>
</tr>
<tr height="20px"><td colspan="4"/></tr>
<xsl:if test="opmerking!=''">
<tr>
<td align="right" width="16%"><b>Afhandeling:</b></td>
<td align="left">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="opmerking"/>
</xsl:call-template>
</td>
<td><b>Afhandeling:</b></td>
<td colspan="3"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="opmerking"/></xsl:call-template></td>
</tr>
</xsl:if>
<tr height="20px">
<td colspan="3"/>
</tr>
<xsl:if test="$srtnotificatiecode='MLDMAI'">
<tr>
<td colspan="3">
**********************************************************************<br/>
This communication is sent to you from Houthoff Buruma Coöperatief U.A. This e-mail and its contents
are for the use of the addressee only and may be confidential or privileged. Unauthorised use, disclosure or
copying is strictly prohibited. If you are not the addressee, please notify us immediately. Houthoff Buruma
is the trade name of Houthoff Buruma Coöperatief U.A., a Dutch law firm based in Amsterdam and registered
in the Amsterdam Chamber of Commerce as no. 34216182. Houthoff Burumas General Terms and
Conditions are available on request and at <a href="http://www.houthoff.com.">www.houthoff.com</a> Applying to all work performed, our General
Terms and Conditions state that our liability is limited, that Dutch law applies and that the Hague Court
has exclusive jurisdiction. Whenever we use the word "partner" in our communications, it means “partner”
as defined in our General Terms and Conditions.<br/>
<tr height="20px"><td colspan="4"/></tr>
<xsl:if test="$srtnotificatiecode='MLDMAI'">
<tr>
<td colspan="4">
**********************************************************************
<br/>This communication is sent to you from Houthoff Buruma Coöperatief U.A.
This e-mail and its contents are for the use of the addressee only and may be confidential or privileged.
Unauthorised use, disclosure or copying is strictly prohibited.
If you are not the addressee, please notify us immediately.
Houthoff Buruma is the trade name of Houthoff Buruma Coöperatief U.A., a Dutch law firm based in Amsterdam and registered in the Amsterdam Chamber of Commerce as no. 34216182.
Houthoff Burumas General Terms and Conditions are available on request and at <a href="http://www.houthoff.com.">www.houthoff.com</a>
Applying to all work performed, our General Terms and Conditions state that our liability is limited, that Dutch law applies and that the Hague Court has exclusive jurisdiction.
Whenever we use the word "partner" in our communications, it means “partner” as defined in our General Terms and Conditions.<br/>
**********************************************************************
</td>
</tr>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<tr height="30px">
<td colspan="3"/>
</tr>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$srtnotificatiecode='MLDACP'">
<tr height="30px"><td colspan="4"/></tr>
<tr>
<td colspan="4">
<xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/>&#xA0;<xsl:value-of select="onderwerp"/>
<br/><br/>Beste <xsl:value-of select="voor/naam_friendly"/>,
<br/><br/>Uw melding is geregistreerd in het ticket-systeem en zal zo spoedig mogelijk worden afgehandeld.
<br/><br/>Met vriendelijke groet,
<br/><br/><xsl:value-of select="behandelaar/naam_friendly"/>
</td>
</tr>
</xsl:when>
<xsl:when test="$srtnotificatiecode='MLDAFM'">
<tr height="30px"><td colspan="4"/></tr>
<tr>
<td colspan="4">
<xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/>&#xA0;<xsl:value-of select="onderwerp"/>
<br/><br/>Beste <xsl:value-of select="voor/naam_friendly"/>,
<br/><br/>Uw melding is afgehandeld. <xsl:call-template name="linebreaks"><xsl:with-param name="string" select="opmerking"/></xsl:call-template>
<br/><br/>Met vriendelijke groet,
<br/><br/><xsl:value-of select="behandelaar/naam_friendly"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr height="30px"><td colspan="4"/></tr>
<tr>
<td align="left">
<td colspan="4">
<b>Facilities&#xA0;
<xsl:value-of select="voor/werkplek/plaats/regio/district/locatie/code"/>&#xA0;
<xsl:if test="voor/werkplek/plaats/regio/district/locatie/omschrijving!=''">(<xsl:value-of select="voor/werkplek/plaats/regio/district/locatie/omschrijving"/>)</xsl:if>
</b>
<xsl:if test="voor/werkplek/plaats/regio/district/locatie/omschrijving!=''">(<xsl:value-of select="voor/werkplek/plaats/regio/district/locatie/omschrijving"/>)</xsl:if></b>
</td>
</tr>
<tr height="10px"><td colspan="4"/></tr>
<tr>
<td/>
</tr>
<tr>
<td align="right" width="16%">
<b>Bonnummer:</b>
</td>
<td align="left">
<td width="16%"><b>Bonnummer:</b></td>
<td colspan="3">
<xsl:element name="a">
<xsl:attribute name="href">https://<xsl:value-of select="$FacilitorRoot"/>?<xsl:value-of select="../bookmarks/melding"/><xsl:value-of select="key"/>
</xsl:attribute><b><xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/></b>
<xsl:attribute name="href">https://<xsl:value-of select="$FacilitorRoot"/>?<xsl:value-of select="../bookmarks/melding"/><xsl:value-of select="key"/></xsl:attribute><b><xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/></b>
</xsl:element>
</td>
</tr>
<tr>
<td align="right" width="16%">
<b>Datum:</b>
</td>
<td align="left">
<b><xsl:value-of select="gemeld/datum"/>&#xA0;
<xsl:value-of select="gemeld/tijd"/></b>
</td>
<td><b>Datum:</b></td>
<td colspan="3"><b><xsl:value-of select="gemeld/datum"/>&#xA0;<xsl:value-of select="gemeld/tijd"/></b></td>
</tr>
<tr>
<td/>
<td><b>Behandelaar:</b></td>
<td colspan="3"><xsl:value-of select="behandelaar/naam_full"/></td>
</tr>
<tr height="10px"><td colspan="4"/></tr>
<tr><td colspan="4"><hr/></td></tr>
<tr height="10px"><td colspan="4"/></tr>
<tr>
<td><b>Melding van:</b></td>
<td colspan="3"><b><xsl:value-of select="voor/naam_full"/></b></td>
</tr>
<tr>
<td align="right" width="16%">
<b>Behandelaar:</b>
</td>
<td align="left">
<xsl:value-of select="behandelaar/naam_full"/>
</td>
</tr>
<tr>
<td colspan="4">
<hr/>
</td>
</tr>
<tr height="20px">
<td colspan="3"/>
</tr>
<tr>
<td align="left">
<b>Melding van:</b>
</td>
<td align="left">
<b><xsl:value-of select="voor/naam_full"/></b>
</td>
</tr>
<tr>
<td align="left">
<b>Ruimte:</b>
</td>
<td align="left">
<td><b>Ruimte:</b></td>
<td colspan="3">
<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/ruimte/nr"/>&#xA0;
<xsl:if test="plaats/regio/district/locatie/gebouw/verdieping/ruimte/omschrijving!=''">(<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/ruimte/omschrijving"/>)</xsl:if>
</td>
</tr>
<tr>
<td align="right" width="16%">
<b>Telefoon:</b>
</td>
<td align="left" width="34%">
<xsl:if test="voor/telefoonnr=''">-</xsl:if>
<xsl:value-of select="voor/telefoonnr"/>
</td>
</tr>
<tr>
<td/>
<td><b>Telefoon:</b></td>
<td colspan="3"><xsl:if test="voor/telefoonnr=''">-</xsl:if><xsl:value-of select="voor/telefoonnr"/></td>
</tr>
<tr height="20px"><td colspan="4"/></tr>
<tr>
<td><b>Vakgroep:</b></td>
<td colspan="3"><xsl:if test="discipline/omschrijving=''">-</xsl:if><xsl:value-of select="discipline/omschrijving"/></td>
</tr>
<tr>
<td/>
</tr>
<tr>
<td align="left">
<b>Vakgroep:</b>
</td>
<td align="left">
<xsl:if test="discipline/omschrijving=''">-</xsl:if>
<xsl:value-of select="discipline/omschrijving"/>
</td>
</tr>
<tr>
<td align="right">
<b>Melding:</b>
</td>
<td align="left">
<xsl:if test="stdmelding/omschrijving=''">-</xsl:if>
<xsl:value-of select="stdmelding/omschrijving"/>
</td>
<td><b>Melding:</b></td>
<td colspan="3"><xsl:if test="stdmelding/omschrijving=''">-</xsl:if><xsl:value-of select="stdmelding/omschrijving"/></td>
</tr>
<xsl:if test="count(deel)&gt;0">
<xsl:for-each select="deel">
<xsl:sort select="omschrijving"/>
<tr>
<xsl:choose>
<xsl:when test="position()=1">
<td align="right" valign="top">
<b>Betreft:</b>
</td>
</xsl:when>
<xsl:otherwise>
<td/>
</xsl:otherwise>
<xsl:when test="position()=1"><td><b>Betreft:</b></td></xsl:when>
<xsl:otherwise><td/></xsl:otherwise>
</xsl:choose>
<td align="left" valign="top">
<xsl:value-of select="omschrijving"/>
</td>
<td colspan="2" valign="top">
<xsl:comment>NADER TE DEFINIEREN</xsl:comment>
</td>
<td colspan="3"><xsl:value-of select="omschrijving"/></td>
</tr>
</xsl:for-each>
</xsl:if>
<tr height="30px">
<td colspan="3"/>
</tr>
<tr height="20px"><td colspan="4"/></tr>
<tr>
<td align="right">
<b>Uiterlijk gereed/geleverd:</b>
</td>
<td align="left">
<xsl:value-of select="uitvoertijd"/><xsl:choose><xsl:when test="uitvoertijd[@eenheid='U']">&#160;<xsl:value-of select="//lcl/MLD/uren"/></xsl:when><xsl:otherwise>&#160;<xsl:value-of select="//lcl/FAC/dagen"/></xsl:otherwise></xsl:choose>&#xA0;(<xsl:value-of select="datum_gepland/datum"/>)</td>
<td><b>Uiterlijk gereed/geleverd:</b></td>
<td colspan="3"><xsl:value-of select="uitvoertijd"/><xsl:choose><xsl:when test="uitvoertijd[@eenheid='U']">&#160;<xsl:value-of select="//lcl/MLD/uren"/></xsl:when><xsl:otherwise>&#160;<xsl:value-of select="//lcl/FAC/dagen"/></xsl:otherwise></xsl:choose>&#xA0;(<xsl:value-of select="datum_gepland/datum"/>)</td>
</tr>
<tr height="20px">
<td colspan="3"/>
</tr>
<xsl:if test="onderwerp != ''">
<tr height="20px"><td colspan="4"/></tr>
<xsl:if test="onderwerp!=''">
<tr>
<td align="right" width="16%"><b>Onderwerp:</b></td>
<td align="left"><xsl:value-of select="onderwerp"/></td>
<td><b>Onderwerp:</b></td>
<td colspan="3"><xsl:value-of select="onderwerp"/></td>
</tr>
<tr height="10px">
<td colspan="3"/>
</tr>
<tr height="10px"><td colspan="4"/></tr>
</xsl:if>
<tr>
<td align="left" colspan="3">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="omschrijving"/>
</xsl:call-template>
<td colspan="4">
<xsl:call-template name="linebreaks"><xsl:with-param name="string" select="omschrijving"/></xsl:call-template>
</td>
</tr>
<tr height="20px">
<td colspan="3"/>
</tr>
<xsl:for-each select="kenmerk[@type!='L' and @type!='Q']">
<tr height="10px"><td colspan="4"/></tr>
<xsl:for-each select="kenmerk[@type!='L' and @type!='l' and @type!='Q' and count(@xmlnode)=0]">
<xsl:sort select="@volgnummer" data-type="number"/>
<xsl:if test=".!=''">
<tr>
<td align="right">
<b>
<xsl:value-of select="@naam"/>:</b>
</td>
<td colspan="3">
<xsl:value-of select="."/>
</td>
<td><b><xsl:value-of select="@naam"/>:</b></td>
<td colspan="3"><xsl:value-of select="."/></td>
</tr>
</xsl:if>
</xsl:for-each>
<td>
<xsl:if test="behandelwijze=2 and not(/facilitor/opdracht)">
<xsl:if test="behandelwijze=2 and not(/facilitor/opdracht)">
<tr height="10px"><td colspan="4"/></tr>
<xsl:for-each select="notes/note[flag=1]">
<xsl:sort select="aanmaak/timestamp" order="ascending"/>
<xsl:sort select="aanmaak/timestamp" order="ascending"/>
<tr>
<xsl:choose>
<xsl:when test="position() = 1">
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/MLD/behandeling"/>:</b>
</td>
</xsl:when>
<xsl:otherwise>
<td/>
</xsl:otherwise>
<xsl:when test="position()=1"><td><b><xsl:value-of select="//lcl/MLD/behandeling"/>:</b></td></xsl:when>
<xsl:otherwise><td/></xsl:otherwise>
</xsl:choose>
<td colspan="3">
<span class="mldbeh"><xsl:value-of select="aanmaak/datum"/>&#xA0;<xsl:value-of select="aanmaak/tijd"/>&#xA0;-&#xA0;<xsl:value-of select="noteur/naam_friendly"/></span>&#xA0;
@@ -355,16 +243,43 @@ as defined in our General Terms and Conditions.<br/>
</td>
</tr>
</xsl:for-each>
</xsl:if>
</td>
<td colspan="4">
<hr/>
</td>
</xsl:if>
<tr><td colspan="4"><hr/></td></tr>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</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:if test="$mode!='email'">
<xsl:attribute name="onload">window.print();</xsl:attribute>
</xsl:if>
<xsl:call-template name="pageheader"/>
<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:call-template name="pagefooter"/-->
</xsl:element>
</html>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="opdracht" mode="include">
<style>
td.subcaption {
@@ -1403,8 +1318,9 @@ This communication is sent to you from Houthoff Buruma Coöperatief U.A. This e-
<xsl:template match="rapport">
<style>th {
border: 1px solid #808080;
}</style>
border: 1px solid #808080;
}
</style>
<xsl:if test="@view='HOUT_V_RAP_PRJ_OVZ'">
<table width="100%" class="rstable" cellpadding="0" cellspacing="0">