|
|
@ -39,7 +39,7 @@ public class TemplateBaseUtil { |
|
|
* @throws DocumentException |
|
|
* @throws DocumentException |
|
|
*/ |
|
|
*/ |
|
|
public static void addResource(Document document, String resource, String lang) throws IOException, DocumentException { |
|
|
public static void addResource(Document document, String resource, String lang) throws IOException, DocumentException { |
|
|
// [{"mc":"布洛芬","bh":"BLF260115-0014","ph":"","nd":"18ng/mL","source":"ELN配制","ndz":18,"nddw":"ng/mL","kc":1190,"kcdw":"3","syl":"4","syldw":"3","yxzq":360,"yxzqdw":"days"}] |
|
|
|
|
|
|
|
|
// [{"mc":"布洛芬","bh":"BLF260115-0014","ph":"","nd":"18ng/mL","source":"ELN配制","ndz":18,"nddw":"ng/mL","kc":1190,"kcdw":"3","syl":"4","syldw":"3","yxzq":360,"yxzqdw":"days"}] |
|
|
language = lang; |
|
|
language = lang; |
|
|
// 9. 表头 |
|
|
// 9. 表头 |
|
|
BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); |
|
|
BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); |
|
|
@ -190,7 +190,7 @@ public class TemplateBaseUtil { |
|
|
if (node.get("name") != null) { |
|
|
if (node.get("name") != null) { |
|
|
String name = node.get("name").asText(); |
|
|
String name = node.get("name").asText(); |
|
|
String value = node.get("value") != null ? node.get("value").asText() : ""; |
|
|
String value = node.get("value") != null ? node.get("value").asText() : ""; |
|
|
result.add(name + ":" + value); |
|
|
|
|
|
|
|
|
result.add(name + ":" + value); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -203,7 +203,7 @@ public class TemplateBaseUtil { |
|
|
if (node.get("name") != null) { |
|
|
if (node.get("name") != null) { |
|
|
String name = node.get("name").asText(); |
|
|
String name = node.get("name").asText(); |
|
|
String value = node.get("value") != null ? node.get("value").asText() : ""; |
|
|
String value = node.get("value") != null ? node.get("value").asText() : ""; |
|
|
result.add(name + ":" + value); |
|
|
|
|
|
|
|
|
result.add(name + ":" + value); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -212,7 +212,7 @@ public class TemplateBaseUtil { |
|
|
if (StringUtils.isNoneBlank(jcgj.getRemark())) { |
|
|
if (StringUtils.isNoneBlank(jcgj.getRemark())) { |
|
|
result.add(getName("备注") + ":" + jcgj.getRemark()); |
|
|
result.add(getName("备注") + ":" + jcgj.getRemark()); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNoneBlank(jcgj.getRemark())) { |
|
|
|
|
|
|
|
|
if (StringUtils.isNoneBlank(jcgj.getQmrMc())) { |
|
|
result.add(getName("签名人") + ":" + jcgj.getQmrMc()); |
|
|
result.add(getName("签名人") + ":" + jcgj.getQmrMc()); |
|
|
} |
|
|
} |
|
|
PdfBaseUtil.addUnderlinedTitle(document, result.toString(), 10, false); |
|
|
PdfBaseUtil.addUnderlinedTitle(document, result.toString(), 10, false); |
|
|
|