STCH map, Sitech

svn path=/Website/branches/v2017.2/; revision=36142
This commit is contained in:
Robin Stoker
2017-11-28 16:43:11 +00:00
parent 1fbf3af995
commit e679f12787
31 changed files with 1349 additions and 0 deletions

15
CUST/STCH/AASI.css Normal file
View File

@@ -0,0 +1,15 @@
/*
* $Revision$
* $Modtime: 20-01-12 13:44 $
*/
@import "../AAXX/default.css";
#headerblok
{
background: url(fac_head_l.gif) no-repeat;
background-color: #FFFFFF;
background-position: 0px 0px;
color: #000002;
}

BIN
CUST/STCH/aafm_banner.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,19 @@
REM GEN_EXPORT_DAILY_TASK.BAT
REM
REM Roept scripts aan die dagelijks uitgevoerd moeten worden
REM
REM Context : roep deze file aan indien nodig, of schedule deze
REM Verseist: de randvoorwaarde voor het gebruik van gen_export
REM
REM $Revision$
REM $Id$
REM
REM (c) 2009, SG facilitor, +31 (53) 4800710, helpdesk@sgfacilitor.nl
REM
CALL ..\..\..\utils\gen_export\gen_export.bat DAILY_TASK

View File

@@ -0,0 +1,26 @@
REM GEN_EXPORT_EXACT.BAT
REM
REM Exporteert informatie naar een export-bestand
REM
REM Context : roep deze file aan indien nodig, of schedule deze
REM Verseist: de randvoorwaarde voor het gebruik van gen_export
REM
REM $Revision$
REM $Id$
REM
REM (c) 2010, SG|facilitor bv, +31 (53) 4800700, support@sgfacilitor.nl
REM
CALL ..\..\..\utils\gen_export\gen_export.bat EXACT
CALL ..\..\..\utils\gen_export\gen_export.bat VERWERK_EXACT
CALL ..\..\..\utils\gen_export\gen_export.bat BUNDEL_CATERING
CALL ..\..\..\utils\gen_export\gen_export.bat EXACT_VERKOOP
CALL ..\..\..\utils\gen_export\gen_export.bat EXACT_VERKOOP_VJ
CALL ..\..\..\utils\gen_export\gen_export.bat EXACT_UREN
CALL ..\..\..\utils\gen_export\gen_export.bat VERWERK_EXACT_UREN

View File

@@ -0,0 +1,20 @@
REM GEN_EXPORT_HV_FREEZE.BAT
REM
REM AAFM
REM
REM Bevries de huisvestingssituatie.
REM
REM Context : roep deze file aan indien nodig, of schedule deze
REM Verseist: de randvoorwaarde voor het gebruik van gen_export
REM
REM $Revision$
REM $Id$
REM
REM (c) 2005, Dijkoraad IT bv, +31 (53) 4800700, facilitorsupport@it.dijkoraad.nl
REM
REM ================================================== create exportfile
CALL ..\..\..\utils\gen_export\gen_export.bat HV_FREEZE
REM ================================================== cleanup

BIN
CUST/STCH/fac_head_l.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +1,11 @@
Echo Starten GetStruktonStatus.js
cscript ..\..\AAXX\import\Strukton\GetStruktonStatus.js ../oracle.udl 50422 >>genimport.log
if errorlevel 1 goto fout
cscript ..\..\..\utils\gen_import\gen_import.wsf AASI OPDRSTAT_STRUKTON >>genimport.log 2>>&1
goto einde
:fout
Echo gen_import.exe niet meer uitgevoerd>>genimport.log
:einde

View File

@@ -0,0 +1,4 @@
echo 'Empty' >> aaxx_imp.csv
cscript ..\..\..\utils\gen_import\gen_import.wsf AAXX AAFM_MEDEWERKERS >>genimport.log 2>>&1

217
CUST/STCH/mcust.css Normal file

File diff suppressed because one or more lines are too long

BIN
CUST/STCH/oracle.udl Normal file

Binary file not shown.

0
CUST/STCH/photos/.gitignore vendored Normal file
View File

View File

@@ -0,0 +1,119 @@
<%@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

