STCH#51457 -- cust folder gereed voor prod

svn path=/Website/branches/v2017.2/; revision=36471
This commit is contained in:
Robin Stoker
2018-01-02 15:29:33 +00:00
parent 6299c9570f
commit 5aeedea446
10 changed files with 772 additions and 120 deletions

9
CUST/STCH/STCH.css Normal file
View File

@@ -0,0 +1,9 @@
/*
* $Revision$
* $Modtime: 20-01-12 13:44 $
*/
#headerblok {
background-position: center;
}

View File

@@ -0,0 +1,24 @@
REM GEN_EXPORT_SAP.BAT
REM
REM BLCC
REM
REM Exporteert opdrachten en kosten t.b.v. SAP
REM
REM Context : roep deze file aan indien nodig, of schedule deze
REM Vereist : de randvoorwaarde voor het gebruik van gen_export
REM
REM $Revision$
REM $Id$
REM
REM (c) 2016 Facilitor B.V.
REM
REM ================================================== cleanup
copy .\SAP\*.csv .\SAP\BACKUP
del .\SAP\*.csv
REM ================================================== create exportfile(s)
CALL ..\..\..\utils\gen_export\gen_export.bat SAP
REM ================================================== transfer file to STCH ftp
ftp.exe -ni -s:ftp_stch2sap.scr

0
CUST/STCH/flexfiles/menu/.gitignore vendored Normal file
View File

BIN
CUST/STCH/logo_sitech.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

