-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathServiceRequestDetail.jrxml
110 lines (110 loc) · 5.04 KB
/
ServiceRequestDetail.jrxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 7.2.1.final using JasperReports Library version 6.6.0 -->
<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="ServiceRequestDetail" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
<subDataset name="piechartDataSet">
<field name="serie" class="java.lang.String"/>
<field name="value" class="java.lang.Double"/>
</subDataset>
<subDataset name="meterDataSet">
<field name="value" class="java.lang.Double"/>
</subDataset>
<parameter name="PIE_CHART_EMPLOYEE" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource" isForPrompting="false"/>
<parameter name="PIE_CHART_TYPE" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource" isForPrompting="false"/>
<parameter name="METER_NUM" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource" isForPrompting="false"/>
<parameter name="TYPE" class="java.lang.String" isForPrompting="false"/>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="55" splitType="Stretch">
<staticText>
<reportElement x="47" y="10" width="460" height="30"/>
<textElement textAlignment="Center">
<font size="18"/>
</textElement>
<text><![CDATA[Brigham and Women's Hospital]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band height="52" splitType="Stretch">
<textField>
<reportElement x="230" y="11" width="100" height="30"/>
<textElement>
<font fontName="Trebuchet MS" size="16"/>
</textElement>
<textFieldExpression><![CDATA[$P{TYPE}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<detail>
<band height="600" splitType="Stretch">
<pieChart>
<chart evaluationTime="Report">
<reportElement x="328" y="10" width="200" height="200"/>
<chartTitle/>
<chartSubtitle/>
<chartLegend/>
</chart>
<pieDataset>
<dataset>
<datasetRun subDataset="piechartDataSet">
<dataSourceExpression><![CDATA[$P{PIE_CHART_TYPE}]]></dataSourceExpression>
</datasetRun>
</dataset>
<keyExpression><![CDATA[$F{serie}]]></keyExpression>
<valueExpression><![CDATA[$F{value}]]></valueExpression>
</pieDataset>
<piePlot>
<plot/>
<itemLabel/>
</piePlot>
</pieChart>
<meterChart>
<chart evaluationTime="Report">
<reportElement x="197" y="250" width="167" height="160"/>
<chartTitle color="black"/>
<chartSubtitle color="black"/>
<chartLegend textColor="black"/>
</chart>
<valueDataset>
<dataset>
<datasetRun subDataset="meterDataSet">
<dataSourceExpression><![CDATA[$P{METER_NUM}]]></dataSourceExpression>
</datasetRun>
</dataset>
<valueExpression><![CDATA[$F{value}]]></valueExpression>
</valueDataset>
<meterPlot>
<plot/>
<valueDisplay/>
<dataRange>
<lowExpression><![CDATA[1]]></lowExpression>
<highExpression><![CDATA[20]]></highExpression>
</dataRange>
</meterPlot>
</meterChart>
<pieChart>
<chart evaluationTime="Report">
<reportElement x="36" y="10" width="200" height="200"/>
<chartTitle/>
<chartSubtitle/>
<chartLegend/>
</chart>
<pieDataset>
<dataset>
<datasetRun subDataset="piechartDataSet">
<dataSourceExpression><![CDATA[$P{PIE_CHART_EMPLOYEE}]]></dataSourceExpression>
</datasetRun>
</dataset>
<keyExpression><![CDATA[$F{serie}]]></keyExpression>
<valueExpression><![CDATA[$F{value}]]></valueExpression>
</pieDataset>
<piePlot>
<plot/>
<itemLabel/>
</piePlot>
</pieChart>
</band>
</detail>
</jasperReport>