<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 7.0.3.final using JasperReports Library version 6.1.1  -->
<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="IDCard" pageWidth="243" pageHeight="153" columnWidth="243" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="477346fd-960f-44d2-84f5-bd25202741fc">
	<!-- <parameter name="jasper_batch_id" class="java.lang.String" /> -->
	<parameter name="baseDir" class="java.lang.String" />
	<parameter name="cardTemplate" class="java.lang.String" />
	<field name="currentMemberCard" class="java.lang.Object">
		<fieldDescription><![CDATA[_THIS]]></fieldDescription>
	</field>
	<!-- <parameter name="employer_logo" class="java.io.InputStream"/>
	<parameter name="employer_logo_ar" class="java.lang.Float"/>
	<parameter name="network_logo" class="java.io.InputStream"/> -->
	<!-- <queryString>
		<![CDATA[Select family_id From id_card_print_data Where jasper_batch_id = $P{jasper_batch_id}]]>
	</queryString> -->
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band splitType="Stretch"/>
	</title>
	<pageHeader>
		<band splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<!-- <group name="CardGroup" isStartNewPage="true">
		<groupExpression><![CDATA[$F{Card_ID}]]></groupExpression>
		<groupHeader>
			<band height="153">
				<subreport>
					<reportElement x="0" y="0" width="243" height="153" isPrintInFirstWholePage="true" uuid="4a5b91ca-ebdb-45be-8c16-f6ab6529dae7"/>
					<parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>
					<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{memberCardsDataList})]]></dataSourceExpression>
					<subreportExpression><![CDATA[$P{baseDir} + "/" + $P{cardTemplate} + "/" + $P{cardTemplate} + "Front.jasper"]]></subreportExpression>
				</subreport>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="153">
				<subreport>
					<reportElement x="0" y="0" width="243" height="153" isPrintInFirstWholePage="true" uuid="4a5b91ca-ebdb-45be-8c16-f6ab6529dae7"/>
					<parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>
					<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{memberCardsDataList})]]></dataSourceExpression>
					<subreportExpression><![CDATA[$P{baseDir} + "/" + $P{cardTemplate} + "/" + $P{cardTemplate} + "Back.jasper"]]></subreportExpression>
				</subreport>
			</band>
		</groupFooter>
	</group> -->
	<!-- <group name="CardFront" isStartNewPage="true">
        <groupExpression><![CDATA[$V{REPORT_COUNT}]]></groupExpression>
        <groupHeader>
            <band height="153">
                <subreport>
					<reportElement x="0" y="0" width="243" height="153" isPrintInFirstWholePage="true" uuid="4a5b91ca-ebdb-45be-8c16-f6ab6529dae7"/>
					<parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>
					<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{memberCardsDataList})]]></dataSourceExpression>
					<subreportExpression><![CDATA[$P{baseDir} + "/" + $P{cardTemplate} + "/" + $P{cardTemplate} + "Front.jasper"]]></subreportExpression>
				</subreport>
            </band>
        </groupHeader>
    </group>
	<group name="CardBack" isStartNewPage="true">
        <groupExpression><![CDATA[$V{REPORT_COUNT}]]></groupExpression>
        <groupHeader>
            <band height="153">
                <subreport>
					<reportElement x="0" y="0" width="243" height="153" isPrintInFirstWholePage="true" uuid="4a5b91ca-ebdb-45be-8c16-f6ab6529dae7"/>
					<parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>
					<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{memberCardsDataList})]]></dataSourceExpression>
					<subreportExpression><![CDATA[$P{baseDir} + "/" + $P{cardTemplate} + "/" + $P{cardTemplate} + "Back.jasper"]]></subreportExpression>
				</subreport>
            </band>
        </groupHeader>
    </group> -->
	<detail>
		<band height="153" splitType="Stretch">
            <!-- Subreport 1: Front Side -->
            <subreport>
                <reportElement x="0" y="0" width="243" height="153"/>
                <parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>
				<!-- <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{memberCardsDataList})]]></dataSourceExpression> -->
				<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(java.util.Collections.singletonList($F{currentMemberCard}))]]></dataSourceExpression>
				<!-- <dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRBeanCollectionDataSource)$F{memberCardData}).cloneDataSource()]]></dataSourceExpression> -->
				<subreportExpression><![CDATA[$P{baseDir} + "/" + $P{cardTemplate} + "/" + $P{cardTemplate} + "Front.jasper"]]></subreportExpression>
            </subreport>
		</band>
        <band height="153" splitType="Stretch">
            <subreport>
                <reportElement x="0" y="0" width="243" height="153"/>
                <parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>
				<!-- <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{memberCardsDataList})]]></dataSourceExpression> -->
				<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(java.util.Collections.singletonList($F{currentMemberCard}))]]></dataSourceExpression>
				<!-- <dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRBeanCollectionDataSource)$P{REPORT_DATA_SOURCE}).cloneDataSource()]]></dataSourceExpression> -->
				<subreportExpression><![CDATA[$P{baseDir} + "/" + $P{cardTemplate} + "/" + $P{cardTemplate} + "Back.jasper"]]></subreportExpression>
            </subreport>
        </band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band splitType="Stretch"/>
	</summary>
</jasperReport>