@@ -0,0 +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

View File

@@ -0,0 +1,4 @@
@echo off
REM Moet gescheduled worden (normaliter 1 keer per dag) om door de applicatiebeheerder
REM ingeregelde jobs (aanmaak van periodieke opdrachten) uit te voeren.
cscript ..\..\..\utils\gen_scheduler\gen_scheduler.js ../oracle.udl

View File

@@ -0,0 +1 @@
call ..\..\..\utils\putOrders\putOrders.bat

BIN
CUST/STCH/tmpl_logo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
CUST/STCH/tmpl_logo_sm.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

414
CUST/STCH/xsl/AASI.xsl Normal file
View File

@@ -0,0 +1,414 @@
<?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:import href="../../aaxx/xsl/default.xsl"/>
<xsl:variable name="Rev">
<!-- Revision van deze cust.xsl -->
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>
<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 AAFM service desk
(tel: 60000, e-mail: servicedeskchemelot@aa-fm.com) 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:template match="printfg">
<html>
<xsl:comment>Facilitor Graphics default XSL template</xsl:comment>
<!--mode FG0 A4 zonder legenda
mode FG1 A4 met legenda links ervan
mode FG2 A3 zonder legenda
mode FG3 A3 met legenda links ervan
-->
<xsl:call-template name="htmlhead" />
<script type="text/javascript">
window.document.title="Facilitor Graphics: <xsl:value-of select="plaats/alg_locatie_code"/>-"
+"<xsl:value-of select="plaats/alg_gebouw_code"/>-"
+"<xsl:value-of select="plaats/alg_verdieping_omschrijving"/>"
<xsl:if test="thema/CAD_THEMA_OMSCHRIJVING!=''">
+"&#160;/Thema:&#160;<xsl:value-of select="thema/CAD_THEMA_OMSCHRIJVING"/>";
</xsl:if>
</script>
<body style="background-color:white;margin:0;padding:0;" onload="window.print()">
<table border="0" width="100%" cellpadding="2">
<xsl:choose>
<xsl:when test="$mode='FG0'">
<tr>
<td colspan="2">
<xsl:element name='img'>
<xsl:attribute name="src">
<xsl:value-of select="pngURL"/>&amp;vKey=<xsl:value-of select="vKey"/>&amp;paperWidth=240&amp;paperHeight=155&amp;DWGScale=<xsl:value-of select="DWGScale"/>
</xsl:attribute>
<xsl:attribute name="style">width:240mm</xsl:attribute>
<xsl:attribute name="border">1</xsl:attribute>
<xsl:attribute name="galleryimg">false</xsl:attribute>
</xsl:element>
</td>
</tr>
</xsl:when>
<xsl:when test="$mode='FG1'">
<tr>
<td><xsl:element name='iframe'>
<xsl:attribute name="frameborder">0</xsl:attribute>
<xsl:attribute name="style">width:50mm;height:150mm</xsl:attribute>
<xsl:attribute name="scrolling">no</xsl:attribute>
<xsl:attribute name="src">../CAD/legenda.asp?forPrint=1&amp;scenario_key=<xsl:value-of select="scenario"/>&amp;thema=<xsl:value-of select="THEMA_KEY"/>&amp;parentKey=<xsl:value-of select="vKey"/>&amp;mode=<xsl:value-of select="inoutMode"/>
</xsl:attribute>
</xsl:element>
</td>
<td><xsl:element name='img'>
<xsl:attribute name="src">
<xsl:value-of select="pngURL"/>&amp;vKey=<xsl:value-of select="vKey"/>&amp;paperWidth=192&amp;paperHeight=155&amp;DWGScale=<xsl:value-of select="DWGScale"/>
</xsl:attribute>
<xsl:attribute name="style">width:192mm</xsl:attribute>
<xsl:attribute name="border">1</xsl:attribute>
<xsl:attribute name="galleryimg">false</xsl:attribute>
</xsl:element>
</td>
</tr>
</xsl:when>
<xsl:when test="$mode='FG2'">
<tr>
<td colspan="2">
<xsl:element name='img'>
<xsl:attribute name="src">
<xsl:value-of select="pngURL"/>&amp;vKey=<xsl:value-of select="vKey"/>&amp;paperWidth=360&amp;paperHeight=253&amp;DWGScale=<xsl:value-of select="DWGScale"/>
</xsl:attribute>
<xsl:attribute name="style">width:360mm</xsl:attribute>
<xsl:attribute name="border">1</xsl:attribute>
<xsl:attribute name="galleryimg">false</xsl:attribute>
</xsl:element>
</td>
</tr>
</xsl:when>
<xsl:when test="$mode='FG3'">
<tr>
<td width="50mm"><xsl:element name='iframe'>
<xsl:attribute name="frameborder">0</xsl:attribute>
<xsl:attribute name="style">width:50mm;height:230mm</xsl:attribute>
<xsl:attribute name="scrolling">no</xsl:attribute>
<xsl:attribute name="src">../CAD/legenda.asp?forPrint=1&amp;scenario_key=<xsl:value-of select="scenario"/>&amp;thema=<xsl:value-of select="THEMA_KEY"/>&amp;parentKey=<xsl:value-of select="vKey"/>&amp;mode=<xsl:value-of select="inoutMode"/>
</xsl:attribute>
</xsl:element>
</td>
<td>
<xsl:element name='img'>
<xsl:attribute name="src">
<xsl:value-of select="pngURL"/>&amp;vKey=<xsl:value-of select="vKey"/>&amp;paperWidth=310&amp;paperHeight=233&amp;DWGScale=<xsl:value-of select="DWGScale"/>
</xsl:attribute>
<xsl:attribute name="style">width:310mm</xsl:attribute>
<xsl:attribute name="border">1</xsl:attribute>
<xsl:attribute name="galleryimg">false</xsl:attribute>
</xsl:element>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
Unknown template <xsl:value-of select="$mode"/>
</xsl:otherwise>
</xsl:choose>
</table>
<table border="0" width="100%">
<xsl:if test="thema/CAD_THEMA_OMSCHRIJVING!=''">
<tr>
<td style="text-align:center" colspan="4" class="tekstkop">
Thema:&#160;<xsl:value-of select="thema/CAD_THEMA_OMSCHRIJVING"/>
</td>
</tr>
<tr>
<td colspan="4" style="height:30"/>
</tr>
</xsl:if>
<tr>
<td width="55%">
</td>
<td style="text-align:left" width="12%" class="label">
Building:
</td>
<td style="text-align:right" width="18%" class="value">
G <xsl:value-of select="plaats/alg_gebouw_code"/>
</td>
<td style="text-align:left" rowspan="2" WIDTH="15%">
<xsl:element name="img">
<xsl:attribute name="src">../../cust/aads/tmpl_logo_sm.gif</xsl:attribute>
</xsl:element>
</td>
</tr>
<tr>
<td width="55%">
</td>
<td style="text-align:left" class="label">
Floor:
</td>
<td style="text-align:right" class="value">
<xsl:value-of select="plaats/alg_verdieping_code"/>&#160;(<xsl:value-of select="plaats/alg_verdieping_omschrijving"/>)
</td>
</tr>
<tr>
<td width="55%">
<td style="text-align:left" class="label">
Date:
</td>
</td>
<td style="text-align:right" class="value"><xsl:value-of select="//header/dateTime"/></td>
</tr>
<tr>
<td colspan="4" style="height:25"/>
</tr>
<tr>
<td align="right" valign="top" class="tiny" colspan="4">
<b>Facilitor</b>&#160;<xsl:value-of select="//header/version"/>.<xsl:value-of select="$DefRev"/>.<xsl:value-of select="$Rev"/></td>
</tr>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="perslid" mode="full">
<xsl:choose>
<xsl:when test="$mode='summary'"></xsl:when>
<xsl:otherwise>
<html>
<xsl:comment>================================ PERSONEN ==============================</xsl:comment>
<xsl:comment>Facilitor new style default XSL template for perslid</xsl:comment>
<xsl:call-template name="htmlhead"/>
<xsl:apply-templates select="." mode="include"/>
</html>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="perslid" mode="include">
<p>Onderwerp: <b>Inloggegevens Online Servicedesk</b></p>
<br/>
<p>Beste lezer,</p>
<p>Per 1 juli a.s. is de Online Servicedesk beschikbaar vanaf een nieuw adres.
De Online Servicedesk is terug te vinden op
<xsl:choose>
<xsl:when test="contains(email, 'dsm.com')">https://aads.facilitor.nl</xsl:when>
<xsl:when test="contains(email, 'sitech.nl')">https://aasi.facilitor.nl</xsl:when>
<xsl:otherwise>https://aach.facilitor.nl</xsl:otherwise>
</xsl:choose>
</p>
<p>Uw persoonlijke loginnaam en wachtwoord zijn:</p>
<p>Gebruikersnnaam: <xsl:value-of select="oslogin"/></p>
<p>Wachtwoord: Welkom<xsl:value-of select="key"/></p>
<p>U kunt bij de Online Servicedesk terecht voor aanvragen en meldingen zoals:</p>
<ul>
<li>melden van storingen aangaande, koffieautomaten, beamers, gebouwgebonden zaken, etc;</li>
<li>aanvragen zoals verhuizingen, meubilair, kleine bouwkundige ondersteuning, handyman, post &amp; repro, etc;</li>
<li>melden van klachten over de facilitaire dienstverlening.</li>
</ul>
<p>Mocht u verder vragen hebben hierover neem dan contact op met uw Facility Manager</p>
<p>Met vriendelijke groet namens,<br/>
AAFM Servicedesk</p>
</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>
-->

