Newer
Older
alarm / WebRoot / jasper / alarm_record_template1.jrxml
zhout on 2 Mar 2022 4 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">
	<field name="alarmNumber" class="java.lang.Long"/>
	<field name="reportBeginDate" class="java.lang.String"/>
	<field name="reportEndDate" class="java.lang.String"/>
	<field name="alarmNumPercent" class="java.lang.String"/>
	<field name="deviceTypeName" class="java.lang.String"/>
	<background>
		<band/>
	</background>
	<title>
		<band height="75">
			<staticText>
				<reportElement x="370" y="0" width="218" height="43"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="24"/>
				</textElement>
				<text><![CDATA[报警记录报表]]></text>
			</staticText>
			<staticText>
				<reportElement x="549" y="55" width="78" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="15"/>
				</textElement>
				<text><![CDATA[记录日期:]]></text>
			</staticText>
			<textField>
				<reportElement x="637" y="55" width="100" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="15"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{reportBeginDate}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="751" y="55" width="93" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="15"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{reportEndDate}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="737" y="55" width="14" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="12"/>
				</textElement>
				<text><![CDATA[~]]></text>
			</staticText>
		</band>
	</title>
	<pageHeader>
		<band height="39">
			<staticText>
				<reportElement x="0" y="0" width="184" height="39"/>
				<textElement>
					<font fontName="微软雅黑" size="18"/>
				</textElement>
				<text><![CDATA[一、报警记录统计表]]></text>
			</staticText>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="49">
			<line>
				<reportElement x="11" y="44" width="820" height="1"/>
			</line>
			<staticText>
				<reportElement x="27" y="13" width="143" height="30"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="15"/>
				</textElement>
				<text><![CDATA[设备类型]]></text>
			</staticText>
			<staticText>
				<reportElement x="235" y="13" width="85" height="30"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="15"/>
				</textElement>
				<text><![CDATA[报警次数]]></text>
			</staticText>
			<line>
				<reportElement x="11" y="12" width="820" height="1"/>
			</line>
		</band>
	</columnHeader>
	<detail>
		<band height="45">
			<line>
				<reportElement x="11" y="31" width="820" height="1"/>
			</line>
			<textField>
				<reportElement x="27" y="11" width="157" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="15" isUnderline="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{deviceTypeName}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="235" y="12" width="111" height="20"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微软雅黑" size="15"/>
				</textElement>
				<textFieldExpression class="java.lang.Long"><![CDATA[$F{alarmNumber}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<summary>
		<band height="449">
			<staticText>
				<reportElement x="0" y="0" width="144" height="25"/>
				<textElement>
					<font fontName="微软雅黑" size="18"/>
				</textElement>
				<text><![CDATA[二、报警记录图表]]></text>
			</staticText>
			<pie3DChart>
				<chart>
					<reportElement key="" x="45" y="35" width="678" height="397"/>
					<chartTitle/>
					<chartSubtitle/>
					<chartLegend/>
				</chart>
				<pieDataset>
					<keyExpression><![CDATA[$F{deviceTypeName} + " "]]></keyExpression>
					<valueExpression><![CDATA[$F{alarmNumber}]]></valueExpression>
					<labelExpression><![CDATA[$F{deviceTypeName}+"  "+$F{alarmNumPercent}]]></labelExpression>
				</pieDataset>
				<pie3DPlot>
					<plot foregroundAlpha="0.5"/>
				</pie3DPlot>
			</pie3DChart>
		</band>
	</summary>
</jasperReport>