svn path=/Website/trunk/; revision=556
This commit is contained in:
BIN
CUST/WELK/Oracle.udl
Normal file
BIN
CUST/WELK/Oracle.udl
Normal file
Binary file not shown.
0
CUST/WELK/Tasks/.gitignore
vendored
0
CUST/WELK/Tasks/.gitignore
vendored
72
CUST/WELK/Tasks/PutOrders.ini
Normal file
72
CUST/WELK/Tasks/PutOrders.ini
Normal file
@@ -0,0 +1,72 @@
|
||||
// Putorders.ini
|
||||
//
|
||||
// SAMPLE configuration file for Facilitor PutOrders routine.
|
||||
// This routine handles the internal Facilitor orders and notifications queueus and
|
||||
// takes care of sending these messages into the world. It normally is the only way out
|
||||
// for messages from Facilitor
|
||||
//
|
||||
// Several protocols are supported, like e-mail, SMS, FTP, HTTP and XML/SOAP
|
||||
// Its actual behaviour (like which messages are send by what means) is defined
|
||||
// by the applicationmanager using several settings, parameters and XSL stylesheets
|
||||
//
|
||||
// This sample needs to be copied to the ../../CUST/XXXX/Putorders folder, where
|
||||
// all the actual and appropriate settings *need* to be altered on installation.
|
||||
//
|
||||
// $Revision: 1 $
|
||||
// $Modtime: 20-04-09 13:44 $
|
||||
//
|
||||
|
||||
[SYSTEM]
|
||||
// The FULL FYSICAL (LOCAL) PATH to the Facilitor webroot folder (containing a.o. global.asa)
|
||||
FacilitorHome = "c:/inetpub/wwwroot/sm44/facilitorwork/"
|
||||
|
||||
[ADO]
|
||||
ConnectionString = "File Name=..\Oracle.udl "
|
||||
Database_Name = "ORACLE"
|
||||
CustomerId = "WELK"
|
||||
|
||||
[GENERAL]
|
||||
;// 0 = as attachments, 1 = in body
|
||||
NotificationInMailBody = "1"
|
||||
;// stylesheet to be applied for notifications
|
||||
NotificationXSL = "../xsl/cust.xsl"
|
||||
;// Mail subject prefix for orders (to be followed by ordernr)
|
||||
SubjectPrefix = "Facilitor bestelling: Bestelopdracht nr."
|
||||
;// the fixed From address for Facilitor orders
|
||||
FromAddress = "no_reply@welkombijwelkom.nl"
|
||||
;// optional reply address if that is different from FromAddress
|
||||
ReplyAddress = "no_reply@welkombijwelkom.nl"
|
||||
;// Level of logging (0-3) for troubleshooting purposes
|
||||
LogLevel = 2
|
||||
;// INTERNET_FLAG_PASSIVE = 0x8000000, else = 0
|
||||
ConnectionFlag = 0
|
||||
;// 1 = Use Proxy Server (recognizes TIS FTP gateway only), 0 = don't use Proxy
|
||||
UseProxy = 0
|
||||
;// Proxy Server IP Address, only used when UseProxy = 1
|
||||
ProxyServerIPAddress = ""
|
||||
;// SOAP Certificate reference
|
||||
SoapCertificateName = LOCAL_MACHINE\My\it.dijkoraad.nl
|
||||
;; Minuten
|
||||
NotificationDelay=1
|
||||
LogDestination = 3
|
||||
EmergencyMailAddress = "m.bourseau@sgfacilitor.nl"
|
||||
CustOrders = 0
|
||||
; // force this email address for test purposes
|
||||
; // ForceMailAddress = "m.bourseau@sgfacilitor.nl"
|
||||
; // force this order address for test purposes
|
||||
; //ForceOrderAddress = "mailto:m.bourseau@sgfacilitor.nl"
|
||||
; // force this mobile number for test purposes
|
||||
; //ForceMobile = ""
|
||||
MailBodyCharSet="unicode-1-1-utf-8"
|
||||
UseSenderAsReplyTo=1
|
||||
|
||||
[SMS]
|
||||
SmsAccount = ""
|
||||
;// SMS accountinfo
|
||||
UID = ""
|
||||
PWD = ""
|
||||
ReplyPhone = ""
|
||||
SMSProtocol = ""
|
||||
|
||||
|
||||
|
||||
4
CUST/WELK/Tasks/gen_notify.bat
Normal file
4
CUST/WELK/Tasks/gen_notify.bat
Normal 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.
|
||||
wscript ..\..\..\utils\gen_notify\gen_notify.js ../oracle.udl WELK
|
||||
4
CUST/WELK/Tasks/gen_scheduler.bat
Normal file
4
CUST/WELK/Tasks/gen_scheduler.bat
Normal 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.
|
||||
wscript ..\..\..\utils\gen_scheduler\gen_scheduler.js ../oracle.udl
|
||||
1
CUST/WELK/Tasks/putOrders.bat
Normal file
1
CUST/WELK/Tasks/putOrders.bat
Normal file
@@ -0,0 +1 @@
|
||||
..\..\..\utils\putOrders\putOrders.exe
|
||||
79
CUST/WELK/cust.css
Normal file
79
CUST/WELK/cust.css
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* $Revision: 1 $
|
||||
* $Modtime: 22-01-10 12:15 $
|
||||
* basiskleur: #202068 (logoblauw)
|
||||
* #007B63 (logogroen)
|
||||
*/
|
||||
#headerblok
|
||||
{
|
||||
background: url(fac_head.gif) no-repeat;
|
||||
background-color: #FFFFFF;
|
||||
background-position: 0px 0px;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
div.fcltframeheader {
|
||||
background-color: #aace36;
|
||||
background-image: none;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#mywelcome , #mymessages, #myactions{
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
color: #aace36;
|
||||
padding-bottom: 2px;
|
||||
height: 70%;
|
||||
padding: 0 12px 0 12px;
|
||||
}
|
||||
|
||||
#iframerextratitle { {
|
||||
color: #EEEEEE;
|
||||
}
|
||||
|
||||
#buttons ul li {
|
||||
color :#aace36;
|
||||
border-left: 2px solid #aace36;
|
||||
}
|
||||
#buttons ul li:hover {
|
||||
text-decoration: underline;;
|
||||
}
|
||||
|
||||
.E td { background-color: #EEEEEE;
|
||||
border:1px solid #FFFFFF;
|
||||
}
|
||||
.O td { background-color: #EEEEEE;
|
||||
border:1px solid #FFFFFF;
|
||||
}
|
||||
|
||||
/* for colored rows and others*/
|
||||
|
||||
.expired1 td {
|
||||
background-image:none;
|
||||
background-color: #ff8800;
|
||||
color : #ffffff;
|
||||
}
|
||||
|
||||
.expired2 td {
|
||||
background-image: none;
|
||||
background-color: #ff0000;
|
||||
color : #ffffff;
|
||||
}
|
||||
|
||||
.expired3 td {
|
||||
background-color: #D9A3E3;
|
||||
}
|
||||
.unsolved td {
|
||||
font-weight: bold;
|
||||
}
|
||||
.sleepy td {
|
||||
color: #808080;
|
||||
}
|
||||
|
||||
#editbody .fcltblock {
|
||||
background-color:#FAFAFA;
|
||||
border:2px solid #D0D0D0;
|
||||
}
|
||||
#editbody .fcltblockhead {
|
||||
background-color:#D0D0D0;
|
||||
}
|
||||
44
CUST/WELK/cust.inc
Normal file
44
CUST/WELK/cust.inc
Normal file
@@ -0,0 +1,44 @@
|
||||
<% /*
|
||||
$Revision: 1 $
|
||||
$Modtime: 22-01-10 12:17 $
|
||||
*/ %>
|
||||
<%
|
||||
var customerId = "WELK";
|
||||
|
||||
// This is THE place to define customer specific *overrules* for the standard Facilitor application texts.
|
||||
// Handle with care!
|
||||
|
||||
// System parameters
|
||||
|
||||
prs_max_dep_level = 2; // number of levels between prs_bedijf and prs_perslid (max = 5)
|
||||
|
||||
lcl_dep_name_level1 = 'Cluster';
|
||||
lcl_dep_name_level2 = 'Afdeling';
|
||||
prs_dep_all = false; // allow attaching persons on all department level { true | false }
|
||||
prs_dep_string = "d.prs_afdeling_naam2";
|
||||
|
||||
|
||||
//RES
|
||||
res_descipt_obligation=false; // oblige input in description field
|
||||
res_block = 0.5; // reservation block span (hours)
|
||||
|
||||
res_reservering_limiet = 365; // max number of days from now that reservations are allowed, in past or future {-1 = no limit}
|
||||
|
||||
// room-reservations, times in days
|
||||
res_expire = 1; // 'last minute': After this FE cannot change
|
||||
res_catExpire = 1; // 'last minute': After this FE cannot change catering
|
||||
|
||||
res_t1 = 8; // reservation day start (hour)
|
||||
res_t2 = 22; // reservation day end (hour)
|
||||
res_bo_show_telnr = 0; // Show telephonenumber column in res bo list (0=no show | 1=show)
|
||||
|
||||
|
||||
//BEZ
|
||||
vis_afspraak_onrgoed_uses_keys=1; // listboxes location until room instead of only a room text field
|
||||
vis_afspraak_host_uses_keys = 1; // the field "Bezoek voor" is a listbox (1 = true) otherwise a textfield
|
||||
vis_bo_search_host = 1; // Show field 'Host' for VIS BO to search on
|
||||
vis_parking_key = -1; // which res_discipline_key (cataloge) should be used for parking places
|
||||
vis_badgeprint_enable = 0; // print {0=no | 1=print at check in | 2=show print button}
|
||||
|
||||
%>
|
||||
<!-- #include file="custenv.inc" -->
|
||||
11
CUST/WELK/custenv.inc
Normal file
11
CUST/WELK/custenv.inc
Normal file
@@ -0,0 +1,11 @@
|
||||
<% /*
|
||||
$Revision: 1 $
|
||||
$Modtime: 25-07-07 9:58 $
|
||||
*/ %>
|
||||
<%
|
||||
// Contains Facilitor settings that differ across the various environments
|
||||
// Included by cust.inc
|
||||
|
||||
portalteaser="";
|
||||
|
||||
%>
|
||||
BIN
CUST/WELK/fac_head.gif
Normal file
BIN
CUST/WELK/fac_head.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
0
CUST/WELK/login_script/.gitignore
vendored
0
CUST/WELK/login_script/.gitignore
vendored
175
CUST/WELK/login_script/facilitor_login.asp
Normal file
175
CUST/WELK/login_script/facilitor_login.asp
Normal file
@@ -0,0 +1,175 @@
|
||||
<%@ Language=JavaScript %>
|
||||
<!--#include file="facilitor_login.inc"-->
|
||||
|
||||
<% /*
|
||||
$Revision: 1 $
|
||||
$Modtime: 23-09-08 12:29 $
|
||||
|
||||
Dit bestand wordt maakt het mogelijk voor gebruiker van Facilityplace
|
||||
om toch via SingleSignOn toegang te krijgen.
|
||||
*/ %>
|
||||
<%Response.Expires=0;%>
|
||||
<html>
|
||||
<%
|
||||
|
||||
/**
|
||||
*
|
||||
* Base64 encode / decode
|
||||
* http://www.webtoolkit.info/
|
||||
*
|
||||
**/
|
||||
|
||||
var Base64 = {
|
||||
|
||||
// private property
|
||||
_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
||||
|
||||
// public method for encoding
|
||||
encode : function (input) {
|
||||
var output = "";
|
||||
var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
|
||||
var i = 0;
|
||||
|
||||
input = Base64._utf8_encode(input);
|
||||
|
||||
while (i < input.length) {
|
||||
|
||||
chr1 = input.charCodeAt(i++);
|
||||
chr2 = input.charCodeAt(i++);
|
||||
chr3 = input.charCodeAt(i++);
|
||||
|
||||
enc1 = chr1 >> 2;
|
||||
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
|
||||
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
|
||||
enc4 = chr3 & 63;
|
||||
|
||||
if (isNaN(chr2)) {
|
||||
enc3 = enc4 = 64;
|
||||
} else if (isNaN(chr3)) {
|
||||
enc4 = 64;
|
||||
}
|
||||
|
||||
output = output +
|
||||
this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) +
|
||||
this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);
|
||||
|
||||
}
|
||||
|
||||
return output;
|
||||
},
|
||||
|
||||
// public method for decoding
|
||||
decode : function (input) {
|
||||
var output = "";
|
||||
var chr1, chr2, chr3;
|
||||
var enc1, enc2, enc3, enc4;
|
||||
var i = 0;
|
||||
|
||||
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
|
||||
|
||||
while (i < input.length) {
|
||||
|
||||
enc1 = this._keyStr.indexOf(input.charAt(i++));
|
||||
enc2 = this._keyStr.indexOf(input.charAt(i++));
|
||||
enc3 = this._keyStr.indexOf(input.charAt(i++));
|
||||
enc4 = this._keyStr.indexOf(input.charAt(i++));
|
||||
|
||||
chr1 = (enc1 << 2) | (enc2 >> 4);
|
||||
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
|
||||
chr3 = ((enc3 & 3) << 6) | enc4;
|
||||
|
||||
output = output + String.fromCharCode(chr1);
|
||||
|
||||
if (enc3 != 64) {
|
||||
output = output + String.fromCharCode(chr2);
|
||||
}
|
||||
if (enc4 != 64) {
|
||||
output = output + String.fromCharCode(chr3);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
output = Base64._utf8_decode(output);
|
||||
|
||||
return output;
|
||||
|
||||
},
|
||||
|
||||
// private method for UTF-8 encoding
|
||||
_utf8_encode : function (string) {
|
||||
string = string.replace(/\r\n/g,"\n");
|
||||
var utftext = "";
|
||||
|
||||
for (var n = 0; n < string.length; n++) {
|
||||
|
||||
var c = string.charCodeAt(n);
|
||||
|
||||
if (c < 128) {
|
||||
utftext += String.fromCharCode(c);
|
||||
}
|
||||
else if((c > 127) && (c < 2048)) {
|
||||
utftext += String.fromCharCode((c >> 6) | 192);
|
||||
utftext += String.fromCharCode((c & 63) | 128);
|
||||
}
|
||||
else {
|
||||
utftext += String.fromCharCode((c >> 12) | 224);
|
||||
utftext += String.fromCharCode(((c >> 6) & 63) | 128);
|
||||
utftext += String.fromCharCode((c & 63) | 128);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return utftext;
|
||||
},
|
||||
|
||||
// private method for UTF-8 decoding
|
||||
_utf8_decode : function (utftext) {
|
||||
var string = "";
|
||||
var i = 0;
|
||||
var c = c1 = c2 = 0;
|
||||
|
||||
while ( i < utftext.length ) {
|
||||
|
||||
c = utftext.charCodeAt(i);
|
||||
|
||||
if (c < 128) {
|
||||
string += String.fromCharCode(c);
|
||||
i++;
|
||||
}
|
||||
else if((c > 191) && (c < 224)) {
|
||||
c2 = utftext.charCodeAt(i+1);
|
||||
string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
|
||||
i += 2;
|
||||
}
|
||||
else {
|
||||
c2 = utftext.charCodeAt(i+1);
|
||||
c3 = utftext.charCodeAt(i+2);
|
||||
string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
|
||||
i += 3;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return string;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var user = '' + Request.ServerVariables("REMOTE_USER");
|
||||
if (user =='' || user=='undefined') {
|
||||
user = '' + Request.ServerVariables("HTTP_USER");
|
||||
if (user =='' || user=='undefined') {
|
||||
user =='';
|
||||
}
|
||||
}
|
||||
|
||||
%>
|
||||
|
||||
<head>
|
||||
</head>
|
||||
<body onload="document.all.facilitor.submit();">
|
||||
<form name="facilitor" action="<%=url%>" method=post>
|
||||
<input type="hidden" name="UID" value="<%=Base64.encode(user)%>">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
9
CUST/WELK/login_script/facilitor_login.inc
Normal file
9
CUST/WELK/login_script/facilitor_login.inc
Normal file
@@ -0,0 +1,9 @@
|
||||
<% /*
|
||||
$Revision: 1 $
|
||||
$Modtime: 6-11-08 11:03 $
|
||||
|
||||
Dit bestand wordt maakt het mogelijk voor gebruiker van Facilityplace
|
||||
om toch via SingleSignOn toegang te krijgen.
|
||||
*/ %>
|
||||
<% url = "https://welk.dijkolabs.nl/default.asp?fac_id=welk"; %>
|
||||
|
||||
BIN
CUST/WELK/tmpl_logo.gif
Normal file
BIN
CUST/WELK/tmpl_logo.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
0
CUST/WELK/xsl/.gitignore
vendored
0
CUST/WELK/xsl/.gitignore
vendored
180
CUST/WELK/xsl/cXML.xsl
Normal file
180
CUST/WELK/xsl/cXML.xsl
Normal file
@@ -0,0 +1,180 @@
|
||||
<?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" encoding="UTF-8"/>
|
||||
|
||||
<xsl:decimal-format name="european" decimal-separator='.' grouping-separator=',' />
|
||||
|
||||
<xsl:param name="mode"/>
|
||||
|
||||
<xsl:template match="bestelopdracht">
|
||||
<xsl:comment>Facilitor custom XSL template for cXML bestelopdracht</xsl:comment>
|
||||
<xsl:element name="cXML">
|
||||
<xsl:attribute name="payloadID"><xsl:value-of select="datum/timestamp"/>@http://mycomp.com</xsl:attribute>
|
||||
<xsl:attribute name="timestamp">2006-05-10T12:41:47+01:00</xsl:attribute>
|
||||
<xsl:attribute name="xml:lang">NL</xsl:attribute>
|
||||
<Header>
|
||||
<From>
|
||||
<Credential domain="Facilitor" type="marketplace">
|
||||
<Identity>order@facilityplace.nl</Identity>
|
||||
</Credential>
|
||||
</From>
|
||||
<To>
|
||||
<xsl:element name="Credential">
|
||||
<xsl:attribute name="domain"><xsl:value-of select="bedrijf/naam"/></xsl:attribute>
|
||||
<Identity>8712423002180</Identity>
|
||||
</xsl:element>
|
||||
</To>
|
||||
<Sender>
|
||||
<Credential domain="Facilitor">
|
||||
<Identity>order@facilityplace.nl</Identity>
|
||||
</Credential>
|
||||
<UserAgent></UserAgent>
|
||||
</Sender>
|
||||
</Header>
|
||||
<Request deploymentMode="test">
|
||||
<OrderRequest>
|
||||
<xsl:element name="OrderRequestHeader">
|
||||
<xsl:attribute name="orderID"><xsl:value-of select="id"/></xsl:attribute>
|
||||
<xsl:attribute name="orderDate"><xsl:value-of select="/facilitor/bestelopdracht/datum/jaar"/>-<xsl:value-of select="/facilitor/bestelopdracht/datum/maand"/>-<xsl:value-of select="/facilitor/bestelopdracht/datum/dag"/></xsl:attribute>
|
||||
<xsl:attribute name="type">new</xsl:attribute>
|
||||
<Total>
|
||||
<Money currency="EUR"><xsl:value-of select="format-number(sum(bestelopdrachtitem/totaal), '0.00', 'european')"/></Money>
|
||||
</Total>
|
||||
<ShipTo>
|
||||
<xsl:element name="Address">
|
||||
<xsl:attribute name="addressID"><xsl:value-of select='bedrijf/overeenkomst_nr'/></xsl:attribute>
|
||||
<Name xml:lang="NL">Welkom (<xsl:value-of select="afleveradres/naam"/>)</Name>
|
||||
<PostalAddress name="default">
|
||||
<DeliverTo><xsl:value-of select="bestelling/aanvrager/naam_full"/></DeliverTo>
|
||||
<DeliverTo></DeliverTo>
|
||||
<Street><xsl:value-of select="afleveradres/bezoek_adres"/></Street>
|
||||
<City><xsl:value-of select="afleveradres/bezoek_plaats"/></City>
|
||||
<State></State>
|
||||
<PostalCode><xsl:value-of select="afleveradres/bezoek_postcode"/></PostalCode>
|
||||
<Country isoCountryCode="NL">Netherlands</Country>
|
||||
</PostalAddress>
|
||||
</xsl:element>
|
||||
</ShipTo>
|
||||
<BillTo>
|
||||
<xsl:element name="Address">
|
||||
<xsl:attribute name="addressID"><xsl:value-of select='bedrijf/overeenkomst_nr'/></xsl:attribute>
|
||||
<Name xml:lang="NL">Welkom</Name>
|
||||
<PostalAddress name="default">
|
||||
<Street><xsl:value-of select="factuuradres/post_adres"/></Street>
|
||||
<City><xsl:value-of select="factuuradres/post_plaats"/></City>
|
||||
<State></State>
|
||||
<PostalCode><xsl:value-of select="factuuradres/post_postcode"/></PostalCode>
|
||||
<Country isoCountryCode="NL">Netherlands</Country>
|
||||
</PostalAddress>
|
||||
</xsl:element>
|
||||
</BillTo>
|
||||
<Payment>
|
||||
<PCard/>
|
||||
</Payment>
|
||||
<Extrinsic name="Costcenter"><xsl:value-of select='bestelling/kostenplaats/nr'/></Extrinsic>
|
||||
<xsl:for-each select="bestelling/kenmerk">
|
||||
<xsl:if test="@type!='Q' and @type!='L'">
|
||||
<xsl:element name="Extrinsic">
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@naam"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:element>
|
||||
<xsl:for-each select="bestelopdrachtitem">
|
||||
<xsl:sort select="srtdeel/omschrijving"/>
|
||||
<xsl:sort select="posnr"/>
|
||||
|
||||
<xsl:element name="ItemOut">
|
||||
<xsl:attribute name="quantity"><xsl:value-of select='aantal'/></xsl:attribute>
|
||||
<xsl:attribute name="lineNumber"><xsl:value-of select='posnr'/></xsl:attribute>
|
||||
<ItemID>
|
||||
<SupplierPartID><xsl:value-of select='bestelitem/srtdeel/artikel_nummer'/></SupplierPartID>
|
||||
</ItemID>
|
||||
<ItemDetail>
|
||||
<UnitPrice>
|
||||
<Money currency="EUR"><xsl:value-of select='prijs'/></Money>
|
||||
</UnitPrice>
|
||||
<Description xml:lang="NL"><xsl:value-of select='bestelitem/srtdeel/omschrijving'/></Description>
|
||||
<UnitOfMeasure><xsl:value-of select='bestelitem/srtdeel/eenheid'/></UnitOfMeasure>
|
||||
<Classification domain="SPSC">12345</Classification>
|
||||
<xsl:for-each select="bestelitem/kenmerk">
|
||||
<xsl:if test="@type!='Q' and @type!='L'">
|
||||
<xsl:element name="Extrinsic">
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@naam"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</ItemDetail>
|
||||
<Comments xml:lang="NL">
|
||||
<xsl:for-each select="bestelitem/kenmerk">
|
||||
<br/><xsl:value-of select="@naam"/>: <xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
</Comments>
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</OrderRequest>
|
||||
</Request>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="facilitor">
|
||||
<xsl:apply-templates select="stock_request"/>
|
||||
<xsl:apply-templates select="bestelopdracht"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="stock_request">
|
||||
<!--Facilitor custom XSL template for stock_request info -->
|
||||
<xsl:element name="stock_request">
|
||||
<xsl:element name="part">
|
||||
<xsl:element name="number">
|
||||
<xsl:value-of select="part/number"/>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="stock_response">
|
||||
<!--Facilitor custom XSL template for stock_response info -->
|
||||
<xsl:element name="facilitor">
|
||||
<xsl:element name="stock_response">
|
||||
<xsl:element name="part">
|
||||
<xsl:element name="number">
|
||||
<xsl:value-of select="part/number"/>
|
||||
</xsl:element>
|
||||
<xsl:element name="amount">
|
||||
<xsl:value-of select="part/amount"/>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</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:apply-templates select="stock_response"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
|
||||
<metaInformation>
|
||||
<scenarios/><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
|
||||
</metaInformation>
|
||||
-->
|
||||
296
CUST/WELK/xsl/cust.xsl
Normal file
296
CUST/WELK/xsl/cust.xsl
Normal file
@@ -0,0 +1,296 @@
|
||||
<?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: 1 $', '$ ', ''), 10)"/>
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<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(. > //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 <xsl:value-of select="key"/><br/></xsl:when>
|
||||
<xsl:otherwise>Deelreservering <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> </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/naam2"/></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">Kostenplaats</td>
|
||||
<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/kostenplaats/nr"/> 
|
||||
<xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/kostenplaats/omschrijving"/>
|
||||
</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>
|
||||
|
||||
<xsl:template match="afspraak" 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(bez_bezoeker))">
|
||||
<table>
|
||||
<tr>
|
||||
<td height="20"/>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="caption">Geen bezoekers geregistreerd.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- Bevestiging bezoekers registratie -->
|
||||
<table border="0" bordercolor="#ffffff" width="100%">
|
||||
<tr>
|
||||
<td class="caption" valign="top" colspan="2">Bevestiging Bezoekersregistratie <xsl:value-of select="key"/><br/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" width="20%">Aanvrager</td>
|
||||
<td class="value" width="80%">: <xsl:value-of select="contact_user/naam_full"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" width="20%">E-mail adres</td>
|
||||
<td class="value" width="80%">: <xsl:value-of select="contact_user/email"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" width="20%">Locatie</td>
|
||||
<td class="value" width="80%">: <xsl:value-of select="contact_user/werkplek/plaats/regio/district/locatie/omschrijving"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" width="20%">Afdeling</td>
|
||||
<td class="value" width="80%">: <xsl:value-of select="contact_user/afdeling/naam2"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30px"/>
|
||||
</tr>
|
||||
<xsl:if test="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 height="30px"/>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:call-template name="bez_begintext"/>
|
||||
<tr>
|
||||
<td height="10px"/>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tekstkop" colspan="2" style="text-decoration:underline">Bezoekgegevens</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5px"/>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" width="20%">Datum bezoek</td>
|
||||
<td class="value" width="80%">: <xsl:value-of select="datum/datum"/>
|
||||
<xsl:if test="datum/datum!=eind/datum">- <xsl:value-of select="eind/datum"/></xsl:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" width="20%">Tijd bezoek</td>
|
||||
<td class="value" width="80%">: <xsl:value-of select="datum/tijd"/> - <xsl:value-of select="eind/tijd"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" width="20%">Op bezoek bij</td>
|
||||
<td class="value" width="80%">: <xsl:value-of select="host_user/naam_full"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" width="20%">Telefoon</td>
|
||||
<td class="value" width="80%">: <xsl:value-of select="telefoonnr"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" width="20%">Bezoek locatie</td>
|
||||
<td class="value" width="80%">: <xsl:value-of select="plaats/plaatsaanduiding"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" width="20%">Actie</td>
|
||||
<td class="value" width="80%">: <xsl:value-of select="actie"/></td>
|
||||
</tr>
|
||||
<xsl:if test="opmerking!=''">
|
||||
<tr>
|
||||
<td class="label" width="20%">Opmerking</td>
|
||||
<td class="value" width="80%">: <xsl:value-of select="opmerking"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<tr>
|
||||
<td height="10"/>
|
||||
</tr>
|
||||
<!-- afspraak -->
|
||||
<xsl:for-each select="bez_bezoeker">
|
||||
<xsl:sort select="naam"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position() = 1">
|
||||
<tr>
|
||||
<td height="10" style="border-right: 0px solid; border-top: 0px solid; border-left: 0px solid; border-bottom: 0px solid"/>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="label">Bezoeker(s)</td>
|
||||
</tr>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
<tr>
|
||||
<td class="result">
|
||||
<xsl:value-of select="naam"/>
|
||||
</td>
|
||||
<td class="result">
|
||||
<xsl:value-of select="bedrijf"/>
|
||||
<xsl:if test="deel">[P]arkeerplaats gereserveerd</xsl:if>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
<xsl:call-template name="bez_endtext"/>
|
||||
</table>
|
||||
<!-- Bevestiging bezoekers registratie -->
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</TD>
|
||||
<TD WIDTH="30" ROWSPAN="30" ID="RECHTERMARGE"/>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user