Commit 6a4398dd5781ce3cd8e6703f7ff56daa1a83467f

Authored by dongqin
1 parent acb4d742d3

更新pdf格式

Showing 1 changed file with 6 additions and 6 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/lcdcf/LcdcfHisService.java View file @ 6a4398d
... ... @@ -203,7 +203,7 @@
203 203 }
204 204  
205 205 public void createFile(Document doc, JSONObject jsonObject) throws DocumentException {
206   - String reportName = jsonObject.getString("title");
  206 + String reportName = jsonObject.getString("listTypeName");
207 207 String hospitalName = jsonObject.get("hospitalName").toString();
208 208 String age = jsonObject.get("age").toString();
209 209 String sexCode = jsonObject.get("sex").toString();
210 210  
211 211  
212 212  
213 213  
... ... @@ -263,23 +263,23 @@
263 263  
264 264 private static void setTitle( String age, String sex, String name, String checkDept, String doctor, PdfPTable table) throws DocumentException {
265 265 PdfPCell cell;
266   - cell = new PdfPCell(new Phrase(getFont(5, "年龄:" + age)));
  266 + cell = new PdfPCell(new Phrase(getFont(5, "年龄" + age)));
267 267 cell.setColspan(6);
268 268 cell.setBorder(0);
269 269 table.addCell(cell);
270   - cell = new PdfPCell(new Phrase(getFont(5, "性别:" + sex)));
  270 + cell = new PdfPCell(new Phrase(getFont(5, "性别" + sex)));
271 271 cell.setColspan(5);
272 272 cell.setBorder(0);
273 273 table.addCell(cell);
274   - cell = new PdfPCell(new Phrase(getFont(5, "姓名:" + name)));
  274 + cell = new PdfPCell(new Phrase(getFont(5, "姓名" + name)));
275 275 cell.setColspan(6);
276 276 cell.setBorder(0);
277 277 table.addCell(cell);
278   - cell = new PdfPCell(new Phrase(getFont(5, "申请科室:" + checkDept)));
  278 + cell = new PdfPCell(new Phrase(getFont(5, "申请科室" + checkDept)));
279 279 cell.setColspan(10);
280 280 cell.setBorder(0);
281 281 table.addCell(cell);
282   - cell = new PdfPCell(new Phrase(getFont(5, "申请医生:" + doctor)));
  282 + cell = new PdfPCell(new Phrase(getFont(5, "申请医生" + doctor)));
283 283 cell.setColspan(8);
284 284 cell.setBorder(0);
285 285 table.addCell(cell);