전자우편 안내문 수정.

main
jjh 12 months ago
parent ca0fcd3b00
commit 7ed45a81a3

@ -15,7 +15,6 @@ import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.epst.EpostGdcc; import cokr.xit.fims.epst.EpostGdcc;
import cokr.xit.fims.epst.EpostQuery; import cokr.xit.fims.epst.EpostQuery;
import cokr.xit.fims.epst.service.EpostGdccService; import cokr.xit.fims.epst.service.EpostGdccService;
import cokr.xit.fims.excl.LevyExclQuery;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
/** /**
@ -24,7 +23,7 @@ import cokr.xit.foundation.data.DataObject;
* *
* <pre> * <pre>
* ============ ============ * ============ ============
* 2023-12-04 mjkhan * 2023-12-04 JoJH
* ================================ * ================================
* </pre> * </pre>
*/ */
@ -68,7 +67,7 @@ public class Epst02Controller extends ApplicationController {
; ;
} }
/** .<br /> /** .
* {@link EpostGdccService#getEpostGdccList(EpostGdccQuery)} * {@link EpostGdccService#getEpostGdccList(EpostGdccQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
@ -85,7 +84,7 @@ public class Epst02Controller extends ApplicationController {
return setCollectionInfo(new ModelAndView("jsonView"), result, "epostGdcc"); return setCollectionInfo(new ModelAndView("jsonView"), result, "epostGdcc");
} }
/** ID (info) . /** (info) .
* @param req * @param req
* @return fims/epst/epst02020-info jsonView * @return fims/epst/epst02020-info jsonView
* <pre>{ * <pre>{

@ -257,23 +257,23 @@
}; };
// 전자우편 안내문 dialog // 전자우편 안내문 dialog
${pageName}Control.getInfo = (gdccId) => { ${pageName}Control.getInfo = (callPurpose, gdccId) => {
// //
let params = {}; if (typeof callPurpose == "undefined" || callPurpose == null || callPurpose == "") {
callPurpose = "view";
if (typeof gdccId == "undefined" || gdccId == null || gdccId == "") { }
params = {
callPurpose : "create" let params = {
, sggCd : ${pageName}Control.dataset.getValue("SGG_CD") // 시군구 코드 callPurpose : callPurpose
, taskSeCd : ${pageName}Control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드 , sggCd : ${pageName}Control.dataset.getValue("SGG_CD") // 시군구 코드
}; , taskSeCd : ${pageName}Control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드
} else { };
params = {
callPurpose : "update" if (callPurpose == "view" || callPurpose == "update") {
, sggCd : ${pageName}Control.dataset.getValue("SGG_CD") // 시군구 코드 // ID가 없다면.. 종료
, taskSeCd : ${pageName}Control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드 if (typeof gdccId == "undefined" || gdccId == null || gdccId == "") return;
, gdccId : gdccId // 안내문 ID
}; params.gdccId = gdccId; // 안내문 ID
} }
ajax.get({ ajax.get({
@ -334,7 +334,7 @@
document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%> document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%>
(str, dataItem) => str (str, dataItem) => str
.replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("GDCC_ID") + "');") .replace(/{onclick}/gi, "${pageName}Control.setCurrent('" + dataItem.getValue("GDCC_ID") + "');")
.replace(/{ondblclick}/gi, "${pageName}Control.getInfo('" + dataItem.getValue("GDCC_ID") + "');") .replace(/{ondblclick}/gi, "${pageName}Control.getInfo('update', '" + dataItem.getValue("GDCC_ID") + "');")
); );
$("#tbody--${pageName}").html(trs.join()); $("#tbody--${pageName}").html(trs.join());
@ -409,18 +409,12 @@
$("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) { $("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true"); $(this).prop("disabled", "true");
}); });
// 달력 초기화
initDatepicker("frmSearch--${pageName}");
$("#schLevyExclYmdFrom--${pageName}").datepicker("setDate", DateUtil.getDateDay(-365).date);
$("#schLevyExclYmdTo--${pageName}").datepicker("setDate", new Date());
} }
// URL 설정 // URL 설정
setURL${pageName} = (taskSeCd) => { setURL${pageName} = (taskSeCd) => {
${pageName}Control.urls.load = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/010/list.do"); // 조회 ${pageName}Control.urls.load = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/010/list.do"); // 조회
${pageName}Control.urls.remove = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/010/removes.do"); // 삭제 ${pageName}Control.urls.remove = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/010/remove.do"); // 삭제
${pageName}Control.urls.getInfo = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/020/info.do"); // 정보 ${pageName}Control.urls.getInfo = wctx.url("/" + taskSeCd + ${pageName}PrefixUrl + "/020/info.do"); // 정보
} }
@ -455,8 +449,7 @@
${pageName}Control.query = ${pageName}Fields.get(); ${pageName}Control.query = ${pageName}Fields.get();
${pageName}Control.query.fetchSize = FETCH_XS; // 한번에 조회되는 자료 건수 FETCH_XS = 30 ${pageName}Control.query.fetchSize = FETCH_XS; // 한번에 조회되는 자료 건수 FETCH_XS = 30
${pageName}Control.query.delYn = "N"; // 삭제 여부 ${pageName}Control.query.useYN = "N"; // 사용 여부
${pageName}Control.query.crdnDelYn = "N"; // 단속 대장 삭제 여부
${pageName}Control.load(); ${pageName}Control.load();
} }

Loading…
Cancel
Save