엑셀저장 정렬 수정

main
이범준 11 months ago
parent 3c7e6accd3
commit 111acaedbe

@ -114,6 +114,8 @@ public class Crdn02Controller extends ApplicationController {
.worksheet(0); .worksheet(0);
List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx);
CellStyle numeric = xlsx.n_nn0(); CellStyle numeric = xlsx.n_nn0();
CellStyle dateYMD = xlsx.yyyy_mm_dd();
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss();
xlsx.cell(0, 0) xlsx.cell(0, 0)
.value("검사자료 목록", XLSWriter.Styler.CENTER) .value("검사자료 목록", XLSWriter.Styler.CENTER)
@ -125,7 +127,7 @@ public class Crdn02Controller extends ApplicationController {
BiFunction<String, String, ?> getValue = (titleNm, nothing) -> { BiFunction<String, String, ?> getValue = (titleNm, nothing) -> {
switch(titleNm) { switch(titleNm) {
case "단속일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); case "단속일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT);
case "자료출처": return "CRDN_INPT_SE_NM"; case "자료출처": return "CRDN_INPT_SE_NM";
case "차량번호": return "VHRNO"; case "차량번호": return "VHRNO";
case "처리상태": return "CRDN_STTS_NM"; case "처리상태": return "CRDN_STTS_NM";

@ -100,6 +100,8 @@ public class Crdn03Controller extends ApplicationController {
.worksheet(0); .worksheet(0);
List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx);
CellStyle numeric = xlsx.n_nn0(); CellStyle numeric = xlsx.n_nn0();
CellStyle dateYMD = xlsx.yyyy_mm_dd();
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss();
xlsx.cell(0, 0) xlsx.cell(0, 0)
.value("표지정보미확인자료 목록", XLSWriter.Styler.CENTER) .value("표지정보미확인자료 목록", XLSWriter.Styler.CENTER)
@ -112,7 +114,7 @@ public class Crdn03Controller extends ApplicationController {
BiFunction<String, String, ?> getValue = (titleNm, nothing) -> { BiFunction<String, String, ?> getValue = (titleNm, nothing) -> {
switch(titleNm) { switch(titleNm) {
case "자료출처": return "CRDN_INPT_SE_NM"; case "자료출처": return "CRDN_INPT_SE_NM";
case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT);
case "차량번호": return "VHRNO"; case "차량번호": return "VHRNO";
case "법정동": return "CRDN_STDG_NM"; case "법정동": return "CRDN_STDG_NM";
case "잔액": return xlsx.style("BLNC", numeric); case "잔액": return xlsx.style("BLNC", numeric);

@ -107,6 +107,8 @@ public class Crdn06Controller extends ApplicationController {
.worksheet(0); .worksheet(0);
List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx);
CellStyle numeric = xlsx.n_nn0(); CellStyle numeric = xlsx.n_nn0();
CellStyle dateYMD = xlsx.yyyy_mm_dd();
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss();
xlsx.cell(0, 0) xlsx.cell(0, 0)
.value("단속자료 목록", XLSWriter.Styler.CENTER) .value("단속자료 목록", XLSWriter.Styler.CENTER)
@ -120,7 +122,7 @@ public class Crdn06Controller extends ApplicationController {
switch(titleNm) { switch(titleNm) {
case "자료출처": return "CRDN_INPT_SE_NM"; case "자료출처": return "CRDN_INPT_SE_NM";
case "차량번호": return "VHRNO"; case "차량번호": return "VHRNO";
case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT);
case "단속장소": return "CRDN_PLC"; case "단속장소": return "CRDN_PLC";
case "체납액": return ""; case "체납액": return "";
case "사진건수": return "ATCH_FILE_CNT"; case "사진건수": return "ATCH_FILE_CNT";
@ -128,7 +130,7 @@ public class Crdn06Controller extends ApplicationController {
case "장애차량확인": return "PARKNG_PSBLTY_RSLT_NM"; case "장애차량확인": return "PARKNG_PSBLTY_RSLT_NM";
case "처리상태": return "CRDN_STTS_NM"; case "처리상태": return "CRDN_STTS_NM";
case "제외사유": return "LEVY_EXCL_RSN_NM"; case "제외사유": return "LEVY_EXCL_RSN_NM";
case "제외처리일자": return xlsx.format(o -> xlsx.str2date(o.get("LEVY_EXCL_YMD"))); case "제외처리일자": return xlsx.format(o -> xlsx.str2date(o.get("LEVY_EXCL_YMD"))).style(dateYMD);
case "제외내역": return "LEVY_EXCL_ETC_CN"; case "제외내역": return "LEVY_EXCL_ETC_CN";
} }
return ""; return "";

@ -97,6 +97,8 @@ public class Crdn08Controller extends ApplicationController {
.worksheet(0); .worksheet(0);
List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx);
CellStyle numeric = xlsx.n_nn0(); CellStyle numeric = xlsx.n_nn0();
CellStyle dateYMD = xlsx.yyyy_mm_dd();
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss();
xlsx.cell(0, 0) xlsx.cell(0, 0)
.value("면제차량 목록", XLSWriter.Styler.CENTER) .value("면제차량 목록", XLSWriter.Styler.CENTER)
@ -112,15 +114,15 @@ public class Crdn08Controller extends ApplicationController {
case "사유": return "EXMPTN_RSN"; case "사유": return "EXMPTN_RSN";
case "공문번호": return "DOC_NO"; case "공문번호": return "DOC_NO";
case "소유주명": return "OWNR_NM"; case "소유주명": return "OWNR_NM";
case "면제시작일" : return xlsx.format(o -> xlsx.str2date(o.get("EXMPTN_BGNG_YMD"))); case "면제시작일" : return xlsx.format(o -> xlsx.str2date(o.get("EXMPTN_BGNG_YMD"))).style(dateYMD);
case "면제종료일": return xlsx.format(o -> xlsx.str2date(o.get("EXMPTN_END_YMD"))); case "면제종료일": return xlsx.format(o -> xlsx.str2date(o.get("EXMPTN_END_YMD"))).style(dateYMD);
case "입력자": return "RGTR_NM"; case "입력자": return "RGTR_NM";
case "입력일시": return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))); case "입력일시": return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT);
case "수정자": return "MDFR_NM"; case "수정자": return "MDFR_NM";
case "수정일시": return xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))); case "수정일시": return xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))).style(dateDT);
case "삭제자": return "DLTR_NM"; case "삭제자": return "DLTR_NM";
case "삭제사유": return "DEL_RSN"; case "삭제사유": return "DEL_RSN";
case "삭제일시": return xlsx.format(o -> xlsx.str2datetime(o.get("DEL_DT"))); case "삭제일시": return xlsx.format(o -> xlsx.str2datetime(o.get("DEL_DT"))).style(dateDT);
} }
return ""; return "";
}; };

