|
@@ -121,7 +121,7 @@ public class Rdrecord11ServiceImpl implements IRdrecord11Service {
|
|
showText.append(",缸号:"+onejson.getString("缸号"));
|
|
showText.append(",缸号:"+onejson.getString("缸号"));
|
|
showText.append(",物料编号:"+onejson.getString("物料编号"));
|
|
showText.append(",物料编号:"+onejson.getString("物料编号"));
|
|
showText.append(",物料名称:"+onejson.getString("物料名称"));
|
|
showText.append(",物料名称:"+onejson.getString("物料名称"));
|
|
- showText.append(",数量:"+onejson.getString("数量"));
|
|
|
|
|
|
+ showText.append(",数量:"+onejson.getBigDecimal("数量").setScale(2));
|
|
showText.append(",匹数:"+onejson.getString("匹数")+",");
|
|
showText.append(",匹数:"+onejson.getString("匹数")+",");
|
|
//生成二维码数量=
|
|
//生成二维码数量=
|
|
int num=(onejson.getBigDecimal("数量").divide(new BigDecimal(splitNum),0,BigDecimal.ROUND_UP)).intValue();
|
|
int num=(onejson.getBigDecimal("数量").divide(new BigDecimal(splitNum),0,BigDecimal.ROUND_UP)).intValue();
|
|
@@ -156,17 +156,17 @@ public class Rdrecord11ServiceImpl implements IRdrecord11Service {
|
|
backGraphics.drawString("下游供应商:"+onejson.getString("下游供应商"),x_text,y_text+(spacing+fintSize)*4);
|
|
backGraphics.drawString("下游供应商:"+onejson.getString("下游供应商"),x_text,y_text+(spacing+fintSize)*4);
|
|
backGraphics.drawString("上游供应商:"+onejson.getString("上游供应商"),x_text,y_text+(spacing+fintSize)*5);
|
|
backGraphics.drawString("上游供应商:"+onejson.getString("上游供应商"),x_text,y_text+(spacing+fintSize)*5);
|
|
backGraphics.drawString("款号:"+onejson.getString("款号"),x_text,y_text+(spacing+fintSize)*6);
|
|
backGraphics.drawString("款号:"+onejson.getString("款号"),x_text,y_text+(spacing+fintSize)*6);
|
|
- backGraphics.drawString("物料属性(门幅,颜色,克重):"+onejson.getString("门幅")
|
|
|
|
|
|
+ backGraphics.drawString("门幅,颜色,克重:"+onejson.getString("门幅")
|
|
+","+onejson.getString("颜色")+","+onejson.getString("克重"),x_text,y_text+(spacing+fintSize)*7);
|
|
+","+onejson.getString("颜色")+","+onejson.getString("克重"),x_text,y_text+(spacing+fintSize)*7);
|
|
backGraphics.drawString("染厂色号:"+onejson.getString("染厂色号"),x_text,y_text+(spacing+fintSize)*8);
|
|
backGraphics.drawString("染厂色号:"+onejson.getString("染厂色号"),x_text,y_text+(spacing+fintSize)*8);
|
|
- backGraphics.drawString("数量:"+onejson.getString("数量"),x_text,y_text+(spacing+fintSize)*9);
|
|
|
|
- backGraphics.drawString("单位:"+onejson.getString("单位"),x_text,y_text+(spacing+fintSize)*10);
|
|
|
|
- backGraphics.drawString("匹数:"+onejson.getString("匹数"),x_text,y_text+(spacing+fintSize)*11);
|
|
|
|
- backGraphics.drawString("备注:"+onejson.getString("备注"),x_text,y_text+(spacing+fintSize)*12);
|
|
|
|
- backGraphics.drawString("出库信息:"+onejson.getString("出库信息"),x_text,y_text+(spacing+fintSize)*13);
|
|
|
|
|
|
+ backGraphics.drawString("数量:"+onejson.getBigDecimal("数量").setScale(2)+
|
|
|
|
+ " 单位:"+onejson.getString("单位")+" 匹数:"+onejson.getString("匹数"),
|
|
|
|
+ x_text,y_text+(spacing+fintSize)*9);
|
|
|
|
+ backGraphics.drawString("备注:"+onejson.getString("备注"),x_text,y_text+(spacing+fintSize)*10);
|
|
|
|
+ backGraphics.drawString("出库信息:"+onejson.getString("出库信息"),x_text,y_text+(spacing+fintSize)*11);
|
|
|
|
|
|
//放图片
|
|
//放图片
|
|
- backGraphics.drawImage(bufferedImage, x_image,y_text+spacing+(spacing+fintSize)*13, bufferedImage.getWidth(), bufferedImage.getHeight(),null);
|
|
|
|
|
|
+ backGraphics.drawImage(bufferedImage, x_image,y_text+spacing+(spacing+fintSize)*11, bufferedImage.getWidth(), bufferedImage.getHeight(),null);
|
|
|
|
|
|
backGraphics.dispose();// 释放对象
|
|
backGraphics.dispose();// 释放对象
|
|
|
|
|