fc23d73504010ee0581d894c23563982e245711d.svn-base 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. package cn.com.goldenwater.dcproj.utils.expExcel;
  2. import org.apache.poi.hssf.usermodel.HSSFWorkbook;
  3. import javax.servlet.http.HttpServletResponse;
  4. import java.util.ArrayList;
  5. import java.util.List;
  6. /**
  7. * Created by lhc on 2019-3-18.
  8. */
  9. public abstract class ExportAbstract implements ExportInterface {
  10. public ArrayList[] grouprow = null;
  11. public ArrayList cols = null;//头部的元素信息
  12. public int[] rowspos;//列行坐标
  13. public int level = -1;//头部的层次行数
  14. public int locksize = 0;//锁定列数
  15. public boolean groupable = false;
  16. public static String XLS = "xls";
  17. public static String TXT = "txt";
  18. public static String XML = "xml";
  19. public String export_ps_type = "xls";// "xls" "txt" "xml"
  20. public boolean export_ps_export = false;
  21. public boolean export_bzip = false;// 是否压缩方式
  22. public String fileName;
  23. public String title;
  24. /* 用于前台列隐藏后 动态 导出 mxd 2015-06-25
  25. * */
  26. public String notExpColumns;//
  27. /**
  28. * 字段映射关系
  29. * 单表:
  30. * SERVICEURL=......
  31. * 多表:
  32. * WATF$WATF_B_M_META$SERVICEURL=......
  33. */
  34. @Override
  35. public void ContinueExport(List list) throws Exception {
  36. }
  37. @Override
  38. public void EndExport() throws Exception {
  39. }
  40. @Override
  41. public void ExportHead() throws Exception {
  42. }
  43. public void ExportHeadForView() throws Exception {
  44. }
  45. public void ExportHeadForCustom(HttpServletResponse response) throws Exception {
  46. }
  47. public String getExport_ps_type() {
  48. return export_ps_type;
  49. }
  50. public void setExport_ps_type(String export_ps_type) {
  51. this.export_ps_type = export_ps_type;
  52. }
  53. public boolean isExport_ps_export() {
  54. return export_ps_export;
  55. }
  56. public void setExport_ps_export(boolean export_ps_export) {
  57. this.export_ps_export = export_ps_export;
  58. }
  59. public boolean isExport_bzip() {
  60. return export_bzip;
  61. }
  62. public void setExport_bzip(boolean export_bzip) {
  63. this.export_bzip = export_bzip;
  64. }
  65. public String getFileName() {
  66. return fileName;
  67. }
  68. public void setFileName(String fileName) {
  69. this.fileName = fileName;
  70. }
  71. public boolean isGroupable() {
  72. return groupable;
  73. }
  74. public void setGroupable(boolean groupable) {
  75. this.groupable = groupable;
  76. }
  77. public ArrayList getCols() {
  78. return cols;
  79. }
  80. public void setCols(ArrayList cols) {
  81. rowspos = new int[cols.size()];
  82. this.cols = cols;
  83. }
  84. public int getLevel() {
  85. return level;
  86. }
  87. public void setLevel(int level) {
  88. this.level = level;
  89. }
  90. public String getTitle() {
  91. return title;
  92. }
  93. public void setTitle(String title) {
  94. this.title = title;
  95. }
  96. public int getLocksize() {
  97. return locksize;
  98. }
  99. public void setLocksize(int locksize) {
  100. this.locksize = locksize;
  101. }
  102. public ArrayList[] getGrouprow() {
  103. return grouprow;
  104. }
  105. public void setGrouprow(ArrayList[] grouprow) {
  106. this.grouprow = grouprow;
  107. }
  108. public String getNotExpColumns() {
  109. return notExpColumns;
  110. }
  111. public void setNotExpColumns(String notExpColumns) {
  112. this.notExpColumns = notExpColumns;
  113. }
  114. public HSSFWorkbook getWb() {
  115. return null;
  116. }
  117. public HttpServletResponse Export_new(HttpServletResponse response) throws Exception {
  118. return null;
  119. }
  120. }