-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
test1.jrxml
126 lines (124 loc) · 5.95 KB
/
test1.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?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" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20"
topMargin="20" bottomMargin="20" uuid="81afe112-ee1b-4443-8d1c-cb6d9ab95dd8">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="JsonArrayDataAdapter.xml"/>
<subDataset name="content" uuid="4563e834-a9e5-43b5-9f0a-824948c73c73">
<field name="NAME" class="java.lang.String">
<fieldDescription><![CDATA[name]]></fieldDescription>
</field>
<field name="LOCATION" class="java.lang.String">
<fieldDescription><![CDATA[location]]></fieldDescription>
</field>
<field name="DEPTCODE" class="java.lang.String">
<fieldDescription><![CDATA[deptCode]]></fieldDescription>
</field>
</subDataset>
<queryString language="json">
<![CDATA[]]>
</queryString>
<field name="NAME" class="java.lang.String">
<fieldDescription><![CDATA[NAME]]></fieldDescription>
</field>
<field name="LOCATION" class="java.lang.String">
<fieldDescription><![CDATA[LOCATION]]></fieldDescription>
</field>
<field name="DEPTCODE" class="java.lang.String">
<fieldDescription><![CDATA[DEPTCODE]]></fieldDescription>
</field>
<title>
<band height="70">
<line>
<reportElement x="0" y="0" width="515" height="1"/>
</line>
<staticText>
<reportElement x="0" y="10" width="515" height="30"/>
<textElement textAlignment="Center">
<font size="22" isBold="true"/>
</textElement>
<text><![CDATA[Departments By City]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band height="140">
<staticText>
<reportElement x="65" y="16" width="424" height="50"/>
<textElement textAlignment="Center">
<font size="26" isBold="true"/>
</textElement>
<text><![CDATA[Departments Report]]></text>
</staticText>
</band>
</pageHeader>
<columnHeader>
<band height="23">
<staticText>
<reportElement mode="Opaque" x="0" y="3" width="535" height="15"
forecolor="#FFFFFF" backcolor="#999999"/>
<box>
<bottomPen lineWidth="1.0" lineColor="#CCCCCC"/>
</box>
<text>
<![CDATA[]]>
</text>
</staticText>
<staticText>
<reportElement x="400" y="3" width="121" height="15"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<text><![CDATA[LOCATION]]></text>
</staticText>
<staticText>
<reportElement x="10" y="3" width="121" height="15"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<text><![CDATA[NAME]]></text>
</staticText>
<staticText>
<reportElement x="200" y="0" width="121" height="15"
forecolor="#FFFFFF" backcolor="#70A9A9"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<text><![CDATA[DEPTCODE]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="25" splitType="Stretch">
<componentElement>
<reportElement x="0" y="1" width="333" height="20" uuid="c3237c70-6b2e-43e3-aa21-5092d8b91afc"/>
<jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components"
xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"
printOrder="Vertical">
<datasetRun subDataset="content" uuid="f5fdc6a3-736f-43ce-b549-cd7332d19eb8">
<dataSourceExpression>
<![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("content")]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="25" width="600">
<textField>
<reportElement x="50" y="3" width="121" height="15"
uuid="07e3ff2a-3832-4b06-9275-cb1ee8e51cfe"/>
<textFieldExpression><![CDATA[$F{NAME}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="400" y="3" width="121" height="15"
uuid="07e3ff2a-3832-4b06-9275-cb1ee8e51cfe"/>
<textFieldExpression><![CDATA[$F{LOCATION}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="200" y="3" width="121" height="15"
uuid="07e3ff2a-3832-4b06-9275-cb1ee8e51cfe"/>
<textFieldExpression><![CDATA[$F{DEPTCODE}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
</band>
</detail>
</jasperReport>