Browse Source

Makro JR und Excel Korrektur #2

rpta_0.1_Release
Daniel Quathamer 12 months ago
parent
commit
7ea36c26a5
  1. 1
      src-modules/module/rpta/conf/includes.txt
  2. 11
      src-modules/module/rpta/schluesseltabellen/sx_stylesheets_einfuegen.sql
  3. 4
      superx/WEB-INF/reports/simple_table.jrtx
  4. 7
      superx/xml/rpta_assistent.xsl
  5. 118
      superx/xml/rpta_templates.xsl
  6. 15
      superx/xml/tabelle_jrxml_book_without_cover.xsl

1
src-modules/module/rpta/conf/includes.txt

@ -4,5 +4,6 @@ images/icons/magic.svg
WEB-INF/conf/edustore/db/module/rpta/schluesseltabellen/sx_stylesheets_einfuegen.sql WEB-INF/conf/edustore/db/module/rpta/schluesseltabellen/sx_stylesheets_einfuegen.sql
WEB-INF/reports/simple_table.jrtx WEB-INF/reports/simple_table.jrtx
xml/tabelle_jrxml_a4_quer.xsl xml/tabelle_jrxml_a4_quer.xsl
xml/tabelle_jrxml_book_without_cover.xsl
xml/rpta_templates.xsl xml/rpta_templates.xsl
xml/rpta_assistent.xsl xml/rpta_assistent.xsl

11
src-modules/module/rpta/schluesseltabellen/sx_stylesheets_einfuegen.sql

