package com.hime.util;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.persistence.criteria.CriteriaBuilder.In;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFFont;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.util.CellRangeAddress;
//import org.base.util.CellUtil;
import org.springframework.web.servlet.view.document.AbstractExcelView;
import com.hime.jpa.report.model.TreportHsl;
import com.ibm.db2.jcc.am.j;
/**
* 操作excel的功能类(包括合并单元)
* @author
*
*/
public class ExcelUtil extends AbstractExcelView{
private HSSFWorkbook workbook;
private String fileName ;
/**
*
* @param request
* @param response
* @param dataList 导出数据
* @param sheetName 报表名称
* @param tableTop 表头名称
* @param head3 上报单位、单位
* @param headnum3 上报单位、单位的合并参数(起始行,结束行,起始列,结束列)
* @param head4 报表列名(如:"序号" , "业务经办部门或支行","客户名称","业务品种")
* @param headnum4 列名合并参数(起始行,结束行,起始列,结束列)
* @param head5 报表列名(没有的为空,如:"","","","贷款业务","票据贴现业务","进出口押汇业务")
* @param detail 列名对应的参数字段
* @param date 日期
* @param colWidth 列宽(map(第几列,宽度))
* @param forHigh 行高(map("title",""),map("date",""),map("sbdw",""),map("headerColumn",""),map("commonRow",""))
* @return
* @throws Exception
*/
public HSSFWorkbook reportMergeXls(
HttpServletRequest request,
HttpServletResponse response,
List