419 lines
14 KiB
XML
419 lines
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" version="1.0">
|
|
|
|
<xsl:template match="opdracht" mode="include">
|
|
<table border="0" width="100%" cellpadding="2">
|
|
<tr>
|
|
<td colspan="4" class="caption" style="padding-top:20px;padding-bottom:20px">
|
|
<b>
|
|
<xsl:choose>
|
|
<xsl:when test="opdrachttype/key=5">Opdracht volgens contract</xsl:when>
|
|
<xsl:when test="opdrachttype/key=701">Interne opdracht</xsl:when>
|
|
<xsl:when test="opdrachttype/key=702">Opdracht</xsl:when>
|
|
<xsl:when test="opdrachttype/key=721">Offerte</xsl:when>
|
|
</xsl:choose> 
|
|
<xsl:value-of select="//facilitor/header/custId"/> 
|
|
<xsl:value-of select="melding/stdmelding/discipline/srtdiscipline/prefix"/>
|
|
<xsl:value-of select="melding/key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/></b>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="16%"/>
|
|
<td width="34%"/>
|
|
<td width="16%" align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/FAC/bedrijf"/>:</b>
|
|
</td>
|
|
<td width="34%">
|
|
<xsl:value-of select="uitvoerende/bedrijf/naam"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"/>
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/FAC/contactpersoon"/>:</b>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="contactpersoon/naam_full"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"/>
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/FAC/telefoon"/>:</b>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="contactpersoon/telefoon1"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"/>
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/FAC/adres"/>:</b>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="uitvoerende/bedrijf/post_adres"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"/>
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/FAC/plaats"/>:</b>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="uitvoerende/bedrijf/post_plaats"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="4">
|
|
<hr/>
|
|
</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="melding/voor/naam_full"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right" width="16%">
|
|
<b>
|
|
<xsl:value-of select="//lcl/FAC/telefoon"/>:</b>
|
|
</td>
|
|
<td align="left" width="34%">
|
|
<xsl:choose>
|
|
<xsl:when test="melding/voor/afdeling//bedrijf/naam = 'Extern'">088-1861010</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:choose>
|
|
<xsl:when test="melding/voor/telefoonnr != ''">
|
|
<xsl:value-of select="melding/voor/telefoonnr"/>
|
|
</xsl:when>
|
|
<xsl:when test="melding/voor/mobiel != ''">
|
|
<xsl:if test="melding/voor/telefoonnr != ''">
|
|
<br/>
|
|
</xsl:if>
|
|
<xsl:value-of select="melding/voor/mobiel"/>
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right" colspan="4">
|
|
<i>Graag voor vragen m.b.t. tot de uitvoering van deze opdracht contact opnemen via:</i>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right" width="16%">
|
|
<b>Emailadres:</b>
|
|
</td>
|
|
<td align="left" width="34%">
|
|
<xsl:choose>
|
|
<xsl:when test="melding/voor/afdeling//bedrijf/naam = 'Extern'">
|
|
<a href="mailto:fsb@pch-fm.nl">fsb@pch-fm.nl</a>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:element name="a">
|
|
<xsl:attribute name="href">
|
|
<xsl:text>mailto:</xsl:text>
|
|
<xsl:value-of select="melding/voor/email"/>
|
|
</xsl:attribute>
|
|
<xsl:value-of select="melding/voor/email"/>
|
|
</xsl:element>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right" colspan="4">
|
|
<i>Het betreft onze locatie:</i>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/FAC/locatie"/>:</b>
|
|
</td>
|
|
<td align="left">
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/code"/> 
|
|
<xsl:if test="melding/plaats/regio/district/locatie/omschrijving!=''">(<xsl:value-of select="melding/plaats/regio/district/locatie/omschrijving"/>)</xsl:if>
|
|
<xsl:if test="not(melding/plaats/regio/district/locatie/gebouw/kenmerk[@key=10]!='')">
|
|
<br/>
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/adres"/> 
|
|
<br/>
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/postcode"/>  
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/plaats"/>
|
|
</xsl:if>
|
|
</td>
|
|
<td align="right">
|
|
<b>Opdrachtdatum:</b>
|
|
</td>
|
|
<td align="left">
|
|
<xsl:value-of select="datumbegin/datum"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<xsl:choose>
|
|
<xsl:when test="meldding/plaats/@type='T'">
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/FAC/terrein"/>:</b>
|
|
</td>
|
|
<td align="left">
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/terrein/code"/>-<xsl:value-of select="melding/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="melding/plaats/regio/district/locatie/gebouw/code"/>-<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/naam"/><br/>
|
|
<xsl:if test="melding/plaats/regio/district/locatie/gebouw/kenmerk[@key=10]!=''">
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/kenmerk[@key='10']"/><br/>
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/kenmerk[@key='11']"/>  <xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/kenmerk[@key='12']"/><br/>
|
|
</xsl:if>
|
|
</td>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<td align="right">
|
|
<b>Gewenste uitvoering voor:</b>
|
|
</td>
|
|
<td align="left">
|
|
<xsl:value-of select="einddatum/datum"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<xsl:if test="melding/plaats/@type='T' or melding/plaats/@type='G'">
|
|
<td colspan="2"/>
|
|
</xsl:if>
|
|
<xsl:if test="melding/plaats/@type!='T' and melding/plaats/@type!='G' and melding/plaats/regio/district/locatie/gebouw/verdieping/code != '-'">
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/FAC/bouwlaag"/>:</b>
|
|
</td>
|
|
<td align="left">
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/verdieping/code"/> 
|
|
<xsl:if test="melding/plaats/regio/district/locatie/gebouw/verdieping/omschrijving!=''">(<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/verdieping/omschrijving"/>)</xsl:if>
|
|
</td>
|
|
</xsl:if>
|
|
</tr>
|
|
<tr>
|
|
<xsl:if test="melding/plaats/@type='R' and melding/plaats/regio/district/locatie/gebouw/verdieping/ruimte/nr != '-'">
|
|
<td align="right" valign="top">
|
|
<b>
|
|
<xsl:value-of select="//lcl/FAC/ruimte"/>:</b>
|
|
</td>
|
|
<td align="left">
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/verdieping/ruimte/nr"/> 
|
|
<xsl:if test="melding/plaats/regio/district/locatie/gebouw/verdieping/ruimte/omschrijving!=''">(<xsl:value-of select="melding/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 colspan="2"/>
|
|
</tr>
|
|
<tr>
|
|
<td align="right">
|
|
<b>Contactpersoon op de locatie:</b>
|
|
</td>
|
|
<td align="left">
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/kenmerk[@key=1000]/perslid/naam_full"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right" width="16%">
|
|
<b>
|
|
<xsl:value-of select="//lcl/FAC/telefoon"/>:</b>
|
|
</td>
|
|
<td align="left" width="34%">
|
|
<xsl:choose>
|
|
<xsl:when test="melding/plaats/regio/district/locatie/kenmerk[@key=1000]/perslid/telefoonnr != ''">
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/kenmerk[@key=1000]/perslid/telefoonnr"/>
|
|
</xsl:when>
|
|
<xsl:when test="melding/plaats/regio/district/locatie/kenmerk[@key=1000]/perslid/mobiel != ''">
|
|
<xsl:if test="melding/plaats/regio/district/locatie/kenmerk[@key=1000]/perslid/telefoonnr != ''">
|
|
<br/>
|
|
</xsl:if>
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/kenmerk[@key=1000]/perslid/mobiel"/>
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4" height="30px" valign="center">
|
|
<hr/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/MLD/stdmelding"/>:</b>
|
|
</td>
|
|
<td align="left">
|
|
<xsl:if test="melding/stdmelding/omschrijving=''">-</xsl:if>
|
|
<xsl:value-of select="melding/stdmelding/omschrijving"/>
|
|
</td>
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/MLD/vakgroep"/>:</b>
|
|
</td>
|
|
<td align="left">
|
|
<xsl:if test="melding/discipline/omschrijving=''">-</xsl:if>
|
|
<xsl:value-of select="melding/discipline/omschrijving"/>
|
|
</td>
|
|
</tr>
|
|
<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:if test="opdrachttype/key != 721">
|
|
<tr>
|
|
<td colspan="4" align="left">
|
|
<br/>Graag zien wij een bevestiging van de opdracht tegemoet en vernemen wij de uitvoerdatum van de werkzaamheden.</td>
|
|
</tr>
|
|
</xsl:if>
|
|
<xsl:if test="opdrachttype/kosten = '1'">
|
|
<tr>
|
|
<td colspan="4" height="30px" valign="center">
|
|
<hr/>
|
|
</td>
|
|
</tr>
|
|
<xsl:variable name="uurloon">
|
|
<xsl:choose>
|
|
<xsl:when test="uurloon">
|
|
<xsl:value-of select="uurloon"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>0</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
<xsl:variable name="arbeid" select="uren*$uurloon"/>
|
|
<tr>
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/MLD/uren"/>:</b>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="format-number(uren, '0,00', 'european')"/>
|
|
<b> à </b>€ <xsl:value-of select="format-number($uurloon, '0,00', 'european')"/></td>
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/MLD/arbeid"/>:</b>
|
|
</td>
|
|
<td style="width:1in;text-align:right">€ <xsl:value-of select="format-number($arbeid, '0,00', 'european')"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"/>
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/MLD/materiaal"/>:</b>
|
|
</td>
|
|
<td style="width:1in;text-align:right">€ <xsl:value-of select="format-number(materiaal, '0,00', 'european')"/></td>
|
|
</tr>
|
|
<xsl:variable name="correctie0" select="$arbeid + materiaal"/>
|
|
<xsl:variable name="correctie" select="kosten - $correctie0"/>
|
|
<xsl:if test="$correctie!=0">
|
|
<tr>
|
|
<td colspan="2"/>
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/MLD/correctie"/>:</b>
|
|
</td>
|
|
<td style="width:1in;text-align:right">€ <xsl:value-of select="format-number($correctie, '0,00', 'european')"/></td>
|
|
</tr>
|
|
</xsl:if>
|
|
<tr>
|
|
<td colspan="2"/>
|
|
<td align="right">
|
|
<b>
|
|
<xsl:value-of select="//lcl/FAC/totaal"/>
|
|
<xsl:if test="kenmerk[@key=41] = 'Ja'"> (indicatief)</xsl:if>:</b>
|
|
</td>
|
|
<td style="width:1in;text-align:right">
|
|
<b>€ <xsl:value-of select="format-number(kosten, '0,00', 'european')"/></b>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4" align="left">
|
|
<xsl:if test="kenmerk[@key=41] = 'Ja'">
|
|
<br/>Het bovenstaande bedrag is indicatief. Indien het bedrag hoger wordt, dient eerst contact opgenomen te worden met het Facilitair Service Bureau.<br/></xsl:if>
|
|
<br/>De factuur dient (inclusief werkbon en kopie opdrachtbevestiging) onder vermelding van
|
|
opdrachtnummer <xsl:value-of select="//facilitor/header/custId"/> <xsl:value-of select="melding/stdmelding/discipline/srtdiscipline/prefix"/>
|
|
<xsl:value-of select="melding/key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/> gezonden te
|
|
worden naar:<br/><br/>
|
|
<xsl:value-of select="melding/plaats/regio/district/locatie/kenmerk[@key=1060]"/>
|
|
<br/>Postbus 4358<br/>
|
|
7320 AJ  Apeldoorn<br/>
|
|
<br/>Facturen zonder referentie, kopie zullen worden geretourneerd. De factuur <b>uiterlijk 3 weken na oplevering</b> toezenden.</td>
|
|
</tr>
|
|
</xsl:if>
|
|
<tr>
|
|
<td colspan="4" height="30px" valign="center">
|
|
</td>
|
|
</tr>
|
|
<xsl:if test="opdrachttype/key = 5 or opdrachttype/key = 702">
|
|
</xsl:if>
|
|
</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"/>
|
|
<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="full">
|
|
<xsl:choose>
|
|
<xsl:when test="$mode='summary'"></xsl:when>
|
|
<xsl:otherwise>
|
|
<html>
|
|
<xsl:comment>================================ OPDRACHTEN ==============================</xsl:comment>
|
|
<xsl:comment>FACILITOR default XSL template for opdracht</xsl:comment>
|
|
<xsl:call-template name="htmlhead"/>
|
|
<xsl:element name="body">
|
|
<xsl:call-template name="pageheader"/>
|
|
<xsl:apply-templates select="." mode="include"/>
|
|
<xsl:call-template name="pagefooter"/>
|
|
</xsl:element>
|
|
</html>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:stylesheet> |