Newer
Older
alarm / WebRoot / jasper / leakage_warning_device_year_report.jrxml
zhout on 2 Mar 2022 5 KB first commit
<?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="report name" pageWidth="995" pageHeight="842" columnWidth="955" 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="96"/>
	<style name="Crosstab Data Text"/>
	<field name="deviceCode" class="java.lang.String"/>
	<field name="deviceTypeName" class="java.lang.String"/>
	<field name="factory" class="java.lang.String"/>
	<field name="recordDate" class="java.lang.String"/>
	<field name="alarmCount" class="java.lang.String"/>
	<background>
		<band height="12"/>
	</background>
	<title>
		<band height="86">
			<staticText>
				<reportElement x="325" y="21" width="261" height="30"/>
				<textElement>
					<font fontName="微软雅黑" size="20"/>
				</textElement>
				<text><![CDATA[设备报警年统计报表]]></text>
			</staticText>
			<staticText>
				<reportElement x="8" y="55" width="182" height="31"/>
				<textElement>
					<font fontName="微软雅黑" size="18"/>
				</textElement>
				<text><![CDATA[一、设备报警信息]]></text>
			</staticText>
		</band>
	</title>
	<columnHeader>
		<band height="51">
			<staticText>
				<reportElement x="721" y="13" width="107" height="19"/>
				<textElement textAlignment="Justified" verticalAlignment="Middle">
					<font fontName="微软雅黑" size="14"/>
				</textElement>
				<text><![CDATA[报警年份]]></text>
			</staticText>
			<line>
				<reportElement x="8" y="6" width="885" height="1"/>
			</line>
			<line>
				<reportElement x="8" y="47" width="885" height="1"/>
			</line>
			<staticText>
				<reportElement x="40" y="13" width="95" height="19"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="14"/>
				</textElement>
				<text><![CDATA[设备编号]]></text>
			</staticText>
			<staticText>
				<reportElement x="164" y="13" width="117" height="19"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="14"/>
				</textElement>
				<text><![CDATA[设备类型]]></text>
			</staticText>
			<staticText>
				<reportElement x="567" y="13" width="81" height="19"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="14"/>
				</textElement>
				<text><![CDATA[报警次数]]></text>
			</staticText>
			<staticText>
				<reportElement x="362" y="13" width="81" height="19"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="14"/>
				</textElement>
				<text><![CDATA[报警位置]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="37">
			<textField>
				<reportElement x="716" y="5" width="107" height="20"/>
				<textElement textAlignment="Justified" verticalAlignment="Middle">
					<font size="14"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{recordDate}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="40" y="5" width="95" height="20"/>
				<textElement verticalAlignment="Middle">
					<font size="14"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{deviceCode}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="164" y="5" width="117" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="14"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{deviceTypeName}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="362" y="5" width="157" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="14"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{factory}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="560" y="5" width="107" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="14"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{alarmCount}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<summary>
		<band height="207">
			<staticText>
				<reportElement x="8" y="0" width="182" height="31"/>
				<textElement>
					<font fontName="微软雅黑" size="18"/>
				</textElement>
				<text><![CDATA[三、设备报警柱状图]]></text>
			</staticText>
			<bar3DChart>
				<chart isShowLegend="true">
					<reportElement  stretchType="RelativeToBandHeight" x="152" y="32" width="655" height="169"/>
					<chartTitle/>
					<chartSubtitle/>
					<chartLegend/>
				</chart>
				<categoryDataset>
					<categorySeries>
						<seriesExpression><![CDATA["报警统计"]]></seriesExpression>
						<categoryExpression><![CDATA[$F{recordDate}]]></categoryExpression>
						<valueExpression><![CDATA[Double.valueOf($F{alarmCount})]]></valueExpression>
						<labelExpression><![CDATA[$F{alarmCount}+"次"]]></labelExpression>
					</categorySeries>
				</categoryDataset>
				<bar3DPlot isShowLabels="true">
					<plot labelRotation="45.0"/>
					<categoryAxisFormat>
						<axisFormat/>
					</categoryAxisFormat>
					<valueAxisFormat>
						<axisFormat/>
					</valueAxisFormat>
				</bar3DPlot>
			</bar3DChart>
		</band>
	</summary>
</jasperReport>