|  |  | 
 |  |  |         style.setFont(font); | 
 |  |  |         // 设置边框 | 
 |  |  |         configCellBorder(style); | 
 |  |  | //        configCellBorder(style); | 
 |  |  |         cell.setCellStyle(style); | 
 |  |  |     } | 
 |  |  |     /** | 
 |  |  | 
 |  |  |             sxssfWorkbook = new SXSSFWorkbook(); | 
 |  |  |             Sheet sheet = sxssfWorkbook.createSheet(sheetName); | 
 |  |  |             for (int i = 0; i < 6; i++) { | 
 |  |  |                 sheet.setColumnWidth(i, 20 * 2 * 256); | 
 |  |  |                 sheet.setColumnWidth(i, (i==5?20:15) * 2 * 256); | 
 |  |  |             } | 
 |  |  |             sheet.createFreezePane(0, 1); | 
 |  |  |             sheet.addMergedRegion(new CellRangeAddress(0   ,0,0,5)); | 
 |  |  |             Row title = sheet.createRow(0); | 
 |  |  |             title.setHeight((short) 800); | 
 |  |  |             Cell c = title.createCell(0); | 
 |  |  |             c.setCellValue(sheetName); | 
 |  |  |             configTitleCell(sxssfWorkbook,c); | 
 |  |  |             for (int i = 0; i < 6; i++) { | 
 |  |  |                 title.createCell(i).setCellValue(i==0?sheetName:""); | 
 |  |  |                 configTitleCell(sxssfWorkbook,title.getCell(i)); | 
 |  |  |             } | 
 |  |  |             sheet.addMergedRegion(new CellRangeAddress(0   ,0,0,5)); | 
 |  |  |             Row header1 = sheet.createRow(1); | 
 |  |  |             header1.setHeight((short) 400); | 
 |  |  |             header1.setHeight((short) 500); | 
 |  |  |             header1.createCell(0).setCellValue("投保企业"); | 
 |  |  |             header1.createCell(1).setCellValue("保险方案"); | 
 |  |  |             header1.createCell(2).setCellValue("保险生效起期"); | 
 |  |  | 
 |  |  |             header4.createCell(3).setCellValue("身份证号"); | 
 |  |  |             header4.createCell(4).setCellValue("派遣单位"); | 
 |  |  |             header4.createCell(5).setCellValue("所属工种"); | 
 |  |  |             header4.setHeight((short) 400); | 
 |  |  |             header4.setHeight((short) 500); | 
 |  |  |             for (int i = 0; i < 6; i++) { | 
 |  |  |                 configFirstCell(sxssfWorkbook,header4.getCell(i)); | 
 |  |  |             } | 
 |  |  | 
 |  |  |                 for (int rowIndex = 0; rowIndex < data.getApplyDetailList().size(); rowIndex++) { | 
 |  |  |                     ApplyDetail d = data.getApplyDetailList().get(rowIndex); | 
 |  |  |                     Row header5 = sheet.createRow(rowIndex + 4); | 
 |  |  |                     header5.setHeight((short) 300); | 
 |  |  | //                    header5.setHeight((short) 300); | 
 |  |  |                     header5.createCell(0).setCellValue(rowIndex+1); | 
 |  |  |                     header5.createCell(1).setCellValue(StringUtils.defaultString(d.getMemberName(),"")); | 
 |  |  |                     header5.createCell(2).setCellValue(Constants.equalsInteger(d.getSex(),0)?"男":(Constants.equalsInteger(d.getSex(),1)?"女":"-")); |