PCHD#27157 -- initiele versie

svn path=/Website/trunk/; revision=19285
This commit is contained in:
Arthur Egberink
2013-09-26 12:34:44 +00:00
parent 37713937f0
commit eb6d0ced36
9 changed files with 474 additions and 0 deletions

BIN
CUST/PCHD/banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

0
CUST/PCHD/flexfiles/.gitignore vendored Normal file
View File

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

View File

@@ -0,0 +1,62 @@
// 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$
// $Modtime: 21-02-08 12:15 $
//
[SYSTEM]
// The FULL FYSICAL (LOCAL) PATH to the Facilitor webroot folder (containing a.o. global.asa)
FacilitorHome = "d:/Apps/Facilitor/Fplace5i/"
[ADO]
ConnectionString = "File Name=..\Oracle.udl "
Database_Name = "ORACLE"
CustomerId = "PCHD"
[GENERAL]
FlexfilesFolder = "d:/Apps/Facilitor/Fplace5i/cust/pchd/flexfiles/"
NotificationInMailBody = "1"
;// 0 = as attachments, 1 = in body
NotificationXSL = "../xsl/cust.xsl"
;// stylesheet to be applied for notifications
SubjectPrefix = "Facilitor bestelling: Bestelopdracht nr."
;// Mail subject prefix for orders (to be followed by ordernr)
FromAddress = "fsb@pch-fm.nl"
;// the fixed From address for Facilitor orders
ReplyAddress = "fsb@pch-fm.nl"
;// optional reply address if that is different from FromAddress
LogLevel = 1
;// Level of logging (0-3) for troubleshooting purposes
ConnectionFlag = 0
;// INTERNET_FLAG_PASSIVE = 0x8000000, else = 0
UseProxy = 0
;// 1 = Use Proxy Server (recognizes TIS FTP gateway only), 0 = don't use Proxy
ProxyServerIPAddress = "127.0.0.1"
;// Proxy Server IP Address, only used when UseProxy = 1
SoapCertificateName = LOCAL_MACHINE\My\it.dijkoraad.nl ;// SOAP Certificate reference
; // force this email address for test purposes
;ForceMailAddress = "mb@it.dijkoraad.nl"
; // force this order address for test purposes
;ForceOrderAddress = "mailto:mb@it.dijkoraad.nl"
; // force this mobile number for test purposes
ForceMobile = "31651193520"
;UseSenderAsReplyTo = 1
[SMS]
SmsAccount = ""
UID = ""
PWD = ""
ReplyPhone = ""
SMSProtocol = ""

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 PCHD

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 @@
..\..\..\utils\putOrders\putOrders.exe

BIN
CUST/PCHD/tmpl_logo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

403
CUST/PCHD/xsl/cust.xsl Normal file
View File

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