-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathHelpTopics.jrxml
303 lines (302 loc) · 12.9 KB
/
HelpTopics.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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.2.1.final using JasperReports Library version 6.2.1 -->
<!-- 2016-05-06T11:39:41 -->
<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="HelpTopics" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="7a5c9b49-9dc5-422a-ac69-e92cf61ef530">
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="osTicketProduction"/>
<property name="ireport.jasperserver.url" value="http://localhost:8080/jasperserver/"/>
<property name="ireport.jasperserver.user" value="jasperadmin"/>
<property name="ireport.jasperserver.report.resource" value="/reports/HelpTopics_files/main_jrxml"/>
<property name="ireport.jasperserver.reportUnit" value="/reports/HelpTopics"/>
<style name="Title" forecolor="#FFFFFF" fontName="Times New Roman" fontSize="50" isBold="false"/>
<style name="SubTitle" forecolor="#CCCCCC" fontName="Times New Roman" fontSize="18" isBold="false"/>
<style name="Column header" forecolor="#666666" fontName="Times New Roman" fontSize="14" isBold="true"/>
<style name="Detail" mode="Transparent" fontName="Times New Roman"/>
<style name="Row" mode="Transparent" fontName="Times New Roman" pdfFontName="Times-Roman">
<conditionalStyle>
<conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression>
<style mode="Opaque" backcolor="#F0EFEF"/>
</conditionalStyle>
</style>
<parameter name="ticketStartDate" class="java.lang.String"/>
<parameter name="ticketEndDate" class="java.lang.String"/>
<queryString>
<![CDATA[SELECT
ht.topic, d.dept_name, p.priority_desc, ts.state, CONCAT_WS(',', sf.lastname, sf.firstname) as staff_member,
t.number,
u.name,
lsit.extra,
t.created,
t.ticket_id
FROM
ost_ticket t
LEFT JOIN
ost_user u ON t.user_id = u.id
LEFT JOIN
ost_staff sf ON t.staff_id = sf.staff_id
LEFT JOIN
ost_department d ON t.dept_id = d.dept_id
LEFT JOIN
ost_ticket__cdata tcd ON t.ticket_id = tcd.ticket_id
LEFT JOIN
ost_list_items lsit ON SUBSTRING_INDEX(tcd.location, ' ', 1) = lsit.id
LEFT JOIN
ost_help_topic ht ON t.topic_id = ht.topic_id
LEFT JOIN
ost_ticket_status ts ON t.status_id = ts.id
LEFT JOIN
ost_ticket_priority p ON tcd.priority = p.priority_id
WHERE
t.created BETWEEN $P{ticketStartDate} AND $P{ticketEndDate}
ORDER BY ht.topic, d.dept_name, sf.lastname, sf.firstname, t.created DESC, u.name]]>
</queryString>
<field name="topic" class="java.lang.String"/>
<field name="dept_name" class="java.lang.String"/>
<field name="priority_desc" class="java.lang.String"/>
<field name="state" class="java.lang.String"/>
<field name="staff_member" class="java.lang.String"/>
<field name="number" class="java.lang.String"/>
<field name="name" class="java.lang.String"/>
<field name="extra" class="java.lang.String"/>
<field name="created" class="java.sql.Timestamp"/>
<field name="ticket_id" class="java.lang.Long"/>
<group name="HelpTopicGroupHeading" isStartNewPage="true">
<groupExpression><![CDATA[$F{topic}]]></groupExpression>
<groupHeader>
<band height="27">
<frame>
<reportElement mode="Opaque" x="0" y="3" width="721" height="24" forecolor="#B89F7D" backcolor="#000000" uuid="f24569ed-2518-465a-a480-0c195aacd180"/>
<textField isStretchWithOverflow="true">
<reportElement key="" style="Row" x="2" y="0" width="111" height="24" printWhenGroupChanges="HelpTopicGroupHeading" forecolor="#FFFFFF" backcolor="#050000" uuid="5b7282d2-5169-4db4-b85a-e2391d4d4e66"/>
<textElement>
<font fontName="Verdana" size="16" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{topic}]]></textFieldExpression>
</textField>
</frame>
<rectangle>
<reportElement x="725" y="3" width="77" height="24" backcolor="#666666" uuid="70e1e931-2edd-4f3d-b09b-b9da04709f25"/>
<graphicElement>
<pen lineWidth="0.0"/>
</graphicElement>
</rectangle>
</band>
</groupHeader>
<groupFooter>
<band height="6"/>
</groupFooter>
</group>
<group name="Group2">
<groupExpression><![CDATA[$F{dept_name}]]></groupExpression>
<groupHeader>
<band height="30">
<textField>
<reportElement positionType="Float" x="0" y="4" width="802" height="26" forecolor="#000000" uuid="c09ae599-41a3-4b19-8a1e-72af405a3627"/>
<textElement>
<font fontName="Times New Roman" size="16" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{dept_name}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<group name="staff_member">
<groupExpression><![CDATA[$F{staff_member}]]></groupExpression>
</group>
<group name="Group3">
<groupExpression><![CDATA[$F{staff_member}]]></groupExpression>
<groupHeader>
<band height="20">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
<textField>
<reportElement x="99" y="0" width="100" height="20" uuid="b29fbafb-ff93-46f0-b864-e8c80ba023c7"/>
<textElement>
<font size="12"/>
</textElement>
<textFieldExpression><![CDATA[$F{staff_member}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="50"/>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="104" splitType="Stretch">
<frame>
<reportElement mode="Opaque" x="0" y="0" width="802" height="66" backcolor="#000000" uuid="d8d9e644-3a32-491d-97cb-a277aff17133"/>
<staticText>
<reportElement style="Title" x="0" y="0" width="370" height="66" uuid="27d8f6ee-f0a9-44f6-a160-1763c3b00f30"/>
<box topPadding="4" leftPadding="4" bottomPadding="4" rightPadding="4"/>
<textElement verticalAlignment="Bottom">
<font isBold="false"/>
</textElement>
<text><![CDATA[Help Desk]]></text>
</staticText>
<staticText>
<reportElement style="SubTitle" x="370" y="37" width="316" height="29" uuid="cfa21334-0634-4605-9ea7-aca4981f67e4"/>
<textElement textAlignment="Right">
<font size="22" isBold="false"/>
</textElement>
<text><![CDATA[Tickets by Help Topic]]></text>
</staticText>
</frame>
<frame>
<reportElement mode="Opaque" x="0" y="70" width="801" height="32" forecolor="#000000" backcolor="#CC0000" uuid="b0c895f6-6dbd-477d-9858-9ad66af087e1"/>
<textField pattern="EEEEE dd MMMMM yyyy">
<reportElement x="553" y="12" width="144" height="20" forecolor="#FFFFFF" uuid="a33fce3b-20c1-4696-873a-fe134d1e7d88"/>
<textElement textAlignment="Right">
<font size="12"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</frame>
<image>
<reportElement x="490" y="8" width="311" height="29" uuid="cb88599a-cc90-436c-addf-f3a4ea6e2fcc"/>
<imageExpression><![CDATA["logo.jpg"]]></imageExpression>
</image>
</band>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="18" splitType="Stretch">
<staticText>
<reportElement style="Column header" x="0" y="0" width="113" height="18" forecolor="#000000" uuid="cea82a83-e7a2-479b-a607-685ddc2dce7e"/>
<textElement>
<font isBold="false"/>
</textElement>
<text><![CDATA[Priority]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="113" y="0" width="113" height="18" forecolor="#000000" uuid="9dd688e3-607e-457e-84c5-7b6cb94eaaf3"/>
<textElement>
<font isBold="false"/>
</textElement>
<text><![CDATA[Open/Closed]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="226" y="0" width="113" height="18" forecolor="#000000" uuid="26d0b71a-88b1-49ad-8c94-a64b3aeed02b"/>
<textElement>
<font isBold="false"/>
</textElement>
<text><![CDATA[Ticket#]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="339" y="0" width="113" height="18" forecolor="#000000" uuid="439892c9-2fcb-4570-ac3b-b0a5b7ca4fb7"/>
<textElement>
<font isBold="false"/>
</textElement>
<text><![CDATA[User]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="452" y="0" width="113" height="18" forecolor="#000000" uuid="4e950a7f-2c12-4a8d-afd9-67f9a371b3cd"/>
<textElement>
<font isBold="false"/>
</textElement>
<text><![CDATA[Location]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="565" y="0" width="113" height="18" forecolor="#000000" uuid="24202742-5281-4dc6-871d-66ffc0e91f6b"/>
<textElement>
<font isBold="false"/>
</textElement>
<text><![CDATA[Ticket Created]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="23" splitType="Stretch">
<frame>
<reportElement style="Row" mode="Opaque" x="0" y="0" width="797" height="18" uuid="34a2ae4b-4055-476b-8676-d499f6af510b"/>
<textField isStretchWithOverflow="true">
<reportElement style="Detail" positionType="Float" x="0" y="0" width="113" height="18" uuid="49ea6070-6c8e-4796-b97e-128bf6a3de89"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{priority_desc}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement style="Detail" positionType="Float" x="113" y="0" width="113" height="18" uuid="a644f234-8b84-4813-aebd-a88a0571f3a0"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{state}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement style="Detail" positionType="Float" x="226" y="0" width="113" height="18" uuid="5ebe484a-7568-4eab-8ca8-2236409ad9fb"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{number}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement style="Detail" positionType="Float" x="339" y="0" width="113" height="18" uuid="4fa6dc10-ef6d-4c97-b54d-15024b996138"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement style="Detail" positionType="Float" x="452" y="0" width="113" height="18" uuid="6b99a6b9-3089-4fc0-92ca-c8766be5ae8c"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{extra}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement style="Detail" positionType="Float" x="565" y="0" width="113" height="18" uuid="8f05ddc3-b116-4365-9d81-e072d28ab380"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{created}]]></textFieldExpression>
</textField>
</frame>
</band>
</detail>
<columnFooter>
<band height="7" splitType="Stretch">
<line>
<reportElement positionType="FixRelativeToBottom" x="0" y="3" width="555" height="1" uuid="501ac6c4-e9d4-43cb-ba6b-7f2f44394cf3"/>
<graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement>
</line>
</band>
</columnFooter>
<pageFooter>
<band height="25" splitType="Stretch">
<frame>
<reportElement mode="Opaque" x="0" y="0" width="802" height="25" forecolor="#D0B48E" backcolor="#000000" uuid="ffb10ec8-0371-4545-8eaa-96d62ad3cec0"/>
<textField evaluationTime="Report">
<reportElement style="Column header" x="757" y="3" width="40" height="20" forecolor="#FFFFFF" uuid="b5521ea6-5f36-4864-856f-58d0bcd011f2"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Column header" x="677" y="3" width="80" height="20" forecolor="#FFFFFF" uuid="e625ea3c-1741-4cfe-81cf-fbbdd00162c8"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
</textField>
<textField pattern="EEEEE dd MMMMM yyyy">
<reportElement style="Column header" x="2" y="3" width="197" height="20" forecolor="#FFFFFF" uuid="0c9f7e91-d3f5-47f9-82b7-0b2b3a43a5d6"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</frame>
</band>
</pageFooter>
<summary>
<band splitType="Stretch"/>
</summary>
</jasperReport>