@ -117,6 +117,8 @@ public class Cvlc01Controller extends ApplicationController {
.worksheet(0); .worksheet(0);
List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx);
CellStyle numeric = xlsx.n_nn0(); CellStyle numeric = xlsx.n_nn0();
CellStyle dateYMD = xlsx.yyyy_mm_dd();
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss();
xlsx.cell(0, 0) xlsx.cell(0, 0)
.value("민원접수자료 목록", XLSWriter.Styler.CENTER) .value("민원접수자료 목록", XLSWriter.Styler.CENTER)
@ -134,9 +136,9 @@ public class Cvlc01Controller extends ApplicationController {
case "신고자": return "CVLCPT_APLCNT_NM"; case "신고자": return "CVLCPT_APLCNT_NM";
case "담당자" : return "CVLCPT_PRCS_PIC_NM"; case "담당자" : return "CVLCPT_PRCS_PIC_NM";
case "담당자전화번호": return "CVLCPT_PRCS_PIC_TELNO"; case "담당자전화번호": return "CVLCPT_PRCS_PIC_TELNO";
case "접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))); case "접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))).style(dateYMD);
case "처리기한": return xlsx.format(o -> xlsx.str2datetime(o.get("CVLCPT_PRCS_PRNMNT_DT"))); case "처리기한": return xlsx.format(o -> xlsx.str2datetime(o.get("CVLCPT_PRCS_PRNMNT_DT"))).style(dateDT);
case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT);
case "위반내용": return "VLTN_ARTCL"; case "위반내용": return "VLTN_ARTCL";
case "차량번호": return "VHRNO"; case "차량번호": return "VHRNO";
case "사진건수": return "ATCH_FILE_CNT"; case "사진건수": return "ATCH_FILE_CNT";

