MDUX#41474 Afdrukken van QR codes voor de Zebra printer
svn path=/Website/branches/v2017.1/; revision=35031
This commit is contained in:
@@ -1608,7 +1608,7 @@
|
||||
|
||||
<xsl:template match="rapport">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@view = 'mdux_v_ins_qrc'">
|
||||
<!-- <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"/>
|
||||
@@ -1642,7 +1642,40 @@
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
</xsl:when> -->
|
||||
|
||||
<xsl:when test="@view ='mdux_v_ins_qrc'">
|
||||
|
||||
<html>
|
||||
|
||||
<xsl:variable name="p_rows" select="7"/>
|
||||
<xsl:variable name="p_cols" select="3"/>
|
||||
|
||||
<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">
|
||||
<xsl:comment>=== Na elke p_rows*p_cols records (m*n 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>
|
||||
<div style="page-break-after:always; margin:0;padding:0"> </div>
|
||||
</xsl:if>
|
||||
<xsl:if test="position() = last() and position() mod ($p_rows * $p_cols) != 0 ">
|
||||
<xsl:comment>=== De laatste paar, zijn minder dan m*n =====</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>
|
||||
|
||||
</html>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:otherwise>
|
||||
<html>
|
||||
<xsl:if test="$srtnotificatiecode = 'CUST01'">
|
||||
@@ -1741,8 +1774,7 @@
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="qrc_ins_new_tr">
|
||||
<!-- <xsl:template name="qrc_ins_new_tr">
|
||||
<xsl:param name="p_pos"/>
|
||||
<xsl:param name="p_cols"/>
|
||||
|
||||
@@ -1777,6 +1809,42 @@
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</tr>
|
||||
</xsl:template>
|
||||
</xsl:template> -->
|
||||
|
||||
<xsl:template name="qrc_ins_new_tr">
|
||||
<xsl:param name="p_pos"/>
|
||||
<xsl:param name="p_cols"/>
|
||||
|
||||
<tr>
|
||||
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
|
||||
<xsl:sort select="PLAATS"/>
|
||||
<xsl:if test="position() >= $p_pos and position() <= $p_pos + $p_cols - 1">
|
||||
<xsl:apply-templates select="." mode="qrc"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</tr>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="data_row" mode="qrc">
|
||||
<td> </td>
|
||||
<td style="text-align: left; vertical-align: top; margin:0;padding:0 height: 32mm ; width: 70mm">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="style">height: 20mm; width: 20mm; margin:0cm; padding:0; border: none </xsl:attribute>
|
||||
<xsl:attribute name="src">
|
||||
../../appl/shared/qrcode.asp?size=16&text=/%3Fu%3D<xsl:value-of select="HIDE_F_BOOKMARK_ID"/>%26k%3D<xsl:value-of select="ALG_RUIMTE_KEY"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</td>
|
||||
<td style="text-align:left; vertical-align: top; margin:0;padding:0; font-size: 8pt; font-weight: bold; height: 20mm ; width: 50mm">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="style">width: 15mm</xsl:attribute>
|
||||
<xsl:attribute name="src">
|
||||
../../cust/mdux/mdux_logo_qrc.png
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
<br/>
|
||||
<xsl:value-of select="INS_DEEL_UPPER"/>
|
||||
</td>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
Reference in New Issue
Block a user