MARX#53107: SALES005 Annuleren van opdrachtverstrekking vanuit opdrachtgever

svn path=/Website/branches/v2018.1/; revision=38606
This commit is contained in:
Marcel Bourseau
2018-07-23 11:52:43 +00:00
parent 59bdafb735
commit b06c0522a9
9 changed files with 54 additions and 65 deletions

View File

@@ -18,7 +18,16 @@
</xsl:variable>
<xsl:template match="facilitor">
<xsl:apply-templates select="opdracht" mode="body_sales005_1.0"/>
<xsl:apply-templates select="opdracht"/>
</xsl:template>
<xsl:template match="opdracht">
<!-- SIDB Onderhoudsopdracht 'SALES 005 1.0 (releasedatum 1-apr-2018) -->
<!-- 53107: SALES005 Annuleren van opdrachtverstrekking vanuit opdrachtgever (in dit geval is statusopdr_key = 1) -->
<xsl:choose>
<xsl:when test="statusopdr_key = '1'"><xsl:apply-templates select="." mode="body_annuleer_sales005_1.0"/></xsl:when>
<xsl:otherwise><xsl:apply-templates select="." mode="body_sales005_1.0"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="/">

View File

@@ -78,15 +78,6 @@
</soap:Envelope>
</xsl:template>
<xsl:template match="etim">
<xsl:for-each select="*">
<xsl:if test="name() = 'MaintenanceInstruction'">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:template>
<!-- Uitpakken SOAP envelope -->
<xsl:template match="soap:Envelope">

View File

@@ -81,15 +81,6 @@
</soap:Envelope>
</xsl:template>
<xsl:template match="etim">
<xsl:for-each select="*">
<xsl:if test="name() = 'MaintenanceInstruction'">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:template>
<!-- Uitpakken SOAP envelope -->
<xsl:template match="soap:Envelope">

View File

@@ -54,15 +54,6 @@
</soap:Envelope>
</xsl:template>
<xsl:template match="etim">
<xsl:for-each select="*">
<xsl:if test="name() = 'MaintenanceInstruction'">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:template>
<!-- Uitpakken SOAP envelope -->
<xsl:template match="soap:Envelope">

View File

@@ -56,15 +56,6 @@
</soap:Envelope>
</xsl:template>
<xsl:template match="etim">
<xsl:for-each select="*">
<xsl:if test="name() = 'MaintenanceInstruction'">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:template>
<!-- Uitpakken SOAP envelope -->
<xsl:template match="soap:Envelope">

View File

@@ -54,15 +54,6 @@
</soap:Envelope>
</xsl:template>
<xsl:template match="etim">
<xsl:for-each select="*">
<xsl:if test="name() = 'MaintenanceInstruction'">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:template>
<!-- Uitpakken SOAP envelope -->
<xsl:template match="soap:Envelope">

View File

@@ -55,16 +55,7 @@
</soap:Body>
</soap:Envelope>
</xsl:template>
<xsl:template match="etim">
<xsl:for-each select="*">
<xsl:if test="name() = 'MaintenanceInstruction'">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:template>
<!-- Uitpakken SOAP envelope -->
<xsl:template match="soap:Envelope">

View File

@@ -35,13 +35,6 @@
</soap:Envelope>
</xsl:template>
<xsl:template match="etim">
<xsl:for-each select="*">
<xsl:if test="name() = 'MaintenanceInstruction'">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:template>
<!-- Uitpakken SOAP envelope -->
<xsl:template match="soap:Envelope">

View File

@@ -234,7 +234,44 @@
</InstructionData>
</MaintenanceInstruction>
</xsl:template>
<xsl:template match="opdracht" mode="body_annuleer_sales005_1.0">
<MaintenanceStatus xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.ketenstandaard.nl/onderhoudsstatus/SALES/005" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ketenstandaard.nl/onderhoudsstatus/SALES/005 Onderhoudsstatus_SALES005.xsd">
<!-- Voorbeeldformaat: MAR24/1@dd-mm-jjjj hh:mm:ss -->
<MessageNumber><xsl:value-of select="key"/>@<xsl:value-of select="substring(//header/dateYear,3,2)"/><xsl:value-of select="//header/dateMonth"/><xsl:value-of select="//header/dateDay"/></MessageNumber>
<!-- SIDB - Datum waarop een bericht is aangemaakt. Mandatory, formaat CCYY-MM-DD -->
<MessageDate><xsl:value-of select="//header/dateYear"/>-<xsl:value-of select="//header/dateMonth"/>-<xsl:value-of select="//header/dateDay"/></MessageDate>
<!-- SIDB description - Tijdstip waarop het bericht is aangemaakt. Optional, formaat hhmm -->
<MessageTime><xsl:value-of select="substring-after(//header/dateTime,' ')"/></MessageTime>
<Buyer>
<GLN><xsl:apply-templates select="melding/voor/afdeling/bedrijf/leverancier_nr"/></GLN>
</Buyer>
<Contractor>
<GLN><xsl:apply-templates select="uitvoerende/bedrijf/leverancier_nr"/></GLN>
</Contractor>
<InstructionData>
<!-- SIDB - Nummer ter identificatie van een opdracht binnen een bericht. Mandatory, C(17)-->
<!-- Intern opdrachtnummer vanuit Broker/koppelsysteem (= Mareon), toegekend door de zender van het bericht, ontvanger vermeldt dit nummer op pakbon en/of factuur. Verplicht, C(17)-->
<!-- MAR-nummer Bedoeld voor system-2-system communicatie -->
<InstructionNumber><xsl:value-of select="melding/stdmelding/discipline/srtdiscipline/prefix"/><xsl:value-of select="melding/key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/></InstructionNumber>
<!-- IOnummer van opdrachtgever -->
<InstructionSubNumber><xsl:value-of select="opdr_id"/></InstructionSubNumber>
<Status>ANN</Status>
</InstructionData>
</MaintenanceStatus>
</xsl:template>
<xsl:template match="etim">
<xsl:for-each select="*">
<xsl:if test="name() = 'MaintenanceInstruction'">
<xsl:copy-of select="."/>
</xsl:if>
<xsl:if test="name() = 'MaintenanceStatus'">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template match="opdracht">
<etim xmlns="">
<header>
@@ -245,7 +282,11 @@
<etim_MsgId><xsl:value-of select="key"/>@<xsl:value-of select="substring(//header/dateYear,3,2)"/><xsl:value-of select="//header/dateMonth"/><xsl:value-of select="//header/dateDay"/>T<xsl:value-of select="substring-after(//header/dateTime,' ')"/></etim_MsgId>
</header>
<!-- SIDB Onderhoudsopdracht 'SALES 005 1.0 (releasedatum 1-apr-2018) -->
<xsl:apply-templates select="." mode="body_sales005_1.0"/>
<!-- 53107: SALES005 Annuleren van opdrachtverstrekking vanuit opdrachtgever (in dit geval is statusopdr_key = 1) -->
<xsl:choose>
<xsl:when test="statusopdr_key = '1'"><xsl:apply-templates select="." mode="body_annuleer_sales005_1.0"/></xsl:when>
<xsl:otherwise><xsl:apply-templates select="." mode="body_sales005_1.0"/></xsl:otherwise>
</xsl:choose>
</etim>
</xsl:template>