diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp
index 85c2d376..66862c48 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp
@@ -361,10 +361,11 @@ $(document).ready(function(){
$P.ctrl.dataset.setData([layoutInfo]);
} else {
$P.ctrl.dataset.setData([]);
- $("#sggCd--${pageName}").val(MY_INFO.info.sggCd);
- $("#instCd--${pageName}").val(MY_INFO.info.instCd);
- $("#deptCd--${pageName}").val(MY_INFO.info.deptCd);
- $("#taskSeCd--${pageName}").val("${taskSeCd}");
+
+ $P.$find("sggCd").val(MY_INFO.info.sggCd);
+ $P.$find("instCd").val(MY_INFO.info.instCd);
+ $P.$find("deptCd").val(MY_INFO.info.deptCd);
+ $P.$find("taskSeCd").val("${taskSeCd}");
$P.$find("btnDelete").attr("hidden","hidden");
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp
index e35e825e..50e97084 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp
@@ -490,9 +490,9 @@ $(document).ready(function(){
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$P.$find("byOutput").val("동적 검색");
- $("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름
- $('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-7).date);
- $('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY());
+ $P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름
+ $P.$find("schCrdnYmdFrom").datepicker('setDate', DateUtil.getDateDay(-7).date);
+ $P.$find("schCrdnYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
$P.alt.dataset.setData([]);
};
@@ -981,8 +981,8 @@ $(document).ready(function(){
// 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => {
- $("#schRgtrCd--${pageName}").val(userId); // 사용자 ID
- $("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
+ $P.$find("schRgtrCd").val(userId); // 사용자 ID
+ $P.$find("schRgtrNm").val(userNm); // 사용자 명
}
// 사용자검색 버튼 클릭 이벤트
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02050-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02050-info.jsp
index 9012d8ff..7921a89e 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02050-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02050-info.jsp
@@ -75,7 +75,8 @@ $(document).ready(function(){
$P.fnSave = async() => {
var alertMessage = "";
- if($("#chgAmtSe--${pageName}").val() == "1"){
+
+ if($P.$find("chgAmtSe").val() == "1"){
if(crdnInfo.OVTM_YN == "Y"){
dialog.alert({
content : "이미 가산 처리된 자료입니다.",
@@ -88,7 +89,7 @@ $(document).ready(function(){
}
alertMessage = "가산 처리하시겠습니까?";
- } else if($("#chgAmtSe--${pageName}").val() == "2"){
+ } else if($P.$find("chgAmtSe").val() == "2"){
if(crdnInfo.OVTM_PRTTN_YN == "Y"){
dialog.alert({
content : "이미 감액 처리된 자료입니다.",
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp
index 886fb257..18b3d175 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp
@@ -182,8 +182,8 @@ $(document).ready(function(){
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$P.$find("byOutput").val("동적 검색");
- $('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
- $('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY());
+ $P.$find("schCrdnYmdFrom").datepicker('setDate', DateUtil.getDateDay(-5475).date);
+ $P.$find("schCrdnYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05010-main.jsp
index bd2bfe7e..bff28f49 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05010-main.jsp
@@ -158,7 +158,7 @@ $(document).ready(function(){
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
- $("#regDt--${pageName}").datepicker('setDate', TODAY());
+ $P.$find("regDt").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp
index ca57bf86..b402a8f2 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp
@@ -8,7 +8,7 @@
@@ -235,7 +235,7 @@ $(document).ready(function(){
ajax.post({
url : wctx.url("/${taskSeCd}/crdn/crdn05/020/importFileFromServer.do"),
data : {
- taskSeCd : $("#taskSeCd--${pageName}").val()
+ taskSeCd : $P.$find("taskSeCd").val()
},
success : (resp) => {
if(resp.saved){
@@ -257,7 +257,7 @@ $(document).ready(function(){
//로컬파일업로드
$P.uploadLocalFile = () => {
- if($("#uploadFiles--${pageName}").val() == ""){
+ if($P.$find("uploadFiles").val() == ""){
dialog.alert({
content : "파일이 없습니다.",
init : function(){
@@ -277,7 +277,7 @@ $(document).ready(function(){
data : formData,
success : (resp) => {
if(resp.saved){
- $("#uploadFiles--${pageName}").val("");
+ $P.$find("uploadFiles").val("");
$P.searchFileList();
} else {
dialog.alert({
@@ -302,7 +302,7 @@ $(document).ready(function(){
ajax.post({
url : wctx.url("/${taskSeCd}/crdn/crdn05/020/list.do"),
data : {
- taskSeCd : $("#taskSeCd--${pageName}").val()
+ taskSeCd : $P.$find("taskSeCd").val()
},
success : (resp) => {
$P.ctrl.dataset.setData(resp);
@@ -434,7 +434,7 @@ $(document).ready(function(){
ajax.get({
url : wctx.url("/${taskSeCd}/crdn/crdn05/020/remove.do"),
data : {
- taskSeCd : $("#taskSeCd--${pageName}").val(),
+ taskSeCd : $P.$find("taskSeCd").val(),
fileLayoutId : fileLayoutId,
fileName : fileName
},
@@ -491,7 +491,7 @@ $(document).ready(function(){
$P.$find("btnDelete").on("click", function(){ $P.deleteFile(); });
- $("#direct--${pageName}").on("click", function(){
+ $P.$find("direct").on("click", function(){
if($(this).is(":checked")){
$("#uploadFilesArea").removeAttr("hidden");
$P.$find("btnFileUpload").removeAttr("hidden");
@@ -500,7 +500,7 @@ $(document).ready(function(){
$("#uploadFilesArea").attr("hidden","hidden");
$P.$find("btnFileUpload").attr("hidden","hidden");
$P.$find("btnSearch").removeAttr("hidden");
- $("#uploadFiles--${pageName}").val("");
+ $P.$find("uploadFiles").val("");
}
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp
index c53237e3..6eeebc4c 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp
@@ -439,7 +439,7 @@ $(document).ready(function(){
if(!customValidate($P.$find("frmEdit").find("input"))) return;
- if($("#doWarning--${pageName}").is(":checked")){
+ if($P.$find("doWarning").is(":checked")){
var rtpyrNm = document.getElementById("rtpyrNm--${pageName}");
if(rtpyrNm.value == ""){
@@ -521,7 +521,7 @@ $(document).ready(function(){
/**************************************************************************
* 초기화(업무별 입력항목)
**************************************************************************/
- var clsForTask = $("#taskSeCd--${pageName}").val().toLowerCase();
+ var clsForTask = $P.$find("taskSeCd").val().toLowerCase();
//업무별 입력 항목
renderForTask($P.find("frmEdit"), clsForTask);
@@ -532,7 +532,7 @@ $(document).ready(function(){
$P.$find("btnInst").on('click', () => $P.fnSave());
$P.$find("btnAddFile").on('click', () => {
- $("#inputUploadSet--${pageName}").trigger("click");
+ $P.$find("inputUploadSet").trigger("click");
});
$P.$find("btnOpenVideoCapture").on('click', () => {
@@ -571,10 +571,10 @@ $(document).ready(function(){
$P.fnDisplay();
});
- $("#vhrno--${pageName}").onEnterPress(function(){
+ $P.$find("vhrno").onEnterPress(function(){
var alertDialogId = "alertDialog";
- var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
+ var crdnYmd = $P.$find("crdnYmd").val().replaceAll("-", "");
var vhrnoEl = event.target;
var vhrno = vhrnoEl.value;
if(crdnYmd == ""){
@@ -584,7 +584,7 @@ $(document).ready(function(){
setDialogZindex();
focusClose();
},
- onClose : function(){ $("#crdnYmd--${pageName}").focus(); }
+ onClose : function(){ $P.$find("crdnYmd").focus(); }
});
return;
@@ -604,7 +604,7 @@ $(document).ready(function(){
json.post({
url: wctx.url("/payer/vehicle.do"),
data: {
- sggCd : $("#sggCd--${pageName}").val(),
+ sggCd : $P.$find("sggCd").val(),
vhrno : vhrno,
levy_stdde : crdnYmd
},
@@ -617,28 +617,28 @@ $(document).ready(function(){
focusClose();
}
});
- $("#rtpyrId--${pageName}").val("");
- $("#addrSn--${pageName}").val("");
- $("#rtpyrNm--${pageName}").val("");
- $("#rtpyrSeCd--${pageName}").val("");
- $("#rtpyrNo--${pageName}").val("");
- $("#vin--${pageName}").val("");
- $("#vhclNm--${pageName}").val("");
- $("#vhclColr--${pageName}").val("");
- $("#useFuelCd--${pageName}").val("");
- $("#ffnlgCarmdlCd--${pageName}").val("");
- $("#zip--${pageName}").val("");
- $("#addr--${pageName}").val("");
- $("#dtlAddr--${pageName}").val("");
+ $P.$find("rtpyrId").val("");
+ $P.$find("addrSn").val("");
+ $P.$find("rtpyrNm").val("");
+ $P.$find("rtpyrSeCd").val("");
+ $P.$find("rtpyrNo").val("");
+ $P.$find("vin").val("");
+ $P.$find("vhclNm").val("");
+ $P.$find("vhclColr").val("");
+ $P.$find("useFuelCd").val("");
+ $P.$find("ffnlgCarmdlCd").val("");
+ $P.$find("zip").val("");
+ $P.$find("addr").val("");
+ $P.$find("dtlAddr").val("");
return;
}
- $("#rtpyrId--${pageName}").val(resp.rtpyrId);
- $("#addrSn--${pageName}").val(resp.addrSn);
+ $P.$find("rtpyrId").val(resp.rtpyrId);
+ $P.$find("addrSn").val(resp.addrSn);
var vehicle = resp.vehicle;
- $("#rtpyrNm--${pageName}").val(vehicle.mber_nm);
+ $P.$find("rtpyrNm").val(vehicle.mber_nm);
var pyrSeCd = "";
switch(vehicle.mber_se_code){
@@ -648,44 +648,44 @@ $(document).ready(function(){
case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; break;
}
- $("#rtpyrSeCd--${pageName}").val(pyrSeCd);
+ $P.$find("rtpyrSeCd").val(pyrSeCd);
- $("#rtpyrNo--${pageName}").val(vehicle.mber_se_no);
+ $P.$find("rtpyrNo").val(vehicle.mber_se_no);
- $("#vin--${pageName}").val(vehicle.vin);
- $("#vhclNm--${pageName}").val(vehicle.cnm);
- $("#vhclColr--${pageName}").val(vehicle.color_nm);
- $("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
+ $P.$find("vin").val(vehicle.vin);
+ $P.$find("vhclNm").val(vehicle.cnm);
+ $P.$find("vhclColr").val(vehicle.color_nm);
+ $P.$find("useFuelCd").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용
- $("#ffnlgCarmdlCd--${pageName}").val("11");
+ $P.$find("ffnlgCarmdlCd").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합
- $("#ffnlgCarmdlCd--${pageName}").val("12");
+ $P.$find("ffnlgCarmdlCd").val("12");
} else if(vehicle.vhcty_asort_code == "3"){ //화물
if(vehicle.mxmm_ldg <= 4000){
- $("#ffnlgCarmdlCd--${pageName}").val("13");
+ $P.$find("ffnlgCarmdlCd").val("13");
} else {
- $("#ffnlgCarmdlCd--${pageName}").val("14");
+ $P.$find("ffnlgCarmdlCd").val("14");
}
} else if(vehicle.vhcty_asort_code == "4"){ //특수
- $("#ffnlgCarmdlCd--${pageName}").val("15");
+ $P.$find("ffnlgCarmdlCd").val("15");
} else {
- $("#ffnlgCarmdlCd--${pageName}").val("");
+ $P.$find("ffnlgCarmdlCd").val("");
}
- $("#zip--${pageName}").val(vehicle.zip_code); //우편번호
- $("#addr--${pageName}").val(vehicle.road_nm_adres); //주소
- $("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소
+ $P.$find("zip").val(vehicle.zip_code); //우편번호
+ $P.$find("addr").val(vehicle.road_nm_adres); //주소
+ $P.$find("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소
}
});
});
- $("#teamId--${pageName}").on("change",function(){
- $("#teamer1--${pageName}").val("");
- $("#teamer2--${pageName}").val("");
- $("#teamer3--${pageName}").val("");
- $("#teamer4--${pageName}").val("");
+ $P.$find("teamId").on("change",function(){
+ $P.$find("teamer1").val("");
+ $P.$find("teamer2").val("");
+ $P.$find("teamer3").val("");
+ $P.$find("teamer4").val("");
if(this.value != ""){
ajax.get({
@@ -694,10 +694,10 @@ $(document).ready(function(){
success : (resp) => {
if(resp.teamInfo != null){
var teamInfo = resp.teamInfo;
- $("#teamer1--${pageName}").val(teamInfo.TEAMER_1);
- $("#teamer2--${pageName}").val(teamInfo.TEAMER_2);
- $("#teamer3--${pageName}").val(teamInfo.TEAMER_3);
- $("#teamer4--${pageName}").val(teamInfo.TEAMER_4);
+ $P.$find("teamer1").val(teamInfo.TEAMER_1);
+ $P.$find("teamer2").val(teamInfo.TEAMER_2);
+ $P.$find("teamer3").val(teamInfo.TEAMER_3);
+ $P.$find("teamer4").val(teamInfo.TEAMER_4);
}
}
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp
index 03671025..fbc84977 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp
@@ -355,9 +355,9 @@ $(document).ready(function(){
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$P.$find("byOutput").val("동적 검색");
- $("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름
- $('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-365).date);
- $('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY());
+ $P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름
+ $P.$find("schCrdnYmdFrom").datepicker('setDate', DateUtil.getDateDay(-365).date);
+ $P.$find("schCrdnYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
}
@@ -549,8 +549,8 @@ $(document).ready(function(){
// 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => {
- $("#schRgtrCd--${pageName}").val(userId); // 사용자 ID
- $("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
+ $P.$find("schRgtrCd").val(userId); // 사용자 ID
+ $P.$find("schRgtrNm").val(userNm); // 사용자 명
}
// 사용자검색 버튼 클릭 이벤트
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp
index f5f0beec..20eb14f6 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp
@@ -293,7 +293,7 @@
// 업무별 입력 항목
$P.fnRenderTask = (taskSeCd) => {
if (taskSeCd == undefined || taskSeCd == null || taskSeCd == "") {
- taskSeCd = $("#taskSeCd--${pageName}").val();
+ taskSeCd = $P.$find("taskSeCd").val();
}
renderForTask($P.find("frmEdit"), taskSeCd.toLowerCase());
@@ -313,11 +313,11 @@
, data: params || {}
, success: resp => {
// 항목 초기화
- $("#vin--${pageName}").val("");
- $("#vhclNm--${pageName}").val("");
- $("#vhclColr--${pageName}").val("");
- $("#useFuelCd--${pageName}").val("");
- $("#ffnlgCarmdlCd--${pageName}").val("");
+ $P.$find("vin").val("");
+ $P.$find("vhclNm").val("");
+ $P.$find("vhclColr").val("");
+ $P.$find("useFuelCd").val("");
+ $P.$find("ffnlgCarmdlCd").val("");
if (!resp.found) {
dialog.alert({
@@ -333,28 +333,28 @@
let vehicle = resp.vehicle;
// 단속(TB_CRDN) - 공통 항목
- $("#vin--${pageName}").val(vehicle.vin); // 차대번호
- $("#vhclNm--${pageName}").val(vehicle.cnm); // 차량명
- $("#vhclColr--${pageName}").val(vehicle.color_nm); // 차량색상
+ $P.$find("vin").val(vehicle.vin); // 차대번호
+ $P.$find("vhclNm").val(vehicle.cnm); // 차량명
+ $P.$find("vhclColr").val(vehicle.color_nm); // 차량색상
// 단속 부가 정보(TB_CRDN_ADI) - 사용 연료 코드
- $("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
+ $P.$find("useFuelCd").val(vehicle.use_fuel_code);
// 단속 부가 정보(TB_CRDN_ADI) - 과태료 차종 코드
if (vehicle.vhcty_asort_code == "1") { // 승용
- $("#ffnlgCarmdlCd--${pageName}").val("11");
+ $P.$find("ffnlgCarmdlCd").val("11");
} else if (vehicle.vhcty_asort_code == "2") { // 승합
- $("#ffnlgCarmdlCd--${pageName}").val("12");
+ $P.$find("ffnlgCarmdlCd").val("12");
} else if (vehicle.vhcty_asort_code == "3") { // 화물
if(vehicle.mxmm_ldg <= 4000){
- $("#ffnlgCarmdlCd--${pageName}").val("13");
+ $P.$find("ffnlgCarmdlCd").val("13");
} else {
- $("#ffnlgCarmdlCd--${pageName}").val("14");
+ $P.$find("ffnlgCarmdlCd").val("14");
}
} else if (vehicle.vhcty_asort_code == "4") { // 특수
- $("#ffnlgCarmdlCd--${pageName}").val("15");
+ $P.$find("ffnlgCarmdlCd").val("15");
} else {
- $("#ffnlgCarmdlCd--${pageName}").val("");
+ $P.$find("ffnlgCarmdlCd").val("");
}
}
});
@@ -362,8 +362,8 @@
// 차적 조회
$P.fnVehicle = (title) => {
- let crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
- let vhrno = $("#vhrno--${pageName}").val();
+ let crdnYmd = $P.$find("crdnYmd").val().replaceAll("-", "");
+ let vhrno = $P.$find("vhrno").val();
// 단속일자
if (crdnYmd == "") {
@@ -373,7 +373,7 @@
setDialogZindex();
focusClose();
},
- onClose : function() { $("#crdnYmd--${pageName}").focus(); }
+ onClose : function() { $P.$find("crdnYmd").focus(); }
});
return;
}
@@ -385,14 +385,14 @@
setDialogZindex();
focusClose();
},
- onClose : function() { $("#vhrno--${pageName}").focus(); }
+ onClose : function() { $P.$find("vhrno").focus(); }
});
return;
}
let params = {
inqire_se_code : "3"
- , sggCd: $("#sggCd--${pageName}").val()
+ , sggCd: $P.$find("sggCd").val()
, levy_stdde: crdnYmd
, vhrno: vhrno
}
@@ -455,7 +455,7 @@
});
// 차량번호 엔터 이벤트
- $("#vhrno--${pageName}").onEnterPress(function() {
+ $P.$find("vhrno").onEnterPress(function() {
$P.fnVehicle("차적 조회");
});
@@ -468,7 +468,7 @@
$P.initForm = () => {
// 달력 초기화
initDatepicker($P.find("frmEdit"));
- $("#crdnYmd--${pageName}").datepicker("setDate", TODAY());
+ $P.$find("crdnYmd").datepicker("setDate", TODAY());
}
/**************************************************************************
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp
index 707d313d..b99d36a6 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp
@@ -304,27 +304,27 @@ $(document).ready(function(){
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
if(!dataItem){
- $("#teamNm--${pageName}").val("");
- $("#crdnSeCd--${pageName}").val("");
- $("#teamer1--${pageName}").val("");
- $("#teamer2--${pageName}").val("");
- $("#teamer3--${pageName}").val("");
- $("#teamer4--${pageName}").val("");
- $("#etcCn--${pageName}").val("");
+ $P.$find("teamNm").val("");
+ $P.$find("crdnSeCd").val("");
+ $P.$find("teamer1").val("");
+ $P.$find("teamer2").val("");
+ $P.$find("teamer3").val("");
+ $P.$find("teamer4").val("");
+ $P.$find("etcCn").val("");
return;
}
Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("useTeamTbody"));
- $("#teamNm--${pageName}").val(dataItem.data.TEAM_NM);
- $("#crdnSeCd--${pageName}").val(dataItem.data.CRDN_SE_CD);
- $("#teamer1--${pageName}").val(dataItem.data.TEAMER_1);
- $("#teamer2--${pageName}").val(dataItem.data.TEAMER_2);
- $("#teamer3--${pageName}").val(dataItem.data.TEAMER_3);
- $("#teamer4--${pageName}").val(dataItem.data.TEAMER_4);
- $("#etcCn--${pageName}").val(dataItem.data.ETC_CN);
+ $P.$find("teamNm").val(dataItem.data.TEAM_NM);
+ $P.$find("crdnSeCd").val(dataItem.data.CRDN_SE_CD);
+ $P.$find("teamer1").val(dataItem.data.TEAMER_1);
+ $P.$find("teamer2").val(dataItem.data.TEAMER_2);
+ $P.$find("teamer3").val(dataItem.data.TEAMER_3);
+ $P.$find("teamer4").val(dataItem.data.TEAMER_4);
+ $P.$find("etcCn").val(dataItem.data.ETC_CN);
- $("#deletedTeamNm--${pageName}").val(dataItem.data.TEAM_NM);
+ $P.$find("deletedTeamNm").val(dataItem.data.TEAM_NM);
}
@@ -447,7 +447,7 @@ $(document).ready(function(){
$P.fnShowDeleted = () => {
- var teamNm = $("#deletedTeamNm--${pageName}").val();
+ var teamNm = $P.$find("deletedTeamNm").val();
var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08020-info.jsp
index e5ff462f..9fe783d7 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08020-info.jsp
@@ -113,7 +113,7 @@ $(document).ready(function(){
$P.formFields.set($P.ctrl, item);
var create = isEmpty(item.EXMPTN_VHCL_ID);
- $("#vhrno--${pageName}").prop("readonly", !create);
+ $P.$find("vhrno").prop("readonly", !create);
}
$P.fnSave = async() => {
diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp
index 0e08668e..69527988 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp
@@ -195,7 +195,7 @@
- 단속장소
+ 단속장소
@@ -276,14 +276,14 @@ $(document).ready(function(){
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("crdnTbody"));
if(!dataItem){
- $("#bottomCrdnPlc--${pageName}").val("");
+ $P.$find("bottomCrdnPlc").val("");
$P.$find("btnOpenCvlcptOrgnl").hide();
$P.$find("btnDelete").hide();
$P.$find("btnDeleteSameRcptYmd").hide();
} else {
- $("#bottomCrdnPlc--${pageName}").val(dataItem.data["CRDN_PLC"]);
+ $P.$find("bottomCrdnPlc").val(dataItem.data["CRDN_PLC"]);
if($P.holdList.includes(dataItem.data["CRDN_ID"])){
$P.$find("btnOpenCvlcptOrgnl").hide();
@@ -314,9 +314,8 @@ $(document).ready(function(){
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$P.$find("byOutput").val("동적 검색");
- $("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름
- $('#schCvlcptRcptYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
- $('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', TODAY());
+ searchForm.find("[name='schCvlcptRcptYmdFrom']").datepicker('setDate', DateUtil.getDateDay(-5475).date);
+ searchForm.find("[name='schCvlcptRcptYmdTo']").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
}
@@ -443,13 +442,13 @@ $(document).ready(function(){
$P.clickCrdnList = (dataKey) => {
if(dataKey == ""){
- $("#bottomCrdnPlc--${pageName}").val("");
+ $P.$find("bottomCrdnPlc").val("");
return;
}
$P.$find("crdnTbody").setCurrentRow(dataKey);
- $("#bottomCrdnPlc--${pageName}").val($P.ctrl.dataset.getData(dataKey)["CRDN_PLC"]);
+ $P.$find("bottomCrdnPlc").val($P.ctrl.dataset.getData(dataKey)["CRDN_PLC"]);
if($P.holdList.includes(dataKey)){
$P.$find("btnOpenCvlcptOrgnl").hide();
diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp
index f91bb8b7..5e142443 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp
@@ -381,7 +381,7 @@
-
+
@@ -467,9 +467,9 @@ $(document).ready(function(){
}
}
- var crdnId = $("#crdnId--${pageName}").val();
- var sggCd = $("#sggCd--${pageName}").val();
- var taskSeCd = $("#taskSeCd--${pageName}").val();
+ var crdnId = $P.$find("crdnId").val();
+ var sggCd = $P.$find("sggCd").val();
+ var taskSeCd = $P.$find("taskSeCd").val();
var params = {
"openerPageName" : "${pageName}",
@@ -546,7 +546,7 @@ $(document).ready(function(){
dialog.close("levyExclDialog--${pageName}");
}
- var crdnId = $("#crdnId--${pageName}").val();
+ var crdnId = $P.$find("crdnId").val();
var cursorKey = "";
@@ -560,20 +560,20 @@ $(document).ready(function(){
}
}
- $("#refreshEnd--${pageName}").attr("data-cursor-key", cursorKey);
+ $P.$find("refreshEnd").attr("data-cursor-key", cursorKey);
$P.provided.refreshList();
}
};
$P.fnPrev = () => {
- var prevKey = $P.provided.getPrevKey($("#crdnId--${pageName}").val());
+ var prevKey = $P.provided.getPrevKey($P.$find("crdnId").val());
if(prevKey != ""){
$P.fnGo(prevKey);
}
}
$P.fnNext = () => {
- var nextKey = $P.provided.getNextKey($("#crdnId--${pageName}").val());
+ var nextKey = $P.provided.getNextKey($P.$find("crdnId").val());
if(nextKey != ""){
$P.fnGo(nextKey);
}
@@ -597,8 +597,8 @@ $(document).ready(function(){
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
- var cs = $P.provided.getCountStatus($("#crdnId--${pageName}").val());
- $("#countStauts--${pageName}").val(cs);
+ var cs = $P.provided.getCountStatus($P.$find("crdnId").val());
+ $P.$find("countStauts").val(cs);
$P.provided.selectRow(crdnId);
@@ -613,7 +613,7 @@ $(document).ready(function(){
}
$P.fnCopy = async() => {
- var crdnId = $("#crdnId--${pageName}").val();
+ var crdnId = $P.$find("crdnId").val();
if(await confirm2("현 자료의 복사본을 생성하시겠습니까?")){
@@ -630,7 +630,7 @@ $(document).ready(function(){
}
});
- $("#refreshEnd--${pageName}").attr("data-cursor-key", crdnId);
+ $P.$find("refreshEnd").attr("data-cursor-key", crdnId);
$P.provided.refreshList();
}
}
@@ -640,7 +640,7 @@ $(document).ready(function(){
}
$P.fnOpenCvlcptOrgnl = () => {
- var crdnId = $("#crdnId--${pageName}").val();
+ var crdnId = $P.$find("crdnId").val();
var dialogId = "cvlcptOrgnlDialog--${pageName}";
@@ -662,7 +662,7 @@ $(document).ready(function(){
}
$P.fnHold = () => {
- var crdnId = $("#crdnId--${pageName}").val();
+ var crdnId = $P.$find("crdnId").val();
$P.provided.holdRow(crdnId);
@@ -689,7 +689,7 @@ $(document).ready(function(){
$P.fnPopPayer = () => {
var callPurpose = "";
var dialogTitle = "";
- if($("#rtpyrId--${pageName}").val() == null || $("#rtpyrId--${pageName}").val() == ""){
+ if($P.$find("rtpyrId").val() == null || $P.$find("rtpyrId").val() == ""){
callPurpose = "create";
dialogTitle = "납부자 등록";
} else {
@@ -699,12 +699,12 @@ $(document).ready(function(){
var params = {
callPurpose : callPurpose,
- crdnId : $("#crdnId--${pageName}").val(), // 단속 ID
- sggCd : $("#sggCd--${pageName}").val(), // 시군구 코드
- taskSeCd : $("#taskSeCd--${pageName}").val(), // 업무 구분 코드
- rtpyrId : $("#rtpyrId--${pageName}").val(), // 납부자 ID
- addrSn : $("#addrSn--${pageName}").val(), // 주소 일련번호
- vhrno : $("#vhrno--${pageName}").val(), // 차량번호
+ crdnId : $P.$find("crdnId").val(), // 단속 ID
+ sggCd : $P.$find("sggCd").val(), // 시군구 코드
+ taskSeCd : $P.$find("taskSeCd").val(), // 업무 구분 코드
+ rtpyrId : $P.$find("rtpyrId").val(), // 납부자 ID
+ addrSn : $P.$find("addrSn").val(), // 주소 일련번호
+ vhrno : $P.$find("vhrno").val(), // 차량번호
rtpyrInptSeCd : "01", // 납부자 입력 구분 코드
delYn : "N"
};
@@ -729,9 +729,9 @@ $(document).ready(function(){
var params = {
callPurpose : "refresh",
- crdnId : $("#crdnId--${pageName}").val(),
- sggCd : $("#sggCd--${pageName}").val(),
- taskSeCd : $("#taskSeCd--${pageName}").val(),
+ crdnId : $P.$find("crdnId").val(),
+ sggCd : $P.$find("sggCd").val(),
+ taskSeCd : $P.$find("taskSeCd").val(),
delYn : "N"
};
@@ -743,23 +743,23 @@ $(document).ready(function(){
if (resp.crdnPayer) {
var payer = resp.crdnPayer;
- $("#rtpyrId--${pageName}").val(payer.RTPYR_ID).change();
- $("#addrSn--${pageName}").val(payer.ADDR_SN).change();
- $("#rtpyrNm--${pageName}").val(payer.RTPYR_NM).change();
- $("#rtpyrSeCd--${pageName}").val(payer.RTPYR_SE_CD).change();
- $("#rtpyrNo--${pageName}").val(payer.RTPYR_NO).change();
- $("#zip--${pageName}").val(payer.ZIP).change();
- $("#addr--${pageName}").val(payer.ADDR).change();
- $("#dtlAddr--${pageName}").val(payer.DTL_ADDR).change();
+ $P.$find("rtpyrId").val(payer.RTPYR_ID).change();
+ $P.$find("addrSn").val(payer.ADDR_SN).change();
+ $P.$find("rtpyrNm").val(payer.RTPYR_NM).change();
+ $P.$find("rtpyrSeCd").val(payer.RTPYR_SE_CD).change();
+ $P.$find("rtpyrNo").val(payer.RTPYR_NO).change();
+ $P.$find("zip").val(payer.ZIP).change();
+ $P.$find("addr").val(payer.ADDR).change();
+ $P.$find("dtlAddr").val(payer.DTL_ADDR).change();
} else {
- $("#rtpyrId--${pageName}").val("").change();
- $("#addrSn--${pageName}").val("").change();
- $("#rtpyrNm--${pageName}").val("").change();
- $("#rtpyrSeCd--${pageName}").val("").change();
- $("#rtpyrNo--${pageName}").val("").change();
- $("#zip--${pageName}").val("").change();
- $("#addr--${pageName}").val("").change();
- $("#dtlAddr--${pageName}").val("").change();
+ $P.$find("rtpyrId").val("").change();
+ $P.$find("addrSn").val("").change();
+ $P.$find("rtpyrNm").val("").change();
+ $P.$find("rtpyrSeCd").val("").change();
+ $P.$find("rtpyrNo").val("").change();
+ $P.$find("zip").val("").change();
+ $P.$find("addr").val("").change();
+ $P.$find("dtlAddr").val("").change();
}
}
});
@@ -767,7 +767,7 @@ $(document).ready(function(){
}
$P.fnReset = () => {
- var crdnId = $("#crdnId--${pageName}").val();
+ var crdnId = $P.$find("crdnId").val();
$P.fnGo(crdnId);
}
@@ -815,7 +815,7 @@ $(document).ready(function(){
return;
}
- var crdnId = $("#crdnId--${pageName}").val();
+ var crdnId = $P.$find("crdnId").val();
ajax.post({
url : $P.ctrl.urls.remove,
@@ -834,7 +834,7 @@ $(document).ready(function(){
});
- var crdnId = $("#crdnId--${pageName}").val();
+ var crdnId = $P.$find("crdnId").val();
var cursorKey = "";
@@ -848,7 +848,7 @@ $(document).ready(function(){
}
}
- $("#refreshEnd--${pageName}").attr("data-cursor-key", cursorKey);
+ $P.$find("refreshEnd").attr("data-cursor-key", cursorKey);
$P.provided.refreshList();
}
}
@@ -885,19 +885,19 @@ $(document).ready(function(){
//납부자 등록, 수정
$P.$find("btnPopPayer").on("click", () => $P.fnPopPayer());
- $("#vhrno--${pageName}").onEnterPress(function(){
+ $P.$find("vhrno").onEnterPress(function(){
$P.getVehicleTotalInfo(event.target);
});
//차적조회(단속내역,민원상담내역,차적기본조회,장애인표지조회)
$P.getVehicleTotalInfo = async function(vhrnoEl){
var otherWindow = false;
- if(!vhrnoEl.id.endsWith("--${pageName}")){
+ if($(vhrnoEl).parents("[data-doctx='${pageName}']").length < 1){
otherWindow = true;
}
var taskSeCd = "${taskSeCd}";
- var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", "");
+ var crdnYmd = $P.$find("crdnYmd").val().replaceAll("-", "");
var vhrno = vhrnoEl.value;
if(crdnYmd == ""){
@@ -908,7 +908,7 @@ $(document).ready(function(){
setDialogZindex();
focusClose();
},
- onClose:function(){ $("#crdnYmd--${pageName}").focus(); }
+ onClose:function(){ $P.$find("crdnYmd").focus(); }
});
return;
} else {
@@ -936,7 +936,7 @@ $(document).ready(function(){
}
}
- var sggCd = $("#sggCd--${pageName}").val();
+ var sggCd = $P.$find("sggCd").val();
var resp = null;
//
@@ -961,24 +961,24 @@ $(document).ready(function(){
resp = await getVhclInfo(sggCd, vhrno, crdnYmd);
if(otherWindow){
- $("#vhrno--${pageName}").val(vhrno);
+ $P.$find("vhrno").val(vhrno);
}
if(!resp.found){
- $("#rtpyrId--${pageName}").val("");
- $("#addrSn--${pageName}").val("");
- $("#rtpyrNm--${pageName}").val("");
- $("#rtpyrSeCd--${pageName}").val("");
- $("#rtpyrNo--${pageName}").val("");
- $("#vin--${pageName}").val("");
- $("#vhclNm--${pageName}").val("");
- $("#vhclColr--${pageName}").val("");
- $("#useFuelCd--${pageName}").val("");
- $("#ffnlgCarmdlCd--${pageName}").val("");
- $("#zip--${pageName}").val("");
- $("#addr--${pageName}").val("");
- $("#dtlAddr--${pageName}").val("");
+ $P.$find("rtpyrId").val("");
+ $P.$find("addrSn").val("");
+ $P.$find("rtpyrNm").val("");
+ $P.$find("rtpyrSeCd").val("");
+ $P.$find("rtpyrNo").val("");
+ $P.$find("vin").val("");
+ $P.$find("vhclNm").val("");
+ $P.$find("vhclColr").val("");
+ $P.$find("useFuelCd").val("");
+ $P.$find("ffnlgCarmdlCd").val("");
+ $P.$find("zip").val("");
+ $P.$find("addr").val("");
+ $P.$find("dtlAddr").val("");
if(!otherWindow){
dialog.alert({
@@ -998,12 +998,12 @@ $(document).ready(function(){
}
}
- $("#rtpyrId--${pageName}").val(resp.rtpyrId);
- $("#addrSn--${pageName}").val(resp.addrSn);
+ $P.$find("rtpyrId").val(resp.rtpyrId);
+ $P.$find("addrSn").val(resp.addrSn);
var vehicle = resp.vehicle;
- $("#rtpyrNm--${pageName}").val(vehicle.mber_nm);
+ $P.$find("rtpyrNm").val(vehicle.mber_nm);
var pyrSeCd = "";
switch(vehicle.mber_se_code){
@@ -1013,51 +1013,51 @@ $(document).ready(function(){
case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; break;
}
- $("#rtpyrSeCd--${pageName}").val(pyrSeCd);
+ $P.$find("rtpyrSeCd").val(pyrSeCd);
- $("#rtpyrNo--${pageName}").val(vehicle.mber_se_no);
+ $P.$find("rtpyrNo").val(vehicle.mber_se_no);
- $("#vin--${pageName}").val(vehicle.vin);
- $("#vhclNm--${pageName}").val(vehicle.cnm);
- $("#vhclColr--${pageName}").val(vehicle.color_nm);
- $("#useFuelCd--${pageName}").val(vehicle.use_fuel_code);
+ $P.$find("vin").val(vehicle.vin);
+ $P.$find("vhclNm").val(vehicle.cnm);
+ $P.$find("vhclColr").val(vehicle.color_nm);
+ $P.$find("useFuelCd").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용
- $("#ffnlgCarmdlCd--${pageName}").val("11");
+ $P.$find("ffnlgCarmdlCd").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합
- $("#ffnlgCarmdlCd--${pageName}").val("12");
+ $P.$find("ffnlgCarmdlCd").val("12");
} else if(vehicle.vhcty_asort_code == "3"){ //화물
if(vehicle.mxmm_ldg <= 4000){
- $("#ffnlgCarmdlCd--${pageName}").val("13");
+ $P.$find("ffnlgCarmdlCd").val("13");
} else {
- $("#ffnlgCarmdlCd--${pageName}").val("14");
+ $P.$find("ffnlgCarmdlCd").val("14");
}
} else if(vehicle.vhcty_asort_code == "4"){ //특수
- $("#ffnlgCarmdlCd--${pageName}").val("15");
+ $P.$find("ffnlgCarmdlCd").val("15");
} else {
- $("#ffnlgCarmdlCd--${pageName}").val("");
+ $P.$find("ffnlgCarmdlCd").val("");
}
- $("#zip--${pageName}").val(vehicle.zip_code); //우편번호
- $("#addr--${pageName}").val(vehicle.road_nm_adres); //주소
- $("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소
+ $P.$find("zip").val(vehicle.zip_code); //우편번호
+ $P.$find("addr").val(vehicle.road_nm_adres); //주소
+ $P.$find("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소
if(taskSeCd == "DPV"){
resp = await getVhclDisabledParkingInfo(vhrno);
if(resp.parkingInfo.BOHUN_PARKING_PSBL_YN == "Y" || resp.parkingInfo.PARKING_PSBL_YN == "Y") {
- $("#prkPsbltyRsltCd--${pageName}").val("2");
+ $P.$find("prkPsbltyRsltCd").val("2");
} else {
- $("#prkPsbltyRsltCd--${pageName}").val("1");
+ $P.$find("prkPsbltyRsltCd").val("1");
}
}
if(otherWindow){
return {
- vhrno : $("#vhrno--${pageName}").val(),
- vhclNm : $("#vhclNm--${pageName}").val(),
- vhclColr : $("#vhclColr--${pageName}").val()
+ vhrno : $P.$find("vhrno").val(),
+ vhclNm : $P.$find("vhclNm").val(),
+ vhclColr : $P.$find("vhclColr").val()
};
} else {
return;
@@ -1071,7 +1071,7 @@ $(document).ready(function(){
data: {
openType : "D",
taskSeCd : "${taskSeCd}",
- vhrno : $("#vhrno--${pageName}").val()
+ vhrno : $P.$find("vhrno").val()
},
success: function(resp) {
dialog.open({
@@ -1084,7 +1084,7 @@ $(document).ready(function(){
$(document).find("div.modal").last().on('shown.bs.modal', function () {
$("#crdnListDialog--${pageName}").find("[name='schCrdnYmdFrom']").set("");
$("#crdnListDialog--${pageName}").find("[name='schCrdnYmdTo']").set("");
- $("#crdnListDialog--${pageName}").find("[name='vhrno']").set($("#vhrno--${pageName}").val());
+ $("#crdnListDialog--${pageName}").find("[name='vhrno']").set($P.$find("vhrno").val());
$("#crdnListDialog--${pageName}").find(".btn-search").eq(0).click();
});
},
@@ -1101,7 +1101,7 @@ $(document).ready(function(){
data: {
openType : "D",
taskSeCd : "${taskSeCd}",
- vhrno : $("#vhrno--${pageName}").val()
+ vhrno : $P.$find("vhrno").val()
},
success: function(resp) {
dialog.open({
@@ -1114,7 +1114,7 @@ $(document).ready(function(){
$(document).find("div.modal").last().on('shown.bs.modal', function () {
$("#cvlcptDscsnListDialog--${pageName}").find("[name='schDscsnYmdFrom']").set("");
$("#cvlcptDscsnListDialog--${pageName}").find("[name='schDscsnYmdTo']").set("");
- $("#cvlcptDscsnListDialog--${pageName}").find("[name='schVhrno']").set($("#vhrno--${pageName}").val());
+ $("#cvlcptDscsnListDialog--${pageName}").find("[name='schVhrno']").set($P.$find("vhrno").val());
$("#cvlcptDscsnListDialog--${pageName}").find(".btn-search").eq(0).click();
});
},
@@ -1126,17 +1126,17 @@ $(document).ready(function(){
if("${taskSeCd}" == "DPV"){
- $("#vltnCd--${pageName}").on("change", function(){
+ $P.$find("vltnCd").on("change", function(){
if(this.value == "01"){
$("label[for='dstrbncYn--${pageName}']").show();
} else {
$("label[for='dstrbncYn--${pageName}']").hide();
- $("#dstrbncYn--${pageName}").prop("checked", false);
+ $P.$find("dstrbncYn").prop("checked", false);
}
});
}
- $("#refreshEnd--${pageName}").on("refreshEnd", function(){
+ $P.$find("refreshEnd").on("refreshEnd", function(){
if(this.dataset.cursorKey == null || this.dataset.cursorKey == ""){
dialog.close("cvlcptInitialDataEditDialog--${openerPageName}");
@@ -1176,7 +1176,7 @@ $(document).ready(function(){
crdnInfo.CVLCPT_APLY_CN = escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([crdnInfo]);
- if($("#taskSeCd--${pageName}").val() == "DPV" && $("#vltnCd--${pageName}").val() == "01"){
+ if($P.$find("taskSeCd").val() == "DPV" && $P.$find("vltnCd").val() == "01"){
$("label[for='dstrbncYn--${pageName}']").show();
} else {
$("label[for='dstrbncYn--${pageName}']").hide();
@@ -1185,17 +1185,17 @@ $(document).ready(function(){
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
- var cs = $P.provided.getCountStatus($("#crdnId--${pageName}").val());
- $("#countStauts--${pageName}").val(cs);
+ var cs = $P.provided.getCountStatus($P.$find("crdnId").val());
+ $P.$find("countStauts").val(cs);
//사진영역 설정
settingPhotoMain("${pageName}", "crdnId--${pageName}",
function(){
return {
- vhrno : $("#vhrno--${pageName}").val(),
- vhclNm : $("#vhclNm--${pageName}").val(),
- vhclColr : $("#vhclColr--${pageName}").val()
+ vhrno : $P.$find("vhrno").val(),
+ vhclNm : $P.$find("vhclNm").val(),
+ vhclColr : $P.$find("vhclColr").val()
};
},
async function(vhrnoEl){
diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01050-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01050-info.jsp
index b06c5dfb..c456b744 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01050-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01050-info.jsp
@@ -80,7 +80,7 @@
-
@@ -142,14 +142,14 @@ $(document).ready(function() {
**************************************************************************/
$P.fnPrev = () => {
- var prevKey = $P.provided.getPrevKey($("#crdnId--${pageName}").val());
+ var prevKey = $P.provided.getPrevKey($P.$find("crdnId").val());
if(prevKey != ""){
$P.fnGo(prevKey);
}
}
$P.fnNext = () => {
- var nextKey = $P.provided.getNextKey($("#crdnId--${pageName}").val());
+ var nextKey = $P.provided.getNextKey($P.$find("crdnId").val());
if(nextKey != ""){
$P.fnGo(nextKey);
}
@@ -167,8 +167,8 @@ $(document).ready(function() {
cvlcptInfo.CVLCPT_APLY_CN = escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([cvlcptInfo]);
- var cs = $P.provided.getCountStatus($("#crdnId--${pageName}").val());
- $("#countStauts--${pageName}").val(cs);
+ var cs = $P.provided.getCountStatus($P.$find("crdnId").val());
+ $P.$find("countStauts").val(cs);
$P.provided.selectRow(crdnId);
}
});
@@ -176,7 +176,7 @@ $(document).ready(function() {
$P.fnMakeHwp = () => {
var url = wctx.url("/"+$P.taskSeCd+"/cvlc/cvlc01/050/makeFileFromHwpFormat.do");
- var parameter = toQuery({ crdnId : $("#crdnId--${pageName}").val() });
+ var parameter = toQuery({ crdnId : $P.$find("crdnId").val() });
document.location.href = url + "?" + parameter;
}
@@ -194,7 +194,7 @@ $(document).ready(function() {
var cvlcptInfo = ${cvlcptInfo};
cvlcptInfo.CVLCPT_APLY_CN = escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([cvlcptInfo]);
- var cs = $P.provided.getCountStatus($("#crdnId--${pageName}").val());
- $("#countStauts--${pageName}").val(cs);
+ var cs = $P.provided.getCountStatus($P.$find("crdnId").val());
+ $P.$find("countStauts").val(cs);
});
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp
index a4b3f551..378f876d 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp
@@ -302,8 +302,8 @@ $(document).ready(function(){
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$P.$find("byOutput").val("동적 검색");
- $('#schCvlcptRcptYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-31).date);
- $('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', TODAY());
+ $P.$find("schCvlcptRcptYmdFrom").datepicker('setDate', DateUtil.getDateDay(-31).date);
+ $P.$find("schCvlcptRcptYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02060-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02060-info.jsp
index 58f0e457..c1687b9f 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02060-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02060-info.jsp
@@ -16,7 +16,7 @@
-
@@ -112,14 +112,14 @@ $(document).ready(function() {
**************************************************************************/
$P.fnPrev = () => {
- var prevKey = $P.parentRes.getPrevKey($("#crdnId--${pageName}").val());
+ var prevKey = $P.parentRes.getPrevKey($P.$find("crdnId").val());
if(prevKey != ""){
$P.fnGo(prevKey);
}
}
$P.fnNext = () => {
- var nextKey = $P.parentRes.getNextKey($("#crdnId--${pageName}").val());
+ var nextKey = $P.parentRes.getNextKey($P.$find("crdnId").val());
if(nextKey != ""){
$P.fnGo(nextKey);
}
@@ -137,8 +137,8 @@ $(document).ready(function() {
cvlcptInfo.CVLCPT_APLY_CN = escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([cvlcptInfo]);
- var cs = $P.parentRes.getCountStatus($("#crdnId--${pageName}").val());
- $("#countStauts--${pageName}").val(cs);
+ var cs = $P.parentRes.getCountStatus($P.$find("crdnId").val());
+ $P.$find("countStauts").val(cs);
$P.parentRes.selectRow(crdnId);
}
});
@@ -192,8 +192,8 @@ $(document).ready(function() {
var cvlcptInfo = ${cvlcptInfo};
cvlcptInfo.CVLCPT_APLY_CN = escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([cvlcptInfo]);
- var cs = $P.parentRes.getCountStatus($("#crdnId--${pageName}").val());
- $("#countStauts--${pageName}").val(cs);
+ var cs = $P.parentRes.getCountStatus($P.$find("crdnId").val());
+ $P.$find("countStauts").val(cs);
let openerPageName = "${openerPageName}";
diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp
index 7a0e8e42..2f4d8eec 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp
@@ -287,8 +287,8 @@ $(document).ready(function(){
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$P.$find("byOutput").val("동적 검색");
- $('#schCvlcptRcptYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-365).date);
- $('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', TODAY());
+ $P.$find("schCvlcptRcptYmdFrom").datepicker('setDate', DateUtil.getDateDay(-365).date);
+ $P.$find("schCvlcptRcptYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp
index fc8e63a2..48415cb9 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp
@@ -215,8 +215,8 @@ $(document).ready(function(){
**************************************************************************/
$P.fnReset = () => {
- $('#schDmndYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
- $('#schDmndYmdTo--${pageName}').datepicker('setDate', TODAY());
+ $P.$find("schDmndYmdFrom").datepicker('setDate', DateUtil.getDateDay(-5475).date);
+ $P.$find("schDmndYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc05010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc05010-main.jsp
index 7ff79124..c49bfb1e 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc05010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc05010-main.jsp
@@ -255,7 +255,7 @@
[매크로 문자 삽입]
-
+
@@ -359,9 +359,9 @@ $(document).ready(function(){
url : $P.ctrl.urls.load,
data : {"taskSeCd" : taskSeCd},
success : (resp) => {
-
- $("#headerCn--${pageName}").val(resp.headerCn);
- $("#footerCn--${pageName}").val(resp.footerCn);
+
+ $P.$find("headerCn").val(resp.headerCn);
+ $P.$find("footerCn").val(resp.footerCn);
$P.ctrl.levy.setData(resp.levyCaseList);
$P.ctrl.warning.setData(resp.warningCaseList);
@@ -496,10 +496,10 @@ $(document).ready(function(){
}
if(curData == null){
- $("#ansRsnCd--${pageName}").val("");
- $("#dstrbncYn--${pageName}").val("");
- $("#ansWordsId--${pageName}").val("");
- $("#prcsRsltCn--${pageName}").val("");
+ $P.$find("ansRsnCd").val("");
+ $P.$find("dstrbncYn").val("");
+ $P.$find("ansWordsId").val("");
+ $P.$find("prcsRsltCn").val("");
return;
}
@@ -523,10 +523,10 @@ $(document).ready(function(){
}
}
- $("#ansRsnCd--${pageName}").val(rnsRsnCd);
- $("#dstrbncYn--${pageName}").val(dstrbncYn);
- $("#ansWordsId--${pageName}").val(curData["ANS_WORDS_ID"]);
- $("#prcsRsltCn--${pageName}").val(curData["PRCS_RSLT_CN"]);
+ $P.$find("ansRsnCd").val(rnsRsnCd);
+ $P.$find("dstrbncYn").val(dstrbncYn);
+ $P.$find("ansWordsId").val(curData["ANS_WORDS_ID"]);
+ $P.$find("prcsRsltCn").val(curData["PRCS_RSLT_CN"]);
}
$P.refreshAnsWordsInfo = () => {
@@ -541,8 +541,8 @@ $(document).ready(function(){
data : {"taskSeCd" : taskSeCd},
success : (resp) => {
- $("#headerCn--${pageName}").val(resp.headerCn);
- $("#footerCn--${pageName}").val(resp.footerCn);
+ $P.$find("headerCn").val(resp.headerCn);
+ $P.$find("footerCn").val(resp.footerCn);
$P.ctrl.levy.setData(resp.levyCaseList);
$P.ctrl.warning.setData(resp.warningCaseList);
@@ -642,9 +642,9 @@ $(document).ready(function(){
$P.fnOpenPreviewPop = () => {
var result = fnMacroWordsReplace(
- $("#headerCn--${pageName}").val(),
- $("#footerCn--${pageName}").val(),
- $("#prcsRsltCn--${pageName}").val(),
+ $P.$find("headerCn").val(),
+ $P.$find("footerCn").val(),
+ $P.$find("prcsRsltCn").val(),
"${currentUserTelno}",
"${currentUserName}"
);
@@ -677,7 +677,7 @@ $(document).ready(function(){
$P.currentDisplay = "ansBasic";
- $("#macroTarget--${pageName}").attr("for","");
+ $P.$find("macroTarget").attr("for","");
});
$P.$find("btnLevyAnsBodyTab").on('click', (event) => {
@@ -697,7 +697,7 @@ $(document).ready(function(){
$P.changeAnsBodyText();
- $("#macroTarget--${pageName}").attr("for","");
+ $P.$find("macroTarget").attr("for","");
});
$P.$find("btnWarningAnsBodyTab").on('click', (event) => {
@@ -716,7 +716,7 @@ $(document).ready(function(){
$P.changeAnsBodyText();
- $("#macroTarget--${pageName}").attr("for","");
+ $P.$find("macroTarget").attr("for","");
});
$P.$find("btnNonlevyAnsBodyTab").on('click', (event) => {
@@ -735,7 +735,7 @@ $(document).ready(function(){
$P.changeAnsBodyText();
- $("#macroTarget--${pageName}").attr("for","");
+ $P.$find("macroTarget").attr("for","");
});
//업무처리 버튼
@@ -743,23 +743,23 @@ $(document).ready(function(){
$P.$find("btnSaveAnsBody").on("click", () => $P.fnSave(false));
$P.$find("btnRemove").on("click", () => $P.fnRemove());
$P.$find("btnOpenPreviewPop").on("click", () => $P.fnOpenPreviewPop());
-
- $("#headerCn--${pageName},#footerCn--${pageName},#prcsRsltCn--${pageName}").on("focus", (event) => {
- $("#macroTarget--${pageName}").attr("for", event.target.id);
+
+ $($P.selfElement()).find("[name='headerCn'],[name='footerCn'],[name='prcsRsltCn']").on("focus", (event) => {
+ $P.$find("macroTarget").attr("for", event.target.id);
});
$P.$find("btnInsertMacro1").on("click", () => {
- var macroTarget = $("#macroTarget--${pageName}").attr("for");
+ var macroTarget = $P.$find("macroTarget").attr("for");
if(macroTarget == ""){ return; }
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_SEQ);
});
$P.$find("btnInsertMacro2").on("click", () => {
- var macroTarget = $("#macroTarget--${pageName}").attr("for");
+ var macroTarget = $P.$find("macroTarget").attr("for");
if(macroTarget == ""){ return; }
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_TELNO);
});
$P.$find("btnInsertMacro3").on("click", () => {
- var macroTarget = $("#macroTarget--${pageName}").attr("for");
+ var macroTarget = $P.$find("macroTarget").attr("for");
if(macroTarget == ""){ return; }
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_PIC_NM);
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc06010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc06010-main.jsp
index 51f796d2..26a30967 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc06010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc06010-main.jsp
@@ -227,17 +227,17 @@ $(document).ready(function(){
var curData = $P.ctrl.dataset.getCurrent();
if(curData == null){
- $("#ansRsnCd--${pageName}").val("");
- $("#ansWordsId--${pageName}").val("");
- $("#mailTtlNm--${pageName}").val("");
- $("#mailCn--${pageName}").val("");
+ $P.$find("ansRsnCd").val("");
+ $P.$find("ansWordsId").val("");
+ $P.$find("mailTtlNm").val("");
+ $P.$find("mailCn").val("");
return;
}
- $("#ansRsnCd--${pageName}").val(curData["LEVY_EXCL_RSN_CD"]);
- $("#ansWordsId--${pageName}").val(curData["ANS_WORDS_ID"]);
- $("#mailTtlNm--${pageName}").val(curData["MAIL_TTL_NM"]);
- $("#mailCn--${pageName}").val(curData["MAIL_CN"]);
+ $P.$find("ansRsnCd").val(curData["LEVY_EXCL_RSN_CD"]);
+ $P.$find("ansWordsId").val(curData["ANS_WORDS_ID"]);
+ $P.$find("mailTtlNm").val(curData["MAIL_TTL_NM"]);
+ $P.$find("mailCn").val(curData["MAIL_CN"]);
}
$P.refreshWarningWordsInfo = () => {
diff --git a/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js b/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js
index 765cd74a..f807bcec 100644
--- a/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js
+++ b/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js
@@ -14,6 +14,9 @@ class DoctxFinder extends EventTarget {
selector(name){
return "[data-doctx='"+this.doctx+"'] [name='"+name+"']";
}
+ selfElement(){
+ return document.querySelector("[data-doctx='"+this.doctx+"']");
+ }
$find(name){
return $(document.querySelector("[data-doctx='"+this.doctx+"']")).find("[name='"+name+"']");
}