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.

409 lines
16 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports
  5. http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
  6. name="AttendanceSheet"
  7. pageWidth="1008"
  8. pageHeight="612"
  9. orientation="Landscape"
  10. leftMargin="20"
  11. rightMargin="20"
  12. topMargin="20"
  13. bottomMargin="20"
  14. columnWidth="968">
  15. <!-- PROPERTIES -->
  16. <property name="net.sf.jasperreports.awt.ignore.missing.font" value="true"/>
  17. <property name="net.sf.jasperreports.default.font.name" value="Helvetica"/>
  18. <!-- PARAMETERS -->
  19. <!-- <parameter name="constituency" class="java.lang.String"/>
  20. <parameter name="training_center_name" class="java.lang.String"/>
  21. <parameter name="training_center_address" class="java.lang.String"/>
  22. <parameter name="category" class="java.lang.String"/>-->
  23. <field name="category" class="java.lang.String"/>
  24. <field name="training_center_name" class="java.lang.String"/>
  25. <field name="training_center_address" class="java.lang.String"/>
  26. <field name="constituency" class="java.lang.String"/>
  27. <field name="constituency_no" class="java.lang.String"/>
  28. <!-- FIELDS -->
  29. <field name="slno" class="java.lang.String"/>
  30. <field name="unique_no" class="java.lang.String"/>
  31. <field name="hallno" class="java.lang.String"/>
  32. <field name="name" class="java.lang.String"/>
  33. <field name="designation" class="java.lang.String"/>
  34. <field name="address1" class="java.lang.String"/>
  35. <field name="address2" class="java.lang.String"/>
  36. <field name="address3" class="java.lang.String"/>
  37. <field name="pincode" class="java.lang.String"/>
  38. <field name="r_mobile_no" class="java.lang.String"/>
  39. <field name="img_full_path" class="java.lang.String"/>
  40. <field name="office_name" class="java.lang.String"/>
  41. <field name="batch" class="java.lang.String"/>
  42. <!-- <field name="img_full_path" class="java.lang.Object"/>-->
  43. <!-- PAGE HEADER -->
  44. <!--<pageHeader>
  45. <band height="110">
  46. <staticText>
  47. <reportElement x="0" y="0" width="968" height="25"/>
  48. <textElement textAlignment="Center">
  49. <font size="14" isBold="true"/>
  50. </textElement>
  51. <text><![CDATA[POLLING PERSONNEL FIRST DAY TRAINING ATTENDANCE SHEET]]></text>
  52. </staticText>
  53. <textField>
  54. <reportElement x="0" y="35" width="120" height="15"/>
  55. <textElement><font isBold="true"/></textElement>
  56. <textFieldExpression><![CDATA["CONSTITUENCY :"]]></textFieldExpression>
  57. </textField>
  58. <textField>
  59. <reportElement x="130" y="35" width="600" height="15"/>
  60. <textFieldExpression><![CDATA[$P{constituency}]]></textFieldExpression>
  61. </textField>
  62. <textField>
  63. <reportElement x="0" y="55" width="120" height="15"/>
  64. <textElement><font isBold="true"/></textElement>
  65. <textFieldExpression><![CDATA["TRAINING CENTER :"]]></textFieldExpression>
  66. </textField>
  67. <textField>
  68. <reportElement x="130" y="55" width="800" height="15"/>
  69. <textFieldExpression><![CDATA[$P{training_center_name}]]></textFieldExpression>
  70. </textField>
  71. <textField>
  72. <reportElement x="130" y="70" width="800" height="15"/>
  73. <textFieldExpression><![CDATA[$P{training_center_address}]]></textFieldExpression>
  74. </textField>
  75. <textField>
  76. <reportElement x="0" y="90" width="120" height="15"/>
  77. <textElement><font isBold="true"/></textElement>
  78. <textFieldExpression><![CDATA["CATEGORY :"]]></textFieldExpression>
  79. </textField>
  80. <textField>
  81. <reportElement x="130" y="90" width="600" height="15"/>
  82. <textFieldExpression><![CDATA[$P{category}]]></textFieldExpression>
  83. </textField>
  84. </band>
  85. </pageHeader>-->
  86. <!-- ================= GROUP (NEW PAGE PER CATEGORY) ================= -->
  87. <group name="CategoryGroup" isStartNewPage="true">
  88. <!--<groupExpression><![CDATA[$F{category} + "-" + $F{hallno}]]></groupExpression>-->
  89. <groupExpression><![CDATA[$F{hallno}]]></groupExpression>
  90. </group>
  91. <!-- ================= PAGE HEADER ================= -->
  92. <pageHeader>
  93. <band height="125">
  94. <!-- TITLE -->
  95. <staticText>
  96. <reportElement x="0" y="0" width="968" height="25"/>
  97. <textElement textAlignment="Center">
  98. <font size="14" isBold="true"/>
  99. </textElement>
  100. <text><![CDATA[Micro Observer FIRST DAY TRAINING ATTENDANCE SHEET]]></text>
  101. </staticText>
  102. <!-- BATCH RIGHT CORNER -->
  103. <textField>
  104. <reportElement x="700" y="35" width="150" height="20"/>
  105. <textElement textAlignment="Right">
  106. <font size="12" isBold="true"/>
  107. </textElement>
  108. <textFieldExpression><![CDATA[
  109. "BATCH : " + ($F{batch} == null ? "" : $F{batch})
  110. ]]></textFieldExpression>
  111. </textField>
  112. <!-- <staticText>
  113. <reportElement x="0" y="35" width="140" height="15"/>
  114. <textElement><font isBold="true"/></textElement>
  115. <text><![CDATA[CONSTITUENCY :]]></text>
  116. </staticText>
  117. <textField>
  118. <reportElement x="150" y="35" width="600" height="15"/>
  119. <textFieldExpression><![CDATA[$F{constituency_no} + " - " + $F{constituency}
  120. ]]></textFieldExpression>
  121. </textField>-->
  122. <!-- TRAINING CENTER -->
  123. <!-- <staticText>
  124. <reportElement x="0" y="55" width="140" height="15"/>
  125. <textElement><font isBold="true"/></textElement>
  126. <text><![CDATA[TRAINING CENTER :]]></text>
  127. </staticText>
  128. <textField>
  129. <reportElement x="150" y="55" width="800" height="15"/>
  130. <textFieldExpression><![CDATA["Amma Maligai Auditorium"]]></textFieldExpression>
  131. </textField>
  132. <textField>
  133. <reportElement x="150" y="70" width="800" height="30"/>
  134. <textFieldExpression><![CDATA[
  135. "Greater Chennai Corporation, 16, E.V.R Periyar Salai,\n" +
  136. "(Back Side of Ripon Buildings), Chennai - 600003"
  137. ]]></textFieldExpression>
  138. </textField>-->
  139. <!-- TRAINING CENTER LABEL -->
  140. <staticText>
  141. <reportElement x="0" y="35" width="150" height="20"/>
  142. <textElement>
  143. <font size="12" isBold="true"/>
  144. </textElement>
  145. <text><![CDATA[TRAINING CENTER]]></text>
  146. </staticText>
  147. <!-- COLON -->
  148. <staticText>
  149. <reportElement x="150" y="35" width="20" height="20"/>
  150. <textElement>
  151. <font size="12" isBold="true"/>
  152. </textElement>
  153. <text><![CDATA[:]]></text>
  154. </staticText>
  155. <!-- VALUE -->
  156. <textField isStretchWithOverflow="true">
  157. <reportElement x="170" y="35" width="780" height="20"/>
  158. <textElement>
  159. <font size="12"/>
  160. </textElement>
  161. <textFieldExpression><![CDATA["Amma Maligai Auditorium"]]></textFieldExpression>
  162. </textField>
  163. <!-- ADDRESS (NEXT LINE) -->
  164. <textField isStretchWithOverflow="true">
  165. <reportElement x="170" y="50" width="780" height="30"/>
  166. <textElement>
  167. <font size="12"/>
  168. </textElement>
  169. <textFieldExpression><![CDATA[
  170. "Greater Chennai Corporation, 16, E.V.R Periyar Salai,\n" +
  171. "(Back Side of Ripon Buildings), Chennai - 600003"
  172. ]]></textFieldExpression>
  173. </textField>
  174. <!-- CATEGORY -->
  175. <!-- CATEGORY LABEL -->
  176. <staticText>
  177. <reportElement x="0" y="85" width="150" height="20"/>
  178. <textElement>
  179. <font size="12" isBold="true"/>
  180. </textElement>
  181. <text><![CDATA[CATEGORY]]></text>
  182. </staticText>
  183. <!-- COLON -->
  184. <staticText>
  185. <reportElement x="150" y="85" width="20" height="20"/>
  186. <textElement>
  187. <font size="12" isBold="true"/>
  188. </textElement>
  189. <text><![CDATA[:]]></text>
  190. </staticText>
  191. <!-- VALUE -->
  192. <textField>
  193. <reportElement x="170" y="85" width="300" height="20"/>
  194. <textElement>
  195. <font size="12"/>
  196. </textElement>
  197. <textFieldExpression><![CDATA["Micro Observer"]]></textFieldExpression>
  198. </textField>
  199. </band>
  200. </pageHeader>
  201. <!-- COLUMN HEADER -->
  202. <columnHeader>
  203. <band height="55">
  204. <staticText><reportElement x="0" y="0" width="50" height="55"/><box><pen lineWidth="0.8"/></box><textElement textAlignment="Center" verticalAlignment="Middle"><font isBold="true"/></textElement><text><![CDATA[S.NO
  205. 1]]></text></staticText>
  206. <staticText><reportElement x="50" y="0" width="70" height="55"/><box><pen lineWidth="0.8"/></box><textElement textAlignment="Center" verticalAlignment="Middle"><font isBold="true"/></textElement><text><![CDATA[UNIQUE NO
  207. 2]]></text></staticText>
  208. <!-- <staticText><reportElement x="120" y="0" width="60" height="55"/><box><pen lineWidth="0.8"/></box><textElement textAlignment="Center" verticalAlignment="Middle"><font isBold="true"/></textElement><text><![CDATA[HALL NO
  209. 3]]></text></staticText>-->
  210. <!-- REDUCED TO 280 -->
  211. <staticText><reportElement x="120" y="0" width="320" height="55"/><box><pen lineWidth="0.8"/></box><textElement textAlignment="Center" verticalAlignment="Middle"><font isBold="true"/></textElement><text><![CDATA[NAME, DESIGNATION AND ADDRESS
  212. 3]]></text></staticText>
  213. <staticText><reportElement x="440" y="0" width="100" height="55"/><box><pen lineWidth="0.8"/></box><textElement textAlignment="Center" verticalAlignment="Middle"><font isBold="true"/></textElement><text><![CDATA[PHOTO
  214. 4]]></text></staticText>
  215. <staticText><reportElement x="540" y="0" width="100" height="55"/><box><pen lineWidth="0.8"/></box><textElement textAlignment="Center" verticalAlignment="Middle"><font isBold="true"/></textElement><text><![CDATA[CELL NO
  216. 5]]></text></staticText>
  217. <staticText><reportElement x="640" y="0" width="60" height="55"/><box><pen lineWidth="0.8"/></box><textElement textAlignment="Center" verticalAlignment="Middle"><font isBold="true"/></textElement><text><![CDATA[FORM12 RECEIVED
  218. (YES/NO)
  219. 6]]></text></staticText>
  220. <!-- MORE SPACE -->
  221. <staticText><reportElement x="700" y="0" width="84" height="55"/><box><pen lineWidth="0.8"/></box><textElement textAlignment="Center" verticalAlignment="Middle"><font isBold="true"/></textElement><text><![CDATA[SIGNATURE
  222. 7]]></text></staticText>
  223. <staticText><reportElement x="784" y="0" width="180" height="55"/><box><pen lineWidth="0.8"/></box><textElement textAlignment="Center" verticalAlignment="Middle"><font isBold="true"/></textElement><text><![CDATA[REMARKS
  224. 8]]></text></staticText>
  225. </band>
  226. </columnHeader>
  227. <!-- DETAIL -->
  228. <detail>
  229. <band height="90">
  230. <textField><reportElement x="0" y="0" width="50" height="90"/><box><pen lineWidth="0.6"/></box><textElement textAlignment="Center" verticalAlignment="Middle"/><textFieldExpression><![CDATA[$F{slno}]]></textFieldExpression></textField>
  231. <textField><reportElement x="50" y="0" width="70" height="90"/><box><pen lineWidth="0.6"/></box><textElement textAlignment="Center" verticalAlignment="Middle"/><textFieldExpression><![CDATA[$F{unique_no}]]></textFieldExpression></textField>
  232. <!-- <textField><reportElement x="120" y="0" width="60" height="90"/><box><pen lineWidth="0.6"/></box><textElement textAlignment="Center" verticalAlignment="Middle"/><textFieldExpression><![CDATA[$F{hallno}]]></textFieldExpression></textField>-->
  233. <textField isStretchWithOverflow="true">
  234. <reportElement x="120" y="0" width="320" height="90"/>
  235. <box><pen lineWidth="0.6"/></box>
  236. <textElement markup="styled">
  237. <paragraph leftIndent="8"/>
  238. </textElement>
  239. <!--<textFieldExpression><![CDATA[
  240. $F{name} + "\n\n" +
  241. "<style isBold=\"true\">" + $F{designation} + "</style>\n" +
  242. ($F{office_name} == null ? "" : $F{office_name}.replace("&", "&amp;") + " ") +
  243. ($F{address1} == null ? "" : $F{address1}.replace("&", "&amp;")) + " " +
  244. ($F{address2} == null ? "" : $F{address2}.replace("&", "&amp;")) + " " +
  245. ($F{address3} == null ? "" : $F{address3}.replace("&", "&amp;")) + " " +
  246. ($F{pincode} == null ? "" : $F{pincode}.replace("&", "&amp;"))
  247. ]]></textFieldExpression>-->
  248. <textFieldExpression><![CDATA[
  249. ($F{name} == null ? "" : $F{name}.toUpperCase()) + "\n\n" +
  250. "<style isBold=\"true\">" +
  251. ($F{designation} == null ? "" : $F{designation}.toUpperCase()) +
  252. "</style>\n" +
  253. ($F{office_name} == null ? "" : $F{office_name}.toUpperCase().replace("&", "&amp;") + " ") +
  254. ($F{address1} == null ? "" : $F{address1}.toUpperCase().replace("&", "&amp;") + " ") +
  255. ($F{address2} == null ? "" : $F{address2}.toUpperCase().replace("&", "&amp;") + " ") +
  256. ($F{address3} == null ? "" : $F{address3}.toUpperCase().replace("&", "&amp;") + " ") +
  257. ($F{pincode} == null ? "" : $F{pincode}.toUpperCase().replace("&", "&amp;"))
  258. ]]></textFieldExpression>
  259. </textField>
  260. <!-- <image scaleImage="FillFrame"
  261. hAlign="Center"
  262. vAlign="Middle"
  263. onErrorType="Blank">
  264. <reportElement x="440" y="0"
  265. width="100"
  266. height="90"/>
  267. <box>
  268. <pen lineWidth="0.6"/>
  269. </box>
  270. <imageExpression><![CDATA[
  271. $F{img_full_path} == null
  272. ? null
  273. : new java.net.URL($F{img_full_path})
  274. ]]></imageExpression>
  275. </image>-->
  276. <image scaleImage="FillFrame" onErrorType="Blank">
  277. <reportElement x="440" y="0" width="100" height="90">
  278. <printWhenExpression><![CDATA[$F{img_full_path} != null]]></printWhenExpression>
  279. </reportElement>
  280. <box>
  281. <pen lineWidth="0.6"/>
  282. </box>
  283. <imageExpression><![CDATA[
  284. new java.net.URL($F{img_full_path})
  285. ]]></imageExpression>
  286. </image>
  287. <staticText>
  288. <reportElement x="440" y="0" width="100" height="90">
  289. <printWhenExpression><![CDATA[$F{img_full_path} == null]]></printWhenExpression>
  290. </reportElement>
  291. <box>
  292. <pen lineWidth="0.6"/>
  293. </box>
  294. <textElement textAlignment="Center" verticalAlignment="Middle">
  295. <font size="10" isBold="true"/>
  296. </textElement>
  297. <text><![CDATA[No Photo Available]]></text>
  298. </staticText>
  299. <!-- <staticText><reportElement x="440" y="0" width="100" height="90"/><box><pen lineWidth="0.6"/></box></staticText>-->
  300. <textField><reportElement x="540" y="0" width="100" height="90"/><box><pen lineWidth="0.6"/></box><textElement textAlignment="Center" verticalAlignment="Middle" />
  301. <!--- <textFieldExpression><![CDATA[$F{r_mobile_no}]]></textFieldExpression>-->
  302. <textFieldExpression><![CDATA[$F{r_mobile_no} == null ? "-" : $F{r_mobile_no}]]></textFieldExpression>
  303. </textField>
  304. <staticText><reportElement x="640" y="0" width="60" height="90"/><box><pen lineWidth="0.6"/></box></staticText>
  305. <staticText><reportElement x="700" y="0" width="84" height="90"/><box><pen lineWidth="0.6"/></box></staticText>
  306. <staticText><reportElement x="784" y="0" width="180" height="90"/><box><pen lineWidth="0.6"/></box></staticText>
  307. </band>
  308. </detail>
  309. <pageFooter>
  310. <band height="20">
  311. <textField isStretchWithOverflow="true">
  312. <reportElement x="0" y="5" width="700" height="15"/>
  313. <textElement textAlignment="Left">
  314. <font isBold="true"/>
  315. </textElement>
  316. <textFieldExpression><![CDATA[
  317. "Note: Respective Micro Observers must fill the columns DESIGNATION, PHOTO, CELL NO before signing the attendance"
  318. ]]></textFieldExpression>
  319. </textField>
  320. <textField>
  321. <reportElement x="768" y="5" width="200" height="15"/>
  322. <textElement textAlignment="Right">
  323. <font isBold="true"/>
  324. </textElement>
  325. <textFieldExpression><![CDATA["PAGE NUMBER : " + $V{PAGE_NUMBER}]]></textFieldExpression>
  326. </textField>
  327. </band>
  328. </pageFooter>
  329. </jasperReport>