Anzeige alternative Studiensemesterbezeichnung

This commit is contained in:
Stefan Puraner
2015-07-08 16:08:21 +02:00
parent 6a696b7472
commit 311ed66622
4 changed files with 544 additions and 385 deletions
+152
View File
@@ -0,0 +1,152 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" indent="yes" />
<xsl:template match="konto">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master page-height="297mm" page-width="210mm" margin="5mm 25mm 5mm 25mm" master-name="PageMaster">
<fo:region-body margin="20mm 0mm 20mm 0mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="PageMaster">
<fo:flow flow-name="xsl-region-body" >
<!-- Logo -->
<fo:block>
<!--<fo:external-graphic src="../skin/images/logo.jpg" posx="140" posy="15" width="60mm" height="20mm"/>-->
<fo:external-graphic posx="130" posy="15" width="60mm" height="25mm" >
<xsl:attribute name="src">
<xsl:value-of select="person/logopath" />logo2.jpg
</xsl:attribute>
</fo:external-graphic>
</fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block text-align="left" font-size="10pt">
Katholische Privat-Universität Linz\n Bethlehemstraße 20\n A-4020 Linz\n DVR-Nr.: 0029874 (1739)
</fo:block>
<!-- Datum -->
<fo:block text-align="right" font-size="10pt">
Linz, am<xsl:text> </xsl:text><xsl:value-of select="person/tagesdatum" />
</fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block text-align="right" font-size="10pt">
Sozialversicherungsnummer/Ersatzkennzeichen
</fo:block>
<fo:block text-align="right" font-size="12pt">
<xsl:value-of select="person/sozialversicherungsnummer" />
</fo:block>
<fo:block text-align="right" font-size="12pt">
<xsl:value-of select="person/ersatzkennzeichen" />
</fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<!-- Zahlungsbestaetigung -->
<fo:block text-align="center" font-size="20pt">
<xsl:choose>
<xsl:when test="buchung/rueckerstattung">
AUSZAHLUNGSBESTÄTIGUNG
</xsl:when>
<xsl:otherwise>
ZAHLUNGSBESTÄTIGUNG
</xsl:otherwise>
</xsl:choose>
</fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block text-align="left" font-size="10pt">
<xsl:choose>
<xsl:when test="buchung/rueckerstattung">
\n <xsl:value-of select="person/name_gesamt" />, geboren am <xsl:value-of select="person/geburtsdatum" />, bestätigt hiermit folgende Auszahlungen:
</xsl:when>
<xsl:otherwise>
\n Es wird hiermit bestätigt, dass <xsl:value-of select="person/name_gesamt" />, geboren am <xsl:value-of select="person/geburtsdatum" />, folgende Einzahlung getätigt hat:
</xsl:otherwise>
</xsl:choose>
</fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<fo:block><xsl:text>
</xsl:text></fo:block>
<!-- Tabelle -->
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="20mm"/>
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="50mm"/>
<fo:table-column column-width="70mm"/>
<fo:table-column column-width="20mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" font-weight="bold"> Datum</fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" font-weight="bold"> Nummer</fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" font-weight="bold"> Buchungstyp</fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" font-weight="bold"> Buchungstext</fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" font-weight="bold"> Betrag in EUR</fo:block></fo:table-cell>
</fo:table-row>
<xsl:apply-templates select="buchung"/>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:value-of select="buchungsdatum" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:value-of select="buchungsnr" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:value-of select="buchungstyp" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:value-of select="buchungstext" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:value-of select="betrag" /></fo:block></fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:block><xsl:text>
</xsl:text></fo:block>
<!-- Tabelle ENDE -->
<fo:block><xsl:text>
</xsl:text></fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="buchung">
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungsdatum" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungsnr" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungstyp_beschreibung" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungstext" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="20mm" text-align="right"><xsl:text> </xsl:text><xsl:value-of select="betrag" /></fo:block></fo:table-cell>
</fo:table-row>
</xsl:template>
</xsl:stylesheet >