<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.21.3.final using JasperReports Library version 6.21.3-4a3078d20785ebe464f18037d738d12fc98c13cf  -->
<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="TruckRoutingSummaryPDF" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="7d4d8f47-32ad-4c63-80ac-3df3f8492c62">
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
	<parameter name="TRUCK_ROUTE" class="java.lang.String"/>
	<parameter name="PLAN_TRUCK_SCHEDULE" class="java.lang.String"/>
	<parameter name="DEPARTURE_TIME" class="java.lang.String"/>
	<parameter name="REPORT_DATE" class="java.lang.String"/>
	<field name="dropOffSequence" class="java.lang.String"/>
	<field name="shopCode" class="java.lang.String"/>
	<field name="shopName" class="java.lang.String"/>
	<field name="address" class="java.lang.String"/>
	<field name="noOfCartons" class="java.lang.String"/>
	<group name="DropOffSequenceGroup">
		<groupExpression><![CDATA[$F{dropOffSequence}]]></groupExpression>
		<groupFooter>
			<band height="0"/>
		</groupFooter>
	</group>
	<title>
		<band height="28">
			<textField>
				<reportElement x="0" y="0" width="555" height="24" uuid="c1d2c147-cf58-41e6-9214-3f8251dd8aa5"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="18" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA["送貨路線摘要（" + $P{TRUCK_ROUTE} + "）"]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="27">
			<staticText>
				<reportElement x="0" y="0" width="130" height="22" uuid="9d3f5b73-ceaa-4653-909f-e8534d19c61e"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[計劃車次出發時間：]]></text>
			</staticText>
			<textField>
				<reportElement x="130" y="0" width="90" height="22" uuid="92335393-c410-4935-bd28-29a6175a9769"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="14"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DEPARTURE_TIME}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="430" y="0" width="45" height="22" uuid="8770a6e7-8a03-47ab-aa3c-00f02815d3b4"/>
				<textElement verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[日期：]]></text>
			</staticText>
			<textField>
				<reportElement x="475" y="0" width="80" height="22" uuid="1a628742-c50c-47a8-9f3d-df91dbc4b184"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="14"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{REPORT_DATE}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="0" y="22" width="555" height="1" uuid="593aa99a-7978-473d-b70f-93f79fb64289"/>
			</line>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="28">
			<staticText>
				<reportElement x="0" y="4" width="60" height="20" uuid="7dbf4192-d9d9-4f3e-95bc-d2700d4e5798"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[卸貨順序]]></text>
			</staticText>
			<staticText>
				<reportElement x="70" y="4" width="60" height="20" uuid="9c31b1d9-d866-4555-9ee9-57b924ff2540"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[店鋪代碼]]></text>
			</staticText>
			<staticText>
				<reportElement x="140" y="4" width="380" height="20" uuid="e7d49961-b1c8-40b0-a109-29da1142fc8d"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[店鋪名稱 & 地址]]></text>
			</staticText>
			<staticText>
				<reportElement x="520" y="4" width="35" height="20" uuid="8473f6ea-a5bd-4739-bc05-618c0afb06d2"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[箱數]]></text>
			</staticText>
			<line>
				<reportElement x="0" y="27" width="555" height="1" uuid="a370b2d2-4853-460a-900a-a15d2e1b8e94"/>
			</line>
		</band>
	</columnHeader>
	<detail>
		<band height="48" splitType="Stretch">
			<rectangle>
				<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="555" height="48" backcolor="#EFEFEF" uuid="a4c8bcb4-6fa2-4c97-b52d-507f629d54a0">
					<printWhenExpression><![CDATA[$V{REPORT_COUNT}.intValue() % 2 == 0]]></printWhenExpression>
				</reportElement>
				<graphicElement>
					<pen lineWidth="0.0"/>
				</graphicElement>
			</rectangle>
			<textField isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="0" y="6" width="60" height="36" uuid="31c8d1cf-9298-4866-9dca-d5bbaa08b277"/>
				<textElement textAlignment="Center" verticalAlignment="Top">
					<font fontName="微軟正黑體" size="14"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{dropOffSequence}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="70" y="6" width="60" height="36" uuid="f4ed6642-ce1c-4130-bf80-1024c5453db4"/>
				<textElement textAlignment="Center" verticalAlignment="Top">
					<font fontName="微軟正黑體" size="14"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{shopCode}]]></textFieldExpression>
			</textField>
			<textField textAdjust="StretchHeight" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="140" y="6" width="380" height="30" uuid="a44a3df4-a77f-4dda-8b82-d77b47e56eaf"/>
				<textElement verticalAlignment="Top">
					<font fontName="微軟正黑體" size="14"/>
				</textElement>
				<textFieldExpression><![CDATA[(($F{shopName} == null || $F{shopName}.trim().isEmpty()) ? "" : ("店鋪：" + $F{shopName}.trim()))
+ (($F{address} == null || $F{address}.trim().isEmpty()) ? "" : (
	(($F{shopName} == null || $F{shopName}.trim().isEmpty()) ? "" : "\n") + "地址：" + $F{address}.trim()
))]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="520" y="6" width="35" height="36" uuid="ff0c3947-9dd6-48eb-8ba9-83e47b7cd8e1"/>
				<textElement textAlignment="Right" verticalAlignment="Top">
					<font fontName="微軟正黑體" size="14"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{noOfCartons}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<pageFooter>
		<band height="24">
			<line>
				<reportElement x="0" y="0" width="555" height="1" uuid="de87272d-679e-4890-8c9c-c783bd687f9c"/>
			</line>
			<textField>
				<reportElement x="0" y="6" width="555" height="16" uuid="c5cacb11-0b81-4a67-b3c5-c7593d2f3270"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="微軟正黑體" size="9"/>
				</textElement>
				<textFieldExpression><![CDATA["第 " + $V{PAGE_NUMBER} + " 頁"]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
</jasperReport>
