MDUX#38328: Middelenbeheer (objectenbeheer)
svn path=/Website/branches/v2016.2/; revision=31378
This commit is contained in:
@@ -1339,71 +1339,177 @@
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="rapport">
|
||||
<html>
|
||||
<xsl:if test="$srtnotificatiecode = 'CUST01'">
|
||||
<!-- <xsl:if test="@view = 'MDUX_V_RAP_BES_OPEN_LEV'"> -->
|
||||
<table width="100%" CLASS='DefResultsetTable'>
|
||||
<xsl:if test=" count(rapport_data/data_row) = 0">
|
||||
<tr><td>
|
||||
<center><b>Geen gegevens gevonden</b></center>
|
||||
</td></tr>
|
||||
</xsl:if>
|
||||
<xsl:template match="rapport">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@view = 'mdux_v_ins_qrc'">
|
||||
<xsl:comment>De generatie van QR-codes voor objecten</xsl:comment>
|
||||
|
||||
<xsl:variable name="p_rows" select="3"/>
|
||||
<xsl:variable name="p_cols" select="2"/>
|
||||
|
||||
<tr>
|
||||
<td colspan = "4">
|
||||
<br/>
|
||||
Beste collega,<br/><br/>
|
||||
In onderstaand onderzicht staan orders waarvan de uiterlijke leverdatum reeds verstreken is, maar waarvan de bestelling nog niet binnen geboekt is.<br/><br/>
|
||||
Om de factuur uiteindelijk betaalbaar te kunnen stellen, willen we u graag verzoeken de geleverde bestellingen in Facilitor (middels uw ‘Ontvang’ account) als ‘geleverd’ binnen te boeken in Facilitor.<br/><br/>
|
||||
Bedankt voor de medewerking,<br/><br/>
|
||||
Medux B.V.!!
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="20px">
|
||||
<td colspan="6"/>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="98%">
|
||||
<xsl:variable name="sortedall">
|
||||
<xsl:for-each select="rapport_data/data_row">
|
||||
<xsl:copy-of select="."/>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
<tr>
|
||||
<th width="20%" style="text-align:left">Ordernummer</th>
|
||||
<th width="20%" style="text-align:left">Besteller</th>
|
||||
<th width="15%" style="text-align:left">Besteldatum</th>
|
||||
<th width="15%" style="text-align:left">Geplande leverdatum</th>
|
||||
<th width="20%" style="text-align:left">Leverancier</th>
|
||||
<th width="10%" style="text-align:right">Totaal</th>
|
||||
</tr>
|
||||
|
||||
<xsl:for-each select="rapport_data/data_row">
|
||||
<tr>
|
||||
<td width="20%"><xsl:value-of select="ORDERNUMMER"/></td>
|
||||
<td width="20%"><xsl:value-of select="BESTELLER"/></td>
|
||||
<td width="15%"><xsl:value-of select="BESTELDATUM"/></td>
|
||||
<td width="15%"><xsl:value-of select="LEVERDATUM"/></td>
|
||||
<td width="20%"><xsl:value-of select="LEVERANCIER"/></td>
|
||||
<td width="10%" style="text-align:right"><xsl:value-of select="format-number(TOTAAL, '0,00', 'european')"/></td>
|
||||
</tr>
|
||||
<table border="0" width="100%" cellpadding="2">
|
||||
<tr height="200"><td align="center"><span style="font-size:24pt;color:#000000">QR Code</span></td></tr>
|
||||
<tr height="200"><td align="center"><span style="font-size:24pt;color:#000000">Generator</span></td></tr>
|
||||
<tr height="200"><td align="center"><span style="font-size:24pt;color:#000000">Objecten</span></td></tr>
|
||||
</table>
|
||||
|
||||
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
|
||||
<xsl:sort select="FCLT_F_GEBOUW"/>
|
||||
<xsl:sort select="PLAATS"/>
|
||||
<xsl:if test="position() mod ($p_rows * $p_cols) = 0">
|
||||
<div style="page-break-before:always"> </div>
|
||||
<xsl:comment>=== Na elke 2 records (2x1 passen op 1 A4) =====</xsl:comment>
|
||||
<xsl:call-template name="qrc_ins_new_page">
|
||||
<xsl:with-param name="p_page" select="floor(position() div ($p_rows * $p_cols))"/>
|
||||
<xsl:with-param name="p_rows" select="$p_rows"/>
|
||||
<xsl:with-param name="p_cols" select="$p_cols"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:if test="position() = last() and position() mod ($p_rows * $p_cols) != 0 ">
|
||||
<div style="page-break-before:always"> </div>
|
||||
<xsl:comment>=== De laatste paar, zijn minder dan 2 =====</xsl:comment>
|
||||
<xsl:call-template name="qrc_ins_new_page">
|
||||
<xsl:with-param name="p_page" select="floor((position() div ($p_rows * $p_cols))+1)"/>
|
||||
<xsl:with-param name="p_rows" select="$p_rows"/>
|
||||
<xsl:with-param name="p_cols" select="$p_cols"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<html>
|
||||
<xsl:if test="$srtnotificatiecode = 'CUST01'">
|
||||
<!-- <xsl:if test="@view = 'MDUX_V_RAP_BES_OPEN_LEV'"> -->
|
||||
<table width="100%" CLASS='DefResultsetTable'>
|
||||
<xsl:if test=" count(rapport_data/data_row) = 0">
|
||||
<tr><td>
|
||||
<center><b>Geen gegevens gevonden</b></center>
|
||||
</td></tr>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:for-each>
|
||||
<tr>
|
||||
<td colspan="6" style="text-align:right">
|
||||
<b>€ <xsl:value-of select="format-number(sum(msxml:node-set($sortedall)/data_row/TOTAAL), '0,00', 'european')"/></b>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:if>
|
||||
</html>
|
||||
</xsl:template>
|
||||
<tr>
|
||||
<td colspan = "4">
|
||||
<br/>
|
||||
Beste collega,<br/><br/>
|
||||
In onderstaand onderzicht staan orders waarvan de uiterlijke leverdatum reeds verstreken is, maar waarvan de bestelling nog niet binnen geboekt is.<br/><br/>
|
||||
Om de factuur uiteindelijk betaalbaar te kunnen stellen, willen we u graag verzoeken de geleverde bestellingen in Facilitor (middels uw ‘Ontvang’ account) als ‘geleverd’ binnen te boeken in Facilitor.<br/><br/>
|
||||
Bedankt voor de medewerking,<br/><br/>
|
||||
Medux B.V.!!
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="20px">
|
||||
<td colspan="6"/>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="98%">
|
||||
<xsl:variable name="sortedall">
|
||||
<xsl:for-each select="rapport_data/data_row">
|
||||
<xsl:copy-of select="."/>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
<tr>
|
||||
<th width="20%" style="text-align:left">Ordernummer</th>
|
||||
<th width="20%" style="text-align:left">Besteller</th>
|
||||
<th width="15%" style="text-align:left">Besteldatum</th>
|
||||
<th width="15%" style="text-align:left">Geplande leverdatum</th>
|
||||
<th width="20%" style="text-align:left">Leverancier</th>
|
||||
<th width="10%" style="text-align:right">Totaal</th>
|
||||
</tr>
|
||||
|
||||
<xsl:for-each select="rapport_data/data_row">
|
||||
<tr>
|
||||
<td width="20%"><xsl:value-of select="ORDERNUMMER"/></td>
|
||||
<td width="20%"><xsl:value-of select="BESTELLER"/></td>
|
||||
<td width="15%"><xsl:value-of select="BESTELDATUM"/></td>
|
||||
<td width="15%"><xsl:value-of select="LEVERDATUM"/></td>
|
||||
<td width="20%"><xsl:value-of select="LEVERANCIER"/></td>
|
||||
<td width="10%" style="text-align:right"><xsl:value-of select="format-number(TOTAAL, '0,00', 'european')"/></td>
|
||||
</tr>
|
||||
|
||||
</xsl:for-each>
|
||||
<tr>
|
||||
<td colspan="6" style="text-align:right">
|
||||
<b>€ <xsl:value-of select="format-number(sum(msxml:node-set($sortedall)/data_row/TOTAAL), '0,00', 'european')"/></b>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:if>
|
||||
</html>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="qrc_ins_new_page">
|
||||
<xsl:param name="p_page"/>
|
||||
<xsl:param name="p_rows"/>
|
||||
<xsl:param name="p_cols"/>
|
||||
<table>
|
||||
|
||||
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
|
||||
<xsl:sort select="FCLT_F_GEBOUW"/>
|
||||
<xsl:sort select="PLAATS"/>
|
||||
<xsl:if test="position() >= (($p_page - 1)*($p_rows*$p_cols)+1) and position() <= ($p_page*($p_rows*$p_cols))">
|
||||
<xsl:if test="(position() mod $p_cols) = 0">
|
||||
<xsl:comment>=== Na elke 1 records (1x1 passen op 1 regel) =====</xsl:comment>
|
||||
<xsl:call-template name="qrc_ins_new_tr">
|
||||
<xsl:with-param name="p_pos" select="position() - $p_cols + 1"/>
|
||||
<xsl:with-param name="p_cols" select="$p_cols"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:if test="(position() = last()) and (position() mod $p_cols) != 0">
|
||||
<xsl:comment>=== Na elke 1 records (1x1 passen op 1 regel) =====</xsl:comment>
|
||||
<xsl:call-template name="qrc_ins_new_tr">
|
||||
<xsl:with-param name="p_pos" select="floor(position() div $p_cols) * $p_cols + 1"/>
|
||||
<xsl:with-param name="p_cols" select="$p_cols"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="qrc_ins_new_tr">
|
||||
<xsl:param name="p_pos"/>
|
||||
<xsl:param name="p_cols"/>
|
||||
|
||||
<tr height="80px">
|
||||
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
|
||||
<xsl:sort select="FCLT_F_GEBOUW"/>
|
||||
<xsl:sort select="PLAATS"/>
|
||||
<xsl:if test="position() >= $p_pos and position() <= $p_pos + $p_cols - 1">
|
||||
<td width="25%" style="text-align:center">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="style">height: 5cm</xsl:attribute>
|
||||
<xsl:attribute name="src">
|
||||
../../appl/shared/qrcode.asp?size=16&text=%3Fu%3D<xsl:value-of select="HIDE_F_BOOKMARK_ID"/>%26ins_key%3D<xsl:value-of select="INS_DEEL_KEY"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element><br/>
|
||||
<xsl:comment><span style="font-size:7px"><xsl:value-of select="INS_DEEL_UPPER"/></span><br/></xsl:comment>
|
||||
<xsl:comment><span style="font-size:7px"><xsl:value-of select="INS_DEEL_KEY"/></span></xsl:comment>
|
||||
</td>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</tr>
|
||||
<tr height="80px">
|
||||
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
|
||||
<xsl:sort select="FCLT_F_GEBOUW"/>
|
||||
<xsl:sort select="PLAATS"/>
|
||||
<xsl:if test="position() >= $p_pos and position() <= $p_pos + $p_cols - 1">
|
||||
<td width="25%" style="text-align:center">
|
||||
<xsl:value-of select="FCLT_F_GEBOUW"/><br/>
|
||||
<xsl:value-of select="PLAATS"/><br/>
|
||||
<xsl:value-of select="INS_SRTDEEL_OMSCHRIJVING"/> - <xsl:value-of select="INS_DEEL_OMSCHRIJVING"/><br/>
|
||||
</td>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</tr>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
Reference in New Issue
Block a user