Commit 008ed7b7 zshaohui

1.条码打印增加pn和数量

1 个父辈 432857f4
......@@ -83,6 +83,8 @@ public class QrcodeUtils {
// 生成二维码图片
for (String qrcodeContent : qrcodeContents) {
Barcode barcode = barcodeManager.findByBarcode(qrcodeContent);
PdfPTable baseTable = new PdfPTable(baseColumnCount);
//baseTable.setSpacingBefore(2f);
if(baseColumnCount == 2){
......@@ -95,7 +97,10 @@ public class QrcodeUtils {
//baseTable.setSpacingBefore(15);
baseTable.getDefaultCell().setBorder(PdfPCell.NO_BORDER);
byte[] qrcodeData = toQrcodeData(qrcodeContent, codeSize);
String newQrcodeContent = qrcodeContent+","+barcode.getPartNumber()+","+barcode.getAmount();
byte[] qrcodeData = toQrcodeData(newQrcodeContent, codeSize);
Image qrcodeImg = Image.getInstance(qrcodeData);
qrcodeImg.scaleAbsolute(codeSize,codeSize);
......@@ -132,7 +137,7 @@ public class QrcodeUtils {
// table.addCell(new Phrase("Reel ID:", boldFont));
table.addCell(new Phrase(qrcodeContent, boldFont));
Barcode barcode = barcodeManager.findByBarcode(qrcodeContent);
String partNumber = "";
String qty = "";
String desc = "";
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!