📄 vaccinationreport.jrxml
字号:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD JasperReport//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"><jasperReport name="null" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> <parameter name="MIN_ID" class="java.lang.Integer" isForPrompting="false"/> <parameter name="MAX_ID" class="java.lang.Integer" isForPrompting="false"/> <parameter name="BEGIN_DATE" class="java.util.Date" isForPrompting="false"/> <queryString language="SQL"> <![CDATA[SELECT VACCINATIONS."VACCINATION" AS VACCINE, VACCINATIONS."TAKINGDATE" AS TAKINGDATE, VACCINATIONS."SPACCOUNT" AS VET, VACCINATIONS."NOTES" AS NOTES, PETS."NAME" AS NAMEFROM "APP"."PETS" PETS INNER JOIN "APP"."VACCINATIONS" VACCINATIONS ON PETS."ID" = VACCINATIONS."PETID"WHERE petid >=INTEGER( $P{MIN_ID}) AND petid <= $P{MAX_ID} AND takingdate >= $P{BEGIN_DATE}ORDER BY VACCINATIONS."TAKINGDATE" ASC]]> </queryString> <field name="VACCINE" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="TAKINGDATE" class="java.sql.Date"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="VET" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="NOTES" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="NAME" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <group name="NAME"> <groupExpression><![CDATA[$F{NAME}]]></groupExpression> <groupHeader> <band height="27"> <staticText> <reportElement mode="Opaque" x="0" y="0" width="75" height="27" forecolor="#FFFFFF" backcolor="#000000"/> <textElement textAlignment="Right"> <font size="18"/> </textElement> <text><![CDATA[NAME: ]]></text> </staticText> <textField hyperlinkType="None"> <reportElement mode="Opaque" x="75" y="0" width="480" height="27" forecolor="#FFFFFF" backcolor="#000000"/> <textElement> <font size="18" isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{NAME}]]></textFieldExpression> </textField> </band> </groupHeader> <groupFooter> <band height="8"> <line direction="BottomUp"> <reportElement key="line" x="1" y="4" width="554" height="1"/> </line> </band> </groupFooter> </group> <background> <band/> </background> <title> <band height="58"> <line> <reportElement x="0" y="8" width="555" height="1"/> </line> <line> <reportElement positionType="FixRelativeToBottom" x="0" y="51" width="555" height="1"/> </line> <staticText> <reportElement x="65" y="13" width="424" height="35"/> <textElement textAlignment="Center"> <font size="22" isBold="true"/> </textElement> <text><![CDATA[Pet's Vaccination Report]]></text> </staticText> </band> </title> <pageHeader> <band/> </pageHeader> <columnHeader> <band/> </columnHeader> <detail> <band height="90"> <staticText> <reportElement x="0" y="10" width="75" height="20"/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font size="12"/> </textElement> <text><![CDATA[VACCINE: ]]></text> </staticText> <textField hyperlinkType="None"> <reportElement x="75" y="10" width="480" height="20"/> <textElement> <font size="12"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{VACCINE}]]></textFieldExpression> </textField> <staticText> <reportElement x="0" y="30" width="75" height="20"/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font size="12"/> </textElement> <text><![CDATA[DATE: ]]></text> </staticText> <textField pattern="dd-MMM-yyyy" hyperlinkType="None"> <reportElement x="75" y="30" width="480" height="20"/> <textElement> <font size="12"/> </textElement> <textFieldExpression class="java.util.Date"><![CDATA[$F{TAKINGDATE}]]></textFieldExpression> </textField> <staticText> <reportElement x="0" y="50" width="75" height="20"/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font size="12"/> </textElement> <text><![CDATA[VET: ]]></text> </staticText> <textField hyperlinkType="None"> <reportElement x="75" y="50" width="480" height="20"/> <textElement> <font size="12"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{VET}]]></textFieldExpression> </textField> <staticText> <reportElement x="0" y="70" width="75" height="20"/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font size="12"/> </textElement> <text><![CDATA[NOTES: ]]></text> </staticText> <textField isStretchWithOverflow="true" hyperlinkType="None"> <reportElement x="75" y="70" width="480" height="20"/> <textElement> <font size="12"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{NOTES}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band/> </columnFooter> <pageFooter> <band height="26"> <textField evaluationTime="Report" pattern="" isBlankWhenNull="false" hyperlinkType="None"> <reportElement key="textField" x="516" y="6" width="36" height="19" forecolor="#000000" backcolor="#FFFFFF"/> <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 size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> <textField pattern="" isBlankWhenNull="false" hyperlinkType="None"> <reportElement key="textField" x="342" y="6" width="170" height="19" forecolor="#000000" backcolor="#FFFFFF"/> <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 size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER} + " of "]]></textFieldExpression> </textField> <textField pattern="" isBlankWhenNull="false" hyperlinkType="None"> <reportElement key="textField" x="1" y="6" width="209" height="19" forecolor="#000000" backcolor="#FFFFFF"/> <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 size="10"/> </textElement> <textFieldExpression class="java.util.Date"><![CDATA[new Date()]]></textFieldExpression> </textField> </band> </pageFooter> <summary> <band/> </summary></jasperReport>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -