| @@ -963,52 +963,58 @@ open class DeliveryOrderService( | |||
| } | |||
| //Carton Labels | |||
| open fun exportDNLabels(request: ExportDNLabelsRequest): Map<String, Any> { | |||
| val DNLABELS_PDF = "DeliveryNote/DeliveryNoteCartonLabelsPDF.jrxml" | |||
| val resource = ClassPathResource(DNLABELS_PDF) | |||
| if (!resource.exists()) { | |||
| throw FileNotFoundException("Label file not found: $DNLABELS_PDF") | |||
| } | |||
| //Carton Labels | |||
| open fun exportDNLabels(request: ExportDNLabelsRequest): Map<String, Any> { | |||
| val DNLABELS_PDF = "DeliveryNote/DeliveryNoteCartonLabelsPDF.jrxml" | |||
| val resource = ClassPathResource(DNLABELS_PDF) | |||
| if (!resource.exists()) { | |||
| throw FileNotFoundException("Label file not found: $DNLABELS_PDF") | |||
| } | |||
| val doPickOrder = doPickOrderRepository.findById(request.doPickOrderId).orElseThrow { | |||
| NoSuchElementException("DoPickOrder not found with ID: ${request.doPickOrderId}") | |||
| } | |||
| val doPickOrderRecord = doPickOrderRecordRepository.findById(request.doPickOrderId).orElseThrow { | |||
| NoSuchElementException("DoPickOrderRecord not found with ID: ${request.doPickOrderId}") | |||
| } | |||
| val doPickOrderLineRecords = doPickOrderLineRecordRepository.findByDoPickOrderIdAndDeletedFalse(request.doPickOrderId) | |||
| val deliveryOrderId = doPickOrder.doOrderId | |||
| ?: throw IllegalStateException("DoPickOrder has no associated delivery order") | |||
| val deliveryOrderIds = doPickOrderLineRecords.mapNotNull { it.doOrderId }.distinct() | |||
| if(deliveryOrderIds.isEmpty()){ | |||
| throw IllegalStateException("DoPickOrderRecord ${request.doPickOrderId} has no associated delivery orders") | |||
| } | |||
| val inputStream = resource.inputStream | |||
| val cartonLabel = JasperCompileManager.compileReport(inputStream) | |||
| val cartonLabelInfo = deliveryOrderIds.flatMap { deliveryOrderId -> | |||
| deliveryOrderRepository.findDeliveryOrderInfoById(deliveryOrderId) | |||
| }.toMutableList() | |||
| val inputStream = resource.inputStream | |||
| val cartonLabel = JasperCompileManager.compileReport(inputStream) | |||
| val cartonLabelInfo = | |||
| deliveryOrderRepository.findDeliveryOrderInfoById(request.doPickOrderId).toMutableList() | |||
| val params = mutableMapOf<String, Any>() | |||
| val fields = mutableListOf<MutableMap<String, Any>>() | |||
| val params = mutableMapOf<String, Any>() | |||
| val fields = mutableListOf<MutableMap<String, Any>>() | |||
| for (info in cartonLabelInfo) { | |||
| val field = mutableMapOf<String, Any>() | |||
| } | |||
| for (info in cartonLabelInfo) { | |||
| val field = mutableMapOf<String, Any>() | |||
| } | |||
| if(cartonLabelInfo.size > 1){ | |||
| if(cartonLabelInfo.size > 1){ | |||
| } | |||
| params["shopPurchaseOrderNo"] = doPickOrder.deliveryOrderCode ?: cartonLabelInfo[0].code | |||
| params["deliveryNoteCode"] = "GEN FROM CODE GENERATOR (NEED FIND TIMING)" | |||
| params["shopAddress"] = cartonLabelInfo[0].shopAddress ?: "" | |||
| params["shopName"] = doPickOrder.shopName ?: cartonLabelInfo[0].shopName ?: "" | |||
| for (cartonNumber in 1..request.numOfCarton) { | |||
| val field = mutableMapOf<String, Any>() | |||
| fields.add(field) | |||
| } | |||
| } | |||
| return mapOf( | |||
| "report" to PdfUtils.fillReport(cartonLabel, fields, params), | |||
| "filename" to "${cartonLabelInfo[0].code}_carton_labels" | |||
| ) | |||
| params["shopPurchaseOrderNo"] = doPickOrderRecord.deliveryOrderCode ?: cartonLabelInfo[0].code | |||
| params["deliveryNoteCode"] = doPickOrderRecord.deliveryNoteCode ?: "" | |||
| params["shopAddress"] = cartonLabelInfo[0].shopAddress ?: "" | |||
| params["shopName"] = doPickOrderRecord.shopName ?: cartonLabelInfo[0].shopName ?: "" | |||
| params["truckNo"] = doPickOrderRecord.truckLanceCode ?: "" | |||
| for (cartonNumber in 1..request.numOfCarton) { | |||
| val field = mutableMapOf<String, Any>() | |||
| fields.add(field) | |||
| } | |||
| return mapOf( | |||
| "report" to PdfUtils.fillReport(cartonLabel, fields, params), | |||
| "filename" to "${cartonLabelInfo[0].code}_carton_labels" | |||
| ) | |||
| } | |||
| //Print Carton Labels | |||
| @Transactional | |||
| @@ -4,6 +4,8 @@ import com.ffii.core.exception.BadRequestException | |||
| import com.ffii.core.response.RecordsRes | |||
| import com.ffii.core.utils.GsonUtils | |||
| import com.ffii.core.utils.PdfUtils | |||
| import com.ffii.core.utils.QrCodeUtil | |||
| import com.ffii.core.utils.ZebraPrinterUtil | |||
| import com.ffii.fpsms.modules.common.SecurityUtils | |||
| import com.ffii.fpsms.modules.jobOrder.entity.JobOrder | |||
| import com.ffii.fpsms.modules.jobOrder.entity.JobOrderRepository | |||
| @@ -402,12 +404,12 @@ open class JobOrderService( | |||
| val unit = pickRecordInfo.firstOrNull()?.get("unit") as? String | |||
| println("Debug - UOM Info:") | |||
| println(" bomItemId: $bomItemId") | |||
| println(" bomItemUomId: $bomItemUomIdRaw") | |||
| println(" uomCode: $uomCode") | |||
| println(" uomDesc: $uomDesc") | |||
| println(" uomShortDesc: $uomShortDesc") | |||
| println(" unit (from BOM): $unit")*/ | |||
| println("bomItemId: $bomItemId") | |||
| println("bomItemUomId: $bomItemUomIdRaw") | |||
| println("uomCode: $uomCode") | |||
| println("uomDesc: $uomDesc") | |||
| println("uomShortDesc: $uomShortDesc") | |||
| println("unit (from BOM): $unit")*/ | |||
| params["unit"] = pickRecordInfo.firstOrNull()?.get("uomConversionDesc") as? String ?: "N/A" | |||
| @@ -436,7 +438,86 @@ open class JobOrderService( | |||
| JasperExportManager.exportReportToPdfFile(jasperPrint,tempPdfFile.absolutePath) | |||
| } finally { | |||
| //tempPdfFile.delete*9 | |||
| //tempPdfFile.delete | |||
| } | |||
| } | |||
| //FG Pick Record Label | |||
| @Throws(IOException::class) | |||
| @Transactional | |||
| // Hardcoded Request | |||
| open fun exportFGPickRecordLabel(request: ExportPickRecordRequest): Map<String, Any> { | |||
| val FG_PICKRECORD_LABEL_PDF = "PickRecord/FinishedGoodPickRecordLabelPDF.jrxml" | |||
| val resource = ClassPathResource(FG_PICKRECORD_LABEL_PDF) | |||
| if(!resource.exists()){ | |||
| throw FileNotFoundException("Report file not found: $FG_PICKRECORD_LABEL_PDF") | |||
| } | |||
| val inputStream = resource.inputStream | |||
| val fgPickRecordLabel = JasperCompileManager.compileReport(inputStream) | |||
| val params = mutableMapOf<String, Any>() | |||
| // Hardcoded for demo on 6/11/2025 | |||
| params["jobOrderCode"] = "JO-20251106-0001" | |||
| params["finishedGoodItemCode"] = "PP2061" | |||
| params["finishedGoodItemName"] = "炒芝麻" | |||
| params["finishedGoodLotNo"] = "LT-20251106-0006A" | |||
| params["productionQty"] = "25.0" | |||
| params["productionDate"] = "2025-11-06" | |||
| params["expiryDate"] = "2026-02-06" | |||
| params["uom"] = "一包一磅" | |||
| params["shortName"] = "包" | |||
| // Hardcoded QR code for demo on 6/11/2025 | |||
| val qrCodeContent = "JO-20241201-001|FG-001|LOT-20241201-001" | |||
| val qrCodeImage = QrCodeUtil.generateQRCodeImage(qrCodeContent) | |||
| params["qrCode"] = qrCodeImage | |||
| val fields = mutableListOf<MutableMap<String, Any>>() | |||
| val filename = params["jobOrderCode"] as String | |||
| return mapOf( | |||
| "report" to PdfUtils.fillReport(fgPickRecordLabel, fields, params), | |||
| "filename" to filename | |||
| ) | |||
| } | |||
| @Transactional | |||
| open fun printFGPickRecordLabel(request: PrintPickRecordRequest){ | |||
| val printer = printerService.findById(request.printerId) ?: throw java.util.NoSuchElementException("No such printer") | |||
| val pdf = exportFGPickRecordLabel( | |||
| ExportPickRecordRequest( | |||
| pickOrderIds = request.pickOrderId | |||
| ) | |||
| ) | |||
| val jasperPrint = pdf["report"] as JasperPrint | |||
| val tempPdfFile = File.createTempFile("print_job_",".pdf") | |||
| try{ | |||
| JasperExportManager.exportReportToPdfFile(jasperPrint,tempPdfFile.absolutePath) | |||
| val printQty = if (request.printQty == null || request.printQty <= 0) 1 else request.printQty | |||
| printer.ip?.let { ip -> | |||
| printer.port?.let { port -> | |||
| ZebraPrinterUtil.printPdfToZebra( | |||
| tempPdfFile, | |||
| ip, | |||
| port, | |||
| printQty, | |||
| ZebraPrinterUtil.PrintDirection.ROTATED | |||
| ) | |||
| } | |||
| } | |||
| println("Test PDF saved to: ${tempPdfFile.absolutePath}") | |||
| } finally { | |||
| //tempPdfFile.delete | |||
| } | |||
| } | |||
| } | |||
| @@ -190,6 +190,24 @@ fun recordSecondScanIssue( | |||
| jobOrderService.printPickRecord(request) | |||
| } | |||
| @PostMapping("/FGPickRecordLabel") | |||
| @Throws(UnsupportedEncodingException::class, NoSuchMessageException::class, ParseException::class, Exception::class) | |||
| fun exportFGPickRecordLabel(@Valid @RequestBody request: ExportPickRecordRequest, response: HttpServletResponse){ | |||
| response.characterEncoding = "utf-8" | |||
| response.contentType = "application/pdf" | |||
| val out: OutputStream = response.outputStream | |||
| val pdf = jobOrderService.exportFGPickRecordLabel(request) | |||
| val jasperPrint = pdf["report"] as JasperPrint | |||
| response.addHeader("filename", "${pdf["filename"]}.pdf") | |||
| out.write(JasperExportManager.exportReportToPdf(jasperPrint)) | |||
| } | |||
| @GetMapping("/print-FGPickRecordLabel") | |||
| fun printFGPickRecordLabel(@ModelAttribute request: PrintPickRecordRequest){ | |||
| jobOrderService.printFGPickRecordLabel(request) | |||
| } | |||
| @GetMapping("/completed-job-order-pick-orders-only/{userId}") | |||
| fun getCompletedJobOrderPickOrders(@PathVariable userId: Long): List<Map<String, Any?>> { | |||
| return joPickOrderService.getCompletedJobOrderPickOrders(userId) | |||
| @@ -1,159 +1,166 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
| <!-- Created with Jaspersoft Studio version 6.17.0.final using JasperReports Library version 6.17.0-6d93193241dd8cc42629e188b94f9e0bc5722efd --> | |||
| <!-- 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="Blank_A4" pageWidth="425" pageHeight="283" columnWidth="385" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="baa9f270-b398-4f1c-b01e-ba216b7997e9"> | |||
| <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"/> | |||
| <parameter name="shopPurchaseOrderNo" class="java.lang.String"/> | |||
| <parameter name="shopName" class="java.lang.String"/> | |||
| <parameter name="shopAddress" class="java.lang.String"/> | |||
| <parameter name="deliveryOrderCode" class="java.lang.String"/> | |||
| <queryString> | |||
| <![CDATA[]]> | |||
| </queryString> | |||
| <background> | |||
| <band splitType="Stretch"/> | |||
| </background> | |||
| <detail> | |||
| <band height="243" splitType="Stretch"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| <textField> | |||
| <reportElement x="140" y="0" width="240" height="30" uuid="8fac39f8-4936-43a5-8e1f-1afbc8ccca9c"> | |||
| <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="16"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{shopPurchaseOrderNo}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="0" y="0" width="140" height="30" uuid="e03fcb92-259c-4427-a68e-60fe5924d763"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[店鋪採購單編號: | |||
| <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"/> | |||
| <parameter name="shopPurchaseOrderNo" class="java.lang.String"/> | |||
| <parameter name="shopName" class="java.lang.String"/> | |||
| <parameter name="shopAddress" class="java.lang.String"/> | |||
| <parameter name="deliveryNoteCode" class="java.lang.String"/> | |||
| <parameter name="truckNo" class="java.lang.String"/> | |||
| <queryString> | |||
| <![CDATA[]]> | |||
| </queryString> | |||
| <background> | |||
| <band splitType="Stretch"/> | |||
| </background> | |||
| <detail> | |||
| <band height="243" splitType="Stretch"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| <textField> | |||
| <reportElement x="140" y="180" width="240" height="30" uuid="8fac39f8-4936-43a5-8e1f-1afbc8ccca9c"> | |||
| <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="16"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{shopPurchaseOrderNo}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="0" y="180" width="140" height="30" uuid="e03fcb92-259c-4427-a68e-60fe5924d763"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[店鋪採購單編號: | |||
| ]]></text> | |||
| </staticText> | |||
| <staticText> | |||
| <reportElement x="0" y="180" width="140" height="30" uuid="c8e417ed-73ce-4349-b83c-e59e25258544"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[箱數:]]></text> | |||
| </staticText> | |||
| <staticText> | |||
| <reportElement x="0" y="30" width="140" height="30" uuid="f3ffd4ee-0513-41a5-94d7-f1fdb9966a76"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[送貨單編號:]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="140" y="30" width="240" height="30" uuid="4319059b-9096-4c49-8275-287be93d3e6a"> | |||
| <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="16"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{deliveryOrderCode}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="0" y="60" width="140" height="30" uuid="22ce2f40-8f43-46f0-8298-e2f224cfb239"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[店鋪名稱:]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="140" y="60" width="240" height="60" uuid="9a440925-1bd4-4001-9b4b-7163ac27551e"> | |||
| <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="16"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{shopName}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="0" y="120" width="140" height="30" uuid="057cd155-5fc8-44e5-8764-b134cb4c24f4"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[店鋪地址:]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="140" y="120" width="240" height="60" uuid="26b2c156-341b-4f59-abce-bd84ea000d9d"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Top"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{shopAddress}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="255" y="180" width="35" height="30" uuid="7467bc85-22c2-4b2a-bed0-a2e82a5dba6d"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[箱]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="140" y="180" width="40" height="30" uuid="e340a673-9fdc-4559-8431-af8ea391c472"> | |||
| <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 size="16"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> | |||
| </textField> | |||
| <textField evaluationTime="Report"> | |||
| <reportElement x="215" y="180" width="40" height="30" uuid="89ccad73-0571-4291-ae26-7804925d47eb"> | |||
| <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 size="16"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="180" y="179" width="35" height="30" uuid="1cdd7507-299b-406b-baab-d2c23e44eeb0"> | |||
| <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="16"/> | |||
| </textElement> | |||
| <text><![CDATA[/]]></text> | |||
| </staticText> | |||
| </band> | |||
| </detail> | |||
| </staticText> | |||
| <staticText> | |||
| <reportElement x="0" y="213" width="140" height="30" uuid="c8e417ed-73ce-4349-b83c-e59e25258544"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[箱數:]]></text> | |||
| </staticText> | |||
| <staticText> | |||
| <reportElement x="0" y="150" width="140" height="30" uuid="f3ffd4ee-0513-41a5-94d7-f1fdb9966a76"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[送貨單編號:]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="140" y="150" width="240" height="30" uuid="4319059b-9096-4c49-8275-287be93d3e6a"> | |||
| <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="16"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{deliveryNoteCode}]]></textFieldExpression> | |||
| </textField> | |||
| <textField textAdjust="ScaleFont"> | |||
| <reportElement x="0" y="0" width="380" height="40" uuid="9a440925-1bd4-4001-9b4b-7163ac27551e"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="18" isBold="true" isUnderline="false"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{shopName}]]></textFieldExpression> | |||
| </textField> | |||
| <textField textAdjust="ScaleFont"> | |||
| <reportElement x="0" y="40" width="380" height="70" uuid="26b2c156-341b-4f59-abce-bd84ea000d9d"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Top"> | |||
| <font fontName="微軟正黑體" size="16" isBold="true"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{shopAddress}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="255" y="213" width="35" height="30" uuid="7467bc85-22c2-4b2a-bed0-a2e82a5dba6d"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement textAlignment="Center" verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[箱]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="140" y="213" width="40" height="30" uuid="e340a673-9fdc-4559-8431-af8ea391c472"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement textAlignment="Center" verticalAlignment="Middle"> | |||
| <font size="16"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> | |||
| </textField> | |||
| <textField evaluationTime="Report"> | |||
| <reportElement x="215" y="213" width="40" height="30" uuid="89ccad73-0571-4291-ae26-7804925d47eb"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement textAlignment="Center" verticalAlignment="Middle"> | |||
| <font size="16"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="180" y="213" width="35" height="30" uuid="1cdd7507-299b-406b-baab-d2c23e44eeb0"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement textAlignment="Center" verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[/]]></text> | |||
| </staticText> | |||
| <staticText> | |||
| <reportElement x="0" y="120" width="140" height="30" uuid="c8b9fafb-9e8b-479f-9a9f-dadda7854f95"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[貨車班次: | |||
| ]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="140" y="120" width="240" height="30" uuid="57f8e4fa-cea0-42c5-b9e5-a33f0a2710b8"> | |||
| <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="16" isBold="true"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{truckNo}]]></textFieldExpression> | |||
| </textField> | |||
| <line> | |||
| <reportElement x="0" y="110" width="380" height="1" uuid="3e37c027-d6e9-4a88-b64d-58ba1dd3b22e"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| </line> | |||
| </band> | |||
| </detail> | |||
| </jasperReport> | |||
| @@ -1,5 +1,5 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | |||
| <!-- Created with Jaspersoft Studio version 6.17.0.final using JasperReports Library version 6.17.0-6d93193241dd8cc42629e188b94f9e0bc5722efd --> | |||
| <!-- 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="DeliveryNotePDF" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="36f9d415-527f-4152-b7b0-eea81fe06f73"> | |||
| <parameter name="deliveryOrderCode" class="java.lang.String"> | |||
| <parameterDescription><![CDATA[DeliveryOrderCode]]></parameterDescription> | |||
| @@ -0,0 +1,161 @@ | |||
| <?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="Blank_A4" pageWidth="425" pageHeight="283" columnWidth="385" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="baa9f270-b398-4f1c-b01e-ba216b7997e9"> | |||
| <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"/> | |||
| <parameter name="jobOrderCode" class="java.lang.String"/> | |||
| <parameter name="finishedGoodItemCode" class="java.lang.String"/> | |||
| <parameter name="finishedGoodItemName" class="java.lang.String"/> | |||
| <parameter name="finishedGoodLotNo" class="java.lang.String"/> | |||
| <parameter name="productionQty" class="java.lang.String"/> | |||
| <parameter name="productionDate" class="java.lang.String"/> | |||
| <parameter name="expiryDate" class="java.lang.String"/> | |||
| <parameter name="uom" class="java.lang.String"/> | |||
| <parameter name="qrCode" class="java.awt.Image"/> | |||
| <parameter name="shortName" class="java.lang.String"/> | |||
| <queryString> | |||
| <![CDATA[]]> | |||
| </queryString> | |||
| <background> | |||
| <band splitType="Stretch"/> | |||
| </background> | |||
| <detail> | |||
| <band height="243" splitType="Stretch"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| <textField> | |||
| <reportElement x="80" y="180" width="180" height="30" uuid="8fac39f8-4936-43a5-8e1f-1afbc8ccca9c"> | |||
| <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="18"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{productionDate}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="0" y="180" width="80" height="30" uuid="e03fcb92-259c-4427-a68e-60fe5924d763"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[生產日期: | |||
| ]]></text> | |||
| </staticText> | |||
| <textField textAdjust="ScaleFont"> | |||
| <reportElement x="80" y="50" width="160" height="30" uuid="9a440925-1bd4-4001-9b4b-7163ac27551e"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16" isBold="false" isUnderline="false"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{jobOrderCode}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="0" y="80" width="80" height="30" uuid="c8b9fafb-9e8b-479f-9a9f-dadda7854f95"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[批次編號: | |||
| ]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="80" y="110" width="160" height="30" uuid="57f8e4fa-cea0-42c5-b9e5-a33f0a2710b8"> | |||
| <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="16" isBold="false"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{productionQty} + $P{shortName} + " (" + $P{uom} +")"]]></textFieldExpression> | |||
| </textField> | |||
| <line> | |||
| <reportElement x="0" y="160" width="380" height="1" uuid="3e37c027-d6e9-4a88-b64d-58ba1dd3b22e"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| </line> | |||
| <textField textAdjust="ScaleFont"> | |||
| <reportElement x="0" y="0" width="380" height="30" uuid="d8a2c87e-7d1d-431a-815c-9257802d5869"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="pixel"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="22" isBold="true" isUnderline="false"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{finishedGoodItemCode} + " " + $P{finishedGoodItemName}]]></textFieldExpression> | |||
| </textField> | |||
| <textField textAdjust="ScaleFont"> | |||
| <reportElement x="80" y="80" width="160" height="30" uuid="9391614f-72f9-41c6-9888-bbb236765b54"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16" isBold="false" isUnderline="false"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{finishedGoodLotNo}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="0" y="210" width="80" height="30" uuid="93d48729-edea-4acf-beca-00c6221c10bb"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[到期日期: | |||
| ]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="80" y="210" width="180" height="30" uuid="802555cd-a78b-49c4-b018-61c55f28070c"> | |||
| <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="18"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{expiryDate}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="0" y="50" width="80" height="30" uuid="145bfb84-c448-4fea-840a-c3ab0bcea7f4"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[工單編號:]]></text> | |||
| </staticText> | |||
| <staticText> | |||
| <reportElement x="0" y="110" width="80" height="30" uuid="397d1a94-709b-4372-96ce-bc1c28a8d997"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[產出數量: | |||
| ]]></text> | |||
| </staticText> | |||
| <image> | |||
| <reportElement x="265" y="38" width="115" height="115" uuid="f61ca1c1-333b-42e1-9a00-85f5ef1e3492"> | |||
| <property name="com.jaspersoft.studio.unit.x" value="px"/> | |||
| <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> | |||
| <imageExpression><![CDATA[$P{qrCode}]]></imageExpression> | |||
| </image> | |||
| </band> | |||
| </detail> | |||
| </jasperReport> | |||
| @@ -0,0 +1,332 @@ | |||
| <?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="PickRecord" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isTitleNewPage="true" uuid="63c880e0-c8f6-4221-b8c9-868f8eb315a8"> | |||
| <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> | |||
| <parameter name="JobOrderCode" class="java.lang.String"/> | |||
| <parameter name="ProductionDate" class="java.lang.String"/> | |||
| <parameter name="RequiredQuantity" class="java.lang.String"/> | |||
| <parameter name="FGName" class="java.lang.String"/> | |||
| <parameter name="FGCode" class="java.lang.String"/> | |||
| <parameter name="unit" class="java.lang.String"/> | |||
| <queryString> | |||
| <![CDATA[]]> | |||
| </queryString> | |||
| <field name="sequenceNumber" class="java.lang.String"/> | |||
| <field name="route" class="java.lang.String"/> | |||
| <field name="itemName" class="java.lang.String"/> | |||
| <field name="itemNo" class="java.lang.String"/> | |||
| <field name="uom" class="java.lang.String"/> | |||
| <field name="lotNo" class="java.lang.String"/> | |||
| <field name="qty" class="java.lang.String"/> | |||
| <field name="shortName" class="java.lang.String"/> | |||
| <background> | |||
| <band height="30"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </band> | |||
| </background> | |||
| <title> | |||
| <band splitType="Stretch"/> | |||
| </title> | |||
| <pageHeader> | |||
| <band height="94" splitType="Stretch"> | |||
| <staticText> | |||
| <reportElement x="0" y="30" width="80" height="18" uuid="cf828c0c-977d-4338-98b0-ff3680ba4d98"> | |||
| <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"/> | |||
| </textElement> | |||
| <text><![CDATA[工單編號:]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="80" y="30" width="150" height="18" uuid="0c64d973-2553-4a43-9f7e-60722bcf28fa"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="12"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{JobOrderCode}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="0" y="50" width="80" height="18" uuid="591d3291-7a4f-41bf-9b7e-86b48c341cbe"> | |||
| <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"/> | |||
| </textElement> | |||
| <text><![CDATA[成品編號:]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="80" y="50" width="150" height="18" uuid="5e1e4cbb-4ecc-4132-87ce-28d856af35a0"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="12"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{FGCode}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="280" y="50" width="80" height="18" uuid="3196ab21-a4c1-4c2e-a42c-b2b46ae31f5c"> | |||
| <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"/> | |||
| </textElement> | |||
| <text><![CDATA[成品名稱:]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="360" y="50" width="150" height="18" uuid="af8e72b2-88ca-4069-a2c4-2d2969a5e62c"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="12"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{FGName}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="280" y="70" width="80" height="18" uuid="aef62434-b98d-4072-804b-30793c6638ae"> | |||
| <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"/> | |||
| </textElement> | |||
| <text><![CDATA[需求數量:]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="360" y="70" width="150" height="18" uuid="328bbf03-e9e7-4d11-be7b-c1378614e416"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="12"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{RequiredQuantity}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="280" y="30" width="80" height="18" uuid="c3cf5d66-192f-429e-a7f2-09fcf3a8acc2"> | |||
| <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"/> | |||
| </textElement> | |||
| <text><![CDATA[生產日期:]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="360" y="30" width="150" height="18" uuid="ca8ef46f-67c8-4064-9cdb-4fd1fb4c5255"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="12"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{ProductionDate}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="0" y="70" width="80" height="18" uuid="a10306aa-d29d-4f57-a78e-36ce6f27d8e2"> | |||
| <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"/> | |||
| </textElement> | |||
| <text><![CDATA[銷售單位:]]></text> | |||
| </staticText> | |||
| <textField> | |||
| <reportElement x="80" y="70" width="150" height="18" uuid="d712eadd-c351-4497-a4fa-8b28af934053"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="12"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$P{unit}]]></textFieldExpression> | |||
| </textField> | |||
| <staticText> | |||
| <reportElement x="220" y="0" width="108" height="23" uuid="a8b42d41-fd8e-4071-a6ac-d29ae8817d5a"> | |||
| <property name="com.jaspersoft.studio.unit.width" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement textAlignment="Center" verticalAlignment="Middle"> | |||
| <font fontName="微軟正黑體" size="16"/> | |||
| </textElement> | |||
| <text><![CDATA[板頭紙]]></text> | |||
| </staticText> | |||
| <staticText> | |||
| <reportElement x="430" y="0" width="40" height="18" uuid="4818aa30-4d28-488f-9b65-1cc1853b4ace"> | |||
| <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> | |||
| <textField> | |||
| <reportElement x="470" y="0" width="20" height="18" uuid="00db1bdc-bd9d-46f0-81d0-3199d10af578"> | |||
| <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="530" y="0" width="25" height="18" uuid="6efa6427-43ea-4890-90c3-c2d0ed9225ce"> | |||
| <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> | |||
| <textField evaluationTime="Report"> | |||
| <reportElement x="510" y="0" width="20" height="18" uuid="b596885e-e574-477a-980f-ab9801be56d6"> | |||
| <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="490" y="0" width="20" height="18" uuid="4eeb2979-85ad-48e5-8458-58fc5d4a6fac"> | |||
| <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> | |||
| </band> | |||
| </pageHeader> | |||
| <columnHeader> | |||
| <band height="31" splitType="Stretch"> | |||
| <staticText> | |||
| <reportElement x="0" y="5" width="50" height="18" uuid="217b23a0-55c2-4530-a39f-75f59124eeb8"> | |||
| <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"> | |||
| <font fontName="微軟正黑體" size="12"/> | |||
| </textElement> | |||
| <text><![CDATA[序號]]></text> | |||
| </staticText> | |||
| <staticText> | |||
| <reportElement x="50" y="5" width="50" height="18" uuid="b0a7c4c9-246d-41d3-a277-0ddcc2cedfc7"> | |||
| <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"> | |||
| <font fontName="微軟正黑體" size="12"/> | |||
| </textElement> | |||
| <text><![CDATA[路綫]]></text> | |||
| </staticText> | |||
| <staticText> | |||
| <reportElement x="100" y="5" width="140" height="18" uuid="51a88f87-33d7-47cf-b2a4-255d93860243"> | |||
| <property name="com.jaspersoft.studio.unit.y" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement textAlignment="Left"> | |||
| <font fontName="微軟正黑體" size="12"/> | |||
| </textElement> | |||
| <text><![CDATA[貨品編號]]></text> | |||
| </staticText> | |||
| <staticText> | |||
| <reportElement x="240" y="5" width="230" height="18" uuid="0d311aa9-9b98-41a6-9573-df8dd6774d43"> | |||
| <property name="com.jaspersoft.studio.unit.y" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement textAlignment="Left"> | |||
| <font fontName="微軟正黑體" size="12"/> | |||
| </textElement> | |||
| <text><![CDATA[貨品名稱]]></text> | |||
| </staticText> | |||
| <staticText> | |||
| <reportElement x="470" y="5" width="84" height="18" uuid="9fafa39e-44bb-422e-8af5-0ba39b6b61c2"> | |||
| <property name="com.jaspersoft.studio.unit.y" value="px"/> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement textAlignment="Left"> | |||
| <font fontName="微軟正黑體" size="12"/> | |||
| </textElement> | |||
| <text><![CDATA[已提數量]]></text> | |||
| </staticText> | |||
| <line> | |||
| <reportElement x="0" y="28" width="554" height="1" uuid="9fd6de66-9d8c-40f0-b924-9122c08d2e7f"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| </line> | |||
| <line> | |||
| <reportElement x="0" y="23" width="554" height="1" uuid="bc56e45d-0100-4268-81d4-f660c1b3e92c"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| </line> | |||
| </band> | |||
| </columnHeader> | |||
| <detail> | |||
| <band height="41" splitType="Stretch"> | |||
| <textField> | |||
| <reportElement x="100" y="0" width="140" height="18" uuid="754bac1b-aca4-4877-9985-2181fef7daa0"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Top"> | |||
| <font fontName="微軟正黑體"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$F{itemNo}]]></textFieldExpression> | |||
| </textField> | |||
| <textField> | |||
| <reportElement x="0" y="0" width="50" height="18" uuid="70949de9-80b1-4b52-9890-58b6f4771881"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Top"> | |||
| <font fontName="微軟正黑體"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$F{sequenceNumber}]]></textFieldExpression> | |||
| </textField> | |||
| <textField> | |||
| <reportElement x="50" y="0" width="50" height="18" uuid="e488844e-60b1-4d4a-a354-75854743ca6f"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Top"> | |||
| <font fontName="微軟正黑體"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$F{route}]]></textFieldExpression> | |||
| </textField> | |||
| <textField> | |||
| <reportElement x="240" y="0" width="230" height="18" uuid="f83fe83d-cac2-4acf-ab0b-5e083b96ff9d"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Top"> | |||
| <font fontName="微軟正黑體"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$F{itemName} + "(" + $F{uom} + ")"]]></textFieldExpression> | |||
| </textField> | |||
| <textField> | |||
| <reportElement x="240" y="17" width="230" height="18" uuid="63718c20-dff3-44b1-98a7-5ebffb387ba0"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement verticalAlignment="Top"> | |||
| <font fontName="微軟正黑體"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$F{lotNo}]]></textFieldExpression> | |||
| </textField> | |||
| <textField> | |||
| <reportElement x="470" y="-1" width="84" height="18" uuid="d68ec026-2bc5-42c5-86ed-c965029eda73"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| <textElement textAlignment="Right" verticalAlignment="Top"> | |||
| <font fontName="微軟正黑體"/> | |||
| </textElement> | |||
| <textFieldExpression><![CDATA[$F{qty} + $F{shortName}]]></textFieldExpression> | |||
| </textField> | |||
| <line> | |||
| <reportElement x="0" y="35" width="554" height="1" uuid="dc31083e-6b91-4c66-a4b1-96eed417bbcb"> | |||
| <property name="com.jaspersoft.studio.unit.height" value="px"/> | |||
| </reportElement> | |||
| </line> | |||
| </band> | |||
| </detail> | |||
| </jasperReport> | |||