| @@ -14,6 +14,7 @@ import org.jeecgframework.poi.excel.ExcelExportUtil; | |||||
| import org.jeecgframework.poi.excel.entity.ExportParams; | import org.jeecgframework.poi.excel.entity.ExportParams; | ||||
| import org.jeecgframework.poi.excel.entity.params.ExcelExportEntity; | import org.jeecgframework.poi.excel.entity.params.ExcelExportEntity; | ||||
| import org.jeecgframework.poi.excel.entity.vo.MapExcelConstants; | import org.jeecgframework.poi.excel.entity.vo.MapExcelConstants; | ||||
| import org.springframework.stereotype.Controller; | |||||
| /** | /** | ||||
| * Map 对象接口 | * Map 对象接口 | ||||
| @@ -22,6 +23,7 @@ import org.jeecgframework.poi.excel.entity.vo.MapExcelConstants; | |||||
| * @date 2014年11月25日 下午3:26:32 | * @date 2014年11月25日 下午3:26:32 | ||||
| */ | */ | ||||
| @SuppressWarnings("unchecked") | @SuppressWarnings("unchecked") | ||||
| @Controller(MapExcelConstants.JEECG_MAP_EXCEL_VIEW) | |||||
| public class JeecgMapExcelView extends MiniAbstractExcelView { | public class JeecgMapExcelView extends MiniAbstractExcelView { | ||||
| public JeecgMapExcelView() { | public JeecgMapExcelView() { | ||||
| @@ -14,11 +14,13 @@ import org.jeecgframework.poi.excel.ExcelExportUtil; | |||||
| import org.jeecgframework.poi.excel.entity.ExportParams; | import org.jeecgframework.poi.excel.entity.ExportParams; | ||||
| import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants; | import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants; | ||||
| import org.jeecgframework.poi.excel.export.ExcelExportServer; | import org.jeecgframework.poi.excel.export.ExcelExportServer; | ||||
| import org.springframework.stereotype.Controller; | |||||
| /** | /** | ||||
| * @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 { | public class JeecgSingleExcelView extends MiniAbstractExcelView { | ||||
| public JeecgSingleExcelView() { | public JeecgSingleExcelView() { | ||||
| @@ -13,6 +13,7 @@ import org.jeecgframework.poi.excel.ExcelExportUtil; | |||||
| import org.jeecgframework.poi.excel.entity.TemplateExportParams; | import org.jeecgframework.poi.excel.entity.TemplateExportParams; | ||||
| import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants; | import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants; | ||||
| import org.jeecgframework.poi.excel.entity.vo.TemplateExcelConstants; | import org.jeecgframework.poi.excel.entity.vo.TemplateExcelConstants; | ||||
| import org.springframework.stereotype.Controller; | |||||
| /** | /** | ||||
| * Excel模板视图 | * Excel模板视图 | ||||
| @@ -21,6 +22,7 @@ import org.jeecgframework.poi.excel.entity.vo.TemplateExcelConstants; | |||||
| * @date 2014年6月30日 下午9:15:49 | * @date 2014年6月30日 下午9:15:49 | ||||
| */ | */ | ||||
| @SuppressWarnings("unchecked") | @SuppressWarnings("unchecked") | ||||
| @Controller(TemplateExcelConstants.JEECG_TEMPLATE_EXCEL_VIEW) | |||||
| public class JeecgTemplateExcelView extends MiniAbstractExcelView { | public class JeecgTemplateExcelView extends MiniAbstractExcelView { | ||||
| public JeecgTemplateExcelView() { | public JeecgTemplateExcelView() { | ||||
| @@ -9,6 +9,7 @@ import javax.servlet.http.HttpServletResponse; | |||||
| import org.apache.poi.xwpf.usermodel.XWPFDocument; | import org.apache.poi.xwpf.usermodel.XWPFDocument; | ||||
| import org.jeecgframework.poi.excel.entity.vo.TemplateWordConstants; | import org.jeecgframework.poi.excel.entity.vo.TemplateWordConstants; | ||||
| import org.jeecgframework.poi.word.WordExportUtil; | import org.jeecgframework.poi.word.WordExportUtil; | ||||
| import org.springframework.stereotype.Controller; | |||||
| import org.springframework.web.servlet.view.AbstractView; | import org.springframework.web.servlet.view.AbstractView; | ||||
| /** | /** | ||||
| @@ -18,6 +19,7 @@ import org.springframework.web.servlet.view.AbstractView; | |||||
| * @date 2014年6月30日 下午9:15:49 | * @date 2014年6月30日 下午9:15:49 | ||||
| */ | */ | ||||
| @SuppressWarnings("unchecked") | @SuppressWarnings("unchecked") | ||||
| @Controller(TemplateWordConstants.JEECG_TEMPLATE_WORD_VIEW) | |||||
| public class JeecgTemplateWordView extends AbstractView { | public class JeecgTemplateWordView extends AbstractView { | ||||
| private static final String CONTENT_TYPE = "application/msword"; | private static final String CONTENT_TYPE = "application/msword"; | ||||