public void setCellValue(Object value, HSSFWorkbook workbook, int nIndex, HSSFRow row, HSSFCellStyle style) throws Exception {
		HSSFCell cell = row.createCell(nIndex);// 创建单元格
		if (value instanceof String) {
			cell.setCellValue((String) value);
		} else if (value instanceof Number) {// 单元格为数值时，格式化数值保留两位小数
			cell.setCellValue((Double) value);
		}
		if (style != null) {
			cell.setCellStyle(style);
		}
	}