Skip to content

Instantly share code, notes, and snippets.

Created December 14, 2012 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4285142 to your computer and use it in GitHub Desktop.
Save anonymous/4285142 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<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="teetet" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="fca4ad81-10b9-48fa-a7cb-a426eea3bb89">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<import value="models.Client"/>
<import value="models.User"/>
<field name="caseId" class="java.lang.Integer"/>
<field name="creationDate" class="java.util.Date"/>
<field name="editedDate" class="java.util.Date"/>
<field name="note" class="java.lang.String"/>
<field name="dataEntries" class="java.util.List"/>
<field name="_client" class="Client">
<fieldDescription><![CDATA[_clientObj]]></fieldDescription>
</field>
<field name="_user" class="User">
<fieldDescription><![CDATA[_usertObj]]></fieldDescription>
</field>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="79" splitType="Stretch">
<staticText>
<reportElement uuid="83098973-87bc-417a-a5b5-d7ae9d8f3bf1" x="0" y="0" width="182" height="21"/>
<textElement>
<font size="14"/>
</textElement>
<text><![CDATA[ TITLE]]></text>
</staticText>
<textField>
<reportElement uuid="5756dc35-ae72-4235-b374-623d7d10d008" key="fieldName" x="57" y="34" width="265" height="20"/>
<textElement markup="none"/>
<textFieldExpression><![CDATA[$F{_client}.getName()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="303b09ec-9581-4c1f-b0e8-7e600461b4d9" key="fieldAddress" x="57" y="56" width="263" height="21"/>
<textElement/>
<textFieldExpression><![CDATA[$F{_client}.getAddress()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="5a64dd82-db95-4229-a247-99d87359bdff" x="411" y="35" width="131" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$F{_user}.getFirstName() + " " + $F{_user}.getLastName()]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="608013f0-2827-4bd2-93f0-65c30af8bd8a" x="0" y="34" width="52" height="20"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Navn]]></text>
</staticText>
<staticText>
<reportElement uuid="de0dc03e-6d54-41b6-85fc-b739cb6490e0" x="0" y="57" width="55" height="20"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Adresse]]></text>
</staticText>
<staticText>
<reportElement uuid="aff67220-8f6f-41ae-9725-e07585dc6b4c" x="356" y="35" width="49" height="20"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Revisor]]></text>
</staticText>
<staticText>
<reportElement uuid="ffe12619-16d1-45e4-96ac-e2043299c1f0" x="356" y="56" width="80" height="20"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Sags nummer]]></text>
</staticText>
<textField>
<reportElement uuid="5a281be6-b57f-4118-993b-3e20f3c57239" x="438" y="56" width="80" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$F{caseId}]]></textFieldExpression>
</textField>
</band>
</title>
<pageHeader>
<band height="79" splitType="Stretch">
<staticText>
<reportElement uuid="cc1ba28a-2bd4-4fce-82d3-6b49511e455d" x="0" y="4" width="53" height="20"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Post-nr]]></text>
</staticText>
<staticText>
<reportElement uuid="09d637eb-2b74-45a4-bd3e-e4b377033283" x="142" y="3" width="24" height="20"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[By]]></text>
</staticText>
<staticText>
<reportElement uuid="ab6542eb-7b4f-423f-9326-4e09e96bbeb5" x="0" y="28" width="49" height="20"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Telefon]]></text>
</staticText>
<staticText>
<reportElement uuid="90c37648-5676-44fd-b617-0fff95ae47bb" x="356" y="8" width="57" height="20"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Oprettet]]></text>
</staticText>
<staticText>
<reportElement uuid="c4439d32-1a9a-40da-b772-1e008ee81c72" x="356" y="31" width="69" height="20"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[Sidst rettet]]></text>
</staticText>
<textField>
<reportElement uuid="7e0f0e34-252c-407c-a6a3-61cc50198a09" key="fieldZipCode" x="57" y="4" width="80" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$F{_client}.getCity().getZipCode()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="144364f5-49c0-4653-a659-ab176269e04e" x="168" y="3" width="151" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$F{_client}.getCity().getCityName()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="e74850f3-c6a6-4121-8349-0878069951a0" x="57" y="28" width="271" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$F{_client}.getPhoneNo()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="19d77a72-f55c-491f-a60f-ad5267400976" x="425" y="8" width="127" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[(new SimpleDateFormat("dd-MM-yyyy HH:mm")).format($F{creationDate})]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="a590030b-77d7-421c-80df-1749a17ffd5a" x="425" y="31" width="117" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[(new SimpleDateFormat("dd-MM-yyyy HH:mm")).format($F{editedDate})]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="5bb2319b-3f5f-46e2-b23c-ebe64450cee2" x="4" y="51" width="49" height="20"/>
<textElement>
<font isBold="true"/>
</textElement>
<text><![CDATA[E-Mail]]></text>
</staticText>
<textField>
<reportElement uuid="430397c5-ec81-4291-9d07-300219c39111" x="61" y="51" width="261" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$F{_client}.getEmail()]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="61" splitType="Stretch">
<staticText>
<reportElement uuid="1af7ff49-4623-40a6-96e8-3a3e45e0338d" x="2" y="2" width="550" height="59"/>
<textElement/>
<text><![CDATA[dataEntries]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="125" splitType="Stretch">
<rectangle>
<reportElement uuid="41f31d92-88af-4e5b-bbb2-ac4d4b1c84e6" x="3" y="5" width="532" height="1" backcolor="#000000"/>
</rectangle>
<textField>
<reportElement uuid="b2faa7c1-d6db-416a-a6a3-e3f1170bf6f9" x="4" y="6" width="531" height="119"/>
<textElement/>
<textFieldExpression><![CDATA[""+$F{dataEntries}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="45" splitType="Stretch">
<staticText>
<reportElement uuid="959eb5a8-ae57-4470-aee7-883223002621" x="3" y="25" width="80" height="20"/>
<textElement>
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[Noter]]></text>
</staticText>
</band>
</columnFooter>
<pageFooter>
<band height="54" splitType="Stretch">
<textField>
<reportElement uuid="225aab3e-6ba0-45ef-a83f-179e5e45fb76" x="4" y="6" width="535" height="48"/>
<textElement/>
<textFieldExpression><![CDATA[$F{note}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
<summary>
<band height="42" splitType="Stretch">
<textField pattern="M/d/yy h:mm:ss a">
<reportElement uuid="f4716123-af2f-4962-ac74-78f6289bd0cc" x="59" y="6" width="94" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[(new SimpleDateFormat("dd-MM-yyyy HH:mm")).format(new Date())]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="7023e5f4-1ef8-4e49-983d-a2e12ea1ac7e" x="2" y="6" width="80" height="20"/>
<textElement/>
<text><![CDATA[Udskrevet:]]></text>
</staticText>
<textField>
<reportElement uuid="5193a35c-e911-44cd-b6d6-d24ba6da55ad" x="301" y="0" width="254" height="20"/>
<textElement/>
<textFieldExpression><![CDATA["Side " + $V{PAGE_NUMBER} + " ud af " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment