Browse Source

FGDelievery report

master
Tommy\2Fi-Staff 2 weeks ago
parent
commit
c53e213302
2 changed files with 585 additions and 0 deletions
  1. +32
    -0
      src/main/java/com/ffii/fpsms/modules/report/web/ReportController.kt
  2. +553
    -0
      src/main/resources/jasper/FGDeliveryReport.jrxml

+ 32
- 0
src/main/java/com/ffii/fpsms/modules/report/web/ReportController.kt View File

@@ -44,4 +44,36 @@ class ReportController(

return ResponseEntity(pdfBytes, headers, HttpStatus.OK)
}

@GetMapping("/print-report3")
fun generateReport3(
@RequestParam fromDate: String,
@RequestParam toDate: String,
//this is an exampe of optional param
@RequestParam(required = false) itemType: String?
): ResponseEntity<ByteArray> {
val parameters = mutableMapOf<String, Any>()
parameters["fromDate"] = fromDate
parameters["toDate"] = toDate
// you may put more params to show
parameters["reportDate"] = "param1Value"
parameters["param2"] = "param2Value"

// Query the DB to get a list of data
val dbData = reportService.searchReport1(fromDate, toDate, itemType)

val pdfBytes = reportService.createPdfResponse(
"/jasper/FGDeliveryReport.jrxml",
parameters,
dbData
)

val headers = HttpHeaders().apply {
contentType = MediaType.APPLICATION_PDF
setContentDispositionFormData("attachment", "Report1.pdf")
set("filename", "Report1.pdf")
}

return ResponseEntity(pdfBytes, headers, HttpStatus.OK)
}
}

+ 553
- 0
src/main/resources/jasper/FGDeliveryReport.jrxml View File

