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.

303 lines
13 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="img_full_path" class="java.lang.Object"/>-->
  42. <!-- PAGE HEADER -->
  43. <!--<pageHeader>
  44. <band height="110">
  45. <staticText>
  46. <reportElement x="0" y="0" width="968" height="25"/>
  47. <textElement textAlignment="Center">
  48. <font size="14" isBold="true"/>
  49. </textElement>
  50. <text><![CDATA[POLLING PERSONNEL FIRST DAY TRAINING ATTENDANCE SHEET]]></text>
  51. </staticText>
  52. <textField>
  53. <reportElement x="0" y="35" width="120" height="15"/>
  54. <textElement><font isBold="true"/></textElement>
  55. <textFieldExpression><![CDATA["CONSTITUENCY :"]]></textFieldExpression>
  56. </textField>
  57. <textField>
  58. <reportElement x="130" y="35" width="600" height="15"/>
  59. <textFieldExpression><![CDATA[$P{constituency}]]></textFieldExpression>
  60. </textField>
  61. <textField>
  62. <reportElement x="0" y="55" width="120" height="15"/>
  63. <textElement><font isBold="true"/></textElement>
  64. <textFieldExpression><![CDATA["TRAINING CENTER :"]]></textFieldExpression>
  65. </textField>
  66. <textField>
  67. <reportElement x="130" y="55" width="800" height="15"/>
  68. <textFieldExpression><![CDATA[$P{training_center_name}]]></textFieldExpression>
  69. </textField>
  70. <textField>
  71. <reportElement x="130" y="70" width="800" height="15"/>
  72. <textFieldExpression><![CDATA[$P{training_center_address}]]></textFieldExpression>
  73. </textField>
  74. <textField>
  75. <reportElement x="0" y="90" width="120" height="15"/>
  76. <textElement><font isBold="true"/></textElement>
  77. <textFieldExpression><![CDATA["CATEGORY :"]]></textFieldExpression>
  78. </textField>
  79. <textField>
  80. <reportElement x="130" y="90" width="600" height="15"/>
  81. <textFieldExpression><![CDATA[$P{category}]]></textFieldExpression>
  82. </textField>
  83. </band>
  84. </pageHeader>-->
  85. <!-- ================= GROUP (NEW PAGE PER CATEGORY) ================= -->
  86. <group name="CategoryGroup" isStartNewPage="true">
  87. <groupExpression><![CDATA[$F{category} + "-" + $F{hallno}]]></groupExpression>
  88. </group>
  89. <!-- ================= PAGE HEADER ================= -->
  90. <pageHeader>
  91. <band height="125">
  92. <!-- TITLE -->
  93. <staticText>
  94. <reportElement x="0" y="0" width="968" height="25"/>
  95. <textElement textAlignment="Center">
  96. <font size="14" isBold="true"/>
  97. </textElement>
  98. <text><![CDATA[POLLING PERSONNEL FIRST DAY TRAINING ATTENDANCE SHEET]]></text>
  99. </staticText>
  100. <!-- CONSTITUENCY -->
  101. <staticText>
  102. <reportElement x="0" y="35" width="140" height="15"/>
  103. <textElement><font isBold="true"/></textElement>
  104. <text><![CDATA[CONSTITUENCY :]]></text>
  105. </staticText>
  106. <textField>
  107. <reportElement x="150" y="35" width="600" height="15"/>
  108. <textFieldExpression><![CDATA[$F{constituency_no} + " - " + $F{constituency}
  109. ]]></textFieldExpression>
  110. </textField>
  111. <!-- TRAINING CENTER -->
  112. <staticText>
  113. <reportElement x="0" y="55" width="140" height="15"/>
  114. <textElement><font isBold="true"/></textElement>
  115. <text><![CDATA[TRAINING CENTER :]]></text>
  116. </staticText>
  117. <textField>
  118. <reportElement x="150" y="55" width="800" height="15"/>
  119. <textFieldExpression><![CDATA[$F{training_center_name}]]></textFieldExpression>
  120. </textField>
  121. <textField>
  122. <reportElement x="150" y="70" width="800" height="15"/>
  123. <textFieldExpression><![CDATA[$F{training_center_address}]]></textFieldExpression>
  124. </textField>
  125. <!-- CATEGORY -->
  126. <staticText>
  127. <reportElement x="0" y="95" width="140" height="15"/>
  128. <textElement><font isBold="true"/></textElement>
  129. <text><![CDATA[CATEGORY :]]></text>
  130. </staticText>
  131. <textField>
  132. <reportElement x="150" y="95" width="600" height="15"/>
  133. <textFieldExpression><![CDATA[$F{category}]]></textFieldExpression>
  134. </textField>
  135. </band>
  136. </pageHeader>
  137. <!-- COLUMN HEADER -->
  138. <columnHeader>
  139. <band height="55">
  140. <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
  141. 1]]></text></staticText>
  142. <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
  143. 2]]></text></staticText>
  144. <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
  145. 3]]></text></staticText>
  146. <!-- REDUCED TO 280 -->
  147. <staticText><reportElement x="180" y="0" width="260" height="55"/><box><pen lineWidth="0.8"/></box><textElement textAlignment="Center" verticalAlignment="Middle"><font isBold="true"/></textElement><text><![CDATA[NAME, DESIGNATION AND ADDRESS
  148. 4]]></text></staticText>
  149. <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
  150. 5]]></text></staticText>
  151. <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
  152. 6]]></text></staticText>
  153. <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
  154. (YES/NO)
  155. 7]]></text></staticText>
  156. <!-- MORE SPACE -->
  157. <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
  158. 8]]></text></staticText>
  159. <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
  160. 9]]></text></staticText>
  161. </band>
  162. </columnHeader>
  163. <!-- DETAIL -->
  164. <detail>
  165. <band height="90">
  166. <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>
  167. <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>
  168. <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>
  169. <textField isStretchWithOverflow="true">
  170. <reportElement x="180" y="0" width="260" height="90"/>
  171. <box><pen lineWidth="0.6"/></box>
  172. <textElement markup="styled">
  173. <paragraph leftIndent="8"/>
  174. </textElement>
  175. <!-- <textFieldExpression><![CDATA[
  176. $F{name}+"\n"+
  177. "<b>"+$F{designation}+"</b>\n"+
  178. $F{address1}+", "+$F{address2}+", "+$F{address3}+" - "+$F{pincode}
  179. ]]></textFieldExpression>-->
  180. <textFieldExpression><![CDATA[
  181. $F{name} + "\n\n" +
  182. "<style isBold=\"true\">" + $F{designation} + "</style>\n" +
  183. ($F{office_name} == null ? "" : $F{office_name}.replace("&", "&amp;") + ", ") +
  184. ($F{address1} == null ? "" : $F{address1}.replace("&", "&amp;")) + ", " +
  185. ($F{address2} == null ? "" : $F{address2}.replace("&", "&amp;")) + ", " +
  186. ($F{address3} == null ? "" : $F{address3}.replace("&", "&amp;")) + " - " +
  187. ($F{pincode} == null ? "" : $F{pincode}.replace("&", "&amp;"))
  188. ]]></textFieldExpression>
  189. </textField>
  190. <image scaleImage="FillFrame"
  191. hAlign="Center"
  192. vAlign="Middle"
  193. onErrorType="Blank">
  194. <reportElement x="440" y="0"
  195. width="100"
  196. height="90"/>
  197. <box>
  198. <pen lineWidth="0.6"/>
  199. </box>
  200. <imageExpression><![CDATA[
  201. $F{img_full_path} == null
  202. ? null
  203. : new java.net.URL($F{img_full_path})
  204. ]]></imageExpression>
  205. <!--<imageExpression><![CDATA[
  206. $F{img_full_path} == null ? null :
  207. new java.io.ByteArrayInputStream((byte[])$F{img_full_path})
  208. ]]></imageExpression>-->
  209. </image>
  210. <!-- <staticText><reportElement x="440" y="0" width="100" height="90"/><box><pen lineWidth="0.6"/></box></staticText>-->
  211. <textField><reportElement x="540" y="0" width="100" height="90"/><box><pen lineWidth="0.6"/></box><textElement textAlignment="Center" />
  212. <!--- <textFieldExpression><![CDATA[$F{r_mobile_no}]]></textFieldExpression>-->
  213. <textFieldExpression><![CDATA[$F{r_mobile_no} == null ? "-" : $F{r_mobile_no}]]></textFieldExpression>
  214. </textField>
  215. <staticText><reportElement x="640" y="0" width="60" height="90"/><box><pen lineWidth="0.6"/></box></staticText>
  216. <staticText><reportElement x="700" y="0" width="84" height="90"/><box><pen lineWidth="0.6"/></box></staticText>
  217. <staticText><reportElement x="784" y="0" width="180" height="90"/><box><pen lineWidth="0.6"/></box></staticText>
  218. </band>
  219. </detail>
  220. <pageFooter>
  221. <band height="20">
  222. <textField isStretchWithOverflow="true">
  223. <reportElement x="0" y="5" width="700" height="15"/>
  224. <textElement textAlignment="Left">
  225. <font isBold="true"/>
  226. </textElement>
  227. <textFieldExpression><![CDATA[
  228. "Note: Respective Polling Officers must fill the columns DESIGNATION, PHOTO, CELL NO before signing the attendance"
  229. ]]></textFieldExpression>
  230. </textField>
  231. <textField>
  232. <reportElement x="768" y="5" width="200" height="15"/>
  233. <textElement textAlignment="Right">
  234. <font isBold="true"/>
  235. </textElement>
  236. <textFieldExpression><![CDATA["PAGE NUMBER : " + $V{PAGE_NUMBER}]]></textFieldExpression>
  237. </textField>
  238. </band>
  239. </pageFooter>
  240. </jasperReport>