|
|
|
@@ -233,6 +233,18 @@ fun recordSecondScanIssue( |
|
|
|
jobOrderService.printPickRecord(request) |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/PickRecord") |
|
|
|
@Throws(UnsupportedEncodingException::class, NoSuchMessageException::class, ParseException::class, Exception::class) |
|
|
|
fun exportPickRecord(@Valid @RequestBody request: ExportPickRecordRequest, response: HttpServletResponse) { |
|
|
|
response.characterEncoding = "utf-8" |
|
|
|
response.contentType = "application/pdf" |
|
|
|
val out: OutputStream = response.outputStream |
|
|
|
val pdf = jobOrderService.exportPickRecord(request) |
|
|
|
val jasperPrint = pdf["report"] as JasperPrint |
|
|
|
response.addHeader("filename", "${pdf["filename"]}.pdf") |
|
|
|
out.write(JasperExportManager.exportReportToPdf(jasperPrint)) |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/FGStockInLabel") |
|
|
|
@Throws(UnsupportedEncodingException::class, NoSuchMessageException::class, ParseException::class, Exception::class) |
|
|
|
fun exportFGStockInLabel(@Valid @RequestBody request: ExportFGStockInLabelRequest, response: HttpServletResponse){ |
|
|
|
|