|
|
|
@ -26,7 +26,6 @@ import cokr.xit.base.file.service.bean.FileBean;
|
|
|
|
|
import cokr.xit.base.user.ManagedUser;
|
|
|
|
|
import cokr.xit.base.web.ApplicationController;
|
|
|
|
|
import cokr.xit.fims.cmmn.CmmnQuery;
|
|
|
|
|
import cokr.xit.fims.cmmn.CmmnUtil;
|
|
|
|
|
import cokr.xit.fims.cmmn.OtptStngQuery;
|
|
|
|
|
import cokr.xit.fims.cmmn.OutsourcingStngQuery;
|
|
|
|
|
import cokr.xit.fims.cmmn.Print;
|
|
|
|
@ -222,7 +221,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0).trackWidth(CmmnUtil.intArray(cellDefs.size()));
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
|
CellStyle left = format.cellStyle(new Style().alignment(HorizontalAlignment.LEFT));
|
|
|
|
@ -268,7 +267,10 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
xlsx.cell(0, 0).value("계고장 발송 대상").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
|
.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()));
|
|
|
|
|
xlsx.autoWidth();
|
|
|
|
|
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")
|
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("계고장발송대상" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
|
}
|
|
|
|
@ -373,7 +375,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0).trackWidth(CmmnUtil.intArray(cellDefs.size()));
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
|
CellStyle left = format.cellStyle(new Style().alignment(HorizontalAlignment.LEFT));
|
|
|
|
@ -403,7 +405,10 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
xlsx.cell(0, 0).value("계고장 발송 현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
|
.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()));
|
|
|
|
|
xlsx.autoWidth();
|
|
|
|
|
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")
|
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("계고장발송현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
|
}
|
|
|
|
@ -457,7 +462,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0).trackWidth(CmmnUtil.intArray(cellDefs.size()));
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
|
CellStyle left = format.cellStyle(new Style().alignment(HorizontalAlignment.LEFT));
|
|
|
|
@ -496,7 +501,10 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
xlsx.cell(0, 0).value("계도장 발송 상세").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
|
.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()));
|
|
|
|
|
xlsx.autoWidth();
|
|
|
|
|
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")
|
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("계도장발송상세" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
|
}
|
|
|
|
@ -555,7 +563,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0).trackWidth(CmmnUtil.intArray(cellDefs.size()));
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
|
CellStyle left = format.cellStyle(new Style().alignment(HorizontalAlignment.LEFT));
|
|
|
|
@ -599,7 +607,10 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
xlsx.cell(0, 0).value("사전통지 발송 대상").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
|
.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()));
|
|
|
|
|
xlsx.autoWidth();
|
|
|
|
|
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")
|
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("사전통지발송대상" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
|
}
|
|
|
|
@ -707,7 +718,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0).trackWidth(CmmnUtil.intArray(cellDefs.size()));
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
|
CellStyle left = format.cellStyle(new Style().alignment(HorizontalAlignment.LEFT));
|
|
|
|
@ -737,7 +748,10 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
xlsx.cell(0, 0).value("사전통지 발송 현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
|
.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()));
|
|
|
|
|
xlsx.autoWidth();
|
|
|
|
|
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")
|
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("사전통지발송현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
|
}
|
|
|
|
@ -791,7 +805,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0).trackWidth(CmmnUtil.intArray(cellDefs.size()));
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
|
CellStyle left = format.cellStyle(new Style().alignment(HorizontalAlignment.LEFT));
|
|
|
|
@ -837,7 +851,10 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
xlsx.cell(0, 0).value("사전통지 발송 상세").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
|
.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()));
|
|
|
|
|
xlsx.autoWidth();
|
|
|
|
|
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")
|
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("사전통지발송상세" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
|
}
|
|
|
|
@ -889,7 +906,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0).trackWidth(CmmnUtil.intArray(cellDefs.size()));
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
|
CellStyle left = format.cellStyle(new Style().alignment(HorizontalAlignment.LEFT));
|
|
|
|
@ -919,7 +936,10 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
xlsx.cell(0, 0).value("고지서 발송 현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
|
.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()));
|
|
|
|
|
xlsx.autoWidth();
|
|
|
|
|
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")
|
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("고지서발송현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
|
}
|
|
|
|
@ -973,7 +993,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0).trackWidth(CmmnUtil.intArray(cellDefs.size()));
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
|
CellStyle left = format.cellStyle(new Style().alignment(HorizontalAlignment.LEFT));
|
|
|
|
@ -1019,7 +1039,10 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
xlsx.cell(0, 0).value("고지서 발송 상세").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
|
.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()));
|
|
|
|
|
xlsx.autoWidth();
|
|
|
|
|
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")
|
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("고지서발송상세" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
|
}
|
|
|
|
@ -1132,7 +1155,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0).trackWidth(CmmnUtil.intArray(cellDefs.size()));
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
|
CellStyle left = format.cellStyle(new Style().alignment(HorizontalAlignment.LEFT));
|
|
|
|
@ -1176,7 +1199,10 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
xlsx.cell(0, 0).value("반송현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
|
.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()));
|
|
|
|
|
xlsx.autoWidth();
|
|
|
|
|
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")
|
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("반송현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
|
}
|
|
|
|
@ -1361,7 +1387,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0).trackWidth(CmmnUtil.intArray(cellDefs.size()));
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
|
CellStyle left = format.cellStyle(new Style().alignment(HorizontalAlignment.LEFT));
|
|
|
|
@ -1389,7 +1415,10 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
xlsx.cell(0, 0).value("공시송달현황").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
|
.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()));
|
|
|
|
|
xlsx.autoWidth();
|
|
|
|
|
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")
|
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("공시송달현황" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
|
}
|
|
|
|
@ -1443,7 +1472,7 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
List<CellDef> cellDefs = fromJson(req.getCellDefs(), CellDef.listType());
|
|
|
|
|
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0).trackWidth(CmmnUtil.intArray(cellDefs.size()));
|
|
|
|
|
XLSWriter xlsx = new XLSWriter().worksheet(0);
|
|
|
|
|
Format format = new Format(xlsx);
|
|
|
|
|
CellStyle center = format.cellStyle(new Style().alignment(HorizontalAlignment.CENTER));
|
|
|
|
|
CellStyle left = format.cellStyle(new Style().alignment(HorizontalAlignment.LEFT));
|
|
|
|
@ -1489,7 +1518,10 @@ public class Sndb01Controller extends ApplicationController {
|
|
|
|
|
xlsx.cell(0, 0).value("공시송달상세").value(center).merge(0, cellDefs.size() - 1)
|
|
|
|
|
.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()));
|
|
|
|
|
xlsx.autoWidth();
|
|
|
|
|
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")
|
|
|
|
|
.addObject("download", xlsx.getDownloadable().setFilename("공시송달상세" + "_목록_" + dateTime + ".xlsx"));
|
|
|
|
|
}
|
|
|
|
|