<?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="FGStockOutTraceabilityReport" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c40e235b-365d-48a0-a1b8-a8e0ece2cdd3"> <property name="com.jaspersoft.studio.unit." value="pixel"/> <property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/> <property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/> <subDataset name="Dataset1" uuid="dfaf2f9f-3937-4f84-9b1f-fd0ecf2f1ee9"> <queryString> <![CDATA[]]> </queryString> </subDataset> <parameter name="stockSubCategory" class="java.lang.String"> <defaultValueExpression><![CDATA["stockSubCategory"]]></defaultValueExpression> </parameter> <parameter name="date" class="java.lang.String"> <defaultValueExpression><![CDATA["date"]]></defaultValueExpression> </parameter> <parameter name="stockCategory" class="java.lang.String"> <defaultValueExpression><![CDATA["stockCategory"]]></defaultValueExpression> </parameter> <parameter name="reportDate" class="java.lang.String"/> <parameter name="reportTime" class="java.lang.String"/> <parameter name="deliveryPeriodStart" class="java.lang.String"/> <parameter name="deliveryPeriodEnd" class="java.lang.String"/> <parameter name="year" class="java.lang.String"/> <parameter name="itemNo" class="java.lang.String"> <defaultValueExpression><![CDATA["itemCode"]]></defaultValueExpression> </parameter> <parameter name="lastOutDateStart" class="java.lang.String"> <parameterDescription><![CDATA["lastOutDateStart"]]></parameterDescription> </parameter> <parameter name="lastOutDateEnd" class="java.lang.String"> <parameterDescription><![CDATA["lastOutDateStart"]]></parameterDescription> </parameter> <queryString> <![CDATA[]]> </queryString> <field name="deliveryDate" class="java.lang.String"/> <field name="itemNo" class="java.lang.String"> <property name="com.jaspersoft.studio.field.name" value="code"/> <property name="com.jaspersoft.studio.field.label" value="code"/> <property name="com.jaspersoft.studio.field.tree.path" value="items"/> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="itemName" class="java.lang.String"> <property name="com.jaspersoft.studio.field.name" value="name"/> <property name="com.jaspersoft.studio.field.label" value="name"/> <property name="com.jaspersoft.studio.field.tree.path" value="items"/> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="unitOfMeasure" class="java.lang.String"/> <field name="dnNo" class="java.lang.String"/> <field name="customerId" class="java.lang.String"/> <field name="customerName" class="java.lang.String"/> <field name="qty" class="java.lang.String"/> <field name="qtyNumeric" class="java.math.BigDecimal"/> <field name="truckNo" class="java.lang.String"/> <field name="driver" class="java.lang.String"/> <field name="deliveryOrderNo" class="java.lang.String"/> <field name="stockSubCategory" class="java.lang.String"/> <variable name="totalDeliveredQtyPerDeliveryOrder" class="java.math.BigDecimal" resetType="Group" resetGroup="itemGroup" incrementType="Group" incrementGroup="itemGroup" calculation="First"> <variableExpression><![CDATA[$F{qtyNumeric}]]></variableExpression> </variable> <group name="itemGroup"> <groupExpression><![CDATA[$F{itemNo}]]></groupExpression> <groupHeader> <band height="40"> <textField> <reportElement x="60" y="0" width="70" height="18" uuid="0817468e-35ff-45f0-b863-56dae97e9491"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{itemNo}]]></textFieldExpression> </textField> <textField> <reportElement x="200" y="0" width="210" height="18" uuid="d3aca20f-bd40-425e-86cf-20532a0ea21b"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{itemName}]]></textFieldExpression> </textField> <staticText> <reportElement x="100" y="20" width="140" height="18" uuid="0f570907-538c-4d1e-a261-5e275f2c3fbe"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[DN編號]]></text> </staticText> <staticText> <reportElement x="370" y="20" width="140" height="18" uuid="805d0e34-eda9-45a6-9490-83d2282db99b"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[門店名稱]]></text> </staticText> <staticText> <reportElement x="590" y="20" width="100" height="18" uuid="a9c9239d-6640-4196-9ce4-5be81522a99b"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[單位]]></text> </staticText> <staticText> <reportElement x="8" y="20" width="92" height="18" uuid="eb3506cf-6d61-4f70-901f-9576df17e66c"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[送貨日期]]></text> </staticText> <staticText> <reportElement x="690" y="20" width="100" height="18" uuid="0f680edd-048d-4ee1-8a00-2ec33eaf2c88"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[貨車]]></text> </staticText> <staticText> <reportElement x="510" y="20" width="80" height="18" uuid="aa069323-43b9-448c-840e-97054ad358ef"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[數量]]></text> </staticText> <staticText> <reportElement x="8" y="0" width="52" height="18" uuid="8aeef34c-491b-4cc6-b755-cf9a14d2b7d2"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[貨品編號:]]></text> </staticText> <staticText> <reportElement x="150" y="0" width="50" height="18" uuid="56a7a3e2-3e7b-4b4f-b30e-745066d75795"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[貨品名稱:]]></text> </staticText> <staticText> <reportElement x="240" y="20" width="130" height="18" uuid="d8d2ecce-255a-46a5-9ded-949df09192de"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[送貨訂單編號]]></text> </staticText> </band> </groupHeader> <groupFooter> <band height="24"> <staticText> <reportElement x="432" y="0" width="78" height="19" uuid="17df3070-773d-4bac-8045-6b59d8673bb4"/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10" isBold="true"/> </textElement> <text><![CDATA[每單交貨總數:]]></text> </staticText> <textField> <reportElement x="510" y="0" width="80" height="19" uuid="939e4c5b-176c-4154-aabd-bf06c2a0e594"/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{qtyNumeric} != null ? $F{qtyNumeric}.toString() : "0.00"]]></textFieldExpression> </textField> <line> <reportElement x="0" y="23" width="799" height="1" uuid="a7505f85-e928-4098-b9ba-644111766b84"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="0" y="19" width="799" height="1" uuid="69c9e68d-5a48-4284-b977-d12984bde9bc"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> </band> </groupFooter> </group> <pageHeader> <band height="80" splitType="Stretch"> <line> <reportElement x="-1" y="78" width="800" height="1" uuid="4d95bc98-ab81-4302-901a-4a3a34f11ba9"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <textField evaluationTime="Report"> <reportElement x="760" y="0" width="30" height="23" uuid="cfdec3a5-cc0f-421a-85ab-0eb49f96b7df"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> </textField> <staticText> <reportElement x="670" y="0" width="40" height="23" uuid="25f66e24-ad42-4ff6-ac86-ac1d1c6f3b03"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12"/> </textElement> <text><![CDATA[頁數]]></text> </staticText> <staticText> <reportElement x="740" y="0" width="20" height="23" uuid="e0a5035b-8a7c-49c0-b012-baf4325774b7"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12"/> </textElement> <text><![CDATA[/]]></text> </staticText> <textField> <reportElement x="710" y="0" width="30" height="23" uuid="997d0e6e-4e9a-4027-91b6-a2bdf02971fa"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> </textField> <staticText> <reportElement x="8" y="30" width="90" height="23" uuid="5f860195-7684-4674-bcba-5e3af52a55da"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12" isBold="true"/> </textElement> <text><![CDATA[報告日期:]]></text> </staticText> <textField> <reportElement x="711" y="53" width="79" height="23" uuid="b1bba504-8ae4-4985-909c-e598c2e6001b"/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$P{year}]]></textFieldExpression> </textField> <staticText> <reportElement x="640" y="30" width="71" height="23" uuid="0986cf8b-0ade-490d-bcb5-f2b1aceaab15"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12" isBold="true"/> </textElement> <text><![CDATA[報告時間:]]></text> </staticText> <staticText> <reportElement x="640" y="53" width="71" height="23" uuid="3e31701d-067e-46eb-b691-a88829562c15"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12" isBold="true"/> </textElement> <text><![CDATA[年份:]]></text> </staticText> <textField> <reportElement x="711" y="30" width="79" height="23" uuid="89bfffda-987c-4c76-bd0e-cfdb63d8bd0e"/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$P{reportTime}]]></textFieldExpression> </textField> <textField> <reportElement x="98" y="30" width="190" height="23" uuid="f89e2dd2-10de-4ec1-af98-4b8dfb4aac4c"/> <textElement verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$P{reportDate}]]></textFieldExpression> </textField> <staticText> <reportElement x="300" y="0" width="210" height="23" uuid="e34c7a3e-ea38-4b1b-bbdc-cfe4a5f969de"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="16" isBold="true"/> </textElement> <text><![CDATA[成品出倉報告]]></text> </staticText> <textField> <reportElement x="98" y="53" width="336" height="23" uuid="f855785e-5316-4c6c-a612-556f58dff006"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$P{lastOutDateStart} + " 到 " + $P{lastOutDateEnd}]]></textFieldExpression> </textField> <staticText> <reportElement x="8" y="53" width="90" height="23" uuid="1543eecf-9964-43b0-9103-e885209265e4"> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12" isBold="true"/> </textElement> <text><![CDATA[成品出倉日期:]]></text> </staticText> </band> </pageHeader> <detail> <band height="18" splitType="Stretch"> <textField> <reportElement x="8" y="0" width="92" height="18" uuid="7bb350a8-a127-4a47-aa7a-c86119864db9"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{deliveryDate}]]></textFieldExpression> </textField> <textField> <reportElement x="100" y="0" width="140" height="18" uuid="4b76d458-5318-402d-9828-c8e7d5a2197a"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{dnNo}]]></textFieldExpression> </textField> <textField> <reportElement x="370" y="0" width="140" height="18" uuid="f239f480-ae9f-45f3-a03e-562eab10c304"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{customerName}]]></textFieldExpression> </textField> <textField> <reportElement x="510" y="0" width="80" height="18" uuid="143501a2-6a00-4fe2-84c4-2689ad68cbc4"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{qty}]]></textFieldExpression> </textField> <textField> <reportElement x="590" y="0" width="100" height="18" uuid="1d124434-b3f7-48dd-89c2-29ea10c28941"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{unitOfMeasure}]]></textFieldExpression> </textField> <textField> <reportElement x="690" y="0" width="100" height="18" uuid="62c1bc61-05ac-450f-9385-75f2f1cba9fd"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{truckNo}]]></textFieldExpression> </textField> <textField> <reportElement x="240" y="0" width="130" height="18" uuid="8d42562f-843e-43e7-bb4a-5bf08f9adc89"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{deliveryOrderNo}]]></textFieldExpression> </textField> </band> </detail> </jasperReport>