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.

436 lines
17 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
  5. xmlns="http://jasperreports.sourceforge.net/jasperreports"
  6. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  7. xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports
  8. http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
  9. name="2ndOrder"
  10. pageWidth="595"
  11. pageHeight="842"
  12. columnWidth="555"
  13. leftMargin="20"
  14. rightMargin="20"
  15. topMargin="20"
  16. bottomMargin="20"
  17. uuid="a1b2c3d4-0000-1111-2222-333344445555">
  18. <!-- Properties -->
  19. <property name="net.sf.jasperreports.awt.ignore.missing.font" value="true"/>
  20. <property name="lenient" value="true"/>
  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. <!-- Normal Helvetica -->
  24. <style name="HelveticaNormal"
  25. fontSize="11"
  26. pdfFontName="Helvetica"
  27. pdfEncoding="Cp1252"
  28. isPdfEmbedded="false"/>
  29. <!-- Bold Helvetica -->
  30. <style name="HelveticaBold"
  31. style="HelveticaNormal"
  32. fontSize="12"
  33. pdfEncoding="Cp1252"
  34. pdfFontName="Helvetica-Bold"/>
  35. <!-- Helvetica Bold + Italic -->
  36. <style name="HelveticaBoldItalic"
  37. style="HelveticaNormal"
  38. fontSize="10"
  39. isItalic="true"
  40. pdfFontName="Helvetica-BoldOblique"/>
  41. <!-- ========================= PARAMETERS ========================= -->
  42. <parameter name="tickRowNum" class="java.lang.Integer"/>
  43. <parameter name="tickImage" class="java.lang.Object"/>
  44. <parameter name="signImage" class="java.lang.Object"/>
  45. <parameter name="selectedSlno" class="java.lang.Integer"/>
  46. <!-- ========================= FIELDS ========================= -->
  47. <field name="slno" class="java.lang.Integer"/>
  48. <field name="unique_no" class="java.lang.Integer"/>
  49. <field name="allot_ac_no" class="java.lang.String"/>
  50. <field name="ac_name" class="java.lang.String"/>
  51. <field name="team_code" class="java.lang.Object"/>
  52. <field name="hall_no" class="java.lang.Object"/>
  53. <field name="category" class="java.lang.String"/>
  54. <field name="poll_person" class="java.lang.String"/>
  55. <field name="designation" class="java.lang.String"/>
  56. <field name="r_mobile_no" class="java.lang.Object"/>
  57. <field name="training_center_name" class="java.lang.String"/>
  58. <field name="training_center_address" class="java.lang.String"/>
  59. <field name="c_phone_no" class="java.lang.String"/>
  60. <field name="img_full_path" class="java.lang.String"/>
  61. <!-- <field name="img_full_path" class="java.lang.Object"/> -->
  62. <field name="sign_full_path" class="java.lang.Object"/>
  63. <field name="office" class="java.lang.String"/>
  64. <field name="office_address" class="java.lang.String"/>
  65. <field name="bus_stop" class="java.lang.String"/>
  66. <field name="bus_no" class="java.lang.String"/>
  67. <field name="slno_db" class="java.lang.Integer"/>
  68. <!-- ========================= VARIABLE (MUST COME BEFORE GROUP) ========================= -->
  69. <variable name="rowNum"
  70. class="java.lang.Integer"
  71. calculation="Count"
  72. resetType="Group"
  73. resetGroup="teamGroup">
  74. <variableExpression><![CDATA[$F{team_code}]]></variableExpression>
  75. </variable>
  76. <variable name="globalRowNum"
  77. class="java.lang.Integer"
  78. calculation="Count"
  79. resetType="Report">
  80. <variableExpression><![CDATA[$F{team_code}]]></variableExpression>
  81. </variable>
  82. <!-- ========================= Group ========================= -->
  83. <group name="teamGroup">
  84. <groupExpression><![CDATA[$F{team_code}]]></groupExpression>
  85. <!-- ================= GROUP HEADER ================= -->
  86. <groupHeader>
  87. <band height="25">
  88. <textField>
  89. <reportElement x="0" y="0" width="40" height="20" style="HelveticaBold"/>
  90. <textFieldExpression><![CDATA[String.valueOf($F{allot_ac_no}) + " ."]]></textFieldExpression>
  91. </textField>
  92. <textField>
  93. <reportElement x="25" y="0" width="150" height="20" style="HelveticaBold"/>
  94. <textFieldExpression><![CDATA[$F{ac_name}]]></textFieldExpression>
  95. </textField>
  96. <staticText>
  97. <reportElement x="200" y="0" width="150" height="20" style="HelveticaNormal"/>
  98. <text><![CDATA[Assembly Constituency.]]></text>
  99. </staticText>
  100. <staticText>
  101. <reportElement x="360" y="0" width="110" height="20" style="HelveticaBold"/>
  102. <text><![CDATA[Team / Hall No:]]></text>
  103. </staticText>
  104. <textField>
  105. <reportElement x="470" y="0" width="30" height="20" style="HelveticaBold"/>
  106. <textFieldExpression><![CDATA[$F{team_code}]]></textFieldExpression>
  107. </textField>
  108. <staticText>
  109. <reportElement x="505" y="0" width="10" height="20" style="HelveticaBold"/>
  110. <text><![CDATA[/]]></text>
  111. </staticText>
  112. <textField>
  113. <reportElement x="515" y="0" width="40" height="20" style="HelveticaBold"/>
  114. <textFieldExpression><![CDATA[$F{hall_no}]]></textFieldExpression>
  115. </textField>
  116. <!-- underline -->
  117. <line>
  118. <reportElement x="0" y="22" width="555" height="1"/>
  119. </line>
  120. </band>
  121. </groupHeader>
  122. <!-- ================= GROUP FOOTER ================= -->
  123. <groupFooter>
  124. <band height="295">
  125. <!-- ================= TRAINING INFO ================= -->
  126. <textField isStretchWithOverflow="true">
  127. <reportElement x="0" y="0" width="545" height="50"/>
  128. <textElement verticalAlignment="Top" markup="html">
  129. <paragraph firstLineIndent="45" leftIndent="10"/>
  130. </textElement>
  131. <textFieldExpression><![CDATA[
  132. "Your training class will be held on "
  133. + "<b>15/04/2026</b>"
  134. + " at "
  135. + "<b>9 a.m</b>"
  136. + " in "
  137. + "<b>" + ($F{training_center_name} == null ? "" : $F{training_center_name}) + "</b>"
  138. + ", "
  139. + "<b>" + ($F{training_center_address} == null ? "" : $F{training_center_address}) + "</b>"
  140. + ". (Phone No : "
  141. + "<b>" + ($F{c_phone_no} == null ? "" : $F{c_phone_no}) + "</b>"
  142. + ")"
  143. ]]></textFieldExpression>
  144. </textField>
  145. <!-- ================= SIGNATURE IMAGE (right side) ================= -->
  146. <image scaleImage="RetainShape" hAlign="Center" onErrorType="Blank">
  147. <reportElement x="300" y="50" width="220" height="55"/>
  148. <imageExpression><![CDATA[$F{sign_full_path}]]></imageExpression>
  149. </image>
  150. <!-- ================= OFFICER TEXT (right side, below signature) ================= -->
  151. <staticText>
  152. <reportElement x="300" y="108" width="220" height="45"/>
  153. <textElement textAlignment="Center" verticalAlignment="Top">
  154. <font size="11" pdfFontName="Helvetica-Bold"/>
  155. <paragraph lineSpacing="Single"/>
  156. </textElement>
  157. <text><![CDATA[DISTRICT ELECTION OFFICER &
  158. COMMISSIONER
  159. GREATER CHENNAI CORPORATION]]></text>
  160. </staticText>
  161. <!-- ================= NOTE TITLE (left side) ================= -->
  162. <staticText>
  163. <reportElement x="5" y="158" width="35" height="14" style="HelveticaBoldItalic"/>
  164. <text><![CDATA[Note :]]></text>
  165. </staticText>
  166. <!-- ================= NOTES (left side) ================= -->
  167. <!-- Note 1 -->
  168. <staticText>
  169. <reportElement x="40" y="158" width="15" height="14" style="HelveticaBoldItalic"/>
  170. <text><![CDATA[1.]]></text>
  171. </staticText>
  172. <textField isStretchWithOverflow="true">
  173. <reportElement x="55" y="158" width="490" height="14" style="HelveticaBoldItalic"/>
  174. <textFieldExpression><![CDATA[
  175. "Non compliance of the order is an offence punishable under sec 134 of R.P. Act 1951"
  176. ]]></textFieldExpression>
  177. </textField>
  178. <!-- Note 2 -->
  179. <staticText>
  180. <reportElement x="5" y="174" width="15" height="14" positionType="Float" style="HelveticaBoldItalic"/>
  181. <text><![CDATA[2.]]></text>
  182. </staticText>
  183. <textField isStretchWithOverflow="true">
  184. <reportElement x="20" y="174" width="525" height="14" positionType="Float" style="HelveticaBoldItalic"/>
  185. <textFieldExpression><![CDATA[
  186. "Nearest Bus Stand " + $F{bus_stop} + " ; Bus Route : " + $F{bus_no} + "."
  187. ]]></textFieldExpression>
  188. </textField>
  189. <!-- Note 3 -->
  190. <staticText>
  191. <reportElement x="5" y="206" width="15" height="14" positionType="Float" style="HelveticaBoldItalic"/>
  192. <text><![CDATA[3.]]></text>
  193. </staticText>
  194. <staticText >
  195. <reportElement x="20" y="206" width="525" height="30" style="HelveticaBoldItalic"/>
  196. <text><![CDATA[Polling personnel appointed above, for whom image is missing are advised to furnish a passport size photograph.]]></text>
  197. </staticText>
  198. <!-- <staticText>
  199. <reportElement x="5" y="194" width="15" height="14" positionType="Float" style="HelveticaBoldItalic"/>
  200. <text><![CDATA[3.]]></text>
  201. </staticText>
  202. <staticText>
  203. <reportElement x="20" y="194" width="525" height="30" positionType="Float" style="HelveticaBoldItalic"/>
  204. <text><![CDATA[Polling personnel appointed above, for whom image is missing are advised to furnish a passport size photograph.]]></text>
  205. </staticText> -->
  206. <!-- Note 4 -->
  207. <staticText>
  208. <reportElement x="5" y="228" width="15" height="14" positionType="Float" style="HelveticaBoldItalic"/>
  209. <text><![CDATA[4.]]></text>
  210. </staticText>
  211. <textField isStretchWithOverflow="true">
  212. <reportElement x="20" y="228" width="525" height="14" positionType="Float" style="HelveticaBoldItalic"/>
  213. <textFieldExpression><![CDATA[
  214. "The 2nd repeat training for all polling officials shall be held on 19-04-2026(Sunday) at 09:00 AM in the same venue for which no separate orders will be issued."
  215. ]]></textFieldExpression>
  216. </textField>
  217. <!-- Note 5 -->
  218. <staticText>
  219. <reportElement x="5" y="262" width="15" height="14" positionType="Float" style="HelveticaBoldItalic"/>
  220. <text><![CDATA[5.]]></text>
  221. </staticText>
  222. <textField isStretchWithOverflow="true">
  223. <reportElement x="20" y="262" width="525" height="14" positionType="Float" style="HelveticaBoldItalic"/>
  224. <textFieldExpression><![CDATA[
  225. "The polling personnel allotted to the above Assembly Constituency should report to the same training centre on 22-04-2026 at 9am to collect their polling duty Orders."
  226. ]]></textFieldExpression>
  227. </textField>
  228. <!-- ================= PAGE BREAK ================= -->
  229. <break>
  230. <reportElement x="0" y="292" width="1" height="1" positionType="Float"/>
  231. </break>
  232. </band>
  233. </groupFooter>
  234. </group>
  235. <!-- ========================= PAGE HEADER ========================= -->
  236. <pageHeader>
  237. <band height="75">
  238. <!-- Title -->
  239. <staticText>
  240. <reportElement x="0" y="0" width="555" height="26" style="HelveticaNormal"/>
  241. <textElement textAlignment="Center" verticalAlignment="Middle">
  242. <font size="14" />
  243. </textElement>
  244. <text><![CDATA[Order of Appointment of Presiding and Polling Officers]]></text>
  245. </staticText>
  246. <!-- Top horizontal line -->
  247. <line>
  248. <reportElement x="110" y="26" width="338" height="1"/>
  249. <graphicElement>
  250. <pen lineWidth="1.2"/>
  251. </graphicElement>
  252. </line>
  253. <!-- Description text (MAX 2 LINES ONLY) -->
  254. <textField isStretchWithOverflow="true">
  255. <reportElement
  256. x="0"
  257. y="28"
  258. width="545"
  259. height="32"
  260. style="HelveticaNormal"/>
  261. <textElement verticalAlignment="Top">
  262. <paragraph
  263. firstLineIndent="10"
  264. leftIndent="10"
  265. lineSpacing="Single"/>
  266. </textElement>
  267. <textFieldExpression><![CDATA[
  268. "In pursuance of sub-section(1) and sub-section(3) of Section 26 of the Representation of the People Act, 1951 (43 of 1951). I hereby appoint the officers specified below as Presiding Officer and Polling Officers for General Elections to Tamil Nadu Legislative Assembly Election to be held on 23rd April, 2026."
  269. ]]></textFieldExpression>
  270. </textField>
  271. </band>
  272. </pageHeader>
  273. <!-- ========================= DETAIL (MAIN BODY) ========================= -->
  274. <detail>
  275. <band height="68">
  276. <textField>
  277. <reportElement x="15" y="0" width="30" height="16" style="HelveticaBold"/>
  278. <textFieldExpression><![CDATA[$V{rowNum} + ")"]]></textFieldExpression>
  279. </textField>
  280. <textField>
  281. <reportElement x="30" y="0" width="180" height="16" style="HelveticaBold"/>
  282. <textFieldExpression><![CDATA[$F{category}]]></textFieldExpression>
  283. </textField>
  284. <textField>
  285. <reportElement x="150" y="0" width="250" height="16" style="HelveticaNormal"/>
  286. <textFieldExpression><![CDATA[$F{poll_person}]]></textFieldExpression>
  287. </textField>
  288. <!-- The actual photo -->
  289. <image scaleImage="FillFrame" hAlign="Center" vAlign="Middle" onErrorType="Blank">
  290. <reportElement x="450" y="5" width="50" height="50">
  291. <printWhenExpression><![CDATA[$F{img_full_path} != null]]></printWhenExpression>
  292. </reportElement>
  293. <imageExpression><![CDATA[$F{img_full_path}]]></imageExpression>
  294. </image>
  295. <image scaleImage="RetainShape" onErrorType="Blank">
  296. <reportElement x="535" y="5" width="25" height="25" positionType="Float">
  297. <printWhenExpression><![CDATA[
  298. $F{slno_db} != null && $P{selectedSlno} != null
  299. && $F{slno_db}.equals($P{selectedSlno})
  300. ]]></printWhenExpression>
  301. </reportElement>
  302. <imageExpression><![CDATA[$P{tickImage}]]></imageExpression>
  303. </image>
  304. <!-- "No Photo" frame -->
  305. <frame>
  306. <reportElement x="450" y="5" width="50" height="50">
  307. <printWhenExpression><![CDATA[$F{img_full_path} == null]]></printWhenExpression>
  308. </reportElement>
  309. <!-- Border box -->
  310. <rectangle>
  311. <reportElement x="0" y="0" width="50" height="55"/>
  312. </rectangle>
  313. <!-- No Photo text -->
  314. <!-- ✅ TEXT WITH WRAP -->
  315. <textField isStretchWithOverflow="true">
  316. <reportElement x="2" y="5" width="46" height="40"/>
  317. <textElement textAlignment="Center" verticalAlignment="Middle">
  318. <font size="7"/>
  319. </textElement>
  320. <textFieldExpression><![CDATA["No Photo Available"]]></textFieldExpression>
  321. </textField>
  322. </frame>
  323. <!-- Tick mark: renders only for the matching person -->
  324. <image scaleImage="RetainShape" onErrorType="Blank">
  325. <reportElement x="500" y="5" width="30" height="30">
  326. <printWhenExpression><![CDATA[$V{rowNum}.intValue() == $P{tickRowNum}.intValue()]]></printWhenExpression>
  327. </reportElement>
  328. <imageExpression><![CDATA[$P{tickImage}]]></imageExpression>
  329. </image>
  330. <textField>
  331. <reportElement x="150" y="13" width="250" height="16" style="HelveticaNormal"/>
  332. <textFieldExpression><![CDATA[$F{designation}]]></textFieldExpression>
  333. </textField>
  334. <staticText>
  335. <reportElement x="15" y="25" width="80" height="16" style="HelveticaBold"/>
  336. <text><![CDATA[Unique No :]]></text>
  337. </staticText>
  338. <textField>
  339. <reportElement x="95" y="25" width="120" height="16" style="HelveticaNormal"/>
  340. <textFieldExpression><![CDATA[$F{unique_no}]]></textFieldExpression>
  341. </textField>
  342. <textField isStretchWithOverflow="true">
  343. <reportElement x="150" y="25" width="295" height="36" style="HelveticaNormal"/>
  344. <textElement>
  345. <font size="9"/>
  346. </textElement>
  347. <textFieldExpression><![CDATA[
  348. ($F{office} == null ? "" : $F{office})
  349. + "\n"
  350. + ($F{office_address} == null ? "" : $F{office_address})
  351. + "\nMobile No : " + ($F{r_mobile_no} == null ? "" : $F{r_mobile_no})
  352. ]]></textFieldExpression>
  353. </textField>
  354. <line>
  355. <reportElement x="0" y="67" width="555" height="1" positionType="Float"/>
  356. </line>
  357. </band>
  358. </detail>
  359. </jasperReport>