| | |
| | | */ |
| | | private Excel.Type type; |
| | | |
| | | public Workbook getWb() { |
| | | return wb; |
| | | } |
| | | |
| | | public void setWb(Workbook wb) { |
| | | this.wb = wb; |
| | | } |
| | | |
| | | /** |
| | | * 工作薄对象 |
| | | */ |
| | |
| | | String recordId = list.get(index).getRecordId(); |
| | | row.createCell(5).setCellValue(recordId); |
| | | row = sheet.createRow(3); |
| | | column = 0; |
| | | |
| | | // // 添加总页数和当前页码信息 |
| | | // row.createCell(5).setCellValue("总页数: " + list.size() + ", 当前页: " + (index + 1)); |
| | | // row = sheet.createRow(4); |
| | | column = 0; |
| | | } else { |
| | | // 普通sheet处理 |
| | | // recordId = (DocumentMaterialsVo)list.get(0) |
| | |
| | | style.setWrapText(true); |
| | | Font headerFont = wb.createFont(); |
| | | headerFont.setFontName(excel.headerFontName()); |
| | | headerFont.setFontHeightInPoints((short) 10); |
| | | headerFont.setFontHeightInPoints((short) 12); |
| | | headerFont.setBold(excel.headerFontBold()); |
| | | headerFont.setColor(excel.headerColor().index); |
| | | style.setFont(headerFont); |
| | |
| | | } |
| | | return val; |
| | | } |
| | | } |
| | | } |