@@ -18,7 +18,6 @@ | |||||
</buildSpec> | </buildSpec> | ||||
<natures> | <natures> | ||||
<nature>org.eclipse.m2e.core.maven2Nature</nature> | <nature>org.eclipse.m2e.core.maven2Nature</nature> | ||||
<nature>org.springsource.ide.eclipse.gradle.core.nature</nature> | |||||
<nature>org.eclipse.jdt.core.javanature</nature> | <nature>org.eclipse.jdt.core.javanature</nature> | ||||
</natures> | </natures> | ||||
<filteredResources> | <filteredResources> | ||||
@@ -24,7 +24,7 @@ public interface BigExcelConstants extends BasePOIConstants { | |||||
/** | /** | ||||
* 单Sheet导出 | * 单Sheet导出 | ||||
*/ | */ | ||||
public final static String BIG_EXCEL_VIEW = "bigExcelView"; | |||||
public final static String EASYPOI_BIG_EXCEL_VIEW = "easypoiBigExcelView"; | |||||
/** | /** | ||||
* 查询参数 | * 查询参数 | ||||
*/ | */ | ||||
@@ -24,7 +24,7 @@ public interface MapExcelConstants extends BasePOIConstants { | |||||
/** | /** | ||||
* 单Sheet导出 | * 单Sheet导出 | ||||
*/ | */ | ||||
public final static String JEECG_MAP_EXCEL_VIEW = "jeecgMapExcelView"; | |||||
public final static String EASYPOI_MAP_EXCEL_VIEW = "easypoiMapExcelView"; | |||||
/** | /** | ||||
* Entity List | * Entity List | ||||
*/ | */ | ||||
@@ -24,7 +24,7 @@ public interface NormalExcelConstants extends BasePOIConstants { | |||||
/** | /** | ||||
* 单Sheet导出 | * 单Sheet导出 | ||||
*/ | */ | ||||
public final static String JEECG_EXCEL_VIEW = "jeecgExcelView"; | |||||
public final static String EASYPOI_EXCEL_VIEW = "easypoiExcelView"; | |||||
/** | /** | ||||
* 数据列表 | * 数据列表 | ||||
*/ | */ | ||||
@@ -20,7 +20,7 @@ public interface PDFTemplateConstants extends BasePOIConstants { | |||||
/** | /** | ||||
*/ | */ | ||||
public final static String PDF_TEMPLATE_VIEW = "pdfTemplateView"; | |||||
public final static String EASYPOI_PDF_TEMPLATE_VIEW = "easypoiPdfTemplateView"; | |||||
/** | /** | ||||
* Entity List | * Entity List | ||||
*/ | */ | ||||
@@ -24,7 +24,7 @@ public interface TemplateExcelConstants extends BasePOIConstants { | |||||
/** | /** | ||||
* 模板导出 | * 模板导出 | ||||
*/ | */ | ||||
public final static String JEECG_TEMPLATE_EXCEL_VIEW = "jeecgTemplateExcelView"; | |||||
public final static String EASYPOI_TEMPLATE_EXCEL_VIEW = "easypoiTemplateExcelView"; | |||||
/** | /** | ||||
* 数据列表 | * 数据列表 | ||||
*/ | */ | ||||
@@ -24,7 +24,7 @@ public interface TemplateWordConstants extends BasePOIConstants { | |||||
/** | /** | ||||
* 模板导出 | * 模板导出 | ||||
*/ | */ | ||||
public final static String JEECG_TEMPLATE_WORD_VIEW = "jeecgTemplateWordView"; | |||||
public final static String EASYPOI_TEMPLATE_WORD_VIEW = "easypoiTemplateWordView"; | |||||
/** | /** | ||||
* 数据列表 | * 数据列表 | ||||
*/ | */ | ||||
@@ -35,10 +35,10 @@ import cn.afterturn.easypoi.handler.inter.IExcelExportServer; | |||||
/** | /** | ||||
* @author JueYue on 14-3-8. Excel 生成解析器,减少用户操作 | * @author JueYue on 14-3-8. Excel 生成解析器,减少用户操作 | ||||
*/ | */ | ||||
@Controller(BigExcelConstants.BIG_EXCEL_VIEW) | |||||
public class BigExcelExportView extends MiniAbstractExcelView { | |||||
@Controller(BigExcelConstants.EASYPOI_BIG_EXCEL_VIEW) | |||||
public class EasypoiBigExcelExportView extends MiniAbstractExcelView { | |||||
public BigExcelExportView() { | |||||
public EasypoiBigExcelExportView() { | |||||
super(); | super(); | ||||
} | } | ||||
@@ -39,10 +39,10 @@ import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity; | |||||
* 2014年11月25日 下午3:26:32 | * 2014年11月25日 下午3:26:32 | ||||
*/ | */ | ||||
@SuppressWarnings("unchecked") | @SuppressWarnings("unchecked") | ||||
@Controller(MapExcelConstants.JEECG_MAP_EXCEL_VIEW) | |||||
public class JeecgMapExcelView extends MiniAbstractExcelView { | |||||
@Controller(MapExcelConstants.EASYPOI_MAP_EXCEL_VIEW) | |||||
public class EasypoiMapExcelView extends MiniAbstractExcelView { | |||||
public JeecgMapExcelView() { | |||||
public EasypoiMapExcelView() { | |||||
super(); | super(); | ||||
} | } | ||||
@@ -36,10 +36,10 @@ import cn.afterturn.easypoi.pdf.entity.PdfExportParams; | |||||
* @author JueYue | * @author JueYue | ||||
* 2016年1月19日 上午10:43:02 | * 2016年1月19日 上午10:43:02 | ||||
*/ | */ | ||||
@Controller(PDFTemplateConstants.PDF_TEMPLATE_VIEW) | |||||
public class PDFTemplateView extends PoiBaseView { | |||||
@Controller(PDFTemplateConstants.EASYPOI_PDF_TEMPLATE_VIEW) | |||||
public class EasypoiPDFTemplateView extends PoiBaseView { | |||||
public PDFTemplateView() { | |||||
public EasypoiPDFTemplateView() { | |||||
setContentType("application/pdf"); | setContentType("application/pdf"); | ||||
} | } | ||||
@@ -36,10 +36,10 @@ import cn.afterturn.easypoi.excel.export.ExcelExportServer; | |||||
* @author JueYue on 14-3-8. Excel 生成解析器,减少用户操作 | * @author JueYue on 14-3-8. Excel 生成解析器,减少用户操作 | ||||
*/ | */ | ||||
@SuppressWarnings("unchecked") | @SuppressWarnings("unchecked") | ||||
@Controller(NormalExcelConstants.JEECG_EXCEL_VIEW) | |||||
public class JeecgSingleExcelView extends MiniAbstractExcelView { | |||||
@Controller(NormalExcelConstants.EASYPOI_EXCEL_VIEW) | |||||
public class EasypoiSingleExcelView extends MiniAbstractExcelView { | |||||
public JeecgSingleExcelView() { | |||||
public EasypoiSingleExcelView() { | |||||
super(); | super(); | ||||
} | } | ||||
@@ -38,10 +38,10 @@ import cn.afterturn.easypoi.excel.entity.TemplateExportParams; | |||||
* 2014年6月30日 下午9:15:49 | * 2014年6月30日 下午9:15:49 | ||||
*/ | */ | ||||
@SuppressWarnings("unchecked") | @SuppressWarnings("unchecked") | ||||
@Controller(TemplateExcelConstants.JEECG_TEMPLATE_EXCEL_VIEW) | |||||
public class JeecgTemplateExcelView extends MiniAbstractExcelView { | |||||
@Controller(TemplateExcelConstants.EASYPOI_TEMPLATE_EXCEL_VIEW) | |||||
public class EasypoiTemplateExcelView extends MiniAbstractExcelView { | |||||
public JeecgTemplateExcelView() { | |||||
public EasypoiTemplateExcelView() { | |||||
super(); | super(); | ||||
} | } | ||||
@@ -34,12 +34,12 @@ import cn.afterturn.easypoi.word.WordExportUtil; | |||||
* 2014年6月30日 下午9:15:49 | * 2014年6月30日 下午9:15:49 | ||||
*/ | */ | ||||
@SuppressWarnings("unchecked") | @SuppressWarnings("unchecked") | ||||
@Controller(TemplateWordConstants.JEECG_TEMPLATE_WORD_VIEW) | |||||
public class JeecgTemplateWordView extends PoiBaseView { | |||||
@Controller(TemplateWordConstants.EASYPOI_TEMPLATE_WORD_VIEW) | |||||
public class EasypoiTemplateWordView extends PoiBaseView { | |||||
private static final String CONTENT_TYPE = "application/msword"; | private static final String CONTENT_TYPE = "application/msword"; | ||||
public JeecgTemplateWordView() { | |||||
public EasypoiTemplateWordView() { | |||||
setContentType(CONTENT_TYPE); | setContentType(CONTENT_TYPE); | ||||
} | } | ||||
@@ -47,14 +47,14 @@ public abstract class PoiBaseView extends AbstractView { | |||||
public static void render(Map<String, Object> model, HttpServletRequest request, | public static void render(Map<String, Object> model, HttpServletRequest request, | ||||
HttpServletResponse response, String viewName) { | HttpServletResponse response, String viewName) { | ||||
PoiBaseView view = null; | PoiBaseView view = null; | ||||
if (BigExcelConstants.BIG_EXCEL_VIEW.equals(viewName)) { | |||||
view = new BigExcelExportView(); | |||||
} else if (MapExcelConstants.JEECG_MAP_EXCEL_VIEW.equals(viewName)) { | |||||
view = new JeecgMapExcelView(); | |||||
} else if (NormalExcelConstants.JEECG_EXCEL_VIEW.equals(viewName)) { | |||||
view = new JeecgSingleExcelView(); | |||||
} else if (TemplateExcelConstants.JEECG_TEMPLATE_EXCEL_VIEW.equals(viewName)) { | |||||
view = new JeecgTemplateExcelView(); | |||||
if (BigExcelConstants.EASYPOI_BIG_EXCEL_VIEW.equals(viewName)) { | |||||
view = new EasypoiBigExcelExportView(); | |||||
} else if (MapExcelConstants.EASYPOI_MAP_EXCEL_VIEW.equals(viewName)) { | |||||
view = new EasypoiMapExcelView(); | |||||
} else if (NormalExcelConstants.EASYPOI_EXCEL_VIEW.equals(viewName)) { | |||||
view = new EasypoiSingleExcelView(); | |||||
} else if (TemplateExcelConstants.EASYPOI_TEMPLATE_EXCEL_VIEW.equals(viewName)) { | |||||
view = new EasypoiTemplateExcelView(); | |||||
} else if (MapExcelGraphConstants.MAP_GRAPH_EXCEL_VIEW.equals(viewName)) { | } else if (MapExcelGraphConstants.MAP_GRAPH_EXCEL_VIEW.equals(viewName)) { | ||||
view = new MapGraphExcelView(); | view = new MapGraphExcelView(); | ||||
} | } | ||||
@@ -32,7 +32,7 @@ | |||||
<developer> | <developer> | ||||
<name>JueYue</name> | <name>JueYue</name> | ||||
<email>qrb.jueyue@gmail.com</email> | <email>qrb.jueyue@gmail.com</email> | ||||
<organization>Jeecg</organization> | |||||
<organization>Lumer</organization> | |||||
<organizationUrl>http://www.afterturn.cn</organizationUrl> | <organizationUrl>http://www.afterturn.cn</organizationUrl> | ||||
</developer> | </developer> | ||||
</developers> | </developers> | ||||