You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

314 lines
11 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN"
  3. "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
  4. <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports
  7. http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
  8. name="noticesheet"
  9. pageWidth="595"
  10. pageHeight="842"
  11. columnWidth="555"
  12. leftMargin="20"
  13. rightMargin="20"
  14. topMargin="20"
  15. bottomMargin="20"
  16. uuid="a1b2c3d4-0000-1111-2222-333344445555">
  17. <!-- Properties -->
  18. <property name="net.sf.jasperreports.awt.ignore.missing.font" value="true"/>
  19. <property name="lenient" value="true"/>
  20. <property name="net.sf.jasperreports.markup" value="styled"/>
  21. <property name="net.sf.jasperreports.url.parameter.http.connectionTimeout" value="5000"/>
  22. <property name="net.sf.jasperreports.url.parameter.http.readTimeout" value="5000"/>
  23. <property name="net.sf.jasperreports.page.footer.evaluation.time.enabled" value="true"/>
  24. <!-- <property name="net.sf.jasperreports.print.keep.full.text" value="true"/>-->
  25. <!-- Normal Helvetica -->
  26. <style name="HelveticaNormal"
  27. fontSize="14"
  28. pdfFontName="Helvetica"
  29. pdfEncoding="Cp1252"
  30. isPdfEmbedded="false"/>
  31. <!-- Bold Helvetica -->
  32. <style name="HelveticaBold"
  33. style="HelveticaNormal"
  34. fontSize="16"
  35. pdfFontName="Helvetica-Bold"/>
  36. <!-- Helvetica Bold + Italic -->
  37. <style name="HelveticaBoldItalic"
  38. style="HelveticaNormal"
  39. fontSize="13"
  40. isItalic="true"
  41. pdfFontName="Helvetica-BoldOblique"/>
  42. <!-- ========================= FIELDS ========================= -->
  43. <!--<field name="slno" class="java.lang.Integer"/>-->
  44. <field name="unique_no" class="java.lang.String"/>
  45. <field name="poll_person" class="java.lang.String"/>
  46. <field name="category" class="java.lang.String"/>
  47. <field name="c_code" class="java.lang.Object"/>
  48. <field name="hall_no" class="java.lang.Object"/>
  49. <field name="constituency" class="java.lang.String"/>
  50. <field name="training_center" class="java.lang.String"/>
  51. <field name="training_center_address" class="java.lang.String"/>
  52. <field name="batch" class="java.lang.String"/>
  53. <!--<variable name="SNO_VAR" class="java.lang.Integer" -->
  54. <!-- calculation="Count" -->
  55. <!-- resetType="Group" -->
  56. <!-- resetGroup="HallGroup"-->
  57. <!-- incrementType="Group" -->
  58. <!-- incrementGroup="HallGroup">-->
  59. <!-- <variableExpression><![CDATA[$F{unique_no}]]></variableExpression>-->
  60. <!--</variable>-->
  61. <variable name="SNO_VAR" class="java.lang.Integer" calculation="Count" resetType="Group" resetGroup="HallGroup">
  62. <variableExpression><![CDATA[$F{unique_no}]]></variableExpression>
  63. </variable>
  64. <group name="HallGroup" isStartNewPage="true">
  65. <groupExpression><![CDATA[ $F{hall_no}.toString().replace("_PAGE_BREAK","")]]></groupExpression>
  66. <groupHeader>
  67. <band height="1"/>
  68. </groupHeader>
  69. </group>
  70. <!-- ========================= PAGE HEADER ========================= -->
  71. <pageHeader>
  72. <band height="115">
  73. <!-- TITLE -->
  74. <staticText>
  75. <reportElement x="0" y="0" width="555" height="25" style="HelveticaBold"/>
  76. <textElement textAlignment="Center">
  77. <font size="13"/>
  78. </textElement>
  79. <text><![CDATA[Tamil Nadu Legislative Assembly Elections 2026]]></text>
  80. </staticText>
  81. <!-- CONSTITUENCY -->
  82. <!--- <staticText>
  83. <reportElement x="25" y="25" width="150" height="25" style="HelveticaBold"/>
  84. <text><![CDATA[CONSTITUENCY]]></text>
  85. </staticText>
  86. <staticText>
  87. <reportElement x="180" y="25" width="20" height="25" style="HelveticaBold"/>
  88. <text><![CDATA[:]]></text>
  89. </staticText>-->
  90. <!-- TRAINING CENTER -->
  91. <!-- <staticText>
  92. <reportElement x="25" y="45" width="150" height="25" style="HelveticaBold"/>
  93. <text><![CDATA[TRAINING CENTER]]></text>
  94. </staticText>
  95. <staticText>
  96. <reportElement x="180" y="45" width="20" height="25" style="HelveticaBold"/>
  97. <text><![CDATA[:]]></text>
  98. </staticText>
  99. <textField>
  100. <reportElement x="190" y="45" width="340" height="25" style="HelveticaBold"
  101. positionType="Float"/>
  102. <textFieldExpression><![CDATA["Amma Maligai Auditorium"]]></textFieldExpression>
  103. </textField>
  104. <textField isStretchWithOverflow="true">
  105. <reportElement x="190" y="65" width="340" height="30"
  106. positionType="Float"/>
  107. <textElement>
  108. <font isBold="true"/>
  109. </textElement>
  110. <textFieldExpression><![CDATA[
  111. "Greater Chennai Corporation, 16, E.V.R Periyar Salai,\n" +
  112. "(Back Side of Ripon Buildings), Chennai - 600003"
  113. ]]></textFieldExpression>
  114. </textField>-->
  115. <!-- TRAINING CENTER LABEL -->
  116. <!-- TRAINING CENTER LABEL -->
  117. <!-- TRAINING CENTER LABEL -->
  118. <!-- TRAINING CENTER LABEL -->
  119. <staticText>
  120. <reportElement x="25" y="25" width="150" height="20"/>
  121. <textElement>
  122. <font size="12" isBold="true"/>
  123. </textElement>
  124. <text><![CDATA[TRAINING CENTER]]></text>
  125. </staticText>
  126. <!-- COLON -->
  127. <staticText>
  128. <reportElement x="140" y="25" width="20" height="20"/>
  129. <textElement>
  130. <font size="12" isBold="true"/>
  131. </textElement>
  132. <text><![CDATA[:]]></text>
  133. </staticText>
  134. <!-- VALUE -->
  135. <textField isStretchWithOverflow="true">
  136. <reportElement x="160" y="25" width="340" height="50"/>
  137. <textElement>
  138. <font size="12"/>
  139. </textElement>
  140. <textFieldExpression><![CDATA[
  141. "Amma Maligai Auditorium\n" +
  142. "Greater Chennai Corporation, 16, E.V.R Periyar Salai,\n" +
  143. "(Back Side of Ripon Buildings), Chennai - 600003"
  144. ]]></textFieldExpression>
  145. </textField>
  146. <!-- CATEGORY -->
  147. <!-- CATEGORY -->
  148. <!-- ONE LINE HEADER WITH LABELS -->
  149. <!--<textField>
  150. <reportElement x="25" y="89" width="505" height="20"/>
  151. <textElement>
  152. <font size="12" isBold="true"/>
  153. </textElement>
  154. <textFieldExpression><![CDATA[
  155. "CATEGORY : MOB BATCH : "
  156. + ($F{batch} == null ? "" : $F{batch})
  157. + " Hall NO: Amma Maligai Auditorium"
  158. ]]></textFieldExpression>
  159. </textField>-->
  160. <staticText>
  161. <reportElement x="25" y="89" width="150" height="24" style="HelveticaBold"/>
  162. <text><![CDATA[CATEGORY :]]></text>
  163. </staticText>
  164. <textField>
  165. <reportElement x="140" y="89" width="120" height="25" style="HelveticaNormal"/>
  166. <textFieldExpression><![CDATA["MOB"]]></textFieldExpression>
  167. </textField>
  168. <!-- HALL NO -->
  169. <staticText>
  170. <reportElement x="280" y="89" width="90" height="25" style="HelveticaBold"/>
  171. <text><![CDATA[BATCH : ]]></text>
  172. </staticText>
  173. <textField>
  174. <reportElement x="360" y="89" width="60" height="25" style="HelveticaNormal"/>
  175. <textFieldExpression><![CDATA[$F{batch}]]></textFieldExpression>
  176. </textField>
  177. </band>
  178. </pageHeader>
  179. <columnHeader>
  180. <band height="25">
  181. <!-- HEADER TEXT -->
  182. <staticText>
  183. <reportElement x="25" y="0" width="50" height="25" style="HelveticaBold"/>
  184. <textElement textAlignment="Center" verticalAlignment="Middle"/>
  185. <text><![CDATA[S.No]]></text>
  186. </staticText>
  187. <staticText>
  188. <reportElement x="75" y="0" width="120" height="25" style="HelveticaBold"/>
  189. <textElement textAlignment="Center" verticalAlignment="Middle"/>
  190. <text><![CDATA[UNIQUE]]></text>
  191. </staticText>
  192. <staticText>
  193. <reportElement x="195" y="0" width="335" height="25" style="HelveticaBold"/>
  194. <textElement textAlignment="Center" verticalAlignment="Middle"/>
  195. <text><![CDATA[NAME]]></text>
  196. </staticText>
  197. <!-- HEADER TOP LINE -->
  198. <line>
  199. <reportElement x="25" y="0" width="505" height="1"/>
  200. </line>
  201. <!-- HEADER BOTTOM LINE (THIS WAS MISSING) -->
  202. <line>
  203. <reportElement x="25" y="24" width="505" height="1"/>
  204. </line>
  205. <!-- HEADER LEFT BORDER -->
  206. <line>
  207. <reportElement x="25" y="0" width="1" height="25"/>
  208. </line>
  209. <!-- COLUMN SEPARATORS -->
  210. <line>
  211. <reportElement x="75" y="0" width="1" height="25"/>
  212. </line>
  213. <line>
  214. <reportElement x="195" y="0" width="1" height="25"/>
  215. </line>
  216. <!-- HEADER RIGHT BORDER -->
  217. <line>
  218. <reportElement x="530" y="0" width="1" height="25"/>
  219. </line>
  220. </band>
  221. </columnHeader>
  222. <!-- ========================= DETAIL (MAIN BODY) ========================= -->
  223. <detail>
  224. <band height="22">
  225. <!-- ✅ FILTER EMPTY / NULL ROWS -->
  226. <printWhenExpression><![CDATA[
  227. $F{poll_person} != null && $F{unique_no} != null
  228. ]]></printWhenExpression>
  229. <textField>
  230. <reportElement x="25" y="0" width="50" height="20" style="HelveticaNormal"/>
  231. <textElement textAlignment="Center" verticalAlignment="Middle"/>
  232. <textFieldExpression><![CDATA[$V{SNO_VAR}]]></textFieldExpression>
  233. </textField>
  234. <textField>
  235. <reportElement x="75" y="0" width="120" height="20" style="HelveticaNormal"/>
  236. <textElement verticalAlignment="Middle">
  237. <paragraph leftIndent="6"/>
  238. </textElement>
  239. <textFieldExpression><![CDATA[$F{unique_no}]]></textFieldExpression>
  240. </textField>
  241. <textField>
  242. <reportElement x="195" y="0" width="335" height="20" style="HelveticaNormal"/>
  243. <textElement verticalAlignment="Middle">
  244. <paragraph leftIndent="6"/>
  245. </textElement>
  246. <textFieldExpression><![CDATA[$F{poll_person}]]></textFieldExpression>
  247. </textField>
  248. <!-- ROW BOTTOM LINE -->
  249. <line>
  250. <reportElement x="25" y="21" width="505" height="1"/>
  251. </line>
  252. <!-- VERTICAL BORDERS -->
  253. <line><reportElement x="25" y="0" width="1" height="22"/></line>
  254. <line><reportElement x="75" y="0" width="1" height="22"/></line>
  255. <line><reportElement x="195" y="0" width="1" height="22"/></line>
  256. <line><reportElement x="530" y="0" width="1" height="22"/></line>
  257. </band>
  258. </detail>
  259. </jasperReport>