|
|
@@ -86,6 +86,9 @@ public class PrescriptionImageServiceImpl implements PrescriptionImageService {
|
|
|
// 绘制诊断
|
|
|
drawDiagnosis(pen, param);
|
|
|
|
|
|
+ // 绘制医生证号和医生职称
|
|
|
+ drawDoctorNoAndDoctorTitle(pen,param);
|
|
|
+
|
|
|
// 绘制药品列表
|
|
|
int lastY = drawDrugList(pen, param.getPrescribeDrug());
|
|
|
|
|
|
@@ -217,6 +220,29 @@ public class PrescriptionImageServiceImpl implements PrescriptionImageService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 绘制医生证号和职称
|
|
|
+ * @param pen
|
|
|
+ * @param param
|
|
|
+ */
|
|
|
+ private void drawDoctorNoAndDoctorTitle(Graphics2D pen, PrescribeXyImgParam param) {
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(param.getDoctorNo())) {
|
|
|
+ int x = 747;
|
|
|
+ int y = 1383;
|
|
|
+ int maxWidth = 760;
|
|
|
+ drawMultiLineText(pen, param.getDoctorNo(), x, y, maxWidth);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(param.getDoctorTitle())) {
|
|
|
+ int x = 290;
|
|
|
+ int y = 1561;
|
|
|
+ int maxWidth = 760;
|
|
|
+ drawMultiLineText(pen, param.getDoctorNo(), x, y, maxWidth);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 绘制药品列表
|
|
|
* @return 返回最后一行的Y坐标
|