|
|
@ -9,7 +9,6 @@ import java.util.Map;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.poi.ss.usermodel.CellStyle;
|
|
|
|
import org.apache.poi.ss.usermodel.CellStyle;
|
|
|
|
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
@ -224,7 +223,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
CellStyle center = format.cellStyle(Style.CENTER);
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
@ -267,10 +266,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
xlsx.cell(0, 0).value("계고장 발송 대상").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
xlsx.cell(0, 0).value("계고장 발송 대상").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
List<Integer> cellWidthInfo = cellDefs.stream().map(CellDef::getWidth).toList();
|
|
|
|
|
|
|
|
for(int i=0; i<cellWidthInfo.size();i++) {
|
|
|
|
|
|
|
|
xlsx.workbook().getSheetAt(0).setColumnWidth(i, cellWidthInfo.get(i)*256);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("계고장발송대상" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("계고장발송대상" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -377,7 +373,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
CellStyle center = format.cellStyle(Style.CENTER);
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
@ -404,10 +400,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
xlsx.cell(0, 0).value("계고장 발송 현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
xlsx.cell(0, 0).value("계고장 발송 현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
List<Integer> cellWidthInfo = cellDefs.stream().map(CellDef::getWidth).toList();
|
|
|
|
|
|
|
|
for(int i=0; i<cellWidthInfo.size();i++) {
|
|
|
|
|
|
|
|
xlsx.workbook().getSheetAt(0).setColumnWidth(i, cellWidthInfo.get(i)*256);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("계고장발송현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("계고장발송현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -463,7 +456,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
CellStyle center = format.cellStyle(Style.CENTER);
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
@ -499,10 +492,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
xlsx.cell(0, 0).value("계도장 발송 상세").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
xlsx.cell(0, 0).value("계도장 발송 상세").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
List<Integer> cellWidthInfo = cellDefs.stream().map(CellDef::getWidth).toList();
|
|
|
|
|
|
|
|
for(int i=0; i<cellWidthInfo.size();i++) {
|
|
|
|
|
|
|
|
xlsx.workbook().getSheetAt(0).setColumnWidth(i, cellWidthInfo.get(i)*256);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("계도장발송상세" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("계도장발송상세" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -563,7 +553,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
CellStyle center = format.cellStyle(Style.CENTER);
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
@ -604,10 +594,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
xlsx.cell(0, 0).value("사전통지 발송 대상").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
xlsx.cell(0, 0).value("사전통지 발송 대상").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
List<Integer> cellWidthInfo = cellDefs.stream().map(CellDef::getWidth).toList();
|
|
|
|
|
|
|
|
for(int i=0; i<cellWidthInfo.size();i++) {
|
|
|
|
|
|
|
|
xlsx.workbook().getSheetAt(0).setColumnWidth(i, cellWidthInfo.get(i)*256);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("사전통지발송대상" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("사전통지발송대상" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -717,7 +704,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
CellStyle center = format.cellStyle(Style.CENTER);
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
@ -744,10 +731,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
xlsx.cell(0, 0).value("사전통지 발송 현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
xlsx.cell(0, 0).value("사전통지 발송 현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
List<Integer> cellWidthInfo = cellDefs.stream().map(CellDef::getWidth).toList();
|
|
|
|
|
|
|
|
for(int i=0; i<cellWidthInfo.size();i++) {
|
|
|
|
|
|
|
|
xlsx.workbook().getSheetAt(0).setColumnWidth(i, cellWidthInfo.get(i)*256);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("사전통지발송현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("사전통지발송현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -803,7 +787,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
CellStyle center = format.cellStyle(Style.CENTER);
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
@ -846,10 +830,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
xlsx.cell(0, 0).value("사전통지 발송 상세").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
xlsx.cell(0, 0).value("사전통지 발송 상세").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
List<Integer> cellWidthInfo = cellDefs.stream().map(CellDef::getWidth).toList();
|
|
|
|
|
|
|
|
for(int i=0; i<cellWidthInfo.size();i++) {
|
|
|
|
|
|
|
|
xlsx.workbook().getSheetAt(0).setColumnWidth(i, cellWidthInfo.get(i)*256);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("사전통지발송상세" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("사전통지발송상세" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -981,7 +962,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
CellStyle center = format.cellStyle(Style.CENTER);
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
@ -1008,10 +989,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
xlsx.cell(0, 0).value("고지서 발송 현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
xlsx.cell(0, 0).value("고지서 발송 현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
List<Integer> cellWidthInfo = cellDefs.stream().map(CellDef::getWidth).toList();
|
|
|
|
|
|
|
|
for(int i=0; i<cellWidthInfo.size();i++) {
|
|
|
|
|
|
|
|
xlsx.workbook().getSheetAt(0).setColumnWidth(i, cellWidthInfo.get(i)*256);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("고지서발송현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("고지서발송현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1067,7 +1045,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
CellStyle center = format.cellStyle(Style.CENTER);
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
@ -1110,10 +1088,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
xlsx.cell(0, 0).value("고지서 발송 상세").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
xlsx.cell(0, 0).value("고지서 발송 상세").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
List<Integer> cellWidthInfo = cellDefs.stream().map(CellDef::getWidth).toList();
|
|
|
|
|
|
|
|
for(int i=0; i<cellWidthInfo.size();i++) {
|
|
|
|
|
|
|
|
xlsx.workbook().getSheetAt(0).setColumnWidth(i, cellWidthInfo.get(i)*256);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("고지서발송상세" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("고지서발송상세" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1228,7 +1203,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
CellStyle center = format.cellStyle(Style.CENTER);
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
@ -1269,10 +1244,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
xlsx.cell(0, 0).value("반송현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
xlsx.cell(0, 0).value("반송현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
List<Integer> cellWidthInfo = cellDefs.stream().map(CellDef::getWidth).toList();
|
|
|
|
|
|
|
|
for(int i=0; i<cellWidthInfo.size();i++) {
|
|
|
|
|
|
|
|
xlsx.workbook().getSheetAt(0).setColumnWidth(i, cellWidthInfo.get(i)*256);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("반송현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("반송현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1459,7 +1431,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
CellStyle center = format.cellStyle(Style.CENTER);
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
@ -1484,10 +1456,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
xlsx.cell(0, 0).value("공시송달현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
xlsx.cell(0, 0).value("공시송달현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
List<Integer> cellWidthInfo = cellDefs.stream().map(CellDef::getWidth).toList();
|
|
|
|
|
|
|
|
for(int i=0; i<cellWidthInfo.size();i++) {
|
|
|
|
|
|
|
|
xlsx.workbook().getSheetAt(0).setColumnWidth(i, cellWidthInfo.get(i)*256);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("공시송달현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("공시송달현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1543,7 +1512,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
CellStyle center = format.cellStyle(Style.CENTER);
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle numeric = format.n_nn0();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateYMD = format.yyyy_mm_dd();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
|
CellStyle dateDT = format.yyyy_mm_dd_hh_mm_ss();
|
|
|
@ -1586,10 +1555,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
xlsx.cell(0, 0).value("공시송달상세").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
xlsx.cell(0, 0).value("공시송달상세").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(3, 0).rowValues(CellDef.header(cellDefs, () -> StyleMaker.headerStyle(xlsx)))
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
.cell(4, 0).values(list, CellDef.values(cellDefs.stream().map(i -> {if(i.getValue() instanceof Format) {i.setField(null);}; return i;}).toList()));
|
|
|
|
List<Integer> cellWidthInfo = cellDefs.stream().map(CellDef::getWidth).toList();
|
|
|
|
|
|
|
|
for(int i=0; i<cellWidthInfo.size();i++) {
|
|
|
|
|
|
|
|
xlsx.workbook().getSheetAt(0).setColumnWidth(i, cellWidthInfo.get(i)*256);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
return new ModelAndView("downloadView")
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("공시송달상세" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("공시송달상세" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|