View File

@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" encoding="utf-8"/>
<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
<xsl:param name="mode"/>
<xsl:variable name="Rev">
<!-- Revision van deze aads2blcc.xsl -->
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>
<xsl:template match="opdracht">
<facilitor>
<xsl:element name="melding">
<xsl:attribute name="key"><xsl:value-of select="melding_key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/></xsl:attribute>
<xsl:attribute name="type">insert</xsl:attribute>
<datum><xsl:value-of select="tracking/track[@code='ORDNEW']/datum/jaar"/>-<xsl:value-of select="tracking/track[@code='ORDNEW']/datum/maand"/>-<xsl:value-of select="tracking/track[@code='ORDNEW']/datum/dag"/><xsl:text> </xsl:text><xsl:value-of select="tracking/track[@code='ORDNEW']/datum/tijd"/>:00</datum>
<melder><xsl:value-of select="melding/voor/naam_full"/></melder>
<stdmelding>14</stdmelding>
<prioriteit>3</prioriteit>
<locatiecode>CAMPUS</locatiecode>
<gebouwcode>007</gebouwcode>
<verdiepingcode></verdiepingcode>
<ruimtenr></ruimtenr>
<omschrijving>
DSM-opdracht: <xsl:value-of select="melding_key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/>
Opdrachttype: <xsl:value-of select="opdrachttype/omschrijving"/>
Prioriteit: <xsl:choose><xsl:when test="melding/spoed=1">Kritiek</xsl:when><xsl:when test="melding/spoed=2">Hoog</xsl:when><xsl:when test="melding/spoed=3">Normaal</xsl:when><xsl:otherwise>Laag</xsl:otherwise></xsl:choose>
Einddatum: <xsl:value-of select="einddatum/datum"/>
Melder: <xsl:value-of select="melding/voor/naam_full"/>
Afdeling: <xsl:value-of select="melding/voor/afdeling/omschrijving"/>
Telefoon: <xsl:choose><xsl:when test="melding/voor/mobiel!=''"><xsl:value-of select="melding/voor/mobiel"/></xsl:when><xsl:when test="melding/voor/telefoonnr!=''"><xsl:value-of select="melding/voor/telefoonnr"/></xsl:when><xsl:otherwise>-</xsl:otherwise></xsl:choose>
Locatie: <xsl:value-of select="melding/plaats/regio/district/locatie/code"/>
<xsl:if test="melding/plaats/regio/district/locatie/gebouw!=''"><xsl:text>&#xD;&#xA;</xsl:text>Gebouw: <xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/code"/> (<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/naam"/>)</xsl:if>
<xsl:if test="melding/plaats/regio/district/locatie/terrein!=''"><xsl:text>&#xD;&#xA;</xsl:text>Terrein: <xsl:value-of select="melding/plaats/regio/district/locatie/terrein/code"/> (<xsl:value-of select="melding/plaats/regio/district/locatie/terrein/naam"/>)</xsl:if>
<xsl:if test="melding/plaats/regio/district/locatie/gebouw/verdieping!=''"><xsl:text>&#xD;&#xA;</xsl:text>Verdieping: <xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/verdieping/code"/></xsl:if>
<xsl:if test="melding/plaats/regio/district/locatie/gebouw/verdieping/ruimte!=''"><xsl:text>&#xD;&#xA;</xsl:text>Ruimte: <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></xsl:if>
<xsl:text>&#xD;&#xA;&#xD;&#xA;</xsl:text><xsl:value-of select="omschrijving"/><xsl:text>&#xD;&#xA;</xsl:text>
<!--Opdrachtkenmerken-->
<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=".!=''">
<xsl:text>&#xD;&#xA;</xsl:text><xsl:value-of select="@naam"/>: <xsl:value-of select="."/>
</xsl:if>
</xsl:for-each>
</omschrijving>
<!--Alleen M-kenmerk bij MELDING kan worden doorgezet-->
<!--Naam-attribuut = naam van M-kenmerk aan BLCC-kant-->
<xsl:element name="kenmerk">
<xsl:attribute name="naam">Bijlagen</xsl:attribute>
<xsl:element name="FCLTmeldingattachment">
<xsl:attribute name="meldingkey"><xsl:value-of select="melding/key"/></xsl:attribute>
<xsl:attribute name="kenmerkkey">
<xsl:choose>
<!--IV-->
<xsl:when test="melding/discipline/key='2'">521</xsl:when>
<!--KL-->
<xsl:when test="melding/discipline/key='4'">522</xsl:when>
<!--PR-->
<xsl:when test="melding/discipline/key='1'">523</xsl:when>
<!--SA-->
<xsl:when test="melding/discipline/key='5'">524</xsl:when>
<!--ST-->
<xsl:when test="melding/discipline/key='3'">525</xsl:when>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="nodename">bijlage</xsl:attribute>
</xsl:element>
</xsl:element>
</xsl:element>
</facilitor>
</xsl:template>
<xsl:template match="facilitor">
<xsl:apply-templates select="opdracht"/>
</xsl:template>
<!-- Root -->
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$mode='getExtension'">
<xsl:element name="format">
<xsl:element name="extension">xml</xsl:element>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="facilitor"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="./cust.xsl"/>
<xsl:import href="../../aaxx/xsl/bestelopdr.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>
<xsl:template match="bestelopdracht" mode="full">
<xsl:apply-templates select="." mode="include"/>
</xsl:template>
</xsl:stylesheet>

