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
436 lines
17 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN"
|
|
"http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
|
|
|
|
<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="2ndOrder"
|
|
|
|
pageWidth="595"
|
|
pageHeight="842"
|
|
|
|
columnWidth="555"
|
|
leftMargin="20"
|
|
rightMargin="20"
|
|
topMargin="20"
|
|
bottomMargin="20"
|
|
uuid="a1b2c3d4-0000-1111-2222-333344445555">
|
|
|
|
<!-- Properties -->
|
|
<property name="net.sf.jasperreports.awt.ignore.missing.font" value="true"/>
|
|
<property name="lenient" value="true"/>
|
|
<property name="net.sf.jasperreports.url.parameter.http.connectionTimeout" value="5000"/>
|
|
<property name="net.sf.jasperreports.url.parameter.http.readTimeout" value="5000"/>
|
|
|
|
<!-- Normal Helvetica -->
|
|
<style name="HelveticaNormal"
|
|
fontSize="11"
|
|
pdfFontName="Helvetica"
|
|
pdfEncoding="Cp1252"
|
|
isPdfEmbedded="false"/>
|
|
|
|
<!-- Bold Helvetica -->
|
|
<style name="HelveticaBold"
|
|
style="HelveticaNormal"
|
|
fontSize="12"
|
|
pdfEncoding="Cp1252"
|
|
pdfFontName="Helvetica-Bold"/>
|
|
|
|
<!-- Helvetica Bold + Italic -->
|
|
<style name="HelveticaBoldItalic"
|
|
style="HelveticaNormal"
|
|
fontSize="10"
|
|
|
|
isItalic="true"
|
|
pdfFontName="Helvetica-BoldOblique"/>
|
|
|
|
<!-- ========================= PARAMETERS ========================= -->
|
|
<parameter name="tickRowNum" class="java.lang.Integer"/>
|
|
<parameter name="tickImage" class="java.lang.Object"/>
|
|
|
|
<parameter name="signImage" class="java.lang.Object"/>
|
|
<parameter name="selectedSlno" class="java.lang.Integer"/>
|
|
|
|
<!-- ========================= FIELDS ========================= -->
|
|
|
|
<field name="slno" class="java.lang.Integer"/>
|
|
<field name="unique_no" class="java.lang.Integer"/>
|
|
<field name="allot_ac_no" class="java.lang.String"/>
|
|
<field name="ac_name" class="java.lang.String"/>
|
|
<field name="team_code" class="java.lang.Object"/>
|
|
<field name="hall_no" class="java.lang.Object"/>
|
|
<field name="category" class="java.lang.String"/>
|
|
<field name="poll_person" class="java.lang.String"/>
|
|
<field name="designation" class="java.lang.String"/>
|
|
<field name="r_mobile_no" class="java.lang.Object"/>
|
|
<field name="training_center_name" class="java.lang.String"/>
|
|
<field name="training_center_address" class="java.lang.String"/>
|
|
<field name="c_phone_no" class="java.lang.String"/>
|
|
<field name="img_full_path" class="java.lang.String"/>
|
|
<!-- <field name="img_full_path" class="java.lang.Object"/> -->
|
|
<field name="sign_full_path" class="java.lang.Object"/>
|
|
<field name="office" class="java.lang.String"/>
|
|
<field name="office_address" class="java.lang.String"/>
|
|
<field name="bus_stop" class="java.lang.String"/>
|
|
<field name="bus_no" class="java.lang.String"/>
|
|
|
|
<field name="slno_db" class="java.lang.Integer"/>
|
|
|
|
|
|
<!-- ========================= VARIABLE (MUST COME BEFORE GROUP) ========================= -->
|
|
<variable name="rowNum"
|
|
class="java.lang.Integer"
|
|
calculation="Count"
|
|
resetType="Group"
|
|
resetGroup="teamGroup">
|
|
<variableExpression><![CDATA[$F{team_code}]]></variableExpression>
|
|
</variable>
|
|
|
|
<variable name="globalRowNum"
|
|
class="java.lang.Integer"
|
|
calculation="Count"
|
|
resetType="Report">
|
|
<variableExpression><![CDATA[$F{team_code}]]></variableExpression>
|
|
</variable>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ========================= Group ========================= -->
|
|
<group name="teamGroup">
|
|
<groupExpression><![CDATA[$F{team_code}]]></groupExpression>
|
|
|
|
<!-- ================= GROUP HEADER ================= -->
|
|
<groupHeader>
|
|
<band height="25">
|
|
|
|
<textField>
|
|
<reportElement x="0" y="0" width="40" height="20" style="HelveticaBold"/>
|
|
<textFieldExpression><![CDATA[String.valueOf($F{allot_ac_no}) + " ."]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<textField>
|
|
<reportElement x="25" y="0" width="150" height="20" style="HelveticaBold"/>
|
|
<textFieldExpression><![CDATA[$F{ac_name}]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<staticText>
|
|
<reportElement x="200" y="0" width="150" height="20" style="HelveticaNormal"/>
|
|
<text><![CDATA[Assembly Constituency.]]></text>
|
|
</staticText>
|
|
|
|
<staticText>
|
|
<reportElement x="360" y="0" width="110" height="20" style="HelveticaBold"/>
|
|
<text><![CDATA[Team / Hall No:]]></text>
|
|
</staticText>
|
|
|
|
<textField>
|
|
<reportElement x="470" y="0" width="30" height="20" style="HelveticaBold"/>
|
|
<textFieldExpression><![CDATA[$F{team_code}]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<staticText>
|
|
<reportElement x="505" y="0" width="10" height="20" style="HelveticaBold"/>
|
|
<text><![CDATA[/]]></text>
|
|
</staticText>
|
|
|
|
<textField>
|
|
<reportElement x="515" y="0" width="40" height="20" style="HelveticaBold"/>
|
|
<textFieldExpression><![CDATA[$F{hall_no}]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<!-- underline -->
|
|
<line>
|
|
<reportElement x="0" y="22" width="555" height="1"/>
|
|
</line>
|
|
|
|
</band>
|
|
</groupHeader>
|
|
|
|
|
|
<!-- ================= GROUP FOOTER ================= -->
|
|
<groupFooter>
|
|
<band height="295">
|
|
|
|
<!-- ================= TRAINING INFO ================= -->
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement x="0" y="0" width="545" height="50"/>
|
|
<textElement verticalAlignment="Top" markup="html">
|
|
<paragraph firstLineIndent="45" leftIndent="10"/>
|
|
</textElement>
|
|
<textFieldExpression><![CDATA[
|
|
"Your training class will be held on "
|
|
+ "<b>15/04/2026</b>"
|
|
+ " at "
|
|
+ "<b>9 a.m</b>"
|
|
+ " in "
|
|
+ "<b>" + ($F{training_center_name} == null ? "" : $F{training_center_name}) + "</b>"
|
|
+ ", "
|
|
+ "<b>" + ($F{training_center_address} == null ? "" : $F{training_center_address}) + "</b>"
|
|
+ ". (Phone No : "
|
|
+ "<b>" + ($F{c_phone_no} == null ? "" : $F{c_phone_no}) + "</b>"
|
|
+ ")"
|
|
]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<!-- ================= SIGNATURE IMAGE (right side) ================= -->
|
|
<image scaleImage="RetainShape" hAlign="Center" onErrorType="Blank">
|
|
<reportElement x="300" y="50" width="220" height="55"/>
|
|
<imageExpression><![CDATA[$F{sign_full_path}]]></imageExpression>
|
|
</image>
|
|
|
|
<!-- ================= OFFICER TEXT (right side, below signature) ================= -->
|
|
<staticText>
|
|
<reportElement x="300" y="108" width="220" height="45"/>
|
|
<textElement textAlignment="Center" verticalAlignment="Top">
|
|
<font size="11" pdfFontName="Helvetica-Bold"/>
|
|
<paragraph lineSpacing="Single"/>
|
|
</textElement>
|
|
<text><![CDATA[DISTRICT ELECTION OFFICER &
|
|
COMMISSIONER
|
|
GREATER CHENNAI CORPORATION]]></text>
|
|
</staticText>
|
|
|
|
<!-- ================= NOTE TITLE (left side) ================= -->
|
|
<staticText>
|
|
<reportElement x="5" y="158" width="35" height="14" style="HelveticaBoldItalic"/>
|
|
<text><![CDATA[Note :]]></text>
|
|
</staticText>
|
|
|
|
<!-- ================= NOTES (left side) ================= -->
|
|
|
|
<!-- Note 1 -->
|
|
<staticText>
|
|
<reportElement x="40" y="158" width="15" height="14" style="HelveticaBoldItalic"/>
|
|
<text><![CDATA[1.]]></text>
|
|
</staticText>
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement x="55" y="158" width="490" height="14" style="HelveticaBoldItalic"/>
|
|
<textFieldExpression><![CDATA[
|
|
"Non compliance of the order is an offence punishable under sec 134 of R.P. Act 1951"
|
|
]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<!-- Note 2 -->
|
|
<staticText>
|
|
<reportElement x="5" y="174" width="15" height="14" positionType="Float" style="HelveticaBoldItalic"/>
|
|
<text><![CDATA[2.]]></text>
|
|
</staticText>
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement x="20" y="174" width="525" height="14" positionType="Float" style="HelveticaBoldItalic"/>
|
|
<textFieldExpression><![CDATA[
|
|
"Nearest Bus Stand " + $F{bus_stop} + " ; Bus Route : " + $F{bus_no} + "."
|
|
]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<!-- Note 3 -->
|
|
<staticText>
|
|
<reportElement x="5" y="206" width="15" height="14" positionType="Float" style="HelveticaBoldItalic"/>
|
|
<text><![CDATA[3.]]></text>
|
|
</staticText>
|
|
<staticText >
|
|
<reportElement x="20" y="206" width="525" height="30" style="HelveticaBoldItalic"/>
|
|
<text><![CDATA[Polling personnel appointed above, for whom image is missing are advised to furnish a passport size photograph.]]></text>
|
|
</staticText>
|
|
|
|
<!-- <staticText>
|
|
<reportElement x="5" y="194" width="15" height="14" positionType="Float" style="HelveticaBoldItalic"/>
|
|
<text><![CDATA[3.]]></text>
|
|
</staticText>
|
|
<staticText>
|
|
<reportElement x="20" y="194" width="525" height="30" positionType="Float" style="HelveticaBoldItalic"/>
|
|
<text><![CDATA[Polling personnel appointed above, for whom image is missing are advised to furnish a passport size photograph.]]></text>
|
|
</staticText> -->
|
|
|
|
<!-- Note 4 -->
|
|
<staticText>
|
|
<reportElement x="5" y="228" width="15" height="14" positionType="Float" style="HelveticaBoldItalic"/>
|
|
<text><![CDATA[4.]]></text>
|
|
</staticText>
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement x="20" y="228" width="525" height="14" positionType="Float" style="HelveticaBoldItalic"/>
|
|
<textFieldExpression><![CDATA[
|
|
"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."
|
|
]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<!-- Note 5 -->
|
|
<staticText>
|
|
<reportElement x="5" y="262" width="15" height="14" positionType="Float" style="HelveticaBoldItalic"/>
|
|
<text><![CDATA[5.]]></text>
|
|
</staticText>
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement x="20" y="262" width="525" height="14" positionType="Float" style="HelveticaBoldItalic"/>
|
|
<textFieldExpression><![CDATA[
|
|
"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."
|
|
]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<!-- ================= PAGE BREAK ================= -->
|
|
<break>
|
|
<reportElement x="0" y="292" width="1" height="1" positionType="Float"/>
|
|
</break>
|
|
|
|
</band>
|
|
</groupFooter>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<!-- ========================= PAGE HEADER ========================= -->
|
|
<pageHeader>
|
|
<band height="75">
|
|
|
|
<!-- Title -->
|
|
<staticText>
|
|
<reportElement x="0" y="0" width="555" height="26" style="HelveticaNormal"/>
|
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
|
<font size="14" />
|
|
</textElement>
|
|
<text><![CDATA[Order of Appointment of Presiding and Polling Officers]]></text>
|
|
</staticText>
|
|
|
|
<!-- Top horizontal line -->
|
|
<line>
|
|
<reportElement x="110" y="26" width="338" height="1"/>
|
|
<graphicElement>
|
|
<pen lineWidth="1.2"/>
|
|
</graphicElement>
|
|
</line>
|
|
|
|
<!-- Description text (MAX 2 LINES ONLY) -->
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement
|
|
x="0"
|
|
y="28"
|
|
width="545"
|
|
height="32"
|
|
style="HelveticaNormal"/>
|
|
|
|
<textElement verticalAlignment="Top">
|
|
<paragraph
|
|
firstLineIndent="10"
|
|
leftIndent="10"
|
|
lineSpacing="Single"/>
|
|
</textElement>
|
|
|
|
<textFieldExpression><![CDATA[
|
|
"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."
|
|
]]></textFieldExpression>
|
|
</textField>
|
|
|
|
</band>
|
|
</pageHeader>
|
|
|
|
<!-- ========================= DETAIL (MAIN BODY) ========================= -->
|
|
<detail>
|
|
<band height="68">
|
|
|
|
<textField>
|
|
<reportElement x="15" y="0" width="30" height="16" style="HelveticaBold"/>
|
|
<textFieldExpression><![CDATA[$V{rowNum} + ")"]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<textField>
|
|
<reportElement x="30" y="0" width="180" height="16" style="HelveticaBold"/>
|
|
<textFieldExpression><![CDATA[$F{category}]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<textField>
|
|
<reportElement x="150" y="0" width="250" height="16" style="HelveticaNormal"/>
|
|
<textFieldExpression><![CDATA[$F{poll_person}]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<!-- The actual photo -->
|
|
<image scaleImage="FillFrame" hAlign="Center" vAlign="Middle" onErrorType="Blank">
|
|
<reportElement x="450" y="5" width="50" height="50">
|
|
<printWhenExpression><![CDATA[$F{img_full_path} != null]]></printWhenExpression>
|
|
</reportElement>
|
|
<imageExpression><![CDATA[$F{img_full_path}]]></imageExpression>
|
|
</image>
|
|
|
|
|
|
<image scaleImage="RetainShape" onErrorType="Blank">
|
|
<reportElement x="535" y="5" width="25" height="25" positionType="Float">
|
|
<printWhenExpression><![CDATA[
|
|
$F{slno_db} != null && $P{selectedSlno} != null
|
|
&& $F{slno_db}.equals($P{selectedSlno})
|
|
]]></printWhenExpression>
|
|
</reportElement>
|
|
<imageExpression><![CDATA[$P{tickImage}]]></imageExpression>
|
|
</image>
|
|
|
|
<!-- "No Photo" frame -->
|
|
<frame>
|
|
<reportElement x="450" y="5" width="50" height="50">
|
|
<printWhenExpression><![CDATA[$F{img_full_path} == null]]></printWhenExpression>
|
|
</reportElement>
|
|
|
|
<!-- Border box -->
|
|
<rectangle>
|
|
<reportElement x="0" y="0" width="50" height="55"/>
|
|
</rectangle>
|
|
|
|
<!-- No Photo text -->
|
|
<!-- ✅ TEXT WITH WRAP -->
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement x="2" y="5" width="46" height="40"/>
|
|
|
|
<textElement textAlignment="Center" verticalAlignment="Middle">
|
|
<font size="7"/>
|
|
</textElement>
|
|
|
|
<textFieldExpression><![CDATA["No Photo Available"]]></textFieldExpression>
|
|
</textField>
|
|
|
|
</frame>
|
|
|
|
<!-- Tick mark: renders only for the matching person -->
|
|
<image scaleImage="RetainShape" onErrorType="Blank">
|
|
<reportElement x="500" y="5" width="30" height="30">
|
|
<printWhenExpression><![CDATA[$V{rowNum}.intValue() == $P{tickRowNum}.intValue()]]></printWhenExpression>
|
|
</reportElement>
|
|
<imageExpression><![CDATA[$P{tickImage}]]></imageExpression>
|
|
</image>
|
|
|
|
<textField>
|
|
<reportElement x="150" y="13" width="250" height="16" style="HelveticaNormal"/>
|
|
<textFieldExpression><![CDATA[$F{designation}]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<staticText>
|
|
<reportElement x="15" y="25" width="80" height="16" style="HelveticaBold"/>
|
|
<text><![CDATA[Unique No :]]></text>
|
|
</staticText>
|
|
|
|
<textField>
|
|
<reportElement x="95" y="25" width="120" height="16" style="HelveticaNormal"/>
|
|
<textFieldExpression><![CDATA[$F{unique_no}]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<textField isStretchWithOverflow="true">
|
|
<reportElement x="150" y="25" width="295" height="36" style="HelveticaNormal"/>
|
|
<textElement>
|
|
<font size="9"/>
|
|
</textElement>
|
|
<textFieldExpression><![CDATA[
|
|
($F{office} == null ? "" : $F{office})
|
|
+ "\n"
|
|
+ ($F{office_address} == null ? "" : $F{office_address})
|
|
+ "\nMobile No : " + ($F{r_mobile_no} == null ? "" : $F{r_mobile_no})
|
|
]]></textFieldExpression>
|
|
</textField>
|
|
|
|
<line>
|
|
<reportElement x="0" y="67" width="555" height="1" positionType="Float"/>
|
|
</line>
|
|
|
|
</band>
|
|
</detail>
|
|
</jasperReport>
|
|
|