SVRZ#55239 Migratie Topdesk

svn path=/Website/branches/v2018.2/; revision=41095
This commit is contained in:
Maarten van der Heide
2019-02-21 12:50:18 +00:00
parent 25b03fbc37
commit bc8dced322

View File

@@ -112,6 +112,25 @@
}</style>
</xsl:template>
<xsl:template name="pageheader">
<table border="0" width="100%">
<tr>
<td width="33%">
<xsl:choose>
<xsl:when test="$mode='email'">
<img src="cid:tmpl_logo.gif"/>
</xsl:when>
<xsl:otherwise>
<xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="$custpath"/>/tmpl_logo.gif</xsl:attribute></xsl:element>
</xsl:otherwise>
</xsl:choose>
</td>
<td width="34%"></td>
<td width="33%"></td>
</tr>
</table>
</xsl:template>
<xsl:template name="pageheader2">
<table border="0" width="100%">
<tr>
@@ -686,6 +705,480 @@ Voor eventuele vragen of opmerkingen graag een mail naar <a href="mailto:inkoop@
</TABLE>
</xsl:template>
<xsl:template match="melding" mode="include">
<!--xsl:if test="discipline/key='161'"-->
<xsl:if test="1=1">
<style>
.mldbeh {
font-size: 0.8em;
color: #666;
}
.contain {
border-right: 1px solid black;
}
.head {
margin: 2em 0 0.4em 0em;
}
.body {
padding: 0 1em 1em 2em;
}
.titel {
font-size: 1.6em;
text-transform: uppercase;
}
.label {
font-weight: bold;
padding-right: 4px;
}
.melder {
font-style: italic;
font-size: 0.8em;
color: #99AEC9;
}
.klik {
padding: 5em 0 5em 0;
text-decoration: none;
}
.indent {
margin: 0 0 0 12px;
}
</style>
<!--div class="contain"-->
<div class="head">
<b>datum:</b>&#xA0;<xsl:value-of select="//header/dateTime"/>
<span class="titel"><br/><br/>MELDING&#xA0;<xsl:value-of select="key"/></span>
<span class="klik"><br/>Klik <xsl:element name="a"><xsl:attribute name="href">https://svrz.facilitor.nl?<xsl:value-of select="../bookmarks/melding"/><xsl:value-of select="key"/></xsl:attribute>hier</xsl:element> om naar de melding te gaan.</span>
<xsl:if test="spoed&lt;3">
<span class="label"><xsl:value-of select="//lcl/MLD/spoed"/></span>
</xsl:if>
<div class="melder">
<span class="label">Gemeld door&#xA0;</span>
<xsl:value-of select="voor/naam_friendly"/>&#xA0;<span class="label">op&#xA0;</span><xsl:value-of select="gemeld/datum"/>
<xsl:if test="gemeld/tijd!='00:00'">&#xA0;om&#xA0;<xsl:value-of select="gemeld/tijd"/></xsl:if>
<xsl:if test="aanvrager/naam_full!=voor/naam_full">
<br/><span class="label"><xsl:value-of select="//lcl/MLD/meldingvoor"/></span>&#xA0;<xsl:value-of select="voor/naam_friendly"/>
</xsl:if>
</div>
<xsl:if test="not(//opdracht/extra_key) and extra_key">
<xsl:variable name="mx_key">
<xsl:value-of select="extra_key"/>
</xsl:variable>
<br/><span class="label"><xsl:value-of select="//lcl/FAC/bericht"/></span>
<br/>
<div class="indent">
<xsl:call-template name="linebreaks"><xsl:with-param name="string" select="notes/note[key=$mx_key]/omschrijving"/></xsl:call-template>
</div>
</xsl:if>
</div>
<div class="body">
<xsl:if test="$mode!='email' and count(deel)&gt;0">
<br/><span class="label"><hr/></span>
<!--br/><span class="label"><xsl:value-of select="//lcl/MLD/objecten"/></span-->
<br/><span class="label">Object</span>
<div class="indent">
<xsl:for-each select="deel">
<xsl:sort select="omschrijving"/>
<xsl:if test="position()&gt;1"><br/></xsl:if><xsl:value-of select="omschrijving"/> (<xsl:value-of select="plaats/plaatsaanduiding"/><xsl:value-of select="afdeling/naam6"/><xsl:value-of select="persoon/naam_friendly"/>)
</xsl:for-each>
</div>
</xsl:if>
<br/><span class="label"><hr/></span>
<br/><span class="label"><xsl:value-of select="//lcl/FAC/omschrijving"/></span>
<br/>
<div class="indent">
<xsl:call-template name="linebreaks"><xsl:with-param name="string" select="omschrijving"/></xsl:call-template>
</div>
<br/><span class="label"><hr/></span>
<!--br/><span class="label"><xsl:value-of select="//lcl/MLD/vakgroep"/></span>&#xA0;<xsl:value-of select="discipline/omschrijving"/>
<br/><span class="label"><xsl:value-of select="//lcl/MLD/status"/></span>&#xA0;<xsl:value-of select="status"/>
<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=".!=''">
<br/><span class="label"><xsl:value-of select="@naam"/>&#xA0;</span><xsl:value-of select="."/>
</xsl:if>
</xsl:for-each>
<br/>
<xsl:if test="behandelaar/naam_friendly!=''">
<span class="label"><xsl:value-of select="//lcl/FAC/behandelaar"/></span>&#xA0;<xsl:value-of select="behandelaar/naam_friendly"/>
</xsl:if-->
<xsl:for-each select="notes/note[flag=1]">
<xsl:sort select="aanmaak/timestamp" order="descending"/>
<xsl:if test="position()=1">
<br/><span class="label"><xsl:value-of select="//lcl/MLD/behandeling"/></span>
</xsl:if>
<br/>
<div class="indent">
<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;
</div>
<div class="indent">
<xsl:call-template name="linebreaks"><xsl:with-param name="string" select="omschrijving"/></xsl:call-template>
</div>
</xsl:for-each>
<xsl:if test="opmerking!=''">
<br/><span class="label"><xsl:value-of select="//lcl/MLD/afhandeling"/></span>
<br/>
<div class="indent">
<xsl:call-template name="linebreaks"><xsl:with-param name="string" select="opmerking"/></xsl:call-template>
</div>
</xsl:if>
</div>
<!--/div-->
</xsl:if>
<!--NIET Helpesk Automatisering (standaard bon)-->
<!--xsl:if test="discipline/key!='161'"-->
<xsl:if test="1=0">
<table border="0" width="100%" cellpadding="2">
<tr>
<td colspan="2" class="caption" style="padding-top:20px;padding-bottom:20px">
<b>
<xsl:value-of select="//lcl/MLD/melding"/>&#160;<xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/>
<xsl:if test="onderwerp!=''">:&#160;<xsl:value-of select="onderwerp"/></xsl:if>
</b>
</td>
<td colspan="2" class="caption" style="padding-top:20px;padding-bottom:20px">
<xsl:if test="spoed&lt;3">
<b><xsl:value-of select="//lcl/MLD/spoed"/></b>
</xsl:if>
</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;">
<b><xsl:value-of select="//lcl/FAC/bericht"/>:</b>
</td>
<td colspan="3" style="padding-top:10px;">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="notes/note[key=$mx_key]/omschrijving"/>
</xsl:call-template>
</td>
</tr>
<tr>
<td colspan="4" style="padding-bottom:20px;">
<hr/>
</td>
</tr>
</xsl:if>
<tr>
<td align="right" width="16%">
<b><xsl:value-of select="//lcl/FAC/aanvrager"/>:</b>
</td>
<td align="left" width="34%">
<xsl:value-of select="voor/naam_full"/>
</td>
<td align="right" width="16%">
<b><xsl:value-of select="//lcl/FAC/telefoon"/>:</b>
</td>
<td align="left" width="34%">
<xsl:if test="voor/telefoonnr=''">-</xsl:if>
<xsl:value-of select="voor/telefoonnr"/>
</td>
</tr>
<xsl:if test="string(voor/naam_full)!=string(voor/naam_full)">
<tr>
<td align="right" width="16%"><b><xsl:value-of select="//lcl/MLD/meldingvoor"/>:</b></td>
<td align="left" width="34%"><xsl:value-of select="voor/naam_full"/></td>
</tr>
</xsl:if>
<tr>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/locatie"/>:</b>
</td>
<td align="left">
<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>
</td>
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/FAC/afdeling"/>:</b>
</td>
<td align="left">
<xsl:value-of select="voor/afdeling/omschrijving"/>
</td>
</tr>
<xsl:if test="voor/werkplek/plaats/regio/district/locatie/gebouw/code!=''">
<tr>
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/FAC/werkplek"/>:</b>
</td>
<td align="left">
<xsl:value-of select="voor/werkplek/plaats/regio/district/locatie/gebouw/code"/>-<xsl:value-of select="voor/werkplek/plaats/regio/district/locatie/gebouw/naam"/><br/>
<xsl:value-of select="voor/werkplek/plaats/regio/district/locatie/gebouw/verdieping/code"/>&#xA0;<xsl:value-of select="voor/werkplek/plaats/regio/district/locatie/gebouw/verdieping/ruimte/nr"/>&#xA0;
<xsl:if test="voor/werkplek/plaats/regio/district/locatie/gebouw/verdieping/ruimte/omschrijving!=''">(<xsl:value-of select="voor/werkplek/plaats/regio/district/locatie/gebouw/verdieping/ruimte/omschrijving"/>)</xsl:if>
</td>
<td colspan="2"/>
</tr>
</xsl:if>
<tr height="40px">
<td colspan="4">
<hr/>
</td>
</tr>
<tr>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/locatie"/>:</b>
</td>
<td align="left">
<xsl:value-of select="plaats/regio/district/locatie/code"/>&#xA0;
<xsl:if test="plaats/regio/district/locatie/omschrijving!=''">(<xsl:value-of select="plaats/regio/district/locatie/omschrijving"/>)</xsl:if>
</td>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/status"/>:</b>
</td>
<td align="left">
<xsl:value-of select="status"/>
</td>
</tr>
<tr>
<xsl:choose>
<xsl:when test="plaats/@type='T'">
<td align="right">
<b><xsl:value-of select="//lcl/FAC/terrein"/>:</b>
</td>
<td align="left">
<xsl:value-of select="plaats/regio/district/locatie/terrein/code"/>-<xsl:value-of select="plaats/regio/district/locatie/terrein/naam"/></td>
</xsl:when>
<xsl:otherwise>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/gebouw"/>:</b>
</td>
<td align="left">
<xsl:value-of select="plaats/regio/district/locatie/gebouw/code"/>-<xsl:value-of select="plaats/regio/district/locatie/gebouw/naam"/></td>
</xsl:otherwise>
</xsl:choose>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/melddatum"/>:</b>
</td>
<td align="left">
<xsl:value-of select="gemeld/datum"/>&#xA0;
<xsl:value-of select="gemeld/tijd"/>
</td>
</tr>
<tr>
<xsl:if test="plaats/@type='T' or plaats/@type='G'">
<td colspan="2"/>
</xsl:if>
<xsl:if test="plaats/@type!='T' and plaats/@type!='G'">
<td align="right">
<b><xsl:value-of select="//lcl/FAC/bouwlaag"/>:</b>
</td>
<td align="left">
<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/code"/>&#xA0;
<xsl:if test="plaats/regio/district/locatie/gebouw/verdieping/omschrijving!=''">(<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/omschrijving"/>)</xsl:if>
</td>
</xsl:if>
<xsl:choose>
<xsl:when test="uitvoertijd[@eenheid='U']">
<td width="16%" align="right">
<b><xsl:value-of select="//lcl/MLD/uitvoertijd"/>:</b>
</td>
<td width="34%">
<xsl:value-of select="format-number(uitvoertijd, '0.##')"/>&#160;<xsl:value-of select="//lcl/MLD/uren"/>
</td>
</xsl:when>
<xsl:otherwise>
<td width="16%" align="right">
<b><xsl:value-of select="//lcl/MLD/uitvoertijd"/>:</b>
</td>
<td width="34%">
<xsl:value-of select="uitvoertijd"/>&#160;<xsl:value-of select="//lcl/FAC/dagen"/>
</td>
</xsl:otherwise>
</xsl:choose>
</tr>
<tr>
<xsl:if test="plaats/@type='R'">
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/FAC/ruimte"/>:</b>
</td>
<td align="left">
<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>
</xsl:if>
<xsl:if test="plaats/@type!='R'">
<td colspan="2"/>
</xsl:if>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/datum_gereed"/>:</b>
</td>
<td align="left">
<xsl:value-of select="datum_gepland/datum"/>&#xA0;<xsl:value-of select="datum_gepland/tijd"/>
</td>
</tr>
<xsl:if test="kenmerk[@naam='Ordernr']!=''">
<tr>
<td colspan="2"/>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/ordernr"/>:</b>
</td>
<td align="left">
<xsl:value-of select="kenmerk[@naam='Ordernr']"/>
</td>
</tr>
</xsl:if>
<tr height="30px">
<td colspan="4"/>
</tr>
<tr>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/vakgroep"/>:</b>
</td>
<td align="left">
<xsl:if test="discipline/omschrijving=''">-</xsl:if>
<xsl:value-of select="discipline/omschrijving"/>
</td>
<xsl:if test="behandelgroep/omschrijving!=''">
<td align="right">
<b><xsl:value-of select="//lcl/MLD/processing_group"/>:</b>
</td>
<td align="left">
<xsl:value-of select="behandelgroep/omschrijving"/>
</td>
</xsl:if>
</tr>
<tr>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/stdmelding"/>:</b>
</td>
<td align="left">
<xsl:if test="stdmelding/omschrijving=''">-</xsl:if>
<xsl:value-of select="stdmelding/omschrijving"/>
</td>
<xsl:if test="behandelgroep/omschrijving!=''">
<td align="right">
<b><xsl:value-of select="//lcl/MLD/processor"/>:</b>
</td>
<td align="left">
<xsl:if test="actieve_behandelaar/naam_full=''">-</xsl:if>
<xsl:value-of select="actieve_behandelaar/naam_full"/>
</td>
</xsl:if>
</tr>
<tr>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/behandelaar"/>:</b>
</td>
<td align="left">
<xsl:if test="behandelaar=''">-</xsl:if>
<xsl:value-of select="behandelaar/naam_full"/>
</td>
</tr>
<xsl:comment>als we binnen een opdracht zijn, tonen we de meldingtekst niet</xsl:comment>
<tr>
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/FAC/omschrijving"/>:</b>
</td>
<td align="left" colspan="3">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="omschrijving"/>
</xsl:call-template>
</td>
</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>
</tr>
</xsl:if>
</xsl:for-each>
<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><xsl:value-of select="//lcl/MLD/objecten"/>:</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>
</tr>
</xsl:for-each>
</xsl:if>
<xsl:if test="behandelwijze=2 and not(/facilitor/opdracht)">
<xsl:for-each select="notes/note[flag=1]">
<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: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;
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="omschrijving"/>
</xsl:call-template>
</td>
</tr>
</xsl:for-each>
</xsl:if>
<xsl:if test="opmerking!=''">
<tr>
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/MLD/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>
</table>
</xsl:if>
</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">
<!--xsl:variable name="intern">
<xsl:choose>