@ -106,6 +106,8 @@ public class Cvlc02Controller extends ApplicationController {
.worksheet(0); .worksheet(0);
List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx);
CellStyle numeric = xlsx.n_nn0(); CellStyle numeric = xlsx.n_nn0();
CellStyle dateYMD = xlsx.yyyy_mm_dd();
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss();
xlsx.cell(0, 0) xlsx.cell(0, 0)
.value("민원답변대상자료 목록", XLSWriter.Styler.CENTER) .value("민원답변대상자료 목록", XLSWriter.Styler.CENTER)
@ -122,9 +124,9 @@ public class Cvlc02Controller extends ApplicationController {
case "신고자": return "CVLCPT_APLCNT_NM"; case "신고자": return "CVLCPT_APLCNT_NM";
case "담당자" : return "CVLCPT_PRCS_PIC_NM"; case "담당자" : return "CVLCPT_PRCS_PIC_NM";
case "담당자전화번호": return "CVLCPT_PRCS_PIC_TELNO"; case "담당자전화번호": return "CVLCPT_PRCS_PIC_TELNO";
case "접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))); case "접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))).style(dateYMD);
case "처리기한": return xlsx.format(o -> xlsx.str2datetime(o.get("CVLCPT_PRCS_PRNMNT_DT"))); case "처리기한": return xlsx.format(o -> xlsx.str2datetime(o.get("CVLCPT_PRCS_PRNMNT_DT"))).style(dateDT);
case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT);
case "위반내용": return "VLTN_ARTCL"; case "위반내용": return "VLTN_ARTCL";
case "차량번호": return "VHRNO"; case "차량번호": return "VHRNO";
case "서손/계고사유": return "LEVY_EXCL_RSN_NM"; case "서손/계고사유": return "LEVY_EXCL_RSN_NM";

@ -97,6 +97,8 @@ public class Cvlc03Controller extends ApplicationController {
.worksheet(0); .worksheet(0);
List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx);
CellStyle numeric = xlsx.n_nn0(); CellStyle numeric = xlsx.n_nn0();
CellStyle dateYMD = xlsx.yyyy_mm_dd();
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss();
xlsx.cell(0, 0) xlsx.cell(0, 0)
.value("민원자료 목록", XLSWriter.Styler.CENTER) .value("민원자료 목록", XLSWriter.Styler.CENTER)
@ -114,9 +116,9 @@ public class Cvlc03Controller extends ApplicationController {
case "신고자": return "CVLCPT_APLCNT_NM"; case "신고자": return "CVLCPT_APLCNT_NM";
case "담당자" : return "CVLCPT_PRCS_PIC_NM"; case "담당자" : return "CVLCPT_PRCS_PIC_NM";
case "담당자전화번호": return "CVLCPT_PRCS_PIC_TELNO"; case "담당자전화번호": return "CVLCPT_PRCS_PIC_TELNO";
case "접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))); case "접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))).style(dateYMD);
case "처리기한": return xlsx.format(o -> xlsx.str2datetime(o.get("CVLCPT_PRCS_PRNMNT_DT"))); case "처리기한": return xlsx.format(o -> xlsx.str2datetime(o.get("CVLCPT_PRCS_PRNMNT_DT"))).style(dateDT);
case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); case "위반일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT);
case "위반내용": return "VLTN_ARTCL"; case "위반내용": return "VLTN_ARTCL";
case "차량번호": return "VHRNO"; case "차량번호": return "VHRNO";
case "사진건수": return "ATCH_FILE_CNT"; case "사진건수": return "ATCH_FILE_CNT";

