Browse Source

View 整体改成Easypoi前缀

4.1.3.A
jueyue 7 years ago
parent
commit
0474c62dd8
15 changed files with 33 additions and 34 deletions
  1. +0
    -1
      .project
  2. +1
    -1
      easypoi-web/src/main/java/cn/afterturn/easypoi/entity/vo/BigExcelConstants.java
  3. +1
    -1
      easypoi-web/src/main/java/cn/afterturn/easypoi/entity/vo/MapExcelConstants.java
  4. +1
    -1
      easypoi-web/src/main/java/cn/afterturn/easypoi/entity/vo/NormalExcelConstants.java
  5. +1
    -1
      easypoi-web/src/main/java/cn/afterturn/easypoi/entity/vo/PDFTemplateConstants.java
  6. +1
    -1
      easypoi-web/src/main/java/cn/afterturn/easypoi/entity/vo/TemplateExcelConstants.java
  7. +1
    -1
      easypoi-web/src/main/java/cn/afterturn/easypoi/entity/vo/TemplateWordConstants.java
  8. +3
    -3
      easypoi-web/src/main/java/cn/afterturn/easypoi/view/EasypoiBigExcelExportView.java
  9. +3
    -3
      easypoi-web/src/main/java/cn/afterturn/easypoi/view/EasypoiMapExcelView.java
  10. +3
    -3
      easypoi-web/src/main/java/cn/afterturn/easypoi/view/EasypoiPDFTemplateView.java
  11. +3
    -3
      easypoi-web/src/main/java/cn/afterturn/easypoi/view/EasypoiSingleExcelView.java
  12. +3
    -3
      easypoi-web/src/main/java/cn/afterturn/easypoi/view/EasypoiTemplateExcelView.java
  13. +3
    -3
      easypoi-web/src/main/java/cn/afterturn/easypoi/view/EasypoiTemplateWordView.java
  14. +8
    -8
      easypoi-web/src/main/java/cn/afterturn/easypoi/view/PoiBaseView.java
  15. +1
    -1
      pom.xml

+ 0
- 1
.project View File

@@ -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>


+ 1
- 1
easypoi-web/src/main/java/cn/afterturn/easypoi/entity/vo/BigExcelConstants.java View File

@@ -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";
/** /**
* 查询参数 * 查询参数
*/ */


+ 1
- 1
easypoi-web/src/main/java/cn/afterturn/easypoi/entity/vo/MapExcelConstants.java View File

@@ -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
*/ */


+ 1
- 1
easypoi-web/src/main/java/cn/afterturn/easypoi/entity/vo/NormalExcelConstants.java View File

@@ -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";
/** /**
* 数据列表 * 数据列表
*/ */


+ 1
- 1
easypoi-web/src/main/java/cn/afterturn/easypoi/entity/vo/PDFTemplateConstants.java View File

@@ -20,7 +20,7 @@ public interface PDFTemplateConstants extends BasePOIConstants {
/** /**
* PDF * PDF
*/ */
public final static String PDF_TEMPLATE_VIEW = "pdfTemplateView";
public final static String EASYPOI_PDF_TEMPLATE_VIEW = "easypoiPdfTemplateView";
/** /**
* Entity List * Entity List
*/ */


+ 1
- 1
easypoi-web/src/main/java/cn/afterturn/easypoi/entity/vo/TemplateExcelConstants.java View File

@@ -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";
/** /**
* 数据列表 * 数据列表
*/ */


+ 1
- 1
easypoi-web/src/main/java/cn/afterturn/easypoi/entity/vo/TemplateWordConstants.java View File

@@ -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";
/** /**
* 数据列表 * 数据列表
*/ */


easypoi-web/src/main/java/cn/afterturn/easypoi/view/BigExcelExportView.java → easypoi-web/src/main/java/cn/afterturn/easypoi/view/EasypoiBigExcelExportView.java View File

@@ -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();
} }

easypoi-web/src/main/java/cn/afterturn/easypoi/view/JeecgMapExcelView.java → easypoi-web/src/main/java/cn/afterturn/easypoi/view/EasypoiMapExcelView.java View File

@@ -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();
} }

easypoi-web/src/main/java/cn/afterturn/easypoi/view/PDFTemplateView.java → easypoi-web/src/main/java/cn/afterturn/easypoi/view/EasypoiPDFTemplateView.java View File

@@ -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");
} }

easypoi-web/src/main/java/cn/afterturn/easypoi/view/JeecgSingleExcelView.java → easypoi-web/src/main/java/cn/afterturn/easypoi/view/EasypoiSingleExcelView.java View File

@@ -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();
} }

easypoi-web/src/main/java/cn/afterturn/easypoi/view/JeecgTemplateExcelView.java → easypoi-web/src/main/java/cn/afterturn/easypoi/view/EasypoiTemplateExcelView.java View File

@@ -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();
} }

easypoi-web/src/main/java/cn/afterturn/easypoi/view/JeecgTemplateWordView.java → easypoi-web/src/main/java/cn/afterturn/easypoi/view/EasypoiTemplateWordView.java View File

@@ -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);
} }

+ 8
- 8
easypoi-web/src/main/java/cn/afterturn/easypoi/view/PoiBaseView.java View File

@@ -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();
} }


+ 1
- 1
pom.xml View File

@@ -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>


Loading…
Cancel
Save