-
Notifications
You must be signed in to change notification settings - Fork 35
/
sample7.jrxml
221 lines (218 loc) · 9.28 KB
/
sample7.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<?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="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="3831c998-ee37-4b41-a5df-19b06fa8c485">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["/var/www/PHPJasperXML/trunk/"]]></defaultValueExpression>
</parameter>
<queryString>
<![CDATA[SELECT * FROM (SELECT
sample1.`no` AS sample1_no,
sample1.`date` AS sample1_date,
sample1.`itemname` AS sample1_itemname,
sample1.`qty` AS sample1_qty,
sample1.`uom` AS sample1_uom
FROM
`sample1` sample1
UNION ALL
SELECT
sample1.`no` AS sample1_no,
sample1.`date` AS sample1_date,
sample1.`itemname` AS sample1_itemname,
sample1.`qty` AS sample1_qty,
sample1.`uom` AS sample1_uom
FROM
`sample1` sample1
UNION ALL
SELECT
sample1.`no` AS sample1_no,
sample1.`date` AS sample1_date,
sample1.`itemname` AS sample1_itemname,
sample1.`qty` AS sample1_qty,
sample1.`uom` AS sample1_uom
FROM
`sample1` sample1
) a order by a.sample1_date]]>
</queryString>
<field name="sample1_no" class="java.lang.Integer"/>
<field name="sample1_date" class="java.sql.Date"/>
<field name="sample1_itemname" class="java.lang.String"/>
<field name="sample1_qty" class="java.lang.Integer"/>
<field name="sample1_uom" class="java.lang.String"/>
<variable name="totalqty" class="java.lang.String" incrementType="Report" calculation="Sum">
<variableExpression><![CDATA[$F{sample1_qty}]]></variableExpression>
</variable>
<variable name="sample1" class="java.lang.String" incrementType="Group" incrementGroup="date" calculation="Sum">
<variableExpression><![CDATA[$F{sample1_qty}]]></variableExpression>
</variable>
<group name="date">
<groupExpression><![CDATA[$F{sample1_date}]]></groupExpression>
<groupHeader>
<band height="20">
<textField>
<reportElement uuid="2da554c0-176a-4b8b-bfdf-7f6e944bcda4" mode="Opaque" x="67" y="0" width="176" height="20" backcolor="#CC33FF"/>
<textElement/>
<textFieldExpression><![CDATA["Date: "+$F{sample1_date}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="38665aae-006c-4493-bed1-2bca5a232d38" mode="Transparent" x="243" y="0" width="212" height="20" backcolor="#999999"/>
<textElement textAlignment="Center">
<font isBold="true" isUnderline="true"/>
</textElement>
<text><![CDATA[item Name]]></text>
</staticText>
<staticText>
<reportElement uuid="38665aae-006c-4493-bed1-2bca5a232d38" mode="Transparent" x="455" y="0" width="100" height="20" backcolor="#999999"/>
<textElement textAlignment="Right">
<font isBold="true" isUnderline="true"/>
</textElement>
<text><![CDATA[Qty]]></text>
</staticText>
</band>
</groupHeader>
<groupFooter>
<band height="21">
<staticText>
<reportElement uuid="254eed63-bd09-42b7-a6a0-f4614aa8a6ef" mode="Opaque" x="67" y="0" width="100" height="20" backcolor="#FF9933"/>
<textElement/>
<text><![CDATA[Group Footer]]></text>
</staticText>
<textField>
<reportElement uuid="dfac2bea-20ad-443d-bf4a-b413fa683cde" x="455" y="0" width="100" height="20" forecolor="#66FF66"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{sample1}]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="60" splitType="Stretch">
<staticText>
<reportElement uuid="c4880168-aecb-4e3f-a3b9-96fe9ba1126e" mode="Opaque" x="0" y="0" width="174" height="60" backcolor="#CC0066"/>
<textElement/>
<text><![CDATA[TITLE Band]]></text>
</staticText>
<componentElement>
<reportElement uuid="eda370f8-3d81-4fb4-9056-16f3bd493c68" x="316" y="0" width="86" height="60"/>
<jr:DataMatrix xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" textPosition="bottom">
<jr:codeExpression><![CDATA["QR:12345"]]></jr:codeExpression>
</jr:DataMatrix>
</componentElement>
<componentElement>
<reportElement uuid="eda370f8-3d81-4fb4-9056-16f3bd493c68" x="455" y="0" width="76" height="60"/>
<jr:DataMatrix xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" textPosition="bottom">
<jr:codeExpression><![CDATA["12345"]]></jr:codeExpression>
</jr:DataMatrix>
</componentElement>
<componentElement>
<reportElement uuid="0e2ba44f-8ff4-4475-a20c-77737fc33016" x="191" y="13" width="108" height="35"/>
<jr:Code128 xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" textPosition="bottom">
<jr:codeExpression><![CDATA["12345"]]></jr:codeExpression>
</jr:Code128>
</componentElement>
</band>
</title>
<pageHeader>
<band height="20" splitType="Stretch">
<staticText>
<reportElement uuid="208b888a-f33c-4490-853c-24f7c65118f8" mode="Opaque" x="0" y="0" width="100" height="20" backcolor="#009999"/>
<textElement/>
<text><![CDATA[Page Header]]></text>
</staticText>
</band>
</pageHeader>
<columnHeader>
<band height="21" splitType="Stretch">
<staticText>
<reportElement uuid="99c8d442-58ef-46ed-8747-d5894606ddef" mode="Opaque" x="47" y="0" width="196" height="20" backcolor="#999999"/>
<textElement/>
<text><![CDATA[Column Header]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="32" splitType="Stretch">
<textField isStretchWithOverflow="true">
<reportElement uuid="e855159e-668e-4905-931a-bd316a8237ed" x="243" y="0" width="212" height="32"/>
<box>
<pen lineWidth="0.0"/>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
<rightPen lineWidth="0.0"/>
</box>
<textElement>
<font fontName="msungstdlight"/>
</textElement>
<textFieldExpression><![CDATA[$F{sample1_itemname}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="dfac2bea-20ad-443d-bf4a-b413fa683cde" x="455" y="0" width="100" height="32"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{sample1_qty}]]></textFieldExpression>
</textField>
<componentElement>
<reportElement uuid="0e2ba44f-8ff4-4475-a20c-77737fc33016" x="67" y="0" width="176" height="32"/>
<jr:Code128 xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" textPosition="none">
<jr:codeExpression><![CDATA[$F{sample1_itemname}]]></jr:codeExpression>
</jr:Code128>
</componentElement>
</band>
</detail>
<columnFooter>
<band height="20" splitType="Stretch">
<staticText>
<reportElement uuid="af6ec7f6-5bb4-4267-96e5-3354ba7a593a" mode="Opaque" x="47" y="0" width="100" height="20" forecolor="#FFFFFF" backcolor="#0000FF"/>
<textElement/>
<text><![CDATA[Column Footer]]></text>
</staticText>
</band>
</columnFooter>
<pageFooter>
<band height="20" splitType="Stretch">
<staticText>
<reportElement uuid="04d25ba8-02d3-48b6-a914-4c3028de91f1" mode="Opaque" x="0" y="0" width="174" height="20" backcolor="#CC0066"/>
<box>
<pen lineWidth="1.0"/>
<topPen lineWidth="1.0"/>
<leftPen lineWidth="1.0"/>
<bottomPen lineWidth="1.0"/>
<rightPen lineWidth="1.0"/>
</box>
<textElement/>
<text><![CDATA[Page Footer]]></text>
</staticText>
</band>
</pageFooter>
<lastPageFooter>
<band height="21">
<staticText>
<reportElement uuid="56078bbe-77e9-42f6-93d7-db18105ae768" mode="Opaque" x="0" y="0" width="133" height="20" backcolor="#99FF99"/>
<box>
<pen lineWidth="0.75"/>
<topPen lineWidth="0.75"/>
<leftPen lineWidth="0.75"/>
<bottomPen lineWidth="0.75"/>
<rightPen lineWidth="0.75"/>
</box>
<textElement>
<font size="14"/>
</textElement>
<text><![CDATA[Last Page Footer]]></text>
</staticText>
</band>
</lastPageFooter>
<summary>
<band height="28" splitType="Stretch">
<textField>
<reportElement uuid="dfac2bea-20ad-443d-bf4a-b413fa683cde" x="343" y="0" width="100" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$V{totalqty}]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>