@@ -0,0 +1,553 @@
<?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="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"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<subDataset name="Dataset1" uuid="dfaf2f9f-3937-4f84-9b1f-fd0ecf2f1ee9">
<queryString>
<![CDATA[]]>
</queryString>
</subDataset>
<parameter name="stockSubCategory" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["stockSubCategory"]]></defaultValueExpression>
</parameter>
<parameter name="date" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["date"]]></defaultValueExpression>
</parameter>
<parameter name="stockCategory" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["stockCategory"]]></defaultValueExpression>
</parameter>
<parameter name="reportDate" class="java.lang.String" isForPrompting="false"/>
<parameter name="reportTime" class="java.lang.String" isForPrompting="false"/>
<parameter name="deliveryPeriodStart" class="java.lang.String" isForPrompting="false"/>
<parameter name="deliveryPeriodEnd" class="java.lang.String" isForPrompting="false"/>
<parameter name="year" class="java.lang.String" isForPrompting="false"/>
<parameter name="itemNo" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["itemCode"]]></defaultValueExpression>
</parameter>
<parameter name="lastOutDateStart" class="java.lang.String" isForPrompting="false">
<parameterDescription><![CDATA["lastOutDateStart"]]></parameterDescription>
</parameter>
<parameter name="lastOutDateEnd" class="java.lang.String" isForPrompting="false">
<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="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.lang.String" incrementType="Group" incrementGroup="qty" calculation="Sum"/>
<group name="qty">
<groupExpression><![CDATA[$F{qty}]]></groupExpression>
<groupHeader>
<band height="69">
<textField>
<reportElement x="251" y="30" width="118" 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>
<textField>
<reportElement x="0" y="30" width="60" height="18" uuid="01a9586b-b5d2-45a9-b852-acaff85053ff">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{stockSubCategory}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="60" y="30" width="91" 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="151" y="30" width="100" 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="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{itemName}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="181" y="50" width="119" 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">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[DN編號]]></text>
</staticText>
<staticText>
<reportElement x="300" y="50" width="110" height="18" uuid="74843adf-ac6c-4c37-9f17-5bb59031386a">
<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">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[顧客ID]]></text>
</staticText>
<staticText>
<reportElement x="410" y="50" width="108" 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">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[顧客名稱]]></text>
</staticText>
<staticText>
<reportElement x="602" y="50" width="38" 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">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[單位]]></text>
</staticText>
<staticText>
<reportElement x="0" y="50" width="181" 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="Center">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[送貨日期]]></text>
</staticText>
<staticText>
<reportElement x="640" y="50" 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">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[貨車]]></text>
</staticText>
<staticText>
<reportElement x="740" y="50" width="58" height="18" uuid="68ba1843-bc0c-4834-82bf-b180ca1e72ce">
<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">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[司機]]></text>
</staticText>
<staticText>
<reportElement x="518" y="50" width="84" 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">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[數量]]></text>
</staticText>
<staticText>
<reportElement x="60" y="12" width="91" 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="Center">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[貨品編號]]></text>
</staticText>
<staticText>
<reportElement x="0" y="12" width="60" height="18" uuid="8951af5a-817e-4891-a26d-a2e18a045753">
<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">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[貨物子分類]]></text>
</staticText>
<staticText>
<reportElement x="151" y="12" width="100" 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="Center">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[貨品名稱]]></text>
</staticText>
<staticText>
<reportElement x="251" y="12" width="119" 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">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<text><![CDATA[送貨訂單編號]]></text>
</staticText>
<line>
<reportElement x="0" y="68" width="800" height="1" uuid="8f8bf77b-6e3f-46e6-a29d-1213212c750b">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
</band>
</groupHeader>
<groupFooter>
<band height="24">
<staticText>
<reportElement x="390" y="0" width="128" height="19" uuid="17df3070-773d-4bac-8045-6b59d8673bb4"/>
<textElement textAlignment="Right">
<font fontName="微軟正黑體" size="10" isBold="true"/>
</textElement>
<text><![CDATA[每單交貨總數:]]></text>
</staticText>
<textField>
<reportElement x="518" y="0" width="281" height="19" uuid="939e4c5b-176c-4154-aabd-bf06c2a0e594"/>
<textElement textAlignment="Right">
<font fontName="微軟正黑體" size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalDeliveredQtyPerDeliveryOrder}]]></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="143" splitType="Stretch">
<line>
<reportElement x="0" y="142" width="799" height="1" uuid="d78619a4-a4c2-4fe0-8618-5cf06dec78ea">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="0" y="138" width="799" height="1" uuid="789896b9-0ab8-4fd7-96bc-450eedfe98fb">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<textField evaluationTime="Report">
<reportElement x="780" y="2" width="20" height="18" uuid="0ce21a7e-8013-40f6-b079-ec45bbf4c0b6">
<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="700" y="2" width="40" height="18" uuid="03eaf5e6-4dfa-4e5f-bfd7-66f413d9c6bf">
<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="12"/>
</textElement>
<text><![CDATA[頁數]]></text>
</staticText>
<staticText>
<reportElement x="760" y="2" width="20" height="18" uuid="bed31e80-95c9-4226-946c-5a982f8ac2cc">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Justified">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<text><![CDATA[/]]></text>
</staticText>
<textField>
<reportElement x="740" y="2" width="20" height="18" uuid="dceaca32-361a-46f3-8327-7381b95016e3">
<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="-1" y="78" width="800" height="1" uuid="4d95bc98-ab81-4302-901a-4a3a34f11ba9">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<staticText>
<reportElement x="0" y="25" width="90" height="23" uuid="48aac263-69b4-4510-934a-0b21ede31cc1">
<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>
<textField>
<reportElement x="670" y="25" width="130" height="23" uuid="b53d173e-2ced-4508-868e-a1dec80b0489"/>
<textElement>
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{year}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="280" y="25" width="90" height="23" uuid="13b883e9-de0a-4531-a62e-c739b5158f60">
<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 x="580" y="25" width="90" height="23" uuid="0baf70bf-2851-4be4-a5c6-70426e4a80d1">
<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>
<textField>
<reportElement x="370" y="25" width="210" height="23" uuid="7d6081b9-629b-4c6d-99e4-a8d8e7d01f0a"/>
<textElement>
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{reportTime}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="90" y="25" width="190" height="23" uuid="c325f656-5d6e-485c-a50b-d6d282aca883"/>
<textElement>
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{reportDate}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="78" y="80" width="720" height="18" uuid="149d9c3f-ed97-4c18-99d0-927b5b4c5fbf">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="微軟正黑體" size="12" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$P{stockCategory}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="80" width="78" height="18" uuid="1c69a56f-b4a7-4571-a215-e816848e9201">
<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="false"/>
</textElement>
<text><![CDATA[貨物分類:]]></text>
</staticText>
<textField>
<reportElement x="120" y="50" width="680" height="23" uuid="5a6d7494-fa1b-494d-b769-a41e788cbe73">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left">
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{lastOutDateStart} + " 到 " + $P{lastOutDateEnd}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="50" width="120" height="23" uuid="b368c781-94dc-4ffe-87fd-17f853af073d">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="16" isBold="true"/>
</textElement>
<text><![CDATA[最後出貨日期:]]></text>
</staticText>
<staticText>
<reportElement x="327" y="0" width="149" height="23" uuid="e3b0beb7-66ce-4d05-a959-45402fff3ec7">
<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[FG Delivery Report
]]></text>
</staticText>
<textField>
<reportElement x="78" y="116" width="720" height="18" uuid="11b38546-7727-4478-b0f9-2ff7a89e6368">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<textFieldExpression><![CDATA[$P{itemNo}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="98" width="78" height="18" uuid="06b1dca0-3bae-4492-ac14-9bf882b898c0">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<text><![CDATA[貨物子分類:]]></text>
</staticText>
<staticText>
<reportElement x="0" y="116" width="78" height="18" uuid="e0340fda-e14b-4105-a715-17ef47fd8226">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<text><![CDATA[貨品編號:]]></text>
</staticText>
<textField>
<reportElement x="78" y="98" width="720" height="18" uuid="a3183414-850d-4fd2-9675-61c09a110ad8">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="微軟正黑體" size="12"/>
</textElement>
<textFieldExpression><![CDATA[$P{stockSubCategory}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<detail>
<band height="18" splitType="Stretch">
<textField>
<reportElement x="0" y="0" width="181" 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="Center" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{deliveryDate}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="181" y="0" width="119" 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="Right" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{dnNo}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="300" y="0" width="110" height="18" uuid="c7701dde-d643-4f6d-ad07-d70395f3f0b7">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{customerId}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="410" y="0" width="108" 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="Right" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{customerName}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="518" y="0" width="84" 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="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{qty}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="602" y="0" width="38" 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="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{unitOfMeasure}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="640" 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="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{truckNo}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="740" y="0" width="59" height="18" uuid="7b848284-bdb1-4110-ba59-55c5e7de802c">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Top">
<font fontName="微軟正黑體" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{driver}]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>

Loading…
Cancel
Save