@ -189,6 +189,8 @@ public class Sprt01Controller extends ApplicationController {
.worksheet(0); .worksheet(0);
List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx); List<Styler> headerStylers = CmmnUtil.makeHeadersByDiffrentWidths(widths, xlsx);
CellStyle numeric = xlsx.n_nn0(); CellStyle numeric = xlsx.n_nn0();
CellStyle dateYMD = xlsx.yyyy_mm_dd();
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss();
xlsx.cell(0, 0) xlsx.cell(0, 0)
.value(fileName, XLSWriter.Styler.CENTER) .value(fileName, XLSWriter.Styler.CENTER)
@ -201,10 +203,10 @@ public class Sprt01Controller extends ApplicationController {
case "시군구명": return "SGG_NM"; case "시군구명": return "SGG_NM";
case "과태료명": return "TASK_SE_NM"; case "과태료명": return "TASK_SE_NM";
case "단속입력구분": return "CRDN_INPT_SE_NM"; case "단속입력구분": return "CRDN_INPT_SE_NM";
case "단속일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))); case "단속일시": return xlsx.format(o -> xlsx.str2datetime(o.get("CRDN_YMD_TM"))).style(dateDT);
case "신고자명": return "CVLCPT_APLCNT_NM"; case "신고자명": return "CVLCPT_APLCNT_NM";
case "민원접수번호": return "CVLCPT_RCPT_NO"; case "민원접수번호": return "CVLCPT_RCPT_NO";
case "민원접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))); case "민원접수일자": return xlsx.format(o -> xlsx.str2date(o.get("CVLCPT_RCPT_YMD"))).style(dateYMD);
case "민원목록번호": return "CVLCPT_LIST_NO"; case "민원목록번호": return "CVLCPT_LIST_NO";
case "단속차량번호": return "VHRNO"; case "단속차량번호": return "VHRNO";
case "대체차량번호": return "RPM_SZR_VHRNO"; case "대체차량번호": return "RPM_SZR_VHRNO";
@ -214,28 +216,28 @@ public class Sprt01Controller extends ApplicationController {
case "납부자번호": return "RTPYR_NO"; case "납부자번호": return "RTPYR_NO";
case "처리상태": return "CRDN_STTS_NM"; case "처리상태": return "CRDN_STTS_NM";
case "제외사유": return "LEVY_EXCL_RSN_NM"; case "제외사유": return "LEVY_EXCL_RSN_NM";
case "제외일자": return xlsx.format(o -> xlsx.str2date(o.get("LEVY_EXCL_YMD"))); case "제외일자": return xlsx.format(o -> xlsx.str2date(o.get("LEVY_EXCL_YMD"))).style(dateYMD);
case "기타사항": return "ETC_CN"; case "기타사항": return "ETC_CN";
case "고지번호": return "GOJI_NO"; case "고지번호": return "GOJI_NO";
case "처리일자": return xlsx.format(o -> xlsx.str2date(o.get("CRDN_STTS_CHG_YMD"))); case "처리일자": return xlsx.format(o -> xlsx.str2date(o.get("CRDN_STTS_CHG_YMD"))).style(dateYMD);
case "단속장소": return "CRDN_PLC"; case "단속장소": return "CRDN_PLC";
case "단속구분": return "CRDN_SE_NM"; case "단속구분": return "CRDN_SE_NM";
case "의견진술여부": return "OPNN_SBMSN_YN_NM"; case "의견진술여부": return "OPNN_SBMSN_YN_NM";
case "의견진술기한": return xlsx.format(o -> xlsx.str2date(o.get("ADVNTCE_DUDT_YMD"))); case "의견진술기한": return xlsx.format(o -> xlsx.str2date(o.get("ADVNTCE_DUDT_YMD"))).style(dateYMD);
case "견인여부": return "TOWNG_YN_NM"; case "견인여부": return "TOWNG_YN_NM";
case "압류일자": return xlsx.format(o -> xlsx.str2date(o.get("SZR_YMD"))); case "압류일자": return xlsx.format(o -> xlsx.str2date(o.get("SZR_YMD"))).style(dateYMD);
case "압류해제일자": return xlsx.format(o -> xlsx.str2date(o.get("SZR_RMV_YMD"))); case "압류해제일자": return xlsx.format(o -> xlsx.str2date(o.get("SZR_RMV_YMD"))).style(dateYMD);
case "잔액": return xlsx.style("SUM_AMT", numeric); case "잔액": return xlsx.style("SUM_AMT", numeric);
case "부과금액": return xlsx.style("LEVY_AMT", numeric); case "부과금액": return xlsx.style("LEVY_AMT", numeric);
case "본세": return xlsx.style("LEVY_PCPTAX", numeric); case "본세": return xlsx.style("LEVY_PCPTAX", numeric);
case "가산금": return xlsx.style("LEVY_ADAMT", numeric); case "가산금": return xlsx.style("LEVY_ADAMT", numeric);
case "납부기한": return xlsx.format(o -> xlsx.str2date(o.get("DUDT_YMD"))); case "납부기한": return xlsx.format(o -> xlsx.str2date(o.get("DUDT_YMD"))).style(dateYMD);
case "납기후일자": return xlsx.format(o -> xlsx.str2date(o.get("DUDT_AFTR_YMD"))); case "납기후일자": return xlsx.format(o -> xlsx.str2date(o.get("DUDT_AFTR_YMD"))).style(dateYMD);
case "납기후금액": return xlsx.style("DUDT_AFTR_AMT", numeric); case "납기후금액": return xlsx.style("DUDT_AFTR_AMT", numeric);
case "가상계좌번호": return "VR_ACTNO"; case "가상계좌번호": return "VR_ACTNO";
case "전자납부번호": return "EPAYNO"; case "전자납부번호": return "EPAYNO";
case "수납유형": return "PAY_MTHD_SE_NM"; case "수납유형": return "PAY_MTHD_SE_NM";
case "수납일자": return xlsx.format(o -> xlsx.str2date(o.get("RCVMT_YMD"))); case "수납일자": return xlsx.format(o -> xlsx.str2date(o.get("RCVMT_YMD"))).style(dateYMD);
case "수납금액": return xlsx.style("RCVMT_AMT", numeric); case "수납금액": return xlsx.style("RCVMT_AMT", numeric);
case "수납본세": return xlsx.style("RCVMT_PCPTAX", numeric); case "수납본세": return xlsx.style("RCVMT_PCPTAX", numeric);
case "수납가산금": return xlsx.style("RCVMT_ADAMT", numeric); case "수납가산금": return xlsx.style("RCVMT_ADAMT", numeric);

Loading…
Cancel
Save