Files
rag_jrxml/jrxml_source/ThermometerChartReport.jrxml
T
panda 4f475e9e36 feat: 添加Qwen3嵌入模型及JRXML报告相关文件
添加Qwen3-4B嵌入模型配置文件及权重文件
添加多个JRXML报告的数据查询和字段定义文件
添加PdfEncryptReport.jrxml示例报告文件
2026-05-11 08:34:03 +08:00

229 lines
14 KiB
Plaintext

<jasperReport name="ThermometerChartReport" language="java" columnCount="2" pageWidth="595" pageHeight="842" columnWidth="270" columnSpacing="15" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30" uuid="fd05eec6-cf00-4535-9382-c0b8197fc781">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Sample DB"/>
<property name="net.sf.jasperreports.chart.render.type" value="svg"/>
<property name="net.sf.jasperreports.image.dpi" value="150"/>
<style name="Sans_Normal" default="true" fontName="DejaVu Sans" fontSize="8.0" bold="false" italic="false" underline="false" strikeThrough="false"/>
<style name="Sans_Bold" fontName="DejaVu Sans" fontSize="8.0" bold="true" italic="false" underline="false" strikeThrough="false"/>
<style name="Sans_Italic" fontName="DejaVu Sans" fontSize="8.0" bold="false" italic="true" underline="false" strikeThrough="false"/>
<style name="Serif_Normal" fontName="DejaVu Serif" fontSize="10.0" bold="false" italic="false" underline="false" strikeThrough="false"/>
<style name="Serif_Bold" fontName="DejaVu Serif" fontSize="10.0" bold="true" italic="false" underline="false" strikeThrough="false"/>
<parameter name="ReportTitle" class="java.lang.String">
<defaultValueExpression><![CDATA["Thermometer Chart Report"]]></defaultValueExpression>
</parameter>
<parameter name="MaxOrderID" class="java.lang.Integer">
<defaultValueExpression><![CDATA[12500]]></defaultValueExpression>
</parameter>
<query language="sql"><![CDATA[SELECT * FROM Orders WHERE OrderID <= $P{MaxOrderID} ORDER BY ShipCountry]]></query>
<field name="ShippedDate" class="java.sql.Timestamp"/>
<field name="ShipCountry" class="java.lang.String"/>
<field name="RequiredDate" class="java.sql.Timestamp"/>
<field name="CustomerID" class="java.lang.String"/>
<field name="OrderID" class="java.lang.Integer"/>
<field name="ShipName" class="java.lang.String"/>
<field name="ShipVia" class="java.lang.Integer"/>
<field name="ShipPostalCode" class="java.lang.String"/>
<field name="OrderDate" class="java.sql.Timestamp"/>
<field name="ShipCity" class="java.lang.String"/>
<field name="ShipAddress" class="java.lang.String"/>
<field name="EmployeeID" class="java.lang.Integer"/>
<field name="ShipRegion" class="java.lang.String"/>
<field name="Freight" class="java.lang.Double"/>
<variable name="FirstLetter" resetType="None" class="java.lang.String">
<expression><![CDATA[$F{ShipCountry}.substring(0, 1).toUpperCase()]]></expression>
</variable>
<variable name="FreightSumFirstLetterGroup" resetType="Group" calculation="Sum" resetGroup="FirstLetterGroup" class="java.lang.Double">
<expression><![CDATA[$F{Freight}]]></expression>
</variable>
<variable name="FreightSumCountryGroup" resetType="Group" calculation="Sum" resetGroup="CountryGroup" class="java.lang.Double">
<expression><![CDATA[$F{Freight}]]></expression>
</variable>
<variable name="FreightSumColumn" resetType="Column" calculation="Sum" class="java.lang.Double">
<expression><![CDATA[$F{Freight}]]></expression>
</variable>
<variable name="FreightSumPage" resetType="Page" calculation="Sum" class="java.lang.Double">
<expression><![CDATA[$F{Freight}]]></expression>
</variable>
<variable name="FreightSumReport" calculation="Sum" class="java.lang.Double">
<expression><![CDATA[$F{Freight}]]></expression>
</variable>
<variable name="DateHighestCountryGroup" resetType="Group" calculation="Highest" resetGroup="CountryGroup" class="java.sql.Timestamp">
<expression><![CDATA[$F{OrderDate}]]></expression>
</variable>
<variable name="RegionCountCountryGroup" resetType="Group" calculation="Count" resetGroup="CountryGroup" class="java.lang.Integer">
<expression><![CDATA[$F{ShipRegion}]]></expression>
</variable>
<group name="FirstLetterGroup" minHeightToStartNewPage="200" startNewColumn="true">
<expression><![CDATA[$V{FirstLetter}]]></expression>
<groupHeader>
<band height="200">
<element kind="rectangle" uuid="d67097b1-5769-462a-be6c-828d0f053ab8" x="0" y="14" width="270" height="11" forecolor="#FFDDDD" backcolor="#FFDDDD"/>
<element kind="staticText" uuid="c489f106-74ae-469a-b88b-131e65bceb08" mode="Opaque" x="0" y="14" width="130" height="11" forecolor="#FF0000" backcolor="#FFDDDD" underline="true" style="Sans_Italic">
<text><![CDATA[Countries Starting With Letter :]]></text>
</element>
<element kind="textField" uuid="fda8413f-086d-4b68-9538-a8dacadd91f8" mode="Opaque" x="130" y="14" width="140" height="11" forecolor="#FF0000" backcolor="#FFDDDD" style="Sans_Bold">
<expression><![CDATA[$V{FirstLetter}]]></expression>
</element>
<element kind="chart" chartType="thermometer" uuid="d7dbbf81-57e4-4338-84d0-72f367c2bd1d" positionType="Float" x="0" y="25" width="270" height="175" showLegend="true" evaluationTime="Group" evaluationGroup="FirstLetterGroup">
<dataset kind="value" incrementType="Group" resetGroup="FirstLetterGroup" incrementGroup="CountryGroup" resetType="Group">
<valueExpression><![CDATA[$V{FreightSumFirstLetterGroup}]]></valueExpression>
</dataset>
<plot mercuryColor="#0000CC" valueLocation="bulb">
<dataRange>
<lowExpression><![CDATA[0.0d]]></lowExpression>
<highExpression><![CDATA[17500.0d]]></highExpression>
</dataRange>
<valueDisplay color="#000000" mask="$#,###">
<font fontSize="12.0"/>
</valueDisplay>
<lowRange>
<lowExpression><![CDATA[0.0d]]></lowExpression>
<highExpression><![CDATA[2000.0d]]></highExpression>
</lowRange>
<mediumRange>
<lowExpression><![CDATA[2000.0d]]></lowExpression>
<highExpression><![CDATA[12000.0d]]></highExpression>
</mediumRange>
<highRange>
<lowExpression><![CDATA[12000.0d]]></lowExpression>
<highExpression><![CDATA[17500d]]></highExpression>
</highRange>
</plot>
</element>
</band>
</groupHeader>
<groupFooter>
<band height="25">
<element kind="line" uuid="d668dfd4-b2c6-411d-94f5-4b280803d949" x="0" y="0" width="270" height="1" forecolor="#FF0000"/>
<element kind="staticText" uuid="93c24dad-1bbc-474c-a247-1b6207fc603a" x="0" y="1" width="45" height="11" forecolor="#FF0000" hTextAlign="Right" style="Sans_Bold">
<text><![CDATA[Count :]]></text>
</element>
<element kind="textField" uuid="d62948fb-b917-4c00-80bd-ee60cec06043" x="45" y="1" width="25" height="11" forecolor="#FF0000" hTextAlign="Right" style="Sans_Bold">
<expression><![CDATA[$V{FirstLetterGroup_COUNT}]]></expression>
</element>
<element kind="staticText" uuid="dfa69f4f-7e6c-4a86-b37c-87728b32db30" x="70" y="1" width="140" height="11" forecolor="#FF0000" hTextAlign="Right" style="Sans_Bold">
<text><![CDATA[Total :]]></text>
</element>
<element kind="textField" uuid="9b00e275-b691-49c3-b272-f773bf4e3172" x="210" y="1" width="60" height="11" forecolor="#FF0000" pattern="0.00" hTextAlign="Right" style="Sans_Bold">
<expression><![CDATA[$V{FreightSumFirstLetterGroup}]]></expression>
</element>
</band>
</groupFooter>
</group>
<group name="CountryGroup">
<expression><![CDATA[$F{ShipCountry}]]></expression>
<groupHeader>
<band height="15">
<element kind="line" uuid="ed5b55c7-1ee5-4126-86fd-df7482e39446" x="0" y="14" width="270" height="1"/>
<element kind="textField" uuid="91fce3e1-0d94-4ef7-809c-31f5499670e8" x="10" y="2" width="150" height="11" style="Sans_Bold">
<expression><![CDATA[$F{ShipCountry}]]></expression>
</element>
<element kind="textField" uuid="ad3c4f61-ca1a-434f-8b54-bd5d11bf3cca" x="170" y="2" width="100" height="11" evaluationTime="Group" pattern="EEE, MMM d, yyyy" evaluationGroup="CountryGroup" hTextAlign="Right" style="Sans_Bold">
<expression><![CDATA[$V{DateHighestCountryGroup}]]></expression>
</element>
</band>
</groupHeader>
<groupFooter>
<band height="15">
<element kind="rectangle" uuid="1ad37a95-7491-4f44-8c7b-8633e6f17c31" x="0" y="0" width="270" height="11" forecolor="#C0C0C0" backcolor="#C0C0C0"/>
<element kind="staticText" uuid="567de2d6-3f25-47f4-91f3-bf8cee74209a" mode="Opaque" x="0" y="0" width="45" height="11" backcolor="#C0C0C0" hTextAlign="Right" style="Sans_Bold">
<text><![CDATA[Count :]]></text>
</element>
<element kind="textField" uuid="f16b3861-ce80-450d-a182-0f796fafdcb4" mode="Opaque" x="45" y="0" width="25" height="11" backcolor="#C0C0C0" hTextAlign="Right" style="Sans_Bold">
<expression><![CDATA[$V{CountryGroup_COUNT}]]></expression>
</element>
<element kind="staticText" uuid="0593ea58-0525-49fe-b95e-f24d6dddb80a" mode="Opaque" x="70" y="0" width="140" height="11" backcolor="#C0C0C0" hTextAlign="Right" style="Sans_Bold">
<text><![CDATA[Total :]]></text>
</element>
<element kind="textField" uuid="ce9c093b-64d9-40e7-83e2-1f9f3ab2ee15" mode="Opaque" x="210" y="0" width="60" height="11" backcolor="#C0C0C0" pattern="0.00" hTextAlign="Right" style="Sans_Bold">
<expression><![CDATA[$V{FreightSumCountryGroup}]]></expression>
</element>
</band>
</groupFooter>
</group>
<title height="50">
<element kind="elementGroup"/>
<element kind="staticText" uuid="8cd7b406-c4cc-448c-a080-2fac3d5be1c0" x="0" y="0" width="555" height="35" fontSize="22.0" hTextAlign="Center" style="Serif_Bold">
<text><![CDATA[Thermometer Chart Report]]></text>
<box style="Serif_Bold">
<topPen lineWidth="0.5"/>
</box>
</element>
</title>
<columnHeader height="11">
<element kind="rectangle" uuid="8a2cca60-96e5-470e-9fa8-b0f27baa0f13" x="0" y="0" width="270" height="11" backcolor="#333333"/>
<element kind="staticText" uuid="abd3896c-b5f7-45a9-be53-0d82bd2f9531" mode="Opaque" x="0" y="0" width="40" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Center" style="Sans_Bold">
<text><![CDATA[Order]]></text>
</element>
<element kind="staticText" uuid="0d779888-c9ff-4271-80b5-528a1f52ddce" mode="Opaque" x="40" y="0" width="145" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Center" style="Sans_Bold">
<text><![CDATA[Name, City]]></text>
</element>
<element kind="staticText" uuid="1eeb20cb-c5f7-4433-a2f8-e559679e2cab" mode="Opaque" x="185" y="0" width="50" height="11" forecolor="#FFFFFF" backcolor="#333333" style="Sans_Bold">
<text><![CDATA[Date]]></text>
</element>
<element kind="staticText" uuid="86b20c87-9ca1-45ec-aac8-2930cdb43efe" mode="Opaque" x="235" y="0" width="35" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Right" style="Sans_Bold">
<text><![CDATA[Freight]]></text>
</element>
</columnHeader>
<detail>
<band height="13">
<element kind="textField" uuid="cf1b5f4e-1a51-4989-b6eb-7eae46077069" x="1" y="0" width="35" height="11" hTextAlign="Right">
<expression><![CDATA[$F{OrderID}]]></expression>
</element>
<element kind="textField" uuid="4b65bb0b-ca0a-4d90-a882-96d8a1763f15" positionType="Float" x="40" y="0" width="110" height="11" textAdjust="StretchHeight">
<expression><![CDATA[$F{ShipName} + ", " + $F{ShipCity}]]></expression>
</element>
<element kind="textField" uuid="335856e3-668b-4a33-a960-4678c6169a2d" x="155" y="0" width="25" height="11" blankWhenNull="true">
<expression><![CDATA[$F{ShipRegion}]]></expression>
</element>
<element kind="textField" uuid="e7aa33e5-aaef-4aa8-8bc2-4e15e3be5682" x="185" y="0" width="50" height="11" pattern="dd/MM/yyyy">
<expression><![CDATA[$F{OrderDate}]]></expression>
</element>
<element kind="textField" uuid="2783f52a-aaf3-43eb-8af0-b797fd1be4e9" x="235" y="0" width="35" height="11" pattern="0.00" hTextAlign="Right">
<expression><![CDATA[$F{Freight}]]></expression>
</element>
<element kind="line" uuid="0ef1607e-b8eb-404c-972f-00bac02d73bf" positionType="Float" x="0" y="12" width="270" height="1" forecolor="#808080">
<pen lineWidth="0.5"/>
</element>
</band>
</detail>
<columnFooter height="11">
<element kind="rectangle" uuid="5795395d-91ad-4d08-86ca-711bde4c688c" x="0" y="0" width="270" height="11" backcolor="#333333"/>
<element kind="staticText" uuid="f10734d2-8a19-4640-9fc0-62c68a8b92db" mode="Opaque" x="0" y="0" width="45" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Right" style="Sans_Bold">
<text><![CDATA[Count :]]></text>
</element>
<element kind="textField" uuid="6d335b01-62cc-4dc5-ae35-8d3f47f34623" mode="Opaque" x="45" y="0" width="25" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Right" style="Sans_Bold">
<expression><![CDATA[$V{COLUMN_COUNT}]]></expression>
</element>
<element kind="staticText" uuid="f32a40e6-da6c-4134-8717-2991d0859042" mode="Opaque" x="70" y="0" width="140" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Right" style="Sans_Bold">
<text><![CDATA[Total :]]></text>
</element>
<element kind="textField" uuid="d187206a-8e44-418a-8f3c-c2c4bc1ed5f8" mode="Opaque" x="210" y="0" width="60" height="11" forecolor="#FFFFFF" backcolor="#333333" pattern="0.00" hTextAlign="Right" style="Sans_Bold">
<expression><![CDATA[$V{FreightSumColumn}]]></expression>
</element>
</columnFooter>
<pageFooter height="30">
<element kind="rectangle" uuid="78f92538-ae01-47a8-9ac3-35789eb4b0b5" mode="Transparent" x="0" y="5" width="555" height="25"/>
<element kind="staticText" uuid="b20883b8-b473-4f7c-a8ee-848d67c41636" x="5" y="10" width="50" height="20" fontSize="14.0" hTextAlign="Right">
<text><![CDATA[Count :]]></text>
</element>
<element kind="textField" uuid="f8d88938-ed56-4e34-9305-f880489c080b" x="55" y="10" width="45" height="20" fontSize="14.0" hTextAlign="Right">
<expression><![CDATA[$V{PAGE_COUNT}]]></expression>
</element>
<element kind="staticText" uuid="38d860fb-0f09-4ded-97e1-2fd84f42de17" x="430" y="10" width="50" height="20" fontSize="14.0" hTextAlign="Right">
<text><![CDATA[Total :]]></text>
</element>
<element kind="textField" uuid="71dd417c-184c-4573-9fcd-4c732fb83d87" x="480" y="10" width="70" height="20" fontSize="14.0" pattern="0.00" hTextAlign="Right">
<expression><![CDATA[$V{FreightSumPage}]]></expression>
</element>
<element kind="textField" uuid="02773713-5605-47c2-a466-90affc1d9b4b" x="200" y="10" width="75" height="20" fontSize="14.0" hTextAlign="Right">
<expression><![CDATA[$V{PAGE_NUMBER}]]></expression>
</element>
<element kind="staticText" uuid="b842218d-1bdc-41c2-b298-45c26d21b099" x="275" y="10" width="5" height="20" fontSize="14.0" hTextAlign="Center">
<text><![CDATA[/]]></text>
</element>
<element kind="textField" uuid="4d1a2660-d3f5-438f-bbcf-eecae8ca0af4" x="280" y="10" width="75" height="20" fontSize="14.0" evaluationTime="Report">
<expression><![CDATA[$V{PAGE_NUMBER}]]></expression>
</element>
</pageFooter>
</jasperReport>