| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- package cn.com.goldenwater.dcproj.utils.expExcel;
- import org.apache.poi.hssf.usermodel.HSSFWorkbook;
- import javax.servlet.http.HttpServletResponse;
- import java.util.ArrayList;
- import java.util.List;
- /**
- * Created by lhc on 2019-3-18.
- */
- public abstract class ExportAbstract implements ExportInterface {
- public ArrayList[] grouprow = null;
- public ArrayList cols = null;//头部的元素信息
- public int[] rowspos;//列行坐标
- public int level = -1;//头部的层次行数
- public int locksize = 0;//锁定列数
- public boolean groupable = false;
- public static String XLS = "xls";
- public static String TXT = "txt";
- public static String XML = "xml";
- public String export_ps_type = "xls";// "xls" "txt" "xml"
- public boolean export_ps_export = false;
- public boolean export_bzip = false;// 是否压缩方式
- public String fileName;
- public String title;
- /* 用于前台列隐藏后 动态 导出 mxd 2015-06-25
- * */
- public String notExpColumns;//
- /**
- * 字段映射关系
- * 单表:
- * SERVICEURL=......
- * 多表:
- * WATF$WATF_B_M_META$SERVICEURL=......
- */
- @Override
- public void ContinueExport(List list) throws Exception {
- }
- @Override
- public void EndExport() throws Exception {
- }
- @Override
- public void ExportHead() throws Exception {
- }
- public void ExportHeadForView() throws Exception {
- }
- public void ExportHeadForCustom(HttpServletResponse response) throws Exception {
- }
- public String getExport_ps_type() {
- return export_ps_type;
- }
- public void setExport_ps_type(String export_ps_type) {
- this.export_ps_type = export_ps_type;
- }
- public boolean isExport_ps_export() {
- return export_ps_export;
- }
- public void setExport_ps_export(boolean export_ps_export) {
- this.export_ps_export = export_ps_export;
- }
- public boolean isExport_bzip() {
- return export_bzip;
- }
- public void setExport_bzip(boolean export_bzip) {
- this.export_bzip = export_bzip;
- }
- public String getFileName() {
- return fileName;
- }
- public void setFileName(String fileName) {
- this.fileName = fileName;
- }
- public boolean isGroupable() {
- return groupable;
- }
- public void setGroupable(boolean groupable) {
- this.groupable = groupable;
- }
- public ArrayList getCols() {
- return cols;
- }
- public void setCols(ArrayList cols) {
- rowspos = new int[cols.size()];
- this.cols = cols;
- }
- public int getLevel() {
- return level;
- }
- public void setLevel(int level) {
- this.level = level;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public int getLocksize() {
- return locksize;
- }
- public void setLocksize(int locksize) {
- this.locksize = locksize;
- }
- public ArrayList[] getGrouprow() {
- return grouprow;
- }
- public void setGrouprow(ArrayList[] grouprow) {
- this.grouprow = grouprow;
- }
- public String getNotExpColumns() {
- return notExpColumns;
- }
- public void setNotExpColumns(String notExpColumns) {
- this.notExpColumns = notExpColumns;
- }
- public HSSFWorkbook getWb() {
- return null;
- }
- public HttpServletResponse Export_new(HttpServletResponse response) throws Exception {
- return null;
- }
- }
|