@ -17,17 +17,6 @@
"stylesheet_type":"XSL_JRXML", "stylesheet_type":"XSL_JRXML",
"jr_datasource":"RS" "jr_datasource":"RS"
}, },
{"filename":"tabelle_jrxml_book_without_cover.xsl",
"caption":"Booklet aus Makrobericht",
"description":"Makrobericht zu Excel-Tabellen",
"relation":"table",
"contenttype":"text/xml",
"is_generic":"1",
"toolbar_icon_filepath":"",
"usage_resultset_data":"T",
"stylesheet_type":"XSL_JRXML",
"jr_datasource":""
},
{"filename":"rpta_assistent.xsl", {"filename":"rpta_assistent.xsl",
"caption":"Berichtsassistent", "caption":"Berichtsassistent",
"description":"Export als formatierter Bericht", "description":"Export als formatierter Bericht",

4
superx/WEB-INF/reports/simple_table.jrtx

@ -8,6 +8,10 @@
<style name="LegendContent" style="Standard Bodytext" mode="Opaque" backcolor="#CCCCCC"> <style name="LegendContent" style="Standard Bodytext" mode="Opaque" backcolor="#CCCCCC">
<pen lineWidth="1.0" lineStyle="Solid" lineColor="#030000"/> <pen lineWidth="1.0" lineStyle="Solid" lineColor="#030000"/>
</style> </style>
<style name="HinweisContent" style="Standard Bodytext" mode="Opaque" backcolor="#ffffff">
<pen lineWidth="0.4" lineStyle="Solid" lineColor="#999999"/>
</style>
<!--<style name="TableRowDetail" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF" hTextAlign="Right" vTextAlign="Middle" isBlankWhenNull="true" fontName="{$font}" fontSize="8"> <!--<style name="TableRowDetail" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF" hTextAlign="Right" vTextAlign="Middle" isBlankWhenNull="true" fontName="{$font}" fontSize="8">
<box rightPadding="2"> <box rightPadding="2">
<pen lineColor="#FFFFFF"/> <pen lineColor="#FFFFFF"/>

7
superx/xml/rpta_assistent.xsl

@ -1166,12 +1166,13 @@ var platform='superx';
<div class="select is-small is-fullwidth is-focused"> <div class="select is-small is-fullwidth is-focused">
<select name="stylesheet"> <select name="stylesheet">
<option value="tabelle_jrxml_a4_quer.xsl" selected="selected">Tabelle wie angezeigt</option> <option value="tabelle_jrxml_a4_quer.xsl" selected="selected">Tabelle wie angezeigt</option>
<!--<option value="tabelle_jrxml_book_without_cover.xsl" >Tabellen wie angezeigt (Makro)</option>-->
</select> </select>
</div> </div>
</p> </p>
</div> </div>
<span class="info" onclick="window.open('https://super-ics.de/superx/doku/kern_modul/admin/f_Patcheinspielen.htm','_blank','directories=no,location=no,menubar=no,scrollbars=yes,resizable=yes,toolbar=no,width=800,height=660');"> <span class="info" onclick="window.open('http://www.superx-projekt.de/doku/rpta_modul/nutzung/f_Aufruf.htm','_blank','directories=no,location=no,menubar=no,scrollbars=yes,resizable=yes,toolbar=no,width=800,height=660');">
<figure class="image is-24x24"> <figure class="image is-24x24">
<img src="../images/information_grey_liberation.svg" /> <img src="../images/information_grey_liberation.svg" />
</figure> </figure>
@ -1200,7 +1201,7 @@ var platform='superx';
</p> </p>
</div> </div>
<span class="info" onclick="window.open('https://super-ics.de/superx/doku/kern_modul/admin/f_Patcheinspielen.htm','_blank','directories=no,location=no,menubar=no,scrollbars=yes,resizable=yes,toolbar=no,width=800,height=660');"> <span class="info" onclick="window.open('http://www.superx-projekt.de/doku/rpta_modul/nutzung/f_Aufruf.htm','_blank','directories=no,location=no,menubar=no,scrollbars=yes,resizable=yes,toolbar=no,width=800,height=660');">
<figure class="image is-24x24"> <figure class="image is-24x24">
<img src="../images/information_grey_liberation.svg" /> <img src="../images/information_grey_liberation.svg" />
</figure> </figure>
@ -1234,7 +1235,7 @@ var platform='superx';
</p> </p>
</div> </div>
<span class="info" onclick="window.open('https://super-ics.de/superx/doku/kern_modul/admin/f_Patcheinspielen.htm','_blank','directories=no,location=no,menubar=no,scrollbars=yes,resizable=yes,toolbar=no,width=800,height=660');"> <span class="info" onclick="window.open('http://www.superx-projekt.de/doku/rpta_modul/nutzung/f_Aufruf.htm','_blank','directories=no,location=no,menubar=no,scrollbars=yes,resizable=yes,toolbar=no,width=800,height=660');">
<figure class="image is-24x24"> <figure class="image is-24x24">
<img src="../images/information_grey_liberation.svg" /> <img src="../images/information_grey_liberation.svg" />
</figure> </figure>

118
superx/xml/rpta_templates.xsl

@ -11,6 +11,7 @@ xmlns="http://jasperreports.sourceforge.net/jasperreports">
<xsl:param name="seitenbreite" select="842" /> <xsl:param name="seitenbreite" select="842" />
<xsl:param name="seitenhoehe" select="595" /> <xsl:param name="seitenhoehe" select="595" />
<xsl:param name="seitenrand" select="12" /> <xsl:param name="seitenrand" select="12" />
<xsl:param name="bottomMargin" select="12" />
<xsl:param name="isIgnorePagination" select="'true'" /> <xsl:param name="isIgnorePagination" select="'true'" />
<xsl:param name="orientation" select="'Landscape'" /> <xsl:param name="orientation" select="'Landscape'" />
<xsl:param name="stylesFile" select="'simple_table.jrtx'" /> <xsl:param name="stylesFile" select="'simple_table.jrtx'" />
@ -32,7 +33,7 @@ columnWidth="{$druckbreite}"
leftMargin="{$seitenrand}" leftMargin="{$seitenrand}"
rightMargin="{$seitenrand}" rightMargin="{$seitenrand}"
topMargin="{$seitenrand}" topMargin="{$seitenrand}"
bottomMargin="{$seitenrand}" bottomMargin="{$bottomMargin}"
isIgnorePagination="{$isIgnorePagination}" > isIgnorePagination="{$isIgnorePagination}" >
<xsl:call-template name="jr_properties" /> <xsl:call-template name="jr_properties" />
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="pageHeader"/> <property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="pageHeader"/>
@ -87,21 +88,25 @@ isIgnorePagination="{$isIgnorePagination}" >
</xsl:variable> </xsl:variable>
<band height="{$std_zeilenhoehe_tablerow}" splitType="Stretch"> <band height="{$std_zeilenhoehe_tablerow}" splitType="Stretch">
<xsl:variable name="colCount"><xsl:value-of select="count(sqlerg/headers/header[not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next')) ])"/></xsl:variable>
<xsl:for-each select="sqlerg/headers/header[not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next')) ]"> <xsl:for-each select="sqlerg/headers/header[not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next')) ]">
<xsl:variable name="columnWidth"> <xsl:variable name="columnX">
<xsl:call-template name="getColumnwidth"> <xsl:call-template name="getColumnX">
<xsl:with-param name="druckbreite" select="$druckbreite"/> <xsl:with-param name="druckbreite" select="$druckbreite"/>
<xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/> <xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/>
<xsl:with-param name="ergebniselementOrdnr" select="$ergebniselementOrdnr"/> <xsl:with-param name="ergebniselementOrdnr" select="$ergebniselementOrdnr"/>
<xsl:with-param name="colId" select="@id" /> <xsl:with-param name="colId" select="@id" />
<xsl:with-param name="colCount" select="$colCount"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="columnX"> <xsl:variable name="columnWidth">
<xsl:call-template name="getColumnX"> <xsl:call-template name="getColumnwidth">
<xsl:with-param name="druckbreite" select="$druckbreite"/> <xsl:with-param name="druckbreite" select="$druckbreite"/>
<xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/> <xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/>
<xsl:with-param name="ergebniselementOrdnr" select="$ergebniselementOrdnr"/> <xsl:with-param name="ergebniselementOrdnr" select="$ergebniselementOrdnr"/>
<xsl:with-param name="colId" select="@id" /> <xsl:with-param name="colId" select="@id" />
<xsl:with-param name="colCount" select="$colCount"/>
<xsl:with-param name="previousX" select="$columnX"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:choose> <xsl:choose>
@ -386,6 +391,7 @@ isIgnorePagination="{$isIgnorePagination}" >
<xsl:param name="std_spaltenbreite"/> <xsl:param name="std_spaltenbreite"/>
<xsl:param name="ergebniselementOrdnr" /> <xsl:param name="ergebniselementOrdnr" />
<xsl:param name="colId" /> <xsl:param name="colId" />
<xsl:param name="colCount" />
<xsl:variable name="x"><xsl:text>0</xsl:text> <xsl:variable name="x"><xsl:text>0</xsl:text>
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement[@ordnr=$ergebniselementOrdnr]/sqlerg/headers/header[ @width &gt; 0 and not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next')) and @id &lt; $colId ]"> <xsl:for-each select="/ergebnisse/ergebnis/ergebniselement[@ordnr=$ergebniselementOrdnr]/sqlerg/headers/header[ @width &gt; 0 and not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next')) and @id &lt; $colId ]">
<xsl:variable name="previousColumnWidth"> <xsl:variable name="previousColumnWidth">
@ -394,6 +400,9 @@ isIgnorePagination="{$isIgnorePagination}" >
<xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/> <xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/>
<xsl:with-param name="ergebniselementOrdnr" select="$ergebniselementOrdnr"/> <xsl:with-param name="ergebniselementOrdnr" select="$ergebniselementOrdnr"/>
<xsl:with-param name="colId" select="@id" /> <xsl:with-param name="colId" select="@id" />
<xsl:with-param name="colCount" select="$colCount"/>
<xsl:with-param name="previousX" select="0"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:text>+</xsl:text><xsl:value-of select ="$previousColumnWidth" /> <xsl:text>+</xsl:text><xsl:value-of select ="$previousColumnWidth" />
@ -410,11 +419,17 @@ isIgnorePagination="{$isIgnorePagination}" >
<xsl:param name="std_spaltenbreite" /> <xsl:param name="std_spaltenbreite" />
<xsl:param name="ergebniselementOrdnr" /> <xsl:param name="ergebniselementOrdnr" />
<xsl:param name="colId" /> <xsl:param name="colId" />
<xsl:param name="colCount" />
<xsl:param name="previousX" />
<xsl:variable name="defbreite"><xsl:value-of select="sum(/ergebnisse/ergebnis/ergebniselement[@ordnr=$ergebniselementOrdnr]/sqlerg/headers/header[ @width &gt; 0 and not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next')) ]/@width )" /></xsl:variable> <xsl:variable name="defbreite"><xsl:value-of select="sum(/ergebnisse/ergebnis/ergebniselement[@ordnr=$ergebniselementOrdnr]/sqlerg/headers/header[ @width &gt; 0 and not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next')) ]/@width )" /></xsl:variable>
<xsl:variable name="ndefbreite"><xsl:value-of select="count(/ergebnisse/ergebnis/ergebniselement[@ordnr=$ergebniselementOrdnr]/sqlerg/headers/header[ @width = '' and not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next'))])" /></xsl:variable> <xsl:variable name="ndefbreite"><xsl:value-of select="count(/ergebnisse/ergebnis/ergebniselement[@ordnr=$ergebniselementOrdnr]/sqlerg/headers/header[ @width = '' and not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next'))])" /></xsl:variable>
<xsl:variable name="gesamtbreite"><xsl:value-of select="$defbreite+($ndefbreite* $std_spaltenbreite)" /></xsl:variable> <xsl:variable name="gesamtbreite"><xsl:value-of select="$defbreite+($ndefbreite* $std_spaltenbreite)" /></xsl:variable>
<xsl:variable name="width"><xsl:value-of select="/ergebnisse/ergebnis/ergebniselement[@ordnr=$ergebniselementOrdnr]/sqlerg/headers/header[@id=$colId]/@width"/></xsl:variable> <xsl:variable name="width"><xsl:value-of select="/ergebnisse/ergebnis/ergebniselement[@ordnr=$ergebniselementOrdnr]/sqlerg/headers/header[@id=$colId]/@width"/></xsl:variable>
<xsl:choose> <xsl:choose>
<xsl:when test="($colCount - 1)=$colId">
<!-- letzte Spalte -->
<xsl:value-of select="$druckbreite - $previousX"/>
</xsl:when>
<xsl:when test="$width != ''"> <xsl:when test="$width != ''">
<xsl:variable name="spbreite"><xsl:value-of select="$druckbreite*($width div $gesamtbreite)" /> <xsl:variable name="spbreite"><xsl:value-of select="$druckbreite*($width div $gesamtbreite)" />
</xsl:variable> </xsl:variable>
@ -552,29 +567,35 @@ isIgnorePagination="{$isIgnorePagination}" >
<xsl:choose> <xsl:choose>
<xsl:when test="sqlerg/headers/@hasAggregationHeaders='true'" > <xsl:when test="sqlerg/headers/@hasAggregationHeaders='true'" >
<!-- verschachtelter Header --> <!-- verschachtelter Header -->
<xsl:variable name="colCount"><xsl:value-of select="count(sqlerg/aggregationHeaders/tr)"/></xsl:variable>
<xsl:for-each select="sqlerg/aggregationHeaders/tr"> <xsl:for-each select="sqlerg/aggregationHeaders/tr">
<xsl:variable name="rowCounter" select="position()-1" /> <xsl:variable name="rowCounter" select="position()-1" />
<xsl:for-each select="th" > <xsl:for-each select="th" >
<xsl:variable name="colId"><xsl:value-of select="position()-1" /></xsl:variable> <xsl:variable name="colId"><xsl:value-of select="position()-1" /></xsl:variable>
<xsl:if test="@isHidden='false'"> <xsl:if test="@isHidden='false'">
<xsl:comment><xsl:text>colId=</xsl:text><xsl:value-of select="$colId"/></xsl:comment> <xsl:comment><xsl:text>colId=</xsl:text><xsl:value-of select="$colId"/></xsl:comment>
<xsl:variable name="columnX">
<xsl:variable name="columnWidth"> <xsl:call-template name="getColumnX">
<xsl:call-template name="getColumnwidth">
<xsl:with-param name="druckbreite" select="$druckbreite"/> <xsl:with-param name="druckbreite" select="$druckbreite"/>
<xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/> <xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/>
<xsl:with-param name="ergebniselementOrdnr" select="$ordnr"/> <xsl:with-param name="ergebniselementOrdnr" select="$ordnr"/>
<xsl:with-param name="colId" select="$colId" /> <xsl:with-param name="colId" select="$colId" />
<xsl:with-param name="colCount" select="$colCount"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="columnX"> <xsl:variable name="columnWidth">
<xsl:call-template name="getColumnX"> <xsl:call-template name="getColumnwidth">
<xsl:with-param name="druckbreite" select="$druckbreite"/> <xsl:with-param name="druckbreite" select="$druckbreite"/>
<xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/> <xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/>
<xsl:with-param name="ergebniselementOrdnr" select="$ordnr"/> <xsl:with-param name="ergebniselementOrdnr" select="$ordnr"/>
<xsl:with-param name="colId" select="$colId" /> <xsl:with-param name="colId" select="$colId" />
<xsl:with-param name="colCount" select="$colCount"/>
<xsl:with-param name="previousX" select="$columnX"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="rowspan"> <xsl:variable name="rowspan">
<xsl:choose> <xsl:choose>
<xsl:when test="@rowspan &gt;1"> <xsl:when test="@rowspan &gt;1">
@ -595,40 +616,62 @@ isIgnorePagination="{$isIgnorePagination}" >
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<staticText> <textField isStretchWithOverflow="true">
<reportElement positionType="Float" style="TableColumnHeader" mode="Opaque" x="{$columnX}" y="{$y_offset+( $rowCounter * $zeilenhoehe )}" width="{$columnWidth * $colspan}" height="{$zeilenhoehe*$rowspan}" />
<text><xsl:call-template name="getColHeaderText"> <reportElement positionType="Float" style="TableColumnHeader" mode="Opaque" stretchType="ContainerHeight"
<xsl:with-param name="header_wert" select="." /></xsl:call-template></text> x="{$columnX}" y="{$y_offset+( $rowCounter * $zeilenhoehe )}" width="{$columnWidth * $colspan}" height="{$zeilenhoehe*$rowspan}" />
</staticText> <textFieldExpression><xsl:text>"</xsl:text>
<xsl:call-template name="newline_to_backslash_n">
<xsl:with-param name="string" select="."/>
</xsl:call-template>
<xsl:text>"</xsl:text>
</textFieldExpression>
</textField>
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
</xsl:for-each> </xsl:for-each>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:variable name="colCount"><xsl:value-of select="count(sqlerg/headers/header[not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next')) ])"/></xsl:variable>
<xsl:for-each select="sqlerg/headers/header[not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next')) ]"> <xsl:for-each select="sqlerg/headers/header[not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next')) ]">
<xsl:variable name="columnWidth"> <xsl:variable name="columnX">
<xsl:call-template name="getColumnwidth"> <xsl:call-template name="getColumnX">
<xsl:with-param name="druckbreite" select="$druckbreite"/> <xsl:with-param name="druckbreite" select="$druckbreite"/>
<xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/> <xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/>
<xsl:with-param name="ergebniselementOrdnr" select="$ordnr"/> <xsl:with-param name="ergebniselementOrdnr" select="$ordnr"/>
<xsl:with-param name="colId" select="@id" /> <xsl:with-param name="colId" select="@id" />
<xsl:with-param name="colCount" select="$colCount"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="columnX"> <xsl:variable name="columnWidth">
<xsl:call-template name="getColumnX"> <xsl:call-template name="getColumnwidth">
<xsl:with-param name="druckbreite" select="$druckbreite"/> <xsl:with-param name="druckbreite" select="$druckbreite"/>
<xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/> <xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite"/>
<xsl:with-param name="ergebniselementOrdnr" select="$ordnr"/> <xsl:with-param name="ergebniselementOrdnr" select="$ordnr"/>
<xsl:with-param name="colId" select="@id" /> <xsl:with-param name="colId" select="@id" />
<xsl:with-param name="colCount" select="$colCount"/>
<xsl:with-param name="previousX" select="$columnX"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<staticText> <textField isStretchWithOverflow="true">
<reportElement style="TableColumnHeader" mode="Opaque" x="{$columnX}" y="{$y_offset}" width="{$columnWidth}" height="{$zeilenhoehe}" />
<text><xsl:call-template name="getColHeaderText"> <reportElement positionType="Float" style="TableColumnHeader" mode="Opaque" stretchType="ContainerHeight"
<xsl:with-param name="header_wert" select="wert" /></xsl:call-template></text> x="{$columnX}" y="{$y_offset}" width="{$columnWidth}" height="{$zeilenhoehe}" />
</staticText> <textFieldExpression><xsl:text>"</xsl:text><!--<xsl:call-template name="getColHeaderText">
<xsl:with-param name="header_wert" select="." /></xsl:call-template>-->
<xsl:call-template name="newline_to_backslash_n">
<xsl:with-param name="string" select="wert"/>
</xsl:call-template>
<xsl:text>"</xsl:text>
</textFieldExpression>
</textField>
</xsl:for-each> </xsl:for-each>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
@ -675,6 +718,7 @@ isIgnorePagination="{$isIgnorePagination}" >
<groupExpression><![CDATA[$V{tabellennr}]]></groupExpression> <groupExpression><![CDATA[$V{tabellennr}]]></groupExpression>
<groupHeader> <groupHeader>
<band height="{$legendLabelHeight+$legendContentHeight + $subReportTitleHeight}"> <band height="{$legendLabelHeight+$legendContentHeight + $subReportTitleHeight}">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.spreadsheet.SpreadsheetLayout"/>
<!--subReportTitle--> <!--subReportTitle-->
<xsl:if test="$isMacroReport = 'true'"> <xsl:if test="$isMacroReport = 'true'">
<textField> <textField>
@ -685,7 +729,9 @@ isIgnorePagination="{$isIgnorePagination}" >
<!--Legende --> <!--Legende -->
<textField> <textField>
<reportElement style="LegendLabel" x="0" y="{$subReportTitleHeight}" width="{$druckbreite}" height="{$legendLabelHeight}" /> <reportElement style="LegendLabel" x="0" y="{$subReportTitleHeight}" width="{$druckbreite}" height="{$legendLabelHeight}" />
<textElement verticalAlignment="Bottom"/> <textElement verticalAlignment="Bottom">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Filterkriterien: "]]></textFieldExpression> <textFieldExpression><![CDATA["Filterkriterien: "]]></textFieldExpression>
</textField> </textField>
@ -700,18 +746,17 @@ isIgnorePagination="{$isIgnorePagination}" >
</textField> </textField>
</band> </band>
<band height="{$hinweisContentHeight}"> <band height="{$hinweisContentHeight}">
<printWhenExpression><![CDATA[$F{Hinweis}!=""]]></printWhenExpression> <printWhenExpression><![CDATA[$F{Hinweis}.length() >0]]></printWhenExpression>
<!-- hinweis--> <!-- hinweis-->
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement style="HinweisContent" positionType="Float" isPrintWhenDetailOverflows="true" x="0" y="0" width="{$druckbreite}" height="{$hinweisContentHeight}" /> <reportElement style="HinweisContent" positionType="Float" isPrintWhenDetailOverflows="true" x="0" y="0" width="{$druckbreite}" height="{$hinweisContentHeight}" />
<box padding="5"/>
<textElement verticalAlignment="Middle"/> <textElement verticalAlignment="Middle"/>
<textFieldExpression> <textFieldExpression>
<xsl:text disable-output-escaping="yes"><![CDATA[$F{Hinweis}]]></xsl:text></textFieldExpression> <xsl:text disable-output-escaping="yes"><![CDATA[$F{Hinweis}]]></xsl:text></textFieldExpression>
</textField> </textField>
</band> </band>
<!--nun Spaltenüberschriften--> <!--nun Spaltenüberschriften-->
<band> <band splitType="Stretch">
<xsl:attribute name="height"> <xsl:attribute name="height">
<xsl:call-template name="getZeilenhoeheTableHeader"> <xsl:call-template name="getZeilenhoeheTableHeader">
<xsl:with-param name="ordnr" select="$ergebniselementOrdnr" /> <xsl:with-param name="ordnr" select="$ergebniselementOrdnr" />
@ -931,4 +976,19 @@ isIgnorePagination="{$isIgnorePagination}" >
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template name="newline_to_backslash_n">
<xsl:param name="string"/>
<xsl:choose>
<xsl:when test="contains($string,'&#10;')">
<xsl:value-of select="substring-before($string,'&#10;')"/>
<xsl:text>\n</xsl:text>
<xsl:call-template name="newline_to_backslash_n">
<xsl:with-param name="string" select="substring-after($string,'&#10;')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$string"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

