<?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="water_pipeline_template" language="groovy" pageWidth="600" pageHeight="900" columnWidth="560" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" > <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <field name="reportBeginDate" class="java.lang.String"/> <field name="reportEndDate" class="java.lang.String"/> <field name="dmaInfoName" class="java.lang.String"/> <field name="reportDate" class="java.lang.String"/> <field name="leakRate" class="java.lang.String"/> <field name="leakControlRate" class="java.lang.String"/> <background> <band splitType="Stretch"/> </background> <title> <band height="62" splitType="Stretch"> <staticText> <reportElement x="150" y="8" width="233" height="34" /> <textElement> <font fontName="仿宋" size="24" isBold="true"/> </textElement> <text><![CDATA[给水管线统计报表]]></text> </staticText> <staticText> <reportElement x="353" y="42" width="61" height="20" /> <textElement> <font fontName="仿宋" size="12"/> </textElement> <text><![CDATA[记录日期:]]></text> </staticText> <textField> <reportElement x="414" y="42" width="39" height="20" /> <textElement> <font fontName="仿宋"/> </textElement> <textFieldExpression><![CDATA[$F{reportBeginDate}]]></textFieldExpression> </textField> <staticText> <reportElement x="453" y="42" width="18" height="20" /> <text><![CDATA[------]]></text> </staticText> <textField> <reportElement x="471" y="42" width="40" height="20" /> <textElement> <font fontName="仿宋"/> </textElement> <textFieldExpression><![CDATA[$F{reportEndDate}]]></textFieldExpression> </textField> </band> </title> <pageHeader> <band height="27" splitType="Stretch"> <staticText> <reportElement x="0" y="0" width="222" height="21" /> <textElement> <font fontName="仿宋" size="18" isBold="true"/> </textElement> <text><![CDATA[一.漏损评估分析统计表]]></text> </staticText> </band> </pageHeader> <columnHeader> <band height="60" splitType="Stretch"> <break type="Column"> <reportElement x="0" y="19" width="555" height="1" /> </break> <line> <reportElement x="0" y="19" width="555" height="1" /> </line> <staticText> <reportElement x="7" y="25" width="111" height="28" /> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="仿宋" size="16"/> </textElement> <text><![CDATA[分区名称]]></text> </staticText> <staticText> <reportElement x="135" y="25" width="111" height="28" /> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="仿宋" size="16"/> </textElement> <text><![CDATA[评估日期]]></text> </staticText> <staticText> <reportElement x="265" y="25" width="111" height="28" /> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="仿宋" size="16"/> </textElement> <text><![CDATA[漏损率]]></text> </staticText> <staticText> <reportElement x="402" y="25" width="111" height="28" /> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="仿宋" size="16"/> </textElement> <text><![CDATA[是否漏损]]></text> </staticText> <line> <reportElement x="554" y="20" width="1" height="38" /> </line> <line> <reportElement x="0" y="22" width="1" height="38" /> </line> <line> <reportElement x="1" y="59" width="553" height="1"/> </line> </band> </columnHeader> <detail> <band height="64" splitType="Stretch"> <textField> <reportElement x="135" y="5" width="111" height="34" /> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="11"/> </textElement> <textFieldExpression><![CDATA[$F{reportDate}]]></textFieldExpression> </textField> <textField> <reportElement x="265" y="5" width="111" height="34" /> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="11"/> </textElement> <textFieldExpression><![CDATA[$F{leakRate}]]></textFieldExpression> </textField> <textField> <reportElement x="402" y="5" width="111" height="32" /> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="11"/> </textElement> <textFieldExpression><![CDATA[$F{leakControlRate}]]></textFieldExpression> </textField> <textField> <reportElement x="7" y="5" width="111" height="34" /> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="11"/> </textElement> <textFieldExpression><![CDATA[$F{dmaInfoName}]]></textFieldExpression> </textField> <line> <reportElement x="0" y="44" width="555" height="1" /> </line> <line> <reportElement x="554" y="0" width="1" height="44"/> </line> <line> <reportElement x="0" y="1" width="1" height="44" /> </line> </band> </detail> <summary> <band height="210" splitType="Stretch"> <staticText> <reportElement x="0" y="10" width="222" height="21"/> <textElement> <font fontName="仿宋" size="18" isBold="true"/> </textElement> <text><![CDATA[二.漏损评估分析统计图]]></text> </staticText> <scatterChart> <chart> <reportElement x="62" y="76" width="377" height="100" /> <chartTitle/> <chartSubtitle/> <chartLegend/> </chart> <xyDataset> <xySeries> <seriesExpression><![CDATA["漏损率"]]></seriesExpression> <xValueExpression><![CDATA[$F{reportDate}]]></xValueExpression> <yValueExpression><![CDATA[$F{leakRate}]]></yValueExpression> </xySeries> </xyDataset> <scatterPlot> <plot/> <xAxisFormat> <axisFormat/> </xAxisFormat> <yAxisFormat> <axisFormat/> </yAxisFormat> </scatterPlot> </scatterChart> </band> </summary> </jasperReport>