엑셀저장 가운데 정렬 수정.

main
jjh 11 months ago
parent ebca04ac86
commit d93f48eae5

@ -124,7 +124,8 @@ public class Epst02Controller extends ApplicationController {
.setFilename("우편통합 안내문 목록.xlsx") .setFilename("우편통합 안내문 목록.xlsx")
.worksheet(0); .worksheet(0);
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간 CellStyle center = xlsx.cellStyle(Styler.CENTER) // 가운데 정렬
, dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간
String[] excelTitle = req.getExcelTitle(); String[] excelTitle = req.getExcelTitle();
List<String> titles = new ArrayList<String>(); List<String> titles = new ArrayList<String>();
@ -144,7 +145,7 @@ public class Epst02Controller extends ApplicationController {
xlsx.cell(0, 0) xlsx.cell(0, 0)
.value("우편통합 안내문", XLSWriter.Styler.CENTER) .value("우편통합 안내문", XLSWriter.Styler.CENTER)
.merge(0, 8) .merge(0, 9)
.cell(3, 0) .cell(3, 0)
.rowValues(CmmnUtil.mergeListByIndex(titles, headerStylers)); .rowValues(CmmnUtil.mergeListByIndex(titles, headerStylers));
@ -152,15 +153,16 @@ public class Epst02Controller extends ApplicationController {
BiFunction<String, String, ?> getValue = (titleNm, nothing) -> { BiFunction<String, String, ?> getValue = (titleNm, nothing) -> {
switch (titleNm) { switch (titleNm) {
case "업무구분" : return xlsx.style("TASK_SE_NM", XLSWriter.Styler.CENTER); case "업무구분" : return xlsx.style("TASK_SE_NM", center);
case "발송구분" : return xlsx.style("SNDNG_SE_NM", XLSWriter.Styler.CENTER); case "발송구분" : return xlsx.style("SNDNG_SE_NM", center);
case "사용여부" : return xlsx.style("USE_YN_NM", XLSWriter.Styler.CENTER); case "사용여부" : return xlsx.style("USE_YN_NM", center);
case "최종사용일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("LAST_USE_DT"))).style(dateDT); case "최종사용일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("LAST_USE_DT"))).style(dateDT);
case "제목" : return xlsx.style("TTL_NM", XLSWriter.Styler.LEFT); case "제목" : return "TTL_NM";
case "문구내용" : return "WORDS_CN";
case "등록일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT); case "등록일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT);
case "등록사용자" : return xlsx.style("RGTR_NM", XLSWriter.Styler.CENTER); case "등록사용자" : return xlsx.style("RGTR_NM", center);
case "수정일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))).style(dateDT); case "수정일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))).style(dateDT);
case "수정사용자" : return xlsx.style("MDFR_NM", XLSWriter.Styler.CENTER); case "수정사용자" : return xlsx.style("MDFR_NM", center);
} }
return ""; return "";
@ -309,7 +311,8 @@ public class Epst02Controller extends ApplicationController {
.setFilename("우편통합 우편발송 목록.xlsx") .setFilename("우편통합 우편발송 목록.xlsx")
.worksheet(0); .worksheet(0);
CellStyle numeric = xlsx.n_nn0() // 숫자 3자리 콤마(,) CellStyle center = xlsx.cellStyle(Styler.CENTER) // 가운데 정렬
, numeric = xlsx.n_nn0() // 숫자 3자리 콤마(,)
, dateYMD = xlsx.yyyy_mm_dd() // 연월일 , dateYMD = xlsx.yyyy_mm_dd() // 연월일
, dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간 , dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간
@ -340,14 +343,14 @@ public class Epst02Controller extends ApplicationController {
BiFunction<String, String, ?> getValue = (titleNm, nothing) -> { BiFunction<String, String, ?> getValue = (titleNm, nothing) -> {
switch (titleNm) { switch (titleNm) {
case "발송일자" : return xlsx.format(o -> xlsx.str2date(o.get("SEND_DATE"))).style(dateYMD); case "발송일자" : return xlsx.format(o -> xlsx.str2date(o.get("SEND_DATE"))).style(dateYMD);
case "발송내역" : return xlsx.style("JOB_CD", XLSWriter.Styler.CENTER); case "발송내역" : return xlsx.style("JOB_CD", center);
case "취급구분" : return xlsx.style("DIV_KB_NM", XLSWriter.Styler.CENTER); case "취급구분" : return xlsx.style("DIV_KB_NM", center);
case "접수일자" : return xlsx.format(o -> xlsx.str2date(o.get("RCEPT_YMD"))).style(dateYMD); case "접수일자" : return xlsx.format(o -> xlsx.str2date(o.get("RCEPT_YMD"))).style(dateYMD);
case "자료키" : return xlsx.style("CON_KEY", XLSWriter.Styler.CENTER); case "자료키" : return xlsx.style("CON_KEY", center);
case "발송건수" : return xlsx.style("RECEV_CNT", numeric); case "발송건수" : return xlsx.style("RECEV_CNT", numeric);
case "우편처리상태" : return xlsx.style("POST_PRCS_STTS_NM", XLSWriter.Styler.CENTER); case "우편처리상태" : return xlsx.style("POST_PRCS_STTS_NM", center);
case "등록일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT); case "등록일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT);
case "등록사용자" : return xlsx.style("RGTR_NM", XLSWriter.Styler.CENTER); case "등록사용자" : return xlsx.style("RGTR_NM", center);
} }
return ""; return "";
@ -389,7 +392,8 @@ public class Epst02Controller extends ApplicationController {
.setFilename("우편통합 발송상세 정보.xlsx") .setFilename("우편통합 발송상세 정보.xlsx")
.worksheet(0); .worksheet(0);
CellStyle dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간 CellStyle center = xlsx.cellStyle(Styler.CENTER) // 가운데 정렬
, dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간
String[] excelTitle = req.getExcelTitle(); String[] excelTitle = req.getExcelTitle();
List<String> titles = new ArrayList<String>(); List<String> titles = new ArrayList<String>();
@ -418,19 +422,19 @@ public class Epst02Controller 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("REG_DT"))).style(dateDT); case "등록일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT);
case "등기번호" : return xlsx.style("RGST_NMBR", XLSWriter.Styler.CENTER); case "등기번호" : return xlsx.style("RGST_NMBR", center);
case "우편번호" : return xlsx.style("RECEV_CAR_OWNER_ZIPCODE", XLSWriter.Styler.CENTER); case "우편번호" : return xlsx.style("RECEV_CAR_OWNER_ZIPCODE", center);
case "수취인명" : return xlsx.style("RECEV_CAR_OWNER_NM", XLSWriter.Styler.LEFT); case "수취인명" : return "RECEV_CAR_OWNER_NM";
case "배달일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("DELIV_YMD_TM"))).style(dateDT); case "배달일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("DELIV_YMD_TM"))).style(dateDT);
case "배달결과" : return xlsx.style("DELIVRSLTCD_NM", XLSWriter.Styler.CENTER); case "배달결과" : return xlsx.style("DELIVRSLTCD_NM", center);
case "수령인명" : return xlsx.style("SUBRECPRSNNM", XLSWriter.Styler.LEFT); case "수령인명" : return "SUBRECPRSNNM";
case "수령인관계" : return xlsx.style("RELRECPRSNCDNM", XLSWriter.Styler.LEFT); case "수령인관계" : return "RELRECPRSNCDNM";
case "미배달사유" : return xlsx.style("NONDELIVREASNCDNM", XLSWriter.Styler.LEFT); case "미배달사유" : return "NONDELIVREASNCDNM";
case "주소" : return xlsx.style("RECEV_CAR_OWNER_ADDR", XLSWriter.Styler.LEFT); case "주소" : return "RECEV_CAR_OWNER_ADDR";
case "상세주소" : return xlsx.style("RECEV_CAR_OWNER_DETAILADDR", XLSWriter.Styler.LEFT); case "상세주소" : return "RECEV_CAR_OWNER_DETAILADDR";
case "등록사용자" : return xlsx.style("RGTR_NM", XLSWriter.Styler.CENTER); case "등록사용자" : return xlsx.style("RGTR_NM", center);
case "수정일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))).style(dateDT); case "수정일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("MDFCN_DT"))).style(dateDT);
case "수정사용자" : return xlsx.style("MDFR_NM", XLSWriter.Styler.CENTER); case "수정사용자" : return xlsx.style("MDFR_NM", center);
} }
return ""; return "";
@ -543,7 +547,8 @@ public class Epst02Controller extends ApplicationController {
.setFilename("우편통합 접수결과 목록.xlsx") .setFilename("우편통합 접수결과 목록.xlsx")
.worksheet(0); .worksheet(0);
CellStyle numeric = xlsx.n_nn0() // 숫자 3자리 콤마(,) CellStyle center = xlsx.cellStyle(Styler.CENTER) // 가운데 정렬
, numeric = xlsx.n_nn0() // 숫자 3자리 콤마(,)
, dateYMD = xlsx.yyyy_mm_dd() // 연월일 , dateYMD = xlsx.yyyy_mm_dd() // 연월일
, dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간 , dateDT = xlsx.yyyy_mm_dd_hh_mm_ss(); // 연월일+시간
@ -573,18 +578,18 @@ public class Epst02Controller extends ApplicationController {
BiFunction<String, String, ?> getValue = (titleNm, nothing) -> { BiFunction<String, String, ?> getValue = (titleNm, nothing) -> {
switch (titleNm) { switch (titleNm) {
case "발송자료키" : return xlsx.style("RELETCDATA", XLSWriter.Styler.CENTER); case "발송자료키" : return xlsx.style("RELETCDATA", center);
case "우편물코드" : return xlsx.style("JOB_CD", XLSWriter.Styler.CENTER); case "우편물코드" : return xlsx.style("JOB_CD", center);
case "우편물종류" : return xlsx.style("JOB_CD3_NM", XLSWriter.Styler.CENTER); case "우편물종류" : return xlsx.style("JOB_CD3_NM", center);
case "발송일자" : return xlsx.format(r -> xlsx.str2date(r.get("EXTRI_REGYMD"))).style(dateYMD); case "발송일자" : return xlsx.format(r -> xlsx.str2date(r.get("EXTRI_REGYMD"))).style(dateYMD);
case "접수일자" : return xlsx.format(r -> xlsx.str2date(r.get("RCEPT_YMD"))).style(dateYMD); case "접수일자" : return xlsx.format(r -> xlsx.str2date(r.get("RCEPT_YMD"))).style(dateYMD);
case "취급구분" : return xlsx.style("DIV_KB_NM", XLSWriter.Styler.CENTER); case "취급구분" : return xlsx.style("DIV_KB_NM", center);
case "발송건수" : return xlsx.style("RCEPT_CNT", numeric); case "발송건수" : return xlsx.style("RCEPT_CNT", numeric);
case "결제금액" : return xlsx.style("RCEPT_AMT", numeric); case "결제금액" : return xlsx.style("RCEPT_AMT", numeric);
case "제작수수료" : return xlsx.style("USEFEE_AMT", numeric); case "제작수수료" : return xlsx.style("USEFEE_AMT", numeric);
case "우편요금" : return xlsx.style("TOTPOST_PRC", numeric); case "우편요금" : return xlsx.style("TOTPOST_PRC", numeric);
case "등록일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT); case "등록일시" : return xlsx.format(o -> xlsx.str2datetime(o.get("REG_DT"))).style(dateDT);
case "등록사용자" : return xlsx.style("RGTR_NM", XLSWriter.Styler.CENTER); case "등록사용자" : return xlsx.style("RGTR_NM", center);
} }
return ""; return "";

@ -52,10 +52,6 @@ public class CrdnReRegBean extends AbstractComponent {
* @return * @return
*/ */
public List<DataObject> getCrdnReRegList(LevyExclQuery req) { public List<DataObject> getCrdnReRegList(LevyExclQuery req) {
// 사용 여부 확인
if (req.getUseYN() == null) {
req.setUseYN("Y");
}
// 삭제 여부 확인 // 삭제 여부 확인
if (req.getDelYN() == null) { if (req.getDelYN() == null) {
req.setDelYN("N"); req.setDelYN("N");

@ -8,6 +8,7 @@ import org.springframework.stereotype.Component;
import cokr.xit.foundation.AbstractComponent; import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.cmmn.CmmnUtil;
import cokr.xit.fims.cmmn.CrdnSttsHstry; import cokr.xit.fims.cmmn.CrdnSttsHstry;
import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean; import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean;
import cokr.xit.fims.levy.Levy; import cokr.xit.fims.levy.Levy;
@ -49,8 +50,13 @@ public class RcvmtBean extends AbstractComponent {
if (req.getDelYN() == null) { if (req.getDelYN() == null) {
req.setDelYN("N"); req.setDelYN("N");
} }
// 정렬 확인
if (req.getOrderBy() == null) { if (req.getOrderBy() == null) {
if (req.getBy() == null) {
req.setOrderBy("REG_DT"); req.setOrderBy("REG_DT");
} else {
req.setOrderBy(CmmnUtil.convertCamelCaseToSnakeCase(req.getBy()));
}
} }
return rcvmtMapper.selectRcvmtList(req); return rcvmtMapper.selectRcvmtList(req);
@ -61,6 +67,9 @@ public class RcvmtBean extends AbstractComponent {
* @return * @return
*/ */
public List<DataObject> getRcvmts(RcvmtQuery req) { public List<DataObject> getRcvmts(RcvmtQuery req) {
if (req.getDelYN() == null) {
req.setDelYN("N");
}
if (req.getOrderBy() == null) { if (req.getOrderBy() == null) {
req.setOrderBy("R.RCVMT_ID DESC"); req.setOrderBy("R.RCVMT_ID DESC");
} }

@ -153,6 +153,7 @@
<th class="cmn" style="width: 100px;">사용여부</th> <th class="cmn" style="width: 100px;">사용여부</th>
<th class="cmn" style="width: 180px;">최종사용일시</th> <th class="cmn" style="width: 180px;">최종사용일시</th>
<th class="cmn" style="width: 300px;" onclick="searchFromGridTitle('TTL_NM', this.innerText, 'match', 'part');">제목</th> <th class="cmn" style="width: 300px;" onclick="searchFromGridTitle('TTL_NM', this.innerText, 'match', 'part');">제목</th>
<th class="cmn" style="width: 300px;">문구내용</th>
<th class="cmn" style="width: 180px;">등록일시</th> <th class="cmn" style="width: 180px;">등록일시</th>
<th class="cmn" style="width: 140px;">등록사용자</th> <th class="cmn" style="width: 140px;">등록사용자</th>
<th class="cmn" style="width: 180px;">수정일시</th> <th class="cmn" style="width: 180px;">수정일시</th>
@ -165,14 +166,13 @@
<template id="${infoPrefix}Row--${pageName}"> <template id="${infoPrefix}Row--${pageName}">
<tr data-key="{GDCC_ID}"> <tr data-key="{GDCC_ID}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
<td class="cmn text-center"> <td class="cmn text-center"><input type="checkbox" class="form-check-input" value="{GDCC_ID}" onchange="${pageName}Control.select('{GDCC_ID}', this.checked);"></td>
<input type="checkbox" class="form-check-input" value="{GDCC_ID}" onchange="${pageName}Control.select('{GDCC_ID}', this.checked);">
</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{TASK_SE_NM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{TASK_SE_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_SE_NM}</td> <td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{SNDNG_SE_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{USE_YN_NM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{USE_YN_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LAST_USE_DT}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{LAST_USE_DT}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{TTL_NM}</td> <td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{TTL_NM}</td>
<td class="cmn text-start" onclick="{onclick}" ondblclick="{ondblclick}">{WORDS_CN}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{REG_DT}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{RGTR_NM}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFCN_DT}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{MDFCN_DT}</td>
@ -182,7 +182,7 @@
</template> </template>
<template id="${infoPrefix}NotFound--${pageName}"> <template id="${infoPrefix}NotFound--${pageName}">
<tr class="odd"> <tr class="odd">
<td valign="top" colspan="12" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td> <td valign="top" colspan="13" class="dataTables_empty text-center">${prefixName} 정보를 찾지 못했습니다.</td>
</tr> </tr>
</template> </template>
</table> </table>
@ -465,23 +465,10 @@
return; return;
} }
let excelTitle = []; let headerInfo = $("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo();
let excelTitleWidth = [];
$("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)").each(function() {
let title = $(this).text();
if (title != "" ) {
excelTitle.push(title);
let titleWidth = Math.ceil($(this).outerWidth() / 10) + 2;
excelTitleWidth.push(titleWidth);
}
});
${pageName}Control.query.excelTitle = excelTitle.join(",");
${pageName}Control.query.excelTitleWidth = excelTitleWidth.join(",");
${pageName}Control.query.excelTitle = headerInfo.excelTitle;
${pageName}Control.query.excelTitleWidth = headerInfo.excelTitleWidth;
${pageName}Control.download(); ${pageName}Control.download();
} }

@ -252,9 +252,7 @@
<template id="${infoPrefix}Row--${pageName}"> <template id="${infoPrefix}Row--${pageName}">
<tr data-key="{CON_KEY}"> <tr data-key="{CON_KEY}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{ROW_NUM}</td>
<td class="cmn text-center"> <td class="cmn text-center"><input type="checkbox" class="form-check-input" value="{CON_KEY}" onchange="${pageName}Control.select('{CON_KEY}', this.checked);"></td>
<input type="checkbox" class="form-check-input" value="{CON_KEY}" onchange="${pageName}Control.select('{CON_KEY}', this.checked);">
</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SEND_DATE}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{SEND_DATE}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{JOB_CD}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{JOB_CD}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DIV_KB_NM}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{DIV_KB_NM}</td>
@ -604,24 +602,10 @@
return; return;
} }
let excelTitle = []; let headerInfo = $("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo();
let excelTitleWidth = [];
$("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)").each(function() {
let title = $(this).text();
if (title != "" ) {
excelTitle.push(title);
let titleWidth = Math.ceil($(this).outerWidth() / 10) + 2;
excelTitleWidth.push(titleWidth);
}
});
${pageName}Control.query.excelTitle = excelTitle.join(",");
${pageName}Control.query.excelTitleWidth = excelTitleWidth.join(",");
${pageName}Control.query.excelTitle = headerInfo.excelTitle;
${pageName}Control.query.excelTitleWidth = headerInfo.excelTitleWidth;
${pageName}Control.download(); ${pageName}Control.download();
} }

@ -144,7 +144,6 @@
<th class="cmn" style="width: 72px;">NO.</th> <th class="cmn" style="width: 72px;">NO.</th>
<th class="cmn" style="width: 240px;" onclick="searchFromGridTitle('RELETCDATA', this.innerText, 'match', 'part');">발송자료키</th> <th class="cmn" style="width: 240px;" onclick="searchFromGridTitle('RELETCDATA', this.innerText, 'match', 'part');">발송자료키</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('JOB_CD', this.innerText, 'match', 'part');">우편물코드</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('JOB_CD', this.innerText, 'match', 'part');">우편물코드</th>
<!-- <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('JOB_CD', this.innerText, 'codeValue', 'FIM082');">우편물종류</th> -->
<th class="cmn" style="width: 120px;">우편물종류</th> <th class="cmn" style="width: 120px;">우편물종류</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('EXTRI_REGYMD', this.innerText, 'ymd', '');">발송일자</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('EXTRI_REGYMD', this.innerText, 'ymd', '');">발송일자</th>
<th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RCEPT_YMD', this.innerText, 'ymd', '');">접수일자</th> <th class="cmn" style="width: 120px;" onclick="searchFromGridTitle('RCEPT_YMD', this.innerText, 'ymd', '');">접수일자</th>
@ -489,24 +488,10 @@
return; return;
} }
let excelTitle = []; let headerInfo = $("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo();
let excelTitleWidth = [];
$("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)").each(function() {
let title = $(this).text();
if (title != "" ) {
excelTitle.push(title);
let titleWidth = Math.ceil($(this).outerWidth() / 10) + 2;
excelTitleWidth.push(titleWidth);
}
});
${pageName}Control.query.excelTitle = excelTitle.join(",");
${pageName}Control.query.excelTitleWidth = excelTitleWidth.join(",");
${pageName}Control.query.excelTitle = headerInfo.excelTitle;
${pageName}Control.query.excelTitleWidth = headerInfo.excelTitleWidth;
${pageName}Control.download(); ${pageName}Control.download();
} }

@ -522,24 +522,10 @@
return; return;
} }
let excelTitle = []; let headerInfo = $("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)").getHeaderInfo();
let excelTitleWidth = [];
$("#theadTr--${pageName} th").not(".dummy-th").not(":eq(0)").each(function() {
let title = $(this).text();
if (title != "" ) {
excelTitle.push(title);
let titleWidth = Math.ceil($(this).outerWidth() / 10) + 2;
excelTitleWidth.push(titleWidth);
}
});
${pageName}Control.query.excelTitle = excelTitle.join(",");
${pageName}Control.query.excelTitleWidth = excelTitleWidth.join(",");
${pageName}Control.query.excelTitle = headerInfo.excelTitle;
${pageName}Control.query.excelTitleWidth = headerInfo.excelTitleWidth;
${pageName}Control.download(); ${pageName}Control.download();
} }
@ -594,7 +580,7 @@
// 달력 초기화 // 달력 초기화
initDatepicker("frmSearch--${pageName}"); initDatepicker("frmSearch--${pageName}");
$("#schPstmrkYmdFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-365).date); $("#schPstmrkYmdFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-7).date);
$("#schPstmrkYmdTo--${pageName}").datepicker("setDate", new Date()); $("#schPstmrkYmdTo--${pageName}").datepicker("setDate", new Date());
// 사용자 이름 // 사용자 이름

Loading…
Cancel
Save