<?xml version="1.0" encoding="UTF-8"?> <!-- Created with Jaspersoft Studio version 6.17.0.final using JasperReports Library version 6.17.0-6d93193241dd8cc42629e188b94f9e0bc5722efd --> <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="StockInTraceability" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="AllSectionsNoDetail" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="ed7bc020-85fe-4ae0-83d4-107bf939c670"> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <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="itemNo" class="java.lang.String"> <defaultValueExpression><![CDATA["itemCode"]]></defaultValueExpression> </parameter> <parameter name="reportDate" class="java.lang.String"/> <parameter name="reportTime" class="java.lang.String"/> <parameter name="lastInPeriodStart" class="java.lang.String"/> <parameter name="lastOutPeriodEnd" class="java.lang.String"/> <parameter name="lastInDateStart" class="java.lang.String"> <parameterDescription><![CDATA["lastInDateStart"]]></parameterDescription> </parameter> <parameter name="lastInDateEnd" class="java.lang.String"> <parameterDescription><![CDATA["lastInDateStart"]]></parameterDescription> </parameter> <queryString> <![CDATA[]]> </queryString> <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="stockSubCategory" class="java.lang.String"> <property name="com.jaspersoft.studio.field.name" value="categoryId"/> <property name="com.jaspersoft.studio.field.label" value="categoryId"/> <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="lotNo" class="java.lang.String"/> <field name="expiryDate" class="java.lang.String"/> <field name="iqcSampleQty" class="java.lang.String"/> <field name="iqcDefectQty" class="java.lang.String"/> <field name="iqcDefectPercentage" class="java.lang.String"/> <field name="iqcResult" class="java.lang.String"/> <field name="iqcRemarks" class="java.lang.String"/> <field name="storeLocation" class="java.lang.String"/> <field name="supplierID" class="java.lang.String"/> <field name="supplierName" class="java.lang.String"/> <field name="totalStockInQty" class="java.lang.String"/> <field name="totalIqcSampleQty" class="java.lang.String"/> <field name="totalIqcDefectQty" class="java.lang.String"/> <field name="stockInQty" class="java.lang.String"/> <group name="Group1" keepTogether="true"> <groupExpression><![CDATA[$F{itemNo}]]></groupExpression> <groupHeader> <band height="18"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <textField textAdjust="StretchHeight"> <reportElement isPrintRepeatedValues="false" x="10" y="0" width="579" height="18" uuid="c5c88ad4-dfc4-4952-b7f0-4a727151d6f4"/> <textElement textAlignment="Left" verticalAlignment="Top" markup="styled"> <font fontName="微軟正黑體" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{itemNo}+" "+$F{itemName}+" "+$F{unitOfMeasure}]]></textFieldExpression> </textField> </band> </groupHeader> <groupFooter> <band height="19"> <printWhenExpression><![CDATA[$V{Group1_COUNT} > 1]]></printWhenExpression> <staticText> <reportElement x="220" y="0" width="60" height="18" uuid="8d002bea-8762-4e6b-9101-35a570f55031"> <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="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[總入倉數量:]]></text> </staticText> <textField> <reportElement x="280" y="0" width="50" height="18" uuid="d98c4478-22bd-4fd6-9be4-b3777f91de6d"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{totalStockInQty}]]></textFieldExpression> </textField> <textField> <reportElement x="330" y="0" width="50" height="18" uuid="bac1f216-48f1-4b5b-af50-f8ba18b97b78"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{totalIqcSampleQty}]]></textFieldExpression> </textField> <textField> <reportElement x="380" y="0" width="50" height="18" uuid="1fb42453-c956-4a2b-8a04-fd297a980b38"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{totalIqcDefectQty}]]></textFieldExpression> </textField> <line> <reportElement x="0" y="18" width="799" height="1" uuid="231ae4f2-c8fd-4c40-ba92-5a2bdbdc6249"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="220" y="0" width="210" height="1" uuid="106fbbc0-1931-4b67-8733-adb5dcd6096f"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> </band> <band height="1"> <printWhenExpression><![CDATA[$V{Group1_COUNT} == 1]]></printWhenExpression> <line> <reportElement x="0" y="0" width="799" height="1" uuid="0cd77bca-3092-46e3-a512-aee6f2f115f4"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> </band> </groupFooter> </group> <pageHeader> <band height="109" splitType="Stretch"> <staticText> <reportElement x="335" y="0" width="100" height="23" uuid="15ab756b-0e92-466c-be47-112c2ee1aad1"> <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="16" isBold="true"/> </textElement> <text><![CDATA[入倉追蹤報告]]></text> </staticText> <staticText> <reportElement stretchType="RelativeToTallestObject" x="280" y="80" width="50" height="28" uuid="5c05c89c-843b-4fd6-928c-002c6a529679"> <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="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[入庫數量]]></text> </staticText> <staticText> <reportElement stretchType="RelativeToTallestObject" x="10" y="80" width="110" height="28" uuid="3fa7c301-1c2a-430b-8985-338ebf7aa6cf"> <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 stretchType="RelativeToTallestObject" x="690" y="80" width="108" height="28" uuid="db5b9c55-0185-420b-ba6c-0e10d154cc8a"> <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 stretchType="RelativeToTallestObject" x="220" y="80" width="60" height="28" uuid="cd7a146a-1af0-4428-9b88-dcb159691656"> <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 stretchType="RelativeToTallestObject" x="540" y="80" width="60" height="28" uuid="58b33148-a772-4295-b10a-718fccc89683"> <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 stretchType="RelativeToTallestObject" x="430" y="80" width="60" height="28" uuid="c70088ac-bcf1-48a1-bb82-ad238a3dbe70"> <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="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[入庫檢查 缺陷百分比]]></text> </staticText> <staticText> <reportElement stretchType="RelativeToTallestObject" x="600" y="80" width="80" height="28" uuid="c1d0f0dd-34d6-4716-90bd-deb94e5084d2"> <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 stretchType="RelativeToTallestObject" x="330" y="80" width="50" height="28" uuid="006c5557-c246-47cd-b599-4775f71cbf16"> <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="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[入庫檢查 樣品數量]]></text> </staticText> <staticText> <reportElement stretchType="RelativeToTallestObject" x="120" y="80" width="100" height="28" uuid="2f1e753f-ee01-42a1-a4e3-f75985403431"> <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 stretchType="RelativeToTallestObject" x="490" y="80" width="50" height="28" uuid="3c732314-35c2-42ad-98e6-ef42a512c233"> <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 stretchType="RelativeToTallestObject" x="380" y="80" width="50" height="28" uuid="1f82d706-0492-46e4-b692-dced5c97c824"> <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="Right" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="10"/> </textElement> <text><![CDATA[入庫檢查 缺陷數量]]></text> </staticText> <line> <reportElement x="0" y="108" width="799" height="1" uuid="3190fa6b-3b27-4639-8de6-c93c8438ce35"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <textField> <reportElement x="100" y="30" width="335" height="23" uuid="02dd23b6-c192-43e5-9e33-afbb0f517ffa"/> <textElement verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$P{reportDate}]]></textFieldExpression> </textField> <staticText> <reportElement x="640" y="29" width="68" height="23" uuid="20514f3e-91e7-4d98-ade8-725d4f390397"> <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> <line> <reportElement x="0" y="79" width="799" height="1" uuid="4ff25125-9aa9-4dae-8a3e-55ab708ed66a"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <textField> <reportElement x="100" y="53" width="560" height="23" uuid="e71f89ab-ac86-4736-88bf-9da220bea272"/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$P{lastInDateStart} + " 至 " + $P{lastInDateEnd}]]></textFieldExpression> </textField> <staticText> <reportElement x="677" y="0" width="40" height="23" uuid="2ebe654d-a62f-48a7-b5f5-af7e1089dc84"> <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="708" y="29" width="90" height="23" uuid="e751b9ba-1906-455c-a638-f3923a29c78b"/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="微軟正黑體" size="12" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$P{reportTime}]]></textFieldExpression> </textField> <textField> <reportElement x="717" y="0" width="30" height="23" uuid="40320740-c3b5-4288-b9bf-31b9b20a7f54"> <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="747" y="0" width="21" height="23" uuid="c541089c-26ea-476f-b79f-e6f5104e6e49"> <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="10" y="30" width="90" height="23" uuid="f57a2b35-2bb4-46cc-b4fc-80fc7adc8ee2"> <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> <staticText> <reportElement x="10" y="53" width="90" height="23" uuid="8c19e04a-12bc-4d58-9873-ffe83ae77811"> <property name="com.jaspersoft.studio.unit.y" value="pixel"/> <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="12" isBold="true"/> </textElement> <text><![CDATA[最後入倉日期:]]></text> </staticText> <textField evaluationTime="Report"> <reportElement x="768" y="0" width="30" height="23" uuid="3ef90e65-b07e-46d1-828a-7a345f96dc0d"> <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> <line> <reportElement x="0" y="75" width="799" height="1" uuid="87180acc-1475-4285-aba1-820625847d5c"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> </band> </pageHeader> <detail> <band height="20" splitType="Stretch"> <textField textAdjust="StretchHeight"> <reportElement x="10" y="2" width="110" height="18" uuid="2e173086-b353-417e-9883-5374e9207e86"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{dnNo}]]></textFieldExpression> </textField> <textField textAdjust="StretchHeight"> <reportElement x="120" y="2" width="100" height="18" uuid="ec54cf40-555d-4307-921e-23d2cc35418d"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{lotNo}]]></textFieldExpression> </textField> <textField textAdjust="StretchHeight"> <reportElement x="220" y="2" width="60" height="18" uuid="4c835a14-380f-46e3-a77e-6d61bbc6766a"/> <textElement textAlignment="Center" verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{expiryDate}]]></textFieldExpression> </textField> <textField textAdjust="StretchHeight"> <reportElement x="280" y="2" width="50" height="18" uuid="0e8b333b-88ec-4d30-8fca-b02bc906305f"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{stockInQty}]]></textFieldExpression> </textField> <textField textAdjust="StretchHeight"> <reportElement x="330" y="2" width="50" height="18" uuid="d6417d18-6b11-4964-8774-a8795bc0983b"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{iqcSampleQty}]]></textFieldExpression> </textField> <textField textAdjust="StretchHeight"> <reportElement x="380" y="2" width="50" height="18" uuid="5b94c23b-0ef3-4283-85ce-698ca4a2599e"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{iqcDefectQty}]]></textFieldExpression> </textField> <textField textAdjust="StretchHeight"> <reportElement x="430" y="2" width="60" height="18" uuid="de73b394-93be-440e-9cf3-0ff402506a3a"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{iqcDefectPercentage}+"%"]]></textFieldExpression> </textField> <textField textAdjust="StretchHeight"> <reportElement x="490" y="2" width="50" height="18" uuid="c2575894-67a5-4251-aebd-59999fec00b5"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{iqcResult}]]></textFieldExpression> </textField> <textField textAdjust="StretchHeight"> <reportElement x="540" y="2" width="60" height="18" uuid="62104cab-dcd5-41f0-abbf-21d7badc0edb"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{iqcRemarks}]]></textFieldExpression> </textField> <textField textAdjust="StretchHeight"> <reportElement x="600" y="2" width="80" height="18" uuid="091605c2-1a39-4823-ae74-1c8f51ac0145"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{storeLocation}]]></textFieldExpression> </textField> <textField textAdjust="StretchHeight"> <reportElement x="690" y="2" width="108" height="18" uuid="eb6ed0fc-bfda-4a89-a163-fe08b00a0120"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Top"> <font fontName="微軟正黑體" size="10"/> </textElement> <textFieldExpression><![CDATA[$F{supplierName}]]></textFieldExpression> </textField> </band> </detail> </jasperReport>