Newer
Older
alarm / WebRoot / jasper / device_alarm_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="device_alarm_report" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="85da505b-cc1d-4e7b-ba68-2c23748bcbf8">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<field name="devName" class="java.lang.String"/>
	<field name="devCode" class="java.lang.String"/>
	<field name="devTypeName" class="java.lang.String"/>
	<field name="alarmCount" class="java.lang.Long"/>
	<field name="alarmValue" class="java.lang.String"/>
	<field name="reportEndDate" class="java.lang.String"/>
	<field name="reportBeginDate" class="java.lang.String"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="53">
			<staticText>
				<reportElement x="214" y="0" width="153" height="37"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微软雅黑" size="20"/>
				</textElement>
				<text><![CDATA[报警消息报表]]></text>
			</staticText>
		</band>
	</title>
	<pageHeader>
		<band height="34" splitType="Stretch">
			<staticText>
				<reportElement x="192" y="8" width="100" height="26"/>
				<textElement textAlignment="Center">
					<font fontName="微软雅黑" size="15"/>
				</textElement>
				<text><![CDATA[设备报警统计报表]]></text>
			</staticText>
			<staticText>
				<reportElement x="333" y="14" width="58" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="12"/>
				</textElement>
				<text><![CDATA[报警日期:]]></text>
			</staticText>
			<textField>
				<reportElement x="482" y="14" width="73" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="12"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{reportEndDate}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="410" y="14" width="58" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="12"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{reportBeginDate}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="468" y="14" width="14" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="12"/>
				</textElement>
				<text><![CDATA[~]]></text>
			</staticText>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="61" splitType="Stretch">
			<line>
				<reportElement x="16" y="12" width="539" height="1"/>
			</line>
			<line>
				<reportElement x="16" y="49" width="539" height="1"/>
			</line>
			<staticText>
				<reportElement x="16" y="25" width="66" height="19"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="12"/>
				</textElement>
				<text><![CDATA[设备名称]]></text>
			</staticText>
			<staticText>
				<reportElement x="116" y="25" width="67" height="19"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="12"/>
				</textElement>
				<text><![CDATA[设备编号]]></text>
			</staticText>
			<staticText>
				<reportElement x="214" y="25" width="78" height="19"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="12"/>
				</textElement>
				<text><![CDATA[设备类型]]></text>
			</staticText>
			<staticText>
				<reportElement x="333" y="25" width="66" height="19"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="12"/>
				</textElement>
				<text><![CDATA[报警次数]]></text>
			</staticText>
			<staticText>
				<reportElement x="433" y="25" width="66" height="19"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="12"/>
				</textElement>
				<text><![CDATA[报警最大/小值]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="76">
			<line>
				<reportElement x="16" y="68" width="539" height="1"/>
			</line>
			<line>
				<reportElement x="16" y="11" width="539" height="1"/>
			</line>
			<textField>
				<reportElement x="16" y="23" width="66" height="20"/>
				<textFieldExpression><![CDATA[$F{devName}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="116" y="23" width="65" height="20"/>
				<textFieldExpression><![CDATA[$F{devCode}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="214" y="23" width="78" height="20"/>
				<textFieldExpression><![CDATA[$F{devTypeName}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="333" y="23" width="66" height="20"/>
				<textFieldExpression><![CDATA[$F{alarmCount}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="433" y="23" width="66" height="20"/>
				<textFieldExpression><![CDATA[$F{alarmValue}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<summary>
		<band height="183" splitType="Stretch">
			<pie3DChart>
				<chart>
					<reportElement x="145" y="10" width="301" height="154"/>
					<chartTitle/>
					<chartSubtitle/>
					<chartLegend/>
				</chart>
				<pieDataset>
					<keyExpression><![CDATA[$F{devName}]]></keyExpression>
					<valueExpression><![CDATA[$F{alarmCount}]]></valueExpression>
					<labelExpression><![CDATA[$F{devName}+""+$F{alarmCount}]]></labelExpression>
				</pieDataset>
				<pie3DPlot>
					<plot/>
					<itemLabel/>
				</pie3DPlot>
			</pie3DChart>
			<staticText>
				<reportElement x="10" y="10" width="106" height="25"/>
				<textElement>
					<font fontName="微软雅黑" size="15"/>
				</textElement>
				<text><![CDATA[报警记录图表]]></text>
			</staticText>
		</band>
	</summary>
</jasperReport>