INLO#56714 -- Aanpassing ivm inpassen nieuwe klanten in INLO-omgeving
svn path=/Website/branches/v2019.1/; revision=41624
This commit is contained in:
475
CUST/INLO/xsl/melding.xsl
Normal file
475
CUST/INLO/xsl/melding.xsl
Normal file
@@ -0,0 +1,475 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:import href="./INLO.xsl"/>
|
||||
<xsl:import href="./cust_settings.xsl"/>
|
||||
<xsl:variable name="Rev">
|
||||
<!-- Revision van deze cust.xsl -->
|
||||
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
|
||||
</xsl:variable>
|
||||
|
||||
<!-- # # # Mutaties hier noteren; datum, aangepast door, summary # # #
|
||||
|
||||
5-3-2019 J. Migo - ticket 56714 - inpassen nieuwe klanten VEH, Zwaansvliet, Henkel - AFGEROND
|
||||
|
||||
! -->
|
||||
|
||||
<xsl:template name="customer">
|
||||
<xsl:choose>
|
||||
<xsl:when test="//melding/plaats/regio/district/locatie/gebouw/kenmerk[@naam='Klant']/text()!=''">
|
||||
<xsl:value-of select="//melding/plaats/regio/district/locatie/gebouw/kenmerk[@naam='Klant']/text()"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
INLO
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:variable name="bedrijf">
|
||||
<xsl:call-template name="customer"> </xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:template name="StandaardMeldingsoverzicht">
|
||||
<xsl:comment> Hieronder de SAMENVATTING van de melding die altijd getoond wordt </xsl:comment>
|
||||
<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"/> <xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/></b>
|
||||
</td>
|
||||
<td colspan="2" class="caption" style="padding-top:20px;padding-bottom:20px">
|
||||
<xsl:if test="spoed<3">
|
||||
<b><xsl:value-of select="//lcl/MLD/spoed"/></b>
|
||||
</xsl:if>
|
||||
</td>
|
||||
</tr>
|
||||
<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"/> 
|
||||
<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>
|
||||
<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"/>.<xsl:value-of select="voor/werkplek/plaats/regio/district/locatie/gebouw/verdieping/ruimte/nr"/> 
|
||||
<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>
|
||||
<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"/> 
|
||||
<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"/> 
|
||||
<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"/> 
|
||||
<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="uitvoertijd"/> <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"/> <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"/> 
|
||||
<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"/> <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/stdmelding"/>:</b>
|
||||
</td>
|
||||
<td align="left">
|
||||
<xsl:if test="stdmelding/omschrijving=''">-</xsl:if>
|
||||
<xsl:value-of select="stdmelding/omschrijving"/>
|
||||
</td>
|
||||
<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>
|
||||
</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)>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="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:template>
|
||||
|
||||
<xsl:template match="melding" mode="full">
|
||||
|
||||
<!-- <xsl:value-of select="$bedrijf"/> <br/> -->
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
<!--<img src="cid:tmpl_logo.gif"/>-->
|
||||
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$srtnotificatiecode = 'MLDKTO'">
|
||||
<xsl:apply-templates select="." mode="kto"/>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:otherwise>
|
||||
<!-- <xsl:apply-templates select="." mode="include"/> -->
|
||||
<xsl:apply-templates select="." mode="INLO"/>
|
||||
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<xsl:call-template name="pagefooter"/>
|
||||
|
||||
</xsl:element>
|
||||
</html>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template match="melding" mode="INLO">
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$bedrijf='Greenport Venlo'">
|
||||
|
||||
<table border="0" width="100%">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$mode='email'">
|
||||
<img src="cid:Brightlands_ST.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"/>/Brightlands_ST.gif</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</td>
|
||||
<td width="17%"></td>
|
||||
<td width="33%" align="right" valign="bottom" style="text-align:right" class="fheaddate">
|
||||
<b><xsl:value-of select="//lcl/FAC/printdatum"/>: </b>
|
||||
<xsl:value-of select="//header/dateTime"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<xsl:comment> Onderstaande is de notitie die wordt verstuurd via enveloppe: MLDMAI </xsl:comment>
|
||||
<xsl:if test="extra_key" >
|
||||
<xsl:variable name="x_key"><xsl:value-of select="extra_key"/></xsl:variable>
|
||||
<table border="0" width="100%" cellpadding="0">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<br/><font color="#4F1E4C" size="2"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="notes/note[key=$x_key]/omschrijving"/></xsl:call-template></font>
|
||||
<br/><br/><font color="#4F1E4C" size="2">Met vriendelijke groet,</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<br/><b><font color="#4F1E4C" size="2"><xsl:value-of select="notes/note[key=$x_key]/noteur/naam_friendly"/> | Servicepunt campus Greenport Venlo</font></b>
|
||||
<xsl:if test="notes/note[key=$x_key]/noteur/telefoonnr!=''">
|
||||
<br/><font color="#4F1E4C" size="2">T <xsl:value-of select="notes/note[key=$x_key]/noteur/telefoonnr"/></font>
|
||||
<br/><font color="#4F1E4C" size="2">E <xsl:value-of select="notes/note[key=$x_key]/noteur/email"/></font>
|
||||
</xsl:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><br/><hr/></td></tr>
|
||||
</table>
|
||||
<table border="0" width="100%" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<font color="#2E74B5"> <b> Campus Vastgoed Greenport Venlo| Innovatoren 9A, Sint Jansweg 15, 5928 RC Venlo| Postbus 3125, 5902 RC Venlo </b> </font>
|
||||
<br/> <br/>
|
||||
|
||||
<font color="#365F91"><b> T: 070-3968380 </b> </font>
|
||||
|
|
||||
<b>E:</b> <a href="mailto:servicepunt@greenportvenlo.nl"><nobr><u>servicepunt@greenportvenlo.nl</u></nobr></a>
|
||||
|
|
||||
<b>W:</b><a href="http://www.greenportvenlo.nl"><nobr><u>www.greenportvenlo</u></nobr></a>
|
||||
<br/><br/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='font-size:8.0pt;font-family:"Verdana",sans-serif;color:green'>
|
||||
|
||||
A better environment starts with you : Is it necessary to print this e-mail?
|
||||
<br/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='font-size:8.0pt;font-family:"Verdana",sans-serif;color:#2E74B5'>
|
||||
The information and attachments contained in this electronic transmission are considered proprietary and confidential.
|
||||
<br/>
|
||||
Distribution of this material to anyone other than the addressed is prohibited.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:call-template name="StandaardMeldingsoverzicht"> </xsl:call-template>
|
||||
|
||||
|
||||
</xsl:when>
|
||||
<xsl:when test="$bedrijf='ander bedrijf binnen Inlo met afwijkende opdracht-layout'">
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:comment>== Standaard Meldingsbon Facilitor met standaard HeyDay-logo erboven ==</xsl:comment>
|
||||
<xsl:comment>== Er is geen AAXX standaard voor Meldingen ==</xsl:comment>
|
||||
|
||||
<table border="0" width="100%">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$mode='email'">
|
||||
<img src="cid:aafm_banner.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"/>/aafm_banner.gif</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</td>
|
||||
<td width="17%"></td>
|
||||
<td width="33%" align="right" valign="bottom" style="text-align:right" class="fheaddate">
|
||||
<b><xsl:value-of select="//lcl/FAC/printdatum"/>: </b>
|
||||
<xsl:value-of select="//header/dateTime"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<xsl:comment> Onderstaande is de notitie die wordt verstuurd via enveloppe: MLDMAI </xsl:comment>
|
||||
<xsl:if test="extra_key" >
|
||||
<xsl:variable name="x_key"><xsl:value-of select="extra_key"/></xsl:variable>
|
||||
<table border="0" width="100%" cellpadding="0">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<br/><font color="#4F1E4C" size="2"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="notes/note[key=$x_key]/omschrijving"/></xsl:call-template></font>
|
||||
<br/><br/><font color="#4F1E4C" size="2">Met vriendelijke groet,</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<br/><b><font color="#4F1E4C" size="2"><xsl:value-of select="notes/note[key=$x_key]/noteur/naam_friendly"/> | Servicepunt campus Greenport Venlo</font></b>
|
||||
<xsl:if test="notes/note[key=$x_key]/noteur/telefoonnr!=''">
|
||||
<br/><font color="#4F1E4C" size="2">T <xsl:value-of select="notes/note[key=$x_key]/noteur/telefoonnr"/></font>
|
||||
<br/><font color="#4F1E4C" size="2">E <xsl:value-of select="notes/note[key=$x_key]/noteur/email"/></font>
|
||||
</xsl:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><br/><hr/></td></tr>
|
||||
</table>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:apply-templates select="." mode="include"/>
|
||||
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user