BIN
CUST/STCH/sitech.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -1,119 +0,0 @@
<%@language="VBScript"%>
<%
'*******************************************************************
'Script: SSO.ASP
'
' $Revision$
' $Id$
'
'Doel: SSO bewerkstelligen voor ASP providers - deel 1 van 2
'*******************************************************************
'* declare *********************************************************
Dim strGUID, strCTID, strUserName, strKey, strASPUrl, strSharedKey
Dim strEncryptedCode, strControlEncryptedCode
'* variables *******************************************************
strASPUrl = "https://aasi.facilitor.nl?sso=2" 'HTTPS URL adres van ASP
strSharedKey = "wAwZPTXUaseuWoiVqhaJgOSaxJGBQyJe" 'Sharedkey - Should be the same at target side
'*******************************************************************
response.Buffer=true
Dim proto, zelf
If Request.ServerVariables("SERVER_PORT") = 443 Then
proto = "https://"
Else
proto = "http://"
End If
zelf = proto & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME")
%>
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function fnSubmit() {
window.document.form.submit();
return;
}
</SCRIPT>
</HEAD>
<BODY LANGUAGE="javascript" onload="return fnSubmit()">
Een moment aub.
<form action='<%=strASPUrl%>' method="post" name="form" ID="Form1">
<input type="hidden" name="returnurl" value="<%=zelf%>" ID="Hidden1">
<%
'* request action = requestid ***************************************
strGUID = Request.form("guid")
strCTID = Request.form("ctid")
if strGUID = "" or strCTID = "" then
'* first flow: requestid ****************************************
%>
<input type="hidden" name="action" value="requestid" ID="Hidden2">
<input type="hidden" name="jumpTo" value="<%=Request.Querystring("jumpTo")%>" ID="jumpTo">
<%
else
'* second flow: create code *************************************
strUserName = Request.ServerVariables("LOGON_USER")
if strUserName = "" then
strUserName = Request.ServerVariables("REMOTE_USER")
if strUserName = "" then
strUserName = Request.ServerVariables("HTTP_USER")
if strUserName = "" then
strUserName = Request.ServerVariables("HTTP_LOGIN")
if strUserName = "" then
'Forse user to authenticate
response.Clear
response.Status = 401
response.Flush
response.End
end if
end if
end if
end if
' * Strip domain name
Do While instr(strUserName, "\")>0
strUserName = Mid(strUserName, instr(strUserName, "\") + 1)
Loop
'* crypt ********************************************************
'First coding phase
strKey = mid(strSharedKey & strGUID,1,Len(strUserName))
strEncryptedCode = EnCrypt(strUserName)
'Second coding phase
strKey = mid(strGUID,1,Len(strEncryptedCode))
strEncryptedCode = EnCrypt(strEncryptedCode)
'* crypt Controlkey *********************************************
'First coding phase
strKey = mid(strSharedKey & strCTID,1,Len(strCTID))
strControlEncryptedCode = EnCrypt(zelf)
'Second coding phase
strKey = mid(strCTID,1,Len(strControlEncryptedCode))
strControlEncryptedCode = EnCrypt(strControlEncryptedCode)
%>
<input type="hidden" name="action" value="processcode" ID="Hidden3">
<input type="hidden" name="code" value="<%=ConvertToAsc(strEncryptedCode)%>" ID="Hidden4">
<input type="hidden" name="ctcode" value="<%=ConvertToAsc(strControlEncryptedCode)%>" ID="Hidden5">
<input type="hidden" name="ltcode" value="<%=len(strUserName)%>" ID="Hidden6">
<%
end if
'* Functions ********************************************************
Function EnCrypt(strCryptThis)
Dim strChar, iKeyChar, iStringChar, i
for i = 1 to Len(strCryptThis)
iKeyChar = Asc(mid(strKey,i,1))
iStringChar = Asc(mid(strCryptThis,i,1))
iCryptChar = iKeyChar Xor iStringChar
strEncrypted = strEncrypted & Chr(iCryptChar)
next
EnCrypt = strEncrypted
End Function
Function ConvertToAsc(strAsc)
Dim iCount
Dim strTemp
ConvertToAsc = ""
for iCount = 1 to len(strAsc)
strTemp = (asc(mid(strAsc,iCount,1)))
ConvertToAsc = ConvertToAsc & len(strTemp) & strTemp
next
End Function
'*********************************************************************
%>
</form>
</BODY>
</HTML>

View File

@@ -1,4 +1,4 @@
@echo off
REM Moet gescheduled worden (normaliter 1 keer per uur) om door de applicatiebeheerder
REM ingeregelde notificaties te genereren.
cscript ..\..\..\utils\gen_notify\gen_notify.js ../oracle.udl AASI
cscript ..\..\..\utils\gen_notify\gen_notify.js ../oracle.udl STCH

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

738
CUST/STCH/xsl/STCH.xsl Normal file
View File

@@ -0,0 +1,738 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="../../../appl/shared/default.xsl"/>
<xsl:variable name="Rev">
<!-- Revision van deze cust.xsl -->
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>
<xsl:template name="stylesheet">
<style>body {
font-family: Verdana;
background-color: rgb(255, 255, 255);
margin-left:0;
margin-top:8px;
cursor: auto;
}
table {
border: 0;
}
table.details {
background-color: "#006eab";
}
th {
font-family: Verdana;
font-size: 9pt;
font-weight: normal;
color: #ffffff;
text-decoration: none;
padding-left: 3px;
padding-right: 3px;
padding-top: 3px;
padding-bottom: 3px;
background-color: #006eab;
}
td {
font-family: Verdana;
font-style: normal;
font-size: 8pt;
font-weight: normal;
color: #000000;
text-align: left;
vertical-align: top;
}
td.result {
text-decoration: none;
padding-bottom: 2px;
padding-top: 2px;
padding-left: 2px;
padding-right: 2px;
background-color: #D6D8E8;
}
td.sec_heading {
font-size: 9pt;
text-decoration: none;
padding-bottom: 2px;
padding-top: 2px;
padding-left: 2px;
padding-right: 2px;
text-align: left;
background-color: #d0d0d0;
}
td.caption {
font-size: 18pt;
padding-bottom: 30px;
padding-top: 40px;
}
td.subcaption {
font-size: 10pt;
font-weight: bold;
text-decoration: underline;
}
td.label {
font-size: 10pt;
}
td.value {
font-style: italic;
font-size: 10pt;
}
td.tekst {
font-size: 10pt;
}
td.adres {
font-size: 8pt;
text-align: right;
}
td.tekstkop {
font-weight: bold;
font-size: 10pt;
}
td.tiny {
font-size: 6pt;
text-align: right;
}
span.tekstkop {
font-weight: bold;
font-size: 9pt;
}
span.tekstkopsmall {
font-weight: bold;
font-size: 8pt;
}</style>
</xsl:template>
<xsl:template name="prioriteit">
<xsl:param name="lang"/>
<xsl:choose>
<xsl:when test="$lang = 'EN'">
<xsl:choose>
<xsl:when test="melding/spoed=1">Critical</xsl:when>
<xsl:when test="melding/spoed=2">High</xsl:when>
<xsl:when test="melding/spoed=3">Normal</xsl:when>
<xsl:when test="melding/spoed=4">Low</xsl:when>
<xsl:when test="melding/spoed=5">Hold</xsl:when>
<xsl:otherwise>
Unknown
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="melding/spoed=1">Calamiteit</xsl:when>
<xsl:when test="melding/spoed=2">Hoog</xsl:when>
<xsl:when test="melding/spoed=3">Normaal</xsl:when>
<xsl:when test="melding/spoed=4">Laag</xsl:when>
<xsl:when test="melding/spoed=5">Hold</xsl:when>
<xsl:otherwise>
Onbekend
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="rsv_ruimte">
<xsl:param name="min_volgnr"/>
<tr>
<xsl:choose>
<xsl:when test="res_ruimte!=''">
<td class="tekstkop" colspan="10" frame="box" style="border-style:solid;border-width:0px;">
<br/><xsl:value-of select="van/datum"/>&#xA0;<xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if><xsl:value-of select="//lcl/RES/deelreservering"/> &#160; <xsl:value-of select="volgnr"/>&#xA0;
<xsl:if test="string(res_activiteit/omschrijving)!=''">(<xsl:value-of select="res_activiteit/omschrijving"/>)&#xA0;</xsl:if>
<xsl:value-of select="res_ruimte/plaats/regio/district/locatie/omschrijving"/>
</td>
</xsl:when>
<!-- "roomservice" -->
<xsl:otherwise>
<td class="tekstkop" colspan="10" frame="box" style="border-style:solid;border-width:0px;">
<br/><xsl:value-of select="van/datum"/><xsl:if test="string(van/datum)!=string(tot/datum)">&#xA0;-&#xA0;<xsl:value-of select="tot/datum"/></xsl:if>&#xA0;<xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if><xsl:value-of select="//lcl/RES/deelreservering"/> &#160;<xsl:value-of select="volgnr"/>&#xA0;
<xsl:value-of select="plaats/regio/district/locatie/omschrijving"/> -
<xsl:value-of select="plaats/regio/district/locatie/gebouw/naam"/> -
<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/omschrijving"/> -
<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/ruimte/nr"/>
</td>
</xsl:otherwise>
</xsl:choose>
</tr>
<xsl:if test="string(omschrijving)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/omschrijving)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/omschrijving"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
<xsl:value-of select="omschrijving"/>
</td>
</tr>
</xsl:if>
<xsl:if test="string(opmerking)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/opmerking)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/opmerking"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="opmerking"/>
</xsl:call-template>
</td>
</tr>
</xsl:if>
<xsl:if test="string(contact_user/naam_full)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/contact_user/naam_full)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/aanvrager"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
<xsl:value-of select="contact_user/naam_full"/>/ <xsl:value-of select="contact_user/werkplek/plaats/regio/district/locatie/omschrijving"/></td>
</tr>
</xsl:if>
<xsl:if test="string(host_user/naam_full)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/host_user/naam_full)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/RES/gastheer_vrouw"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
<xsl:value-of select="host_user/naam_full"/>
</td>
</tr>
</xsl:if>
<xsl:if test="string(kostenplaats/nr)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/kostenplaats/nr)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/kostenplaats"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
<xsl:value-of select="kostenplaats/nr"/>&#xA0;<xsl:value-of select="kostenplaats/omschrijving"/></td>
</tr>
</xsl:if>
<tr>
<th><xsl:value-of select="//lcl/FAC/omschrijving"/></th>
<th><xsl:value-of select="//lcl/RES/aantal"/></th>
<th style="text-align:right"><xsl:value-of select="//lcl/RES/prijs"/></th>
<!--<th width="80">Datum</th>-->
<th style="text-align:right"><xsl:value-of select="//lcl/RES/begintijd"/></th>
<th style="text-align:right"><xsl:value-of select="//lcl/RES/eindtijd"/></th>
<th><xsl:value-of select="//lcl/RES/status"/></th>
<th><xsl:value-of select="//lcl/RES/opstelling"/></th>
</tr>
<xsl:if test="res_ruimte!=''">
<tr>
<td class="result" style="text-align:left" width="35%"><xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if>
<xsl:value-of select="res_ruimte/nr"/>
<br/>(max. <xsl:value-of select="res_ruimte/bezoekers"/> <xsl:value-of select="//lcl/FAC/personen"/>)
<xsl:if test="res_ruimte/omschrijving!=''">
<br/><br/><xsl:value-of select="res_ruimte/omschrijving"/>
</xsl:if>
</td>
<td class="result" style="text-align:left">
<xsl:value-of select="bezoekers"/>&#xA0;<xsl:value-of select="//lcl/FAC/personen"/></td>
<td class="result" style="text-align:right">
<xsl:call-template name="europrijs">
<xsl:with-param name="prijs" select="prijs"/>
</xsl:call-template>
</td>
<!--<td class="result" style="text-align:right">
<xsl:value-of select="van/datum"/>
</td>-->
<td class="result" style="text-align:right">
<xsl:value-of select="van/tijd"/>
</td>
<td class="result" style="text-align:right">
<xsl:value-of select="tot/tijd"/>
</td>
<td class="result" style="text-align:left">
<xsl:value-of select="status_fo"/>
</td>
<td class="result" style="text-align:left">
<xsl:value-of select="res_ruimte/opstelling"/>
</td>
</tr>
</xsl:if>
<!-- rsv_deel-lijst gesorteerd op van-tijd -->
<xsl:for-each select="rsv_deel">
<xsl:sort select="van/tijd"/>
<tr>
<td class="result"><xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if>
<xsl:value-of select="res_deel/deel/omschrijving"/>
</td>
<td class="result">
<xsl:value-of select="aantal"/>
</td>
<td class="result" style="text-align:right">
<xsl:call-template name="europrijs">
<xsl:with-param name="prijs" select="prijs"/>
</xsl:call-template>
</td>
<!--<td class="result" style="text-align:right">
<xsl:value-of select="van/datum"/>
</td>-->
<td class="result" style="text-align:right">
<xsl:value-of select="van/tijd"/>
</td>
<td class="result" style="text-align:right">
<xsl:value-of select="tot/tijd"/>
</td>
</tr>
</xsl:for-each>
<!-- rsv_artikel-lijst gesorteerd op van-tijd -->
<xsl:for-each select="rsv_artikel">
<xsl:sort select="levering/tijd"/>
<tr>
<td class="result">
<xsl:value-of select="res_artikel/omschrijving"/>
</td>
<td class="result">
<xsl:value-of select="aantal"/>
</td>
<td class="result" style="text-align:right">
<xsl:call-template name="europrijs">
<xsl:with-param name="prijs" select="prijs"/>
</xsl:call-template>
</td>
<!--<td class="result" style="text-align:right">
<xsl:value-of select="levering/datum"/>
</td>-->
<td class="result" style="text-align:right">
<xsl:value-of select="levering/tijd"/>
</td>
</tr>
</xsl:for-each>
<!-- totaal per deelreservering -->
<tr>
<td class="tekst" colspan="2" style="border-style:solid;border-width:0px;"><xsl:value-of select="//lcl/RES/totaal_deelreservering"/></td>
<td class="tekst" style="text-align:right;border-style:solid;border-width:0px;">
<xsl:call-template name="europrijs">
<xsl:with-param name="prijs" select="sum(prijs[string(number(.))!='NaN'])+sum(rsv_deel/prijs[string(number(.))!='NaN'])+sum(rsv_artikel/prijs[string(number(.))!='NaN'])"/>
</xsl:call-template>
</td>
</tr>
<!-- afspraak-lijst gesorteerd op naam -->
<xsl:for-each select="afspraak/bezoeker">
<xsl:sort select="naam"/>
<xsl:choose>
<xsl:when test="position() = 1">
<tr>
<td class="tekst" style="border-style:solid;border-width:0px;">
<br/><xsl:value-of select="//lcl/BEZ/bezoekers"/></td>
</tr>
<tr>
<th><xsl:value-of select="//lcl/FAC/naam"/></th>
<th colspan="3"><xsl:value-of select="//lcl/FAC/bedrijf"/></th>
<th colspan="4"><xsl:value-of select="//lcl/BEZ/parkeerplaats"/></th>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td class="result">
<xsl:value-of select="naam"/>
</td>
<td class="result" colspan="3">
<xsl:value-of select="bedrijf"/>
</td>
<td class="result" colspan="4">
<xsl:value-of select="deel/omschrijving"/>
</td>
</tr>
</xsl:for-each>
<!-- kenmerk -->
<xsl:if test="kenmerk">
<tr>
<td colspan="5">
<table>
<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 class="label">
<xsl:value-of select="@naam"/></td>
<td class="value">
: <xsl:value-of select="."/>
</td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</td>
</tr>
<tr height="20px">
<td class="tekst" colspan="2" style="border-style:solid;border-width:0px;"></td>
</tr>
</xsl:if>
</xsl:template>
<xsl:template match="bestelling" mode="include">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
<TR>
<TD WIDTH="40" ROWSPAN="30" ID="LINKERMARGE"></TD>
<TD>
<table border="0" width="100%" bordercolor="#000000">
<tr>
<td align="left" width="100%" class="caption" colspan="2"><xsl:value-of select="//lcl/BES/bestelaanvraag"/>&#xA0;<xsl:value-of select="key"/>
<xsl:if test="ismutatie=1"> (WIJZIGING)</xsl:if>
<xsl:if test="isretour=1"> (RETOUR)</xsl:if>
</td>
</tr>
<tr>
<td width="20%" class="label"><xsl:value-of select="//lcl/FAC/aanvrager"/></td>
<td width="80%" class="value">: <xsl:value-of select="voor/naam_full"/></td>
</tr>
<xsl:if test="string(voor/email)!=''">
<tr>
<td class="label"><xsl:value-of select="//lcl/FAC/e-mail"/></td>
<td class="value">: <xsl:value-of select="voor/email"/></td>
</tr>
</xsl:if>
<xsl:if test="voor/telefoonnr!=''">
<tr>
<td class="label"><xsl:value-of select="//lcl/FAC/telefoon"/></td>
<td class="value">: <xsl:value-of select="voor/telefoonnr"/></td>
</tr>
</xsl:if>
<tr>
<td class="label"><xsl:value-of select="//lcl/FAC/afdeling"/></td>
<td class="value">:
<xsl:if test="voor/afdeling/omschrijving=''">-</xsl:if>
<xsl:value-of select="voor/afdeling/omschrijving"/>
</td>
</tr>
<xsl:if test="string(voor/naam_full)!=string(voor/naam_full)">
<tr>
<td class="label"><xsl:value-of select="//lcl/BES/bestelvoor"/></td>
<td class="value">: <xsl:value-of select="voor/naam_full"/></td>
</tr>
</xsl:if>
<tr>
<td class="label"><xsl:value-of select="//lcl/FAC/kostenplaats"/></td>
<td class="value">:
<xsl:if test="kostenplaats/nr=''">-</xsl:if>
<xsl:value-of select="kostenplaats/nr"/>
</td>
</tr>
<tr>
<td height="20px"/>
</tr>
<tr>
<td class="label"><xsl:value-of select="//lcl/BES/aanvraagdatum"/></td>
<td class="value">:
<xsl:value-of select="datum/datum"/>&#xA0;
<xsl:value-of select="datum/tijd"/>
</td>
</tr>
<tr>
<td class="label"><xsl:value-of select="//lcl/BES/aanvraagstatus"/></td>
<td class="value">: <xsl:value-of select="status"/></td>
</tr>
<tr>
<td class="label">Afleverdatum</td>
<td class="value">: <xsl:value-of select="leverdatum/datum"/></td>
</tr>
<tr>
<td class="label" style="vertical-align:top"><xsl:value-of select="//lcl/BES/afleveradres"/></td>
<td class="value">:
<xsl:value-of select="afleveradres/naam"/>
<br/>&#xA0;
<xsl:value-of select="afleveradres/bezoek_adres"/>
<br/>&#xA0;
<xsl:value-of select="afleveradres/bezoek_postcode"/>&#xA0;
<xsl:value-of select="afleveradres/bezoek_plaats"/>
<br/>&#xA0;
<xsl:value-of select="afleveradres/bezoek_land"/>
</td>
</tr>
<tr>
<td height="20px"/>
</tr>
<xsl:for-each select="kenmerk[count(@xmlnode)=0]">
<xsl:if test="(@type!='L' and @type!='l')">
<tr>
<td class="label">
<xsl:value-of select="@naam"/>
</td>
<td class="value">: <xsl:value-of select="."/></td>
</tr>
</xsl:if>
</xsl:for-each>
<tr>
<td height="20px"/>
</tr>
<xsl:if test="status='Geleverd'">
<tr>
<td class="label">Commentaar levering</td>
<td class="value">: <xsl:value-of select="bestelopdracht/leveringopmerking"/></td>
</tr>
</xsl:if>
<tr>
<td height="20px"/>
</tr>
<tr>
<td colspan="2">
<table cellpadding="0" cellspacing="0" border="1" bordercolor="#303030" width="100%">
<tr>
<th><xsl:value-of select="//lcl/BES/artikelnr"/></th>
<th><xsl:value-of select="//lcl/FAC/omschrijving"/></th>
<th><xsl:value-of select="//lcl/FAC/opmerkingen"/></th>
<th style="text-align:right"><xsl:value-of select="//lcl/FAC/aantal"/></th>
<th style="text-align:right"><xsl:value-of select="//lcl/FAC/prijs"/></th>
<th style="text-align:right"><xsl:value-of select="//lcl/FAC/totaal"/></th>
</tr>
<xsl:for-each select="bestelitem">
<tr>
<td class="result" style="text-align:left">
<xsl:value-of select="srtdeel/artikel_nummer"/>
</td>
<td class="result" style="text-align:left">
<xsl:value-of select="srtdeel/omschrijving"/>
</td>
<td class="result">
<xsl:for-each select="kenmerk[count(@xmlnode)=0]">
<xsl:if test="(@type!='L' and @type!='l')">
<xsl:value-of select="@naam"/>:
<xsl:value-of select="."/>
<br/>
</xsl:if>
</xsl:for-each>&#xA0;</td>
<td class="result" style="text-align:right">
<xsl:value-of select="aantal"/>
</td>
<td class="result" style="text-align:right">
<xsl:value-of select="format-number(prijs, '0,00', 'european')"/>
</td>
<td class="result" style="text-align:right">
<xsl:value-of select="format-number(aantal*prijs, '0,00', 'european')"/>
</td>
</tr>
</xsl:for-each>
<tr>
<td height="6px" style="border-style:solid;border-width:0px;"/>
</tr>
<tr>
<td class="tekstkop" style="text-align:right;border-style:solid;border-width:0px;" colspan="5"><xsl:value-of select="//lcl/FAC/totaal"/>:</td>
<td class="tekstkop" style="text-align:right;border-style:solid;border-width:0px;">
<xsl:value-of select="format-number(sum(/facilitor/bestelling/bestelitem/totaal), '0,00', 'european')"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</TD>
<TD WIDTH="30" ROWSPAN="30" ID="RECHTERMARGE"/>
</TR>
</TABLE>
</xsl:template>
<xsl:template name="res_endtext">
<tr>
<td colspan="2" class="tekst"><br/><center><b>Voor storingen buiten kantoortijden dient u 60000 te bellen</b></center></td>
</tr>
</xsl:template>
<xsl:template name="bez_endtext">
<tr>
<td colspan="2" class="tekst"><br/><center><b>Voor storingen buiten kantoortijden dient u 60000 te bellen</b></center></td>
</tr>
</xsl:template>
<xsl:template match="reservering" mode="include">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
<TR>
<TD WIDTH="40" ROWSPAN="30" ID="LINKERMARGE"/>
<TD>
<xsl:choose>
<xsl:when test="not(boolean(rsv_ruimte))">
<table>
<tr>
<td height="20"/>
</tr>
<tr>
<td class="caption">Annulering</td>
</tr>
<tr>
<td>
<b>Op uw naam heeft een reservering<xsl:if test="key!=''"> onder nummer <xsl:value-of select="key"/></xsl:if> plaatsgevonden, die vervolgens direct weer is verwijderd.</b>
<br/>
<br/>Deze reservering wordt niet verder verwerkt.<br/><br/>
Wilt u toch een reservering aanmaken voeg dan een nieuwe reservering toe waarbij een zaal, voorziening of artikel gereserveerd is.</td>
</tr>
</table>
</xsl:when>
<xsl:otherwise>
<!-- Bevestiging reservering -->
<!-- De algemene gegevens van de deelreservering met het laagste volgnummer worden gebruikt als referentie gegevens! -->
<xsl:variable name="min_volgnr">
<xsl:value-of select="//reservering/rsv_ruimte/volgnr[not(. &gt; //reservering/rsv_ruimte/volgnr)]"/>
</xsl:variable>
<table border="0" bordercolor="#ffffff" width="100%">
<tr>
<td class="caption" valign="top" colspan="2">
<xsl:choose>
<xsl:when test="@content='complete'">Reservering (reeks) <xsl:value-of select="key"/><br/></xsl:when>
<xsl:otherwise>Reservering <xsl:value-of select="key"/> / <xsl:value-of select="$min_volgnr"/><br/></xsl:otherwise>
</xsl:choose>
<xsl:if test="string(rsv_ruimte[volgnr=$min_volgnr]/omschrijving)!=''">(<xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/omschrijving"/>)</xsl:if>&#xA0;</td>
</tr>
<tr>
<td width="20%" class="label">Aanvrager</td>
<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/naam_full"/></td>
</tr>
<tr>
<td width="20%" class="label">E-mail adres</td>
<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/email"/></td>
</tr>
<tr>
<td width="20%" class="label">Locatie</td>
<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/werkplek/plaats/regio/district/locatie/omschrijving"/></td>
</tr>
<tr>
<td width="20%" class="label">Afdeling</td>
<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/afdeling/omschrijving"/></td>
</tr>
<tr>
<td width="20%" class="label">Gastheer/-vrouw</td>
<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/host_user/naam_full"/></td>
</tr>
<tr>
<td width="20%" class="label">Stamnummer</td>
<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/host_user/nr"/></td>
</tr>
<tr>
<td width="20%" class="label">FDC</td>
<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/kostenplaats/nr"/>&#xA0;
<xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/kostenplaats/omschrijving"/>
</td>
</tr>
<tr>
<td width="20%" class="label">Costcenter</td>
<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/ordernr"/></td>
</tr>
<tr>
<td height="30px"/>
</tr>
<xsl:if test="rsv_ruimte[volgnr=$min_volgnr]/contact_user/key!=ingevoerd_user/key">
<tr>
<td width="20%" class="label">Behandeld door</td>
<td width="80%" class="value">: <xsl:value-of select="ingevoerd_user/naam_full"/></td>
</tr>
<tr>
<td width="20%" class="label">Datum</td>
<td width="80%" class="value">: <xsl:value-of select="datum/datum"/></td>
</tr>
<tr>
<td height="30px"/>
</tr>
</xsl:if>
<tr>
<td colspan="2" class="tekst">
<xsl:choose>
<xsl:when test="$srtnotificatiecode='RESNEW'"/>
<xsl:when test="$srtnotificatiecode='RESDEL'">DE RESERVERING IS VERVALLEN</xsl:when>
<xsl:otherwise>
<xsl:call-template name="res_begintext"/>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<tr>
<td height="10px"/>
</tr>
<tr>
<td class="tekstkop" colspan="2" style="text-decoration:underline">Reserveringsgegevens</td>
</tr>
<tr>
<td height="5px"/>
</tr>
<xsl:if test="string(rsv_ruimte[volgnr=$min_volgnr]/opmerking)!=''">
<tr>
<td colspan="2" class="label">Opmerking</td>
</tr>
<tr>
<td colspan="2" class="value">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="rsv_ruimte[volgnr=$min_volgnr]/opmerking"/>
</xsl:call-template>
</td>
</tr>
<tr>
<td height="5px"/>
</tr>
</xsl:if>
<tr>
<td colspan="2">
<table cellpadding="0" cellspacing="0" border="1" bordercolor="#000000" frame="box">
<!-- rsv_ruimte -->
<xsl:for-each select="rsv_ruimte">
<xsl:sort select="volgnr" data-type="number"/>
<xsl:call-template name="rsv_ruimte">
<xsl:with-param name="min_volgnr" select="$min_volgnr"/>
</xsl:call-template>
</xsl:for-each>
<!-- totaal reservering -->
<tr>
<td height="10px" style="border-style:solid;border-width:0px;"/>
</tr>
<tr>
<td class="tekstkop" align="right" colspan="2" style="border-style:solid;border-width:0px;">Totaalprijs reservering:</td>
<td class="tekstkop" style="text-align:right;border-style:solid;border-width:0px;">
<xsl:call-template name="europrijs">
<xsl:with-param name="prijs"
select="sum(rsv_ruimte/prijs[string(number(.))!='NaN'])+sum(rsv_ruimte/rsv_deel/prijs[string(number(.))!='NaN'])+sum(rsv_ruimte/rsv_artikel/prijs[string(number(.))!='NaN'])"/>
</xsl:call-template>
</td>
</tr>
</table>
</td>
</tr>
<xsl:call-template name="res_endtext">
<xsl:with-param name="min_volgnr" select="$min_volgnr"/>
</xsl:call-template>
</table>
<!-- Bevestiging reservering -->
</xsl:otherwise>
</xsl:choose>
</TD>
<TD WIDTH="30" ROWSPAN="30" ID="RECHTERMARGE"/>
</TR>
</TABLE>
</xsl:template>
<!-- Klantspecifieke begintekst voor reserveringsgegevens op reserveringsbon -->
<xsl:template name="res_begintext">
<tr>
<td colspan="2" class="tekst">
<xsl:choose>
<xsl:when test="$srtnotificatiecode = 'RESINF'">Geachte heer, mevrouw,
<br/>
<br/>Onderstaande reservering staat geregistreerd in ons systeem.
Indien deze reservering niet meer van toepassing is dient u deze binnen 1 werkdag te annuleren.
<br/>
<br/>Eventuele wijzigingen in uw reservering kunt u doorgeven aan de Sitech service desk
onder vermelding van bovenstaand reserveringsnummer.
Aanvullende catering bestellingen kunt u doorgeven aan de cateraar op uw locatie.
Aan catering bestellingen of vergaderfaciliteiten zijn kosten verbonden.
Indien u niet tijdig annuleert worden deze in rekening gebracht.
<br/>
<br/>Wanneer de reservering gewoon doorgang vindt, hoeft u niet op deze herinnering te reageren.
<br/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2007. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="..\..\..\TEMP\AAAR_files\melding121055_20150205132902.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->