15
superx/xml/tabelle_jrxml_book_without_cover.xsl

@ -10,6 +10,7 @@ xmlns="http://jasperreports.sourceforge.net/jasperreports"
<xsl:param name="seitenbreite" select="842" /> <xsl:param name="seitenbreite" select="842" />
<xsl:param name="seitenhoehe" select="595" /> <xsl:param name="seitenhoehe" select="595" />
<xsl:param name="seitenrand" select="12" /> <xsl:param name="seitenrand" select="12" />
<xsl:param name="bottomMargin" select="0" />
<xsl:param name="isIgnorePagination" select="'true'" /> <xsl:param name="isIgnorePagination" select="'true'" />
<xsl:param name="orientation" select="'Landscape'" /> <xsl:param name="orientation" select="'Landscape'" />
<xsl:param name="stylesFile" select="'simple_table.jrtx'" /> <xsl:param name="stylesFile" select="'simple_table.jrtx'" />
@ -35,6 +36,7 @@ xmlns="http://jasperreports.sourceforge.net/jasperreports"
<xsl:with-param name="druckbreite" select="$druckbreite" /> <xsl:with-param name="druckbreite" select="$druckbreite" />
<xsl:with-param name="std_zeilenhoehe_tablerow" select="$std_zeilenhoehe_tablerow" /> <xsl:with-param name="std_zeilenhoehe_tablerow" select="$std_zeilenhoehe_tablerow" />
<xsl:with-param name="stylesFile" select="$stylesFile" /> <xsl:with-param name="stylesFile" select="$stylesFile" />
<xsl:with-param name="bottomMargin" select="$bottomMargin" />
</xsl:call-template> </xsl:call-template>
<!--output documents klappt noch nicht--> <!--output documents klappt noch nicht-->
<!-- <!--
@ -60,6 +62,7 @@ Generiere <xsl:value-of select="$filename"/><xsl:text>
<xsl:with-param name="druckbreite" select="$druckbreite" /> <xsl:with-param name="druckbreite" select="$druckbreite" />
<xsl:with-param name="std_zeilenhoehe_tablerow" select="$std_zeilenhoehe_tablerow" /> <xsl:with-param name="std_zeilenhoehe_tablerow" select="$std_zeilenhoehe_tablerow" />
<xsl:with-param name="stylesFile" select="$stylesFile" /> <xsl:with-param name="stylesFile" select="$stylesFile" />
<xsl:with-param name="bottomMargin" select="$bottomMargin" />
</xsl:call-template> </xsl:call-template>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
@ -72,6 +75,7 @@ Generiere <xsl:value-of select="$filename"/><xsl:text>
<xsl:param name="seitenbreite" select="842" /> <xsl:param name="seitenbreite" select="842" />
<xsl:param name="seitenhoehe" select="595" /> <xsl:param name="seitenhoehe" select="595" />
<xsl:param name="seitenrand" select="12" /> <xsl:param name="seitenrand" select="12" />
<xsl:param name="bottomMargin" select="12" />
<xsl:param name="isIgnorePagination" select="'true'" /> <xsl:param name="isIgnorePagination" select="'true'" />
<xsl:param name="orientation" select="'Landscape'" /> <xsl:param name="orientation" select="'Landscape'" />
<xsl:param name="stylesFile" select="'simple_table.jrtx'" /> <xsl:param name="stylesFile" select="'simple_table.jrtx'" />
@ -92,7 +96,7 @@ columnWidth="{$druckbreite}"
leftMargin="{$seitenrand}" leftMargin="{$seitenrand}"
rightMargin="{$seitenrand}" rightMargin="{$seitenrand}"
topMargin="{$seitenrand}" topMargin="{$seitenrand}"
bottomMargin="{$seitenrand}" bottomMargin="{$bottomMargin}"
isIgnorePagination="{$isIgnorePagination}" isIgnorePagination="{$isIgnorePagination}"
sectionType="Part"> sectionType="Part">
<xsl:call-template name="jr_properties" /> <xsl:call-template name="jr_properties" />
@ -155,6 +159,8 @@ sectionType="Part">
<xsl:with-param name="ergebniselementOrdnr" select="@ordnr" /> <xsl:with-param name="ergebniselementOrdnr" select="@ordnr" />
<xsl:with-param name="druckbreite" select="$druckbreite" /> <xsl:with-param name="druckbreite" select="$druckbreite" />
<xsl:with-param name="std_zeilenhoehe_tablerow" select="$std_zeilenhoehe_tablerow" /> <xsl:with-param name="std_zeilenhoehe_tablerow" select="$std_zeilenhoehe_tablerow" />
<xsl:with-param name="stylesFile" select="$stylesFile" />
<xsl:with-param name="bottomMargin" select="$bottomMargin" />
</xsl:call-template> </xsl:call-template>
</xsl:result-document> </xsl:result-document>
</xsl:for-each> </xsl:for-each>
@ -169,7 +175,7 @@ sectionType="Part">
<xsl:when test="$ergebniselementOrdnr=0"> <xsl:when test="$ergebniselementOrdnr=0">
<style name="TableRowDetail" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF" hTextAlign="Right" vTextAlign="Middle" isBlankWhenNull="true" fontName="Liberation Sans" fontSize="8"> <style name="TableRowDetail" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF" hTextAlign="Right" vTextAlign="Middle" isBlankWhenNull="true" fontName="Liberation Sans" fontSize="8">
<box rightPadding="2"> <box rightPadding="2">
<pen lineColor="#FFFFFF"/> <pen lineWidth="0.4" lineColor="#999999"/>
</box> </box>
<paragraph leftIndent="2" rightIndent="1" spacingBefore="0" spacingAfter="0"/> <paragraph leftIndent="2" rightIndent="1" spacingBefore="0" spacingAfter="0"/>
<conditionalStyle> <conditionalStyle>
@ -186,7 +192,7 @@ sectionType="Part">
<xsl:if test="$flavorTableRowStyle='listAlternatingBg'"> <xsl:if test="$flavorTableRowStyle='listAlternatingBg'">
<style name="TableRowDetail" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF" hTextAlign="Right" vTextAlign="Middle" isBlankWhenNull="true" fontName="{$font}" fontSize="8"> <style name="TableRowDetail" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF" hTextAlign="Right" vTextAlign="Middle" isBlankWhenNull="true" fontName="{$font}" fontSize="8">
<box rightPadding="2"> <box rightPadding="2">
<pen lineColor="#FFFFFF"/> <pen lineWidth="0.4" lineColor="#00C1D4"/>
</box> </box>
<paragraph leftIndent="2" rightIndent="1" spacingBefore="0" spacingAfter="0"/> <paragraph leftIndent="2" rightIndent="1" spacingBefore="0" spacingAfter="0"/>
<conditionalStyle> <conditionalStyle>
@ -198,5 +204,6 @@ sectionType="Part">
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template>--> </xsl:template>
-->
</xsl:stylesheet> </xsl:stylesheet>

Loading…
Cancel
Save