|
|
|
@ -5,9 +5,13 @@ import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
import org.apache.poi.hssf.util.HSSFColor;
|
|
|
|
|
import org.apache.poi.ss.usermodel.CellStyle;
|
|
|
|
|
import org.apache.poi.ss.usermodel.Font;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.code.CommonCode;
|
|
|
|
|
import cokr.xit.base.file.xls.XLSWriter;
|
|
|
|
|
import cokr.xit.base.user.ManagedUser;
|
|
|
|
|
import cokr.xit.base.web.ApplicationController;
|
|
|
|
|
import cokr.xit.fims.excl.LevyExcl;
|
|
|
|
@ -82,9 +86,46 @@ public class Excl01Controller extends ApplicationController {
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
public ModelAndView getLevyExclusionList(LevyExclQuery req) {
|
|
|
|
|
if (!"xls".equals(req.getDownload())) {
|
|
|
|
|
List<?> result = levyExclService.getLevyExclList(setFetchSize(req));
|
|
|
|
|
|
|
|
|
|
return setCollectionInfo(new ModelAndView("jsonView"), result, "levyExcl");
|
|
|
|
|
} else {
|
|
|
|
|
XLSWriter xlsx = new XLSWriter()
|
|
|
|
|
.setFilename("부과제외 목록.xlsx")
|
|
|
|
|
.worksheet(0);
|
|
|
|
|
|
|
|
|
|
CellStyle
|
|
|
|
|
header = xlsx.cellStyle(new XLSWriter.Styler()
|
|
|
|
|
.width(20)
|
|
|
|
|
.foregroundColor(HSSFColor.HSSFColorPredefined.LIGHT_BLUE.getIndex())
|
|
|
|
|
.configure(styler -> {
|
|
|
|
|
Font font = xlsx.workbook().createFont();
|
|
|
|
|
font.setColor(HSSFColor.HSSFColorPredefined.WHITE.getIndex());
|
|
|
|
|
styler.font(font);
|
|
|
|
|
})
|
|
|
|
|
),
|
|
|
|
|
numeric = xlsx.n_nn0();
|
|
|
|
|
|
|
|
|
|
xlsx.cell(0, 0)
|
|
|
|
|
.value("부과제외 목록", XLSWriter.Styler.CENTER)
|
|
|
|
|
.merge(0, 15)
|
|
|
|
|
.cell(3, 0)
|
|
|
|
|
.rowValues(List.of(
|
|
|
|
|
"업무구분", header, "부과제외일자", header, "부과제외구분", header, "부과제외사유", header, "기타내용", header,
|
|
|
|
|
"민원신청번호", header, "민원접수번호", header, "민원접수일자", header, "단속일시", header, "차량번호", header,
|
|
|
|
|
"법정동", header, "단속장소", header, "과태료금액", header, "처리상태", header, "납부자명", header, "납부자생일", header
|
|
|
|
|
))
|
|
|
|
|
.cell(4, 0)
|
|
|
|
|
.values(
|
|
|
|
|
levyExclService.getLevyExclList(req.setFetchSize(0)),
|
|
|
|
|
"TASK_SE_NM", xlsx.format(r -> xlsx.str2date(r.get("LEVY_EXCL_YMD"))), "LEVY_EXCL_SE_NM", "LEVY_EXCL_RSN_NM", "ETC_CN",
|
|
|
|
|
"CVLCPT_APLY_NO", "CVLCPT_RCPT_NO", xlsx.format(r -> xlsx.str2date(r.get("CVLCPT_RCPT_YMD"))), xlsx.format(r -> xlsx.str2date(r.get("CRDN_YMD")) + " " + xlsx.str2time(r.get("CRDN_TM"))),
|
|
|
|
|
"VHRNO", "CRDN_STDG_NM", "CRDN_PLC", xlsx.style("FFNLG_AMT", numeric), "CRDN_STTS_NM", "RTPYR_NM", xlsx.format(r -> xlsx.str2date(r.get("RTPYR_BRDT")))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
return new ModelAndView("xlsView")
|
|
|
|
|
.addObject("xls", xlsx);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**지정한 ID의 부과제외 정보(info)를 반환한다.
|
|
|
|
|