36
CUST/STCH/xsl/cofely.xsl Normal file
View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="windows-1252" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="opdracht">
Bedrijf: 1015
Kontraktnr: <xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/kenmerk[@key=1080]"/>
Omschrijving: <xsl:value-of select="melding/discipline/omschrijving"/>/<xsl:value-of select="melding/stdmelding/omschrijving"/>
Gemeld door: <xsl:value-of select="melding/voor/naam_full"/>
Telefoonnr: <xsl:value-of select="melding/voor/telefoonnr"/>
Storings tekst: <xsl:value-of select="translate(omschrijving,'&#xA;','&#xA0;')"/>
Categorie: ALG
Klantordernr: <xsl:value-of select="melding/discipline/srtdiscipline/prefix"/><xsl:value-of select="melding/key"/>/<xsl:value-of select=" bedrijfopdr_volgnr"/>
Locatie: G<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/code"/>
Prioriteit: <xsl:choose><xsl:when test="melding/spoed='1'">3</xsl:when>
<xsl:when test="melding/spoed='2'">1</xsl:when>
<xsl:otherwise>2</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="/">
<xsl:apply-templates select="facilitor"/>
</xsl:template>
<xsl:template match="facilitor">
<xsl:apply-templates select="opdracht"/>
</xsl:template>
</xsl:stylesheet>
<!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="..\..\..\Temp\aadsopdracht287.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>
-->

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="./cust.xsl"/>
<xsl:import href="../../aaxx/xsl/contract.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>
</xsl:stylesheet>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:variable name="logo_file">../../cust/aaxx/aafm_banner.gif</xsl:variable>
<xsl:template name="customer">Sitech </xsl:template>
<xsl:template name="customer_code">Sitech</xsl:template>
<xsl:template name="customer_email">servicedesksitech@aa-fm.com</xsl:template>
<xsl:template name="invoice_email">invoices.sitech@aa-fm.com</xsl:template>
<xsl:template name="servicedesk_telefoon">60000</xsl:template>
<xsl:template name="opdracht_qr_bookmark"></xsl:template>
</xsl:stylesheet><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. -->

