|
|
@ -14,7 +14,7 @@ xmlns="http://jasperreports.sourceforge.net/jasperreports"> |
|
|
|
<xsl:param name="seitenrand" select="12" /> |
|
|
|
<xsl:param name="seitenrand" select="12" /> |
|
|
|
<xsl:param name="topMargin" select="12" /> |
|
|
|
<xsl:param name="topMargin" select="12" /> |
|
|
|
<xsl:param name="bottomMargin" select="12" /> |
|
|
|
<xsl:param name="bottomMargin" select="12" /> |
|
|
|
<xsl:param name="isIgnorePagination" select="'true'" /> |
|
|
|
<xsl:param name="isIgnorePagination" select="'false'" /> |
|
|
|
<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'" /> |
|
|
|
<xsl:param name="font" select="'Liberation Sans'" /><!--TODO Arial als style--> |
|
|
|
<xsl:param name="font" select="'Liberation Sans'" /><!--TODO Arial als style--> |
|
|
@ -23,7 +23,20 @@ xmlns="http://jasperreports.sourceforge.net/jasperreports"> |
|
|
|
<xsl:param name="std_spaltenbreite" select="'12'" /> |
|
|
|
<xsl:param name="std_spaltenbreite" select="'12'" /> |
|
|
|
<xsl:param name="std_zeilenhoehe_header" select="30" /> |
|
|
|
<xsl:param name="std_zeilenhoehe_header" select="30" /> |
|
|
|
<xsl:param name="std_zeilenhoehe_tablerow" select="25" /> |
|
|
|
<xsl:param name="std_zeilenhoehe_tablerow" select="25" /> |
|
|
|
|
|
|
|
<xsl:param name="RPTContentype" /> |
|
|
|
|
|
|
|
|
|
|
|
<xsl:variable name="isMacroReport" select="/ergebnisse/@isMakro" /> |
|
|
|
<xsl:variable name="isMacroReport" select="/ergebnisse/@isMakro" /> |
|
|
|
|
|
|
|
<!-- bei Excel Erzeugung wird Paginierung ausgeschaltet:--> |
|
|
|
|
|
|
|
<xsl:variable name="runTimePagination"> |
|
|
|
|
|
|
|
<xsl:choose> |
|
|
|
|
|
|
|
<xsl:when test="$RPTContentype='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'"> |
|
|
|
|
|
|
|
<xsl:text>true</xsl:text> |
|
|
|
|
|
|
|
</xsl:when> |
|
|
|
|
|
|
|
<xsl:otherwise> |
|
|
|
|
|
|
|
<xsl:value-of select="$isIgnorePagination" /> |
|
|
|
|
|
|
|
</xsl:otherwise> |
|
|
|
|
|
|
|
</xsl:choose> |
|
|
|
|
|
|
|
</xsl:variable> |
|
|
|
|
|
|
|
|
|
|
|
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" |
|
|
|
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" |
|
|
|
name="{/ergebnisse/ergebnis[@ordnr=$ergebniselementOrdnr]/maskenname}" |
|
|
|
name="{/ergebnisse/ergebnis[@ordnr=$ergebniselementOrdnr]/maskenname}" |
|
|
@ -36,12 +49,9 @@ leftMargin="{$seitenrand}" |
|
|
|
rightMargin="{$seitenrand}" |
|
|
|
rightMargin="{$seitenrand}" |
|
|
|
topMargin="{$topMargin}" |
|
|
|
topMargin="{$topMargin}" |
|
|
|
bottomMargin="{$bottomMargin}" |
|
|
|
bottomMargin="{$bottomMargin}" |
|
|
|
isIgnorePagination="{$isIgnorePagination}" > |
|
|
|
isIgnorePagination="{$runTimePagination}" > |
|
|
|
<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.2" value="pageFooter"/> |
|
|
|
|
|
|
|
<property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.1" value="pageHeader"/> |
|
|
|
|
|
|
|
<property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.2" value="pageFooter"/> |
|
|
|
|
|
|
|
<!-- zum Testen--> |
|
|
|
<!-- zum Testen--> |
|
|
|
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="TUHH_kennz_bericht_ba"/> |
|
|
|
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="TUHH_kennz_bericht_ba"/> |
|
|
|
<!--<property name="com.jaspersoft.studio.property.dataset.dialog.DatasetDialog.sash.w1" value="466"/> |
|
|
|
<!--<property name="com.jaspersoft.studio.property.dataset.dialog.DatasetDialog.sash.w1" value="466"/> |
|
|
@ -160,6 +170,10 @@ isIgnorePagination="{$isIgnorePagination}" > |
|
|
|
</xsl:for-each> |
|
|
|
</xsl:for-each> |
|
|
|
</detail> |
|
|
|
</detail> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:call-template name="pageFooter"> |
|
|
|
|
|
|
|
<xsl:with-param name="seitenbreite" select="$seitenbreite" /> |
|
|
|
|
|
|
|
</xsl:call-template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</jasperReport> |
|
|
|
</jasperReport> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
@ -180,6 +194,13 @@ isIgnorePagination="{$isIgnorePagination}" > |
|
|
|
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/> |
|
|
|
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/> |
|
|
|
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/> |
|
|
|
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/> |
|
|
|
<property name="net.sf.jasperreports.print.create.bookmarks" value="true"/> |
|
|
|
<property name="net.sf.jasperreports.print.create.bookmarks" value="true"/> |
|
|
|
|
|
|
|
<!-- bei Excel Seitenkopf und Fuss unterdrücken: --> |
|
|
|
|
|
|
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="pageHeader"/> |
|
|
|
|
|
|
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageFooter"/> |
|
|
|
|
|
|
|
<property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.1" value="pageHeader"/> |
|
|
|
|
|
|
|
<property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.2" value="pageFooter"/> |
|
|
|
|
|
|
|
<property name="net.sf.jasperreports.export.xlsx.remove.empty.space.between.columns" value="true"/> |
|
|
|
|
|
|
|
<property name="net.sf.jasperreports.export.xlsx.remove.empty.space.between.rows" value="true"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
@ -1152,5 +1173,51 @@ d.h. genau ein "+" bedeutet, dass es die letzte Spalte ist. |
|
|
|
</xsl:if> |
|
|
|
</xsl:if> |
|
|
|
</xsl:for-each> |
|
|
|
</xsl:for-each> |
|
|
|
</xsl:template> |
|
|
|
</xsl:template> |
|
|
|
|
|
|
|
<xsl:template name="pageFooter"> |
|
|
|
|
|
|
|
<xsl:param name="seitenbreite" select="842" /> |
|
|
|
|
|
|
|
<pageFooter> |
|
|
|
|
|
|
|
<band height="15"> |
|
|
|
|
|
|
|
<staticText> |
|
|
|
|
|
|
|
<reportElement mode="Transparent" x="0" y="3" width="89" height="12" forecolor="#000000" backcolor="#FFFFFF"/> |
|
|
|
|
|
|
|
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> |
|
|
|
|
|
|
|
<font fontName="Liberation Sans" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Liberation Sans" pdfEncoding="Cp1252" isPdfEmbedded="false"/> |
|
|
|
|
|
|
|
</textElement> |
|
|
|
|
|
|
|
<text><xsl:text><![CDATA[Erzeugungsdatum:]]></xsl:text></text> |
|
|
|
|
|
|
|
</staticText> |
|
|
|
|
|
|
|
<textField pattern="dd.MM.yyyy"> |
|
|
|
|
|
|
|
<reportElement mode="Transparent" x="89" y="3" width="96" height="12" forecolor="#000000" backcolor="#FFFFFF"/> |
|
|
|
|
|
|
|
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"> |
|
|
|
|
|
|
|
<font fontName="Liberation Sans" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Liberation Sans" pdfEncoding="Cp1252" isPdfEmbedded="false"/> |
|
|
|
|
|
|
|
</textElement> |
|
|
|
|
|
|
|
<textFieldExpression class="java.util.Date"><xsl:text><![CDATA[new java.util.Date()]]></xsl:text></textFieldExpression> |
|
|
|
|
|
|
|
</textField> |
|
|
|
|
|
|
|
<textField evaluationTime="Report" isBlankWhenNull="false"> |
|
|
|
|
|
|
|
<reportElement key="textField" x="{$seitenbreite - 69 }" y="3" width="39" height="12"/> |
|
|
|
|
|
|
|
<box> |
|
|
|
|
|
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> |
|
|
|
|
|
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> |
|
|
|
|
|
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> |
|
|
|
|
|
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> |
|
|
|
|
|
|
|
</box> |
|
|
|
|
|
|
|
<textElement> |
|
|
|
|
|
|
|
<font fontName="Liberation Sans" size="10"/> |
|
|
|
|
|
|
|
</textElement> |
|
|
|
|
|
|
|
<textFieldExpression class="java.lang.String"><xsl:text><![CDATA["" + $V{PAGE_NUMBER} + ""]]></xsl:text></textFieldExpression> |
|
|
|
|
|
|
|
</textField> |
|
|
|
|
|
|
|
<textField isBlankWhenNull="false"> |
|
|
|
|
|
|
|
<reportElement key="textField" x="{$seitenbreite - 166 }" y="3" width="94" height="12"/> |
|
|
|
|
|
|
|
<box> |
|
|
|
|
|
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> |
|
|
|
|
|
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> |
|
|
|
|
|
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> |
|
|
|
|
|
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> |
|
|
|
|
|
|
|
</box> |
|
|
|
|
|
|
|
<textElement textAlignment="Right"> |
|
|
|
|
|
|
|
<font fontName="Liberation Sans" size="10"/> |
|
|
|
|
|
|
|
</textElement> |
|
|
|
|
|
|
|
<textFieldExpression class="java.lang.String"><xsl:text><![CDATA["Seite " + $V{PAGE_NUMBER} + " von "]]></xsl:text></textFieldExpression> |
|
|
|
|
|
|
|
</textField> |
|
|
|
|
|
|
|
</band> |
|
|
|
|
|
|
|
</pageFooter> |
|
|
|
|
|
|
|
</xsl:template> |
|
|
|
</xsl:stylesheet> |
|
|
|
</xsl:stylesheet> |
|
|
|