|
|
|
@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; |
|
|
|
import com.hxhq.business.domain.*; |
|
|
|
import com.hxhq.business.dto.mjy.DetailDto; |
|
|
|
import com.hxhq.business.enums.zykgl.ZjztEnum; |
|
|
|
import com.hxhq.business.utils.GyzjJcnrUtil; |
|
|
|
import com.hxhq.business.utils.MjyJcnrUtil; |
|
|
|
import com.hxhq.business.utils.pdf.PdfBaseUtil; |
|
|
|
import com.hxhq.common.core.utils.StringUtils; |
|
|
|
@ -109,13 +110,14 @@ public class Drug { |
|
|
|
Font headerFont = new Font(bfChinese, 8, Font.NORMAL); |
|
|
|
Font contentFont = new Font(bfChinese, 8, Font.NORMAL); |
|
|
|
// 8. 创建表格 |
|
|
|
PdfPTable table = new PdfPTable(7); |
|
|
|
PdfPTable table = new PdfPTable(8); |
|
|
|
table.setWidthPercentage(100); |
|
|
|
String[] headers = { |
|
|
|
"en".equals(lang) ? MjyJcnrUtil.getEn("使用人") : "使用人", |
|
|
|
"en".equals(lang) ? MjyJcnrUtil.getEn("领取/归还人") : "领取/归还人", |
|
|
|
"en".equals(lang) ? MjyJcnrUtil.getEn("发放/接收人") : "发放/接收人", |
|
|
|
"en".equals(lang) ? MjyJcnrUtil.getEn("操作类型") : "操作类型", |
|
|
|
"en".equals(lang) ? GyzjJcnrUtil.getEn("表单名称") : "表单名称", |
|
|
|
"en".equals(lang) ? MjyJcnrUtil.getEn("操作量") : "操作量", |
|
|
|
"en".equals(lang) ? MjyJcnrUtil.getEn("备注/原因") : "备注/原因", |
|
|
|
"en".equals(lang) ? MjyJcnrUtil.getEn("操作时间") : "操作时间" |
|
|
|
@ -139,6 +141,7 @@ public class Drug { |
|
|
|
table.addCell(PdfBaseUtil.createCell(StringUtils.isNoneBlank(mjyTz.getLqrMc()) ? mjyTz.getLqrMc() : "" + (StringUtils.isNoneBlank(mjyTz.getGhrMc()) ? mjyTz.getGhrMc() : ""), contentFont)); |
|
|
|
table.addCell(PdfBaseUtil.createCell(StringUtils.isNoneBlank(mjyTz.getFfrMc()) ? mjyTz.getFfrMc() : "" + (StringUtils.isNoneBlank(mjyTz.getJsrMc()) ? mjyTz.getJsrMc() : ""), contentFont)); |
|
|
|
table.addCell(PdfBaseUtil.createCell(mjyTz.getQmyy(), contentFont)); |
|
|
|
table.addCell(PdfBaseUtil.createCell(mjyTz.getBdMc(), contentFont)); |
|
|
|
table.addCell(PdfBaseUtil.createCell(mjyTz.getCzl() + mjyTz.getCzldw(), contentFont)); |
|
|
|
table.addCell(PdfBaseUtil.createCell(mjyTz.getRemark(), contentFont)); |
|
|
|
table.addCell(PdfBaseUtil.createCell(sdf.format(mjyTz.getCreateTime()), contentFont)); |
|
|
|
|