diff --git a/src/main/webapp/WEB-INF/jsp/fims/admin-copySggStng-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/admin-copySggStng-info.jsp
index f61ba84c..d8b0777d 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/admin-copySggStng-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/admin-copySggStng-info.jsp
@@ -47,9 +47,9 @@
pageObject['${pageName}'] = newDoctxFinder("${pageName}");
$(document).ready(function() {
let $P = pageObject['${pageName}'];
- $P.$find("btnCopyStng").on("click", function(){
+ $P.$findn("btnCopyStng").on("click", function(){
- if($P.$find("srcSgg").val() == $P.$find("trgtSgg").val()){
+ if($P.$findn("srcSgg").val() == $P.$findn("trgtSgg").val()){
alert("동일한 시군구 선택 불가");
return;
}
@@ -57,9 +57,9 @@ $(document).ready(function() {
ajax.get({
url : wctx.url("admin/copySggStng.do"),
data : {
- taskSeCd : $P.$find("taskSeCd").val(),
- srcSgg : $P.$find("srcSgg").val(),
- trgtSgg : $P.$find("trgtSgg").val()
+ taskSeCd : $P.$findn("taskSeCd").val(),
+ srcSgg : $P.$findn("srcSgg").val(),
+ trgtSgg : $P.$findn("trgtSgg").val()
},
success : (resp) => {
if(resp.saved){
diff --git a/src/main/webapp/WEB-INF/jsp/fims/admin-sggAddDel-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/admin-sggAddDel-info.jsp
index 9a67cc79..1b18d851 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/admin-sggAddDel-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/admin-sggAddDel-info.jsp
@@ -96,7 +96,7 @@ $(document).ready(function(){
});
$P.fnRenderBackupAndOriginal = (list,tbodyName, dataset) => {
- $P.$find(tbodyName).html("");
+ $P.$findn(tbodyName).html("");
if(list != null && list.length > 0){
dataset.setData(list);
@@ -105,11 +105,11 @@ $(document).ready(function(){
}
var empty = dataset.empty;
- var notFound = [$P.find("sggNotFound").innerHTML];
- var found = $P.find("sggRow").innerHTML;
+ var notFound = [$P.findn("sggNotFound").innerHTML];
+ var found = $P.findn("sggRow").innerHTML;
var replacer = (str, dataItem) => str.replace(/{onclick}/gi, "");
var trs = empty ? notFound : dataset.inStrings(found, replacer);
- $P.$find(tbodyName).html(trs.join());
+ $P.$findn(tbodyName).html(trs.join());
};
$P.getBackupAndOriginalDataList = () => {
@@ -129,8 +129,8 @@ $(document).ready(function(){
});
};
- $P.$find("btnAdd").on("click", function(){
- var checked = $P.$find("backupSggTbody").find("input[type='checkbox']:checked");
+ $P.$findn("btnAdd").on("click", function(){
+ var checked = $P.$findn("backupSggTbody").find("input[type='checkbox']:checked");
if(checked.length < 1){
return;
}
@@ -156,8 +156,8 @@ $(document).ready(function(){
});
});
- $P.$find("btnDel").on("click", function(){
- var checked = $P.$find("originalSggTbody").find("input[type='checkbox']:checked");
+ $P.$findn("btnDel").on("click", function(){
+ var checked = $P.$findn("originalSggTbody").find("input[type='checkbox']:checked");
if(checked.length < 1){
return;
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01010-main.jsp
index 1627d7f8..16683bf1 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01010-main.jsp
@@ -156,11 +156,11 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderLayoutList(obj["Total"], $P.ctrl.dataset.length, trs, option);
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("layoutPaging"), $P.find("layoutPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("layoutPaging"), $P.findn("layoutPagingInfo"));
};
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
- Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("layoutTbody"));
+ Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.findn("layoutTbody"));
}
/**************************************************************************
@@ -174,7 +174,7 @@ $(document).ready(function(){
}
$P.fnReset = () => {
- var searchForm = $P.$find("frmSearch");
+ var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='hidden']").val("");
@@ -184,7 +184,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
@@ -209,8 +209,8 @@ $(document).ready(function(){
}
$P.getGridTemplate = () => {
- var notFound = [$P.find("layoutNotFound").innerHTML];
- var found = $P.find("layoutRow").innerHTML;
+ var notFound = [$P.findn("layoutNotFound").innerHTML];
+ var found = $P.findn("layoutRow").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickLayoutList('" + dataItem.getValue("FILE_LAYOUT_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickLayoutList('" + dataItem.getValue("FILE_LAYOUT_ID") + "');");
@@ -230,7 +230,7 @@ $(document).ready(function(){
initScroll = false;
}
- $P.find("table-responsive").changeContent(trs, initScroll, noMore);
+ $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
}
@@ -240,7 +240,7 @@ $(document).ready(function(){
return;
}
- $P.$find("layoutTbody").setCurrentRow(dataKey);
+ $P.$findn("layoutTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -308,23 +308,23 @@ $(document).ready(function(){
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
- $P.$find("btnSearch").on('click', () => $P.searchLayoutList());
- $P.$find("btnAdd").on('click', () => $P.createLayout());
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnSearch").on('click', () => $P.searchLayoutList());
+ $P.$findn("btnAdd").on('click', () => $P.createLayout());
/**************************************************************************
* 초기화
**************************************************************************/
- Componentization.fnMakeResizableTable($P.find("table-responsive"));
- Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollLayoutList);
+ Componentization.fnMakeResizableTable($P.findn("table-responsive"));
+ Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollLayoutList);
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
- $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});
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 28a86411..1acef668 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
@@ -266,7 +266,7 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl, Dataset, FormFields
**************************************************************************/
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : true,
@@ -296,7 +296,7 @@ $(document).ready(function(){
**************************************************************************/
$P.fnSave = () => {
- if(!AppSupport.customValidate($P.$find("frmEdit").find("input,select,textarea"))) return;
+ if(!AppSupport.customValidate($P.$findn("frmEdit").find("input,select,textarea"))) return;
var info = $P.formFields.get();
@@ -350,8 +350,8 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnSave").on('click', () => $P.fnSave());
- $P.$find("btnDelete").on('click', () => $P.fnRemove());
+ $P.$findn("btnSave").on('click', () => $P.fnSave());
+ $P.$findn("btnDelete").on('click', () => $P.fnRemove());
/**************************************************************************
* 초기화
@@ -362,11 +362,11 @@ $(document).ready(function(){
} else {
$P.ctrl.dataset.setData([]);
- $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");
+ $P.$findn("sggCd").val(MY_INFO.info.sggCd);
+ $P.$findn("instCd").val(MY_INFO.info.instCd);
+ $P.$findn("deptCd").val(MY_INFO.info.deptCd);
+ $P.$findn("taskSeCd").val("${taskSeCd}");
+ $P.$findn("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 336bbdd1..1904f189 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
@@ -430,12 +430,12 @@ $(document).ready(function(){
$P.renderInspectionDataList(obj["Total"], $P.ctrl.dataset.length, trs, "photoInspection", option);
Apply.fromDataset.paging($P.ctrl.dataset, obj,
- $P.find("photoInspectionPaging"), $P.find("photoInspectionPagingInfo")
+ $P.findn("photoInspectionPaging"), $P.findn("photoInspectionPagingInfo")
);
};
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
- Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("photoInspectionTbody"));
+ Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.findn("photoInspectionTbody"));
var dataKey = "";
var curDataVhrno = "";
@@ -459,16 +459,16 @@ $(document).ready(function(){
$P.renderInspectionDataList(obj["Total"], $P.alt.dataset.length, trs, "sameVehicleInspectionMain", option);
Apply.fromDataset.paging($P.alt.dataset, obj,
- $P.find("sameVehicleInspectionMainPaging"), $P.find("sameVehicleInspectionMainPagingInfo")
+ $P.findn("sameVehicleInspectionMainPaging"), $P.findn("sameVehicleInspectionMainPagingInfo")
);
};
$P.alt.dataset.onCurrentChange = (dataItem) => {
- Apply.fromDataset.currentRow($P.alt.dataset, dataItem, $P.find("sameVehicleInspectionMainTbody"));
+ Apply.fromDataset.currentRow($P.alt.dataset, dataItem, $P.findn("sameVehicleInspectionMainTbody"));
if(dataItem){
$P.searchDetailInspectionDataList(dataItem.data["CRDN_ID_LIST"]);
} else {
- $P.$find("sameVehicleInspectionSubTbody").html("");
+ $P.$findn("sameVehicleInspectionSubTbody").html("");
}
}
@@ -479,24 +479,24 @@ $(document).ready(function(){
};
$P.shift.dataset.onCurrentChange = (dataItem) => {
- Apply.fromDataset.currentRow($P.shift.dataset, dataItem, $P.find("sameVehicleInspectionSubTbody"));
+ Apply.fromDataset.currentRow($P.shift.dataset, dataItem, $P.findn("sameVehicleInspectionSubTbody"));
};
/**************************************************************************
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
- var searchForm = $P.$find("frmSearch");
+ var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
- $P.$find("byOutput").val("동적 검색");
- $P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름
- $P.$find("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-7));
- $P.$find("schCrdnYmdTo").datepicker('setDate', TODAY());
+ $P.$findn("byOutput").val("동적 검색");
+ $P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
+ $P.$findn("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-7));
+ $P.$findn("schCrdnYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
$P.alt.dataset.setData([]);
};
@@ -509,18 +509,18 @@ $(document).ready(function(){
var clsForTask = taskSeCd.toLowerCase();
//업무별 조회조건
- FimsSupport.renderForTask($P.find("frmSearch"), clsForTask);
+ FimsSupport.renderForTask($P.findn("frmSearch"), clsForTask);
//업무별 버튼
- FimsSupport.renderForTask($P.find("gridbuttonArea"), clsForTask);
+ FimsSupport.renderForTask($P.findn("gridbuttonArea"), clsForTask);
//버튼 이벤트 재매핑
- $P.$find("btnOpenOverTime").off("click");
- $P.$find("btnOpenOverTime").on("click", () => $P.openOverTimePop());
+ $P.$findn("btnOpenOverTime").off("click");
+ $P.$findn("btnOpenOverTime").on("click", () => $P.openOverTimePop());
- $P.$find('btnPhotoInspection').trigger("click");
+ $P.$findn('btnPhotoInspection').trigger("click");
}
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
if($P.currentDisplay == "photoInspection"){
@@ -655,8 +655,8 @@ $(document).ready(function(){
}
var cellDefs = AppSupport.getCellDefs(
- $P.$find("photoInspection_Table_0").find("thead th").not(".dummy-th").not(":eq(0)"),
- $($P.find("photoInspectionRow").content).find("td").not(".dummy-td").not(":eq(0)")
+ $P.$findn("photoInspection_Table_0").find("thead th").not(".dummy-th").not(":eq(0)"),
+ $($P.findn("photoInspectionRow").content).find("td").not(".dummy-td").not(":eq(0)")
);
$P.ctrl.query.cellDefs = cellDefs;
@@ -675,8 +675,8 @@ $(document).ready(function(){
if(excelTarget == "main"){
var cellDefs = AppSupport.getCellDefs(
- $P.$find("sameVehicleInspectionMain_Table_0").find("thead th").not(".dummy-th"),
- $($P.find("sameVehicleInspectionMainRow").content).find("td").not(".dummy-td")
+ $P.$findn("sameVehicleInspectionMain_Table_0").find("thead th").not(".dummy-th"),
+ $($P.findn("sameVehicleInspectionMainRow").content).find("td").not(".dummy-td")
);
$P.alt.query.cellDefs = cellDefs;
@@ -684,8 +684,8 @@ $(document).ready(function(){
} else if(excelTarget == "sub"){
var cellDefs = AppSupport.getCellDefs(
- $P.$find("sameVehicleInspectionSub_Table_0").find("thead th").not(".dummy-th"),
- $($P.find("sameVehicleInspectionSubRow").content).find("td").not(".dummy-td"),
+ $P.$findn("sameVehicleInspectionSub_Table_0").find("thead th").not(".dummy-th"),
+ $($P.findn("sameVehicleInspectionSubRow").content).find("td").not(".dummy-td"),
FimsSupport.getCellDefsForPrivacyCell
);
$P.shift.query.cellDefs = cellDefs;
@@ -703,23 +703,23 @@ $(document).ready(function(){
switch (gridType) {
case "photoInspection":
- notFound = [$P.find("photoInspectionNotFound").innerHTML]
- found = $P.find("photoInspectionRow").innerHTML;
+ notFound = [$P.findn("photoInspectionNotFound").innerHTML]
+ found = $P.findn("photoInspectionRow").innerHTML;
replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');");
break;
case "sameVehicleInspectionMain":
- notFound = [$P.find("sameVehicleInspectionMainNotFound").innerHTML];
- found = $P.find("sameVehicleInspectionMainRow").innerHTML;
+ notFound = [$P.findn("sameVehicleInspectionMainNotFound").innerHTML];
+ found = $P.findn("sameVehicleInspectionMainRow").innerHTML;
replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');");
break;
case "sameVehicleInspectionSub":
- notFound = [$P.find("sameVehicleInspectionSubNotFound").innerHTML]
- found = $P.find("sameVehicleInspectionSubRow").innerHTML;
+ notFound = [$P.findn("sameVehicleInspectionSubNotFound").innerHTML]
+ found = $P.findn("sameVehicleInspectionSubRow").innerHTML;
replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');");
@@ -745,7 +745,7 @@ $(document).ready(function(){
initScroll = false;
}
- $P.find("photoInspection-responsive").changeContent(trs, initScroll, noMore);
+ $P.findn("photoInspection-responsive").changeContent(trs, initScroll, noMore);
break;
case "sameVehicleInspectionMain":
@@ -754,12 +754,12 @@ $(document).ready(function(){
initScroll = false;
}
- $P.find("sameVehicleInspectionMain-responsive").changeContent(trs, initScroll, noMore);
+ $P.findn("sameVehicleInspectionMain-responsive").changeContent(trs, initScroll, noMore);
break;
case "sameVehicleInspectionSub":
- $P.$find("sameVehicleInspectionSubTbody").html(trs);
+ $P.$findn("sameVehicleInspectionSubTbody").html(trs);
break;
default: break;
}
@@ -774,7 +774,7 @@ $(document).ready(function(){
case "photoInspection":
if(dataKey != ""){
- $P.$find("photoInspectionTbody").setCurrentRow(dataKey);
+ $P.$findn("photoInspectionTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -788,7 +788,7 @@ $(document).ready(function(){
if(dataKey == ""){
return;
}
- $P.$find("sameVehicleInspectionMainTbody").setCurrentRow(dataKey);
+ $P.$findn("sameVehicleInspectionMainTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.alt.dataset, dataKey);
@@ -799,7 +799,7 @@ $(document).ready(function(){
if(dataKey == ""){
return;
}
- $P.$find("sameVehicleInspectionSubTbody").setCurrentRow(dataKey);
+ $P.$findn("sameVehicleInspectionSubTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.shift.dataset, dataKey);
break;
@@ -808,7 +808,7 @@ $(document).ready(function(){
$P.dblclickInspectionDataList = (dataKey) => {
- var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
+ var taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
var dialogUrl = wctx.url("/sprt/sprt02/010/main.do");
@@ -841,15 +841,15 @@ $(document).ready(function(){
$P.showPhoto = (dataKey, nextDataKey, curDataVhrno, nextDataVhrno) => {
if(dataKey == ""){
- $P.$find("curDataVhrno").html("");
- $P.$find("nextDataVhrno").html("");
- $P.$find("curDataFiles").html("");
- $P.$find("nextDataFiles").html("");
+ $P.$findn("curDataVhrno").html("");
+ $P.$findn("nextDataVhrno").html("");
+ $P.$findn("curDataFiles").html("");
+ $P.$findn("nextDataFiles").html("");
return;
}
- $P.$find("curDataVhrno").html(curDataVhrno);
- $P.$find("nextDataVhrno").html(nextDataVhrno);
+ $P.$findn("curDataVhrno").html(curDataVhrno);
+ $P.$findn("nextDataVhrno").html(nextDataVhrno);
ajax.get({
url:"file/list.do",
@@ -865,16 +865,16 @@ $(document).ready(function(){
var currentDataFileList = fileList.filter(x => x.INF_KEY == dataKey);
var nextDataFileList = fileList.filter(x => x.INF_KEY == nextDataKey);
- $P.$find("curDataFiles").html("");
- $P.$find("nextDataFiles").html("");
+ $P.$findn("curDataFiles").html("");
+ $P.$findn("nextDataFiles").html("");
currentDataFileList.forEach(function(item, index, array){
var output = fnMakeImgTagForInspection(item.URL, item.FILE_NM,"cur"+item.FILE_ID+'${pageName}',item.MOSAIC);
- $P.$find("curDataFiles").append(output);
+ $P.$findn("curDataFiles").append(output);
});
nextDataFileList.forEach(function(item, index, array){
var output = fnMakeImgTagForInspection(item.URL, item.FILE_NM,"next"+item.FILE_ID+'${pageName}',item.MOSAIC);
- $P.$find("nextDataFiles").append(output);
+ $P.$findn("nextDataFiles").append(output);
});
}
@@ -903,7 +903,7 @@ $(document).ready(function(){
"callPurpose" : "create"
};
- var taskSeCd = $P.$find("frmSearch").find("[name='taskSeCd']:checked").val();
+ var taskSeCd = $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val();
ajax.get({
url : wctx.url(taskSeCd + "/excl/excl01/020/info.do"),
@@ -1001,8 +1001,8 @@ $(document).ready(function(){
// 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => {
- $P.$find("schRgtrCd").val(userId); // 사용자 ID
- $P.$find("schRgtrNm").val(userNm); // 사용자 명
+ $P.$findn("schRgtrCd").val(userId); // 사용자 ID
+ $P.$findn("schRgtrNm").val(userNm); // 사용자 명
}
// 사용자검색 버튼 클릭 이벤트
@@ -1038,55 +1038,55 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset()); //초기화버튼
- $P.$find("btnPhotoInspection").on('click', () => {
+ $P.$findn("btnReset").on('click', () => $P.fnReset()); //초기화버튼
+ $P.$findn("btnPhotoInspection").on('click', () => {
$(".area-photoinspection").show();
$(".area-samevehicleinspection").hide();
- $P.$find('btnPhotoInspection').addClass("active");
- $P.$find('btnSameVehicleInspection').removeClass("active");
+ $P.$findn('btnPhotoInspection').addClass("active");
+ $P.$findn('btnSameVehicleInspection').removeClass("active");
$P.currentDisplay = "photoInspection";
});
- $P.$find("btnSameVehicleInspection").on('click', () => {
+ $P.$findn("btnSameVehicleInspection").on('click', () => {
$(".area-samevehicleinspection").show();
$(".area-photoinspection").hide();
- $P.$find("btnSameVehicleInspection").addClass("active");
- $P.$find("btnPhotoInspection").removeClass("active");
+ $P.$findn("btnSameVehicleInspection").addClass("active");
+ $P.$findn("btnPhotoInspection").removeClass("active");
$P.currentDisplay = "sameVehicleInspection";
});
- $P.$find('btnSearch').on('click', () => $P.searchInspectionList()); //검색버튼
+ $P.$findn('btnSearch').on('click', () => $P.searchInspectionList()); //검색버튼
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
- $P.$find("term").onEnterPress($P.searchInspectionList);
+ $P.$findn("term").onEnterPress($P.searchInspectionList);
- $P.$find("btnExcel").on('click', () => $P.fnExcelDown());
- $P.$find("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
- $P.$find("btnInstLevyExcl").on("click", () => $P.openLevyExclPop("1"));
+ $P.$findn("btnExcel").on('click', () => $P.fnExcelDown());
+ $P.$findn("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
+ $P.$findn("btnInstLevyExcl").on("click", () => $P.openLevyExclPop("1"));
- Componentization.fnMakeResizableTable($P.find("photoInspection-responsive"));
- Componentization.fnMakeResizableTable($P.find("sameVehicleInspectionMain-responsive"));
- Componentization.fnMakeResizableTable($P.find("sameVehicleInspectionSub-responsive"));
+ Componentization.fnMakeResizableTable($P.findn("photoInspection-responsive"));
+ Componentization.fnMakeResizableTable($P.findn("sameVehicleInspectionMain-responsive"));
+ Componentization.fnMakeResizableTable($P.findn("sameVehicleInspectionSub-responsive"));
//스크롤 테이블
- Componentization.fnMakeScrollableTable($P.find("photoInspection-responsive"), $P.scrollInspectionDataList);
- Componentization.fnMakeScrollableTable($P.find("sameVehicleInspectionMain-responsive"), $P.scrollInspectionDataList);
+ Componentization.fnMakeScrollableTable($P.findn("photoInspection-responsive"), $P.scrollInspectionDataList);
+ Componentization.fnMakeScrollableTable($P.findn("sameVehicleInspectionMain-responsive"), $P.scrollInspectionDataList);
/**************************************************************************
* 초기화
**************************************************************************/
- AppSupport.initDatepicker($P.find("frmSearch")); //달력 초기화
- AppSupport.initDetailSearchButton($P.find("frmSearch"));
+ AppSupport.initDatepicker($P.findn("frmSearch")); //달력 초기화
+ AppSupport.initDetailSearchButton($P.findn("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
- $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});
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 9c24414b..b103fc70 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
@@ -48,7 +48,7 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl, Dataset, FormFields
**************************************************************************/
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({
dataGetter : obj => obj.crdnInfo,
@@ -76,7 +76,7 @@ $(document).ready(function(){
var alertMessage = "";
- if($P.$find("chgAmtSe").val() == "1"){
+ if($P.$findn("chgAmtSe").val() == "1"){
if(crdnInfo.OVTM_YN == "Y"){
dialog.alert({
content : "이미 가산 처리된 자료입니다.",
@@ -89,7 +89,7 @@ $(document).ready(function(){
}
alertMessage = "가산 처리하시겠습니까?";
- } else if($P.$find("chgAmtSe").val() == "2"){
+ } else if($P.$findn("chgAmtSe").val() == "2"){
if(crdnInfo.OVTM_PRTTN_YN == "Y"){
dialog.alert({
content : "이미 감액 처리된 자료입니다.",
@@ -166,8 +166,8 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnSave").on("click", () => $P.fnSave() );
- $P.$find("btnRestore").on("click", () => $P.fnRestore() );
+ $P.$findn("btnSave").on("click", () => $P.fnSave() );
+ $P.$findn("btnRestore").on("click", () => $P.fnRestore() );
/**************************************************************************
* 초기화
**************************************************************************/
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 ec7417a1..5b177415 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
@@ -163,32 +163,32 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderCrdnList(obj["Total"], $P.ctrl.dataset.length, trs, option);
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("crdnPaging"), $P.find("crdnPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("crdnPaging"), $P.findn("crdnPagingInfo"));
};
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
- Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("crdnTbody"));
+ Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.findn("crdnTbody"));
};
/**************************************************************************
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
- var searchForm = $P.$find("frmSearch");
+ var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
- $P.$find("byOutput").val("동적 검색");
- $P.$find("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-5475));
- $P.$find("schCrdnYmdTo").datepicker('setDate', TODAY());
+ $P.$findn("byOutput").val("동적 검색");
+ $P.$findn("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-5475));
+ $P.$findn("schCrdnYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
}
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
data.taskSeCd = "DPV";
data.fetchSize = $P.ctrl.defaultFetchSize;
@@ -249,8 +249,8 @@ $(document).ready(function(){
return;
}
- var cellDefs = AppSupport.getCellDefs($P.$find("crdnTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
- $($P.find("crdnRow").content).find("td").not(".dummy-td").not(":eq(0)"));
+ var cellDefs = AppSupport.getCellDefs($P.$findn("crdnTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
+ $($P.findn("crdnRow").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.query.cellDefs = cellDefs;
$P.ctrl.download();
@@ -258,8 +258,8 @@ $(document).ready(function(){
$P.getGridTemplate = () => {
- var notFound = [$P.find("crdnNotFound").innerHTML];
- var found = $P.find("crdnRow").innerHTML;
+ var notFound = [$P.findn("crdnNotFound").innerHTML];
+ var found = $P.findn("crdnRow").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');");
@@ -279,7 +279,7 @@ $(document).ready(function(){
initScroll = false;
}
- $P.find("table-responsive").changeContent(trs, initScroll, noMore);
+ $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
@@ -290,7 +290,7 @@ $(document).ready(function(){
return;
}
- $P.$find("crdnTbody").setCurrentRow(dataKey);
+ $P.$findn("crdnTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -366,22 +366,22 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
- $P.$find("btnSearch").on('click', () => $P.searchCrdnList());
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnSearch").on('click', () => $P.searchCrdnList());
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
- $P.$find("term").onEnterPress($P.searchCrdnList);
- $P.$find("btnExcel").on('click', () => $P.fnExcelDown());
+ $P.$findn("term").onEnterPress($P.searchCrdnList);
+ $P.$findn("btnExcel").on('click', () => $P.fnExcelDown());
- Componentization.fnMakeResizableTable($P.find("table-responsive"));
- Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList);
+ Componentization.fnMakeResizableTable($P.findn("table-responsive"));
+ Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollCrdnList);
- $P.$find("btnUpdateToConfirmData").on('click', () => $P.save());
+ $P.$findn("btnUpdateToConfirmData").on('click', () => $P.save());
/**************************************************************************
* 초기화
**************************************************************************/
//달력 초기화
- AppSupport.initDatepicker($P.find("frmSearch"));
+ AppSupport.initDatepicker($P.findn("frmSearch"));
$P.fnReset();
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 20d4d745..8620eb7c 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
@@ -146,19 +146,19 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderCrdnList(obj["Total"], $P.ctrl.dataset.length, trs, option);
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("crdnPaging"), $P.find("crdnPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("crdnPaging"), $P.findn("crdnPagingInfo"));
};
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
- Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("crdnTbody"));
+ Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.findn("crdnTbody"));
}
/**************************************************************************
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
- $P.$find("regDt").datepicker('setDate', TODAY());
+ $P.$findn("regDt").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
}
@@ -174,17 +174,17 @@ $(document).ready(function(){
case "DPV" :
case "ECA" :
case "DVS" :
- $P.$find("btnInsertByFile").show();
+ $P.$findn("btnInsertByFile").show();
break;
case "PES" :
default :
- $P.$find("btnInsertByFile").hide();
+ $P.$findn("btnInsertByFile").hide();
break;
}
}
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
return data;
@@ -205,8 +205,8 @@ $(document).ready(function(){
$P.getGridTemplate = () => {
- var notFound = [$P.find("crdnNotFound").innerHTML];
- var found = $P.find("crdnRow").innerHTML;
+ var notFound = [$P.findn("crdnNotFound").innerHTML];
+ var found = $P.findn("crdnRow").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
.replace(/{ondblclick}/gi, "");
@@ -226,7 +226,7 @@ $(document).ready(function(){
initScroll = false;
}
- $P.find("table-responsive").changeContent(trs, initScroll, noMore);
+ $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
@@ -237,7 +237,7 @@ $(document).ready(function(){
if(dataKey == ""){
return;
}
- $P.$find("crdnTbody").setCurrentRow(dataKey);
+ $P.$findn("crdnTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
@@ -279,26 +279,26 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
- $P.$find("btnSearch").on("click", () => $P.searchCrdnList());
- $P.$find("btnInsertByFile").on('click', () => { $P.newInfo("file"); });
- $P.$find("btnInsertByHand").on('click', () => { $P.newInfo("hand"); });
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnSearch").on("click", () => $P.searchCrdnList());
+ $P.$findn("btnInsertByFile").on('click', () => { $P.newInfo("file"); });
+ $P.$findn("btnInsertByHand").on('click', () => { $P.newInfo("hand"); });
- Componentization.fnMakeResizableTable($P.find("table-responsive"));
- Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList);
+ Componentization.fnMakeResizableTable($P.findn("table-responsive"));
+ Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollCrdnList);
/**************************************************************************
* 초기화
**************************************************************************/
- AppSupport.initDatepicker($P.find("frmSearch")); //달력 초기화
+ AppSupport.initDatepicker($P.findn("frmSearch")); //달력 초기화
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
- $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});
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 52b09db5..e2cc1acd 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
@@ -196,16 +196,16 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderParsedInfoList(obj["Total"], $P.ctrl.dataset.length, trs);
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("parsedInfoPaging"), $P.find("parsedInfoPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("parsedInfoPaging"), $P.findn("parsedInfoPagingInfo"));
};
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
- $P.$find("imageArea").html("");
+ $P.$findn("imageArea").html("");
if(dataItem && dataItem.data){
var dataKey = dataItem.data.FILE_NAME;
- $P.$find("table-responsive").find("tbody").setCurrentRow(dataKey);
+ $P.$findn("table-responsive").find("tbody").setCurrentRow(dataKey);
if(dataItem.data.FILE_GROUP_TYPE == "BIN"){
var srcArr = [];
@@ -235,7 +235,7 @@ $(document).ready(function(){
ajax.post({
url : wctx.url("/${taskSeCd}/crdn/crdn05/020/importFileFromServer.do"),
data : {
- taskSeCd : $P.$find("taskSeCd").val()
+ taskSeCd : $P.$findn("taskSeCd").val()
},
success : (resp) => {
if(resp.saved){
@@ -257,7 +257,7 @@ $(document).ready(function(){
//로컬파일업로드
$P.uploadLocalFile = () => {
- if($P.$find("uploadFiles").val() == ""){
+ if($P.$findn("uploadFiles").val() == ""){
dialog.alert({
content : "파일이 없습니다.",
init : function(){
@@ -268,7 +268,7 @@ $(document).ready(function(){
return;
}
- var formData = new FormData($P.find("frmFirst"));
+ var formData = new FormData($P.findn("frmFirst"));
formData.append("taskSeCd", "${taskSeCd}");
ajax.post({
@@ -277,7 +277,7 @@ $(document).ready(function(){
data : formData,
success : (resp) => {
if(resp.saved){
- $P.$find("uploadFiles").val("");
+ $P.$findn("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 : $P.$find("taskSeCd").val()
+ taskSeCd : $P.$findn("taskSeCd").val()
},
success : (resp) => {
$P.ctrl.dataset.setData(resp);
@@ -311,8 +311,8 @@ $(document).ready(function(){
}
$P.getGridTemplate = () => {
- var notFound = [$P.$find("table-responsive").find("template.notFound")[0].innerHTML];
- var found = $P.$find("table-responsive").find("template.found")[0].innerHTML;
+ var notFound = [$P.$findn("table-responsive").find("template.notFound")[0].innerHTML];
+ var found = $P.$findn("table-responsive").find("template.found")[0].innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickParsedInfoList('" + dataItem.getValue("FILE_NAME") + "');");
@@ -325,10 +325,10 @@ $(document).ready(function(){
//테이블 렌더링
$P.renderParsedInfoList = (total, listLength, trs) => {
- $P.$find("table-responsive").find("tbody").html(trs);
+ $P.$findn("table-responsive").find("tbody").html(trs);
if(listLength != 0){
- FimsSupport.fnDownsizeCheck($P.$find("table-responsive").find("table")[0]);
+ FimsSupport.fnDownsizeCheck($P.$findn("table-responsive").find("table")[0]);
}
}
@@ -353,13 +353,13 @@ $(document).ready(function(){
span.appendChild(img);
div.appendChild(span);
}
- $P.$find("imageArea").append(div);
+ $P.$findn("imageArea").append(div);
} else {
var img = document.createElement("img");
img.style["object-fit"] = "contain";
img.src = src;
- $P.$find("imageArea").append(img);
+ $P.$findn("imageArea").append(img);
}
}
@@ -386,7 +386,7 @@ $(document).ready(function(){
}
var firstGroupKey = Object.keys($P.tempGroup)[0];
- var formData = new FormData($P.find("frmMultipart"));
+ var formData = new FormData($P.findn("frmMultipart"));
formData.append("taskSeCd", "${taskSeCd}");
formData.append("fileGroupType", $P.tempGroup[firstGroupKey][0].FILE_GROUP_TYPE);
formData.append("fileLayoutId", $P.tempGroup[firstGroupKey][0].FILE_LAYOUT_ID);
@@ -434,7 +434,7 @@ $(document).ready(function(){
ajax.get({
url : wctx.url("/${taskSeCd}/crdn/crdn05/020/remove.do"),
data : {
- taskSeCd : $P.$find("taskSeCd").val(),
+ taskSeCd : $P.$findn("taskSeCd").val(),
fileLayoutId : fileLayoutId,
fileName : fileName
},
@@ -453,7 +453,7 @@ $(document).ready(function(){
$P.removeTableRow = (removedFileName) => {
- var fileListTable = $P.$find("table-responsive").find("table")[0];
+ var fileListTable = $P.$findn("table-responsive").find("table")[0];
var targetArr = [];
if(Array.isArray(removedFileName)){
@@ -474,11 +474,11 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnSearch").on("click", function(){ $P.checkFTP(); });
+ $P.$findn("btnSearch").on("click", function(){ $P.checkFTP(); });
- $P.$find("btnFileUpload").on("click", function(){ $P.uploadLocalFile(); });
+ $P.$findn("btnFileUpload").on("click", function(){ $P.uploadLocalFile(); });
- $P.$find("btnInsertCrdn").on("click", function(){
+ $P.$findn("btnInsertCrdn").on("click", function(){
$P.tempGroup = Object.groupBy($P.ctrl.dataset.getDataset(), ({ TEMP_GROUP_ID }) => "temp"+TEMP_GROUP_ID);
if($.isEmptyObject($P.tempGroup)){
@@ -489,18 +489,18 @@ $(document).ready(function(){
$P.createCrdn();
});
- $P.$find("btnDelete").on("click", function(){ $P.deleteFile(); });
+ $P.$findn("btnDelete").on("click", function(){ $P.deleteFile(); });
- $P.$find("direct").on("click", function(){
+ $P.$findn("direct").on("click", function(){
if($(this).is(":checked")){
$("#uploadFilesArea").removeAttr("hidden");
- $P.$find("btnFileUpload").removeAttr("hidden");
- $P.$find("btnSearch").attr("hidden","hidden");
+ $P.$findn("btnFileUpload").removeAttr("hidden");
+ $P.$findn("btnSearch").attr("hidden","hidden");
} else {
$("#uploadFilesArea").attr("hidden","hidden");
- $P.$find("btnFileUpload").attr("hidden","hidden");
- $P.$find("btnSearch").removeAttr("hidden");
- $P.$find("uploadFiles").val("");
+ $P.$findn("btnFileUpload").attr("hidden","hidden");
+ $P.$findn("btnSearch").removeAttr("hidden");
+ $P.$findn("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 fc36b5ff..71deea18 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
@@ -378,9 +378,9 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl, Dataset, FormFields
**************************************************************************/
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
- $P.uploadSet = uploadSupport($P.selector("inputUploadSet"));
+ $P.uploadSet = uploadSupport($P.selectorn("inputUploadSet"));
$P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : true,
@@ -428,7 +428,7 @@ $(document).ready(function(){
}
$P.fnDisplay = () => {
- var displayArea = $P.find("display");
+ var displayArea = $P.findn("display");
var concatArr = $P.localUploadArr.concat($P.captureFileArr);
var tagsText = $P.fnMakeImgForNewFile(concatArr);
@@ -437,11 +437,11 @@ $(document).ready(function(){
$P.fnSave = async() => {
- if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return;
+ if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
- if($P.$find("doWarning").is(":checked")){
+ if($P.$findn("doWarning").is(":checked")){
- var rtpyrNm = $P.find("rtpyrNm");
+ var rtpyrNm = $P.findn("rtpyrNm");
if(rtpyrNm.value == ""){
dialog.alert({
content:"계고 처리를 하기 위해선 소유주정보가 입력되어야 합니다.",
@@ -462,7 +462,7 @@ $(document).ready(function(){
return;
}
- var formData = new FormData($P.find("frmFile"));
+ var formData = new FormData($P.findn("frmFile"));
for(var key in info) {
var value = info[key];
formData.append(key,value);
@@ -521,21 +521,21 @@ $(document).ready(function(){
/**************************************************************************
* 초기화(업무별 입력항목)
**************************************************************************/
- var clsForTask = $P.$find("taskSeCd").val().toLowerCase();
+ var clsForTask = $P.$findn("taskSeCd").val().toLowerCase();
//업무별 입력 항목
- FimsSupport.renderForTask($P.find("frmEdit"), clsForTask);
+ FimsSupport.renderForTask($P.findn("frmEdit"), clsForTask);
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnInst").on('click', () => $P.fnSave());
+ $P.$findn("btnInst").on('click', () => $P.fnSave());
- $P.$find("btnAddFile").on('click', () => {
- $P.$find("inputUploadSet").trigger("click");
+ $P.$findn("btnAddFile").on('click', () => {
+ $P.$findn("inputUploadSet").trigger("click");
});
- $P.$find("btnOpenVideoCapture").on('click', () => {
+ $P.$findn("btnOpenVideoCapture").on('click', () => {
var popupWidth = 1800;
var popupHeight = 950;
var popupX = (window.screen.width / 2) - (popupWidth / 2);
@@ -553,8 +553,8 @@ $(document).ready(function(){
};
});
- $P.$find("btnCancelAddFile").on('click', () => {
- var checked = $P.$find("display").find("[name='newPhoto']:checked");
+ $P.$findn("btnCancelAddFile").on('click', () => {
+ var checked = $P.$findn("display").find("[name='newPhoto']:checked");
if(checked.length < 1){
alert("선택된 사진이 없습니다.");
return;
@@ -571,9 +571,9 @@ $(document).ready(function(){
$P.fnDisplay();
});
- $P.$find("vhrno").onEnterPress(function(){
+ $P.$findn("vhrno").onEnterPress(function(){
- var crdnYmd = $P.$find("crdnYmd").val().replaceAll("-", "");
+ var crdnYmd = $P.$findn("crdnYmd").val().replaceAll("-", "");
var vhrnoEl = event.target;
var vhrno = vhrnoEl.value;
if(crdnYmd == ""){
@@ -583,7 +583,7 @@ $(document).ready(function(){
AppSupport.setDialogZindex();
AppSupport.focusClose();
},
- onClose : function(){ $P.$find("crdnYmd").focus(); }
+ onClose : function(){ $P.$findn("crdnYmd").focus(); }
});
return;
@@ -603,7 +603,7 @@ $(document).ready(function(){
json.post({
url: wctx.url("/payer/vehicle.do"),
data: {
- sggCd : $P.$find("sggCd").val(),
+ sggCd : $P.$findn("sggCd").val(),
vhrno : vhrno,
levy_stdde : crdnYmd
},
@@ -616,28 +616,28 @@ $(document).ready(function(){
AppSupport.focusClose();
}
});
- $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("");
+ $P.$findn("rtpyrId").val("");
+ $P.$findn("addrSn").val("");
+ $P.$findn("rtpyrNm").val("");
+ $P.$findn("rtpyrSeCd").val("");
+ $P.$findn("rtpyrNo").val("");
+ $P.$findn("vin").val("");
+ $P.$findn("vhclNm").val("");
+ $P.$findn("vhclColr").val("");
+ $P.$findn("useFuelCd").val("");
+ $P.$findn("ffnlgCarmdlCd").val("");
+ $P.$findn("zip").val("");
+ $P.$findn("addr").val("");
+ $P.$findn("dtlAddr").val("");
return;
}
- $P.$find("rtpyrId").val(resp.rtpyrId);
- $P.$find("addrSn").val(resp.addrSn);
+ $P.$findn("rtpyrId").val(resp.rtpyrId);
+ $P.$findn("addrSn").val(resp.addrSn);
var vehicle = resp.vehicle;
- $P.$find("rtpyrNm").val(vehicle.mber_nm);
+ $P.$findn("rtpyrNm").val(vehicle.mber_nm);
var pyrSeCd = "";
switch(vehicle.mber_se_code){
@@ -647,44 +647,44 @@ $(document).ready(function(){
case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; break;
}
- $P.$find("rtpyrSeCd").val(pyrSeCd);
+ $P.$findn("rtpyrSeCd").val(pyrSeCd);
- $P.$find("rtpyrNo").val(vehicle.mber_se_no);
+ $P.$findn("rtpyrNo").val(vehicle.mber_se_no);
- $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);
+ $P.$findn("vin").val(vehicle.vin);
+ $P.$findn("vhclNm").val(vehicle.cnm);
+ $P.$findn("vhclColr").val(vehicle.color_nm);
+ $P.$findn("useFuelCd").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용
- $P.$find("ffnlgCarmdlCd").val("11");
+ $P.$findn("ffnlgCarmdlCd").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합
- $P.$find("ffnlgCarmdlCd").val("12");
+ $P.$findn("ffnlgCarmdlCd").val("12");
} else if(vehicle.vhcty_asort_code == "3"){ //화물
if(vehicle.mxmm_ldg <= 4000){
- $P.$find("ffnlgCarmdlCd").val("13");
+ $P.$findn("ffnlgCarmdlCd").val("13");
} else {
- $P.$find("ffnlgCarmdlCd").val("14");
+ $P.$findn("ffnlgCarmdlCd").val("14");
}
} else if(vehicle.vhcty_asort_code == "4"){ //특수
- $P.$find("ffnlgCarmdlCd").val("15");
+ $P.$findn("ffnlgCarmdlCd").val("15");
} else {
- $P.$find("ffnlgCarmdlCd").val("");
+ $P.$findn("ffnlgCarmdlCd").val("");
}
- $P.$find("zip").val(vehicle.zip_code); //우편번호
- $P.$find("addr").val(vehicle.road_nm_adres); //주소
- $P.$find("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소
+ $P.$findn("zip").val(vehicle.zip_code); //우편번호
+ $P.$findn("addr").val(vehicle.road_nm_adres); //주소
+ $P.$findn("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소
}
});
});
- $P.$find("teamId").on("change",function(){
- $P.$find("teamer1").val("");
- $P.$find("teamer2").val("");
- $P.$find("teamer3").val("");
- $P.$find("teamer4").val("");
+ $P.$findn("teamId").on("change",function(){
+ $P.$findn("teamer1").val("");
+ $P.$findn("teamer2").val("");
+ $P.$findn("teamer3").val("");
+ $P.$findn("teamer4").val("");
if(this.value != ""){
ajax.get({
@@ -693,10 +693,10 @@ $(document).ready(function(){
success : (resp) => {
if(resp.teamInfo != null){
var teamInfo = resp.teamInfo;
- $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);
+ $P.$findn("teamer1").val(teamInfo.TEAMER_1);
+ $P.$findn("teamer2").val(teamInfo.TEAMER_2);
+ $P.$findn("teamer3").val(teamInfo.TEAMER_3);
+ $P.$findn("teamer4").val(teamInfo.TEAMER_4);
}
}
});
@@ -706,9 +706,9 @@ $(document).ready(function(){
/**************************************************************************
* 초기화
**************************************************************************/
- AppSupport.initDatepicker($P.find("frmEdit")); //달력 초기화
+ AppSupport.initDatepicker($P.findn("frmEdit")); //달력 초기화
- $P.$find("frmEdit").find(".form-date").each(function(){
+ $P.$findn("frmEdit").find(".form-date").each(function(){
$(this).on("input",function(){
var value = this.value.replaceAll("-","");
@@ -720,7 +720,7 @@ $(document).ready(function(){
});
});
- $P.$find("frmEdit").find(".form-time").each(function(){
+ $P.$findn("frmEdit").find(".form-time").each(function(){
$(this).on("input",function(){
var value = this.value.replaceAll(":","");
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 2e8281da..11da0afb 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
@@ -331,33 +331,33 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderCrdnList(obj["Total"], $P.ctrl.dataset.length, trs, option);
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("crdnPaging"), $P.find("crdnPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("crdnPaging"), $P.findn("crdnPagingInfo"));
};
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
- Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("crdnTbody"));
+ Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.findn("crdnTbody"));
}
$P.ctrl.dataset.onSelectionChange = (selectedArr) => {
- Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("crdnTbody"), 1, selectedArr);
- Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnSendCrdn"), selectedArr);
+ Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("crdnTbody"), 1, selectedArr);
+ Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnSendCrdn"), selectedArr);
};
/**************************************************************************
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
- var searchForm = $P.$find("frmSearch");
+ var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
- $P.$find("byOutput").val("동적 검색");
- $P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름
- $P.$find("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-365));
- $P.$find("schCrdnYmdTo").datepicker('setDate', TODAY());
+ $P.$findn("byOutput").val("동적 검색");
+ $P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
+ $P.$findn("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-365));
+ $P.$findn("schCrdnYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
}
@@ -369,32 +369,32 @@ $(document).ready(function(){
var clsForTask = taskSeCd.toLowerCase();
//업무별 조회조건
- FimsSupport.renderForTask($P.find("frmSearch"), clsForTask);
+ FimsSupport.renderForTask($P.findn("frmSearch"), clsForTask);
//업무별 버튼
- FimsSupport.renderForTask($P.find("gridbuttonArea"), clsForTask);
+ FimsSupport.renderForTask($P.findn("gridbuttonArea"), clsForTask);
//버튼 이벤트 재매핑
- $P.$find("btnSendCrdn").off("click");
- $P.$find("btnSendCrdn").on("click", () => $P.fnSendCrdn());
+ $P.$findn("btnSendCrdn").off("click");
+ $P.$findn("btnSendCrdn").on("click", () => $P.fnSendCrdn());
//업무별 그리드
- var colsContent = $P.find("crdnCols").content;
+ var colsContent = $P.findn("crdnCols").content;
var cols = $(colsContent).find("."+clsForTask+",.cmn");
var colsStr = "";
cols.each(function(){
colsStr += this.outerHTML;
});
- $P.find("table-responsive").changeColumn(colsStr);
+ $P.findn("table-responsive").changeColumn(colsStr);
if(SYS_LINK_INFO = null || SYS_LINK_INFO.NXRP_LINK_YN != 'Y'){
- $P.$find("btnSendCrdn").attr("hidden","hidden");
- $P.$find("searchForNxrp").attr("hidden","hidden");
+ $P.$findn("btnSendCrdn").attr("hidden","hidden");
+ $P.$findn("searchForNxrp").attr("hidden","hidden");
} else {
- $P.$find("btnSendCrdn").prop("disabled", true);
+ $P.$findn("btnSendCrdn").prop("disabled", true);
}
}
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
@@ -420,8 +420,8 @@ $(document).ready(function(){
return;
}
- var cellDefs = AppSupport.getCellDefs($P.$find("crdnThead").find("th").not(".dummy-th").not(":eq(0)").not(":eq(0)"),
- $($P.find("crdnRow").content).find("td").not(".dummy-td").not(":eq(0)").not(":eq(0)"));
+ var cellDefs = AppSupport.getCellDefs($P.$findn("crdnThead").find("th").not(".dummy-th").not(":eq(0)").not(":eq(0)"),
+ $($P.findn("crdnRow").content).find("td").not(".dummy-td").not(":eq(0)").not(":eq(0)"));
$P.ctrl.query.cellDefs = cellDefs;
if(forApproval){
@@ -439,15 +439,15 @@ $(document).ready(function(){
GRID.checkbox.sync(element, bool);
var atLeastOne = GRID.checkbox.countChecked(element) > 0;
- $P.$find("btnSendCrdn").prop("disabled", !atLeastOne);
+ $P.$findn("btnSendCrdn").prop("disabled", !atLeastOne);
Apply.toDataset.selection($P.ctrl.dataset, element, bool);
}
$P.getGridTemplate = () => {
- var clsForTask = $P.$find("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase();
- var notFound = [$P.find("crdnNotFound").content.querySelector("."+clsForTask+",.cmn").outerHTML];
- var foundContent = $P.find("crdnRow").content;
+ var clsForTask = $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase();
+ var notFound = [$P.findn("crdnNotFound").content.querySelector("."+clsForTask+",.cmn").outerHTML];
+ var foundContent = $P.findn("crdnRow").content;
var foundTr = $(foundContent).find("tr")[0].cloneNode(false);
var foundTds = $(foundContent).find("."+clsForTask+",.cmn");
foundTds.each(function(){
@@ -474,7 +474,7 @@ $(document).ready(function(){
initScroll = false;
}
- $P.find("table-responsive").changeContent(trs, initScroll, noMore);
+ $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
@@ -485,7 +485,7 @@ $(document).ready(function(){
return;
}
- $P.$find("crdnTbody").setCurrentRow(dataKey);
+ $P.$findn("crdnTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -554,8 +554,8 @@ $(document).ready(function(){
// 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => {
- $P.$find("schRgtrCd").val(userId); // 사용자 ID
- $P.$find("schRgtrNm").val(userNm); // 사용자 명
+ $P.$findn("schRgtrCd").val(userId); // 사용자 ID
+ $P.$findn("schRgtrNm").val(userNm); // 사용자 명
}
// 사용자검색 버튼 클릭 이벤트
@@ -591,36 +591,36 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
- $P.$find("btnSearch").on('click', () => $P.searchCrdnList());
- $P.$find("btnExcel").on('click', () => $P.fnExcelDown(false));
- $P.$find("btnExcelForApproval").on('click', () => $P.fnExcelDown(true));
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnSearch").on('click', () => $P.searchCrdnList());
+ $P.$findn("btnExcel").on('click', () => $P.fnExcelDown(false));
+ $P.$findn("btnExcelForApproval").on('click', () => $P.fnExcelDown(true));
- $P.$find("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
+ $P.$findn("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
- $P.$find("term").onEnterPress($P.searchCrdnList);
+ $P.$findn("term").onEnterPress($P.searchCrdnList);
- Componentization.fnMakeResizableTable($P.find("table-responsive"));
- Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList);
+ Componentization.fnMakeResizableTable($P.findn("table-responsive"));
+ Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollCrdnList);
/**************************************************************************
* 초기화
**************************************************************************/
- AppSupport.initDatepicker($P.find("frmSearch")); //달력 초기화
- AppSupport.initDetailSearchButton($P.find("frmSearch"));
+ AppSupport.initDatepicker($P.findn("frmSearch")); //달력 초기화
+ AppSupport.initDetailSearchButton($P.findn("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
if("${taskSeCd}" == ""){
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
} else {
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + "${taskSeCd}" + "']").prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + "${taskSeCd}" + "']").prop("checked",true);
$P.fnResetAndChangeBiz("${taskSeCd}");
}
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
- $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});
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 d5f3f688..8abe6779 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
@@ -230,7 +230,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}";
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
/**************************************************************************
* DatasetControl
@@ -293,10 +293,10 @@
// 업무별 입력 항목
$P.fnRenderTask = (taskSeCd) => {
if (taskSeCd == undefined || taskSeCd == null || taskSeCd == "") {
- taskSeCd = $P.$find("taskSeCd").val();
+ taskSeCd = $P.$findn("taskSeCd").val();
}
- FimsSupport.renderForTask($P.find("frmEdit"), taskSeCd.toLowerCase());
+ FimsSupport.renderForTask($P.findn("frmEdit"), taskSeCd.toLowerCase());
}
// 업무구분에 따른 URL 설정
@@ -313,11 +313,11 @@
, data: params || {}
, success: resp => {
// 항목 초기화
- $P.$find("vin").val("");
- $P.$find("vhclNm").val("");
- $P.$find("vhclColr").val("");
- $P.$find("useFuelCd").val("");
- $P.$find("ffnlgCarmdlCd").val("");
+ $P.$findn("vin").val("");
+ $P.$findn("vhclNm").val("");
+ $P.$findn("vhclColr").val("");
+ $P.$findn("useFuelCd").val("");
+ $P.$findn("ffnlgCarmdlCd").val("");
if (!resp.found) {
dialog.alert({
@@ -333,28 +333,28 @@
let vehicle = resp.vehicle;
// 단속(TB_CRDN) - 공통 항목
- $P.$find("vin").val(vehicle.vin); // 차대번호
- $P.$find("vhclNm").val(vehicle.cnm); // 차량명
- $P.$find("vhclColr").val(vehicle.color_nm); // 차량색상
+ $P.$findn("vin").val(vehicle.vin); // 차대번호
+ $P.$findn("vhclNm").val(vehicle.cnm); // 차량명
+ $P.$findn("vhclColr").val(vehicle.color_nm); // 차량색상
// 단속 부가 정보(TB_CRDN_ADI) - 사용 연료 코드
- $P.$find("useFuelCd").val(vehicle.use_fuel_code);
+ $P.$findn("useFuelCd").val(vehicle.use_fuel_code);
// 단속 부가 정보(TB_CRDN_ADI) - 과태료 차종 코드
if (vehicle.vhcty_asort_code == "1") { // 승용
- $P.$find("ffnlgCarmdlCd").val("11");
+ $P.$findn("ffnlgCarmdlCd").val("11");
} else if (vehicle.vhcty_asort_code == "2") { // 승합
- $P.$find("ffnlgCarmdlCd").val("12");
+ $P.$findn("ffnlgCarmdlCd").val("12");
} else if (vehicle.vhcty_asort_code == "3") { // 화물
if(vehicle.mxmm_ldg <= 4000){
- $P.$find("ffnlgCarmdlCd").val("13");
+ $P.$findn("ffnlgCarmdlCd").val("13");
} else {
- $P.$find("ffnlgCarmdlCd").val("14");
+ $P.$findn("ffnlgCarmdlCd").val("14");
}
} else if (vehicle.vhcty_asort_code == "4") { // 특수
- $P.$find("ffnlgCarmdlCd").val("15");
+ $P.$findn("ffnlgCarmdlCd").val("15");
} else {
- $P.$find("ffnlgCarmdlCd").val("");
+ $P.$findn("ffnlgCarmdlCd").val("");
}
}
});
@@ -362,8 +362,8 @@
// 차적 조회
$P.fnVehicle = (title) => {
- let crdnYmd = $P.$find("crdnYmd").val().replaceAll("-", "");
- let vhrno = $P.$find("vhrno").val();
+ let crdnYmd = $P.$findn("crdnYmd").val().replaceAll("-", "");
+ let vhrno = $P.$findn("vhrno").val();
// 단속일자
if (crdnYmd == "") {
@@ -373,7 +373,7 @@
AppSupport.setDialogZindex();
AppSupport.focusClose();
},
- onClose : function() { $P.$find("crdnYmd").focus(); }
+ onClose : function() { $P.$findn("crdnYmd").focus(); }
});
return;
}
@@ -385,14 +385,14 @@
AppSupport.setDialogZindex();
AppSupport.focusClose();
},
- onClose : function() { $P.$find("vhrno").focus(); }
+ onClose : function() { $P.$findn("vhrno").focus(); }
});
return;
}
let params = {
inqire_se_code : "3"
- , sggCd: $P.$find("sggCd").val()
+ , sggCd: $P.$findn("sggCd").val()
, levy_stdde: crdnYmd
, vhrno: vhrno
}
@@ -406,7 +406,7 @@
// 저장
$P.fnSave = () => {
// validate 확인
- if (!AppSupport.customValidate($P.$find("frmEdit").find("input, select, textarea"))) return;
+ if (!AppSupport.customValidate($P.$findn("frmEdit").find("input, select, textarea"))) return;
// 단속 ID
let crdnId = $P.control.dataset.getValue("CRDN_ID");
@@ -430,7 +430,7 @@
// 이벤트 설정
$P.setEvent = () => {
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
- $P.$find("frmEdit").find(".form-date").each(function() {
+ $P.$findn("frmEdit").find(".form-date").each(function() {
$(this).on("input",function() {
let value = this.value.replaceAll("-", "");
@@ -441,7 +441,7 @@
}
});
});
- $P.$find("frmEdit").find(".form-time").each(function() {
+ $P.$findn("frmEdit").find(".form-time").each(function() {
$(this).on("input",function() {
let value = this.value.replaceAll(":", "");
@@ -455,20 +455,20 @@
});
// 차량번호 엔터 이벤트
- $P.$find("vhrno").onEnterPress(function() {
+ $P.$findn("vhrno").onEnterPress(function() {
$P.fnVehicle("차적 조회");
});
// 버튼 이벤트
- $P.$find("btnVehicle").on("click", () => $P.fnVehicle()); // 차량번호 조회
- $P.$find("btnSave").on("click", () => $P.fnSave()); // 저장
+ $P.$findn("btnVehicle").on("click", () => $P.fnVehicle()); // 차량번호 조회
+ $P.$findn("btnSave").on("click", () => $P.fnSave()); // 저장
}
// 초기 화면 설정
$P.initForm = () => {
// 달력 초기화
- AppSupport.initDatepicker($P.find("frmEdit"));
- $P.$find("crdnYmd").datepicker("setDate", TODAY());
+ AppSupport.initDatepicker($P.findn("frmEdit"));
+ $P.$findn("crdnYmd").datepicker("setDate", TODAY());
}
/**************************************************************************
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-info.jsp
index 51674f8f..aa31f692 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-info.jsp
@@ -72,7 +72,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}";
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
/**************************************************************************
* DatasetControl
@@ -141,7 +141,7 @@
// 저장 버튼 클릭 이벤트
$P.fnSave = (title) => {
// validate 확인
- if (!AppSupport.customValidate($P.$find("frmEdit").find("input, select, textarea"))) return;
+ if (!AppSupport.customValidate($P.$findn("frmEdit").find("input, select, textarea"))) return;
dialog.alert({
content: "현재 " + $P.control.prefixName + " 정보를 저장하시겠습니까?"
@@ -160,7 +160,7 @@
// 이벤트 설정
$P.setEvent = () => {
// 버튼 이벤트
- $P.$find("btnSave").on("click", () => $P.fnSave()); // 저장
+ $P.$findn("btnSave").on("click", () => $P.fnSave()); // 저장
}
// 초기 화면 설정
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 ab08d157..a2641ae7 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
@@ -291,7 +291,7 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderUseTeamList(obj["Total"], $P.ctrl.dataset.length, trs);
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("useTeamPaging"), $P.find("useTeamPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("useTeamPaging"), $P.findn("useTeamPagingInfo"));
};
$P.alt.dataset.onDatasetChange = (obj, option) => {
@@ -304,27 +304,27 @@ $(document).ready(function(){
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
if(!dataItem){
- $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("");
+ $P.$findn("teamNm").val("");
+ $P.$findn("crdnSeCd").val("");
+ $P.$findn("teamer1").val("");
+ $P.$findn("teamer2").val("");
+ $P.$findn("teamer3").val("");
+ $P.$findn("teamer4").val("");
+ $P.$findn("etcCn").val("");
return;
}
- Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("useTeamTbody"));
+ Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.findn("useTeamTbody"));
- $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);
+ $P.$findn("teamNm").val(dataItem.data.TEAM_NM);
+ $P.$findn("crdnSeCd").val(dataItem.data.CRDN_SE_CD);
+ $P.$findn("teamer1").val(dataItem.data.TEAMER_1);
+ $P.$findn("teamer2").val(dataItem.data.TEAMER_2);
+ $P.$findn("teamer3").val(dataItem.data.TEAMER_3);
+ $P.$findn("teamer4").val(dataItem.data.TEAMER_4);
+ $P.$findn("etcCn").val(dataItem.data.ETC_CN);
- $P.$find("deletedTeamNm").val(dataItem.data.TEAM_NM);
+ $P.$findn("deletedTeamNm").val(dataItem.data.TEAM_NM);
}
@@ -333,13 +333,13 @@ $(document).ready(function(){
**************************************************************************/
$P.fnReset = () => {
- var searchForm = $P.$find("frmSearch");
+ var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
$P.ctrl.dataset.setData([]);
- var editForm = $P.$find("frmEdit");
+ var editForm = $P.$findn("frmEdit");
editForm.find("input[type='text']").val("");
editForm.find("input[type='hidden']").val("");
@@ -355,7 +355,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
return data;
@@ -381,14 +381,14 @@ $(document).ready(function(){
var replacer;
if(gridType == "useTeam"){
- notFound = [$P.find("useTeamNotFound").innerHTML];
- found = $P.find("useTeamRow").innerHTML;
+ notFound = [$P.findn("useTeamNotFound").innerHTML];
+ found = $P.findn("useTeamRow").innerHTML;
replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickUseTeamList('" + dataItem.getValue("TEAM_ID") + "');")
.replace(/{ondblclick}/gi, "");
} else {
- notFound = [$P.find("delTeamNotFound").innerHTML];
- found = $P.find("delTeamRow").innerHTML;
+ notFound = [$P.findn("delTeamNotFound").innerHTML];
+ found = $P.findn("delTeamRow").innerHTML;
replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "")
.replace(/{ondblclick}/gi, "");
@@ -402,11 +402,11 @@ $(document).ready(function(){
}
$P.renderUseTeamList = (total, listLength, trs) => {
- $P.$find("useTeamTbody").html(trs);
+ $P.$findn("useTeamTbody").html(trs);
}
$P.renderDelTeamList = (total, listLength, trs) => {
- $P.$find("delTeamTbody").html(trs);
+ $P.$findn("delTeamTbody").html(trs);
}
$P.clickUseTeamList = (dataKey) => {
@@ -414,10 +414,10 @@ $(document).ready(function(){
}
$P.fnSave = () => {
- var formFields = new FimsFormFields($P.selector("frmEdit"));
+ var formFields = new FimsFormFields($P.selectorn("frmEdit"));
var data = formFields.get();
- data.taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
+ data.taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : $P.ctrl.urls.save,
@@ -447,9 +447,9 @@ $(document).ready(function(){
$P.fnShowDeleted = () => {
- var teamNm = $P.$find("deletedTeamNm").val();
+ var teamNm = $P.$findn("deletedTeamNm").val();
- var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
+ var taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : wctx.url("/" + taskSeCd + "/crdn/crdn07/010/removedTeamList.do"),
@@ -469,38 +469,38 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
- $P.$find("btnSearch").on("click", () => $P.searchUseTeamList());
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnSearch").on("click", () => $P.searchUseTeamList());
- $P.$find("btnSave").on('click', () => { $P.fnSave(); });
- $P.$find("btnRemove").on('click', () => { $P.fnRemove(); });
- $P.$find("btnShowDeleted").on('click', () => { $P.fnShowDeleted(); });
+ $P.$findn("btnSave").on('click', () => { $P.fnSave(); });
+ $P.$findn("btnRemove").on('click', () => { $P.fnRemove(); });
+ $P.$findn("btnShowDeleted").on('click', () => { $P.fnShowDeleted(); });
- Componentization.fnMakeResizableTable($P.find("table-responsive_0"));
- Componentization.fnMakeResizableTable($P.find("table-responsive_1"));
+ Componentization.fnMakeResizableTable($P.findn("table-responsive_0"));
+ Componentization.fnMakeResizableTable($P.findn("table-responsive_1"));
/**************************************************************************
* 초기화
**************************************************************************/
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
if(defaultBizValue == "PVS" || defaultBizValue == "BPV"){
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
} else {
var taskForUser = MY_INFO.info.taskForUser;
var hasPVS = taskForUser.indexOf("PVS") != -1;
var hasBPV = taskForUser.indexOf("BPV") != -1;
if(hasPVS && !hasBPV){
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='PVS']").prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='PVS']").prop("checked",true);
} else if(!hasPVS && hasBPV){
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='BPV']").prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='BPV']").prop("checked",true);
} else {
- $P.$find("frmSearch").find("input[name='taskSeCd']").eq(0).prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").eq(0).prop("checked",true);
}
}
$P.fnResetAndChangeBiz(defaultBizValue);
- $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp
index 4280e294..a0a281eb 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08010-main.jsp
@@ -165,18 +165,18 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderExmptnVhclList(obj["Total"], $P.ctrl.dataset.length, trs, option);
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("exmptnVhclPaging"), $P.find("exmptnVhclPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("exmptnVhclPaging"), $P.findn("exmptnVhclPagingInfo"));
};
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
- Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("exmptnVhclTbody"));
+ Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.findn("exmptnVhclTbody"));
}
/**************************************************************************
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
- var searchForm = $P.$find("frmSearch");
+ var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
@@ -184,7 +184,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
data.taskSeCd = "BPV";
data.fetchSize = $P.ctrl.defaultFetchSize;
@@ -213,16 +213,16 @@ $(document).ready(function(){
return;
}
- var cellDefs = AppSupport.getCellDefs($P.$find("exmptnVhclTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
- $($P.find("exmptnVhclRow").content).find("td").not(".dummy-td").not(":eq(0)"));
+ var cellDefs = AppSupport.getCellDefs($P.$findn("exmptnVhclTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
+ $($P.findn("exmptnVhclRow").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.query.cellDefs = cellDefs;
$P.ctrl.download();
}
$P.getGridTemplate = () => {
- var notFound = [$P.find("exmptnVhclNotFound").innerHTML];
- var found = $P.find("exmptnVhclRow").innerHTML;
+ var notFound = [$P.findn("exmptnVhclNotFound").innerHTML];
+ var found = $P.findn("exmptnVhclRow").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickExmptnVhclList('" + dataItem.getValue("EXMPTN_VHCL_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickExmptnVhclList('" + dataItem.getValue("EXMPTN_VHCL_ID") + "');");
@@ -242,7 +242,7 @@ $(document).ready(function(){
initScroll = false;
}
- $P.find("table-responsive").changeContent(trs, initScroll, noMore);
+ $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
@@ -250,19 +250,19 @@ $(document).ready(function(){
$P.clickExmptnVhclList = (dataKey) => {
if(dataKey == ""){
- $P.$find("btnOpenDelRsn").prop("disabled", true);
- $P.$find("btnHistory").prop("disabled", true);
+ $P.$findn("btnOpenDelRsn").prop("disabled", true);
+ $P.$findn("btnHistory").prop("disabled", true);
return;
}
if($P.ctrl.dataset.getData(dataKey)["DEL_YN"] == "N"){
- $P.$find("btnOpenDelRsn").prop("disabled", false);
+ $P.$findn("btnOpenDelRsn").prop("disabled", false);
} else {
- $P.$find("btnOpenDelRsn").prop("disabled", true);
+ $P.$findn("btnOpenDelRsn").prop("disabled", true);
}
- $P.$find("btnHistory").prop("disabled", false);
+ $P.$findn("btnHistory").prop("disabled", false);
- $P.$find("exmptnVhclTbody").setCurrentRow(dataKey);
+ $P.$findn("exmptnVhclTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -430,21 +430,21 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
- $P.$find("btnSearch").on("click", () => $P.searchExmptnVhclList());
- $P.$find("btnExcel").on('click', () => $P.fnExcelDown());
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnSearch").on("click", () => $P.searchExmptnVhclList());
+ $P.$findn("btnExcel").on('click', () => $P.fnExcelDown());
- $P.$find("btnCreate").on('click', () => { $P.newInfo(); });
- $P.$find("btnOpenDelRsn").on('click', () => { $P.fnOpenDelRsnDialog(); });
- $P.$find("btnHistory").on('click', () => { $P.fnOpenHistory(); });
+ $P.$findn("btnCreate").on('click', () => { $P.newInfo(); });
+ $P.$findn("btnOpenDelRsn").on('click', () => { $P.fnOpenDelRsnDialog(); });
+ $P.$findn("btnHistory").on('click', () => { $P.fnOpenHistory(); });
- Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollExmptnVhclList);
- Componentization.fnMakeResizableTable($P.find("table-responsive"));
+ Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollExmptnVhclList);
+ Componentization.fnMakeResizableTable($P.findn("table-responsive"));
/**************************************************************************
* 초기화
**************************************************************************/
- AppSupport.initDatepicker($P.find("frmSearch")); //달력 초기화
+ AppSupport.initDatepicker($P.findn("frmSearch")); //달력 초기화
$P.fnReset();
//보안모드
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 9b28f5b2..783fd3e3 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
@@ -92,7 +92,7 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl, Dataset, FormFields
**************************************************************************/
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({
dataGetter : obj => obj.exmptnVhclInfo,
@@ -113,12 +113,12 @@ $(document).ready(function(){
$P.formFields.set($P.ctrl, item);
var create = isEmpty(item.EXMPTN_VHCL_ID);
- $P.$find("vhrno").prop("readonly", !create);
+ $P.$findn("vhrno").prop("readonly", !create);
}
$P.fnSave = async() => {
- if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return;
+ if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
if(await confirm2("면제 차량 정보를 저장하시겠습니까?")){
var info = $P.formFields.get();
@@ -157,14 +157,14 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnSave").on('click', () => $P.fnSave());
+ $P.$findn("btnSave").on('click', () => $P.fnSave());
/**************************************************************************
* 초기화
**************************************************************************/
- AppSupport.initDatepicker($P.find("frmEdit")); //달력 초기화
+ AppSupport.initDatepicker($P.findn("frmEdit")); //달력 초기화
- $P.$find("frmEdit").find(".form-date").each(function(){
+ $P.$findn("frmEdit").find(".form-date").each(function(){
$(this).on("input",function(){
var value = this.value.replaceAll("-","");
diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08030-info.jsp
index 98f64ab6..2ee9066f 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08030-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn08030-info.jsp
@@ -104,8 +104,8 @@ $(document).ready(function(){
**************************************************************************/
$P.getGridTemplate = () => {
- var notFound = [$P.find("exmptnVhclNotFound").innerHTML];
- var found = $P.find("exmptnVhclRow").innerHTML;
+ var notFound = [$P.findn("exmptnVhclNotFound").innerHTML];
+ var found = $P.findn("exmptnVhclRow").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "")
.replace(/{ondblclick}/gi, "");
@@ -118,7 +118,7 @@ $(document).ready(function(){
}
$P.renderExmptnVhclList = (total, listLength, trs) => {
- $P.$find("exmptnVhclTbody").html(trs);
+ $P.$findn("exmptnVhclTbody").html(trs);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
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 63ee1ae1..767cc3e7 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
@@ -50,7 +50,7 @@
-
-
+
담당자명 지정
{
- Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("crdnTbody"));
+ Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.findn("crdnTbody"));
}
@@ -279,16 +279,16 @@ $(document).ready(function(){
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
- var searchForm = $P.$find("frmSearch");
+ var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
- $P.$find("byOutput").val("동적 검색");
- $P.$find("schCvlcptRcptYmdFrom").datepicker('setDate', DateSupport.getAddDay(-365));
- $P.$find("schCvlcptRcptYmdTo").datepicker('setDate', TODAY());
+ $P.$findn("byOutput").val("동적 검색");
+ $P.$findn("schCvlcptRcptYmdFrom").datepicker('setDate', DateSupport.getAddDay(-365));
+ $P.$findn("schCvlcptRcptYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
}
@@ -302,7 +302,7 @@ $(document).ready(function(){
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
@@ -361,16 +361,16 @@ $(document).ready(function(){
return;
}
- var cellDefs = AppSupport.getCellDefs($P.$find("crdnThead").find("th").not(".dummy-th").not(":eq(0)"),
- $($P.find("crdnRow").content).find("td").not(".dummy-td").not(":eq(0)"));
+ var cellDefs = AppSupport.getCellDefs($P.$findn("crdnThead").find("th").not(".dummy-th").not(":eq(0)"),
+ $($P.findn("crdnRow").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.query.cellDefs = cellDefs;
$P.ctrl.download();
}
$P.getGridTemplate = () => {
- var notFound = [$P.find("crdnNotFound").innerHTML];
- var found = $P.find("crdnRow").innerHTML;
+ var notFound = [$P.findn("crdnNotFound").innerHTML];
+ var found = $P.findn("crdnRow").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');");
@@ -391,7 +391,7 @@ $(document).ready(function(){
initScroll = false;
}
- $P.find("table-responsive").changeContent(trs, initScroll, noMore);
+ $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
@@ -403,7 +403,7 @@ $(document).ready(function(){
return;
}
- $P.$find("crdnTbody").setCurrentRow(dataKey);
+ $P.$findn("crdnTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -476,7 +476,7 @@ $(document).ready(function(){
return;
}
- var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
+ var taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
@@ -556,34 +556,34 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
- $P.$find("btnSearch").on('click', () => $P.searchCrdnList());
- $P.$find("btnExcel").on('click', () => $P.fnExcelDown());
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnSearch").on('click', () => $P.searchCrdnList());
+ $P.$findn("btnExcel").on('click', () => $P.fnExcelDown());
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
- $P.$find("term").onEnterPress($P.searchCrdnList);
+ $P.$findn("term").onEnterPress($P.searchCrdnList);
- $P.$find("btnDelete").on("click", () => $P.fnRemove());
- $P.$find("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl());
+ $P.$findn("btnDelete").on("click", () => $P.fnRemove());
+ $P.$findn("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl());
- Componentization.fnMakeResizableTable($P.find("table-responsive"));
- Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList);
+ Componentization.fnMakeResizableTable($P.findn("table-responsive"));
+ Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollCrdnList);
/**************************************************************************
* 초기화
**************************************************************************/
//달력 초기화
- AppSupport.initDatepicker($P.find("frmSearch"));
- AppSupport.initDetailSearchButton($P.find("frmSearch"));
+ AppSupport.initDatepicker($P.findn("frmSearch"));
+ AppSupport.initDetailSearchButton($P.findn("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
- $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});
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 a6712336..4c2d6e4b 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
@@ -168,7 +168,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"];
- $P.toast = new bootstrap.Toast($P.find("divToast"), {
+ $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true,
autohide: true,
delay: 2000
@@ -203,11 +203,11 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderDmndList(obj["Total"], $P.ctrl.dataset.length, trs, option);
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("dmndPaging"), $P.find("dmndPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("dmndPaging"), $P.findn("dmndPagingInfo"));
};
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
- Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("dmndTbody"));
+ Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.findn("dmndTbody"));
}
/**************************************************************************
@@ -215,8 +215,8 @@ $(document).ready(function(){
**************************************************************************/
$P.fnReset = () => {
- $P.$find("schDmndYmdFrom").datepicker('setDate', DateSupport.getAddDay(-5475));
- $P.$find("schDmndYmdTo").datepicker('setDate', TODAY());
+ $P.$findn("schDmndYmdFrom").datepicker('setDate', DateSupport.getAddDay(-5475));
+ $P.$findn("schDmndYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]);
}
@@ -228,7 +228,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
@@ -284,8 +284,8 @@ $(document).ready(function(){
}
$P.getGridTemplate = () => {
- var notFound = [$P.find("dmndNotFound").innerHTML];
- var found = $P.find("dmndRow").innerHTML;
+ var notFound = [$P.findn("dmndNotFound").innerHTML];
+ var found = $P.findn("dmndRow").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickDmndList('" + dataItem.getValue("INDIV_ID") + "');");
@@ -304,7 +304,7 @@ $(document).ready(function(){
initScroll = false;
}
- $P.find("table-responsive").changeContent(trs, initScroll, noMore);
+ $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
}
$P.clickDmndList = (dataKey) => {
@@ -312,7 +312,7 @@ $(document).ready(function(){
return;
}
- $P.$find("dmndTbody").setCurrentRow(dataKey);
+ $P.$findn("dmndTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -351,7 +351,7 @@ $(document).ready(function(){
$P.removeCallback = (selected, resp) => {
if (resp.saved){
- $P.$find("toastText").html("삭제 되었습니다.");
+ $P.$findn("toastText").html("삭제 되었습니다.");
$P.toast.show();
AppSupport.sleep(1000).then(() => $P.refreshDmndList());
}
@@ -402,7 +402,7 @@ $(document).ready(function(){
dialog.open({
id : dialogId,
title : "새올 접수 요청",
- content : $P.find("seallDmndDialogTemplate").innerHTML,
+ content : $P.findn("seallDmndDialogTemplate").innerHTML,
size : "lg",
init : () => {
$("#"+dialogId).attr("name", dialogName);
@@ -424,7 +424,7 @@ $(document).ready(function(){
let selectorStr = "#"+$P.refDlgId("seallDmndDialog")+" "+"form[name='frmEdit']";
let ff = new FimsFormFields(selectorStr);
var info = ff.get();
- info.taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
+ info.taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : $P.ctrl.urls.create,
@@ -433,7 +433,7 @@ $(document).ready(function(){
if(resp.saved){
dialog.close($P.refDlgId("seallDmndDialog"));
- $P.$find("toastText").html("등록 되었습니다.");
+ $P.$findn("toastText").html("등록 되었습니다.");
$P.toast.show();
if(!$P.ctrl.dataset.empty){
@@ -447,27 +447,27 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
- $P.$find("btnSearch").on('click', () => $P.searchDmndList());
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnSearch").on('click', () => $P.searchDmndList());
- $P.$find("btnOpenDmndPop").on("click", () => $P.fnOpenDmndPop());
- $P.$find("btnDelete").on("click", () => $P.fnRemove(null));
- $P.$find("btnDeleteAllCompleteData").on("click", () => $P.fnRemoveAllCompleteData());
+ $P.$findn("btnOpenDmndPop").on("click", () => $P.fnOpenDmndPop());
+ $P.$findn("btnDelete").on("click", () => $P.fnRemove(null));
+ $P.$findn("btnDeleteAllCompleteData").on("click", () => $P.fnRemoveAllCompleteData());
- Componentization.fnMakeResizableTable($P.find("table-responsive"));
- Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollDmndList);
+ Componentization.fnMakeResizableTable($P.findn("table-responsive"));
+ Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollDmndList);
/**************************************************************************
* 초기화
**************************************************************************/
//달력 초기화
- AppSupport.initDatepicker($P.find("frmSearch"));
+ AppSupport.initDatepicker($P.findn("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
- $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});
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 3d455e5a..d2a3a76d 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
@@ -307,7 +307,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"];
- $P.toast = new bootstrap.Toast($P.find("divToast"), {
+ $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true,
autohide: true,
delay: 2000
@@ -331,7 +331,7 @@ $(document).ready(function(){
}
$P.fnReset = () => {
- $P.$find("btnAnsBasicTab").trigger("click");
+ $P.$findn("btnAnsBasicTab").trigger("click");
$P.ctrl.levy.setData([]);
$P.ctrl.warning.setData([]);
$P.ctrl.nonlevy.setData([]);
@@ -340,28 +340,28 @@ $(document).ready(function(){
$P.renderAnsBodyList(0,'warning');
$P.renderAnsBodyList(0,'nonlevy');
- $P.$find("frmEditAnsBasic").find("input, textarea").val("");
- $P.$find("frmEditAnsBody").find("input, textarea").val("");
+ $P.$findn("frmEditAnsBasic").find("input, textarea").val("");
+ $P.$findn("frmEditAnsBody").find("input, textarea").val("");
$P.searchWordsStng();
}
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
return data;
}
$P.searchWordsStng = () => {
- var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
+ var taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : $P.ctrl.urls.load,
data : {"taskSeCd" : taskSeCd},
success : (resp) => {
- $P.$find("headerCn").val(resp.headerCn);
- $P.$find("footerCn").val(resp.footerCn);
+ $P.$findn("headerCn").val(resp.headerCn);
+ $P.$findn("footerCn").val(resp.footerCn);
$P.ctrl.levy.setData(resp.levyCaseList);
$P.ctrl.warning.setData(resp.warningCaseList);
@@ -410,8 +410,8 @@ $(document).ready(function(){
var ansBodyDS = $P.ctrl[renderDataType].dataset;
var empty = ansBodyDS.empty;
- var notFound = [$P.find(notFoundName).innerHTML];
- var found = $P.find(foundName).innerHTML;
+ var notFound = [$P.findn(notFoundName).innerHTML];
+ var found = $P.findn(foundName).innerHTML;
var replacer = () => {};
if(renderDataType == "levy"){
@@ -429,7 +429,7 @@ $(document).ready(function(){
}
var trs = empty ? notFound : ansBodyDS.inStrings(found, replacer);
- $P.$find(tbodyName).html(trs.join());
+ $P.$findn(tbodyName).html(trs.join());
}
$P.radioClickAnsBodyList = (dataKey, gridType) => {
@@ -446,7 +446,7 @@ $(document).ready(function(){
} else {
return;
}
- $P.$find(tbodyName).setCurrentRow(dataKey);
+ $P.$findn(tbodyName).setCurrentRow(dataKey);
if(gridType == "levy" && $P.currentDisplay == "levyAnsBody"){
$P.changeAnsBodyText();
@@ -469,14 +469,14 @@ $(document).ready(function(){
return;
}
- $P.$find("wrapper").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").prop("checked",true);
+ $P.$findn("wrapper").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").prop("checked",true);
if(gridType == "levy" && $P.currentDisplay == "levyAnsBody"){
- $P.$find("wrapper").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
+ $P.$findn("wrapper").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
} else if(gridType == "warning" && $P.currentDisplay == "warningAnsBody"){
- $P.$find("wrapper").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
+ $P.$findn("wrapper").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
} else if(gridType == "nonlevy" && $P.currentDisplay == "nonlevyAnsBody"){
- $P.$find("wrapper").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
+ $P.$findn("wrapper").find(":radio[name='"+radioName+"'][value='"+dataKey+"']").focus();
}
$P.radioClickAnsBodyList(dataKey, gridType);
@@ -496,10 +496,10 @@ $(document).ready(function(){
}
if(curData == null){
- $P.$find("ansRsnCd").val("");
- $P.$find("dstrbncYn").val("");
- $P.$find("ansWordsId").val("");
- $P.$find("prcsRsltCn").val("");
+ $P.$findn("ansRsnCd").val("");
+ $P.$findn("dstrbncYn").val("");
+ $P.$findn("ansWordsId").val("");
+ $P.$findn("prcsRsltCn").val("");
return;
}
@@ -517,16 +517,16 @@ $(document).ready(function(){
rnsRsnCd = curData["LEVY_EXCL_RSN_CD"]
if(curData["ANS_WORDS_ID"] == null){
- $P.$find("btnRemove").prop("disabled",true);
+ $P.$findn("btnRemove").prop("disabled",true);
} else {
- $P.$find("btnRemove").prop("disabled",false);
+ $P.$findn("btnRemove").prop("disabled",false);
}
}
- $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.$findn("ansRsnCd").val(rnsRsnCd);
+ $P.$findn("dstrbncYn").val(dstrbncYn);
+ $P.$findn("ansWordsId").val(curData["ANS_WORDS_ID"]);
+ $P.$findn("prcsRsltCn").val(curData["PRCS_RSLT_CN"]);
}
$P.refreshAnsWordsInfo = () => {
@@ -534,15 +534,15 @@ $(document).ready(function(){
var cursor2 = $P.ctrl.warning.getCurrent()["LEVY_EXCL_RSN_CD"];
var cursor3 = $P.ctrl.nonlevy.getCurrent()["LEVY_EXCL_RSN_CD"];
- var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
+ var taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : $P.ctrl.urls.load,
data : {"taskSeCd" : taskSeCd},
success : (resp) => {
- $P.$find("headerCn").val(resp.headerCn);
- $P.$find("footerCn").val(resp.footerCn);
+ $P.$findn("headerCn").val(resp.headerCn);
+ $P.$findn("footerCn").val(resp.footerCn);
$P.ctrl.levy.setData(resp.levyCaseList);
$P.ctrl.warning.setData(resp.warningCaseList);
@@ -586,14 +586,14 @@ $(document).ready(function(){
}
- if(!AppSupport.customValidate($P.$find(formName).find("input, select, textarea"))) return;
- var info = (new FimsFormFields($P.selector(formName))).get();
+ if(!AppSupport.customValidate($P.$findn(formName).find("input, select, textarea"))) return;
+ var info = (new FimsFormFields($P.selectorn(formName))).get();
if(isBasicWords){
info.saveData = "basic";
} else {
info.saveData = "body";
}
- info.taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
+ info.taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
dialog.alert({
content : confirmMessage,
@@ -619,8 +619,8 @@ $(document).ready(function(){
//답변대상 제외
$P.fnRemove = () => {
- if(!AppSupport.customValidate($P.$find("frmEditAnsBody").find("input, select, textarea"))) return;
- var info = (new FimsFormFields($P.selector("frmEditAnsBody"))).get();
+ if(!AppSupport.customValidate($P.$findn("frmEditAnsBody").find("input, select, textarea"))) return;
+ var info = (new FimsFormFields($P.selectorn("frmEditAnsBody"))).get();
dialog.alert({
content : "해당 미부과사유를 답변대상에서 제외하시겠습니까?",
@@ -646,9 +646,9 @@ $(document).ready(function(){
$P.fnOpenPreviewPop = () => {
var result = fnMacroWordsReplace(
- $P.$find("headerCn").val(),
- $P.$find("footerCn").val(),
- $P.$find("prcsRsltCn").val(),
+ $P.$findn("headerCn").val(),
+ $P.$findn("footerCn").val(),
+ $P.$findn("prcsRsltCn").val(),
"${currentUserTelno}",
"${currentUserName}"
);
@@ -659,7 +659,7 @@ $(document).ready(function(){
dialog.open({
id : dialogId,
title : "답변 내용 미리보기",
- content : $P.find("previewDialogTemplate").innerHTML,
+ content : $P.findn("previewDialogTemplate").innerHTML,
size : "lg",
init : () => {
$("#"+dialogId).attr("name", dialogName);
@@ -677,23 +677,23 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
//탭 버튼
- $P.$find("btnAnsBasicTab").on('click', (event) => {
+ $P.$findn("btnAnsBasicTab").on('click', (event) => {
- $P.$find("wrapper").find(".area-answerbasic").show();
- $P.$find("wrapper").find(".area-answerbody").hide();
+ $P.$findn("wrapper").find(".area-answerbasic").show();
+ $P.$findn("wrapper").find(".area-answerbody").hide();
$P.currentDisplay = "ansBasic";
- $P.$find("macroTarget").attr("for","");
+ $P.$findn("macroTarget").attr("for","");
});
- $P.$find("btnLevyAnsBodyTab").on('click', (event) => {
+ $P.$findn("btnLevyAnsBodyTab").on('click', (event) => {
- $P.$find("wrapper").find(".area-answerbasic").hide();
- $P.$find("wrapper").find(".area-answerbody").each(function(){
+ $P.$findn("wrapper").find(".area-answerbasic").hide();
+ $P.$findn("wrapper").find(".area-answerbody").each(function(){
if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-levy")){
$(this).show();
} else {
@@ -703,16 +703,16 @@ $(document).ready(function(){
$P.currentDisplay = "levyAnsBody";
- $P.$find("wrapper").find(":radio[name='levyRadio']:checked").focus();
+ $P.$findn("wrapper").find(":radio[name='levyRadio']:checked").focus();
$P.changeAnsBodyText();
- $P.$find("macroTarget").attr("for","");
+ $P.$findn("macroTarget").attr("for","");
});
- $P.$find("btnWarningAnsBodyTab").on('click', (event) => {
+ $P.$findn("btnWarningAnsBodyTab").on('click', (event) => {
- $P.$find("wrapper").find(".area-answerbasic").hide();
- $P.$find("wrapper").find(".area-answerbody").each(function(){
+ $P.$findn("wrapper").find(".area-answerbasic").hide();
+ $P.$findn("wrapper").find(".area-answerbody").each(function(){
if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-warning")){
$(this).show();
} else {
@@ -722,16 +722,16 @@ $(document).ready(function(){
$P.currentDisplay = "warningAnsBody";
- $P.$find("wrapper").find(":radio[name='warningRadio']:checked").focus();
+ $P.$findn("wrapper").find(":radio[name='warningRadio']:checked").focus();
$P.changeAnsBodyText();
- $P.$find("macroTarget").attr("for","");
+ $P.$findn("macroTarget").attr("for","");
});
- $P.$find("btnNonlevyAnsBodyTab").on('click', (event) => {
+ $P.$findn("btnNonlevyAnsBodyTab").on('click', (event) => {
- $P.$find("wrapper").find(".area-answerbasic").hide();
- $P.$find("wrapper").find(".area-answerbody").each(function(){
+ $P.$findn("wrapper").find(".area-answerbasic").hide();
+ $P.$findn("wrapper").find(".area-answerbody").each(function(){
if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-nonlevy")){
$(this).show();
} else {
@@ -741,35 +741,35 @@ $(document).ready(function(){
$P.currentDisplay = "nonlevyAnsBody";
- $P.$find("wrapper").find(":radio[name='nonlevyRadio']:checked").focus();
+ $P.$findn("wrapper").find(":radio[name='nonlevyRadio']:checked").focus();
$P.changeAnsBodyText();
- $P.$find("macroTarget").attr("for","");
+ $P.$findn("macroTarget").attr("for","");
});
//업무처리 버튼
- $P.$find("btnSaveAnsBasic").on("click", () => $P.fnSave(true));
- $P.$find("btnSaveAnsBody").on("click", () => $P.fnSave(false));
- $P.$find("btnRemove").on("click", () => $P.fnRemove());
- $P.$find("btnOpenPreviewPop").on("click", () => $P.fnOpenPreviewPop());
+ $P.$findn("btnSaveAnsBasic").on("click", () => $P.fnSave(true));
+ $P.$findn("btnSaveAnsBody").on("click", () => $P.fnSave(false));
+ $P.$findn("btnRemove").on("click", () => $P.fnRemove());
+ $P.$findn("btnOpenPreviewPop").on("click", () => $P.fnOpenPreviewPop());
$($P.selfElement()).find("[name='headerCn'],[name='footerCn'],[name='prcsRsltCn']").on("focus", (event) => {
- $P.$find("macroTarget").attr("for", event.target.id);
+ $P.$findn("macroTarget").attr("for", event.target.id);
});
- $P.$find("btnInsertMacro1").on("click", () => {
- var macroTarget = $P.$find("macroTarget").attr("for");
+ $P.$findn("btnInsertMacro1").on("click", () => {
+ var macroTarget = $P.$findn("macroTarget").attr("for");
if(macroTarget == ""){ return; }
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_SEQ);
});
- $P.$find("btnInsertMacro2").on("click", () => {
- var macroTarget = $P.$find("macroTarget").attr("for");
+ $P.$findn("btnInsertMacro2").on("click", () => {
+ var macroTarget = $P.$findn("macroTarget").attr("for");
if(macroTarget == ""){ return; }
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_TELNO);
});
- $P.$find("btnInsertMacro3").on("click", () => {
- var macroTarget = $P.$find("macroTarget").attr("for");
+ $P.$findn("btnInsertMacro3").on("click", () => {
+ var macroTarget = $P.$findn("macroTarget").attr("for");
if(macroTarget == ""){ return; }
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_PIC_NM);
});
@@ -777,10 +777,10 @@ $(document).ready(function(){
* 초기화
**************************************************************************/
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
- $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});
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 f874da1a..e834724c 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
@@ -127,7 +127,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"];
- $P.toast = new bootstrap.Toast($P.find("divToast"), {
+ $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true,
autohide: true,
delay: 2000
@@ -158,19 +158,19 @@ $(document).ready(function(){
$P.ctrl.dataset.setData([]);
$P.renderWarningWordsList(0);
- $P.$find("frmEditWarningWords").find("input, textarea").val("");
+ $P.$findn("frmEditWarningWords").find("input, textarea").val("");
$P.searchWordsStng();
}
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
return data;
}
$P.searchWordsStng = () => {
- var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
+ var taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : $P.ctrl.urls.load,
@@ -193,30 +193,30 @@ $(document).ready(function(){
var warningWordsDS = $P.ctrl.dataset;
var empty = warningWordsDS.empty;
- var notFound = [$P.find("warningWordsNotFound").innerHTML];
- var found = $P.find("warningWordsRow").innerHTML;
+ var notFound = [$P.findn("warningWordsNotFound").innerHTML];
+ var found = $P.findn("warningWordsRow").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickWarningWordsList('" + dataItem.getValue("LEVY_EXCL_RSN_CD") + "');")
.replace(/{onchange}/gi, "pageObject['${pageName}'].radioClickWarningWordsList('" + dataItem.getValue("LEVY_EXCL_RSN_CD") + "');");
var trs = empty ? notFound : warningWordsDS.inStrings(found, replacer);
- $P.$find("warningWordsTbody").html(trs.join());
+ $P.$findn("warningWordsTbody").html(trs.join());
}
$P.radioClickWarningWordsList = (dataKey, gridType) => {
$P.ctrl.dataset.setCurrent(dataKey);
- $P.$find("warningWordsTbody").setCurrentRow(dataKey);
+ $P.$findn("warningWordsTbody").setCurrentRow(dataKey);
$P.changeTextarea();
}
$P.clickWarningWordsList = (dataKey, gridType) => {
- $P.$find("wrapper").find(":radio[name='gridRadio'][value='"+dataKey+"']").prop("checked",true);
- $P.$find("wrapper").find(":radio[name='gridRadio'][value='"+dataKey+"']").focus();
+ $P.$findn("wrapper").find(":radio[name='gridRadio'][value='"+dataKey+"']").prop("checked",true);
+ $P.$findn("wrapper").find(":radio[name='gridRadio'][value='"+dataKey+"']").focus();
$P.radioClickWarningWordsList(dataKey, gridType);
@@ -227,24 +227,24 @@ $(document).ready(function(){
var curData = $P.ctrl.dataset.getCurrent();
if(curData == null){
- $P.$find("ansRsnCd").val("");
- $P.$find("ansWordsId").val("");
- $P.$find("mailTtlNm").val("");
- $P.$find("mailCn").val("");
+ $P.$findn("ansRsnCd").val("");
+ $P.$findn("ansWordsId").val("");
+ $P.$findn("mailTtlNm").val("");
+ $P.$findn("mailCn").val("");
return;
}
- $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.$findn("ansRsnCd").val(curData["LEVY_EXCL_RSN_CD"]);
+ $P.$findn("ansWordsId").val(curData["ANS_WORDS_ID"]);
+ $P.$findn("mailTtlNm").val(curData["MAIL_TTL_NM"]);
+ $P.$findn("mailCn").val(curData["MAIL_CN"]);
}
$P.refreshWarningWordsInfo = () => {
var cursor = $P.ctrl.dataset.getCurrent()["LEVY_EXCL_RSN_CD"];
- var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
+ var taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
ajax.get({
url : $P.ctrl.urls.load,
@@ -266,11 +266,11 @@ $(document).ready(function(){
//적용
$P.fnSave = () => {
- if(!AppSupport.customValidate($P.$find("frmEditWarningWords").find("input, select, textarea"))) return;
+ if(!AppSupport.customValidate($P.$findn("frmEditWarningWords").find("input, select, textarea"))) return;
- var info = (new FimsFormFields($P.selector("frmEditWarningWords"))).get();
+ var info = (new FimsFormFields($P.selectorn("frmEditWarningWords"))).get();
- info.taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();
+ info.taskSeCd = $P.$findn("frmSearch").find("input[name='taskSeCd']:checked").val();
dialog.alert({
content : "저장하시겠습니까?",
@@ -296,19 +296,19 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
//업무처리 버튼
- $P.$find("btnSave").on("click", () => $P.fnSave());
+ $P.$findn("btnSave").on("click", () => $P.fnSave());
/**************************************************************************
* 초기화
**************************************************************************/
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);
- $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp
index fb6700af..4c73e119 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp
@@ -309,7 +309,7 @@
let $P = pageObject["${pageName}"];
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmSearch"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmSearch"));
/**************************************************************************
* DatasetControl
@@ -344,7 +344,7 @@
$P.renderList(obj["Total"], option);
// datasetPaging
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("dataPaging"), $P.find("dataPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("dataPaging"), $P.findn("dataPagingInfo"));
}
// 현재 선택 자료 변경 이벤트
@@ -353,13 +353,13 @@
let key = item.data.LEVY_EXCL_ID;
- $P.$find("tbodyList").setCurrentRow(key);
+ $P.$findn("tbodyList").setCurrentRow(key);
}
// 선택(체크) 변경 이벤트
$P.ctrl.onSelectionChange = (selected) => {
- Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("tbodyList"), 1, selected);
- Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnRemove"), selected); // 삭제 버튼
+ Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("tbodyList"), 1, selected);
+ Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnRemove"), selected); // 삭제 버튼
}
// 상세정보 dialog
@@ -425,10 +425,10 @@
$P.renderList = (totalSize, option) => {
let dataList = $P.ctrl.dataset;
let empty = dataList.empty;
- let clsForTask = $P.$find("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase();
+ let clsForTask = $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase();
// 업무별 DataTables(그리드) tr, td
- let foundContent = $P.find("tmpltRows").content;
+ let foundContent = $P.findn("tmpltRows").content;
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
let foundTds = $(foundContent).find("." + clsForTask + ",.cmn");
@@ -440,7 +440,7 @@
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("LEVY_EXCL_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("LEVY_EXCL_ID") + "', '" + dataItem.getValue("CRDN_ID") + "');");
- let trs = empty ? [$P.find("tmpltNotFound").content.querySelector("." + clsForTask + ",.cmn").outerHTML] :
+ let trs = empty ? [$P.findn("tmpltNotFound").content.querySelector("." + clsForTask + ",.cmn").outerHTML] :
dataList.inStrings(foundTr.outerHTML, replacer);
let noMore = (dataList.length >= totalSize);
@@ -450,10 +450,10 @@
initScroll = false;
}
- $P.find("tableRspns").changeContent(trs.join(), initScroll, noMore);
+ $P.findn("tableRspns").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제
- $P.$find("gridAllCheckbox").prop("checked", false);
+ $P.$findn("gridAllCheckbox").prop("checked", false);
// 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
@@ -464,7 +464,7 @@
GRID.checkbox.sync(element, bool);
let atLeastOne = GRID.checkbox.countChecked(element) > 0;
- $P.$find("btnRemove").prop("disabled", !atLeastOne);
+ $P.$findn("btnRemove").prop("disabled", !atLeastOne);
Apply.toDataset.selection($P.ctrl.dataset, element, bool);
}
@@ -473,7 +473,7 @@
$P.dataTableClick = (dataKey) => {
if (dataKey == "") return;
- $P.$find("tbodyList").setCurrentRow(dataKey);
+ $P.$findn("tbodyList").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -523,8 +523,8 @@
**************************************************************************/
// 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => {
- $P.$find("schRgtrCd").val(userId); // 사용자 ID
- $P.$find("schRgtrNm").val(userNm); // 사용자 명
+ $P.$findn("schRgtrCd").val(userId); // 사용자 ID
+ $P.$findn("schRgtrNm").val(userNm); // 사용자 명
}
// 삭제사유 callback
@@ -533,8 +533,8 @@
// 서버에 전송할 data(파라미터) 생성
let params = {
- sggCd: $P.$find("sggCd").val() // 시군구 코드
- , taskSeCd: $P.$find("frmSearch").find("[name='taskSeCd']:checked").val() // 업무 구분 코드
+ sggCd: $P.$findn("sggCd").val() // 시군구 코드
+ , taskSeCd: $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val() // 업무 구분 코드
, levyExclIds: selected.join(",") // 부과 제외 IDs
, btnTitle: obj.btnTitle // 버튼 title
, delRsn: obj.reason // 삭제 사유
@@ -549,10 +549,10 @@
// 초기화 버튼 이벤트
$P.fnReset = (taskSeCd) => {
// 화면 초기화
- $P.find("frmSearch").reset();
+ $P.findn("frmSearch").reset();
// input, select 초기화
- let searchForm = $P.$find("frmSearch");
+ let searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
@@ -560,22 +560,22 @@
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
// 최고 관리자인지 권한을 확인하여 업무구분을 선택할 수 있도록 하자 -> 수정 필요
- $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
- AppSupport.initDatepicker($P.find("frmSearch")); // 달력 초기화
- AppSupport.initDetailSearchButton($P.find("frmSearch")); // 상세검색 버튼 화살표
+ AppSupport.initDatepicker($P.findn("frmSearch")); // 달력 초기화
+ AppSupport.initDetailSearchButton($P.findn("frmSearch")); // 상세검색 버튼 화살표
// 기본 데이터 설정
- $P.$find("sggCd").val("${sggCd}"); // 시군구 코드
+ $P.$findn("sggCd").val("${sggCd}"); // 시군구 코드
if (taskSeCd) { // 업무 구분 코드
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
}
- $P.$find("schLevyExclYmdFrom").datepicker("setDate", DateSupport.getAddDay(-7)); // 부과 제외 일자 시작
- $P.$find("schLevyExclYmdTo").datepicker("setDate", TODAY()); // 부과 제외 일자 종료
- $P.$find("byOutput").val("동적 검색"); // 동적 검색
- $P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름
+ $P.$findn("schLevyExclYmdFrom").datepicker("setDate", DateSupport.getAddDay(-7)); // 부과 제외 일자 시작
+ $P.$findn("schLevyExclYmdTo").datepicker("setDate", TODAY()); // 부과 제외 일자 종료
+ $P.$findn("byOutput").val("동적 검색"); // 동적 검색
+ $P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
// dataset 초기화
$P.ctrl.dataset.clear();
@@ -595,19 +595,19 @@
$P.ctrl.urls.load = wctx.url(taskSeCd + "${infoPrefixUrl}" + "/010/list.do"); // 검색
// 업무별 검색 조건
- FimsSupport.renderForTask($P.find("frmSearch"), taskSeCd.toLowerCase());
+ FimsSupport.renderForTask($P.findn("frmSearch"), taskSeCd.toLowerCase());
// 업무별 버튼
- FimsSupport.renderForTask($P.find("gridbuttonArea"), taskSeCd.toLowerCase());
+ FimsSupport.renderForTask($P.findn("gridbuttonArea"), taskSeCd.toLowerCase());
// 업무별 그리드 th
- let colContent = $P.find("tmpltCols").content;
+ let colContent = $P.findn("tmpltCols").content;
let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn");
let colsOuterHTML = "";
cols.each(function() {
colsOuterHTML += this.outerHTML;
});
- $P.find("tableRspns").changeColumn(colsOuterHTML);
+ $P.findn("tableRspns").changeColumn(colsOuterHTML);
}
// 사용자검색 버튼 클릭 이벤트
@@ -662,8 +662,8 @@
// DataTables(그리드)
$P.ctrl.query.cellDefs =
- AppSupport.getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)")
- , $($P.find("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")
+ AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th").not(":eq(0)")
+ , $($P.findn("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")
, FimsSupport.getCellDefsForPrivacyCell);
$P.ctrl.download();
@@ -734,27 +734,27 @@
// 이벤트 설정
$P.setEvent = () => {
// 기본 버튼 이벤트
- $P.$find("btnReset").on("click", () => { $P.fnResetAndChangeBiz() }); // 초기화
- $P.$find("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색
- $P.$find("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀
- $P.$find("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
+ $P.$findn("btnReset").on("click", () => { $P.fnResetAndChangeBiz() }); // 초기화
+ $P.$findn("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색
+ $P.$findn("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀
+ $P.$findn("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
- $P.$find("term").onEnterPress($P.fnSearchList);
+ $P.$findn("term").onEnterPress($P.fnSearchList);
// 업무 버튼 이벤트
- $P.$find("btnUpdate").on("click", function() {
- $P.fnUpdate($P.$find("btnUpdate").attr("title")); // 수정
+ $P.$findn("btnUpdate").on("click", function() {
+ $P.fnUpdate($P.$findn("btnUpdate").attr("title")); // 수정
});
- $P.$find("btnRemove").on("click", function() {
- $P.fnRemove($P.$find("btnRemove").attr("title")); // 삭제
+ $P.$findn("btnRemove").on("click", function() {
+ $P.fnRemove($P.$findn("btnRemove").attr("title")); // 삭제
});
// DataTables width 변경 조정
- Componentization.fnMakeResizableTable($P.find("tableRspns"));
+ Componentization.fnMakeResizableTable($P.findn("tableRspns"));
// DataTables 스크롤 이벤트 생성
- Componentization.fnMakeScrollableTable($P.find("tableRspns"), $P.scrollDataList);
+ Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
}
/**************************************************************************
diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01020-info.jsp
index 19f5151d..beaf653b 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01020-info.jsp
@@ -97,7 +97,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}";
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
/**************************************************************************
* DatasetControl
@@ -127,7 +127,7 @@
// 호출용도가 등록 이라면..
if ($P.callPurpose == "create") {
- $P.$find("levyExclYmd").datepicker("setDate", TODAY());
+ $P.$findn("levyExclYmd").datepicker("setDate", TODAY());
}
}
@@ -182,14 +182,14 @@
$P.fnSetFim021 = (seCode, rsnCode) => {
let cmnCode = FIM021[seCode];
- $P.$find("levyExclSeCd").val(cmnCode.code);
- $P.$find("levyExclSeNm").val(cmnCode.value);
+ $P.$findn("levyExclSeCd").val(cmnCode.code);
+ $P.$findn("levyExclSeNm").val(cmnCode.value);
let reasons = FIM022.list().filter(reason => "2" == seCode ? reason.code > "200" : reason.code < "200");
- $P.$find("levyExclRsnCd").html(reasons.map(reason => "").join());
+ $P.$findn("levyExclRsnCd").html(reasons.map(reason => "").join());
if (typeof rsnCode != "undefined" && rsnCode != "") {
- $P.$find("levyExclRsnCd").val(rsnCode);
+ $P.$findn("levyExclRsnCd").val(rsnCode);
}
}
@@ -199,7 +199,7 @@
// 저장 버튼 클릭 이벤트
$P.fnSave = () => {
// validate 확인
- if (!AppSupport.customValidate($P.$find("frmEdit").find("input,select,textarea"))) return;
+ if (!AppSupport.customValidate($P.$findn("frmEdit").find("input,select,textarea"))) return;
dialog.alert({
content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?"
@@ -214,25 +214,25 @@
// 이벤트 설정
$P.setEvent = () => {
// 버튼 이벤트
- $P.$find("btnSave").on("click", () => { $P.fnSave() }); // 저장
+ $P.$findn("btnSave").on("click", () => { $P.fnSave() }); // 저장
}
// 초기 화면 설정
$P.initForm = () => {
// 화면 초기화
- $P.find("frmEdit").reset();
+ $P.findn("frmEdit").reset();
// 달력 초기화
- AppSupport.initDatepicker($P.find("frmEdit"));
- $P.$find("levyExclYmd").datepicker("setDate", TODAY());
+ AppSupport.initDatepicker($P.findn("frmEdit"));
+ $P.$findn("levyExclYmd").datepicker("setDate", TODAY());
// View로 호출되었을때 disabled 셋팅
if ($P.callPurpose == "view") {
// input 요소들을 disabled
- $P.$find("frmEdit").find("input,textarea,select").prop("disabled", true);
+ $P.$findn("frmEdit").find("input,textarea,select").prop("disabled", true);
// button 요소들을 disabled
- $P.$find("btnLevyExclYmd").prop("disabled", true); // 부과제외 일자 달력 버튼
- $P.$find("btnSave").prop("disabled", true); // 저장 버튼
+ $P.$findn("btnLevyExclYmd").prop("disabled", true); // 부과제외 일자 달력 버튼
+ $P.$findn("btnSave").prop("disabled", true); // 저장 버튼
}
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp
index e9e48d14..b21c7d5c 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp
@@ -358,7 +358,7 @@
let $P = pageObject["${pageName}"];
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmSearch"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmSearch"));
/**************************************************************************
* DatasetControl
@@ -395,7 +395,7 @@
$P.renderList(obj["Total"], option);
// datasetPaging
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("dataPaging"), $P.find("dataPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("dataPaging"), $P.findn("dataPagingInfo"));
}
// 현재 선택 자료 변경 이벤트
@@ -404,14 +404,14 @@
let key = item.data.OPNN_ID;
- $P.$find("tbodyList").setCurrentRow(key);
+ $P.$findn("tbodyList").setCurrentRow(key);
}
// 선택(체크) 변경 이벤트
$P.ctrl.onSelectionChange = (selected) => {
- Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("tbodyList"), 1, selected);
- Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnRemove"), selected); // 삭제 버튼
- Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnPrintDlbrDecsn"), selected); // 심의의결서 출력 버튼
+ Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("tbodyList"), 1, selected);
+ Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnRemove"), selected); // 삭제 버튼
+ Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnPrintDlbrDecsn"), selected); // 심의의결서 출력 버튼
}
// 상세정보 dialog
@@ -477,10 +477,10 @@
$P.renderList = (totalSize, option) => {
let dataList = $P.ctrl.dataset;
let empty = dataList.empty;
- let clsForTask = $P.$find("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase();
+ let clsForTask = $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase();
// 업무별 DataTables(그리드) tr, td
- let foundContent = $P.find("tmpltRows").content;
+ let foundContent = $P.findn("tmpltRows").content;
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
let foundTds = $(foundContent).find("." + clsForTask + ",.cmn");
@@ -492,7 +492,7 @@
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("OPNN_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("OPNN_ID") + "', '" + dataItem.getValue("CRDN_ID") + "');");
- let trs = empty ? [$P.find("tmpltNotFound").content.querySelector("." + clsForTask + ",.cmn").outerHTML] :
+ let trs = empty ? [$P.findn("tmpltNotFound").content.querySelector("." + clsForTask + ",.cmn").outerHTML] :
dataList.inStrings(foundTr.outerHTML, replacer);
let noMore = (dataList.length >= totalSize);
@@ -502,10 +502,10 @@
initScroll = false;
}
- $P.find("tableRspns").changeContent(trs.join(), initScroll, noMore);
+ $P.findn("tableRspns").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제
- $P.$find("gridAllCheckbox").prop("checked", false);
+ $P.$findn("gridAllCheckbox").prop("checked", false);
// 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
@@ -516,8 +516,8 @@
GRID.checkbox.sync(element, bool);
let atLeastOne = GRID.checkbox.countChecked(element) > 0;
- $P.$find("btnRemove").prop("disabled", !atLeastOne); // 의견제출 삭제
- $P.$find("btnPrintDlbrDecsn").prop("disabled", !atLeastOne); // 심의의결서 출력
+ $P.$findn("btnRemove").prop("disabled", !atLeastOne); // 의견제출 삭제
+ $P.$findn("btnPrintDlbrDecsn").prop("disabled", !atLeastOne); // 심의의결서 출력
Apply.toDataset.selection($P.ctrl.dataset, element, bool);
}
@@ -526,7 +526,7 @@
$P.dataTableClick = (dataKey) => {
if (dataKey == "") return;
- $P.$find("tbodyList").setCurrentRow(dataKey);
+ $P.$findn("tbodyList").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -576,8 +576,8 @@
**************************************************************************/
// 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => {
- $P.$find("schRgtrCd").val(userId); // 사용자 ID
- $P.$find("schRgtrNm").val(userNm); // 사용자 명
+ $P.$findn("schRgtrCd").val(userId); // 사용자 ID
+ $P.$findn("schRgtrNm").val(userNm); // 사용자 명
}
// 의견제출 심의위원 관리
@@ -641,8 +641,8 @@
// 서버에 전송할 data(파라미터) 생성
let params = {
- sggCd: $P.$find("sggCd").val() // 시군구 코드
- , taskSeCd: $P.$find("frmSearch").find("[name='taskSeCd']:checked").val() // 업무 구분 코드
+ sggCd: $P.$findn("sggCd").val() // 시군구 코드
+ , taskSeCd: $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val() // 업무 구분 코드
, opnnIds: selected.join(",") // 의견제출 IDs
, btnTitle: obj.btnTitle // 버튼 title
, delRsn: obj.reason // 삭제 사유
@@ -671,10 +671,10 @@
// 초기화 버튼 이벤트
$P.fnReset = (taskSeCd) => {
// 화면 초기화
- $P.find("frmSearch").reset();
+ $P.findn("frmSearch").reset();
// input, select 초기화
- let searchForm = $P.$find("frmSearch");
+ let searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
@@ -682,22 +682,22 @@
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
// 최고 관리자인지 권한을 확인하여 업무구분을 선택할 수 있도록 하자 -> 수정 필요
- $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
- AppSupport.initDatepicker($P.find("frmSearch")); // 달력 초기화
- AppSupport.initDetailSearchButton($P.find("frmSearch")); // 상세검색 버튼 화살표
+ AppSupport.initDatepicker($P.findn("frmSearch")); // 달력 초기화
+ AppSupport.initDetailSearchButton($P.findn("frmSearch")); // 상세검색 버튼 화살표
// 기본 데이터 설정
- $P.$find("sggCd").val("${sggCd}"); // 시군구 코드
+ $P.$findn("sggCd").val("${sggCd}"); // 시군구 코드
if (taskSeCd) { // 업무 구분 코드
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
}
- $P.$find("schRcptYmdFrom").datepicker('setDate', DateSupport.getAddDay(-7)); // 부과 제외 일자 시작
- $P.$find("schRcptYmdTo").datepicker('setDate', TODAY()); // 부과 제외 일자 종료
- $P.$find("byOutput").val("동적 검색"); // 동적 검색
- $P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름
+ $P.$findn("schRcptYmdFrom").datepicker('setDate', DateSupport.getAddDay(-7)); // 부과 제외 일자 시작
+ $P.$findn("schRcptYmdTo").datepicker('setDate', TODAY()); // 부과 제외 일자 종료
+ $P.$findn("byOutput").val("동적 검색"); // 동적 검색
+ $P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
// dataset 초기화
$P.ctrl.dataset.clear();
@@ -717,19 +717,19 @@
$P.ctrl.urls.load = wctx.url(taskSeCd + "${infoPrefixUrl}" + "/010/list.do"); // 검색
// 업무별 검색 조건
- FimsSupport.renderForTask($P.find("frmSearch"), taskSeCd.toLowerCase());
+ FimsSupport.renderForTask($P.findn("frmSearch"), taskSeCd.toLowerCase());
// 업무별 버튼
- FimsSupport.renderForTask($P.find("gridbuttonArea"), taskSeCd.toLowerCase());
+ FimsSupport.renderForTask($P.findn("gridbuttonArea"), taskSeCd.toLowerCase());
// 업무별 그리드 th
- let colContent = $P.find("tmpltCols").content;
+ let colContent = $P.findn("tmpltCols").content;
let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn");
let colsOuterHTML = "";
cols.each(function() {
colsOuterHTML += this.outerHTML;
});
- $P.find("tableRspns").changeColumn(colsOuterHTML);
+ $P.findn("tableRspns").changeColumn(colsOuterHTML);
}
// 사용자검색 버튼 클릭 이벤트
@@ -784,8 +784,8 @@
// DataTables(그리드)
$P.ctrl.query.cellDefs =
- AppSupport.getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)")
- , $($P.find("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")
+ AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th").not(":eq(0)")
+ , $($P.findn("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")
, FimsSupport.getCellDefsForPrivacyCell);
$P.ctrl.download();
@@ -797,8 +797,8 @@
let params = {
btnTitle: btnTitle // 버튼 title
, callPurpose: "update" // 호출용도: 수정
- , sggCd: $P.$find("sggCd").val() // 시군구 코드
- , taskSeCd: $P.$find("frmSearch").find("[name='taskSeCd']:checked").val() // 업무 구분 코드
+ , sggCd: $P.$findn("sggCd").val() // 시군구 코드
+ , taskSeCd: $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val() // 업무 구분 코드
};
$P.opnnSbmsnDlbrMbr(params);
@@ -911,36 +911,36 @@
// 이벤트
$P.setEvent = () => {
// 기본 버튼 이벤트
- $P.$find("btnReset").on("click", () => $P.fnResetAndChangeBiz()); // 초기화
- $P.$find("btnSearch").on("click", () => $P.fnSearchList()); // 검색
- $P.$find("btnExcel").on("click", () => $P.fnExcel()); // 엑셀
- $P.$find("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
+ $P.$findn("btnReset").on("click", () => $P.fnResetAndChangeBiz()); // 초기화
+ $P.$findn("btnSearch").on("click", () => $P.fnSearchList()); // 검색
+ $P.$findn("btnExcel").on("click", () => $P.fnExcel()); // 엑셀
+ $P.$findn("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
- $P.$find("term").onEnterPress($P.fnSearchList);
+ $P.$findn("term").onEnterPress($P.fnSearchList);
// 업무 버튼 이벤트
- $P.$find("btnDlbrMbr").on("click", function() {
+ $P.$findn("btnDlbrMbr").on("click", function() {
$P.fnDlbrMbr($(this).attr("title")); // 심의위원 관리
});
- $P.$find("btnUpdate").on("click", function() {
+ $P.$findn("btnUpdate").on("click", function() {
$P.fnUpdate($(this).attr("title")); // 의견제출 수정
});
- $P.$find("btnUpdateDlbr").on("click", function() {
+ $P.$findn("btnUpdateDlbr").on("click", function() {
$P.fnUpdateDlbr($(this).attr("title")); // 의견제출 심의
});
- $P.$find("btnRemove").on("click", function() {
+ $P.$findn("btnRemove").on("click", function() {
$P.fnRemove($(this).attr("title")); // 의견제출 삭제
});
- $P.$find("btnPrintDlbrDecsn").on("click", function() {
+ $P.$findn("btnPrintDlbrDecsn").on("click", function() {
$P.fnPrintDlbrDecsn($(this).attr("title")); // 심의의결서 출력
});
// DataTables width 변경 조정
- Componentization.fnMakeResizableTable($P.find("tableRspns"));
+ Componentization.fnMakeResizableTable($P.findn("tableRspns"));
// DataTables 스크롤 이벤트 생성
- Componentization.fnMakeScrollableTable($P.find("tableRspns"), $P.scrollDataList);
+ Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
}
/**************************************************************************
diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02020-info.jsp
index 043ab7f9..2bf54401 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02020-info.jsp
@@ -192,7 +192,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}";
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
// 파일 리스트
$P.fileListArr = new Array();
@@ -223,7 +223,7 @@
// 호출용도가 등록..
if ($P.callPurpose == "create") {
- $P.$find("rcptYmd").datepicker("setDate", TODAY());
+ $P.$findn("rcptYmd").datepicker("setDate", TODAY());
} else {
// 첨부파일 조회
if (key != null) { $P.fnSearchFileList(key); }
@@ -243,7 +243,7 @@
, onClose: () => {
if (resp.saved) {
// 폼을 리셋해서 uploadFiles에 출력된 선택 파일을 초기화시킨다.
- $P.find("frmFile").reset();
+ $P.findn("frmFile").reset();
dialog.close($P.selfDlgId());
}
@@ -287,9 +287,9 @@
// 주소 검색 결과 callback
$P.callbackSearchAddr = (obj) => {
- $P.$find("sttrAddr").val(obj.ADDR); // 주소
- $P.$find("sttrZip").val(obj.ZIP); // 우편번호
- $P.$find("sttrDaddr").val(obj.DTL_ADDR); // 상세 주소
+ $P.$findn("sttrAddr").val(obj.ADDR); // 주소
+ $P.$findn("sttrZip").val(obj.ZIP); // 우편번호
+ $P.$findn("sttrDaddr").val(obj.DTL_ADDR); // 상세 주소
}
/**************************************************************************
@@ -297,19 +297,19 @@
**************************************************************************/
// 납부자 정보를 진술자 정보로 입력한다.
$P.fnSearchPayer = (btnTitle) => {
- $P.$find("frmEdit").find("[name='ownrRelCd'] option:contains('본인')").prop("selected", true);
- $P.$find("sttrNm").val($P.ctrl.getValue("RTPYR_NM"));
- $P.$find("sttrBrdt").val($P.ctrl.getValue("RTPYR_BRDT"));
- $P.$find("sttrAddr").val($P.ctrl.getValue("ADDR"));
- $P.$find("sttrZip").val($P.ctrl.getValue("ZIP"));
- $P.$find("sttrDaddr").val($P.ctrl.getValue("DTL_ADDR"));
+ $P.$findn("frmEdit").find("[name='ownrRelCd'] option:contains('본인')").prop("selected", true);
+ $P.$findn("sttrNm").val($P.ctrl.getValue("RTPYR_NM"));
+ $P.$findn("sttrBrdt").val($P.ctrl.getValue("RTPYR_BRDT"));
+ $P.$findn("sttrAddr").val($P.ctrl.getValue("ADDR"));
+ $P.$findn("sttrZip").val($P.ctrl.getValue("ZIP"));
+ $P.$findn("sttrDaddr").val($P.ctrl.getValue("DTL_ADDR"));
if ($P.ctrl.getValue("RTPYR_MBL_TELNO") != "")
- $P.$find("sttrCttpc").val($P.ctrl.getValue("RTPYR_MBL_TELNO"));
+ $P.$findn("sttrCttpc").val($P.ctrl.getValue("RTPYR_MBL_TELNO"));
else
- $P.$find("sttrCttpc").val($P.ctrl.getValue("RTPYR_TELNO"));
+ $P.$findn("sttrCttpc").val($P.ctrl.getValue("RTPYR_TELNO"));
- $P.$find("sttrEml").val($P.ctrl.getValue("RTPYR_EML"));
+ $P.$findn("sttrEml").val($P.ctrl.getValue("RTPYR_EML"));
}
// 주소 검색
@@ -332,7 +332,7 @@
// 첨부파일 조회
$P.fnSearchFileList = (opnnId) => {
- let tableFileList = $P.find("fileList"); // table element 찾기
+ let tableFileList = $P.findn("fileList"); // table element 찾기
let fileLength = tableFileList.rows.length;
// 기존 table에 자료가 존재하면 tableRow 삭제
@@ -370,7 +370,7 @@
innerHtml += "pageObject['${pageName}'].fnFileRemove(this);" + ">" + "";
innerHtml += "";
- $P.$find("tbodyFileList").append(innerHtml);
+ $P.$findn("tbodyFileList").append(innerHtml);
});
}
});
@@ -378,7 +378,7 @@
// 첨부파일 등록
$P.fnAddFiles = (obj) => {
- let tableFileList = $P.find("fileList"); // table element 찾기
+ let tableFileList = $P.findn("fileList"); // table element 찾기
let fileNo = tableFileList.rows.length - 1; // table에 있는 파일 갯수 (첫번째 title은 제외하기 위해서 -1 처리)
let maxFileCnt = 3; // 의견제출에 등록 할 수 있는 첨부 파일 최대 개수
let attFileCnt = obj.files.length; // 선택한 파일의 개수
@@ -413,7 +413,7 @@
innerHtml += "pageObject['${pageName}'].fnFileRemove(this);" + ">" + "";
innerHtml += "";
- $P.$find("tbodyFileList").append(innerHtml);
+ $P.$findn("tbodyFileList").append(innerHtml);
fileArr.push(obj.files[iLoop]);
}
@@ -456,7 +456,7 @@
// 저장
$P.fnSave = () => {
// validate 확인
- if (!AppSupport.customValidate($P.$find("frmEdit").find("input,select,textarea"))) return;
+ if (!AppSupport.customValidate($P.$findn("frmEdit").find("input,select,textarea"))) return;
dialog.alert({
content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?"
@@ -471,37 +471,37 @@
// 이벤트 설정
$P.setEvent = () => {
// 버튼 이벤트
- $P.$find("btnSearchPayer").on("click", function() {
+ $P.$findn("btnSearchPayer").on("click", function() {
$P.fnSearchPayer($(this).attr("title")); // 납부자 정보 조회 버튼 이벤트
});
- $P.$find("btnSearchAddr").on("click", function() {
+ $P.$findn("btnSearchAddr").on("click", function() {
$P.fnSearchAddr($(this).attr("title")); // 주소 검색 버튼 이벤트
});
- $P.$find("btnAddFile").on("click", () => $P.$find("uploadFiles").trigger("click")); // 파일 등록 버튼 이벤트
- $P.$find("btnSave").on("click", () => { $P.fnSave() }); // 저장
+ $P.$findn("btnAddFile").on("click", () => $P.$findn("uploadFiles").trigger("click")); // 파일 등록 버튼 이벤트
+ $P.$findn("btnSave").on("click", () => { $P.fnSave() }); // 저장
}
// 초기 화면 설정
$P.initForm = () => {
// 화면 초기화
- $P.find("frmEdit").reset();
+ $P.findn("frmEdit").reset();
// 달력 초기화
- AppSupport.initDatepicker($P.find("frmEdit"));
- $P.$find("rcptYmd").datepicker("setDate", TODAY());
+ AppSupport.initDatepicker($P.findn("frmEdit"));
+ $P.$findn("rcptYmd").datepicker("setDate", TODAY());
// View로 호출되었을때 disabled 셋팅
if ($P.callPurpose == "view") {
// input 요소들을 disabled
- $P.$find("frmEdit").find("input,textarea,select").prop("disabled", true);
+ $P.$findn("frmEdit").find("input,textarea,select").prop("disabled", true);
// button 요소들을 disabled
- $P.$find("btnRcptYmd").prop("disabled", true); // 접수 일자 달력 버튼
- $P.$find("btnSearchPayer").prop("disabled", true); // 납부자 버튼
- $P.$find("btnSearchAddr").prop("disabled", true); // 우편번호 버튼
- $P.$find("btnAddFile").prop("disabled", true); // 파일 추가 버튼
- $P.$find("btnSave").prop("disabled", true); // 저장 버튼
+ $P.$findn("btnRcptYmd").prop("disabled", true); // 접수 일자 달력 버튼
+ $P.$findn("btnSearchPayer").prop("disabled", true); // 납부자 버튼
+ $P.$findn("btnSearchAddr").prop("disabled", true); // 우편번호 버튼
+ $P.$findn("btnAddFile").prop("disabled", true); // 파일 추가 버튼
+ $P.$findn("btnSave").prop("disabled", true); // 저장 버튼
} else if ($P.callPurpose == "create") {
- $P.$find("rcptNo").prop("readonly", true); // 접수 번호
+ $P.$findn("rcptNo").prop("readonly", true); // 접수 번호
}
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02030-info.jsp
index 9cd057df..64dc866b 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02030-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02030-info.jsp
@@ -138,7 +138,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}";
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
/**************************************************************************
* DatasetControl
@@ -171,8 +171,8 @@
// 답변 일자가 없다면..
if (item.data.ANS_YMD == null || item.data.ANS_YMD == "") {
- $P.$find("ansYmd").datepicker("setDate", TODAY()); // 날짜
- $P.$find("ansTm").val(new Date().toTimeString().split(" ")[0]); // 시간 "09:51:35 GMT+0900 (한국 표준시)"의 형식에서 공백을 기준으로 잘라 시간 부분만 가져와줍니다.
+ $P.$findn("ansYmd").datepicker("setDate", TODAY()); // 날짜
+ $P.$findn("ansTm").val(new Date().toTimeString().split(" ")[0]); // 시간 "09:51:35 GMT+0900 (한국 표준시)"의 형식에서 공백을 기준으로 잘라 시간 부분만 가져와줍니다.
}
}
@@ -216,17 +216,17 @@
// javascript를 이용한 visibility 변경 (이 방법을 사용하는 경우, 안에 있는 요소들이 보이지않지만 그 요소들이 할당 하고 있는 공간은 그대로 유지(공백처리))
// document.getElementById("divRdctRsnCd--${pageName}").style.visibility = "hidden";
// document.getElementById("divRdctRsnCd--${pageName}").style.visibility = "visible";
- $P.$find("divRdctRsnCd").hide();
- $P.$find("divRdctAmt").hide();
- $P.$find("rdctRsnCd").attr("required", false);
- $P.$find("rdctAmt").attr("required", false);
+ $P.$findn("divRdctRsnCd").hide();
+ $P.$findn("divRdctAmt").hide();
+ $P.$findn("rdctRsnCd").attr("required", false);
+ $P.$findn("rdctAmt").attr("required", false);
if (obj == "04") { // 의견제출 상태 코드(FIM031) 04: 과태료감경
// 필수 선택 추가 필요
- $P.$find("divRdctRsnCd").show();
- $P.$find("divRdctAmt").show();
- $P.$find("rdctRsnCd").attr("required", true);
- $P.$find("rdctAmt").attr("required", true);
+ $P.$findn("divRdctRsnCd").show();
+ $P.$findn("divRdctAmt").show();
+ $P.$findn("rdctRsnCd").attr("required", true);
+ $P.$findn("rdctAmt").attr("required", true);
}
}
@@ -236,13 +236,13 @@
// 저장
$P.fnSave = () => {
// validate 확인
-// if (!AppSupport.customValidate($P.$find("frmEdit").find("input, select, textarea"))) return;
+// if (!AppSupport.customValidate($P.$findn("frmEdit").find("input, select, textarea"))) return;
// 감경 사유 확인
- let opnnSbmsnSttsCd = $P.$find("opnnSbmsnSttsCd").val();
+ let opnnSbmsnSttsCd = $P.$findn("opnnSbmsnSttsCd").val();
- let rdctRsnCd = $P.$find("rdctRsnCd").find("option:selected").val();
- let rdctRsnNm = $P.$find("rdctRsnCd").find("option:selected").text();
+ let rdctRsnCd = $P.$findn("rdctRsnCd").find("option:selected").val();
+ let rdctRsnNm = $P.$findn("rdctRsnCd").find("option:selected").text();
if (opnnSbmsnSttsCd == "04" && rdctRsnCd == "00") {
dialog.alert({
@@ -268,7 +268,7 @@
$P.setEvent = () => {
/*
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
- $P.$find("frmEdit").find(".form-date").each(function() {
+ $P.$findn("frmEdit").find(".form-date").each(function() {
$(this).on("input", function() {
let value = this.value.replaceAll("-", "");
@@ -280,7 +280,7 @@
});
});
// form-time 항목에서 키보드로 입력시 시간 포맷팅 적용
- $P.$find("frmEdit").find(".form-time").each(function() {
+ $P.$findn("frmEdit").find(".form-time").each(function() {
$(this).on("input", function() {
let value = this.value.replaceAll(":", "");
@@ -293,26 +293,26 @@
});
*/
// 버튼 이벤트
- $P.$find("btnSave").on("click", () => { $P.fnSave() }); // 저장
+ $P.$findn("btnSave").on("click", () => { $P.fnSave() }); // 저장
}
// 초기 화면 설정
$P.initForm = () => {
// 화면 초기화
- $P.find("frmEdit").reset();
+ $P.findn("frmEdit").reset();
// 달력 초기화
- AppSupport.initDatepicker($P.find("frmEdit"));
- $P.$find("ansYmd").datepicker("setDate", TODAY());
- $P.$find("ansTm").val(new Date().toTimeString().split(" ")[0]);
+ AppSupport.initDatepicker($P.findn("frmEdit"));
+ $P.$findn("ansYmd").datepicker("setDate", TODAY());
+ $P.$findn("ansTm").val(new Date().toTimeString().split(" ")[0]);
// view 로 호출됐을 경우..
if ($P.callPurpose == "view") {
// input 요소들을 disabled
- $P.$find("frmEdit").find("input,textarea,select").prop("disabled", true);
+ $P.$findn("frmEdit").find("input,textarea,select").prop("disabled", true);
// button 요소들을 disabled
- $P.$find("btnAnsYmd").prop("disabled", true); // 답변 일자 달력 버튼
- $P.$find("btnSave").prop("disabled", true); // 저장 버튼
+ $P.$findn("btnAnsYmd").prop("disabled", true); // 답변 일자 달력 버튼
+ $P.$findn("btnSave").prop("disabled", true); // 저장 버튼
}
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02040-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02040-info.jsp
index 170b90ae..f85c3ae4 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02040-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02040-info.jsp
@@ -129,7 +129,7 @@
let $P = pageObject["${pageName}"];
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
/**************************************************************************
* DatasetControl
@@ -199,7 +199,7 @@
// 저장
$P.fnSave = () => {
// validate 확인
- if (!AppSupport.customValidate($P.$find("frmEdit").find("input,select,textarea"))) return;
+ if (!AppSupport.customValidate($P.$findn("frmEdit").find("input,select,textarea"))) return;
dialog.alert({
content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?"
@@ -214,13 +214,13 @@
// 이벤트 설정
$P.setEvent = () => {
// 버튼 이벤트
- $P.$find("btnSave").on("click", () => { $P.fnSave() }); // 저장
+ $P.$findn("btnSave").on("click", () => { $P.fnSave() }); // 저장
}
// 초기 화면 설정
$P.initForm = () => {
// 화면 초기화
- $P.find("frmEdit").reset();
+ $P.findn("frmEdit").reset();
}
/**************************************************************************
diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp
index 55a7a832..57c30185 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl03010-main.jsp
@@ -272,7 +272,7 @@
let $P = pageObject["${pageName}"];
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmSearch"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmSearch"));
/**************************************************************************
* DatasetControl
@@ -305,7 +305,7 @@
$P.renderList(obj["Total"], option);
// datasetPaging
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("dataPaging"), $P.find("dataPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("dataPaging"), $P.findn("dataPagingInfo"));
}
// 현재 선택 자료 변경 이벤트
@@ -314,7 +314,7 @@
let key = item.data.RE_REG_ID;
- $P.$find("tbodyList").setCurrentRow(key);
+ $P.$findn("tbodyList").setCurrentRow(key);
}
/**************************************************************************
@@ -324,10 +324,10 @@
$P.renderList = (totalSize, option) => {
let dataList = $P.ctrl.dataset;
let empty = dataList.empty;
- let clsForTask = $P.$find("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase();
+ let clsForTask = $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase();
// 업무별 DataTables(그리드) tr, td
- let foundContent = $P.find("tmpltRows").content;
+ let foundContent = $P.findn("tmpltRows").content;
let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
let foundTds = $(foundContent).find("." + clsForTask + ",.cmn");
@@ -339,7 +339,7 @@
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("RE_REG_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("RE_REG_ID") + "', '" + dataItem.getValue("CRDN_ID") + "');");
- let trs = empty ? [$P.find("tmpltNotFound").content.querySelector("." + clsForTask + ",.cmn").outerHTML] :
+ let trs = empty ? [$P.findn("tmpltNotFound").content.querySelector("." + clsForTask + ",.cmn").outerHTML] :
dataList.inStrings(foundTr.outerHTML, replacer);
let noMore = (dataList.length >= totalSize);
@@ -349,7 +349,7 @@
initScroll = false;
}
- $P.find("tableRspns").changeContent(trs.join(), initScroll, noMore);
+ $P.findn("tableRspns").changeContent(trs.join(), initScroll, noMore);
// 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
@@ -359,7 +359,7 @@
$P.dataTableClick = (dataKey) => {
if (!dataKey) return;
- $P.$find("tbodyList").setCurrentRow(dataKey);
+ $P.$findn("tbodyList").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -416,8 +416,8 @@
**************************************************************************/
// 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => {
- $P.$find("schRgtrCd").val(userId); // 사용자 ID
- $P.$find("schRgtrNm").val(userNm); // 사용자 명
+ $P.$findn("schRgtrCd").val(userId); // 사용자 ID
+ $P.$findn("schRgtrNm").val(userNm); // 사용자 명
}
/**************************************************************************
@@ -426,10 +426,10 @@
// 초기화 버튼 이벤트
$P.fnReset = (taskSeCd) => {
// 화면 초기화
- $P.find("frmSearch").reset();
+ $P.findn("frmSearch").reset();
// input, select 초기화
- let searchForm = $P.$find("frmSearch");
+ let searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val("");
@@ -437,22 +437,22 @@
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
// 최고 관리자인지 권한을 확인하여 업무구분을 선택할 수 있도록 하자 -> 수정 필요
- $P.$find("frmSearch").find("input[name='taskSeCd']").each(function(i) {
+ $P.$findn("frmSearch").find("input[name='taskSeCd']").each(function(i) {
$(this).prop("disabled", "true");
});
- AppSupport.initDatepicker($P.find("frmSearch")); // 달력 초기화
- AppSupport.initDetailSearchButton($P.find("frmSearch")); // 상세검색 버튼 화살표
+ AppSupport.initDatepicker($P.findn("frmSearch")); // 달력 초기화
+ AppSupport.initDetailSearchButton($P.findn("frmSearch")); // 상세검색 버튼 화살표
// 기본 데이터 설정
- $P.$find("sggCd").val("${sggCd}"); // 시군구 코드
+ $P.$findn("sggCd").val("${sggCd}"); // 시군구 코드
if (taskSeCd) { // 업무 구분 코드
- $P.$find("frmSearch").find("input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
+ $P.$findn("frmSearch").find("input[name='taskSeCd'][value='" + taskSeCd + "']").prop("checked", true);
}
- $P.$find("schReRegYmdFrom").datepicker("setDate", DateSupport.getAddDay(-7)); // 부과 제외 일자 시작
- $P.$find("schReRegYmdTo").datepicker("setDate", TODAY()); // 부과 제외 일자 종료
- $P.$find("byOutput").val("동적 검색"); // 동적 검색
- $P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름
+ $P.$findn("schReRegYmdFrom").datepicker("setDate", DateSupport.getAddDay(-7)); // 부과 제외 일자 시작
+ $P.$findn("schReRegYmdTo").datepicker("setDate", TODAY()); // 부과 제외 일자 종료
+ $P.$findn("byOutput").val("동적 검색"); // 동적 검색
+ $P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
// dataset 초기화
$P.ctrl.dataset.clear();
@@ -472,19 +472,19 @@
$P.ctrl.urls.load = wctx.url(taskSeCd + "${infoPrefixUrl}" + "/010/list.do"); // 검색
// 업무별 검색 조건
- FimsSupport.renderForTask($P.find("frmSearch"), taskSeCd.toLowerCase());
+ FimsSupport.renderForTask($P.findn("frmSearch"), taskSeCd.toLowerCase());
// 업무별 버튼
- FimsSupport.renderForTask($P.find("gridbuttonArea"), taskSeCd.toLowerCase());
+ FimsSupport.renderForTask($P.findn("gridbuttonArea"), taskSeCd.toLowerCase());
// 업무별 그리드 th
- let colContent = $P.find("tmpltCols").content;
+ let colContent = $P.findn("tmpltCols").content;
let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn");
let colsOuterHTML = "";
cols.each(function() {
colsOuterHTML += this.outerHTML;
});
- $P.find("tableRspns").changeColumn(colsOuterHTML);
+ $P.findn("tableRspns").changeColumn(colsOuterHTML);
}
// 사용자검색 버튼 클릭 이벤트
@@ -539,8 +539,8 @@
// DataTables(그리드)
$P.ctrl.query.cellDefs =
- AppSupport.getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)")
- , $($P.find("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")
+ AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th").not(":eq(0)")
+ , $($P.findn("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")
, FimsSupport.getCellDefsForPrivacyCell);
$P.ctrl.download();
@@ -563,24 +563,24 @@
// 이벤트 설정
$P.setEvent = () => {
// 기본 버튼 이벤트
- $P.$find("btnReset").on("click", () => { $P.fnResetAndChangeBiz() }); // 초기화
- $P.$find("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색
- $P.$find("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀
- $P.$find("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
+ $P.$findn("btnReset").on("click", () => { $P.fnResetAndChangeBiz() }); // 초기화
+ $P.$findn("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색
+ $P.$findn("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀
+ $P.$findn("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
- $P.$find("term").onEnterPress($P.fnSearchList);
+ $P.$findn("term").onEnterPress($P.fnSearchList);
// 업무 버튼 이벤트
- $P.$find("btnBfrCrdnTotalInfo").on("click", function() {
- $P.fnBfrCrdnTotalInfo($P.$find("btnBfrCrdnTotalInfo").attr("title")); // 이전 단속 정보
+ $P.$findn("btnBfrCrdnTotalInfo").on("click", function() {
+ $P.fnBfrCrdnTotalInfo($P.$findn("btnBfrCrdnTotalInfo").attr("title")); // 이전 단속 정보
});
// DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고
- Componentization.fnMakeResizableTable($P.find("tableRspns"));
+ Componentization.fnMakeResizableTable($P.findn("tableRspns"));
// DataTables 스크롤 이벤트 생성
- Componentization.fnMakeScrollableTable($P.find("tableRspns"), $P.scrollDataList);
+ Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
}
/**************************************************************************
diff --git a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt01010-main.jsp
index 83ea357a..49c605e5 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt01010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt01010-main.jsp
@@ -115,7 +115,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"];
- $P.toast = new bootstrap.Toast($P.find("divToast"), {
+ $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true,
autohide: true,
delay: 2000
@@ -149,11 +149,11 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderNtcList(obj["Total"], $P.ctrl.dataset.length, trs, option);
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("ntcPaging"), $P.find("ntcPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("ntcPaging"), $P.findn("ntcPagingInfo"));
};
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
- Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("ntcTbody"));
+ Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.findn("ntcTbody"));
}
$P.ctrl.dataset.onSelectionChange = (selectedArr) => {
@@ -164,7 +164,7 @@ $(document).ready(function(){
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
- var searchForm = $P.$find("frmSearch");
+ var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='hidden']").val("");
@@ -176,7 +176,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
@@ -201,8 +201,8 @@ $(document).ready(function(){
}
$P.getGridTemplate = () => {
- var notFound = [$P.find("ntcNotFound").innerHTML];
- var found = $P.find("ntcRow").innerHTML;
+ var notFound = [$P.findn("ntcNotFound").innerHTML];
+ var found = $P.findn("ntcRow").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickNtcList('" + dataItem.getValue("NTC_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickNtcList('" + dataItem.getValue("NTC_ID") + "');");
@@ -222,7 +222,7 @@ $(document).ready(function(){
initScroll = false;
}
- $P.find("table-responsive").changeContent(trs, initScroll, noMore);
+ $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
@@ -233,7 +233,7 @@ $(document).ready(function(){
return;
}
- $P.$find("ntcTbody").setCurrentRow(dataKey);
+ $P.$findn("ntcTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -297,21 +297,21 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
- $P.$find("btnSearch").on('click', () => $P.searchNtcList());
- $P.$find("btnAdd").on('click', () => $P.createNtc());
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnSearch").on('click', () => $P.searchNtcList());
+ $P.$findn("btnAdd").on('click', () => $P.createNtc());
/**************************************************************************
* 초기화
**************************************************************************/
- Componentization.fnMakeResizableTable($P.find("table-responsive"));
- Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollNtcList);
+ Componentization.fnMakeResizableTable($P.findn("table-responsive"));
+ Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollNtcList);
$P.fnReset();
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
if(MY_INFO.institute != "ADMIN00"){
- $P.$find("btnAdd").attr("hidden","hidden");
+ $P.$findn("btnAdd").attr("hidden","hidden");
}
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt01020-info.jsp
index df87a10b..a2ac6938 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt01020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt01020-info.jsp
@@ -83,7 +83,7 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl, Dataset, FormFields
**************************************************************************/
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : true,
@@ -113,7 +113,7 @@ $(document).ready(function(){
**************************************************************************/
$P.fnSave = () => {
- if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return;
+ if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
var info = $P.formFields.get();
@@ -156,8 +156,8 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnSave").on('click', () => $P.fnSave());
- $P.$find("btnRemove").on('click', () => $P.fnRemove());
+ $P.$findn("btnSave").on('click', () => $P.fnSave());
+ $P.$findn("btnRemove").on('click', () => $P.fnRemove());
/**************************************************************************
* 초기화
@@ -166,14 +166,14 @@ $(document).ready(function(){
if(ntcInfo == null){
$P.ctrl.dataset.setData([]);
- $P.$find("btnRemove").attr("hidden","hidden");
+ $P.$findn("btnRemove").attr("hidden","hidden");
} else {
$P.ctrl.dataset.setData([ntcInfo]);
- $P.$find("sggCd").attr("disabled","disabled");
+ $P.$findn("sggCd").attr("disabled","disabled");
if(MY_INFO.institute != "ADMIN00"){
- $P.$find("btnSave").attr("hidden","hidden");
- $P.$find("btnRemove").attr("hidden","hidden");
+ $P.$findn("btnSave").attr("hidden","hidden");
+ $P.$findn("btnRemove").attr("hidden","hidden");
}
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02010-main.jsp
index 0c85edf6..f01db630 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02010-main.jsp
@@ -23,7 +23,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"];
- $P.calendar = new Calendar($P.find("calendar"), {
+ $P.calendar = new Calendar($P.findn("calendar"), {
initialView: 'dayGridMonth',
plugins : [dayGridPlugin, interactionPlugin],
locale: 'ko',
diff --git a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02020-info.jsp
index 8c09a172..7e34a21b 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02020-info.jsp
@@ -78,7 +78,7 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl, Dataset, FormFields
**************************************************************************/
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : false,
@@ -108,7 +108,7 @@ $(document).ready(function(){
**************************************************************************/
$P.fnSave = () => {
- if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return;
+ if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
var info = $P.formFields.get();
@@ -117,7 +117,7 @@ $(document).ready(function(){
return;
}
- var create = ($P.$find("schdlId").val() == "");
+ var create = ($P.$findn("schdlId").val() == "");
if(create){
ajax.post({
url : $P.ctrl.urls.create,
@@ -191,13 +191,13 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnSave").on('click', () => $P.fnSave());
- $P.$find("btnRemove").on('click', () => $P.fnRemove());
+ $P.$findn("btnSave").on('click', () => $P.fnSave());
+ $P.$findn("btnRemove").on('click', () => $P.fnRemove());
/**************************************************************************
* 초기화
**************************************************************************/
- AppSupport.initDatepicker($P.find("frmEdit")); //달력 초기화
+ AppSupport.initDatepicker($P.findn("frmEdit")); //달력 초기화
var schdlInfo = ${schdlInfo};
if(schdlInfo != null){
@@ -206,7 +206,7 @@ $(document).ready(function(){
$P.ctrl.dataset.setData([{ SCHDL_BGNG_YMD : "${schdlBgngYmd}", SCHDL_END_YMD : "${schdlEndYmd}" }]);
- $P.$find("btnRemove").attr("hidden","hidden");
+ $P.$findn("btnRemove").attr("hidden","hidden");
}
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp01010-main.jsp
index b53c686b..a162fe0c 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp01010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp01010-main.jsp
@@ -269,28 +269,28 @@ $(document).ready(function(){
success : function(resp, textStatus, jqXHR) {
$P.sggInfo = resp.sggInfo;
- $P.$find("mainForm").find("[name='sggID']").val($P.sggInfo.SGG_CD);
- $P.$find("mainForm").find("[name='sggNm']").val($P.sggInfo.SGG_NM);
- $P.$find("mainForm").find("[name='instCd']").val($P.sggInfo.INST_CD);
- $P.$find("mainForm").find("[name='instNm']").val($P.sggInfo.INST_NM);
+ $P.$findn("mainForm").find("[name='sggID']").val($P.sggInfo.SGG_CD);
+ $P.$findn("mainForm").find("[name='sggNm']").val($P.sggInfo.SGG_NM);
+ $P.$findn("mainForm").find("[name='instCd']").val($P.sggInfo.INST_CD);
+ $P.$findn("mainForm").find("[name='instNm']").val($P.sggInfo.INST_NM);
- $P.$find("offcsImage")
+ $P.$findn("offcsImage")
.attr("data-orgn-name", $P.sggInfo.OFFCS_FILE_NM)
.attr("data-orgn-path", $P.sggInfo.OFFCS_FILE_PATH);
- $P.$find("offcs").val("");
- $P.$find("offcs").trigger("change");
+ $P.$findn("offcs").val("");
+ $P.$findn("offcs").trigger("change");
- $P.$find("symbolImage")
+ $P.$findn("symbolImage")
.attr("data-orgn-name", $P.sggInfo.SYMBOL_FILE_NM)
.attr("data-orgn-path", $P.sggInfo.SYMBOL_FILE_PATH);
- $P.$find("symbol").val("");
- $P.$find("symbol").trigger("change");
+ $P.$findn("symbol").val("");
+ $P.$findn("symbol").trigger("change");
- $P.$find("logoImage")
+ $P.$findn("logoImage")
.attr("data-orgn-name", $P.sggInfo.LOGO_FILE_NM)
.attr("data-orgn-path", $P.sggInfo.LOGO_FILE_PATH);
- $P.$find("logo").val("");
- $P.$find("logo").trigger("change");
+ $P.$findn("logo").val("");
+ $P.$findn("logo").trigger("change");
resolve({resp, textStatus, jqXHR});
},
@@ -319,8 +319,8 @@ $(document).ready(function(){
var taskSeCd = task.TASK_SE_CD;
var taskSeNm = task.TASK_SE_NM;
- var tabButtonTemplate = $P.find("taskTabButtonTemplate").innerHTML;
- var tabContentsTemplate = $P.find("taskTabContentsTemplate").innerHTML;
+ var tabButtonTemplate = $P.findn("taskTabButtonTemplate").innerHTML;
+ var tabContentsTemplate = $P.findn("taskTabContentsTemplate").innerHTML;
tabButtonTemplate = tabButtonTemplate.replace(/{task}/gi, taskSeCd);
tabButtonTemplate = tabButtonTemplate.replace(/{taskNm}/gi, taskSeNm);
@@ -341,8 +341,8 @@ $(document).ready(function(){
contents.push(tabContentsTemplate);
}
- $P.$find("tabButtonContainer").html(tabs.join(""));
- $P.$find("tabContentContainer").html(contents.join(""));
+ $P.$findn("tabButtonContainer").html(tabs.join(""));
+ $P.$findn("tabContentContainer").html(contents.join(""));
if(MY_INFO.institute != "ADMIN00"){
$(".superadmin").attr("hidden","hidden");
@@ -354,17 +354,17 @@ $(document).ready(function(){
var taskSeNm = task.TASK_SE_NM;
let formName = taskSeCd+"Form";
- $P.$find(formName).find("[name='taskSeNm']").val(taskSeNm);
- $P.$find(formName).find("[name='advntceDayCnt']").val(task.ADVNTCE_DAY_CNT);
- $P.$find(formName).find("[name='advntceRdcrt']").val(task.ADVNTCE_RDCRT);
- $P.$find(formName).find("[name='wksnRdcrt']").val(task.WKSN_RDCRT);
- $P.$find(formName).find("[name='ffnlgAdtnYmd']").val(task.FFNLG_ADTN_YMD);
- $P.$find(formName).find("[name='ffnlgAdtnRt']").val(task.FFNLG_ADTN_RT);
- $P.$find(formName).find("[name='ffnlgInadtnRt']").val(task.FFNLG_INADTN_RT);
- $P.$find(formName).find("[name='ffnlgInadtnMaxCnt']").val(task.FFNLG_INADTN_MAX_CNT);
-
- $P.$find(formName).find("[name='nxrpLinkSeCd']").val(task.NXRP_LINK_SE_CD);
- $P.$find(formName).find("[name='nxrpLinkSeDtlSn']").val(task.NXRP_LINK_SE_DTL_SN);
+ $P.$findn(formName).find("[name='taskSeNm']").val(taskSeNm);
+ $P.$findn(formName).find("[name='advntceDayCnt']").val(task.ADVNTCE_DAY_CNT);
+ $P.$findn(formName).find("[name='advntceRdcrt']").val(task.ADVNTCE_RDCRT);
+ $P.$findn(formName).find("[name='wksnRdcrt']").val(task.WKSN_RDCRT);
+ $P.$findn(formName).find("[name='ffnlgAdtnYmd']").val(task.FFNLG_ADTN_YMD);
+ $P.$findn(formName).find("[name='ffnlgAdtnRt']").val(task.FFNLG_ADTN_RT);
+ $P.$findn(formName).find("[name='ffnlgInadtnRt']").val(task.FFNLG_INADTN_RT);
+ $P.$findn(formName).find("[name='ffnlgInadtnMaxCnt']").val(task.FFNLG_INADTN_MAX_CNT);
+
+ $P.$findn(formName).find("[name='nxrpLinkSeCd']").val(task.NXRP_LINK_SE_CD);
+ $P.$findn(formName).find("[name='nxrpLinkSeDtlSn']").val(task.NXRP_LINK_SE_DTL_SN);
}
resolve({resp, textStatus, jqXHR});
@@ -393,10 +393,10 @@ $(document).ready(function(){
for(var i=0; i < datasetNames.length; i++){
var taskSeCd = datasetNames[i].substr(0,3);
- var template = $P.find("taskTbodyTemplate").innerHTML;
+ var template = $P.findn("taskTbodyTemplate").innerHTML;
var taskDataset = $P.taskDatasets[taskSeCd+"Dataset"];
var trs = taskDataset.empty ? [""] : taskDataset.inStrings(template);
- $P.$find(taskSeCd+"tbody").html(trs.join());
+ $P.$findn(taskSeCd+"tbody").html(trs.join());
}
resolve({resp, textStatus, jqXHR});
@@ -408,14 +408,14 @@ $(document).ready(function(){
};
//이미지 뷰어
- FimsComponentization.fnMakeSingleImageViewer($P.find("offcsImage"), $P.find("offcs"), "orgn-path", "orgn-name");
- FimsComponentization.fnMakeSingleImageViewer($P.find("symbolImage"), $P.find("symbol"), "orgn-path", "orgn-name");
- FimsComponentization.fnMakeSingleImageViewer($P.find("logoImage"), $P.find("logo"), "orgn-path", "orgn-name");
+ FimsComponentization.fnMakeSingleImageViewer($P.findn("offcsImage"), $P.findn("offcs"), "orgn-path", "orgn-name");
+ FimsComponentization.fnMakeSingleImageViewer($P.findn("symbolImage"), $P.findn("symbol"), "orgn-path", "orgn-name");
+ FimsComponentization.fnMakeSingleImageViewer($P.findn("logoImage"), $P.findn("logo"), "orgn-path", "orgn-name");
//시군구 기본 설정 저장 버튼
- $P.$find("btnSaveSgg").on("click", function(){
+ $P.$findn("btnSaveSgg").on("click", function(){
- var formData = new FormData($P.find("mainForm"));
+ var formData = new FormData($P.findn("mainForm"));
ajax.post({
url: wctx.url("/ogdp/updateSggStng.do"),
@@ -437,14 +437,14 @@ $(document).ready(function(){
});
//업무 추가 버튼
- $P.$find("btnOpenSelectTaskDialog").on("click", function(){
+ $P.$findn("btnOpenSelectTaskDialog").on("click", function(){
$("#selectTaskButtons").html("");
var keys = Object.keys(ALL_TASK);
var ableKeys = [];
for(var i=0; i < keys.length; i++){
- if($P.$find("tabContentContainer").find("[name='tab"+keys[i]+"']").length < 1){
+ if($P.$findn("tabContentContainer").find("[name='tab"+keys[i]+"']").length < 1){
ableKeys.push(keys[i]);
}
}
@@ -477,7 +477,7 @@ $(document).ready(function(){
ajax.post({
url: wctx.url("/ogdp/createTaskStng.do"),
data: {
- sggCd : $P.$find("mainForm").find("[name='sggID']").val(),
+ sggCd : $P.$findn("mainForm").find("[name='sggID']").val(),
taskSeCd : taskSeCd
},
success: (resp) => {
@@ -497,9 +497,9 @@ $(document).ready(function(){
$P.fnSaveForTask = (el) => {
var taskSeCd = el.dataset.task;
- var sggCd = $P.$find("mainForm").find("[name='sggID']").val();
+ var sggCd = $P.$findn("mainForm").find("[name='sggID']").val();
- var formData = new FormData($P.find(taskSeCd+"Form"));
+ var formData = new FormData($P.findn(taskSeCd+"Form"));
formData.append("taskSeCd",taskSeCd);
formData.append("sggCd", sggCd);
@@ -533,7 +533,7 @@ $(document).ready(function(){
$P.getRowData = (tbodyName, formData) => {
var rowArr = [];
- $P.$find(tbodyName).find("tr").each(function(){
+ $P.$findn(tbodyName).find("tr").each(function(){
var row = {};
row.vltnId = this.dataset.key;
diff --git a/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp02010-main.jsp
index 369412d0..77e117cb 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp02010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp02010-main.jsp
@@ -147,7 +147,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"];
- $P.toast = new bootstrap.Toast($P.find("divToast"), {
+ $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true,
autohide: true,
delay: 2000
@@ -181,15 +181,15 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderDeptList(obj["Total"], $P.ctrl.dataset.length, trs, option);
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("deptPaging"), $P.find("deptPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("deptPaging"), $P.findn("deptPagingInfo"));
};
$P.ctrl.dataset.onCurrentChange = (dataItem) => {
- Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("deptTbody"));
+ Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.findn("deptTbody"));
}
$P.ctrl.dataset.onSelectionChange = (selectedArr) => {
- Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("deptTbody"), 1, selectedArr);
+ Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("deptTbody"), 1, selectedArr);
};
@@ -197,7 +197,7 @@ $(document).ready(function(){
* pageObject.function
**************************************************************************/
$P.fnReset = () => {
- var searchForm = $P.$find("frmSearch");
+ var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='hidden']").val("");
@@ -209,7 +209,7 @@ $(document).ready(function(){
}
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize;
@@ -234,8 +234,8 @@ $(document).ready(function(){
}
$P.getGridTemplate = () => {
- var notFound = [$P.find("deptNotFound").innerHTML];
- var found = $P.find("deptRow").innerHTML;
+ var notFound = [$P.findn("deptNotFound").innerHTML];
+ var found = $P.findn("deptRow").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickDeptList('" + dataItem.getValue("DEPT_CD") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickDeptList('" + dataItem.getValue("DEPT_CD") + "');");
@@ -255,7 +255,7 @@ $(document).ready(function(){
initScroll = false;
}
- $P.find("table-responsive").changeContent(trs, initScroll, noMore);
+ $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
@@ -266,7 +266,7 @@ $(document).ready(function(){
return;
}
- $P.$find("deptTbody").setCurrentRow(dataKey);
+ $P.$findn("deptTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -327,20 +327,20 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
- $P.$find("btnSearch").on('click', () => $P.searchDeptList());
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnSearch").on('click', () => $P.searchDeptList());
/**************************************************************************
* 초기화
**************************************************************************/
- Componentization.fnMakeResizableTable($P.find("table-responsive"));
- Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollDeptList);
+ Componentization.fnMakeResizableTable($P.findn("table-responsive"));
+ Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollDeptList);
$P.fnReset();
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
if(MY_INFO.institute == "ADMIN00"){
- $P.$find("sggCd").removeAttr("disabled");
+ $P.$findn("sggCd").removeAttr("disabled");
}
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp02020-info.jsp
index d65dbc89..d2eaba4c 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp02020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp02020-info.jsp
@@ -277,7 +277,7 @@ $(document).ready(function(){
/**************************************************************************
* DatasetControl, Dataset, FormFields
**************************************************************************/
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : true,
@@ -305,7 +305,7 @@ $(document).ready(function(){
**************************************************************************/
$P.fnSave = () => {
- if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return;
+ if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
var info = $P.formFields.get();
if(info.deptID.length != 7){
@@ -333,7 +333,7 @@ $(document).ready(function(){
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnSave").on('click', () => $P.fnSave());
+ $P.$findn("btnSave").on('click', () => $P.fnSave());
/**************************************************************************
@@ -341,15 +341,15 @@ $(document).ready(function(){
**************************************************************************/
if(MY_INFO.institute == 'ADMIN00') {
- $P.$find("forRootAdmin").removeAttr("hidden");
+ $P.$findn("forRootAdmin").removeAttr("hidden");
}
var deptInfo = ${deptInfo};
- $P.$find("deptID").attr("disabled","disabled");
- $P.$find("name").attr("disabled","disabled");
+ $P.$findn("deptID").attr("disabled","disabled");
+ $P.$findn("name").attr("disabled","disabled");
$P.ctrl.dataset.setData([deptInfo]);
if(deptInfo.USE_YN == "N"){
- $P.$find("btnSave").attr("disabled","disabled");
+ $P.$findn("btnSave").attr("disabled","disabled");
}
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/rent/rent01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/rent/rent01010-main.jsp
index dd8968ba..50de96fc 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/rent/rent01010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/rent/rent01010-main.jsp
@@ -145,7 +145,7 @@
let $P = pageObject["${pageName}"];
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmSearch"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmSearch"));
/**************************************************************************
* DatasetControl
@@ -177,7 +177,7 @@
$P.renderList(obj["Total"], option);
// datasetPaging
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("dataPaging"), $P.find("dataPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("dataPaging"), $P.findn("dataPagingInfo"));
};
// 현재 선택 자료 변경 이벤트
@@ -186,13 +186,13 @@
let key = item.data.MPNG_ID;
- $P.$find("tbodyList").setCurrentRow(key);
+ $P.$findn("tbodyList").setCurrentRow(key);
};
// 선택(체크) 변경 이벤트
$P.ctrl.onSelectionChange = (selected) => {
- Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("tbodyList"), 1, selected);
- Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnRemove"), selected); // 삭제 버튼
+ Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("tbodyList"), 1, selected);
+ Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnRemove"), selected); // 삭제 버튼
};
// 상세정보 dialog
@@ -257,8 +257,8 @@
let dataList = $P.ctrl.dataset;
let empty = dataList.empty;
- let trs = empty ? [$P.find("tmpltNotFound").innerHTML] :
- dataList.inStrings($P.find("tmpltRows").innerHTML
+ let trs = empty ? [$P.findn("tmpltNotFound").innerHTML] :
+ dataList.inStrings($P.findn("tmpltRows").innerHTML
, (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("MPNG_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("MPNG_ID") + "');")
@@ -271,10 +271,10 @@
initScroll = false;
}
- $P.find("tableRspns").changeContent(trs.join(), initScroll, noMore);
+ $P.findn("tableRspns").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제
- $P.$find("gridAllCheckbox").prop("checked", false);
+ $P.$findn("gridAllCheckbox").prop("checked", false);
// 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
@@ -285,7 +285,7 @@
GRID.checkbox.sync(element, bool);
let atLeastOne = GRID.checkbox.countChecked(element) > 0;
- $P.$find("btnRemove").prop("disabled", !atLeastOne);
+ $P.$findn("btnRemove").prop("disabled", !atLeastOne);
Apply.toDataset.selection($P.ctrl.dataset, element, bool);
}
@@ -294,7 +294,7 @@
$P.dataTableClick = (dataKey) => {
if (dataKey == "") return;
- $P.$find("tbodyList").setCurrentRow(dataKey);
+ $P.$findn("tbodyList").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -304,7 +304,7 @@
let params = {
callPurpose: "update"
, mpngId: dataKey
- , userId: $P.$find("userId").val()
+ , userId: $P.$findn("userId").val()
, schEntNo: $P.ctrl.getValue("ENT_NO")
};
@@ -327,14 +327,14 @@
// 초기화 버튼 이벤트
$P.fnReset = () => {
// 화면 초기화
- $P.find("frmSearch").reset();
+ $P.findn("frmSearch").reset();
// dataset 초기화
$P.ctrl.dataset.clear();
// 기본 데이터 설정
- $P.$find("userId").val("${userId}"); // 사용자 ID
- $P.$find("schUserAcnt").val("${userAcnt}"); // 사용자 계정
+ $P.$findn("userId").val("${userId}"); // 사용자 ID
+ $P.$findn("schUserAcnt").val("${userAcnt}"); // 사용자 계정
}
// 검색 버튼 이벤트
@@ -360,8 +360,8 @@
// DataTables(그리드)
$P.ctrl.query.cellDefs =
- AppSupport.getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)")
- , $($P.find("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)"));
+ AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th").not(":eq(0)")
+ , $($P.findn("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.download();
}
@@ -370,7 +370,7 @@
$P.fnCreate = () => {
let params = {
callPurpose: "create"
- , userId: $P.$find("userId").val()
+ , userId: $P.$findn("userId").val()
, schEntNo: ""
};
@@ -409,19 +409,19 @@
// 이벤트 설정
$P.setEvent = () => {
// 기본 버튼 이벤트
- $P.$find("btnReset").on("click", () => { $P.fnReset() }); // 초기화
- $P.$find("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색
- $P.$find("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀
+ $P.$findn("btnReset").on("click", () => { $P.fnReset() }); // 초기화
+ $P.$findn("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색
+ $P.$findn("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀
// 업무 버튼 이벤트
- $P.$find("btnCreate").on("click", () => { $P.fnCreate(); }); // 등록
- $P.$find("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제
+ $P.$findn("btnCreate").on("click", () => { $P.fnCreate(); }); // 등록
+ $P.$findn("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제
// DataTables width 변경 조정
- Componentization.fnMakeResizableTable($P.find("tableRspns"));
+ Componentization.fnMakeResizableTable($P.findn("tableRspns"));
// DataTables 스크롤 이벤트 생성
- Componentization.fnMakeScrollableTable($P.find("tableRspns"), $P.scrollDataList);
+ Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
}
/**************************************************************************
diff --git a/src/main/webapp/WEB-INF/jsp/fims/rent/rent01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/rent/rent01020-info.jsp
index 10e24822..827865d6 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/rent/rent01020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/rent/rent01020-info.jsp
@@ -139,7 +139,7 @@
let $P = pageObject["${pageName}"];
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmSearch"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmSearch"));
/**************************************************************************
* DatasetControl
@@ -172,7 +172,7 @@
$P.renderList(obj["Total"], option);
// datasetPaging
- Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.find("dataPaging"), $P.find("dataPagingInfo"));
+ Apply.fromDataset.paging($P.ctrl.dataset, obj, $P.findn("dataPaging"), $P.findn("dataPagingInfo"));
};
// 현재 선택 자료 변경 이벤트
@@ -181,14 +181,14 @@
let key = item.data.ENT_ID;
- $P.$find("tbodyList").setCurrentRow(key);
+ $P.$findn("tbodyList").setCurrentRow(key);
};
// 선택(체크) 변경 이벤트
$P.ctrl.onSelectionChange = (selected) => {
- Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("tbodyList"), 1, selected);
- Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnOK"), selected); // 선택 확인 버튼
- Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnRemove"), selected); // 삭제 버튼
+ Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("tbodyList"), 1, selected);
+ Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnOK"), selected); // 선택 확인 버튼
+ Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnRemove"), selected); // 삭제 버튼
};
// 사용자 임대기업 매핑 저장
@@ -277,8 +277,8 @@
let dataList = $P.ctrl.dataset;
let empty = dataList.empty;
- let trs = empty ? [$P.find("tmpltNotFound").innerHTML] :
- dataList.inStrings($P.find("tmpltRows").innerHTML
+ let trs = empty ? [$P.findn("tmpltNotFound").innerHTML] :
+ dataList.inStrings($P.findn("tmpltRows").innerHTML
, (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("ENT_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("ENT_ID") + "');")
@@ -291,10 +291,10 @@
initScroll = false;
}
- $P.find("tableRspns").changeContent(trs.join(), initScroll, noMore);
+ $P.findn("tableRspns").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제
- $P.$find("gridAllCheckbox").prop("checked", false);
+ $P.$findn("gridAllCheckbox").prop("checked", false);
// 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
@@ -305,8 +305,8 @@
GRID.checkbox.sync(element, bool);
let atLeastOne = GRID.checkbox.countChecked(element) > 0;
- $P.$find("btnOK").prop("disabled", !atLeastOne);
- $P.$find("btnRemove").prop("disabled", !atLeastOne);
+ $P.$findn("btnOK").prop("disabled", !atLeastOne);
+ $P.$findn("btnRemove").prop("disabled", !atLeastOne);
Apply.toDataset.selection($P.ctrl.dataset, element, bool);
}
@@ -315,7 +315,7 @@
$P.dataTableClick = (dataKey) => {
if (dataKey == "") return;
- $P.$find("tbodyList").setCurrentRow(dataKey);
+ $P.$findn("tbodyList").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}
@@ -346,14 +346,14 @@
// 업무 구분 변경 이벤트
$P.fnReset = (initSearchYN) => {
// 화면 초기화
- $P.find("frmSearch").reset();
+ $P.findn("frmSearch").reset();
// dataset 초기화
$P.ctrl.dataset.clear();
// 기본 데이터 설정
- $P.$find("userId").val("${userId}"); // 사용자 ID
- $P.$find("schEntNo").val("${schEntNo}"); // 기업 번호
+ $P.$findn("userId").val("${userId}"); // 사용자 ID
+ $P.$findn("schEntNo").val("${schEntNo}"); // 기업 번호
if (initSearchYN && $("#schEntNo--${pageName}").val() != "") {
$P.fnSearchList();
@@ -382,8 +382,8 @@
// DataTable(그리드)
$P.ctrl.query.cellDefs =
- AppSupport.getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)")
- , $($P.find("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)"));
+ AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th").not(":eq(0)")
+ , $($P.findn("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.download();
}
@@ -405,7 +405,7 @@
, onOK: () => {
let params = {
callPurpose: "create"
- , userId: $P.$find("userId").val()
+ , userId: $P.$findn("userId").val()
, entIds: selected.join(",")
}
@@ -462,20 +462,20 @@
// 이벤트
$P.setEvent = () => {
// 기본 버튼 이벤트
- $P.$find("btnReset").on("click", () => { $P.fnReset(); }); // 초기화
- $P.$find("btnSearch").on("click", () => { $P.fnSearchList(); }); // 검색
- $P.$find("btnOK").on("click", () => { $P.fnOK(); }); // 선택 확인
+ $P.$findn("btnReset").on("click", () => { $P.fnReset(); }); // 초기화
+ $P.$findn("btnSearch").on("click", () => { $P.fnSearchList(); }); // 검색
+ $P.$findn("btnOK").on("click", () => { $P.fnOK(); }); // 선택 확인
// 업무 버튼 이벤트
- $P.$find("btnCreate").on("click", () => { $P.fnCreate(); }); // 등록
- $P.$find("btnUpdate").on("click", () => { $P.fnUpdate(); }); // 수정
- $P.$find("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제
+ $P.$findn("btnCreate").on("click", () => { $P.fnCreate(); }); // 등록
+ $P.$findn("btnUpdate").on("click", () => { $P.fnUpdate(); }); // 수정
+ $P.$findn("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제
// DataTable width 변경 조정
- Componentization.fnMakeResizableTable($P.find("tableRspns"));
+ Componentization.fnMakeResizableTable($P.findn("tableRspns"));
// DataTable 스크롤 이벤트 생성
- Componentization.fnMakeScrollableTable($P.find("tableRspns"), $P.scrollDataList);
+ Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
}
/**************************************************************************
diff --git a/src/main/webapp/WEB-INF/jsp/fims/rent/rent01030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/rent/rent01030-info.jsp
index f75ba71a..7e237e21 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/rent/rent01030-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/rent/rent01030-info.jsp
@@ -106,7 +106,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}";
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
/**************************************************************************
* DatasetControl
@@ -166,9 +166,9 @@
**************************************************************************/
// 우편번호 검색 결과
$P.callbackSearchAddr = (obj) => {
- $P.$find("entAddr").val(obj.ADDR); // 주소
- $P.$find("entZip").val(obj.ZIP); // 우편번호
- $P.$find("entDtlAddr").val(obj.DTL_ADDR); // 상세 주소
+ $P.$findn("entAddr").val(obj.ADDR); // 주소
+ $P.$findn("entZip").val(obj.ZIP); // 우편번호
+ $P.$findn("entDtlAddr").val(obj.DTL_ADDR); // 상세 주소
}
/**************************************************************************
@@ -195,7 +195,7 @@
// 임대기업 등록 버튼 클릭 이벤트
$P.fnSave = () => {
// validate 확인
- if (!AppSupport.customValidate($P.$find("frmEdit").find("input,select,textarea"))) return;
+ if (!AppSupport.customValidate($P.$findn("frmEdit").find("input,select,textarea"))) return;
dialog.alert({
content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?"
@@ -210,15 +210,15 @@
// 이벤트
$P.setEvent = () => {
// 기본 버튼 이벤트
- $P.$find("btnZipCode").on("click", () => { $P.fnZipCode() }); // 우편번호 검색
+ $P.$findn("btnZipCode").on("click", () => { $P.fnZipCode() }); // 우편번호 검색
// 버튼 이벤트
- $P.$find("btnSave").on("click", () => { $P.fnSave() }); // 저장
+ $P.$findn("btnSave").on("click", () => { $P.fnSave() }); // 저장
}
// 화면 초기 설정
$P.initForm = () => {
// 화면 초기화
- $P.find("frmEdit").reset();
+ $P.findn("frmEdit").reset();
}
/**************************************************************************
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp
index 927b22f6..652c6909 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01010-main.jsp
@@ -57,12 +57,12 @@ $(document).ready(function() {
**************************************************************************/
// Dataset 변경 이벤트
$P.ctrl.upDataset.onDatasetChange = (obj, option) => {
- var upActiveTab = $P.$find("upGridTabs").find("button.active").text().trim();
+ var upActiveTab = $P.$findn("upGridTabs").find("button.active").text().trim();
$P.renderList("up", upActiveTab);
};
$P.ctrl.downDataset.onDatasetChange = (obj, option) => {
- var downActiveTab = $P.$find("downGridTabs").find("button.active").text().trim();
+ var downActiveTab = $P.$findn("downGridTabs").find("button.active").text().trim();
$P.renderList("down", downActiveTab);
};
@@ -70,13 +70,13 @@ $(document).ready(function() {
$P.ctrl.upDataset.onCurrentChange = (DI) => {
if (!DI) return;
var key = DI.data.CRDN_ID;
- $P.$find("upTbody").setCurrentRow(key);
+ $P.$findn("upTbody").setCurrentRow(key);
};
$P.ctrl.downDataset.onCurrentChange = (DI) => {
if (!DI) return;
var key = DI.data.CRDN_ID;
- $P.$find("downTbody").setCurrentRow(key);
+ $P.$findn("downTbody").setCurrentRow(key);
};
// 선택(체크) 변경 이벤트
@@ -84,13 +84,13 @@ $(document).ready(function() {
var DS = $P.ctrl.upDataset;
var keys = selectedArr.map(item => DS.getKey(item));
- $P.$find("upTbody").find("input[type='checkbox']").each(function() {
+ $P.$findn("upTbody").find("input[type='checkbox']").each(function() {
var checkbox = $(this);
checkbox.prop("checked", keys.includes(checkbox.val()));
});
- let status = getCheckboxesStatus($P.$find("upTbody").find("input[type='checkbox']"));
- let thc = $P.$find("upTheadTr").find("input[type='checkbox']");
+ let status = getCheckboxesStatus($P.$findn("upTbody").find("input[type='checkbox']"));
+ let thc = $P.$findn("upTheadTr").find("input[type='checkbox']");
if(status == 1 && !thc.is(":checked")){
thc.prop("checked", true);
@@ -104,13 +104,13 @@ $(document).ready(function() {
var DS = $P.ctrl.downDataset;
var keys = selectedArr.map(item => DS.getKey(item));
- $P.$find("downTbody").find("input[type='checkbox']").each(function() {
+ $P.$findn("downTbody").find("input[type='checkbox']").each(function() {
var checkbox = $(this);
checkbox.prop("checked", keys.includes(checkbox.val()));
});
- let status = getCheckboxesStatus($P.$find("downTbody").find("input[type='checkbox']"));
- let thc = $P.$find("downTheadTr").find("input[type='checkbox']");
+ let status = getCheckboxesStatus($P.$findn("downTbody").find("input[type='checkbox']"));
+ let thc = $P.$findn("downTheadTr").find("input[type='checkbox']");
if(status == 1 && !thc.is(":checked")){
thc.prop("checked", true);
@@ -139,7 +139,7 @@ $(document).ready(function() {
}
}
- $P.toast = new bootstrap.Toast($P.find("divToast"), {
+ $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true,
autohide: true,
delay: 2000
@@ -148,9 +148,9 @@ $(document).ready(function() {
// 초기화
$P.fnResetAndChangeBiz = (taskSeCd) => {
// 항목 초기화
- $P.$find("ischVltnCd").empty();
+ $P.$findn("ischVltnCd").empty();
- $P.$find("ischVltnCd").append("");
+ $P.$findn("ischVltnCd").append("");
// 업무에 따른 위반 내용
var vltnIdCode = [];
@@ -168,7 +168,7 @@ $(document).ready(function() {
if(taskSeCd != ""){
$(vltnIdCode).each(function(index, item) {
- $P.$find("ischVltnCd").append("");
+ $P.$findn("ischVltnCd").append("");
})
}
@@ -182,7 +182,7 @@ $(document).ready(function() {
// 검색 조건 파라미터 가져오기
$P.getParams = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var formData = formFields.get();
return formData;
@@ -224,10 +224,10 @@ $(document).ready(function() {
query.ischRtpyrNo = "";
}
- $P.$find("upGridTabs").find("button").not(":eq(0)").removeClass("active");
- $P.$find("upGridTabs").find("button").eq(0).addClass("active");
- $P.$find("downGridTabs").find("button").not(":eq(0)").removeClass("active");
- $P.$find("downGridTabs").find("button").eq(0).addClass("active");
+ $P.$findn("upGridTabs").find("button").not(":eq(0)").removeClass("active");
+ $P.$findn("upGridTabs").find("button").eq(0).addClass("active");
+ $P.$findn("downGridTabs").find("button").not(":eq(0)").removeClass("active");
+ $P.$findn("downGridTabs").find("button").eq(0).addClass("active");
$P.ctrl.upDataset.clear();
$P.ctrl.downDataset.clear();
@@ -247,8 +247,8 @@ $(document).ready(function() {
}
cellDefs = AppSupport.getCellDefs(
- $P.$find("upTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
- $($P.find("row").content).find("td").not(".dummy-td").not(":eq(0)"),
+ $P.$findn("upTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
+ $($P.findn("row").content).find("td").not(".dummy-td").not(":eq(0)"),
FimsSupport.getCellDefsForPrivacyCell
);
@@ -260,8 +260,8 @@ $(document).ready(function() {
}
cellDefs = AppSupport.getCellDefs(
- $P.$find("downTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
- $($P.find("row").content).find("td").not(".dummy-td").not(":eq(0)"),
+ $P.$findn("downTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
+ $($P.findn("row").content).find("td").not(".dummy-td").not(":eq(0)"),
FimsSupport.getCellDefsForPrivacyCell
);
@@ -278,8 +278,8 @@ $(document).ready(function() {
var tbodyName = updown == "up" ? "upTbody" : "downTbody";
var trs = "";
- var notFound = [$P.find("notFound").innerHTML];
- var found = $P.find("row").innerHTML;
+ var notFound = [$P.findn("notFound").innerHTML];
+ var found = $P.findn("row").innerHTML;
var DS;
if(updown == "up"){
@@ -325,7 +325,7 @@ $(document).ready(function() {
}
}
- $P.$find(tbodyName).html(trs.join());
+ $P.$findn(tbodyName).html(trs.join());
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
@@ -336,31 +336,31 @@ $(document).ready(function() {
$P.setTotalData = (updown, list) => {
if(updown == "up"){
- $P.$find("minapCnt").set(list.length);
+ $P.$findn("minapCnt").set(list.length);
var minapAmt = list.reduce((a, b) => a + ifEmpty(b.data.MINAP_AMT,0), 0);
- $P.$find("minapAmt").set(minapAmt);
+ $P.$findn("minapAmt").set(minapAmt);
var listForSgg = list.filter(item => MY_INFO.info.sggCd == item.data.SGG_CD);
- $P.$find("minapCntForSgg").set(listForSgg.length);
+ $P.$findn("minapCntForSgg").set(listForSgg.length);
var minapAmtForSgg = listForSgg.reduce((a, b) => a + ifEmpty(b.data.MINAP_AMT,0), 0);
- $P.$find("minapAmtForSgg").set(minapAmtForSgg);
+ $P.$findn("minapAmtForSgg").set(minapAmtForSgg);
} else {
var sunapList = list.filter(item => item.data.TAB_GROUP == '수납');
var sonList = list.filter(item => item.data.TAB_GROUP == '결손');
- $P.$find("sunapCnt").set(sunapList.length);
+ $P.$findn("sunapCnt").set(sunapList.length);
var sunapAmt = sunapList.reduce((a, b) => a + ifEmpty(b.data.RCVMT_AMT,0), 0);
- $P.$find("sunapAmt").set(sunapAmt);
+ $P.$findn("sunapAmt").set(sunapAmt);
var sunapListForSgg = sunapList.filter(item => MY_INFO.info.sggCd == item.data.SGG_CD);
- $P.$find("sunapCntForSgg").set(sunapListForSgg.length);
+ $P.$findn("sunapCntForSgg").set(sunapListForSgg.length);
var sunapAmtForSgg = sunapListForSgg.reduce((a, b) => a + ifEmpty(b.data.RCVMT_AMT,0), 0);
- $P.$find("sunapAmtForSgg").set(sunapAmtForSgg);
+ $P.$findn("sunapAmtForSgg").set(sunapAmtForSgg);
var sonListForSgg = sonList.filter(item => MY_INFO.info.sggCd == item.data.SGG_CD);
- $P.$find("sonCntForSgg").set(sonListForSgg.length);
+ $P.$findn("sonCntForSgg").set(sonListForSgg.length);
var sonAmtForSgg = sonListForSgg.reduce((a, b) => a + ifEmpty(b.data.SUM_AMT,0), 0);
- $P.$find("sonAmtForSgg").set(sonAmtForSgg);
+ $P.$findn("sonAmtForSgg").set(sonAmtForSgg);
}
};
@@ -379,7 +379,7 @@ $(document).ready(function() {
if(cur != null){
clipboardCopy(cur.RTPYR_NO);
- $P.$find("toastText").html("납부자번호가 복사되었습니다.");
+ $P.$findn("toastText").html("납부자번호가 복사되었습니다.");
$P.toast.show();
}
@@ -793,38 +793,38 @@ $(document).ready(function() {
//이벤트
$P.setEvent = () => {
- $P.$find("btnReset").on("click", function(){ $P.fnReset(); });
- $P.$find("btnSearch").on("click", function(){ $P.fnSearchList(); });
+ $P.$findn("btnReset").on("click", function(){ $P.fnReset(); });
+ $P.$findn("btnSearch").on("click", function(){ $P.fnSearchList(); });
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
- $P.$find("term").onEnterPress($P.fnSearchList);
- $P.$find("btnPrintCrdn").on("click", function(){ $P.fnPrintCrdn(); });
- $P.$find("btnPrintBill").on("click", function(){ $P.fnPrintBill(); });
+ $P.$findn("term").onEnterPress($P.fnSearchList);
+ $P.$findn("btnPrintCrdn").on("click", function(){ $P.fnPrintCrdn(); });
+ $P.$findn("btnPrintBill").on("click", function(){ $P.fnPrintBill(); });
- $P.$find("btnUpExcel").on("click", function(){ $P.fnExcel("up"); });
- $P.$find("btnDownExcel").on("click", function(){ $P.fnExcel("down"); });
+ $P.$findn("btnUpExcel").on("click", function(){ $P.fnExcel("up"); });
+ $P.$findn("btnDownExcel").on("click", function(){ $P.fnExcel("down"); });
- $P.$find("btnUpCopyPyrNo").on("click", function(){ $P.fnCopyPyrNo("up"); });
- $P.$find("btnDownCopyPyrNo").on("click", function(){ $P.fnCopyPyrNo("down"); });
+ $P.$findn("btnUpCopyPyrNo").on("click", function(){ $P.fnCopyPyrNo("up"); });
+ $P.$findn("btnDownCopyPyrNo").on("click", function(){ $P.fnCopyPyrNo("down"); });
- $P.$find("btnUpManageEtcCn").on("click", function(){ $P.fnManageEtcCn("up"); });
- $P.$find("btnDownManageEtcCn").on("click", function(){ $P.fnManageEtcCn("down"); });
+ $P.$findn("btnUpManageEtcCn").on("click", function(){ $P.fnManageEtcCn("up"); });
+ $P.$findn("btnDownManageEtcCn").on("click", function(){ $P.fnManageEtcCn("down"); });
- $P.$find("btnUpInputEtcCn").on("click", function(){ $P.fnInputEtcCn("up"); });
- $P.$find("btnDownInputEtcCn").on("click", function(){ $P.fnInputEtcCn("down"); });
+ $P.$findn("btnUpInputEtcCn").on("click", function(){ $P.fnInputEtcCn("up"); });
+ $P.$findn("btnDownInputEtcCn").on("click", function(){ $P.fnInputEtcCn("down"); });
- $P.$find("btnDownPrintRcvmtConfirm").on("click", function(){ $P.fnPrintRcvmtConfirm(); });
+ $P.$findn("btnDownPrintRcvmtConfirm").on("click", function(){ $P.fnPrintRcvmtConfirm(); });
- $P.$find("btnUpPrintAdvntce").on("click", function(){ $P.fnPrintAdvntce(); });
- $P.$find("btnPrintNht").on("click", function(){ $P.fnPrintNht(); });
+ $P.$findn("btnUpPrintAdvntce").on("click", function(){ $P.fnPrintAdvntce(); });
+ $P.$findn("btnPrintNht").on("click", function(){ $P.fnPrintNht(); });
//$("#btn").on("click", function(){ });
// 달력 초기화
- AppSupport.initDatepicker($P.find("frmSearch"));
- AppSupport.initDetailSearchButton($P.find("frmSearch"));
+ AppSupport.initDatepicker($P.findn("frmSearch"));
+ AppSupport.initDetailSearchButton($P.findn("frmSearch"));
- $P.$find("frmSearch").find(".form-time").each(function(){
+ $P.$findn("frmSearch").find(".form-time").each(function(){
$(this).on("input",function(){
var value = this.value.replaceAll(":","");
@@ -838,15 +838,15 @@ $(document).ready(function() {
});
// DataTables width 변경 조정
- Componentization.fnMakeResizableTable($P.find("table-responsive-up"));
- Componentization.fnMakeResizableTable($P.find("table-responsive-down"));
+ Componentization.fnMakeResizableTable($P.findn("table-responsive-up"));
+ Componentization.fnMakeResizableTable($P.findn("table-responsive-down"));
}
/**************************************************************************
* script 진입
**************************************************************************/
- $P.$find("upTheadTr").html($P.find("cols").innerHTML);
- $P.$find("downTheadTr").html($P.find("cols").innerHTML);
+ $P.$findn("upTheadTr").html($P.findn("cols").innerHTML);
+ $P.$findn("downTheadTr").html($P.findn("cols").innerHTML);
// 이벤트 설정
$P.setEvent();
@@ -861,18 +861,18 @@ $(document).ready(function() {
if($("#fastBy--top").val() == "vhrno"){
- $P.$find("ischVhrno").val($("#fastTerm--top").val());
+ $P.$findn("ischVhrno").val($("#fastTerm--top").val());
} else if($("#fastBy--top").val() == "rtpyrNm"){
- $P.$find("ischRtpyrNm").val($("#fastTerm--top").val());
+ $P.$findn("ischRtpyrNm").val($("#fastTerm--top").val());
} else if($("#fastBy--top").val() == "rtpyrNo"){
- $P.$find("ischRtpyrNo").val($("#fastTerm--top").val());
+ $P.$findn("ischRtpyrNo").val($("#fastTerm--top").val());
} else if($("#fastBy--top").val() == "cvlcptAplcntNm"){
- $P.$find("ischCvlcptAplcntNm").val($("#fastTerm--top").val());
+ $P.$findn("ischCvlcptAplcntNm").val($("#fastTerm--top").val());
} else {
return;
}
- $P.$find("btnSearch").click();
+ $P.$findn("btnSearch").click();
}
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01100-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01100-info.jsp
index 819a56a8..5c1d9a64 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01100-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01100-info.jsp
@@ -76,12 +76,12 @@ $(document).ready(function(){
$P.clickGrid = (element) => {
var key = element.dataset.key;
- $P.$find("tbody").setCurrentRow(key);
+ $P.$findn("tbody").setCurrentRow(key);
}
//특기사항 입력
$P.fnInputEtcCn = () => {
- var etcCn = $P.$find("etcCn").val();
+ var etcCn = $P.$findn("etcCn").val();
if(etcCn == ""){
alert("특기사항을 입력하세요.");
return;
@@ -104,10 +104,10 @@ $(document).ready(function(){
}
//버튼 이벤트
- $P.$find("btnInputEtcCn").on("click", () => $P.fnInputEtcCn() );
+ $P.$findn("btnInputEtcCn").on("click", () => $P.fnInputEtcCn() );
//첫번째 줄 클릭
- $P.$find("tbody").find("tr:eq(0)").click();
+ $P.$findn("tbody").find("tr:eq(0)").click();
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp
index 48b06a0a..322fb087 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01110-info.jsp
@@ -87,14 +87,14 @@ $(document).ready(function(){
$P.clickGrid = (element) => {
var key = element.dataset.key;
- $P.$find("tbody").setCurrentRow(key);
+ $P.$findn("tbody").setCurrentRow(key);
}
//단속내역서 파일 생성
$P.fnMakeCrdnListFile = () => {
var privateInfoYn = "Y";
- if($P.$find("privateInfoYn").is(":checked")){
+ if($P.$findn("privateInfoYn").is(":checked")){
privateInfoYn = "N";
}
@@ -119,8 +119,8 @@ $(document).ready(function(){
$P.fnExcelDown = () => {
var query = {};
- var cellDefs = AppSupport.getCellDefs($P.$find("theadTr").find("th").not(".dummy-th"),
- $($P.find("found").content).find("td").not(".dummy-td"));
+ var cellDefs = AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th"),
+ $($P.findn("found").content).find("td").not(".dummy-td"));
query.cellDefs = cellDefs;
query.download = "xls";
@@ -131,12 +131,12 @@ $(document).ready(function(){
}
//버튼 이벤트
- $P.$find("btnPrintCrdnList").on("click", () => $P.fnMakeCrdnListFile() );
- $P.$find("btnPrintCrdnConfirm").on("click", () => $P.fnMakeCrdnConfirmFile() );
- $P.$find("btnExcel").on("click", () => $P.fnExcelDown());
+ $P.$findn("btnPrintCrdnList").on("click", () => $P.fnMakeCrdnListFile() );
+ $P.$findn("btnPrintCrdnConfirm").on("click", () => $P.fnMakeCrdnConfirmFile() );
+ $P.$findn("btnExcel").on("click", () => $P.fnExcelDown());
//첫번째 줄 클릭
- $P.$find("tbody").find("tr:eq(0)").click();
+ $P.$findn("tbody").find("tr:eq(0)").click();
});
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01120-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01120-info.jsp
index c16ae9d3..318aaf72 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01120-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01120-info.jsp
@@ -194,17 +194,17 @@ $(document).ready(function(){
$P.clickGrid = (element) => {
var key = element.dataset.key;
- $P.$find("tbody").setCurrentRow(key);
+ $P.$findn("tbody").setCurrentRow(key);
var info = $P.provided.getInfo(key);
- var formFields = new FimsFormFields($P.selector("frmEdit"));
+ var formFields = new FimsFormFields($P.selectorn("frmEdit"));
formFields.set(null,info);
}
//교부청구서 파일 생성
$P.fnMakeRequestForDeliveryFile = () => {
- if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return;
+ if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
$P.checkActno();
}
@@ -223,7 +223,7 @@ $(document).ready(function(){
dialog.open({
id : dialogId,
title : "계좌번호 확인",
- content : $P.find("checkActnoTemplate").innerHTML,
+ content : $P.findn("checkActnoTemplate").innerHTML,
size : "md",
init : () => {
$("#"+dialogId).attr("name", dialogName);
@@ -254,7 +254,7 @@ $(document).ready(function(){
$P.checkActnoCallback = (change, callbackDialogId) => {
var url = wctx.url("/sprt/sprt01/120/makeRequestForDeliveryFileFromHwpFormat.do");
- var formFields = new FimsFormFields($P.selector("frmEdit"));
+ var formFields = new FimsFormFields($P.selectorn("frmEdit"));
var globalVariable = formFields.get();
var changed = false;
@@ -290,10 +290,10 @@ $(document).ready(function(){
//채권신고서 파일 생성
$P.fnMakeReportOnClaimsFile = () => {
- if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return;
+ if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
var url = wctx.url("/sprt/sprt01/120/makeReportOnClaimsFileFromHwpFormat.do");
- var formFields = new FimsFormFields($P.selector("frmEdit"));
+ var formFields = new FimsFormFields($P.selectorn("frmEdit"));
var globalVariable = formFields.get();
$P.fnMakeFile(url, globalVariable);
@@ -311,11 +311,11 @@ $(document).ready(function(){
}
//버튼이벤트
- $P.$find("btnPrintRequestForDelivery").on("click", () => $P.fnMakeRequestForDeliveryFile() );
- $P.$find("btnPrintReportOnClaims").on("click", () => $P.fnMakeReportOnClaimsFile() );
+ $P.$findn("btnPrintRequestForDelivery").on("click", () => $P.fnMakeRequestForDeliveryFile() );
+ $P.$findn("btnPrintReportOnClaims").on("click", () => $P.fnMakeReportOnClaimsFile() );
//첫번째 줄 클릭
- $P.$find("tbody").find("tr:eq(0)").click();
+ $P.$findn("tbody").find("tr:eq(0)").click();
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01140-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01140-info.jsp
index 41f0115b..c88806c2 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01140-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01140-info.jsp
@@ -108,22 +108,22 @@ $(document).ready(function(){
$P.clickGrid = (element) => {
var key = element.dataset.key;
- $P.$find("tbody").setCurrentRow(key);
+ $P.$findn("tbody").setCurrentRow(key);
var info = $P.provided.getInfo(key);
- var formFields = new FimsFormFields($P.selector("frmEdit"));
+ var formFields = new FimsFormFields($P.selectorn("frmEdit"));
formFields.set(null,info);
}
$P.fnMakeFile = (fileType, paper) => {
- var checkboxes = $P.$find("tbody").find("input[type='checkbox']:checked");
+ var checkboxes = $P.$findn("tbody").find("input[type='checkbox']:checked");
if(checkboxes.length < 1){
alert("체크된 자료가 없습니다.");
return;
}
- if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return;
+ if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
var checkedCrdnIds = [];
checkboxes.each(function(){
@@ -149,7 +149,7 @@ $(document).ready(function(){
fileTypeName = "외주 요청 파일";
}
- var formFields = new FimsFormFields($P.selector("frmEdit"));
+ var formFields = new FimsFormFields($P.selectorn("frmEdit"));
var globalVariable = formFields.get();
var submitParam = {
@@ -200,7 +200,7 @@ $(document).ready(function(){
}
$P.fnOpenOtptStng = () => {
- var checkboxes = $P.$find("tbody").find("input[type='checkbox']:checked");
+ var checkboxes = $P.$findn("tbody").find("input[type='checkbox']:checked");
if(checkboxes.length < 1){
alert("체크된 자료가 없습니다.");
return;
@@ -259,13 +259,13 @@ $(document).ready(function(){
}
//버튼이벤트
- $P.$find("btnPrintAdvntcePdf01").on("click", () => $P.fnMakeFile('pdf','01') );
- $P.$find("btnPrintAdvntcePdf02").on("click", () => $P.fnMakeFile('pdf','02') );
- $P.$find("btnPrintAdvntceOutsourcing").on("click", () => $P.fnMakeFile('outsourcing') );
- $P.$find("btnOpenOtptStng").on("click", () => $P.fnOpenOtptStng() );
+ $P.$findn("btnPrintAdvntcePdf01").on("click", () => $P.fnMakeFile('pdf','01') );
+ $P.$findn("btnPrintAdvntcePdf02").on("click", () => $P.fnMakeFile('pdf','02') );
+ $P.$findn("btnPrintAdvntceOutsourcing").on("click", () => $P.fnMakeFile('outsourcing') );
+ $P.$findn("btnOpenOtptStng").on("click", () => $P.fnOpenOtptStng() );
//첫번째 줄 클릭
- $P.$find("tbody").find("tr:eq(0)").click();
+ $P.$findn("tbody").find("tr:eq(0)").click();
});
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01150-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01150-info.jsp
index 47a5f09b..b321de0d 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01150-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01150-info.jsp
@@ -106,21 +106,21 @@ $(document).ready(function(){
$P.clickGrid = (element) => {
var key = element.dataset.key;
- $P.$find("tbody").setCurrentRow(key);
+ $P.$findn("tbody").setCurrentRow(key);
var info = $P.provided.getInfo(key);
- var formFields = new FimsFormFields($P.selector("frmEdit"));
+ var formFields = new FimsFormFields($P.selectorn("frmEdit"));
formFields.set(null,info);
}
$P.fnMakeFile = (fileType, paper) => {
- var checkboxes = $P.$find("tbody").find("input[type='checkbox']:checked");
+ var checkboxes = $P.$findn("tbody").find("input[type='checkbox']:checked");
if(checkboxes.length < 1){
alert("체크된 자료가 없습니다.");
return;
}
- if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return;
+ if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
var checkedCrdnIds = [];
checkboxes.each(function(){
@@ -146,7 +146,7 @@ $(document).ready(function(){
fileTypeName = "외주 요청 파일";
}
- var formFields = new FimsFormFields($P.selector("frmEdit"));
+ var formFields = new FimsFormFields($P.selectorn("frmEdit"));
var globalVariable = formFields.get();
var submitParam = {
@@ -195,7 +195,7 @@ $(document).ready(function(){
}
$P.fnOpenOtptStng = () => {
- var checkboxes = $P.$find("tbody").find("input[type='checkbox']:checked");
+ var checkboxes = $P.$findn("tbody").find("input[type='checkbox']:checked");
if(checkboxes.length < 1){
alert("체크된 자료가 없습니다.");
return;
@@ -252,13 +252,13 @@ $(document).ready(function(){
}
//버튼이벤트
- $P.$find("btnPrintNhtPdf01").on("click", () => $P.fnMakeFile('pdf','01') );
- $P.$find("btnPrintNhtPdf02").on("click", () => $P.fnMakeFile('pdf','02') );
- $P.$find("btnPrintNhtOutsourcing").on("click", () => $P.fnMakeFile('outsourcing') );
- $P.$find("btnOpenOtptStng").on("click", () => $P.fnOpenOtptStng() );
+ $P.$findn("btnPrintNhtPdf01").on("click", () => $P.fnMakeFile('pdf','01') );
+ $P.$findn("btnPrintNhtPdf02").on("click", () => $P.fnMakeFile('pdf','02') );
+ $P.$findn("btnPrintNhtOutsourcing").on("click", () => $P.fnMakeFile('outsourcing') );
+ $P.$findn("btnOpenOtptStng").on("click", () => $P.fnOpenOtptStng() );
//첫번째 줄 클릭
- $P.$find("tbody").find("tr:eq(0)").click();
+ $P.$findn("tbody").find("tr:eq(0)").click();
});
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp
index a4548e58..080f1933 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp
@@ -110,7 +110,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}";
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEdit"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
// 자료 이동을 위한 자료의 Index. 0부터 시작.
$P.curDataIndex;
// 현재 탭의 위치
@@ -227,7 +227,7 @@
let viewNumber = $P.curDataIndex + 1;
// 표시
- $P.$find("countStauts").val(viewNumber + " of " + dataItems.length);
+ $P.$findn("countStauts").val(viewNumber + " of " + dataItems.length);
}
// 이전 자료 조회
@@ -484,16 +484,16 @@
// 이벤트 설정
$P.setEvent = () => {
// 기본 버튼 이벤트
- $P.$find("btnPrev").on("click", () => { $P.fnPrev() }); // 이전
- $P.$find("btnNext").on("click", () => { $P.fnNext() }); // 다음
-
- $P.$find("btnCrdnPayer").on("click", () => { $P.fnCrdnPayerInfo() }); // 단속 정보
- $P.$find("btnOpnnSbmsn").on("click", () => { $P.fnOpnnSbmsnInfo() }); // 의견제출 정보
- $P.$find("btnSndng").on("click", () => { $P.fnSndngInfo() }); // 발송반송 정보
- $P.$find("btnPrcs").on("click", () => { $P.fnPrcsInfo() }); // 처리상세 정보
- $P.$find("btnLevy").on("click", () => { $P.fnLevyInfo() }); // 부과체납 정보
- $P.$find("btnRcvmt").on("click", () => { $P.fnRcvmtInfo() }); // 수납 정보
- $P.$find("btnCvlcptDscsn").on("click", () => { $P.fnCvlcptDscsnInfo() }); // 민원상담 정보
+ $P.$findn("btnPrev").on("click", () => { $P.fnPrev() }); // 이전
+ $P.$findn("btnNext").on("click", () => { $P.fnNext() }); // 다음
+
+ $P.$findn("btnCrdnPayer").on("click", () => { $P.fnCrdnPayerInfo() }); // 단속 정보
+ $P.$findn("btnOpnnSbmsn").on("click", () => { $P.fnOpnnSbmsnInfo() }); // 의견제출 정보
+ $P.$findn("btnSndng").on("click", () => { $P.fnSndngInfo() }); // 발송반송 정보
+ $P.$findn("btnPrcs").on("click", () => { $P.fnPrcsInfo() }); // 처리상세 정보
+ $P.$findn("btnLevy").on("click", () => { $P.fnLevyInfo() }); // 부과체납 정보
+ $P.$findn("btnRcvmt").on("click", () => { $P.fnRcvmtInfo() }); // 수납 정보
+ $P.$findn("btnCvlcptDscsn").on("click", () => { $P.fnCvlcptDscsnInfo() }); // 민원상담 정보
}
// 기본 데이터 설정
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp
index 363c9745..46a6abf3 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp
@@ -349,14 +349,14 @@
// pageObject
let $P = pageObject["${pageName}"];
- $P.$find("photoMainWrapper").addClass("w-px-380 min-w-px-380");
+ $P.$findn("photoMainWrapper").addClass("w-px-380 min-w-px-380");
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEditCrdnPayer"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEditCrdnPayer"));
// 단속 사진
$P.existFileArr = [];
$P.localUploadArr = [];
- $P.uploadSet = uploadSupport($P.selector("inputUploadSet"));
+ $P.uploadSet = uploadSupport($P.selectorn("inputUploadSet"));
/**************************************************************************
* DatasetControl
@@ -476,7 +476,7 @@
, data: params || {}
, success: (resp) => {
// 초기화
- $P.find("frmEditCrdnPayer").reset(); // 화면 초기화
+ $P.findn("frmEditCrdnPayer").reset(); // 화면 초기화
$P.ctrlCrdnPayer.dataset.clear(); // Dataset 초기화
// sprt02010-main 단속 정보
@@ -977,77 +977,77 @@
// 이벤트 설정
$P.setEvent = () => {
// 업무 버튼 이벤트
- $P.$find("btnViewCvlcptOrgnl").on("click", () => {
- $P.fnViewCvlcptOrgnl($P.$find("btnViewCvlcptOrgnl").attr("title")); // 민원 원본 보기
+ $P.$findn("btnViewCvlcptOrgnl").on("click", () => {
+ $P.fnViewCvlcptOrgnl($P.$findn("btnViewCvlcptOrgnl").attr("title")); // 민원 원본 보기
});
- $P.$find("btnViewAnswerPreview").on("click", () => {
- $P.fnViewAnswerPreview($P.$find("btnViewAnswerPreview").attr("title")); // 민원 답변 보기
+ $P.$findn("btnViewAnswerPreview").on("click", () => {
+ $P.fnViewAnswerPreview($P.$findn("btnViewAnswerPreview").attr("title")); // 민원 답변 보기
});
- $P.$find("btnPrintNhtPdf01").on("click", () => {
- $P.fnMakeFileNht($P.$find("btnPrintNhtPdf01").attr("title"), "pdf", "01"); // 고지서 출력
+ $P.$findn("btnPrintNhtPdf01").on("click", () => {
+ $P.fnMakeFileNht($P.$findn("btnPrintNhtPdf01").attr("title"), "pdf", "01"); // 고지서 출력
});
- $P.$find("btnPrintNhtPdf02").on("click", () => {
- $P.fnMakeFileNht($P.$find("btnPrintNhtPdf02").attr("title"), "pdf", "02"); // 고지서 출력
+ $P.$findn("btnPrintNhtPdf02").on("click", () => {
+ $P.fnMakeFileNht($P.$findn("btnPrintNhtPdf02").attr("title"), "pdf", "02"); // 고지서 출력
});
- $P.$find("btnUpdateCrdn").on("click", () => {
- $P.fnUpdateCrdn($P.$find("btnUpdateCrdn").attr("title")); // 단속 정보 수정
+ $P.$findn("btnUpdateCrdn").on("click", () => {
+ $P.fnUpdateCrdn($P.$findn("btnUpdateCrdn").attr("title")); // 단속 정보 수정
});
- $P.$find("btnRemoveCrdn").on("click", () => {
- $P.fnRemoveCrdn($P.$find("btnRemoveCrdn").attr("title")); // 단속 정보 삭제
+ $P.$findn("btnRemoveCrdn").on("click", () => {
+ $P.fnRemoveCrdn($P.$findn("btnRemoveCrdn").attr("title")); // 단속 정보 삭제
});
- $P.$find("btnUpdateCrdnSttsCd").on("click", () => {
- $P.fnUpdateCrdnSttsCd($P.$find("btnUpdateCrdnSttsCd").attr("title")); // 단속 상태 변경
+ $P.$findn("btnUpdateCrdnSttsCd").on("click", () => {
+ $P.fnUpdateCrdnSttsCd($P.$findn("btnUpdateCrdnSttsCd").attr("title")); // 단속 상태 변경
});
- $P.$find("btnCreateCrdnReReg").on("click", () => {
- $P.fnCreateCrdnReReg($P.$find("btnCreateCrdnReReg").attr("title")); // 단속 재등록
+ $P.$findn("btnCreateCrdnReReg").on("click", () => {
+ $P.fnCreateCrdnReReg($P.$findn("btnCreateCrdnReReg").attr("title")); // 단속 재등록
});
- $P.$find("btnDeleteCrdnPayer").on("click", () => {
- $P.fnDeleteCrdnPayer($P.$find("btnDeleteCrdnPayer").attr("title")); // 납부자 초기화
+ $P.$findn("btnDeleteCrdnPayer").on("click", () => {
+ $P.fnDeleteCrdnPayer($P.$findn("btnDeleteCrdnPayer").attr("title")); // 납부자 초기화
});
- $P.$find("btnUpdatePayer").on("click", () => {
- $P.fnUpdatePayer($P.$find("btnUpdatePayer").attr("title")); // 납부자 수정
+ $P.$findn("btnUpdatePayer").on("click", () => {
+ $P.fnUpdatePayer($P.$findn("btnUpdatePayer").attr("title")); // 납부자 수정
});
}
// 초기 화면 설정
$P.initForm = () => {
// 초기화
- $P.find("frmEditCrdnPayer").reset(); // 화면 초기화
+ $P.findn("frmEditCrdnPayer").reset(); // 화면 초기화
$P.ctrlCrdnPayer.dataset.clear(); // Dataset 초기화
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") {
- $P.$find("btnPrintNhtPdf01").prop("disabled", true);
- $P.$find("btnPrintNhtPdf02").prop("disabled", true);
- $P.$find("btnUpdateCrdn").prop("disabled", true);
- $P.$find("btnRemoveCrdn").prop("disabled", true);
- $P.$find("btnUpdateCrdnSttsCd").prop("disabled", true);
- $P.$find("btnCreateCrdnReReg").prop("disabled", true);
- $P.$find("btnDeleteCrdnPayer").prop("disabled", true);
- $P.$find("btnUpdatePayer").prop("disabled", true);
- $P.$find("btnOpenVideoCapture").prop("disabled", true);
- $P.$find("btnAddFile").prop("disabled", true);
- $P.$find("btnEditPhoto").prop("disabled", true);
- $P.$find("btnDeleteExistPhoto").prop("disabled", true);
+ $P.$findn("btnPrintNhtPdf01").prop("disabled", true);
+ $P.$findn("btnPrintNhtPdf02").prop("disabled", true);
+ $P.$findn("btnUpdateCrdn").prop("disabled", true);
+ $P.$findn("btnRemoveCrdn").prop("disabled", true);
+ $P.$findn("btnUpdateCrdnSttsCd").prop("disabled", true);
+ $P.$findn("btnCreateCrdnReReg").prop("disabled", true);
+ $P.$findn("btnDeleteCrdnPayer").prop("disabled", true);
+ $P.$findn("btnUpdatePayer").prop("disabled", true);
+ $P.$findn("btnOpenVideoCapture").prop("disabled", true);
+ $P.$findn("btnAddFile").prop("disabled", true);
+ $P.$findn("btnEditPhoto").prop("disabled", true);
+ $P.$findn("btnDeleteExistPhoto").prop("disabled", true);
} else {
- $P.$find("btnPrintNhtPdf01").prop("disabled", false);
- $P.$find("btnPrintNhtPdf02").prop("disabled", false);
- $P.$find("btnUpdateCrdn").prop("disabled", false);
- $P.$find("btnRemoveCrdn").prop("disabled", false);
- $P.$find("btnUpdateCrdnSttsCd").prop("disabled", false);
- $P.$find("btnCreateCrdnReReg").prop("disabled", false);
- $P.$find("btnDeleteCrdnPayer").prop("disabled", false);
- $P.$find("btnUpdatePayer").prop("disabled", false);
- $P.$find("btnOpenVideoCapture").prop("disabled", false);
- $P.$find("btnAddFile").prop("disabled", false);
- $P.$find("btnEditPhoto").prop("disabled", false);
- $P.$find("btnDeleteExistPhoto").prop("disabled", false);
+ $P.$findn("btnPrintNhtPdf01").prop("disabled", false);
+ $P.$findn("btnPrintNhtPdf02").prop("disabled", false);
+ $P.$findn("btnUpdateCrdn").prop("disabled", false);
+ $P.$findn("btnRemoveCrdn").prop("disabled", false);
+ $P.$findn("btnUpdateCrdnSttsCd").prop("disabled", false);
+ $P.$findn("btnCreateCrdnReReg").prop("disabled", false);
+ $P.$findn("btnDeleteCrdnPayer").prop("disabled", false);
+ $P.$findn("btnUpdatePayer").prop("disabled", false);
+ $P.$findn("btnOpenVideoCapture").prop("disabled", false);
+ $P.$findn("btnAddFile").prop("disabled", false);
+ $P.$findn("btnEditPhoto").prop("disabled", false);
+ $P.$findn("btnDeleteExistPhoto").prop("disabled", false);
}
let taskSeCd = pageObject["${mainPageName}"].mainCtrl.getValue("TASK_SE_CD");
// 업무 구분에 따른 화면 설정
- FimsSupport.renderForTask($P.find("frmEditCrdnPayer"), taskSeCd.toLowerCase());
+ FimsSupport.renderForTask($P.findn("frmEditCrdnPayer"), taskSeCd.toLowerCase());
}
/**************************************************************************
@@ -1063,12 +1063,12 @@
$P.ctrlCrdnPayer.setData([${crdnPayerInfo}]);
// 4. 사진영역 설정
- settingPhotoMain("${pageName}", $P.find("crdnId")
+ settingPhotoMain("${pageName}", $P.findn("crdnId")
, function() {
return {
- vhrno: $P.$find("vhrno").val()
- , vhclNm: $P.$find("vhclNm").val()
- , vhclColr: $P.$find("vhclColr").val()
+ vhrno: $P.$findn("vhrno").val()
+ , vhclNm: $P.$findn("vhclNm").val()
+ , vhclColr: $P.$findn("vhclColr").val()
};
}
, async function(vhrnoEl) {
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp
index 9ad0646a..6a29d9b4 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp
@@ -201,7 +201,7 @@
let $P = pageObject["${pageName}"];
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEditOpnn"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEditOpnn"));
// 파일 리스트
$P.fileListArr = new Array();
@@ -325,7 +325,7 @@
, data: params || {}
, success: (resp) => {
// 초기화
- $P.find("frmEditOpnn").reset(); // 화면 초기화
+ $P.findn("frmEditOpnn").reset(); // 화면 초기화
$P.ctrlOpnn.dataset.clear(); // Dataset 초기화
// sprt02010-main 단속 정보
@@ -572,7 +572,7 @@
// 첨부파일 조회
$P.fnSearchFileList = (opnnId) => {
- let tableFileList = $P.find("fileList"); // table element 찾기
+ let tableFileList = $P.findn("fileList"); // table element 찾기
let fileLength = tableFileList.rows.length;
// 기존 table에 자료가 존재하면 tableRow 삭제
@@ -608,7 +608,7 @@
innerHtml += "pageObject['${pageName}'].fnFileDownload(" + item.FILE_ID + ");" + ">" + "";
innerHtml += "";
- $P.$find("tbodyFileList").append(innerHtml);
+ $P.$findn("tbodyFileList").append(innerHtml);
});
}
});
@@ -627,40 +627,40 @@
// 이벤트 설정
$P.setEvent = () => {
// 업무 버튼 이벤트
- $P.$find("btnCreateOpnnSbmsn").on("click", function() {
- $P.fnCreateOpnnSbmsn($P.$find("btnCreateOpnnSbmsn").attr("title")); // 의견제출 등록
+ $P.$findn("btnCreateOpnnSbmsn").on("click", function() {
+ $P.fnCreateOpnnSbmsn($P.$findn("btnCreateOpnnSbmsn").attr("title")); // 의견제출 등록
});
- $P.$find("btnUpdateOpnnSbmsn").on("click", function() {
- $P.fnUpdateOpnnSbmsn($P.$find("btnUpdateOpnnSbmsn").attr("title")); // 의견제출 수정
+ $P.$findn("btnUpdateOpnnSbmsn").on("click", function() {
+ $P.fnUpdateOpnnSbmsn($P.$findn("btnUpdateOpnnSbmsn").attr("title")); // 의견제출 수정
});
- $P.$find("btnRemoveOpnnSbmsn").on("click", function() {
- $P.fnRemoveOpnnSbmsn($P.$find("btnRemoveOpnnSbmsn").attr("title")); // 의견제출 삭제
+ $P.$findn("btnRemoveOpnnSbmsn").on("click", function() {
+ $P.fnRemoveOpnnSbmsn($P.$findn("btnRemoveOpnnSbmsn").attr("title")); // 의견제출 삭제
});
- $P.$find("btnPrintDlbrDecsn").on("click", function() {
- $P.fnPrintDlbrDecsn($P.$find("btnPrintDlbrDecsn").attr("title")); // 심의의결서 출력
+ $P.$findn("btnPrintDlbrDecsn").on("click", function() {
+ $P.fnPrintDlbrDecsn($P.$findn("btnPrintDlbrDecsn").attr("title")); // 심의의결서 출력
});
- $P.$find("btnUpdateOpnnSbmsnDlbrt").on("click", function() {
- $P.fnUpdateOpnnSbmsnDlbrt($P.$find("btnUpdateOpnnSbmsnDlbrt").attr("title")); // 의견제출 심의
+ $P.$findn("btnUpdateOpnnSbmsnDlbrt").on("click", function() {
+ $P.fnUpdateOpnnSbmsnDlbrt($P.$findn("btnUpdateOpnnSbmsnDlbrt").attr("title")); // 의견제출 심의
});
}
// 초기 화면 설정
$P.initForm = () => {
// 초기화
- $P.find("frmEditOpnn").reset(); // 화면 초기화
+ $P.findn("frmEditOpnn").reset(); // 화면 초기화
$P.ctrlOpnn.dataset.clear(); // Dataset 초기화
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") {
- $P.$find("btnCreateOpnnSbmsn").prop("disabled", true);
- $P.$find("btnUpdateOpnnSbmsn").prop("disabled", true);
- $P.$find("btnRemoveOpnnSbmsn").prop("disabled", true);
- $P.$find("btnUpdateOpnnSbmsnDlbrt").prop("disabled", true);
+ $P.$findn("btnCreateOpnnSbmsn").prop("disabled", true);
+ $P.$findn("btnUpdateOpnnSbmsn").prop("disabled", true);
+ $P.$findn("btnRemoveOpnnSbmsn").prop("disabled", true);
+ $P.$findn("btnUpdateOpnnSbmsnDlbrt").prop("disabled", true);
} else {
- $P.$find("btnCreateOpnnSbmsn").prop("disabled", false);
- $P.$find("btnUpdateOpnnSbmsn").prop("disabled", false);
- $P.$find("btnRemoveOpnnSbmsn").prop("disabled", false);
- $P.$find("btnUpdateOpnnSbmsnDlbrt").prop("disabled", false);
+ $P.$findn("btnCreateOpnnSbmsn").prop("disabled", false);
+ $P.$findn("btnUpdateOpnnSbmsn").prop("disabled", false);
+ $P.$findn("btnRemoveOpnnSbmsn").prop("disabled", false);
+ $P.$findn("btnUpdateOpnnSbmsnDlbrt").prop("disabled", false);
}
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02040-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02040-info.jsp
index d8e7d9fb..bc53cdc7 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02040-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02040-info.jsp
@@ -211,7 +211,7 @@
let $P = pageObject["${pageName}"];
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEditSndngDtl"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEditSndngDtl"));
/**************************************************************************
* DatasetControl
@@ -262,7 +262,7 @@
let key = item.data.SNDNG_DTL_ID;
- $P.$find("tbodySndngDtlList").setCurrentRow(key);
+ $P.$findn("tbodySndngDtlList").setCurrentRow(key);
// 가상계좌번호
let vrActno = Array.from({length: 20}, (x, i) => {
@@ -281,7 +281,7 @@
.filter(txt => txt != null)
.join("\n");
- $P.$find("vrActno").val(vrActno); // 가상 계좌번호
+ $P.$findn("vrActno").val(vrActno); // 가상 계좌번호
}
// 개별 반송 dialog
@@ -353,7 +353,7 @@
let key = item.data.SNDNG_DTL_ID;
- $P.$find("tbodySvbtcList").setCurrentRow(key);
+ $P.$findn("tbodySvbtcList").setCurrentRow(key);
}
/**************************************************************************
@@ -364,13 +364,13 @@
let sndngDtlList = $P.ctrlSndngDtl.dataset;
let empty = sndngDtlList.empty;
- let trs = empty ? [$P.find("tmpltNotFoundSndngDtl").innerHTML] :
- sndngDtlList.inStrings($P.find("tmpltSndngDtlRows").innerHTML
+ let trs = empty ? [$P.findn("tmpltNotFoundSndngDtl").innerHTML] :
+ sndngDtlList.inStrings($P.findn("tmpltSndngDtlRows").innerHTML
, (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlSndngDtl.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');")
);
- $P.$find("tbodySndngDtlList").html(trs.join());
+ $P.$findn("tbodySndngDtlList").html(trs.join());
}
// 공시송달 정보 DataTables에 click 이벤트
@@ -378,13 +378,13 @@
let svbtcList = $P.ctrlSvbtc.dataset;
let empty = svbtcList.empty;
- let trs = empty ? [$P.find("tmpltNotFoundSvbtc").innerHTML] :
- svbtcList.inStrings($P.find("tmpltSvbtcRows").innerHTML
+ let trs = empty ? [$P.findn("tmpltNotFoundSvbtc").innerHTML] :
+ svbtcList.inStrings($P.findn("tmpltSvbtcRows").innerHTML
, (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlSvbtc.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');")
);
- $P.$find("tbodySvbtcList").html(trs.join());
+ $P.$findn("tbodySvbtcList").html(trs.join());
}
/**************************************************************************
@@ -411,7 +411,7 @@
, data: params || {}
, success: (resp) => {
// 초기화
- $P.find("frmEditSndngDtl").reset(); // 화면 초기화
+ $P.findn("frmEditSndngDtl").reset(); // 화면 초기화
$P.ctrlSndngDtl.dataset.clear(); // 발송 상세 Dataset 초기화
$P.ctrlSvbtc.dataset.clear(); // 공시송달 Dataset 초기화
@@ -567,40 +567,40 @@
// 이벤트 설정
$P.setEvent = () => {
// 업무 버튼 이벤트
- $P.$find("btnCreateSndbk").on("click", function() {
- $P.fnCreateSndbk($P.$find("btnCreateSndbk").attr("title")); // 개별 반송 등록
+ $P.$findn("btnCreateSndbk").on("click", function() {
+ $P.fnCreateSndbk($P.$findn("btnCreateSndbk").attr("title")); // 개별 반송 등록
});
- $P.$find("btnUpdateSndbk").on("click", function() {
- $P.fnUpdateSndbk($P.$find("btnUpdateSndbk").attr("title")); // 개별 반송 수정
+ $P.$findn("btnUpdateSndbk").on("click", function() {
+ $P.fnUpdateSndbk($P.$findn("btnUpdateSndbk").attr("title")); // 개별 반송 수정
});
- $P.$find("btnRemoveSndbk").on("click", function() {
- $P.fnRemoveSndbk($P.$find("btnRemoveSndbk").attr("title")); // 개별 반송 삭제
+ $P.$findn("btnRemoveSndbk").on("click", function() {
+ $P.fnRemoveSndbk($P.$findn("btnRemoveSndbk").attr("title")); // 개별 반송 삭제
});
- $P.$find("btnViewPostTrace").on("click", function() {
- $P.fnViewPostTrace($P.$find("btnViewPostTrace").attr("title")); // 개별 반송 등록
+ $P.$findn("btnViewPostTrace").on("click", function() {
+ $P.fnViewPostTrace($P.$findn("btnViewPostTrace").attr("title")); // 개별 반송 등록
});
// DataTables width 변경 조정
- Componentization.fnMakeResizableTable($P.find("tableRspnsSndngDtl"));
- Componentization.fnMakeResizableTable($P.find("tableRspnsSvbtc"));
+ Componentization.fnMakeResizableTable($P.findn("tableRspnsSndngDtl"));
+ Componentization.fnMakeResizableTable($P.findn("tableRspnsSvbtc"));
}
// 초기 화면 설정
$P.initForm = () => {
// 초기화
- $P.find("frmEditSndngDtl").reset(); // 화면 초기화
+ $P.findn("frmEditSndngDtl").reset(); // 화면 초기화
$P.ctrlSndngDtl.dataset.clear(); // 발송 상세 Dataset 초기화
$P.ctrlSvbtc.dataset.clear(); // 공시송달 Dataset 초기화
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") {
- $P.$find("btnCreateSndbk").prop("disabled", true);
- $P.$find("btnUpdateSndbk").prop("disabled", true);
- $P.$find("btnRemoveSndbk").prop("disabled", true);
+ $P.$findn("btnCreateSndbk").prop("disabled", true);
+ $P.$findn("btnUpdateSndbk").prop("disabled", true);
+ $P.$findn("btnRemoveSndbk").prop("disabled", true);
} else {
- $P.$find("btnCreateSndbk").prop("disabled", false);
- $P.$find("btnUpdateSndbk").prop("disabled", false);
- $P.$find("btnRemoveSndbk").prop("disabled", false);
+ $P.$findn("btnCreateSndbk").prop("disabled", false);
+ $P.$findn("btnUpdateSndbk").prop("disabled", false);
+ $P.$findn("btnRemoveSndbk").prop("disabled", false);
}
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp
index 8f97aaa5..cc41ab5f 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp
@@ -253,8 +253,8 @@
let $P = pageObject["${pageName}"];
// FormFields
- $P.formFieldsRdct = new FimsFormFields($P.selector("frmEditRdct"));
- $P.formFieldsLevyExcl = new FimsFormFields($P.selector("frmEditLevyExcl"));
+ $P.formFieldsRdct = new FimsFormFields($P.selectorn("frmEditRdct"));
+ $P.formFieldsLevyExcl = new FimsFormFields($P.selectorn("frmEditLevyExcl"));
/**************************************************************************
* DatasetControl
@@ -474,7 +474,7 @@
let key = item.data.STTS_HSTRY_ID;
- $P.$find("tbodyCrdnSttsHstryList").setCurrentRow(key);
+ $P.$findn("tbodyCrdnSttsHstryList").setCurrentRow(key);
}
/**************************************************************************
@@ -491,7 +491,7 @@
let key = item.data.HSTRY_SN;
- $P.$find("tbodyPayerHstryList").setCurrentRow(key);
+ $P.$findn("tbodyPayerHstryList").setCurrentRow(key);
}
/**************************************************************************
@@ -502,13 +502,13 @@
let crdnSttsHstryList = $P.ctrlCrdnSttsHstry.dataset;
let empty = crdnSttsHstryList.empty;
- let trs = empty ? [$P.find("tmpltNotFoundCrdnSttsHstry").innerHTML] :
- crdnSttsHstryList.inStrings($P.find("tmpltCrdnSttsHstryRows").innerHTML
+ let trs = empty ? [$P.findn("tmpltNotFoundCrdnSttsHstry").innerHTML] :
+ crdnSttsHstryList.inStrings($P.findn("tmpltCrdnSttsHstryRows").innerHTML
, (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlCrdnSttsHstry.setCurrent('" + dataItem.getValue("STTS_HSTRY_ID") + "');")
);
- $P.$find("tbodyCrdnSttsHstryList").html(trs.join());
+ $P.$findn("tbodyCrdnSttsHstryList").html(trs.join());
}
// 납부자 이력 DataTables에 click 이벤트
@@ -516,13 +516,13 @@
let payerHstryList = $P.ctrlPayerHstry.dataset;
let empty = payerHstryList.empty;
- let trs = empty ? [$P.find("tmpltNotFoundPayerHstry").innerHTML] :
- payerHstryList.inStrings($P.find("tmpltPayerHstryRows").innerHTML
+ let trs = empty ? [$P.findn("tmpltNotFoundPayerHstry").innerHTML] :
+ payerHstryList.inStrings($P.findn("tmpltPayerHstryRows").innerHTML
, (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlPayerHstry.setCurrent('" + dataItem.getValue("STTS_HSTRY_ID") + "');")
);
- $P.$find("tbodyPayerHstryList").html(trs.join());
+ $P.$findn("tbodyPayerHstryList").html(trs.join());
}
/**************************************************************************
@@ -549,8 +549,8 @@
, data: params || {}
, success: (resp) => {
// 초기화
- $P.find("frmEditRdct").reset(); // 감경 화면 초기화
- $P.find("frmEditLevyExcl").reset(); // 부과제외 화면 초기화
+ $P.findn("frmEditRdct").reset(); // 감경 화면 초기화
+ $P.findn("frmEditLevyExcl").reset(); // 부과제외 화면 초기화
$P.ctrlRdct.dataset.clear(); // 감경 Dataset 초기화
$P.ctrlLevyExcl.dataset.clear(); // 부과제외 Dataset 초기화
$P.ctrlCrdnSttsHstry.dataset.clear(); // 단속상태 이력 Dataset 초기화
@@ -808,52 +808,52 @@
// 이벤트 설정
$P.setEvent = () => {
// 업무 버튼 이벤트
- $P.$find("btnCreateRdct").on("click", function() {
- $P.fnCreateRdct($P.$find("btnCreateRdct").attr("title")); // 감경 등록
+ $P.$findn("btnCreateRdct").on("click", function() {
+ $P.fnCreateRdct($P.$findn("btnCreateRdct").attr("title")); // 감경 등록
});
- $P.$find("btnUpdateRdct").on("click", function() {
- $P.fnUpdateRdct($P.$find("btnUpdateRdct").attr("title")); // 감경 수정
+ $P.$findn("btnUpdateRdct").on("click", function() {
+ $P.fnUpdateRdct($P.$findn("btnUpdateRdct").attr("title")); // 감경 수정
});
- $P.$find("btnRemoveRdct").on("click", function() {
- $P.fnRemoveRdct($P.$find("btnRemoveRdct").attr("title")); // 감경 등록
+ $P.$findn("btnRemoveRdct").on("click", function() {
+ $P.fnRemoveRdct($P.$findn("btnRemoveRdct").attr("title")); // 감경 등록
});
- $P.$find("btnCreateWrng").on("click", function() {
- $P.fnCreateWrng($P.$find("btnCreateWrng").attr("title")); // 계고 등록
+ $P.$findn("btnCreateWrng").on("click", function() {
+ $P.fnCreateWrng($P.$findn("btnCreateWrng").attr("title")); // 계고 등록
});
- $P.$find("btnCreateLevyExcl").on("click", function() {
- $P.fnCreateLevyExcl($P.$find("btnCreateLevyExcl").attr("title")); // 비부과 등록
+ $P.$findn("btnCreateLevyExcl").on("click", function() {
+ $P.fnCreateLevyExcl($P.$findn("btnCreateLevyExcl").attr("title")); // 비부과 등록
});
- $P.$find("btnUpdateLevyExcl").on("click", function() {
- $P.fnUpdateLevyExcl($P.$find("btnUpdateLevyExcl").attr("title")); // 부과제외 수정
+ $P.$findn("btnUpdateLevyExcl").on("click", function() {
+ $P.fnUpdateLevyExcl($P.$findn("btnUpdateLevyExcl").attr("title")); // 부과제외 수정
});
- $P.$find("btnRemoveLevyExcl").on("click", function() {
- $P.fnRemoveLevyExcl($P.$find("btnRemoveLevyExcl").attr("title")); // 부과제외 삭제
+ $P.$findn("btnRemoveLevyExcl").on("click", function() {
+ $P.fnRemoveLevyExcl($P.$findn("btnRemoveLevyExcl").attr("title")); // 부과제외 삭제
});
// DataTables width 변경 조정
- Componentization.fnMakeResizableTable($P.find("tableRspnsCrdnSttsHstry"));
- Componentization.fnMakeResizableTable($P.find("tableRspnsPayerHstry"));
+ Componentization.fnMakeResizableTable($P.findn("tableRspnsCrdnSttsHstry"));
+ Componentization.fnMakeResizableTable($P.findn("tableRspnsPayerHstry"));
}
// 초기 화면 설정
$P.initForm = () => {
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") {
- $P.$find("btnCreateRdct").prop("disabled", true);
- $P.$find("btnUpdateRdct").prop("disabled", true);
- $P.$find("btnRemoveRdct").prop("disabled", true);
- $P.$find("btnCreateWrng").prop("disabled", true);
- $P.$find("btnCreateLevyExcl").prop("disabled", true);
- $P.$find("btnUpdateLevyExcl").prop("disabled", true);
- $P.$find("btnRemoveLevyExcl").prop("disabled", true);
+ $P.$findn("btnCreateRdct").prop("disabled", true);
+ $P.$findn("btnUpdateRdct").prop("disabled", true);
+ $P.$findn("btnRemoveRdct").prop("disabled", true);
+ $P.$findn("btnCreateWrng").prop("disabled", true);
+ $P.$findn("btnCreateLevyExcl").prop("disabled", true);
+ $P.$findn("btnUpdateLevyExcl").prop("disabled", true);
+ $P.$findn("btnRemoveLevyExcl").prop("disabled", true);
} else {
- $P.$find("btnCreateRdct").prop("disabled", false);
- $P.$find("btnUpdateRdct").prop("disabled", false);
- $P.$find("btnRemoveRdct").prop("disabled", false);
- $P.$find("btnCreateWrng").prop("disabled", false);
- $P.$find("btnCreateLevyExcl").prop("disabled", false);
- $P.$find("btnUpdateLevyExcl").prop("disabled", false);
- $P.$find("btnRemoveLevyExcl").prop("disabled", false);
+ $P.$findn("btnCreateRdct").prop("disabled", false);
+ $P.$findn("btnUpdateRdct").prop("disabled", false);
+ $P.$findn("btnRemoveRdct").prop("disabled", false);
+ $P.$findn("btnCreateWrng").prop("disabled", false);
+ $P.$findn("btnCreateLevyExcl").prop("disabled", false);
+ $P.$findn("btnUpdateLevyExcl").prop("disabled", false);
+ $P.$findn("btnRemoveLevyExcl").prop("disabled", false);
}
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02060-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02060-info.jsp
index e3fc02cd..1149c275 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02060-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02060-info.jsp
@@ -262,7 +262,7 @@
let $P = pageObject["${pageName}"];
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEditLevy"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEditLevy"));
/**************************************************************************
* DatasetControl
@@ -321,7 +321,7 @@
.filter(txt => txt != null)
.join("\n");
- $P.$find("vrActno").val(vrActno); // 가상 계좌번호
+ $P.$findn("vrActno").val(vrActno); // 가상 계좌번호
}
/**************************************************************************
@@ -348,7 +348,7 @@
, data: params || {}
, success: (resp) => {
// 초기화
- $P.find("frmEditLevy").reset(); // 화면 초기화
+ $P.findn("frmEditLevy").reset(); // 화면 초기화
$P.ctrlLevy.dataset.clear(); // Dataset 초기화
// sprt02010-main 단속 정보
@@ -431,27 +431,27 @@
// 이벤트 설정
$P.setEvent = () => {
// 업무 버튼 이벤트
- $P.$find("btnCreateLevy").on("click", function() {
- $P.fnCreateLevy($P.$find("btnCreateLevy").attr("title")); // 부과 등록
+ $P.$findn("btnCreateLevy").on("click", function() {
+ $P.fnCreateLevy($P.$findn("btnCreateLevy").attr("title")); // 부과 등록
});
- $P.$find("btnCreateLevyExcl").on("click", function() {
- $P.fnCreateLevyExcl($P.$find("btnCreateLevyExcl").attr("title")); // 부과 취소
+ $P.$findn("btnCreateLevyExcl").on("click", function() {
+ $P.fnCreateLevyExcl($P.$findn("btnCreateLevyExcl").attr("title")); // 부과 취소
});
}
// 초기 화면 설정
$P.initForm = () => {
// 초기화
- $P.find("frmEditLevy").reset(); // 화면 초기화
+ $P.findn("frmEditLevy").reset(); // 화면 초기화
$P.ctrlLevy.dataset.clear(); // Dataset 초기화
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") {
- $P.$find("btnCreateLevy").prop("disabled", true);
- $P.$find("btnCreateLevyExcl").prop("disabled", true);
+ $P.$findn("btnCreateLevy").prop("disabled", true);
+ $P.$findn("btnCreateLevyExcl").prop("disabled", true);
} else {
- $P.$find("btnCreateLevy").prop("disabled", false);
- $P.$find("btnCreateLevyExcl").prop("disabled", false);
+ $P.$findn("btnCreateLevy").prop("disabled", false);
+ $P.$findn("btnCreateLevyExcl").prop("disabled", false);
}
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02070-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02070-info.jsp
index 8199e161..3fd4d7a9 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02070-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02070-info.jsp
@@ -232,7 +232,7 @@
let $P = pageObject["${pageName}"];
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEditRcvmt"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEditRcvmt"));
/**************************************************************************
* DatasetControl
@@ -273,7 +273,7 @@
let key = item.data.RCVMT_ID;
- $P.$find("tbodyRcvmtList").setCurrentRow(key); // datatable에 자료 셋팅
+ $P.$findn("tbodyRcvmtList").setCurrentRow(key); // datatable에 자료 셋팅
};
// 수납 등록 Dialog
@@ -369,13 +369,13 @@
let rcvmtList = $P.ctrlRcvmt.dataset;
let empty = rcvmtList.empty;
- let trs = empty ? [$P.find("tmpltNotFoundRcvmt").innerHTML] :
- rcvmtList.inStrings($P.find("tmpltRcvmtRows").innerHTML
+ let trs = empty ? [$P.findn("tmpltNotFoundRcvmt").innerHTML] :
+ rcvmtList.inStrings($P.findn("tmpltRcvmtRows").innerHTML
, (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrl.setCurrent('" + dataItem.getValue("RCVMT_ID") + "');")
);
- $P.$find("tbodyRcvmtList").html(trs.join());
+ $P.$findn("tbodyRcvmtList").html(trs.join());
}
/**************************************************************************
@@ -402,7 +402,7 @@
, data: params || {}
, success: (resp) => {
// 초기화
- $P.find("frmEditRcvmt").reset(); // 화면 초기화
+ $P.findn("frmEditRcvmt").reset(); // 화면 초기화
$P.ctrlRcvmt.dataset.clear(); // 수납 Dataset 초기화
// sprt02010-main 단속 정보
@@ -554,47 +554,47 @@
// 이벤트 설정
$P.setEvent = () => {
// 업무 버튼 이벤트
- $P.$find("btnCreateRcvmt").on("click", function() {
- $P.fnCreateRcvmt($P.$find("btnCreateRcvmt").attr("title")); // 수납 등록
+ $P.$findn("btnCreateRcvmt").on("click", function() {
+ $P.fnCreateRcvmt($P.$findn("btnCreateRcvmt").attr("title")); // 수납 등록
});
- $P.$find("btnUpdateRcvmtRtrc").on("click", function() {
- $P.fnUpdateRcvmtRtrcn($P.$find("btnUpdateRcvmtRtrc").attr("title")); // 수납 취소
+ $P.$findn("btnUpdateRcvmtRtrc").on("click", function() {
+ $P.fnUpdateRcvmtRtrcn($P.$findn("btnUpdateRcvmtRtrc").attr("title")); // 수납 취소
});
- $P.$find("btnRemoveRcvmt").on("click", function() {
- $P.fnRemoveRcvmt($P.$find("btnRemoveRcvmt").attr("title")); // 수납 삭제
+ $P.$findn("btnRemoveRcvmt").on("click", function() {
+ $P.fnRemoveRcvmt($P.$findn("btnRemoveRcvmt").attr("title")); // 수납 삭제
});
// DataTables width 변경 조정
- Componentization.fnMakeResizableTable($P.find("tableRspnsRcvmt"));
+ Componentization.fnMakeResizableTable($P.findn("tableRspnsRcvmt"));
}
// 초기 화면 설정
$P.initForm = () => {
// 초기화
- $P.find("frmEditRcvmt").reset(); // 화면 초기화
+ $P.findn("frmEditRcvmt").reset(); // 화면 초기화
$P.ctrlRcvmt.dataset.clear(); // 수납 Dataset 초기화
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") {
- $P.$find("btnCreateRcvmt").prop("disabled", true);
- $P.$find("btnUpdateRcvmtRtrc").prop("disabled", true);
- $P.$find("btnRemoveRcvmt").prop("disabled", true);
+ $P.$findn("btnCreateRcvmt").prop("disabled", true);
+ $P.$findn("btnUpdateRcvmtRtrc").prop("disabled", true);
+ $P.$findn("btnRemoveRcvmt").prop("disabled", true);
} else {
- $P.$find("btnCreateRcvmt").prop("disabled", false);
- $P.$find("btnUpdateRcvmtRtrc").prop("disabled", false);
- $P.$find("btnRemoveRcvmt").prop("disabled", false);
+ $P.$findn("btnCreateRcvmt").prop("disabled", false);
+ $P.$findn("btnUpdateRcvmtRtrc").prop("disabled", false);
+ $P.$findn("btnRemoveRcvmt").prop("disabled", false);
}
// 주정차위반, 전용차로위반과태료 외에는 수납 등록, 취소, 삭제 기능이 없어야 한다.
let taskSeCd = pageObject["${mainPageName}"].mainCtrl.getValue("TASK_SE_CD");
if ("BPV,PVS".indexOf("taskSeCd") != -1) {
- $P.$find("btnCreateRcvmt").show();
- $P.$find("btnUpdateRcvmtRtrc").show();
- $P.$find("btnRemoveRcvmt").show();
+ $P.$findn("btnCreateRcvmt").show();
+ $P.$findn("btnUpdateRcvmtRtrc").show();
+ $P.$findn("btnRemoveRcvmt").show();
} else {
- $P.$find("btnCreateRcvmt").hide();
- $P.$find("btnUpdateRcvmtRtrc").hide();
- $P.$find("btnRemoveRcvmt").hide();
+ $P.$findn("btnCreateRcvmt").hide();
+ $P.$findn("btnUpdateRcvmtRtrc").hide();
+ $P.$findn("btnRemoveRcvmt").hide();
}
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02080-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02080-info.jsp
index db3f2566..487770f1 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02080-info.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02080-info.jsp
@@ -102,7 +102,7 @@
let $P = pageObject["${pageName}"];
// FormFields
- $P.formFields = new FimsFormFields($P.selector("frmEditCvlcptDscsn"));
+ $P.formFields = new FimsFormFields($P.selectorn("frmEditCvlcptDscsn"));
/**************************************************************************
* DatasetControl
@@ -136,7 +136,7 @@
let key = item.data.CVLCPT_DSCSN_ID;
- $P.$find("tbodyCvlcptDscsnList").setCurrentRow(key); // datatable에 자료 셋팅
+ $P.$findn("tbodyCvlcptDscsnList").setCurrentRow(key); // datatable에 자료 셋팅
};
// 민원 상담 내용 Dialog
@@ -202,13 +202,13 @@
let cvlcptDscsnList = $P.ctrlCvlcptDscsn.dataset;
let empty = cvlcptDscsnList.empty;
- let trs = empty ? [$P.find("tmpltNotFoundCvlcptDscsn").innerHTML] :
- cvlcptDscsnList.inStrings($P.find("tmpltCvlcptDscsnRows").innerHTML
+ let trs = empty ? [$P.findn("tmpltNotFoundCvlcptDscsn").innerHTML] :
+ cvlcptDscsnList.inStrings($P.findn("tmpltCvlcptDscsnRows").innerHTML
, (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlCvlcptDscsn.setCurrent('" + dataItem.getValue("CVLCPT_DSCSN_ID") + "');")
);
- $P.$find("tbodyCvlcptDscsnList").html(trs.join());
+ $P.$findn("tbodyCvlcptDscsnList").html(trs.join());
}
/**************************************************************************
@@ -237,7 +237,7 @@
, data: params || {}
, success: (resp) => {
// 초기화
- $P.find("frmEditCvlcptDscsn").reset(); // 화면 초기화
+ $P.findn("frmEditCvlcptDscsn").reset(); // 화면 초기화
$P.ctrlCvlcptDscsn.dataset.clear(); // 수납 Dataset 초기화
// Dataset 셋팅
@@ -340,35 +340,35 @@
// 이벤트 설정
$P.setEvent = () => {
// 업무 버튼 이벤트
- $P.$find("btnCreateCvlcptDscsn").on("click", function() {
- $P.fnCreateCvlcptDscsn($P.$find("btnCreateCvlcptDscsn").attr("title")); // 민원상담 등록
+ $P.$findn("btnCreateCvlcptDscsn").on("click", function() {
+ $P.fnCreateCvlcptDscsn($P.$findn("btnCreateCvlcptDscsn").attr("title")); // 민원상담 등록
});
- $P.$find("btnUpdateCvlcptDscsn").on("click", function() {
- $P.fnCreateCvlcptDscsn($P.$find("btnUpdateCvlcptDscsn").attr("title")); // 민원상담 수정
+ $P.$findn("btnUpdateCvlcptDscsn").on("click", function() {
+ $P.fnCreateCvlcptDscsn($P.$findn("btnUpdateCvlcptDscsn").attr("title")); // 민원상담 수정
});
- $P.$find("btnRemoveCvlcptDscsn").on("click", function() {
- $P.fnRemoveCvlcptDscsn($P.$find("btnRemoveCvlcptDscsn").attr("title")); // 민원상담 삭제
+ $P.$findn("btnRemoveCvlcptDscsn").on("click", function() {
+ $P.fnRemoveCvlcptDscsn($P.$findn("btnRemoveCvlcptDscsn").attr("title")); // 민원상담 삭제
});
// DataTables width 변경 조정
- Componentization.fnMakeResizableTable($P.find("tableRspnsCvlcptDscsn"));
+ Componentization.fnMakeResizableTable($P.findn("tableRspnsCvlcptDscsn"));
}
// 초기 화면 설정
$P.initForm = () => {
// 초기화
- $P.find("frmEditCvlcptDscsn").reset(); // 화면 초기화
+ $P.findn("frmEditCvlcptDscsn").reset(); // 화면 초기화
$P.ctrlCvlcptDscsn.dataset.clear(); // 수납 Dataset 초기화
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") {
- $P.$find("btnCreateCvlcptDscsn").prop("disabled", true);
- $P.$find("btnUpdateCvlcptDscsn").prop("disabled", true);
- $P.$find("btnRemoveCvlcptDscsn").prop("disabled", true);
+ $P.$findn("btnCreateCvlcptDscsn").prop("disabled", true);
+ $P.$findn("btnUpdateCvlcptDscsn").prop("disabled", true);
+ $P.$findn("btnRemoveCvlcptDscsn").prop("disabled", true);
} else {
- $P.$find("btnCreateCvlcptDscsn").prop("disabled", false);
- $P.$find("btnUpdateCvlcptDscsn").prop("disabled", false);
- $P.$find("btnRemoveCvlcptDscsn").prop("disabled", false);
+ $P.$findn("btnCreateCvlcptDscsn").prop("disabled", false);
+ $P.$findn("btnUpdateCvlcptDscsn").prop("disabled", false);
+ $P.$findn("btnRemoveCvlcptDscsn").prop("disabled", false);
}
}
diff --git a/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp
index 380b9ab3..205f5c0d 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp
@@ -215,12 +215,12 @@ $(document).ready(function(){
var DS = $P.alt.dataset;
var empty = DS.empty;
var notFound = [""];
- var found = $P.find("detailGridTbodyTemplate").innerHTML;
+ var found = $P.findn("detailGridTbodyTemplate").innerHTML;
var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickDetailGrid('" + dataItem.getValue("DATA_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblClickDetailGrid('" + dataItem.getValue("DATA_ID") + "');");
var trs = empty ? notFound : DS.inStrings(found, replacer);
- $P.$find("detailTbody").html(trs.join());
+ $P.$findn("detailTbody").html(trs.join());
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
@@ -231,25 +231,25 @@ $(document).ready(function(){
**************************************************************************/
$P.fnReset = () => {
- var searchForm = $P.$find("frmSearch");
+ var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='radio'][name='taskSeCd'][value='']").prop("checked", true);
- $P.$find("sggCd").find("option:eq(1)").prop("selected", true);
- $P.$find("dayColumn").find("option:eq(0)").prop("selected", true);
+ $P.$findn("sggCd").find("option:eq(1)").prop("selected", true);
+ $P.$findn("dayColumn").find("option:eq(0)").prop("selected", true);
- $P.$find("firstDay").datepicker('setDate', TODAY());
- $P.$find("lastDay").datepicker('setDate', TODAY());
+ $P.$findn("firstDay").datepicker('setDate', TODAY());
+ $P.$findn("lastDay").datepicker('setDate', TODAY());
- var searchForMenu = $P.$find("searchForMenu");
+ var searchForMenu = $P.$findn("searchForMenu");
searchForMenu.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
searchForMenu.find("input[type='checkbox']").prop("checked", false);
searchForMenu.find("input[type='text']").val("");
- $P.$find("groupLevel1").find("option:eq(0)").prop("selected", true);
- $P.$find("groupLevel2").val("");
- $P.$find("groupLevel3").val("");
- $P.$find("groupLevel4").val("");
- $P.$find("preset").find("option:eq(0)").prop("selected", true);
- $P.$find("refListYn").find("option:eq(0)").prop("selected", true);
+ $P.$findn("groupLevel1").find("option:eq(0)").prop("selected", true);
+ $P.$findn("groupLevel2").val("");
+ $P.$findn("groupLevel3").val("");
+ $P.$findn("groupLevel4").val("");
+ $P.$findn("preset").find("option:eq(0)").prop("selected", true);
+ $P.$findn("refListYn").find("option:eq(0)").prop("selected", true);
$P.changeGrid();
$P.showDetailGrid();
@@ -259,14 +259,14 @@ $(document).ready(function(){
$P.getGroupInfoList = () => {
var groupInfoLiost = [];
- var selected = $P.$find("groupLevel1").find(":selected");
+ var selected = $P.$findn("groupLevel1").find(":selected");
groupInfoLiost.push({
refCol : selected[0].dataset.refCol,
ctgrType : selected[0].dataset.ctgrType,
dtlCtgr : selected[0].dataset.dtlCtgr
})
- selected = $P.$find("groupLevel2").find(":selected");
+ selected = $P.$findn("groupLevel2").find(":selected");
if(selected.val() == ""){
return groupInfoLiost;
}
@@ -277,7 +277,7 @@ $(document).ready(function(){
dtlCtgr : selected[0].dataset.dtlCtgr
})
- selected = $P.$find("groupLevel3").find(":selected");
+ selected = $P.$findn("groupLevel3").find(":selected");
if(selected.val() == ""){
return groupInfoLiost;
}
@@ -288,7 +288,7 @@ $(document).ready(function(){
dtlCtgr : selected[0].dataset.dtlCtgr
})
- selected = $P.$find("groupLevel4").find(":selected");
+ selected = $P.$findn("groupLevel4").find(":selected");
if(selected.val() == ""){
return groupInfoLiost;
}
@@ -306,7 +306,7 @@ $(document).ready(function(){
$P.getNumberValueInfoList = () => {
var numberValuefoLiost = [];
- var preset = $P.$find("preset").find(":selected");
+ var preset = $P.$findn("preset").find(":selected");
if(preset.val() == "totCnt"){
numberValuefoLiost = [{ aggregateType : "count" }];
@@ -328,11 +328,11 @@ $(document).ready(function(){
var groupLevel4subset = $P.getCodeSubsetInfo("groupLevel4");
var subsetForGroup = [];
subsetForGroup = subsetForGroup.concat(groupLevel1subset);
- if($P.$find("groupLevel2").val() != ""){
+ if($P.$findn("groupLevel2").val() != ""){
subsetForGroup = subsetForGroup.concat(groupLevel2subset);
- if($P.$find("groupLevel3").val() != ""){
+ if($P.$findn("groupLevel3").val() != ""){
subsetForGroup = subsetForGroup.concat(groupLevel3subset);
- if($P.$find("groupLevel4").val() != ""){
+ if($P.$findn("groupLevel4").val() != ""){
subsetForGroup = subsetForGroup.concat(groupLevel4subset);
}
}
@@ -353,7 +353,7 @@ $(document).ready(function(){
$P.getCodeSubsetInfo = (elementName) => {
var result = [];
- var selected = $P.$find(elementName).find(":selected");
+ var selected = $P.$findn(elementName).find(":selected");
if(window[selected.val()+"_codeSubsetInfoList"] != undefined){
result = window[selected.val()+"_codeSubsetInfoList"];
}
@@ -385,64 +385,64 @@ $(document).ready(function(){
$P.changeGrid = () => {
//그룹단위 초기화
- if($P.$find("groupLevel2").val() == ""){
- $P.$find("groupLevel3").val("");
- $P.$find("groupLevel3").attr("disabled","disabled");
+ if($P.$findn("groupLevel2").val() == ""){
+ $P.$findn("groupLevel3").val("");
+ $P.$findn("groupLevel3").attr("disabled","disabled");
} else {
- $P.$find("groupLevel3").removeAttr("disabled");
+ $P.$findn("groupLevel3").removeAttr("disabled");
}
- if($P.$find("groupLevel3").val() == ""){
- $P.$find("groupLevel4").val("");
- $P.$find("groupLevel4").attr("disabled","disabled");
+ if($P.$findn("groupLevel3").val() == ""){
+ $P.$findn("groupLevel4").val("");
+ $P.$findn("groupLevel4").attr("disabled","disabled");
} else {
- $P.$find("groupLevel4").removeAttr("disabled");
+ $P.$findn("groupLevel4").removeAttr("disabled");
}
//그리드 초기화
- $P.$find("masterThead").html("");
- $P.$find("masterTbody").html("");
- $P.$find("detailThead").html("");
- $P.$find("detailTbody").html("");
+ $P.$findn("masterThead").html("");
+ $P.$findn("masterTbody").html("");
+ $P.$findn("detailThead").html("");
+ $P.$findn("detailTbody").html("");
//상단 그리드
- var level1Text = $P.$find("groupLevel1").find(":selected").text();
- $P.$find("masterThead").append("
"+level1Text+" | ");
+ var level1Text = $P.$findn("groupLevel1").find(":selected").text();
+ $P.$findn("masterThead").append(""+level1Text+" | ");
- if($P.$find("groupLevel2").val() != ""){
- var level2Text = $P.$find("groupLevel2").find(":selected").text();
- $P.$find("masterThead").append(""+level2Text+" | ");
+ if($P.$findn("groupLevel2").val() != ""){
+ var level2Text = $P.$findn("groupLevel2").find(":selected").text();
+ $P.$findn("masterThead").append(""+level2Text+" | ");
- if($P.$find("groupLevel3").val() != ""){
- var level3Text = $P.$find("groupLevel3").find(":selected").text();
- $P.$find("masterThead").append(""+level3Text+" | ");
+ if($P.$findn("groupLevel3").val() != ""){
+ var level3Text = $P.$findn("groupLevel3").find(":selected").text();
+ $P.$findn("masterThead").append(""+level3Text+" | ");
- if($P.$find("groupLevel4").val() != ""){
- var level4Text = $P.$find("groupLevel4").find(":selected").text();
- $P.$find("masterThead").append(""+level4Text+" | ");
+ if($P.$findn("groupLevel4").val() != ""){
+ var level4Text = $P.$findn("groupLevel4").find(":selected").text();
+ $P.$findn("masterThead").append(""+level4Text+" | ");
}
}
}
- var preset = $P.$find("preset").find(":selected");
+ var preset = $P.$findn("preset").find(":selected");
var cols = preset.text().split(",");
for(var i=0; i < cols.length; i++){
- $P.$find("masterThead").append(""+cols[i]+" | ");
+ $P.$findn("masterThead").append(""+cols[i]+" | ");
}
- $P.$find("masterThead").append(" | ");
+ $P.$findn("masterThead").append(" | ");
//하단 그리드
- var detailTheadTemplate = $P.find("detailGridTheadTemplate");
- $P.$find("detailThead").append(detailTheadTemplate.innerHTML);
+ var detailTheadTemplate = $P.findn("detailGridTheadTemplate");
+ $P.$findn("detailThead").append(detailTheadTemplate.innerHTML);
}
//상세 그리드 표시
$P.showDetailGrid = () => {
- if($P.$find("refListYn").val() == "Y"){
- $P.$find("detailArea").removeAttr("hidden");
+ if($P.$findn("refListYn").val() == "Y"){
+ $P.$findn("detailArea").removeAttr("hidden");
} else {
- $P.$find("detailArea").attr("hidden","hidden");
+ $P.$findn("detailArea").attr("hidden","hidden");
}
}
@@ -450,7 +450,7 @@ $(document).ready(function(){
$P.searchStat = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var formFieldsData = formFields.get();
if(formFieldsData.firstDay == "" || formFieldsData.lastDay == ""){
@@ -478,9 +478,9 @@ $(document).ready(function(){
statQuery.schOnlyRent = formFieldsData.schOnlyRent;
//통계 유형
- var preset = $P.$find("preset").find(":selected");
+ var preset = $P.$findn("preset").find(":selected");
if(preset.val() == "totCnt"){
- statQuery.statDomain = $P.$find("defaultStatDomain").val();
+ statQuery.statDomain = $P.$findn("defaultStatDomain").val();
} else {
statQuery.statDomain = preset[0].dataset.statDomain;
}
@@ -516,8 +516,8 @@ $(document).ready(function(){
//통계 그리드 렌더링
$P.renderStat = (stat) => {
- $P.$find("masterTbody").html("");
- $P.$find("detailTbody").html("");
+ $P.$findn("masterTbody").html("");
+ $P.$findn("detailTbody").html("");
refListMap = {};
var statItems = stat.statItems;
@@ -572,59 +572,59 @@ $(document).ready(function(){
tr += "";
- $P.$find("masterTbody").append(tr);
+ $P.$findn("masterTbody").append(tr);
}
- $P.$find("masterTbody").find("tr").attr("onclick","pageObject['${pageName}'].clickMasterGrid(this);");
- $P.$find("masterTbody").find("tr").attr("ondblclick","pageObject['${pageName}'].dblClickMasterGrid(this);");
+ $P.$findn("masterTbody").find("tr").attr("onclick","pageObject['${pageName}'].clickMasterGrid(this);");
+ $P.$findn("masterTbody").find("tr").attr("ondblclick","pageObject['${pageName}'].dblClickMasterGrid(this);");
}
$P.clickMasterGrid = (obj) => {
var dataKey = obj.dataset.key;
- $P.$find("masterTbody").setCurrentRow(dataKey);
+ $P.$findn("masterTbody").setCurrentRow(dataKey);
}
$P.dblClickMasterGrid = (obj) => {
var dataKey = obj.dataset.key;
$P.alt.dataset.setData(refListMap[dataKey]);
- var offset = $P.$find("masterArea").offset();
- $P.$find("statWrapper").animate({scrollTop : offset.top}, 400);
+ var offset = $P.$findn("masterArea").offset();
+ $P.$findn("statWrapper").animate({scrollTop : offset.top}, 400);
}
$P.clickDetailGrid = (key) => {
- $P.$find("detailTbody").setCurrentRow(key);
+ $P.$findn("detailTbody").setCurrentRow(key);
}
$P.dblClickDetailGrid = (key) => {
}
- AppSupport.initDatepicker($P.find("frmSearch")); //달력 초기화
+ AppSupport.initDatepicker($P.findn("frmSearch")); //달력 초기화
- $P.$find("dayColumn").append($P.find("dayColumnDatalist").innerHTML);
+ $P.$findn("dayColumn").append($P.findn("dayColumnDatalist").innerHTML);
- $P.$find("searchForMenu").append($P.find("searchForMenuTemplate").innerHTML);
+ $P.$findn("searchForMenu").append($P.findn("searchForMenuTemplate").innerHTML);
- $P.$find("groupLevel1").append($P.find("groupLevelDatalist").innerHTML);
- $P.$find("groupLevel2").append($P.find("groupLevelDatalist").innerHTML);
- $P.$find("groupLevel3").append($P.find("groupLevelDatalist").innerHTML);
- $P.$find("groupLevel4").append($P.find("groupLevelDatalist").innerHTML);
+ $P.$findn("groupLevel1").append($P.findn("groupLevelDatalist").innerHTML);
+ $P.$findn("groupLevel2").append($P.findn("groupLevelDatalist").innerHTML);
+ $P.$findn("groupLevel3").append($P.findn("groupLevelDatalist").innerHTML);
+ $P.$findn("groupLevel4").append($P.findn("groupLevelDatalist").innerHTML);
- $P.$find("preset").append($P.find("presetDatalist").innerHTML);
+ $P.$findn("preset").append($P.findn("presetDatalist").innerHTML);
/**************************************************************************
* element.on
**************************************************************************/
- $P.$find("btnReset").on('click', () => $P.fnReset());
- $P.$find("btnSearch").on('click', () => $P.searchStat());
+ $P.$findn("btnReset").on('click', () => $P.fnReset());
+ $P.$findn("btnSearch").on('click', () => $P.searchStat());
- $P.$find("groupLevel1").on('change', () => $P.changeGrid());
- $P.$find("groupLevel2").on('change', () => $P.changeGrid());
- $P.$find("groupLevel3").on('change', () => $P.changeGrid());
- $P.$find("groupLevel4").on('change', () => $P.changeGrid());
- $P.$find("preset").on('change', () => $P.changeGrid());
+ $P.$findn("groupLevel1").on('change', () => $P.changeGrid());
+ $P.$findn("groupLevel2").on('change', () => $P.changeGrid());
+ $P.$findn("groupLevel3").on('change', () => $P.changeGrid());
+ $P.$findn("groupLevel4").on('change', () => $P.changeGrid());
+ $P.$findn("preset").on('change', () => $P.changeGrid());
- $P.$find("refListYn").on('change', () => $P.showDetailGrid());
+ $P.$findn("refListYn").on('change', () => $P.showDetailGrid());
$P.fnReset();
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/stng01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stng01010-main.jsp
index 13f7c5ac..00c54f06 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/stng01010-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/stng01010-main.jsp
@@ -269,36 +269,36 @@ $(document).ready(function(){
$P.otptGlobalStng = {};
$P.otptArtclStngMap = {};
- $P.$find("btnSave").attr("disabled","disabled");
- $P.$find("btnUniqueAdd").attr("disabled","disabled");
- $P.$find("btnUniqueDel").attr("disabled","disabled");
- $P.$find("btnMultipleAdd").attr("disabled","disabled");
- $P.$find("btnMultipleDel").attr("disabled","disabled");
+ $P.$findn("btnSave").attr("disabled","disabled");
+ $P.$findn("btnUniqueAdd").attr("disabled","disabled");
+ $P.$findn("btnUniqueDel").attr("disabled","disabled");
+ $P.$findn("btnMultipleAdd").attr("disabled","disabled");
+ $P.$findn("btnMultipleDel").attr("disabled","disabled");
$P.fnLoad = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var query = formFields.get();
ajax.post({
url : wctx.url("/stng/stng01/010/info.do"),
data : query,
success : (resp) => {
- $P.$find("btnSave").removeAttr("disabled");
- $P.$find("btnUniqueAdd").removeAttr("disabled");
- $P.$find("btnUniqueDel").removeAttr("disabled");
- $P.$find("btnMultipleAdd").removeAttr("disabled");
- $P.$find("btnMultipleDel").removeAttr("disabled");
- $P.$find("currentOtpt").text("");
- $P.$find("otptGlobalStng").html("");
- $P.$find("tbodyUnique").html("");
- $P.$find("tbodyMultiple").html("");
-
- $P.$find("frmEdit").find("[name='sggCd']").val(query.sggCd);
- $P.$find("frmEdit").find("[name='taskSeCd']").val(query.taskSeCd);
- $P.$find("frmEdit").find("[name='sndngSeCd']").val(query.sndngSeCd);
- $P.$find("frmEdit").find("[name='paperSeCd']").val(query.paperSeCd);
-
- $P.$find("currentOtpt").text(resp.otptStngTitle);
+ $P.$findn("btnSave").removeAttr("disabled");
+ $P.$findn("btnUniqueAdd").removeAttr("disabled");
+ $P.$findn("btnUniqueDel").removeAttr("disabled");
+ $P.$findn("btnMultipleAdd").removeAttr("disabled");
+ $P.$findn("btnMultipleDel").removeAttr("disabled");
+ $P.$findn("currentOtpt").text("");
+ $P.$findn("otptGlobalStng").html("");
+ $P.$findn("tbodyUnique").html("");
+ $P.$findn("tbodyMultiple").html("");
+
+ $P.$findn("frmEdit").find("[name='sggCd']").val(query.sggCd);
+ $P.$findn("frmEdit").find("[name='taskSeCd']").val(query.taskSeCd);
+ $P.$findn("frmEdit").find("[name='sndngSeCd']").val(query.sndngSeCd);
+ $P.$findn("frmEdit").find("[name='paperSeCd']").val(query.paperSeCd);
+
+ $P.$findn("currentOtpt").text(resp.otptStngTitle);
if(resp.otptGlobalStng != null){
$P.otptGlobalStng = resp.otptGlobalStng;
} else {
@@ -327,17 +327,17 @@ $(document).ready(function(){
//출력 전역 설정 렌더링
$P.renderOtptGlobalStng = (otptGlobalStng) => {
- var paperSeCd = $P.$find("frmEdit").find("[name='paperSeCd']").val();
- var editForm = $P.$find("frmEdit");
+ var paperSeCd = $P.$findn("frmEdit").find("[name='paperSeCd']").val();
+ var editForm = $P.$findn("frmEdit");
//설정ID
- $P.$find("otptGlobalStng").append("");
+ $P.$findn("otptGlobalStng").append("");
editForm.find("input[name='otptBscId']").val(otptGlobalStng.OTPT_BSC_ID);
//접는선 위치
- $P.$find("otptGlobalStng").append($P.find("foldLinePstnTemplate").innerHTML);
+ $P.$findn("otptGlobalStng").append($P.findn("foldLinePstnTemplate").innerHTML);
if(paperSeCd == "02"){
- $P.$find("otptGlobalStng").find("label").eq(3).remove();
+ $P.$findn("otptGlobalStng").find("label").eq(3).remove();
}
if(otptGlobalStng.FOLD_LINE_PSTN_SE_CD == null){
otptGlobalStng.FOLD_LINE_PSTN_SE_CD = "";
@@ -347,19 +347,19 @@ $(document).ready(function(){
.prop("checked", true);
//배경이미지
- $P.$find("otptGlobalStng").append($P.find("bcrnTemplate").innerHTML);
+ $P.$findn("otptGlobalStng").append($P.findn("bcrnTemplate").innerHTML);
if(otptGlobalStng.BCRN_IMG_PATH == null || otptGlobalStng.BCRN_IMG_PATH == ""){
- $P.$find("fileStatus").text("없음");
- $P.$find("fileStatus").attr("title","");
- $P.$find("btnBgDown").attr("hidden","hidden");
+ $P.$findn("fileStatus").text("없음");
+ $P.$findn("fileStatus").attr("title","");
+ $P.$findn("btnBgDown").attr("hidden","hidden");
} else {
- $P.$find("fileStatus").text("있음");
- $P.$find("fileStatus").attr("title",otptGlobalStng.BCRN_IMG_FILE_NM);
- $P.$find("btnBgDown").removeAttr("hidden");
+ $P.$findn("fileStatus").text("있음");
+ $P.$findn("fileStatus").attr("title",otptGlobalStng.BCRN_IMG_FILE_NM);
+ $P.$findn("btnBgDown").removeAttr("hidden");
}
//출력 사진 건 수
- $P.$find("otptGlobalStng").append($P.find("photoCntTemplate").innerHTML);
+ $P.$findn("otptGlobalStng").append($P.findn("photoCntTemplate").innerHTML);
if(otptGlobalStng.OTPT_PHOTO_CNT == null || otptGlobalStng.OTPT_PHOTO_CNT == ""){
otptGlobalStng.OTPT_PHOTO_CNT = 0;
}
@@ -378,13 +378,13 @@ $(document).ready(function(){
for(var i=0; i < dataList.length; i++){
var data = dataList[i];
- var found = $P.find("found").innerHTML;
+ var found = $P.findn("found").innerHTML;
found = found.replace(/{OTPT_FORM_ID}/gi, data.OTPT_FORM_ID);
found = found.replace(/{COMPONENTS}/gi, components);
- $P.$find(tbodyName).append(found);
+ $P.$findn(tbodyName).append(found);
- var lastTr = $P.$find(tbodyName).find("tr").last()[0];
+ var lastTr = $P.$findn(tbodyName).find("tr").last()[0];
FimsComponentization.fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontNm"));
FimsComponentization.fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontColr"));
@@ -416,7 +416,7 @@ $(document).ready(function(){
.set(!isEmpty(data.FONT_STYLE) ? data.FONT_STYLE : $P.fnGetProto(prototypeList, data.OTPT_ARTCL_NM, "fontStyle"));
}
- $P.$find(tbodyName).find("tr").each(function(){
+ $P.$findn(tbodyName).find("tr").each(function(){
if(tbodyName == "tbodyUnique"){
var el = $P.fnGetElement(this,"otptArtclNm");
@@ -438,7 +438,7 @@ $(document).ready(function(){
var rowSpinButtons = $(this).find("td[data-col='otptArtclSeq']").find("button");
- FimsComponentization.fnMakeRowSpinner(this,rowSpinButtons[0],rowSpinButtons[1],$P.find(scrollDivName), $P.validForBackground);
+ FimsComponentization.fnMakeRowSpinner(this,rowSpinButtons[0],rowSpinButtons[1],$P.findn(scrollDivName), $P.validForBackground);
});
}
@@ -448,7 +448,7 @@ $(document).ready(function(){
$P.fnGetProto = (prototypeList, otptArtclNm, stngItemAttrNm) => {
if(stngItemAttrNm == "leftPstn" || stngItemAttrNm == "topPstn"){
- var paperSeCd = $P.$find("frmEdit").find("[name='paperSeCd']").val();
+ var paperSeCd = $P.$findn("frmEdit").find("[name='paperSeCd']").val();
var paperNm = "";
if(paperSeCd == "01"){
paperNm = "a4";
@@ -472,38 +472,38 @@ $(document).ready(function(){
//출력 요소 선택
$P.choiceOtptArtclNm = () => {
- $P.$find("dropdownUniqueAdd").html("");
+ $P.$findn("dropdownUniqueAdd").html("");
var prototypeList = $P.otptArtclStngMap.unique.prototypeList;
var existArr = [];
- $P.$find("tbodyUnique").find("tr").each(function(){
+ $P.$findn("tbodyUnique").find("tr").each(function(){
var el = $P.fnGetElement(this,"otptArtclNm");
existArr.push($(el).val());
});
var selectableArr = prototypeList.filter(item => existArr.indexOf(item.artclNm) == -1);
- var template = $P.find("dropdownTemplate");
+ var template = $P.findn("dropdownTemplate");
if(selectableArr.length < 1){
var li = template.innerHTML;
li = li.replace(/{onclick}/gi, "");
li = li.replace(/{DSCRP}/gi, "추가할 수 있는 항목이 없습니다.");
- $P.$find("dropdownUniqueAdd").append(li);
+ $P.$findn("dropdownUniqueAdd").append(li);
} else {
for(var i=0; i < selectableArr.length; i++){
var li = template.innerHTML;
li = li.replace(/{onclick}/gi, "pageObject['${pageName}'].addRow('" + selectableArr[i].artclNm + "')");
li = li.replace(/{DSCRP}/gi, selectableArr[i].artclDscrp);
- $P.$find("dropdownUniqueAdd").append(li);
+ $P.$findn("dropdownUniqueAdd").append(li);
}
}
}
//행 추가
$P.addRow = (otptArtclNm) => {
- var paperSeCd = $P.$find("frmEdit").find("[name='paperSeCd']").val();
+ var paperSeCd = $P.$findn("frmEdit").find("[name='paperSeCd']").val();
var prototypeList;
var tbodyName;
@@ -520,12 +520,12 @@ $(document).ready(function(){
var p = prototypeList[i];
components += "";
}
- var template = $P.find("found").innerHTML;
+ var template = $P.findn("found").innerHTML;
template = template.replace(/{OTPT_FORM_ID}/gi, "");
template = template.replace(/{COMPONENTS}/gi, components);
- $P.$find(tbodyName).append(template);
+ $P.$findn(tbodyName).append(template);
- var lastTr = $P.$find(tbodyName).find("tr").last()[0];
+ var lastTr = $P.$findn(tbodyName).find("tr").last()[0];
FimsComponentization.fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontNm"));
FimsComponentization.fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontColr"));
@@ -538,7 +538,7 @@ $(document).ready(function(){
scrollDivName = "scrollMultiple";
}
var rowSpinButtons = $(lastTr).find("td[data-col='otptArtclSeq']").find("button");
- FimsComponentization.fnMakeRowSpinner(lastTr,rowSpinButtons[0],rowSpinButtons[1],$P.find(scrollDivName), $P.validForBackground);
+ FimsComponentization.fnMakeRowSpinner(lastTr,rowSpinButtons[0],rowSpinButtons[1],$P.findn(scrollDivName), $P.validForBackground);
if(otptArtclNm != null && otptArtclNm != ""){
@@ -583,14 +583,14 @@ $(document).ready(function(){
FimsComponentization.fnMakeSpinnerSelect(sel, toPrev, toNext);
if(tbodyName == "tbodyUnique"){
- $P.$find("scrollUnique").scrollTop($P.find("scrollUnique").scrollHeight);
+ $P.$findn("scrollUnique").scrollTop($P.findn("scrollUnique").scrollHeight);
} else {
- $P.$find("scrollMultiple").scrollTop($P.find("scrollMultiple").scrollHeight);
+ $P.$findn("scrollMultiple").scrollTop($P.findn("scrollMultiple").scrollHeight);
}
if(otptArtclNm == "background"){ //배경이미지 순서 보정
- if($P.$find("tbodyUnique").find("tr").length >= 2){
- $P.$find("tbodyUnique").find("tr").eq(0).before(lastTr);
+ if($P.$findn("tbodyUnique").find("tr").length >= 2){
+ $P.$findn("tbodyUnique").find("tr").eq(0).before(lastTr);
}
}
@@ -599,17 +599,17 @@ $(document).ready(function(){
//행 삭제
$P.delRow = (tbodyName) => {
- if($P.$find(tbodyName).find("tr").length <= 0){
+ if($P.$findn(tbodyName).find("tr").length <= 0){
alert('삭제할 항목이 없습니다.');
return;
}
- if($P.$find(tbodyName).find("input[name='del'][type='checkbox']:checked").length <= 0){
+ if($P.$findn(tbodyName).find("input[name='del'][type='checkbox']:checked").length <= 0){
alert('체크된 항목이 없습니다.');
return;
}
- $P.$find(tbodyName).find("tr").filter(function(index, item){
+ $P.$findn(tbodyName).find("tr").filter(function(index, item){
if($(item).find("input[name='del'][type='checkbox']").is(":checked")){
$(item).remove();
}
@@ -618,7 +618,7 @@ $(document).ready(function(){
//출력 요소 변경
$P.fnChangeComponent = (selectElement) => {
- if($P.$find("tbodyMultiple").find(selectElement).length <= 0){
+ if($P.$findn("tbodyMultiple").find(selectElement).length <= 0){
return;
}
@@ -657,7 +657,7 @@ $(document).ready(function(){
//출력 요소 설정 값 추출
$P.getRowData = (tbodyName, formData) => {
var rowArr = [];
- $P.$find(tbodyName).find("tr").each(function(){
+ $P.$findn(tbodyName).find("tr").each(function(){
var row = {};
row.otptFormId = this.dataset.key;
@@ -697,7 +697,7 @@ $(document).ready(function(){
$P.fnSave = () => {
//출력물 전역설정
- var formData = new FormData($P.find("frmEdit"));
+ var formData = new FormData($P.findn("frmEdit"));
//출력 요소 설정
var rowArr1 = $P.getRowData("tbodyUnique", formData);
@@ -722,19 +722,19 @@ $(document).ready(function(){
contentType : false, processData : false,
success : (resp) => {
if(resp.saved){
- if(!$P.$find("viewSample").is(":checked")){
+ if(!$P.$findn("viewSample").is(":checked")){
dialog.alert("저장되었습니다.");
}
- var formFields = new FimsFormFields($P.selector("frmEdit")).get();
- $P.$find("frmSearch").find("[name='sggCd']").val(formFields.sggCd);
- $P.$find("frmSearch").find("[name='taskSeCd']").val(formFields.taskSeCd);
- $P.$find("frmSearch").find("[name='sndngSeCd']").val(formFields.sndngSeCd);
- $P.$find("frmSearch").find("[name='paperSeCd']").val(formFields.paperSeCd);
+ var formFields = new FimsFormFields($P.selectorn("frmEdit")).get();
+ $P.$findn("frmSearch").find("[name='sggCd']").val(formFields.sggCd);
+ $P.$findn("frmSearch").find("[name='taskSeCd']").val(formFields.taskSeCd);
+ $P.$findn("frmSearch").find("[name='sndngSeCd']").val(formFields.sndngSeCd);
+ $P.$findn("frmSearch").find("[name='paperSeCd']").val(formFields.paperSeCd);
- $P.$find("btnLoad").click();
+ $P.$findn("btnLoad").click();
- if($P.$find("viewSample").is(":checked")){
+ if($P.$findn("viewSample").is(":checked")){
$P.fnMakeSampleFile();
}
}
@@ -745,7 +745,7 @@ $(document).ready(function(){
//샘플파일 생성
$P.fnMakeSampleFile = () => {
- var formFields = new FimsFormFields($P.selector("frmEdit"));
+ var formFields = new FimsFormFields($P.selectorn("frmEdit"));
var submitParam = formFields.get();
submitParam.crdnIds = "sample";
@@ -811,41 +811,41 @@ $(document).ready(function(){
var a = document.createElement("a");
a.href = $P.otptGlobalStng.BCRN_IMG_PATH;
a.download = $P.otptGlobalStng.BCRN_IMG_FILE_NM;
- $P.find("tempArea").appendChild(a);
+ $P.findn("tempArea").appendChild(a);
a.click();
- $P.find("tempArea").removeChild(a);
+ $P.findn("tempArea").removeChild(a);
}
$P.fnBgUpload = (fileElement) => {
if(fileElement.files == null || fileElement.files.length == 0){
if($P.otptGlobalStng.BCRN_IMG_PATH == null || $P.otptGlobalStng.BCRN_IMG_PATH == ""){
- $P.$find("fileStatus").text("없음");
- $P.$find("fileStatus").attr("title","");
- $P.$find("btnBgDown").attr("hidden","hidden");
+ $P.$findn("fileStatus").text("없음");
+ $P.$findn("fileStatus").attr("title","");
+ $P.$findn("btnBgDown").attr("hidden","hidden");
} else {
- $P.$find("fileStatus").text("있음");
- $P.$find("fileStatus").attr("title", $P.otptGlobalStng.BCRN_IMG_FILE_NM);
- $P.$find("btnBgDown").removeAttr("hidden");
+ $P.$findn("fileStatus").text("있음");
+ $P.$findn("fileStatus").attr("title", $P.otptGlobalStng.BCRN_IMG_FILE_NM);
+ $P.$findn("btnBgDown").removeAttr("hidden");
}
} else {
- $P.$find("fileStatus").text("이미지 변경됨");
- $P.$find("fileStatus").attr("title","");
- $P.$find("btnBgDown").attr("hidden","hidden");
+ $P.$findn("fileStatus").text("이미지 변경됨");
+ $P.$findn("fileStatus").attr("title","");
+ $P.$findn("btnBgDown").attr("hidden","hidden");
}
}
- $P.$find("theadUnique").html($P.find("theadTr").innerHTML);
- $P.$find("theadMultiple").html($P.find("theadTr").innerHTML);
+ $P.$findn("theadUnique").html($P.findn("theadTr").innerHTML);
+ $P.$findn("theadMultiple").html($P.findn("theadTr").innerHTML);
- $P.$find("btnLoad").on("click", () => $P.fnLoad() );
+ $P.$findn("btnLoad").on("click", () => $P.fnLoad() );
- $P.$find("btnUniqueAdd").on("click", () => $P.choiceOtptArtclNm() );
- $P.$find("btnMultipleAdd").on("click", () => $P.addRow() );
+ $P.$findn("btnUniqueAdd").on("click", () => $P.choiceOtptArtclNm() );
+ $P.$findn("btnMultipleAdd").on("click", () => $P.addRow() );
- $P.$find("btnUniqueDel").on("click", () => $P.delRow('tbodyUnique') );
- $P.$find("btnMultipleDel").on("click", () => $P.delRow('tbodyMultiple') );
+ $P.$findn("btnUniqueDel").on("click", () => $P.delRow('tbodyUnique') );
+ $P.$findn("btnMultipleDel").on("click", () => $P.delRow('tbodyMultiple') );
- $P.$find("btnSave").on("click", () => $P.fnSave() );
+ $P.$findn("btnSave").on("click", () => $P.fnSave() );
var markerFinder = function(tr){
return $P.fnGetElement(tr,"otptArtclSeq");
@@ -854,8 +854,8 @@ $(document).ready(function(){
marker.value = value;
};
- Componentization.fnMakeRowNumberingTable($P.find("tbodyUnique"), markerFinder, markerSetter);
- Componentization.fnMakeRowNumberingTable($P.find("tbodyMultiple"), markerFinder, markerSetter);
+ Componentization.fnMakeRowNumberingTable($P.findn("tbodyUnique"), markerFinder, markerSetter);
+ Componentization.fnMakeRowNumberingTable($P.findn("tbodyMultiple"), markerFinder, markerSetter);
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/stng01020-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stng01020-main.jsp
index cae5c08d..660367e4 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/stng01020-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/stng01020-main.jsp
@@ -180,40 +180,40 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"];
$P.extrArtclStngMap = {};
- $P.$find("btnSave").attr("disabled","disabled");
+ $P.$findn("btnSave").attr("disabled","disabled");
- $P.$find("btnPredefinedAdd").attr("disabled","disabled");
- $P.$find("btnPredefinedDel").attr("disabled","disabled");
- $P.$find("btnCustomAdd}").attr("disabled","disabled");
- $P.$find("btnCustomDel").attr("disabled","disabled");
+ $P.$findn("btnPredefinedAdd").attr("disabled","disabled");
+ $P.$findn("btnPredefinedDel").attr("disabled","disabled");
+ $P.$findn("btnCustomAdd}").attr("disabled","disabled");
+ $P.$findn("btnCustomDel").attr("disabled","disabled");
$P.fnLoad = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var query = formFields.get();
ajax.post({
url : wctx.url("/stng/stng01/020/info.do"),
data : query,
success : (resp) => {
- $P.$find("btnSave").removeAttr("disabled");
- $P.$find("btnPredefinedAdd").removeAttr("disabled");
- $P.$find("btnPredefinedDel").removeAttr("disabled");
- $P.$find("btnCustomAdd").removeAttr("disabled");
- $P.$find("btnCustomDel").removeAttr("disabled");
- $P.$find("currentTmplat").text("");
+ $P.$findn("btnSave").removeAttr("disabled");
+ $P.$findn("btnPredefinedAdd").removeAttr("disabled");
+ $P.$findn("btnPredefinedDel").removeAttr("disabled");
+ $P.$findn("btnCustomAdd").removeAttr("disabled");
+ $P.$findn("btnCustomDel").removeAttr("disabled");
+ $P.$findn("currentTmplat").text("");
- $P.$find("tbodyPredefined").html("");
- $P.$find("tbodyCustom").html("");
+ $P.$findn("tbodyPredefined").html("");
+ $P.$findn("tbodyCustom").html("");
- $P.$find("frmEdit").find("[name='sggCd']").val(query.sggCd);
- $P.$find("frmEdit").find("[name='taskSeCd']").val(query.taskSeCd);
- $P.$find("frmEdit").find("[name='tmplatId']").val(query.tmplatId);
+ $P.$findn("frmEdit").find("[name='sggCd']").val(query.sggCd);
+ $P.$findn("frmEdit").find("[name='taskSeCd']").val(query.taskSeCd);
+ $P.$findn("frmEdit").find("[name='tmplatId']").val(query.tmplatId);
- $P.$find("frmEdit").find("[name='extrBscId']").val(resp.EXTR_BSC_ID);
+ $P.$findn("frmEdit").find("[name='extrBscId']").val(resp.EXTR_BSC_ID);
- $P.$find("mobilePageTmplt").val(resp.MOBILE_PAGE_TMPLT);
+ $P.$findn("mobilePageTmplt").val(resp.MOBILE_PAGE_TMPLT);
- $P.$find("currentTmplat").text(resp.extrStngTitle);
+ $P.$findn("currentTmplat").text(resp.extrStngTitle);
$P.extrArtclStngMap = resp.extrArtclStngMap;
@@ -232,12 +232,12 @@ $(document).ready(function(){
for(var i=0; i < dataList.length; i++){
var data = dataList[i];
- var found = $P.find("found").innerHTML;
+ var found = $P.findn("found").innerHTML;
found = found.replace(/{EXTR_FORM_ID}/gi, data.EXTR_FORM_ID);
- $P.$find(tbodyName).append(found);
+ $P.$findn(tbodyName).append(found);
- var lastTr = $P.$find(tbodyName).find("tr").last()[0];
+ var lastTr = $P.$findn(tbodyName).find("tr").last()[0];
$($P.fnGetElement(lastTr,"extrArtclNm")).set(data.EXTR_ARTCL_NM);
$($P.fnGetElement(lastTr,"extrArtclDscrp")).set(data.EXTR_ARTCL_DSCRP);
@@ -255,7 +255,7 @@ $(document).ready(function(){
}
- $P.$find(tbodyName).find("tr").each(function(){
+ $P.$findn(tbodyName).find("tr").each(function(){
if(tbodyName == "tbodyPredefined"){
$($P.fnGetElement(this,"extrArtclNm")).attr("disabled","disabled").addClass("no-bgi");
@@ -271,7 +271,7 @@ $(document).ready(function(){
var rowSpinButtons = $(this).find("td[data-col='extrArtclOrdr']").find("button");
- FimsComponentization.fnMakeRowSpinner(this,rowSpinButtons[0],rowSpinButtons[1],$P.find(scrollDivName), $P.valid);
+ FimsComponentization.fnMakeRowSpinner(this,rowSpinButtons[0],rowSpinButtons[1],$P.findn(scrollDivName), $P.valid);
});
}
@@ -282,31 +282,31 @@ $(document).ready(function(){
//추출 요소 선택
$P.choiceExtrArtclNm = () => {
- $P.$find("dropdownPredefinedAdd").html("");
+ $P.$findn("dropdownPredefinedAdd").html("");
var predefinedSetList = $P.extrArtclStngMap.predefinedSetList;
var existArr = [];
- $P.$find("tbodyPredefined").find("tr").each(function(){
+ $P.$findn("tbodyPredefined").find("tr").each(function(){
var el = $P.fnGetElement(this,"extrArtclNm");
existArr.push($(el).val());
});
var selectableArr = predefinedSetList.filter(item => existArr.indexOf(item.artclNm) == -1);
- var template = $P.find("dropdownTemplate");
+ var template = $P.findn("dropdownTemplate");
if(selectableArr.length < 1){
var li = template.innerHTML;
li = li.replace(/{onclick}/gi, "");
li = li.replace(/{DSCRP}/gi, "추가할 수 있는 항목이 없습니다.");
- $P.$find("dropdownPredefinedAdd").append(li);
+ $P.$findn("dropdownPredefinedAdd").append(li);
} else {
for(var i=0; i < selectableArr.length; i++){
var li = template.innerHTML;
li = li.replace(/{onclick}/gi, "pageObject['${pageName}'].addRow('" + selectableArr[i].artclNm + "','"+selectableArr[i].artclDscrp+"')");
li = li.replace(/{DSCRP}/gi, selectableArr[i].artclDscrp);
- $P.$find("dropdownPredefinedAdd").append(li);
+ $P.$findn("dropdownPredefinedAdd").append(li);
}
}
}
@@ -322,12 +322,12 @@ $(document).ready(function(){
tbodyName = "tbodyPredefined";
}
- var template = $P.find("found").innerHTML;
+ var template = $P.findn("found").innerHTML;
template = template.replace(/{EXTR_FORM_ID}/gi, "");
- $P.$find(tbodyName).append(template);
+ $P.$findn(tbodyName).append(template);
- var lastTr = $P.$find(tbodyName).find("tr").last()[0];
+ var lastTr = $P.$findn(tbodyName).find("tr").last()[0];
var scrollDivName = "";l
@@ -337,7 +337,7 @@ $(document).ready(function(){
scrollDivName = "scrollCustom";
}
var rowSpinButtons = $(lastTr).find("td[data-col='extrArtclOrdr']").find("button");
- FimsComponentization.fnMakeRowSpinner(lastTr,rowSpinButtons[0],rowSpinButtons[1],$P.find(scrollDivName), $P.valid);
+ FimsComponentization.fnMakeRowSpinner(lastTr,rowSpinButtons[0],rowSpinButtons[1],$P.findn(scrollDivName), $P.valid);
if(extrArtclNm != null && extrArtclNm != ""){
@@ -367,9 +367,9 @@ $(document).ready(function(){
FimsComponentization.fnMakeSpinnerSelect(sel, toPrev, toNext);
if(tbodyName == "tbodyPredefined"){
- $P.$find("scrollPredefined").scrollTop($P.find("scrollPredefined").scrollHeight);
+ $P.$findn("scrollPredefined").scrollTop($P.findn("scrollPredefined").scrollHeight);
} else {
- $P.$find("scrollCustom").scrollTop($P.find("scrollCustom").scrollHeight);
+ $P.$findn("scrollCustom").scrollTop($P.findn("scrollCustom").scrollHeight);
}
@@ -378,17 +378,17 @@ $(document).ready(function(){
//행 삭제
$P.delRow = (tbodyName) => {
- if($P.$find(tbodyName).find("tr").length <= 0){
+ if($P.$findn(tbodyName).find("tr").length <= 0){
alert('삭제할 항목이 없습니다.');
return;
}
- if($P.$find(tbodyName).find("input[name='del'][type='checkbox']:checked").length <= 0){
+ if($P.$findn(tbodyName).find("input[name='del'][type='checkbox']:checked").length <= 0){
alert('체크된 항목이 없습니다.');
return;
}
- $P.$find(tbodyName).find("tr").filter(function(index, item){
+ $P.$findn(tbodyName).find("tr").filter(function(index, item){
if($(item).find("input[name='del'][type='checkbox']").is(":checked")){
$(item).remove();
}
@@ -400,7 +400,7 @@ $(document).ready(function(){
//추출 요소 설정 값 추출
$P.getRowData = (tbodyName, formData) => {
var rowArr = [];
- $P.$find(tbodyName).find("tr").each(function(){
+ $P.$findn(tbodyName).find("tr").each(function(){
var row = {};
row.extrFormId = this.dataset.key;
@@ -426,10 +426,10 @@ $(document).ready(function(){
//추출 설정 저장
$P.fnSave = () => {
- var formData = new FormData($P.find("frmEdit"));
+ var formData = new FormData($P.findn("frmEdit"));
//템플릿 문자열
- formData.append("mobilePageTmplt",$P.$find("mobilePageTmplt").val());
+ formData.append("mobilePageTmplt",$P.$findn("mobilePageTmplt").val());
//추출 요소 설정
var rowArr1 = $P.getRowData("tbodyPredefined", formData);
@@ -461,12 +461,12 @@ $(document).ready(function(){
alert("저장되었습니다.");
- var formFields = new FimsFormFields($P.selector("frmEdit")).get();
- $P.$find("frmSearch").find("[name='sggCd']").val(formFields.sggCd);
- $P.$find("frmSearch").find("[name='taskSeCd']").val(formFields.taskSeCd);
- $P.$find("frmSearch").find("[name='tmplatId']").val(formFields.tmplatId);
+ var formFields = new FimsFormFields($P.selectorn("frmEdit")).get();
+ $P.$findn("frmSearch").find("[name='sggCd']").val(formFields.sggCd);
+ $P.$findn("frmSearch").find("[name='taskSeCd']").val(formFields.taskSeCd);
+ $P.$findn("frmSearch").find("[name='tmplatId']").val(formFields.tmplatId);
- $P.$find("btnLoad").click();
+ $P.$findn("btnLoad").click();
}
}
});
@@ -478,18 +478,18 @@ $(document).ready(function(){
};
- $P.$find("theadPredefined").html($P.find("theadTr").innerHTML);
- $P.$find("theadCustom").html($P.find("theadTr").innerHTML);
+ $P.$findn("theadPredefined").html($P.findn("theadTr").innerHTML);
+ $P.$findn("theadCustom").html($P.findn("theadTr").innerHTML);
- $P.$find("btnLoad").on("click", () => $P.fnLoad() );
+ $P.$findn("btnLoad").on("click", () => $P.fnLoad() );
- $P.$find("btnPredefinedAdd").on("click", () => $P.choiceExtrArtclNm() );
- $P.$find("btnCustomAdd").on("click", () => $P.addRow() );
+ $P.$findn("btnPredefinedAdd").on("click", () => $P.choiceExtrArtclNm() );
+ $P.$findn("btnCustomAdd").on("click", () => $P.addRow() );
- $P.$find("btnPredefinedDel").on("click", () => $P.delRow('tbodyPredefined') );
- $P.$find("btnCustomDel").on("click", () => $P.delRow('tbodyCustom') );
+ $P.$findn("btnPredefinedDel").on("click", () => $P.delRow('tbodyPredefined') );
+ $P.$findn("btnCustomDel").on("click", () => $P.delRow('tbodyCustom') );
- $P.$find("btnSave").on("click", () => $P.fnSave() );
+ $P.$findn("btnSave").on("click", () => $P.fnSave() );
var markerFinder = function(tr){
return $P.fnGetElement(tr,"extrArtclOrdr");
@@ -498,8 +498,8 @@ $(document).ready(function(){
marker.value = value;
};
- Componentization.fnMakeRowNumberingTable($P.find("tbodyPredefined"), markerFinder, markerSetter);
- Componentization.fnMakeRowNumberingTable($P.find("tbodyCustom"), markerFinder, markerSetter);
+ Componentization.fnMakeRowNumberingTable($P.findn("tbodyPredefined"), markerFinder, markerSetter);
+ Componentization.fnMakeRowNumberingTable($P.findn("tbodyCustom"), markerFinder, markerSetter);
});
diff --git a/src/main/webapp/WEB-INF/jsp/fims/stng01030-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stng01030-main.jsp
index a6f43b3d..296d853b 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/stng01030-main.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/stng01030-main.jsp
@@ -145,34 +145,34 @@ $(document).ready(function(){
$P.zipGlobalStng = {};
$P.zipArtclStngMap = {};
- $P.$find("btnSave").attr("disabled","disabled");
+ $P.$findn("btnSave").attr("disabled","disabled");
- $P.$find("btnAdd").attr("disabled","disabled");
- $P.$find("btnDel").attr("disabled","disabled");
+ $P.$findn("btnAdd").attr("disabled","disabled");
+ $P.$findn("btnDel").attr("disabled","disabled");
$P.fnLoad = () => {
- var formFields = new FimsFormFields($P.selector("frmSearch"));
+ var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var query = formFields.get();
ajax.post({
url : wctx.url("/stng/stng01/030/info.do"),
data : query,
success : (resp) => {
- $P.$find("btnSave").removeAttr("disabled");
+ $P.$findn("btnSave").removeAttr("disabled");
- $P.$find("btnAdd").removeAttr("disabled");
- $P.$find("btnDel").removeAttr("disabled");
- $P.$find("currentOtpt").text("");
- $P.$find("zipGlobalStng").html("");
+ $P.$findn("btnAdd").removeAttr("disabled");
+ $P.$findn("btnDel").removeAttr("disabled");
+ $P.$findn("currentOtpt").text("");
+ $P.$findn("zipGlobalStng").html("");
- $P.$find("tbody").html("");
+ $P.$findn("tbody").html("");
- $P.$find("frmEdit").find("[name='sggCd']").val(query.sggCd);
- $P.$find("frmEdit").find("[name='taskSeCd']").val(query.taskSeCd);
- $P.$find("frmEdit").find("[name='sndngSeCd']").val(query.sndngSeCd);
+ $P.$findn("frmEdit").find("[name='sggCd']").val(query.sggCd);
+ $P.$findn("frmEdit").find("[name='taskSeCd']").val(query.taskSeCd);
+ $P.$findn("frmEdit").find("[name='sndngSeCd']").val(query.sndngSeCd);
- $P.$find("currentOtpt").text(resp.outsourcingStngTitle);
+ $P.$findn("currentOtpt").text(resp.outsourcingStngTitle);
if(resp.zipGlobalStng != null){
$P.zipGlobalStng = resp.zipGlobalStng;
} else {
@@ -195,10 +195,10 @@ $(document).ready(function(){
//전역 설정 렌더링
$P.renderZipGlobalStng = (zipGlobalStng) => {
- var editForm = $P.$find("frmEdit");
+ var editForm = $P.$findn("frmEdit");
//설정ID
- $P.$find("zipGlobalStng").append("");
+ $P.$findn("zipGlobalStng").append("");
editForm.find("input[name='outsourcingBscId']").val(zipGlobalStng.OUTSOURCING_BSC_ID);
}
@@ -215,13 +215,13 @@ $(document).ready(function(){
for(var i=0; i < dataList.length; i++){
var data = dataList[i];
- var found = $P.find("found").innerHTML;
+ var found = $P.findn("found").innerHTML;
found = found.replace(/{OUTSOURCING_FORM_ID}/gi, data.OUTSOURCING_FORM_ID);
found = found.replace(/{COMPONENTS}/gi, components);
- $P.$find("tbody").append(found);
+ $P.$findn("tbody").append(found);
- var lastTr = $P.$find("tbody").find("tr").last()[0];
+ var lastTr = $P.$findn("tbody").find("tr").last()[0];
$($P.fnGetElement(lastTr,"artclNm")).set(data.ARTCL_NM);
$($P.fnGetElement(lastTr,"artclSz"))
@@ -232,7 +232,7 @@ $(document).ready(function(){
.set(!isEmpty(data.FORMATTING) ? data.FORMATTING : "");
}
- $P.$find("tbody").find("tr").each(function(){
+ $P.$findn("tbody").find("tr").each(function(){
var sel = $P.fnGetElement(this,"paddingDirection");
var toPrev = $(sel).siblings()[0];
@@ -243,7 +243,7 @@ $(document).ready(function(){
var rowSpinButtons = $(this).find("td[data-col='artclOrdr']").find("button");
- FimsComponentization.fnMakeRowSpinner(this,rowSpinButtons[0],rowSpinButtons[1],$P.find(scrollDivName), null);
+ FimsComponentization.fnMakeRowSpinner(this,rowSpinButtons[0],rowSpinButtons[1],$P.findn(scrollDivName), null);
});
}
@@ -262,15 +262,15 @@ $(document).ready(function(){
var p = predefinedSetList[i];
components += "";
}
- var template = $P.find("found").innerHTML;
+ var template = $P.findn("found").innerHTML;
template = template.replace(/{OUTSOURCING_FORM_ID}/gi, "");
template = template.replace(/{COMPONENTS}/gi, components);
- $P.$find("tbody").append(template);
+ $P.$findn("tbody").append(template);
- var lastTr = $P.$find("tbody").find("tr").last()[0];
+ var lastTr = $P.$findn("tbody").find("tr").last()[0];
var rowSpinButtons = $(lastTr).find("td[data-col='artclOrdr']").find("button");
- FimsComponentization.fnMakeRowSpinner(lastTr,rowSpinButtons[0],rowSpinButtons[1], $P.find("scroll"), null);
+ FimsComponentization.fnMakeRowSpinner(lastTr,rowSpinButtons[0],rowSpinButtons[1], $P.findn("scroll"), null);
//셀렉트 스피너
@@ -279,24 +279,24 @@ $(document).ready(function(){
var toNext = $(sel).siblings()[1];
FimsComponentization.fnMakeSpinnerSelect(sel, toPrev, toNext);
- $P.$find("scroll").scrollTop($P.find("scroll").scrollHeight);
+ $P.$findn("scroll").scrollTop($P.findn("scroll").scrollHeight);
}
//행 삭제
$P.delRow = () => {
- if($P.$find("tbody").find("tr").length <= 0){
+ if($P.$findn("tbody").find("tr").length <= 0){
alert('삭제할 항목이 없습니다.');
return;
}
- if($P.$find("tbody").find("input[name='del'][type='checkbox']:checked").length <= 0){
+ if($P.$findn("tbody").find("input[name='del'][type='checkbox']:checked").length <= 0){
alert('체크된 항목이 없습니다.');
return;
}
- $P.$find("tbody").find("tr").filter(function(index, selector){
+ $P.$findn("tbody").find("tr").filter(function(index, selector){
if($(selector).find("input[name='del'][type='checkbox']").is(":checked")){
$(selector).remove();
}
@@ -306,7 +306,7 @@ $(document).ready(function(){
//요소 설정 값 추출
$P.getRowData = (formData) => {
var rowArr = [];
- $P.$find("tbody").find("tr").each(function(){
+ $P.$findn("tbody").find("tr").each(function(){
var row = {};
row.outsourcingFormId = this.dataset.key;
@@ -331,7 +331,7 @@ $(document).ready(function(){
$P.fnSave = () => {
//출력물 전역설정
- var formData = new FormData($P.find("frmEdit"));
+ var formData = new FormData($P.findn("frmEdit"));
//요소 설정
var rowArr = $P.getRowData(formData);
@@ -361,25 +361,25 @@ $(document).ready(function(){
dialog.alert("저장되었습니다.");
- var formFields = new FimsFormFields($P.selector("frmEdit")).get();
- $P.$find("frmSearch").find("[name='sggCd']").val(formFields.sggCd);
- $P.$find("frmSearch").find("[name='taskSeCd']").val(formFields.taskSeCd);
- $P.$find("frmSearch").find("[name='sndngSeCd']").val(formFields.sndngSeCd);
+ var formFields = new FimsFormFields($P.selectorn("frmEdit")).get();
+ $P.$findn("frmSearch").find("[name='sggCd']").val(formFields.sggCd);
+ $P.$findn("frmSearch").find("[name='taskSeCd']").val(formFields.taskSeCd);
+ $P.$findn("frmSearch").find("[name='sndngSeCd']").val(formFields.sndngSeCd);
- $P.$find("btnLoad").click();
+ $P.$findn("btnLoad").click();
}
}
});
}
- $P.$find("thead").html($P.find("theadTr").innerHTML);
+ $P.$findn("thead").html($P.findn("theadTr").innerHTML);
- $P.$find("btnLoad").on("click", () => $P.fnLoad() );
- $P.$find("btnAdd").on("click", () => $P.addRow() );
- $P.$find("btnDel").on("click", () => $P.delRow() );
- $P.$find("btnSave").on("click", () => $P.fnSave() );
+ $P.$findn("btnLoad").on("click", () => $P.fnLoad() );
+ $P.$findn("btnAdd").on("click", () => $P.addRow() );
+ $P.$findn("btnDel").on("click", () => $P.delRow() );
+ $P.$findn("btnSave").on("click", () => $P.fnSave() );
var markerFinder = function(tr){
return $P.fnGetElement(tr,"artclOrdr");
@@ -388,7 +388,7 @@ $(document).ready(function(){
marker.value = value;
};
- Componentization.fnMakeRowNumberingTable($P.find("tbody"), markerFinder, markerSetter);
+ Componentization.fnMakeRowNumberingTable($P.findn("tbody"), markerFinder, markerSetter);
});
diff --git a/src/main/webapp/resources/js/fims/cmmn/fims-base.js b/src/main/webapp/resources/js/fims/cmmn/fims-base.js
index c5ffe6aa..bb4b004d 100644
--- a/src/main/webapp/resources/js/fims/cmmn/fims-base.js
+++ b/src/main/webapp/resources/js/fims/cmmn/fims-base.js
@@ -147,10 +147,12 @@ class FimsFormFields extends FormFields {
**************************************************************************/
function newDoctxFinder(doctx){
let finder = new DoctxFinder(doctx);
+ finder.setContainers("[data-doctx='"+doctx+"']");
+
return finder;
}
-class DoctxFinder extends EventTarget {
+class DoctxFinder extends DomQuery {
constructor(doctx) {
super();
this.doctx = doctx;
@@ -165,18 +167,24 @@ class DoctxFinder extends EventTarget {
console.log("DoctxFinder클래스 : HTML문서 내에서 data-doctx속성을 갖는 요소의 내부에서 name속성 값으로 하위요소를 찾을 수 있는 기능을 제공하는 객체이다.");
console.log("newDoctxFinder(doctx명);전역함수로 인스턴스 생성할 수 있다.");
console.log("클래스 메서드 목록");
- console.log("selector(요소이름) : 문자열 [data-doctx='설정된doctx'] [name='요소이름'] 을 반환한다.");
+ console.log("selectorn(요소이름) : 문자열 [data-doctx='설정된doctx'] [name='요소이름'] 을 반환한다.");
+ console.log("findn(요소이름) : data-doctx속성이 설정된doctx인 요소 내에서 name속성이 요소이름인 HTML요소를 반환한다.");
+ console.log("$findn(요소이름) : data-doctx속성이 설정된doctx인 요소 내에서 name속성이 요소이름인 제이쿼리 객체를 반환한다.");
console.log("selfElement() : data-doctx속성이 설정된doctx인 HTML요소를 반환한다.");
console.log("selfDlgId() : data-doctx속성이 설정된doctx인 HTML요소를 갖는 모달창의 id를 반환한다.");
console.log("refDlgId(모달창이름) : data-ref-doctx속성이 설정된doctx이고 name속성이 모달창이름인 모달창의 id를 반환한다.");
- console.log("$find(요소이름) : data-doctx속성이 설정된doctx인 요소 내에서 name속성이 요소이름인 제이쿼리 객체를 반환한다.");
- console.log("find(요소이름) : data-doctx속성이 설정된doctx인 요소 내에서 name속성이 요소이름인 HTML요소를 반환한다.");
- console.log("findAll(요소이름) : data-doctx속성이 설정된doctx인 요소 내에서 name속성이 요소이름인 HTML요소목록을 반환한다.");
}
- selector(name){
- return "[data-doctx='"+this.doctx+"'] [name='"+name+"']";
+ selectorn(name){
+ return this.selector("[name='"+name+"']");
+ }
+ findn(name){
+ return this.find("[name='"+name+"']");
}
+ $findn(name){
+ return $(document.querySelector("[data-doctx='"+this.doctx+"']")).find("[name='"+name+"']");
+ }
+
selfElement(){
return document.querySelector("[data-doctx='"+this.doctx+"']");
}
@@ -194,15 +202,7 @@ class DoctxFinder extends EventTarget {
return "";
}
}
- $find(name){
- return $(document.querySelector("[data-doctx='"+this.doctx+"']")).find("[name='"+name+"']");
- }
- find(name){
- return document.querySelector("[data-doctx='"+this.doctx+"']").querySelector("[name='"+name+"']");
- }
- findAll(name){
- return document.querySelector("[data-doctx='"+this.doctx+"']").querySelectorAll("[name='"+name+"']");
- }
+
}
diff --git a/src/main/webapp/resources/js/fims/photo-main.js b/src/main/webapp/resources/js/fims/photo-main.js
index 5c68919c..103d0ca0 100644
--- a/src/main/webapp/resources/js/fims/photo-main.js
+++ b/src/main/webapp/resources/js/fims/photo-main.js
@@ -11,7 +11,7 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
$P.carLinkFunc = carLinkFunc;
//드래그앤드롭
- Sortable.create($P.find("dragAndDrop"), {
+ Sortable.create($P.findn("dragAndDrop"), {
onEnd : function(evt){
if(evt.oldIndex != evt.newIndex){
$P.updateFileInfo("changeOrder");
@@ -21,11 +21,11 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
//파일처리 버튼
//추가버튼
- $P.$find("btnAddFile").on('click', () => {
- $P.$find("inputUploadSet").trigger("click");
+ $P.$findn("btnAddFile").on('click', () => {
+ $P.$findn("inputUploadSet").trigger("click");
});
//동영상캡쳐버튼
- $P.$find("btnOpenVideoCapture").on('click', () => {
+ $P.$findn("btnOpenVideoCapture").on('click', () => {
var crdnId = $(crdnIdElement).val();
var popupWidth = 1800;
@@ -46,8 +46,8 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
});
//편집버튼
- $P.$find("btnEditPhoto").on('click', async() => {
- var checked = $P.$find("displayForExist").find("[name='existPhoto']:checked");
+ $P.$findn("btnEditPhoto").on('click', async() => {
+ var checked = $P.$findn("displayForExist").find("[name='existPhoto']:checked");
if(checked.length < 1){
await alert2("선택된 사진이 없습니다.");
return;
@@ -72,9 +72,9 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
};
});
//삭제버튼
- $P.$find("btnDeleteExistPhoto").on('click', async() => {
+ $P.$findn("btnDeleteExistPhoto").on('click', async() => {
- var checked = $P.$find("displayForExist").find("[name='existPhoto']:checked");
+ var checked = $P.$findn("displayForExist").find("[name='existPhoto']:checked");
if(checked.length < 1){
await alert2("선택된 사진이 없습니다.");
return;
@@ -91,7 +91,7 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
$P.updateFileInfo("delete");
});
- $P.uploadSet = uploadSupport($P.selector("inputUploadSet"));
+ $P.uploadSet = uploadSupport($P.selectorn("inputUploadSet"));
$P.uploadSet.onDatasetChange = () => {
@@ -123,9 +123,9 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
// pageName에 따라 template이 다르다.
var template;
if (pageName == "sprt02020") {
- template = $P.find("imgRadioTemplateTotalInfo").innerHTML;
+ template = $P.findn("imgRadioTemplateTotalInfo").innerHTML;
} else {
- template = $P.find("imgRadioTemplate").innerHTML;
+ template = $P.findn("imgRadioTemplate").innerHTML;
}
template = template.replace(/{name}/gi, "existPhoto");
@@ -155,11 +155,11 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
var tagsText = $P.fnMakeImgForExistFile($P.existFileArr);
if(tagsText == ""){
- $P.find("dragAndDrop").innerHTML = "";
- $P.$find("btnEditPhoto").hide();
+ $P.findn("dragAndDrop").innerHTML = "";
+ $P.$findn("btnEditPhoto").hide();
} else {
- $P.find("dragAndDrop").innerHTML = tagsText;
- $P.$find("btnEditPhoto").show();
+ $P.findn("dragAndDrop").innerHTML = tagsText;
+ $P.$findn("btnEditPhoto").show();
}
};
@@ -216,7 +216,7 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
// 사진 저장
$P.updateFileInfo = (flag) => {
- var formData = new FormData($P.find("frmFile"));
+ var formData = new FormData($P.findn("frmFile"));
formData.append("crdnId", $(crdnIdElement).val());
formData.append("atchFileCnt", $P.existFileArr.length);
@@ -260,7 +260,7 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
} else if(flag == "changeOrder"){
fileProcessingURL = wctx.url("file/changeOrderCrdnImageFile.do");
- var inputs = $P.$find("dragAndDrop").find("input[name='existPhoto']");
+ var inputs = $P.$findn("dragAndDrop").find("input[name='existPhoto']");
for(var i=0; i < inputs.length; i++){
formData.append("orderedKeys", inputs[i].value);
}
@@ -302,9 +302,9 @@ function initPhotoMain(pageName, fileList, existVideo){
//동영상캡쳐버튼
if(existVideo){
- $P.$find("btnOpenVideoCapture").show();
+ $P.$findn("btnOpenVideoCapture").show();
} else {
- $P.$find("btnOpenVideoCapture").hide();
+ $P.$findn("btnOpenVideoCapture").hide();
}
$P.existFileArr = [];
@@ -316,8 +316,8 @@ function initPhotoMain(pageName, fileList, existVideo){
}
$P.localUploadArr = [];
- $P.find("inputUploadSet").value = "";
- $P.$find("inputUploadSet").trigger("change");
+ $P.findn("inputUploadSet").value = "";
+ $P.$findn("inputUploadSet").trigger("change");
$P.fnDisplay();
}
\ No newline at end of file