126
CUST/STCH/xsl/maas.xsl Normal file
View File

@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:param name="mode"/>
<xsl:variable name="Rev">
<!-- Revision van deze maas.xsl -->
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>
<xsl:template name="linebreaks">
<xsl:param name="string"/>
<xsl:choose>
<xsl:when test="contains($string, '&#xA;')">
<xsl:value-of select="substring-before($string, '&#xA;')"/>
<xsl:text> - </xsl:text>
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="substring-after($string, '&#xA;')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$string"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="opdracht">
<xsl:element name="MAAS_XML">
<xsl:element name="List_Service_Calls">
<xsl:element name="Service_Call">
<xsl:element name="Customer_Call_Number">
<xsl:value-of select="melding/discipline/srtdiscipline/prefix"/>
<xsl:value-of select="melding/key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/></xsl:element>
<xsl:element name="Customer_Call_Start_Date">
<xsl:value-of select="melding/gemeld/jaar"/>
<xsl:value-of select="melding/gemeld/maand"/>
<xsl:value-of select="melding/gemeld/dag"/>
</xsl:element>
<xsl:element name="Customer_Call_Start_Time">
<xsl:value-of select="concat(concat(substring-before(melding/gemeld/tijd,':'),substring-after(melding/gemeld/tijd,':')),'00')"/>
</xsl:element>
<xsl:element name="Customer_Requestor_Name">
<xsl:value-of select="substring(melding/voor/naam_full,1,40)"/>
</xsl:element>
<xsl:element name="Customer_Requestor_Telephone_Number">
<xsl:value-of select="melding/voor/telefoonnr"/>
</xsl:element>
<xsl:element name="Customer_Coordinator_Name">
<xsl:value-of select="substring(backoffice_contact/naam_full,1,40)"/>
</xsl:element>
<xsl:element name="Customer_Coordinator_Telephone_Number">
<xsl:value-of select="backoffice_contact/telefoonnr"/>
</xsl:element>
<xsl:element name="Customer_Coordinator_Email_Address">
<xsl:value-of select="substring(backoffice_contact/email,1,60)"/>
</xsl:element>
<xsl:element name="Customer_Site_Name">
<xsl:value-of select="melding/plaats/regio/district/locatie/omschrijving"/>
</xsl:element>
<xsl:element name="Customer_Site_Street">
<xsl:value-of select="melding/plaats/regio/district/locatie/adres"/>
</xsl:element>
<xsl:element name="Customer_Site_Postal_Code">
<xsl:value-of select="melding/plaats/regio/district/locatie/postcode"/>
</xsl:element>
<xsl:element name="Customer_Site_City">
<xsl:value-of select="melding/plaats/regio/district/locatie/plaats"/>
</xsl:element>
<xsl:if test="count(melding/deel)&gt;0">
<xsl:element name="Customer_Installation_Code">
<xsl:for-each select="melding/deel">
<xsl:sort select="omschrijving"/>
<xsl:if test="position()=1">
<xsl:value-of select="omschrijving"/>
</xsl:if>
</xsl:for-each>
</xsl:element>
</xsl:if>
<xsl:element name="Customer_Installation_Description">
<xsl:value-of select="melding/plaats/plaatsaanduiding"/>
</xsl:element>
<xsl:element name="Customer_Call_Description">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="omschrijving"/>
</xsl:call-template>
</xsl:element>
<xsl:element name="Maas_Installation_Code">
<xsl:for-each select="melding/deel">
<xsl:sort select="omschrijving"/>
<xsl:if test="position()=1">
<xsl:value-of select="substring(omschrijving, 3, 30)"/>
</xsl:if>
</xsl:for-each>
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:template>
<xsl:template match="facilitor">
<xsl:apply-templates select="opdracht"/>
</xsl:template>
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$mode='getExtension'">
<xsl:element name='format'>
<xsl:element name='extension'>xml</xsl:element>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="facilitor"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="file:///a:/Facilitor/AAFM_A/TEMP/AAESopdracht247.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>
-->

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="./cust.xsl"/>
<xsl:import href="../../aaxx/xsl/opdracht.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>
<xsl:template match="opdracht" mode="full">
<xsl:apply-templates select="." mode="default_opdracht"/>
</xsl:template>
</xsl:stylesheet>

184
CUST/STCH/xsl/strukton.xsl Normal file
View File

@@ -0,0 +1,184 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<xsl:output method="xml" encoding="utf-8"/>
<xsl:decimal-format name="european" decimal-separator="." grouping-separator=","/>
<xsl:param name="mode"/>
<!-- Maken 'bon' (XML) -->
<xsl:template match="opdracht">
<xsl:variable name="prioriteit">
<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:variable>
<xsl:element name="ServiceRequestCreate">
<xsl:element name="ServiceRequest">
<xsl:element name="CustomerID"><xsl:value-of select="uitvoerende/bedrijf/overeenkomst_nr"/></xsl:element>
<xsl:element name="ReferenceID">
<xsl:value-of select="concat(melding/discipline/srtdiscipline/prefix, melding/key)"/>/<xsl:value-of select=" bedrijfopdr_volgnr"/>
</xsl:element>
<xsl:element name="Reference"><xsl:value-of select="melding/stdmelding/omschrijving"/>-<xsl:value-of select="opdrachttype/omschrijving"/></xsl:element>
<xsl:element name="TypeCode">
<xsl:choose>
<xsl:when test="opdrachttype/omschrijving='Docket'">2</xsl:when>
<xsl:when test="opdrachttype/omschrijving='Workorder'">4</xsl:when>
<xsl:otherwise>3</xsl:otherwise>
</xsl:choose>
</xsl:element>
<xsl:element name="RequestedProcessingPeriod">
<xsl:element name="EndDateTime">
<xsl:value-of select="einddatum/jaar"/>-<xsl:value-of select="einddatum/maand"/>-<xsl:value-of select="einddatum/maand"/>T<xsl:value-of select="einddatum/tijd"/>:00</xsl:element>
<xsl:element name="EscalationToOperator">false</xsl:element>
</xsl:element>
<xsl:element name="IssueCategoryID">
<xsl:value-of select="melding/discipline/key"/>
</xsl:element>
<xsl:element name="IssueCategory">
<xsl:value-of select="melding/discipline/omschrijving"/>
</xsl:element>
<xsl:element name="IssueSubCategoryID">
<xsl:value-of select="melding/stdmelding/key"/>
</xsl:element>
<xsl:element name="IssueSubCategory">
<xsl:value-of select="melding/stdmelding/omschrijving"/>
</xsl:element>
<xsl:element name="Description">
<xsl:value-of select="omschrijving"/>
<xsl:choose>
<xsl:when test="melding/kenmerk[@naam='Project voorwaarden'] = 'Managing agent'">
LET OP: MA condities van toepassing
</xsl:when>
<xsl:when test="melding/kenmerk[@naam='Project voorwaarden'] = 'Contracting party'">
LET OP: CP condities van toepassing
</xsl:when>
</xsl:choose>
</xsl:element>
<xsl:element name="Monitoring">
<xsl:element name="StartDateTime">
<xsl:for-each select="tracking/track">
<xsl:sort select="datum/timestamp" order="ascending"/>
<xsl:if test="position() = 1">
<xsl:value-of select="datum/jaar"/>-<xsl:value-of select="datum/maand"/>-<xsl:value-of select="datum/dag"/>T<xsl:value-of select="datum/tijd"/>:00
</xsl:if>
</xsl:for-each>
</xsl:element>
<xsl:element name="EndDateTime">
<xsl:value-of select="einddatum/jaar"/>-<xsl:value-of select="einddatum/maand"/>-<xsl:value-of select="einddatum/dag"/>T<xsl:value-of select="einddatum/tijd"/>:00</xsl:element>
<xsl:element name="Urgency">
<xsl:value-of select="$prioriteit"/><xsl:if test="$prioriteit != 'Calamiteit'">: <xsl:value-of select="dagen"/> dagen</xsl:if>
</xsl:element>
</xsl:element>
<xsl:element name="Requester">
<xsl:element name="Name">
<xsl:element name="FirstLineName">
<xsl:value-of select="melding/voor/naam_full"/>
</xsl:element>
</xsl:element>
<xsl:element name="Communication">
<xsl:element name="Telephone">
<xsl:value-of select="melding/voor/telefoonnr"/>
</xsl:element>
<xsl:element name="Email">
<xsl:value-of select="melding/voor/email"/>
</xsl:element>
</xsl:element>
</xsl:element>
<xsl:element name="CustomerCoordinator">
<xsl:element name="Name">
<xsl:element name="FirstLineName">
<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/kenmerk[@key=1160]/perslid/naam_full"/>
</xsl:element>
</xsl:element>
<xsl:element name="Communication">
<xsl:element name="Telephone">
<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/kenmerk[@key=1160]/perslid/mobiel"/>
</xsl:element>
<xsl:element name="Email">
<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/kenmerk[@key=1160]/perslid/email"/>
</xsl:element>
</xsl:element>
</xsl:element>
<xsl:element name="ServiceLocation">
<xsl:element name="LocationID">
<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/kenmerk[@naam='Strukton referentie']"/>
</xsl:element>
<xsl:element name="Location">
<xsl:value-of select="melding/plaats/plaatsaanduiding"/> (<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/omschrijving"/>)
</xsl:element>
<xsl:element name="Address">
<xsl:element name="StreetName">
<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/kenmerk[@naam='Adres']"/>
</xsl:element>
<xsl:element name="StreetPostalCode">
<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/kenmerk[@naam='Postcode']"/>
</xsl:element>
<xsl:element name="CityName">
<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/kenmerk[@naam='Plaats']"/>
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:template>
<!-- Maken 'bon' (XML) -->
<xsl:template match="facilitor">
<xsl:apply-templates select="opdracht"/>
</xsl:template>
<!-- Inpakken 'bon' in SOAP envelope -->
<xsl:template match="SOAPEnvelope">
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<xsl:copy-of select="./node()"/>
</soap:Body>
</soap:Envelope>
</xsl:template>
<!-- Uitpakken SOAP envelope -->
<xsl:template match="soap:Envelope">
<soapResult>
<xsl:copy-of select="soap:Body/node()"/>
</soapResult>
</xsl:template>
<!-- Decoderen XML response -->
<xsl:template match="ServiceRequestStatus">
<Result>
<xsl:value-of select="ErrorLog/TypeID"/>
</Result>
</xsl:template>
<!-- Root -->
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$mode='getExtension'">
<xsl:element name="format">
<!-- Hotelselect gebruikt geen cXML, maar SendFile.cls verwacht wel deze parameter om een XML response in te lezen -->
<xsl:element name="extension">xml</xsl:element>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<!-- door SendFile.cls gebruikt voor maken 'bon' (XML die via SOAP verstuurd wordt) -->
<xsl:apply-templates select="facilitor"/>
<!-- door SendSOAP.cls gebruikt voor inpakken van 'bon' in SOAP envelope -->
<xsl:apply-templates select="SOAPEnvelope"/>
<!-- door SendSOAP.cls gebruikt voor uitpakken van response uit SOAP envelope -->
<xsl:apply-templates select="soap:Envelope"/>
<!-- door SendFile.cls gebruikt voor lezen van status uit gefaalde response (NB: <soapResult> is al door de decode gestript) -->
<xsl:apply-templates select="ServiceRequestStatus"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. -->