pageObject객체의 각 요소의 타입을 DomQuery를 상속한 클래스로 변경

main
이범준 3 months ago
parent 666de8abad
commit 574af5f2f6

@ -47,9 +47,9 @@
pageObject['${pageName}'] = newDoctxFinder("${pageName}"); pageObject['${pageName}'] = newDoctxFinder("${pageName}");
$(document).ready(function() { $(document).ready(function() {
let $P = pageObject['${pageName}']; 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("동일한 시군구 선택 불가"); alert("동일한 시군구 선택 불가");
return; return;
} }
@ -57,9 +57,9 @@ $(document).ready(function() {
ajax.get({ ajax.get({
url : wctx.url("admin/copySggStng.do"), url : wctx.url("admin/copySggStng.do"),
data : { data : {
taskSeCd : $P.$find("taskSeCd").val(), taskSeCd : $P.$findn("taskSeCd").val(),
srcSgg : $P.$find("srcSgg").val(), srcSgg : $P.$findn("srcSgg").val(),
trgtSgg : $P.$find("trgtSgg").val() trgtSgg : $P.$findn("trgtSgg").val()
}, },
success : (resp) => { success : (resp) => {
if(resp.saved){ if(resp.saved){

@ -96,7 +96,7 @@ $(document).ready(function(){
}); });
$P.fnRenderBackupAndOriginal = (list,tbodyName, dataset) => { $P.fnRenderBackupAndOriginal = (list,tbodyName, dataset) => {
$P.$find(tbodyName).html(""); $P.$findn(tbodyName).html("");
if(list != null && list.length > 0){ if(list != null && list.length > 0){
dataset.setData(list); dataset.setData(list);
@ -105,11 +105,11 @@ $(document).ready(function(){
} }
var empty = dataset.empty; var empty = dataset.empty;
var notFound = [$P.find("sggNotFound").innerHTML]; var notFound = [$P.findn("sggNotFound").innerHTML];
var found = $P.find("sggRow").innerHTML; var found = $P.findn("sggRow").innerHTML;
var replacer = (str, dataItem) => str.replace(/{onclick}/gi, ""); var replacer = (str, dataItem) => str.replace(/{onclick}/gi, "");
var trs = empty ? notFound : dataset.inStrings(found, replacer); var trs = empty ? notFound : dataset.inStrings(found, replacer);
$P.$find(tbodyName).html(trs.join()); $P.$findn(tbodyName).html(trs.join());
}; };
$P.getBackupAndOriginalDataList = () => { $P.getBackupAndOriginalDataList = () => {
@ -129,8 +129,8 @@ $(document).ready(function(){
}); });
}; };
$P.$find("btnAdd").on("click", function(){ $P.$findn("btnAdd").on("click", function(){
var checked = $P.$find("backupSggTbody").find("input[type='checkbox']:checked"); var checked = $P.$findn("backupSggTbody").find("input[type='checkbox']:checked");
if(checked.length < 1){ if(checked.length < 1){
return; return;
} }
@ -156,8 +156,8 @@ $(document).ready(function(){
}); });
}); });
$P.$find("btnDel").on("click", function(){ $P.$findn("btnDel").on("click", function(){
var checked = $P.$find("originalSggTbody").find("input[type='checkbox']:checked"); var checked = $P.$findn("originalSggTbody").find("input[type='checkbox']:checked");
if(checked.length < 1){ if(checked.length < 1){
return; return;
} }

@ -156,11 +156,11 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderLayoutList(obj["Total"], $P.ctrl.dataset.length, trs, option); $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) => { $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 = () => { $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='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
@ -184,7 +184,7 @@ $(document).ready(function(){
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize; data.fetchSize = $P.ctrl.defaultFetchSize;
@ -209,8 +209,8 @@ $(document).ready(function(){
} }
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$P.find("layoutNotFound").innerHTML]; var notFound = [$P.findn("layoutNotFound").innerHTML];
var found = $P.find("layoutRow").innerHTML; var found = $P.findn("layoutRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickLayoutList('" + dataItem.getValue("FILE_LAYOUT_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickLayoutList('" + dataItem.getValue("FILE_LAYOUT_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickLayoutList('" + 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; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs, initScroll, noMore); $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드 fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
} }
@ -240,7 +240,7 @@ $(document).ready(function(){
return; return;
} }
$P.$find("layoutTbody").setCurrentRow(dataKey); $P.$findn("layoutTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -308,23 +308,23 @@ $(document).ready(function(){
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on('click', () => $P.searchLayoutList()); $P.$findn("btnSearch").on('click', () => $P.searchLayoutList());
$P.$find("btnAdd").on('click', () => $P.createLayout()); $P.$findn("btnAdd").on('click', () => $P.createLayout());
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
Componentization.fnMakeResizableTable($P.find("table-responsive")); Componentization.fnMakeResizableTable($P.findn("table-responsive"));
Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollLayoutList); Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollLayoutList);
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); 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.fnResetAndChangeBiz(defaultBizValue);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드 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"); $(this).prop("disabled", "true");
}); });
}); });

@ -266,7 +266,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* DatasetControl, Dataset, FormFields * DatasetControl, Dataset, FormFields
**************************************************************************/ **************************************************************************/
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({ $P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : true, dataGetter : obj => obj["List"], appendData : true,
@ -296,7 +296,7 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$P.fnSave = () => { $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(); var info = $P.formFields.get();
@ -350,8 +350,8 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnSave").on('click', () => $P.fnSave()); $P.$findn("btnSave").on('click', () => $P.fnSave());
$P.$find("btnDelete").on('click', () => $P.fnRemove()); $P.$findn("btnDelete").on('click', () => $P.fnRemove());
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
@ -362,11 +362,11 @@ $(document).ready(function(){
} else { } else {
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
$P.$find("sggCd").val(MY_INFO.info.sggCd); $P.$findn("sggCd").val(MY_INFO.info.sggCd);
$P.$find("instCd").val(MY_INFO.info.instCd); $P.$findn("instCd").val(MY_INFO.info.instCd);
$P.$find("deptCd").val(MY_INFO.info.deptCd); $P.$findn("deptCd").val(MY_INFO.info.deptCd);
$P.$find("taskSeCd").val("${taskSeCd}"); $P.$findn("taskSeCd").val("${taskSeCd}");
$P.$find("btnDelete").attr("hidden","hidden"); $P.$findn("btnDelete").attr("hidden","hidden");
} }
}); });

@ -430,12 +430,12 @@ $(document).ready(function(){
$P.renderInspectionDataList(obj["Total"], $P.ctrl.dataset.length, trs, "photoInspection", option); $P.renderInspectionDataList(obj["Total"], $P.ctrl.dataset.length, trs, "photoInspection", option);
Apply.fromDataset.paging($P.ctrl.dataset, obj, Apply.fromDataset.paging($P.ctrl.dataset, obj,
$P.find("photoInspectionPaging"), $P.find("photoInspectionPagingInfo") $P.findn("photoInspectionPaging"), $P.findn("photoInspectionPagingInfo")
); );
}; };
$P.ctrl.dataset.onCurrentChange = (dataItem) => { $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 dataKey = "";
var curDataVhrno = ""; var curDataVhrno = "";
@ -459,16 +459,16 @@ $(document).ready(function(){
$P.renderInspectionDataList(obj["Total"], $P.alt.dataset.length, trs, "sameVehicleInspectionMain", option); $P.renderInspectionDataList(obj["Total"], $P.alt.dataset.length, trs, "sameVehicleInspectionMain", option);
Apply.fromDataset.paging($P.alt.dataset, obj, Apply.fromDataset.paging($P.alt.dataset, obj,
$P.find("sameVehicleInspectionMainPaging"), $P.find("sameVehicleInspectionMainPagingInfo") $P.findn("sameVehicleInspectionMainPaging"), $P.findn("sameVehicleInspectionMainPagingInfo")
); );
}; };
$P.alt.dataset.onCurrentChange = (dataItem) => { $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){ if(dataItem){
$P.searchDetailInspectionDataList(dataItem.data["CRDN_ID_LIST"]); $P.searchDetailInspectionDataList(dataItem.data["CRDN_ID_LIST"]);
} else { } else {
$P.$find("sameVehicleInspectionSubTbody").html(""); $P.$findn("sameVehicleInspectionSubTbody").html("");
} }
} }
@ -479,24 +479,24 @@ $(document).ready(function(){
}; };
$P.shift.dataset.onCurrentChange = (dataItem) => { $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 * pageObject.function
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $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='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val(""); searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$P.$find("byOutput").val("동적 검색"); $P.$findn("byOutput").val("동적 검색");
$P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름 $P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
$P.$find("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-7)); $P.$findn("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-7));
$P.$find("schCrdnYmdTo").datepicker('setDate', TODAY()); $P.$findn("schCrdnYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
$P.alt.dataset.setData([]); $P.alt.dataset.setData([]);
}; };
@ -509,18 +509,18 @@ $(document).ready(function(){
var clsForTask = taskSeCd.toLowerCase(); 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.$findn("btnOpenOverTime").off("click");
$P.$find("btnOpenOverTime").on("click", () => $P.openOverTimePop()); $P.$findn("btnOpenOverTime").on("click", () => $P.openOverTimePop());
$P.$find('btnPhotoInspection').trigger("click"); $P.$findn('btnPhotoInspection').trigger("click");
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
if($P.currentDisplay == "photoInspection"){ if($P.currentDisplay == "photoInspection"){
@ -655,8 +655,8 @@ $(document).ready(function(){
} }
var cellDefs = AppSupport.getCellDefs( var cellDefs = AppSupport.getCellDefs(
$P.$find("photoInspection_Table_0").find("thead th").not(".dummy-th").not(":eq(0)"), $P.$findn("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("photoInspectionRow").content).find("td").not(".dummy-td").not(":eq(0)")
); );
$P.ctrl.query.cellDefs = cellDefs; $P.ctrl.query.cellDefs = cellDefs;
@ -675,8 +675,8 @@ $(document).ready(function(){
if(excelTarget == "main"){ if(excelTarget == "main"){
var cellDefs = AppSupport.getCellDefs( var cellDefs = AppSupport.getCellDefs(
$P.$find("sameVehicleInspectionMain_Table_0").find("thead th").not(".dummy-th"), $P.$findn("sameVehicleInspectionMain_Table_0").find("thead th").not(".dummy-th"),
$($P.find("sameVehicleInspectionMainRow").content).find("td").not(".dummy-td") $($P.findn("sameVehicleInspectionMainRow").content).find("td").not(".dummy-td")
); );
$P.alt.query.cellDefs = cellDefs; $P.alt.query.cellDefs = cellDefs;
@ -684,8 +684,8 @@ $(document).ready(function(){
} else if(excelTarget == "sub"){ } else if(excelTarget == "sub"){
var cellDefs = AppSupport.getCellDefs( var cellDefs = AppSupport.getCellDefs(
$P.$find("sameVehicleInspectionSub_Table_0").find("thead th").not(".dummy-th"), $P.$findn("sameVehicleInspectionSub_Table_0").find("thead th").not(".dummy-th"),
$($P.find("sameVehicleInspectionSubRow").content).find("td").not(".dummy-td"), $($P.findn("sameVehicleInspectionSubRow").content).find("td").not(".dummy-td"),
FimsSupport.getCellDefsForPrivacyCell FimsSupport.getCellDefsForPrivacyCell
); );
$P.shift.query.cellDefs = cellDefs; $P.shift.query.cellDefs = cellDefs;
@ -703,23 +703,23 @@ $(document).ready(function(){
switch (gridType) { switch (gridType) {
case "photoInspection": case "photoInspection":
notFound = [$P.find("photoInspectionNotFound").innerHTML] notFound = [$P.findn("photoInspectionNotFound").innerHTML]
found = $P.find("photoInspectionRow").innerHTML; found = $P.findn("photoInspectionRow").innerHTML;
replacer = (str, dataItem) => str replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');"); .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','photoInspection');");
break; break;
case "sameVehicleInspectionMain": case "sameVehicleInspectionMain":
notFound = [$P.find("sameVehicleInspectionMainNotFound").innerHTML]; notFound = [$P.findn("sameVehicleInspectionMainNotFound").innerHTML];
found = $P.find("sameVehicleInspectionMainRow").innerHTML; found = $P.findn("sameVehicleInspectionMainRow").innerHTML;
replacer = (str, dataItem) => str replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');"); .replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID_LIST") + "','sameVehicleInspectionMain');");
break; break;
case "sameVehicleInspectionSub": case "sameVehicleInspectionSub":
notFound = [$P.find("sameVehicleInspectionSubNotFound").innerHTML] notFound = [$P.findn("sameVehicleInspectionSubNotFound").innerHTML]
found = $P.find("sameVehicleInspectionSubRow").innerHTML; found = $P.findn("sameVehicleInspectionSubRow").innerHTML;
replacer = (str, dataItem) => str replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickInspectionDataList('" + dataItem.getValue("CRDN_ID") + "','sameVehicleInspectionSub');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickInspectionDataList('" + 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; initScroll = false;
} }
$P.find("photoInspection-responsive").changeContent(trs, initScroll, noMore); $P.findn("photoInspection-responsive").changeContent(trs, initScroll, noMore);
break; break;
case "sameVehicleInspectionMain": case "sameVehicleInspectionMain":
@ -754,12 +754,12 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$P.find("sameVehicleInspectionMain-responsive").changeContent(trs, initScroll, noMore); $P.findn("sameVehicleInspectionMain-responsive").changeContent(trs, initScroll, noMore);
break; break;
case "sameVehicleInspectionSub": case "sameVehicleInspectionSub":
$P.$find("sameVehicleInspectionSubTbody").html(trs); $P.$findn("sameVehicleInspectionSubTbody").html(trs);
break; break;
default: break; default: break;
} }
@ -774,7 +774,7 @@ $(document).ready(function(){
case "photoInspection": case "photoInspection":
if(dataKey != ""){ if(dataKey != ""){
$P.$find("photoInspectionTbody").setCurrentRow(dataKey); $P.$findn("photoInspectionTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -788,7 +788,7 @@ $(document).ready(function(){
if(dataKey == ""){ if(dataKey == ""){
return; return;
} }
$P.$find("sameVehicleInspectionMainTbody").setCurrentRow(dataKey); $P.$findn("sameVehicleInspectionMainTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.alt.dataset, dataKey); Apply.toDataset.current($P.alt.dataset, dataKey);
@ -799,7 +799,7 @@ $(document).ready(function(){
if(dataKey == ""){ if(dataKey == ""){
return; return;
} }
$P.$find("sameVehicleInspectionSubTbody").setCurrentRow(dataKey); $P.$findn("sameVehicleInspectionSubTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.shift.dataset, dataKey); Apply.toDataset.current($P.shift.dataset, dataKey);
break; break;
@ -808,7 +808,7 @@ $(document).ready(function(){
$P.dblclickInspectionDataList = (dataKey) => { $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"); var dialogUrl = wctx.url("/sprt/sprt02/010/main.do");
@ -841,15 +841,15 @@ $(document).ready(function(){
$P.showPhoto = (dataKey, nextDataKey, curDataVhrno, nextDataVhrno) => { $P.showPhoto = (dataKey, nextDataKey, curDataVhrno, nextDataVhrno) => {
if(dataKey == ""){ if(dataKey == ""){
$P.$find("curDataVhrno").html(""); $P.$findn("curDataVhrno").html("");
$P.$find("nextDataVhrno").html(""); $P.$findn("nextDataVhrno").html("");
$P.$find("curDataFiles").html(""); $P.$findn("curDataFiles").html("");
$P.$find("nextDataFiles").html(""); $P.$findn("nextDataFiles").html("");
return; return;
} }
$P.$find("curDataVhrno").html(curDataVhrno); $P.$findn("curDataVhrno").html(curDataVhrno);
$P.$find("nextDataVhrno").html(nextDataVhrno); $P.$findn("nextDataVhrno").html(nextDataVhrno);
ajax.get({ ajax.get({
url:"file/list.do", url:"file/list.do",
@ -865,16 +865,16 @@ $(document).ready(function(){
var currentDataFileList = fileList.filter(x => x.INF_KEY == dataKey); var currentDataFileList = fileList.filter(x => x.INF_KEY == dataKey);
var nextDataFileList = fileList.filter(x => x.INF_KEY == nextDataKey); var nextDataFileList = fileList.filter(x => x.INF_KEY == nextDataKey);
$P.$find("curDataFiles").html(""); $P.$findn("curDataFiles").html("");
$P.$find("nextDataFiles").html(""); $P.$findn("nextDataFiles").html("");
currentDataFileList.forEach(function(item, index, array){ currentDataFileList.forEach(function(item, index, array){
var output = fnMakeImgTagForInspection(item.URL, item.FILE_NM,"cur"+item.FILE_ID+'${pageName}',item.MOSAIC); 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){ nextDataFileList.forEach(function(item, index, array){
var output = fnMakeImgTagForInspection(item.URL, item.FILE_NM,"next"+item.FILE_ID+'${pageName}',item.MOSAIC); 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" "callPurpose" : "create"
}; };
var taskSeCd = $P.$find("frmSearch").find("[name='taskSeCd']:checked").val(); var taskSeCd = $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val();
ajax.get({ ajax.get({
url : wctx.url(taskSeCd + "/excl/excl01/020/info.do"), url : wctx.url(taskSeCd + "/excl/excl01/020/info.do"),
@ -1001,8 +1001,8 @@ $(document).ready(function(){
// 사용자검색 callback // 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => { $P.callbackFindUser = (userId, userNm) => {
$P.$find("schRgtrCd").val(userId); // 사용자 ID $P.$findn("schRgtrCd").val(userId); // 사용자 ID
$P.$find("schRgtrNm").val(userNm); // 사용자 명 $P.$findn("schRgtrNm").val(userNm); // 사용자 명
} }
// 사용자검색 버튼 클릭 이벤트 // 사용자검색 버튼 클릭 이벤트
@ -1038,55 +1038,55 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); //초기화버튼 $P.$findn("btnReset").on('click', () => $P.fnReset()); //초기화버튼
$P.$find("btnPhotoInspection").on('click', () => { $P.$findn("btnPhotoInspection").on('click', () => {
$(".area-photoinspection").show(); $(".area-photoinspection").show();
$(".area-samevehicleinspection").hide(); $(".area-samevehicleinspection").hide();
$P.$find('btnPhotoInspection').addClass("active"); $P.$findn('btnPhotoInspection').addClass("active");
$P.$find('btnSameVehicleInspection').removeClass("active"); $P.$findn('btnSameVehicleInspection').removeClass("active");
$P.currentDisplay = "photoInspection"; $P.currentDisplay = "photoInspection";
}); });
$P.$find("btnSameVehicleInspection").on('click', () => { $P.$findn("btnSameVehicleInspection").on('click', () => {
$(".area-samevehicleinspection").show(); $(".area-samevehicleinspection").show();
$(".area-photoinspection").hide(); $(".area-photoinspection").hide();
$P.$find("btnSameVehicleInspection").addClass("active"); $P.$findn("btnSameVehicleInspection").addClass("active");
$P.$find("btnPhotoInspection").removeClass("active"); $P.$findn("btnPhotoInspection").removeClass("active");
$P.currentDisplay = "sameVehicleInspection"; $P.currentDisplay = "sameVehicleInspection";
}); });
$P.$find('btnSearch').on('click', () => $P.searchInspectionList()); //검색버튼 $P.$findn('btnSearch').on('click', () => $P.searchInspectionList()); //검색버튼
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$P.$find("term").onEnterPress($P.searchInspectionList); $P.$findn("term").onEnterPress($P.searchInspectionList);
$P.$find("btnExcel").on('click', () => $P.fnExcelDown()); $P.$findn("btnExcel").on('click', () => $P.fnExcelDown());
$P.$find("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색 $P.$findn("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
$P.$find("btnInstLevyExcl").on("click", () => $P.openLevyExclPop("1")); $P.$findn("btnInstLevyExcl").on("click", () => $P.openLevyExclPop("1"));
Componentization.fnMakeResizableTable($P.find("photoInspection-responsive")); Componentization.fnMakeResizableTable($P.findn("photoInspection-responsive"));
Componentization.fnMakeResizableTable($P.find("sameVehicleInspectionMain-responsive")); Componentization.fnMakeResizableTable($P.findn("sameVehicleInspectionMain-responsive"));
Componentization.fnMakeResizableTable($P.find("sameVehicleInspectionSub-responsive")); Componentization.fnMakeResizableTable($P.findn("sameVehicleInspectionSub-responsive"));
//스크롤 테이블 //스크롤 테이블
Componentization.fnMakeScrollableTable($P.find("photoInspection-responsive"), $P.scrollInspectionDataList); Componentization.fnMakeScrollableTable($P.findn("photoInspection-responsive"), $P.scrollInspectionDataList);
Componentization.fnMakeScrollableTable($P.find("sameVehicleInspectionMain-responsive"), $P.scrollInspectionDataList); Componentization.fnMakeScrollableTable($P.findn("sameVehicleInspectionMain-responsive"), $P.scrollInspectionDataList);
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
AppSupport.initDatepicker($P.find("frmSearch")); //달력 초기화 AppSupport.initDatepicker($P.findn("frmSearch")); //달력 초기화
AppSupport.initDetailSearchButton($P.find("frmSearch")); AppSupport.initDetailSearchButton($P.findn("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); 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.fnResetAndChangeBiz(defaultBizValue);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); 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"); $(this).prop("disabled", "true");
}); });
}); });

@ -48,7 +48,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* DatasetControl, Dataset, FormFields * DatasetControl, Dataset, FormFields
**************************************************************************/ **************************************************************************/
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({ $P.ctrl = new DatasetControl({
dataGetter : obj => obj.crdnInfo, dataGetter : obj => obj.crdnInfo,
@ -76,7 +76,7 @@ $(document).ready(function(){
var alertMessage = ""; var alertMessage = "";
if($P.$find("chgAmtSe").val() == "1"){ if($P.$findn("chgAmtSe").val() == "1"){
if(crdnInfo.OVTM_YN == "Y"){ if(crdnInfo.OVTM_YN == "Y"){
dialog.alert({ dialog.alert({
content : "이미 가산 처리된 자료입니다.", content : "이미 가산 처리된 자료입니다.",
@ -89,7 +89,7 @@ $(document).ready(function(){
} }
alertMessage = "가산 처리하시겠습니까?"; alertMessage = "가산 처리하시겠습니까?";
} else if($P.$find("chgAmtSe").val() == "2"){ } else if($P.$findn("chgAmtSe").val() == "2"){
if(crdnInfo.OVTM_PRTTN_YN == "Y"){ if(crdnInfo.OVTM_PRTTN_YN == "Y"){
dialog.alert({ dialog.alert({
content : "이미 감액 처리된 자료입니다.", content : "이미 감액 처리된 자료입니다.",
@ -166,8 +166,8 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnSave").on("click", () => $P.fnSave() ); $P.$findn("btnSave").on("click", () => $P.fnSave() );
$P.$find("btnRestore").on("click", () => $P.fnRestore() ); $P.$findn("btnRestore").on("click", () => $P.fnRestore() );
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/

@ -163,32 +163,32 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderCrdnList(obj["Total"], $P.ctrl.dataset.length, trs, option); $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) => { $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 * pageObject.function
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $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='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val(""); searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$P.$find("byOutput").val("동적 검색"); $P.$findn("byOutput").val("동적 검색");
$P.$find("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-5475)); $P.$findn("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-5475));
$P.$find("schCrdnYmdTo").datepicker('setDate', TODAY()); $P.$findn("schCrdnYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
data.taskSeCd = "DPV"; data.taskSeCd = "DPV";
data.fetchSize = $P.ctrl.defaultFetchSize; data.fetchSize = $P.ctrl.defaultFetchSize;
@ -249,8 +249,8 @@ $(document).ready(function(){
return; return;
} }
var cellDefs = AppSupport.getCellDefs($P.$find("crdnTheadTr").find("th").not(".dummy-th").not(":eq(0)"), var cellDefs = AppSupport.getCellDefs($P.$findn("crdnTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
$($P.find("crdnRow").content).find("td").not(".dummy-td").not(":eq(0)")); $($P.findn("crdnRow").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.query.cellDefs = cellDefs; $P.ctrl.query.cellDefs = cellDefs;
$P.ctrl.download(); $P.ctrl.download();
@ -258,8 +258,8 @@ $(document).ready(function(){
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$P.find("crdnNotFound").innerHTML]; var notFound = [$P.findn("crdnNotFound").innerHTML];
var found = $P.find("crdnRow").innerHTML; var found = $P.findn("crdnRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');"); .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');");
@ -279,7 +279,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs, initScroll, noMore); $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -290,7 +290,7 @@ $(document).ready(function(){
return; return;
} }
$P.$find("crdnTbody").setCurrentRow(dataKey); $P.$findn("crdnTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -366,22 +366,22 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on('click', () => $P.searchCrdnList()); $P.$findn("btnSearch").on('click', () => $P.searchCrdnList());
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$P.$find("term").onEnterPress($P.searchCrdnList); $P.$findn("term").onEnterPress($P.searchCrdnList);
$P.$find("btnExcel").on('click', () => $P.fnExcelDown()); $P.$findn("btnExcel").on('click', () => $P.fnExcelDown());
Componentization.fnMakeResizableTable($P.find("table-responsive")); Componentization.fnMakeResizableTable($P.findn("table-responsive"));
Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList); 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(); $P.fnReset();

@ -146,19 +146,19 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderCrdnList(obj["Total"], $P.ctrl.dataset.length, trs, option); $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) => { $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 * pageObject.function
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $P.fnReset = () => {
$P.$find("regDt").datepicker('setDate', TODAY()); $P.$findn("regDt").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }
@ -174,17 +174,17 @@ $(document).ready(function(){
case "DPV" : case "DPV" :
case "ECA" : case "ECA" :
case "DVS" : case "DVS" :
$P.$find("btnInsertByFile").show(); $P.$findn("btnInsertByFile").show();
break; break;
case "PES" : case "PES" :
default : default :
$P.$find("btnInsertByFile").hide(); $P.$findn("btnInsertByFile").hide();
break; break;
} }
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize; data.fetchSize = $P.ctrl.defaultFetchSize;
return data; return data;
@ -205,8 +205,8 @@ $(document).ready(function(){
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$P.find("crdnNotFound").innerHTML]; var notFound = [$P.findn("crdnNotFound").innerHTML];
var found = $P.find("crdnRow").innerHTML; var found = $P.findn("crdnRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
.replace(/{ondblclick}/gi, ""); .replace(/{ondblclick}/gi, "");
@ -226,7 +226,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs, initScroll, noMore); $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -237,7 +237,7 @@ $(document).ready(function(){
if(dataKey == ""){ if(dataKey == ""){
return; return;
} }
$P.$find("crdnTbody").setCurrentRow(dataKey); $P.$findn("crdnTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
@ -279,26 +279,26 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on("click", () => $P.searchCrdnList()); $P.$findn("btnSearch").on("click", () => $P.searchCrdnList());
$P.$find("btnInsertByFile").on('click', () => { $P.newInfo("file"); }); $P.$findn("btnInsertByFile").on('click', () => { $P.newInfo("file"); });
$P.$find("btnInsertByHand").on('click', () => { $P.newInfo("hand"); }); $P.$findn("btnInsertByHand").on('click', () => { $P.newInfo("hand"); });
Componentization.fnMakeResizableTable($P.find("table-responsive")); Componentization.fnMakeResizableTable($P.findn("table-responsive"));
Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList); 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(); 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.fnResetAndChangeBiz(defaultBizValue);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); 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"); $(this).prop("disabled", "true");
}); });
}); });

@ -196,16 +196,16 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderParsedInfoList(obj["Total"], $P.ctrl.dataset.length, trs); $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.ctrl.dataset.onCurrentChange = (dataItem) => {
$P.$find("imageArea").html(""); $P.$findn("imageArea").html("");
if(dataItem && dataItem.data){ if(dataItem && dataItem.data){
var dataKey = dataItem.data.FILE_NAME; 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"){ if(dataItem.data.FILE_GROUP_TYPE == "BIN"){
var srcArr = []; var srcArr = [];
@ -235,7 +235,7 @@ $(document).ready(function(){
ajax.post({ ajax.post({
url : wctx.url("/${taskSeCd}/crdn/crdn05/020/importFileFromServer.do"), url : wctx.url("/${taskSeCd}/crdn/crdn05/020/importFileFromServer.do"),
data : { data : {
taskSeCd : $P.$find("taskSeCd").val() taskSeCd : $P.$findn("taskSeCd").val()
}, },
success : (resp) => { success : (resp) => {
if(resp.saved){ if(resp.saved){
@ -257,7 +257,7 @@ $(document).ready(function(){
//로컬파일업로드 //로컬파일업로드
$P.uploadLocalFile = () => { $P.uploadLocalFile = () => {
if($P.$find("uploadFiles").val() == ""){ if($P.$findn("uploadFiles").val() == ""){
dialog.alert({ dialog.alert({
content : "파일이 없습니다.", content : "파일이 없습니다.",
init : function(){ init : function(){
@ -268,7 +268,7 @@ $(document).ready(function(){
return; return;
} }
var formData = new FormData($P.find("frmFirst")); var formData = new FormData($P.findn("frmFirst"));
formData.append("taskSeCd", "${taskSeCd}"); formData.append("taskSeCd", "${taskSeCd}");
ajax.post({ ajax.post({
@ -277,7 +277,7 @@ $(document).ready(function(){
data : formData, data : formData,
success : (resp) => { success : (resp) => {
if(resp.saved){ if(resp.saved){
$P.$find("uploadFiles").val(""); $P.$findn("uploadFiles").val("");
$P.searchFileList(); $P.searchFileList();
} else { } else {
dialog.alert({ dialog.alert({
@ -302,7 +302,7 @@ $(document).ready(function(){
ajax.post({ ajax.post({
url : wctx.url("/${taskSeCd}/crdn/crdn05/020/list.do"), url : wctx.url("/${taskSeCd}/crdn/crdn05/020/list.do"),
data : { data : {
taskSeCd : $P.$find("taskSeCd").val() taskSeCd : $P.$findn("taskSeCd").val()
}, },
success : (resp) => { success : (resp) => {
$P.ctrl.dataset.setData(resp); $P.ctrl.dataset.setData(resp);
@ -311,8 +311,8 @@ $(document).ready(function(){
} }
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$P.$find("table-responsive").find("template.notFound")[0].innerHTML]; var notFound = [$P.$findn("table-responsive").find("template.notFound")[0].innerHTML];
var found = $P.$find("table-responsive").find("template.found")[0].innerHTML; var found = $P.$findn("table-responsive").find("template.found")[0].innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickParsedInfoList('" + dataItem.getValue("FILE_NAME") + "');"); .replace(/{onclick}/gi, "pageObject['${pageName}'].clickParsedInfoList('" + dataItem.getValue("FILE_NAME") + "');");
@ -325,10 +325,10 @@ $(document).ready(function(){
//테이블 렌더링 //테이블 렌더링
$P.renderParsedInfoList = (total, listLength, trs) => { $P.renderParsedInfoList = (total, listLength, trs) => {
$P.$find("table-responsive").find("tbody").html(trs); $P.$findn("table-responsive").find("tbody").html(trs);
if(listLength != 0){ 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); span.appendChild(img);
div.appendChild(span); div.appendChild(span);
} }
$P.$find("imageArea").append(div); $P.$findn("imageArea").append(div);
} else { } else {
var img = document.createElement("img"); var img = document.createElement("img");
img.style["object-fit"] = "contain"; img.style["object-fit"] = "contain";
img.src = src; 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 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("taskSeCd", "${taskSeCd}");
formData.append("fileGroupType", $P.tempGroup[firstGroupKey][0].FILE_GROUP_TYPE); formData.append("fileGroupType", $P.tempGroup[firstGroupKey][0].FILE_GROUP_TYPE);
formData.append("fileLayoutId", $P.tempGroup[firstGroupKey][0].FILE_LAYOUT_ID); formData.append("fileLayoutId", $P.tempGroup[firstGroupKey][0].FILE_LAYOUT_ID);
@ -434,7 +434,7 @@ $(document).ready(function(){
ajax.get({ ajax.get({
url : wctx.url("/${taskSeCd}/crdn/crdn05/020/remove.do"), url : wctx.url("/${taskSeCd}/crdn/crdn05/020/remove.do"),
data : { data : {
taskSeCd : $P.$find("taskSeCd").val(), taskSeCd : $P.$findn("taskSeCd").val(),
fileLayoutId : fileLayoutId, fileLayoutId : fileLayoutId,
fileName : fileName fileName : fileName
}, },
@ -453,7 +453,7 @@ $(document).ready(function(){
$P.removeTableRow = (removedFileName) => { $P.removeTableRow = (removedFileName) => {
var fileListTable = $P.$find("table-responsive").find("table")[0]; var fileListTable = $P.$findn("table-responsive").find("table")[0];
var targetArr = []; var targetArr = [];
if(Array.isArray(removedFileName)){ if(Array.isArray(removedFileName)){
@ -474,11 +474,11 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * 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); $P.tempGroup = Object.groupBy($P.ctrl.dataset.getDataset(), ({ TEMP_GROUP_ID }) => "temp"+TEMP_GROUP_ID);
if($.isEmptyObject($P.tempGroup)){ if($.isEmptyObject($P.tempGroup)){
@ -489,18 +489,18 @@ $(document).ready(function(){
$P.createCrdn(); $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")){ if($(this).is(":checked")){
$("#uploadFilesArea").removeAttr("hidden"); $("#uploadFilesArea").removeAttr("hidden");
$P.$find("btnFileUpload").removeAttr("hidden"); $P.$findn("btnFileUpload").removeAttr("hidden");
$P.$find("btnSearch").attr("hidden","hidden"); $P.$findn("btnSearch").attr("hidden","hidden");
} else { } else {
$("#uploadFilesArea").attr("hidden","hidden"); $("#uploadFilesArea").attr("hidden","hidden");
$P.$find("btnFileUpload").attr("hidden","hidden"); $P.$findn("btnFileUpload").attr("hidden","hidden");
$P.$find("btnSearch").removeAttr("hidden"); $P.$findn("btnSearch").removeAttr("hidden");
$P.$find("uploadFiles").val(""); $P.$findn("uploadFiles").val("");
} }
}); });

@ -378,9 +378,9 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* DatasetControl, Dataset, FormFields * 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({ $P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : true, dataGetter : obj => obj["List"], appendData : true,
@ -428,7 +428,7 @@ $(document).ready(function(){
} }
$P.fnDisplay = () => { $P.fnDisplay = () => {
var displayArea = $P.find("display"); var displayArea = $P.findn("display");
var concatArr = $P.localUploadArr.concat($P.captureFileArr); var concatArr = $P.localUploadArr.concat($P.captureFileArr);
var tagsText = $P.fnMakeImgForNewFile(concatArr); var tagsText = $P.fnMakeImgForNewFile(concatArr);
@ -437,11 +437,11 @@ $(document).ready(function(){
$P.fnSave = async() => { $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 == ""){ if(rtpyrNm.value == ""){
dialog.alert({ dialog.alert({
content:"계고 처리를 하기 위해선 소유주정보가 입력되어야 합니다.", content:"계고 처리를 하기 위해선 소유주정보가 입력되어야 합니다.",
@ -462,7 +462,7 @@ $(document).ready(function(){
return; return;
} }
var formData = new FormData($P.find("frmFile")); var formData = new FormData($P.findn("frmFile"));
for(var key in info) { for(var key in info) {
var value = info[key]; var value = info[key];
formData.append(key,value); 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 * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnInst").on('click', () => $P.fnSave()); $P.$findn("btnInst").on('click', () => $P.fnSave());
$P.$find("btnAddFile").on('click', () => { $P.$findn("btnAddFile").on('click', () => {
$P.$find("inputUploadSet").trigger("click"); $P.$findn("inputUploadSet").trigger("click");
}); });
$P.$find("btnOpenVideoCapture").on('click', () => { $P.$findn("btnOpenVideoCapture").on('click', () => {
var popupWidth = 1800; var popupWidth = 1800;
var popupHeight = 950; var popupHeight = 950;
var popupX = (window.screen.width / 2) - (popupWidth / 2); var popupX = (window.screen.width / 2) - (popupWidth / 2);
@ -553,8 +553,8 @@ $(document).ready(function(){
}; };
}); });
$P.$find("btnCancelAddFile").on('click', () => { $P.$findn("btnCancelAddFile").on('click', () => {
var checked = $P.$find("display").find("[name='newPhoto']:checked"); var checked = $P.$findn("display").find("[name='newPhoto']:checked");
if(checked.length < 1){ if(checked.length < 1){
alert("선택된 사진이 없습니다."); alert("선택된 사진이 없습니다.");
return; return;
@ -571,9 +571,9 @@ $(document).ready(function(){
$P.fnDisplay(); $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 vhrnoEl = event.target;
var vhrno = vhrnoEl.value; var vhrno = vhrnoEl.value;
if(crdnYmd == ""){ if(crdnYmd == ""){
@ -583,7 +583,7 @@ $(document).ready(function(){
AppSupport.setDialogZindex(); AppSupport.setDialogZindex();
AppSupport.focusClose(); AppSupport.focusClose();
}, },
onClose : function(){ $P.$find("crdnYmd").focus(); } onClose : function(){ $P.$findn("crdnYmd").focus(); }
}); });
return; return;
@ -603,7 +603,7 @@ $(document).ready(function(){
json.post({ json.post({
url: wctx.url("/payer/vehicle.do"), url: wctx.url("/payer/vehicle.do"),
data: { data: {
sggCd : $P.$find("sggCd").val(), sggCd : $P.$findn("sggCd").val(),
vhrno : vhrno, vhrno : vhrno,
levy_stdde : crdnYmd levy_stdde : crdnYmd
}, },
@ -616,28 +616,28 @@ $(document).ready(function(){
AppSupport.focusClose(); AppSupport.focusClose();
} }
}); });
$P.$find("rtpyrId").val(""); $P.$findn("rtpyrId").val("");
$P.$find("addrSn").val(""); $P.$findn("addrSn").val("");
$P.$find("rtpyrNm").val(""); $P.$findn("rtpyrNm").val("");
$P.$find("rtpyrSeCd").val(""); $P.$findn("rtpyrSeCd").val("");
$P.$find("rtpyrNo").val(""); $P.$findn("rtpyrNo").val("");
$P.$find("vin").val(""); $P.$findn("vin").val("");
$P.$find("vhclNm").val(""); $P.$findn("vhclNm").val("");
$P.$find("vhclColr").val(""); $P.$findn("vhclColr").val("");
$P.$find("useFuelCd").val(""); $P.$findn("useFuelCd").val("");
$P.$find("ffnlgCarmdlCd").val(""); $P.$findn("ffnlgCarmdlCd").val("");
$P.$find("zip").val(""); $P.$findn("zip").val("");
$P.$find("addr").val(""); $P.$findn("addr").val("");
$P.$find("dtlAddr").val(""); $P.$findn("dtlAddr").val("");
return; return;
} }
$P.$find("rtpyrId").val(resp.rtpyrId); $P.$findn("rtpyrId").val(resp.rtpyrId);
$P.$find("addrSn").val(resp.addrSn); $P.$findn("addrSn").val(resp.addrSn);
var vehicle = resp.vehicle; var vehicle = resp.vehicle;
$P.$find("rtpyrNm").val(vehicle.mber_nm); $P.$findn("rtpyrNm").val(vehicle.mber_nm);
var pyrSeCd = ""; var pyrSeCd = "";
switch(vehicle.mber_se_code){ switch(vehicle.mber_se_code){
@ -647,44 +647,44 @@ $(document).ready(function(){
case "14" : pyrSeCd = "04"; break; case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; 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.$findn("vin").val(vehicle.vin);
$P.$find("vhclNm").val(vehicle.cnm); $P.$findn("vhclNm").val(vehicle.cnm);
$P.$find("vhclColr").val(vehicle.color_nm); $P.$findn("vhclColr").val(vehicle.color_nm);
$P.$find("useFuelCd").val(vehicle.use_fuel_code); $P.$findn("useFuelCd").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용 if(vehicle.vhcty_asort_code == "1"){ //승용
$P.$find("ffnlgCarmdlCd").val("11"); $P.$findn("ffnlgCarmdlCd").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합 } else if(vehicle.vhcty_asort_code == "2"){ //승합
$P.$find("ffnlgCarmdlCd").val("12"); $P.$findn("ffnlgCarmdlCd").val("12");
} else if(vehicle.vhcty_asort_code == "3"){ //화물 } else if(vehicle.vhcty_asort_code == "3"){ //화물
if(vehicle.mxmm_ldg <= 4000){ if(vehicle.mxmm_ldg <= 4000){
$P.$find("ffnlgCarmdlCd").val("13"); $P.$findn("ffnlgCarmdlCd").val("13");
} else { } else {
$P.$find("ffnlgCarmdlCd").val("14"); $P.$findn("ffnlgCarmdlCd").val("14");
} }
} else if(vehicle.vhcty_asort_code == "4"){ //특수 } else if(vehicle.vhcty_asort_code == "4"){ //특수
$P.$find("ffnlgCarmdlCd").val("15"); $P.$findn("ffnlgCarmdlCd").val("15");
} else { } else {
$P.$find("ffnlgCarmdlCd").val(""); $P.$findn("ffnlgCarmdlCd").val("");
} }
$P.$find("zip").val(vehicle.zip_code); //우편번호 $P.$findn("zip").val(vehicle.zip_code); //우편번호
$P.$find("addr").val(vehicle.road_nm_adres); //주소 $P.$findn("addr").val(vehicle.road_nm_adres); //주소
$P.$find("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소 $P.$findn("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소
} }
}); });
}); });
$P.$find("teamId").on("change",function(){ $P.$findn("teamId").on("change",function(){
$P.$find("teamer1").val(""); $P.$findn("teamer1").val("");
$P.$find("teamer2").val(""); $P.$findn("teamer2").val("");
$P.$find("teamer3").val(""); $P.$findn("teamer3").val("");
$P.$find("teamer4").val(""); $P.$findn("teamer4").val("");
if(this.value != ""){ if(this.value != ""){
ajax.get({ ajax.get({
@ -693,10 +693,10 @@ $(document).ready(function(){
success : (resp) => { success : (resp) => {
if(resp.teamInfo != null){ if(resp.teamInfo != null){
var teamInfo = resp.teamInfo; var teamInfo = resp.teamInfo;
$P.$find("teamer1").val(teamInfo.TEAMER_1); $P.$findn("teamer1").val(teamInfo.TEAMER_1);
$P.$find("teamer2").val(teamInfo.TEAMER_2); $P.$findn("teamer2").val(teamInfo.TEAMER_2);
$P.$find("teamer3").val(teamInfo.TEAMER_3); $P.$findn("teamer3").val(teamInfo.TEAMER_3);
$P.$find("teamer4").val(teamInfo.TEAMER_4); $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(){ $(this).on("input",function(){
var value = this.value.replaceAll("-",""); 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(){ $(this).on("input",function(){
var value = this.value.replaceAll(":",""); var value = this.value.replaceAll(":","");

@ -331,33 +331,33 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderCrdnList(obj["Total"], $P.ctrl.dataset.length, trs, option); $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) => { $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) => { $P.ctrl.dataset.onSelectionChange = (selectedArr) => {
Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("crdnTbody"), 1, selectedArr); Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("crdnTbody"), 1, selectedArr);
Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnSendCrdn"), selectedArr); Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnSendCrdn"), selectedArr);
}; };
/************************************************************************** /**************************************************************************
* pageObject.function * pageObject.function
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $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='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val(""); searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$P.$find("byOutput").val("동적 검색"); $P.$findn("byOutput").val("동적 검색");
$P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름 $P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
$P.$find("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-365)); $P.$findn("schCrdnYmdFrom").datepicker('setDate', DateSupport.getAddDay(-365));
$P.$find("schCrdnYmdTo").datepicker('setDate', TODAY()); $P.$findn("schCrdnYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }
@ -369,32 +369,32 @@ $(document).ready(function(){
var clsForTask = taskSeCd.toLowerCase(); 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.$findn("btnSendCrdn").off("click");
$P.$find("btnSendCrdn").on("click", () => $P.fnSendCrdn()); $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 cols = $(colsContent).find("."+clsForTask+",.cmn");
var colsStr = ""; var colsStr = "";
cols.each(function(){ cols.each(function(){
colsStr += this.outerHTML; 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'){ if(SYS_LINK_INFO = null || SYS_LINK_INFO.NXRP_LINK_YN != 'Y'){
$P.$find("btnSendCrdn").attr("hidden","hidden"); $P.$findn("btnSendCrdn").attr("hidden","hidden");
$P.$find("searchForNxrp").attr("hidden","hidden"); $P.$findn("searchForNxrp").attr("hidden","hidden");
} else { } else {
$P.$find("btnSendCrdn").prop("disabled", true); $P.$findn("btnSendCrdn").prop("disabled", true);
} }
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize; data.fetchSize = $P.ctrl.defaultFetchSize;
@ -420,8 +420,8 @@ $(document).ready(function(){
return; return;
} }
var cellDefs = AppSupport.getCellDefs($P.$find("crdnThead").find("th").not(".dummy-th").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.find("crdnRow").content).find("td").not(".dummy-td").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; $P.ctrl.query.cellDefs = cellDefs;
if(forApproval){ if(forApproval){
@ -439,15 +439,15 @@ $(document).ready(function(){
GRID.checkbox.sync(element, bool); GRID.checkbox.sync(element, bool);
var atLeastOne = GRID.checkbox.countChecked(element) > 0; 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); Apply.toDataset.selection($P.ctrl.dataset, element, bool);
} }
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var clsForTask = $P.$find("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase(); var clsForTask = $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val().toLowerCase();
var notFound = [$P.find("crdnNotFound").content.querySelector("."+clsForTask+",.cmn").outerHTML]; var notFound = [$P.findn("crdnNotFound").content.querySelector("."+clsForTask+",.cmn").outerHTML];
var foundContent = $P.find("crdnRow").content; var foundContent = $P.findn("crdnRow").content;
var foundTr = $(foundContent).find("tr")[0].cloneNode(false); var foundTr = $(foundContent).find("tr")[0].cloneNode(false);
var foundTds = $(foundContent).find("."+clsForTask+",.cmn"); var foundTds = $(foundContent).find("."+clsForTask+",.cmn");
foundTds.each(function(){ foundTds.each(function(){
@ -474,7 +474,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs, initScroll, noMore); $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드 fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
@ -485,7 +485,7 @@ $(document).ready(function(){
return; return;
} }
$P.$find("crdnTbody").setCurrentRow(dataKey); $P.$findn("crdnTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -554,8 +554,8 @@ $(document).ready(function(){
// 사용자검색 callback // 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => { $P.callbackFindUser = (userId, userNm) => {
$P.$find("schRgtrCd").val(userId); // 사용자 ID $P.$findn("schRgtrCd").val(userId); // 사용자 ID
$P.$find("schRgtrNm").val(userNm); // 사용자 명 $P.$findn("schRgtrNm").val(userNm); // 사용자 명
} }
// 사용자검색 버튼 클릭 이벤트 // 사용자검색 버튼 클릭 이벤트
@ -591,36 +591,36 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on('click', () => $P.searchCrdnList()); $P.$findn("btnSearch").on('click', () => $P.searchCrdnList());
$P.$find("btnExcel").on('click', () => $P.fnExcelDown(false)); $P.$findn("btnExcel").on('click', () => $P.fnExcelDown(false));
$P.$find("btnExcelForApproval").on('click', () => $P.fnExcelDown(true)); $P.$findn("btnExcelForApproval").on('click', () => $P.fnExcelDown(true));
$P.$find("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색 $P.$findn("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$P.$find("term").onEnterPress($P.searchCrdnList); $P.$findn("term").onEnterPress($P.searchCrdnList);
Componentization.fnMakeResizableTable($P.find("table-responsive")); Componentization.fnMakeResizableTable($P.findn("table-responsive"));
Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList); Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollCrdnList);
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
AppSupport.initDatepicker($P.find("frmSearch")); //달력 초기화 AppSupport.initDatepicker($P.findn("frmSearch")); //달력 초기화
AppSupport.initDetailSearchButton($P.find("frmSearch")); AppSupport.initDetailSearchButton($P.findn("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
if("${taskSeCd}" == ""){ 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); $P.fnResetAndChangeBiz(defaultBizValue);
} else { } 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}"); $P.fnResetAndChangeBiz("${taskSeCd}");
} }
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드 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"); $(this).prop("disabled", "true");
}); });
}); });

@ -230,7 +230,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정) // infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}"; $P.callPurpose = "${callPurpose}";
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -293,10 +293,10 @@
// 업무별 입력 항목 // 업무별 입력 항목
$P.fnRenderTask = (taskSeCd) => { $P.fnRenderTask = (taskSeCd) => {
if (taskSeCd == undefined || taskSeCd == null || 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 설정 // 업무구분에 따른 URL 설정
@ -313,11 +313,11 @@
, data: params || {} , data: params || {}
, success: resp => { , success: resp => {
// 항목 초기화 // 항목 초기화
$P.$find("vin").val(""); $P.$findn("vin").val("");
$P.$find("vhclNm").val(""); $P.$findn("vhclNm").val("");
$P.$find("vhclColr").val(""); $P.$findn("vhclColr").val("");
$P.$find("useFuelCd").val(""); $P.$findn("useFuelCd").val("");
$P.$find("ffnlgCarmdlCd").val(""); $P.$findn("ffnlgCarmdlCd").val("");
if (!resp.found) { if (!resp.found) {
dialog.alert({ dialog.alert({
@ -333,28 +333,28 @@
let vehicle = resp.vehicle; let vehicle = resp.vehicle;
// 단속(TB_CRDN) - 공통 항목 // 단속(TB_CRDN) - 공통 항목
$P.$find("vin").val(vehicle.vin); // 차대번호 $P.$findn("vin").val(vehicle.vin); // 차대번호
$P.$find("vhclNm").val(vehicle.cnm); // 차량명 $P.$findn("vhclNm").val(vehicle.cnm); // 차량명
$P.$find("vhclColr").val(vehicle.color_nm); // 차량색상 $P.$findn("vhclColr").val(vehicle.color_nm); // 차량색상
// 단속 부가 정보(TB_CRDN_ADI) - 사용 연료 코드 // 단속 부가 정보(TB_CRDN_ADI) - 사용 연료 코드
$P.$find("useFuelCd").val(vehicle.use_fuel_code); $P.$findn("useFuelCd").val(vehicle.use_fuel_code);
// 단속 부가 정보(TB_CRDN_ADI) - 과태료 차종 코드 // 단속 부가 정보(TB_CRDN_ADI) - 과태료 차종 코드
if (vehicle.vhcty_asort_code == "1") { // 승용 if (vehicle.vhcty_asort_code == "1") { // 승용
$P.$find("ffnlgCarmdlCd").val("11"); $P.$findn("ffnlgCarmdlCd").val("11");
} else if (vehicle.vhcty_asort_code == "2") { // 승합 } else if (vehicle.vhcty_asort_code == "2") { // 승합
$P.$find("ffnlgCarmdlCd").val("12"); $P.$findn("ffnlgCarmdlCd").val("12");
} else if (vehicle.vhcty_asort_code == "3") { // 화물 } else if (vehicle.vhcty_asort_code == "3") { // 화물
if(vehicle.mxmm_ldg <= 4000){ if(vehicle.mxmm_ldg <= 4000){
$P.$find("ffnlgCarmdlCd").val("13"); $P.$findn("ffnlgCarmdlCd").val("13");
} else { } else {
$P.$find("ffnlgCarmdlCd").val("14"); $P.$findn("ffnlgCarmdlCd").val("14");
} }
} else if (vehicle.vhcty_asort_code == "4") { // 특수 } else if (vehicle.vhcty_asort_code == "4") { // 특수
$P.$find("ffnlgCarmdlCd").val("15"); $P.$findn("ffnlgCarmdlCd").val("15");
} else { } else {
$P.$find("ffnlgCarmdlCd").val(""); $P.$findn("ffnlgCarmdlCd").val("");
} }
} }
}); });
@ -362,8 +362,8 @@
// 차적 조회 // 차적 조회
$P.fnVehicle = (title) => { $P.fnVehicle = (title) => {
let crdnYmd = $P.$find("crdnYmd").val().replaceAll("-", ""); let crdnYmd = $P.$findn("crdnYmd").val().replaceAll("-", "");
let vhrno = $P.$find("vhrno").val(); let vhrno = $P.$findn("vhrno").val();
// 단속일자 // 단속일자
if (crdnYmd == "") { if (crdnYmd == "") {
@ -373,7 +373,7 @@
AppSupport.setDialogZindex(); AppSupport.setDialogZindex();
AppSupport.focusClose(); AppSupport.focusClose();
}, },
onClose : function() { $P.$find("crdnYmd").focus(); } onClose : function() { $P.$findn("crdnYmd").focus(); }
}); });
return; return;
} }
@ -385,14 +385,14 @@
AppSupport.setDialogZindex(); AppSupport.setDialogZindex();
AppSupport.focusClose(); AppSupport.focusClose();
}, },
onClose : function() { $P.$find("vhrno").focus(); } onClose : function() { $P.$findn("vhrno").focus(); }
}); });
return; return;
} }
let params = { let params = {
inqire_se_code : "3" inqire_se_code : "3"
, sggCd: $P.$find("sggCd").val() , sggCd: $P.$findn("sggCd").val()
, levy_stdde: crdnYmd , levy_stdde: crdnYmd
, vhrno: vhrno , vhrno: vhrno
} }
@ -406,7 +406,7 @@
// 저장 // 저장
$P.fnSave = () => { $P.fnSave = () => {
// validate 확인 // validate 확인
if (!AppSupport.customValidate($P.$find("frmEdit").find("input, select, textarea"))) return; if (!AppSupport.customValidate($P.$findn("frmEdit").find("input, select, textarea"))) return;
// 단속 ID // 단속 ID
let crdnId = $P.control.dataset.getValue("CRDN_ID"); let crdnId = $P.control.dataset.getValue("CRDN_ID");
@ -430,7 +430,7 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용 // form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
$P.$find("frmEdit").find(".form-date").each(function() { $P.$findn("frmEdit").find(".form-date").each(function() {
$(this).on("input",function() { $(this).on("input",function() {
let value = this.value.replaceAll("-", ""); 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() { $(this).on("input",function() {
let value = this.value.replaceAll(":", ""); let value = this.value.replaceAll(":", "");
@ -455,20 +455,20 @@
}); });
// 차량번호 엔터 이벤트 // 차량번호 엔터 이벤트
$P.$find("vhrno").onEnterPress(function() { $P.$findn("vhrno").onEnterPress(function() {
$P.fnVehicle("차적 조회"); $P.fnVehicle("차적 조회");
}); });
// 버튼 이벤트 // 버튼 이벤트
$P.$find("btnVehicle").on("click", () => $P.fnVehicle()); // 차량번호 조회 $P.$findn("btnVehicle").on("click", () => $P.fnVehicle()); // 차량번호 조회
$P.$find("btnSave").on("click", () => $P.fnSave()); // 저장 $P.$findn("btnSave").on("click", () => $P.fnSave()); // 저장
} }
// 초기 화면 설정 // 초기 화면 설정
$P.initForm = () => { $P.initForm = () => {
// 달력 초기화 // 달력 초기화
AppSupport.initDatepicker($P.find("frmEdit")); AppSupport.initDatepicker($P.findn("frmEdit"));
$P.$find("crdnYmd").datepicker("setDate", TODAY()); $P.$findn("crdnYmd").datepicker("setDate", TODAY());
} }
/************************************************************************** /**************************************************************************

@ -72,7 +72,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정) // infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}"; $P.callPurpose = "${callPurpose}";
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -141,7 +141,7 @@
// 저장 버튼 클릭 이벤트 // 저장 버튼 클릭 이벤트
$P.fnSave = (title) => { $P.fnSave = (title) => {
// validate 확인 // 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({ dialog.alert({
content: "현재 " + $P.control.prefixName + " 정보를 저장하시겠습니까?" content: "현재 " + $P.control.prefixName + " 정보를 저장하시겠습니까?"
@ -160,7 +160,7 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 버튼 이벤트 // 버튼 이벤트
$P.$find("btnSave").on("click", () => $P.fnSave()); // 저장 $P.$findn("btnSave").on("click", () => $P.fnSave()); // 저장
} }
// 초기 화면 설정 // 초기 화면 설정

@ -291,7 +291,7 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderUseTeamList(obj["Total"], $P.ctrl.dataset.length, trs); $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) => { $P.alt.dataset.onDatasetChange = (obj, option) => {
@ -304,27 +304,27 @@ $(document).ready(function(){
$P.ctrl.dataset.onCurrentChange = (dataItem) => { $P.ctrl.dataset.onCurrentChange = (dataItem) => {
if(!dataItem){ if(!dataItem){
$P.$find("teamNm").val(""); $P.$findn("teamNm").val("");
$P.$find("crdnSeCd").val(""); $P.$findn("crdnSeCd").val("");
$P.$find("teamer1").val(""); $P.$findn("teamer1").val("");
$P.$find("teamer2").val(""); $P.$findn("teamer2").val("");
$P.$find("teamer3").val(""); $P.$findn("teamer3").val("");
$P.$find("teamer4").val(""); $P.$findn("teamer4").val("");
$P.$find("etcCn").val(""); $P.$findn("etcCn").val("");
return; 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.$findn("teamNm").val(dataItem.data.TEAM_NM);
$P.$find("crdnSeCd").val(dataItem.data.CRDN_SE_CD); $P.$findn("crdnSeCd").val(dataItem.data.CRDN_SE_CD);
$P.$find("teamer1").val(dataItem.data.TEAMER_1); $P.$findn("teamer1").val(dataItem.data.TEAMER_1);
$P.$find("teamer2").val(dataItem.data.TEAMER_2); $P.$findn("teamer2").val(dataItem.data.TEAMER_2);
$P.$find("teamer3").val(dataItem.data.TEAMER_3); $P.$findn("teamer3").val(dataItem.data.TEAMER_3);
$P.$find("teamer4").val(dataItem.data.TEAMER_4); $P.$findn("teamer4").val(dataItem.data.TEAMER_4);
$P.$find("etcCn").val(dataItem.data.ETC_CN); $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 = () => { $P.fnReset = () => {
var searchForm = $P.$find("frmSearch"); var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='text']").val(""); searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
var editForm = $P.$find("frmEdit"); var editForm = $P.$findn("frmEdit");
editForm.find("input[type='text']").val(""); editForm.find("input[type='text']").val("");
editForm.find("input[type='hidden']").val(""); editForm.find("input[type='hidden']").val("");
@ -355,7 +355,7 @@ $(document).ready(function(){
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
return data; return data;
@ -381,14 +381,14 @@ $(document).ready(function(){
var replacer; var replacer;
if(gridType == "useTeam"){ if(gridType == "useTeam"){
notFound = [$P.find("useTeamNotFound").innerHTML]; notFound = [$P.findn("useTeamNotFound").innerHTML];
found = $P.find("useTeamRow").innerHTML; found = $P.findn("useTeamRow").innerHTML;
replacer = (str, dataItem) => str replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickUseTeamList('" + dataItem.getValue("TEAM_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickUseTeamList('" + dataItem.getValue("TEAM_ID") + "');")
.replace(/{ondblclick}/gi, ""); .replace(/{ondblclick}/gi, "");
} else { } else {
notFound = [$P.find("delTeamNotFound").innerHTML]; notFound = [$P.findn("delTeamNotFound").innerHTML];
found = $P.find("delTeamRow").innerHTML; found = $P.findn("delTeamRow").innerHTML;
replacer = (str, dataItem) => str replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "") .replace(/{onclick}/gi, "")
.replace(/{ondblclick}/gi, ""); .replace(/{ondblclick}/gi, "");
@ -402,11 +402,11 @@ $(document).ready(function(){
} }
$P.renderUseTeamList = (total, listLength, trs) => { $P.renderUseTeamList = (total, listLength, trs) => {
$P.$find("useTeamTbody").html(trs); $P.$findn("useTeamTbody").html(trs);
} }
$P.renderDelTeamList = (total, listLength, trs) => { $P.renderDelTeamList = (total, listLength, trs) => {
$P.$find("delTeamTbody").html(trs); $P.$findn("delTeamTbody").html(trs);
} }
$P.clickUseTeamList = (dataKey) => { $P.clickUseTeamList = (dataKey) => {
@ -414,10 +414,10 @@ $(document).ready(function(){
} }
$P.fnSave = () => { $P.fnSave = () => {
var formFields = new FimsFormFields($P.selector("frmEdit")); var formFields = new FimsFormFields($P.selectorn("frmEdit"));
var data = formFields.get(); 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({ ajax.get({
url : $P.ctrl.urls.save, url : $P.ctrl.urls.save,
@ -447,9 +447,9 @@ $(document).ready(function(){
$P.fnShowDeleted = () => { $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({ ajax.get({
url : wctx.url("/" + taskSeCd + "/crdn/crdn07/010/removedTeamList.do"), url : wctx.url("/" + taskSeCd + "/crdn/crdn07/010/removedTeamList.do"),
@ -469,38 +469,38 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on("click", () => $P.searchUseTeamList()); $P.$findn("btnSearch").on("click", () => $P.searchUseTeamList());
$P.$find("btnSave").on('click', () => { $P.fnSave(); }); $P.$findn("btnSave").on('click', () => { $P.fnSave(); });
$P.$find("btnRemove").on('click', () => { $P.fnRemove(); }); $P.$findn("btnRemove").on('click', () => { $P.fnRemove(); });
$P.$find("btnShowDeleted").on('click', () => { $P.fnShowDeleted(); }); $P.$findn("btnShowDeleted").on('click', () => { $P.fnShowDeleted(); });
Componentization.fnMakeResizableTable($P.find("table-responsive_0")); Componentization.fnMakeResizableTable($P.findn("table-responsive_0"));
Componentization.fnMakeResizableTable($P.find("table-responsive_1")); Componentization.fnMakeResizableTable($P.findn("table-responsive_1"));
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
if(defaultBizValue == "PVS" || defaultBizValue == "BPV"){ 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 { } else {
var taskForUser = MY_INFO.info.taskForUser; var taskForUser = MY_INFO.info.taskForUser;
var hasPVS = taskForUser.indexOf("PVS") != -1; var hasPVS = taskForUser.indexOf("PVS") != -1;
var hasBPV = taskForUser.indexOf("BPV") != -1; var hasBPV = taskForUser.indexOf("BPV") != -1;
if(hasPVS && !hasBPV){ 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){ } 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 { } 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.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"); $(this).prop("disabled", "true");
}); });
}); });

@ -165,18 +165,18 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderExmptnVhclList(obj["Total"], $P.ctrl.dataset.length, trs, option); $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) => { $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 * pageObject.function
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $P.fnReset = () => {
var searchForm = $P.$find("frmSearch"); var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='text']").val(""); searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
@ -184,7 +184,7 @@ $(document).ready(function(){
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
data.taskSeCd = "BPV"; data.taskSeCd = "BPV";
data.fetchSize = $P.ctrl.defaultFetchSize; data.fetchSize = $P.ctrl.defaultFetchSize;
@ -213,16 +213,16 @@ $(document).ready(function(){
return; return;
} }
var cellDefs = AppSupport.getCellDefs($P.$find("exmptnVhclTheadTr").find("th").not(".dummy-th").not(":eq(0)"), var cellDefs = AppSupport.getCellDefs($P.$findn("exmptnVhclTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
$($P.find("exmptnVhclRow").content).find("td").not(".dummy-td").not(":eq(0)")); $($P.findn("exmptnVhclRow").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.query.cellDefs = cellDefs; $P.ctrl.query.cellDefs = cellDefs;
$P.ctrl.download(); $P.ctrl.download();
} }
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$P.find("exmptnVhclNotFound").innerHTML]; var notFound = [$P.findn("exmptnVhclNotFound").innerHTML];
var found = $P.find("exmptnVhclRow").innerHTML; var found = $P.findn("exmptnVhclRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickExmptnVhclList('" + dataItem.getValue("EXMPTN_VHCL_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickExmptnVhclList('" + dataItem.getValue("EXMPTN_VHCL_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickExmptnVhclList('" + 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; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs, initScroll, noMore); $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -250,19 +250,19 @@ $(document).ready(function(){
$P.clickExmptnVhclList = (dataKey) => { $P.clickExmptnVhclList = (dataKey) => {
if(dataKey == ""){ if(dataKey == ""){
$P.$find("btnOpenDelRsn").prop("disabled", true); $P.$findn("btnOpenDelRsn").prop("disabled", true);
$P.$find("btnHistory").prop("disabled", true); $P.$findn("btnHistory").prop("disabled", true);
return; return;
} }
if($P.ctrl.dataset.getData(dataKey)["DEL_YN"] == "N"){ if($P.ctrl.dataset.getData(dataKey)["DEL_YN"] == "N"){
$P.$find("btnOpenDelRsn").prop("disabled", false); $P.$findn("btnOpenDelRsn").prop("disabled", false);
} else { } 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); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -430,21 +430,21 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on("click", () => $P.searchExmptnVhclList()); $P.$findn("btnSearch").on("click", () => $P.searchExmptnVhclList());
$P.$find("btnExcel").on('click', () => $P.fnExcelDown()); $P.$findn("btnExcel").on('click', () => $P.fnExcelDown());
$P.$find("btnCreate").on('click', () => { $P.newInfo(); }); $P.$findn("btnCreate").on('click', () => { $P.newInfo(); });
$P.$find("btnOpenDelRsn").on('click', () => { $P.fnOpenDelRsnDialog(); }); $P.$findn("btnOpenDelRsn").on('click', () => { $P.fnOpenDelRsnDialog(); });
$P.$find("btnHistory").on('click', () => { $P.fnOpenHistory(); }); $P.$findn("btnHistory").on('click', () => { $P.fnOpenHistory(); });
Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollExmptnVhclList); Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollExmptnVhclList);
Componentization.fnMakeResizableTable($P.find("table-responsive")); Componentization.fnMakeResizableTable($P.findn("table-responsive"));
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
AppSupport.initDatepicker($P.find("frmSearch")); //달력 초기화 AppSupport.initDatepicker($P.findn("frmSearch")); //달력 초기화
$P.fnReset(); $P.fnReset();
//보안모드 //보안모드

@ -92,7 +92,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* DatasetControl, Dataset, FormFields * DatasetControl, Dataset, FormFields
**************************************************************************/ **************************************************************************/
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({ $P.ctrl = new DatasetControl({
dataGetter : obj => obj.exmptnVhclInfo, dataGetter : obj => obj.exmptnVhclInfo,
@ -113,12 +113,12 @@ $(document).ready(function(){
$P.formFields.set($P.ctrl, item); $P.formFields.set($P.ctrl, item);
var create = isEmpty(item.EXMPTN_VHCL_ID); var create = isEmpty(item.EXMPTN_VHCL_ID);
$P.$find("vhrno").prop("readonly", !create); $P.$findn("vhrno").prop("readonly", !create);
} }
$P.fnSave = async() => { $P.fnSave = async() => {
if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return; if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
if(await confirm2("면제 차량 정보를 저장하시겠습니까?")){ if(await confirm2("면제 차량 정보를 저장하시겠습니까?")){
var info = $P.formFields.get(); var info = $P.formFields.get();
@ -157,14 +157,14 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * 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(){ $(this).on("input",function(){
var value = this.value.replaceAll("-",""); var value = this.value.replaceAll("-","");

@ -104,8 +104,8 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$P.find("exmptnVhclNotFound").innerHTML]; var notFound = [$P.findn("exmptnVhclNotFound").innerHTML];
var found = $P.find("exmptnVhclRow").innerHTML; var found = $P.findn("exmptnVhclRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "") .replace(/{onclick}/gi, "")
.replace(/{ondblclick}/gi, ""); .replace(/{ondblclick}/gi, "");
@ -118,7 +118,7 @@ $(document).ready(function(){
} }
$P.renderExmptnVhclList = (total, listLength, trs) => { $P.renderExmptnVhclList = (total, listLength, trs) => {
$P.$find("exmptnVhclTbody").html(trs); $P.$findn("exmptnVhclTbody").html(trs);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));

@ -50,7 +50,7 @@
</span> </span>
</div> </div>
<div class="col-6"> <div class="col-6">
<button type="button" class="w-px-120" onclick="pageObject.${pageName}.$find('cvlcptPrcsPicNm').val('${currentUserName}');"> <button type="button" class="w-px-120" onclick="pageObject.${pageName}.$findn('cvlcptPrcsPicNm').val('${currentUserName}');">
담당자명 지정 담당자명 지정
</button> </button>
<input type="text" name="cvlcptPrcsPicNm" <input type="text" name="cvlcptPrcsPicNm"
@ -234,7 +234,7 @@ $(document).ready(function(){
$P.holdList = []; $P.holdList = [];
$P.toast = new bootstrap.Toast($P.find("divToast"), { $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true, animation: true,
autohide: true, autohide: true,
delay: 2000 delay: 2000
@ -270,29 +270,29 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderCrdnList(obj["Total"], $P.ctrl.dataset.length, trs, option); $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) => { $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"));
if(!dataItem){ if(!dataItem){
$P.$find("bottomCrdnPlc").val(""); $P.$findn("bottomCrdnPlc").val("");
$P.$find("btnOpenCvlcptOrgnl").hide(); $P.$findn("btnOpenCvlcptOrgnl").hide();
$P.$find("btnDelete").hide(); $P.$findn("btnDelete").hide();
$P.$find("btnDeleteSameRcptYmd").hide(); $P.$findn("btnDeleteSameRcptYmd").hide();
} else { } else {
$P.$find("bottomCrdnPlc").val(dataItem.data["CRDN_PLC"]); $P.$findn("bottomCrdnPlc").val(dataItem.data["CRDN_PLC"]);
if($P.holdList.includes(dataItem.data["CRDN_ID"])){ if($P.holdList.includes(dataItem.data["CRDN_ID"])){
$P.$find("btnOpenCvlcptOrgnl").hide(); $P.$findn("btnOpenCvlcptOrgnl").hide();
$P.$find("btnDelete").hide(); $P.$findn("btnDelete").hide();
$P.$find("btnDeleteSameRcptYmd").hide(); $P.$findn("btnDeleteSameRcptYmd").hide();
} else { } else {
$P.$find("btnOpenCvlcptOrgnl").show(); $P.$findn("btnOpenCvlcptOrgnl").show();
$P.$find("btnDelete").show(); $P.$findn("btnDelete").show();
$P.$find("btnDeleteSameRcptYmd").show(); $P.$findn("btnDeleteSameRcptYmd").show();
} }
} }
} }
@ -302,18 +302,18 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $P.fnReset = () => {
$P.holdList = []; $P.holdList = [];
$P.$find("btnOpenCvlcptOrgnl").show(); $P.$findn("btnOpenCvlcptOrgnl").show();
$P.$find("btnDelete").show(); $P.$findn("btnDelete").show();
$P.$find("btnDeleteSameRcptYmd").show(); $P.$findn("btnDeleteSameRcptYmd").show();
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='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val(""); searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$P.$find("byOutput").val("동적 검색"); $P.$findn("byOutput").val("동적 검색");
searchForm.find("[name='schCvlcptRcptYmdFrom']").datepicker('setDate', DateSupport.getAddDay(-5475)); searchForm.find("[name='schCvlcptRcptYmdFrom']").datepicker('setDate', DateSupport.getAddDay(-5475));
searchForm.find("[name='schCvlcptRcptYmdTo']").datepicker('setDate', TODAY()); searchForm.find("[name='schCvlcptRcptYmdTo']").datepicker('setDate', TODAY());
@ -328,7 +328,7 @@ $(document).ready(function(){
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize; data.fetchSize = $P.ctrl.defaultFetchSize;
@ -338,8 +338,8 @@ $(document).ready(function(){
$P.searchCrdnList = () => { $P.searchCrdnList = () => {
$P.holdList = []; $P.holdList = [];
$P.$find("btnDelete").show(); $P.$findn("btnDelete").show();
$P.$find("btnDeleteSameRcptYmd").show(); $P.$findn("btnDeleteSameRcptYmd").show();
$P.ctrl.query = $P.getParams(); $P.ctrl.query = $P.getParams();
$P.ctrl.load(1); $P.ctrl.load(1);
@ -385,7 +385,7 @@ $(document).ready(function(){
} }
$(".parentGrid").each(function(){ $(".parentGrid").each(function(){
if(this.parentGrid == $P.find("table-responsive")){ if(this.parentGrid == $P.findn("table-responsive")){
$(this).trigger("refreshEnd"); $(this).trigger("refreshEnd");
} }
}); });
@ -400,16 +400,16 @@ $(document).ready(function(){
return; return;
} }
var cellDefs = AppSupport.getCellDefs($P.$find("crdnThead").find("th").not(".dummy-th").not(":eq(0)"), var cellDefs = AppSupport.getCellDefs($P.$findn("crdnThead").find("th").not(".dummy-th").not(":eq(0)"),
$($P.find("crdnRow").content).find("td").not(".dummy-td").not(":eq(0)")); $($P.findn("crdnRow").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.query.cellDefs = cellDefs; $P.ctrl.query.cellDefs = cellDefs;
$P.ctrl.download(); $P.ctrl.download();
} }
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$P.find("crdnNotFound").innerHTML]; var notFound = [$P.findn("crdnNotFound").innerHTML];
var found = $P.find("crdnRow").innerHTML; var found = $P.findn("crdnRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');"); .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');");
@ -429,35 +429,35 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs, initScroll, noMore); $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
$P.holdList.forEach(function(item){ $P.holdList.forEach(function(item){
$P.$find("crdnTbody").find("tr[data-key='"+item+"']").addClass("bg-dark"); $P.$findn("crdnTbody").find("tr[data-key='"+item+"']").addClass("bg-dark");
}); });
} }
$P.clickCrdnList = (dataKey) => { $P.clickCrdnList = (dataKey) => {
if(dataKey == ""){ if(dataKey == ""){
$P.$find("bottomCrdnPlc").val(""); $P.$findn("bottomCrdnPlc").val("");
return; return;
} }
$P.$find("crdnTbody").setCurrentRow(dataKey); $P.$findn("crdnTbody").setCurrentRow(dataKey);
$P.$find("bottomCrdnPlc").val($P.ctrl.dataset.getData(dataKey)["CRDN_PLC"]); $P.$findn("bottomCrdnPlc").val($P.ctrl.dataset.getData(dataKey)["CRDN_PLC"]);
if($P.holdList.includes(dataKey)){ if($P.holdList.includes(dataKey)){
$P.$find("btnOpenCvlcptOrgnl").hide(); $P.$findn("btnOpenCvlcptOrgnl").hide();
$P.$find("btnDelete").hide(); $P.$findn("btnDelete").hide();
$P.$find("btnDeleteSameRcptYmd").hide(); $P.$findn("btnDeleteSameRcptYmd").hide();
} else { } else {
$P.$find("btnOpenCvlcptOrgnl").show(); $P.$findn("btnOpenCvlcptOrgnl").show();
$P.$find("btnDelete").show(); $P.$findn("btnDelete").show();
$P.$find("btnDeleteSameRcptYmd").show(); $P.$findn("btnDeleteSameRcptYmd").show();
} }
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
@ -503,7 +503,7 @@ $(document).ready(function(){
pageObject.parentRes.push(parentRes); pageObject.parentRes.push(parentRes);
if($("#"+$P.refDlgId(dialogName)).find("div[class='parentGrid']").length > 0){ if($("#"+$P.refDlgId(dialogName)).find("div[class='parentGrid']").length > 0){
$("#"+$P.refDlgId(dialogName)).find("div[class='parentGrid']")[0].parentGrid = $P.find("table-responsive"); $("#"+$P.refDlgId(dialogName)).find("div[class='parentGrid']")[0].parentGrid = $P.findn("table-responsive");
} }
} }
@ -519,11 +519,11 @@ $(document).ready(function(){
return; return;
} }
$P.holdList.push(curKey); $P.holdList.push(curKey);
$P.$find("crdnTbody").find("tr[data-key='"+curKey+"']").addClass("bg-dark"); $P.$findn("crdnTbody").find("tr[data-key='"+curKey+"']").addClass("bg-dark");
$P.$find("btnOpenCvlcptOrgnl").hide(); $P.$findn("btnOpenCvlcptOrgnl").hide();
$P.$find("btnDelete").hide(); $P.$findn("btnDelete").hide();
$P.$find("btnDeleteSameRcptYmd").hide(); $P.$findn("btnDeleteSameRcptYmd").hide();
} }
$P.fnRemove = (rcptYmd) => { $P.fnRemove = (rcptYmd) => {
@ -604,7 +604,7 @@ $(document).ready(function(){
return; 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({ ajax.get({
url : wctx.url("/"+taskSeCd+"/cvlc/cvlc01/050/info.do"), url : wctx.url("/"+taskSeCd+"/cvlc/cvlc01/050/info.do"),
@ -694,37 +694,37 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on('click', () => $P.searchCrdnList()); $P.$findn("btnSearch").on('click', () => $P.searchCrdnList());
$P.$find("btnExcel").on('click', () => $P.fnExcelDown()); $P.$findn("btnExcel").on('click', () => $P.fnExcelDown());
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$P.$find("term").onEnterPress($P.searchCrdnList); $P.$findn("term").onEnterPress($P.searchCrdnList);
$P.$find("btnHold").on("click", () => $P.fnHold()); $P.$findn("btnHold").on("click", () => $P.fnHold());
$P.$find("btnDelete").on("click", () => $P.fnRemove()); $P.$findn("btnDelete").on("click", () => $P.fnRemove());
$P.$find("btnDeleteSameRcptYmd").on("click", () => $P.fnRemoveSameRcptYmd()); $P.$findn("btnDeleteSameRcptYmd").on("click", () => $P.fnRemoveSameRcptYmd());
$P.$find("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl()); $P.$findn("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl());
Componentization.fnMakeResizableTable($P.find("table-responsive")); Componentization.fnMakeResizableTable($P.findn("table-responsive"));
Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList); Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollCrdnList);
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
//달력 초기화 //달력 초기화
AppSupport.initDatepicker($P.find("frmSearch")); AppSupport.initDatepicker($P.findn("frmSearch"));
AppSupport.initDetailSearchButton($P.find("frmSearch")); AppSupport.initDetailSearchButton($P.findn("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); 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.fnResetAndChangeBiz(defaultBizValue);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); 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"); $(this).prop("disabled", "true");
}); });
}); });

@ -409,7 +409,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"]; var $P = pageObject["${pageName}"];
$P.$find("photoMainWrapper").addClass("w-px-550 min-w-px-550"); $P.$findn("photoMainWrapper").addClass("w-px-550 min-w-px-550");
if(pageObject.parentRes.length > 0){ if(pageObject.parentRes.length > 0){
$P.provided = pageObject.parentRes.pop(); $P.provided = pageObject.parentRes.pop();
@ -420,7 +420,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* DatasetControl, Dataset, FormFields * DatasetControl, Dataset, FormFields
**************************************************************************/ **************************************************************************/
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({ $P.ctrl = new DatasetControl({
dataGetter:obj => obj.crdnInfo, dataGetter:obj => obj.crdnInfo,
@ -452,7 +452,7 @@ $(document).ready(function(){
$P.openLevyExclPop = (levyExclSeCd) => { $P.openLevyExclPop = (levyExclSeCd) => {
if(levyExclSeCd == "2"){ if(levyExclSeCd == "2"){
var rtpyrNm = $P.find("rtpyrNm"); var rtpyrNm = $P.findn("rtpyrNm");
if(rtpyrNm.value == ""){ if(rtpyrNm.value == ""){
dialog.alert({ dialog.alert({
@ -467,9 +467,9 @@ $(document).ready(function(){
} }
} }
var crdnId = $P.$find("crdnId").val(); var crdnId = $P.$findn("crdnId").val();
var sggCd = $P.$find("sggCd").val(); var sggCd = $P.$findn("sggCd").val();
var taskSeCd = $P.$find("taskSeCd").val(); var taskSeCd = $P.$findn("taskSeCd").val();
var params = { var params = {
"saveCallbackFuncName" : "pageObject['${pageName}']['exclSaveCallback']", "saveCallbackFuncName" : "pageObject['${pageName}']['exclSaveCallback']",
@ -551,7 +551,7 @@ $(document).ready(function(){
dialog.close($P.refDlgId("levyExclDialog")); dialog.close($P.refDlgId("levyExclDialog"));
} }
var crdnId = $P.$find("crdnId").val(); var crdnId = $P.$findn("crdnId").val();
var cursorKey = ""; var cursorKey = "";
@ -565,20 +565,20 @@ $(document).ready(function(){
} }
} }
$P.$find("refreshEnd").attr("data-cursor-key", cursorKey); $P.$findn("refreshEnd").attr("data-cursor-key", cursorKey);
$P.provided.refreshList(); $P.provided.refreshList();
} }
}; };
$P.fnPrev = () => { $P.fnPrev = () => {
var prevKey = $P.provided.getPrevKey($P.$find("crdnId").val()); var prevKey = $P.provided.getPrevKey($P.$findn("crdnId").val());
if(prevKey != ""){ if(prevKey != ""){
$P.fnGo(prevKey); $P.fnGo(prevKey);
} }
} }
$P.fnNext = () => { $P.fnNext = () => {
var nextKey = $P.provided.getNextKey($P.$find("crdnId").val()); var nextKey = $P.provided.getNextKey($P.$findn("crdnId").val());
if(nextKey != ""){ if(nextKey != ""){
$P.fnGo(nextKey); $P.fnGo(nextKey);
} }
@ -596,14 +596,14 @@ $(document).ready(function(){
crdnInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN); crdnInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([crdnInfo]); $P.ctrl.dataset.setData([crdnInfo]);
$P.$find("btnViewCrdnList").attr("hidden","hidden"); $P.$findn("btnViewCrdnList").attr("hidden","hidden");
$P.$find("btnViewCvlcptDscsnList").attr("hidden","hidden"); $P.$findn("btnViewCvlcptDscsnList").attr("hidden","hidden");
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
var cs = $P.provided.getCountStatus($P.$find("crdnId").val()); var cs = $P.provided.getCountStatus($P.$findn("crdnId").val());
$P.$find("countStauts").val(cs); $P.$findn("countStauts").val(cs);
$P.provided.selectRow(crdnId); $P.provided.selectRow(crdnId);
@ -618,7 +618,7 @@ $(document).ready(function(){
} }
$P.fnCopy = async() => { $P.fnCopy = async() => {
var crdnId = $P.$find("crdnId").val(); var crdnId = $P.$findn("crdnId").val();
if(await confirm2("현 자료의 복사본을 생성하시겠습니까?")){ if(await confirm2("현 자료의 복사본을 생성하시겠습니까?")){
@ -635,7 +635,7 @@ $(document).ready(function(){
} }
}); });
$P.$find("refreshEnd").attr("data-cursor-key", crdnId); $P.$findn("refreshEnd").attr("data-cursor-key", crdnId);
$P.provided.refreshList(); $P.provided.refreshList();
} }
} }
@ -645,7 +645,7 @@ $(document).ready(function(){
} }
$P.fnOpenCvlcptOrgnl = () => { $P.fnOpenCvlcptOrgnl = () => {
var crdnId = $P.$find("crdnId").val(); var crdnId = $P.$findn("crdnId").val();
ajax.get({ ajax.get({
url : wctx.url("/${taskSeCd}/cvlc/cvlc01/050/info.do"), url : wctx.url("/${taskSeCd}/cvlc/cvlc01/050/info.do"),
@ -672,7 +672,7 @@ $(document).ready(function(){
} }
$P.fnHold = () => { $P.fnHold = () => {
var crdnId = $P.$find("crdnId").val(); var crdnId = $P.$findn("crdnId").val();
$P.provided.holdRow(crdnId); $P.provided.holdRow(crdnId);
@ -699,7 +699,7 @@ $(document).ready(function(){
$P.fnPopPayer = () => { $P.fnPopPayer = () => {
var callPurpose = ""; var callPurpose = "";
var dialogTitle = ""; var dialogTitle = "";
if($P.$find("rtpyrId").val() == null || $P.$find("rtpyrId").val() == ""){ if($P.$findn("rtpyrId").val() == null || $P.$findn("rtpyrId").val() == ""){
callPurpose = "create"; callPurpose = "create";
dialogTitle = "납부자 등록"; dialogTitle = "납부자 등록";
} else { } else {
@ -709,12 +709,12 @@ $(document).ready(function(){
var params = { var params = {
callPurpose : callPurpose, callPurpose : callPurpose,
crdnId : $P.$find("crdnId").val(), // 단속 ID crdnId : $P.$findn("crdnId").val(), // 단속 ID
sggCd : $P.$find("sggCd").val(), // 시군구 코드 sggCd : $P.$findn("sggCd").val(), // 시군구 코드
taskSeCd : $P.$find("taskSeCd").val(), // 업무 구분 코드 taskSeCd : $P.$findn("taskSeCd").val(), // 업무 구분 코드
rtpyrId : $P.$find("rtpyrId").val(), // 납부자 ID rtpyrId : $P.$findn("rtpyrId").val(), // 납부자 ID
addrSn : $P.$find("addrSn").val(), // 주소 일련번호 addrSn : $P.$findn("addrSn").val(), // 주소 일련번호
vhrno : $P.$find("vhrno").val(), // 차량번호 vhrno : $P.$findn("vhrno").val(), // 차량번호
rtpyrInptSeCd : "01", // 납부자 입력 구분 코드 rtpyrInptSeCd : "01", // 납부자 입력 구분 코드
delYn : "N" delYn : "N"
}; };
@ -748,9 +748,9 @@ $(document).ready(function(){
var params = { var params = {
callPurpose : "refresh", callPurpose : "refresh",
crdnId : $P.$find("crdnId").val(), crdnId : $P.$findn("crdnId").val(),
sggCd : $P.$find("sggCd").val(), sggCd : $P.$findn("sggCd").val(),
taskSeCd : $P.$find("taskSeCd").val(), taskSeCd : $P.$findn("taskSeCd").val(),
delYn : "N" delYn : "N"
}; };
@ -762,23 +762,23 @@ $(document).ready(function(){
if (resp.crdnPayer) { if (resp.crdnPayer) {
var payer = resp.crdnPayer; var payer = resp.crdnPayer;
$P.$find("rtpyrId").val(payer.RTPYR_ID).change(); $P.$findn("rtpyrId").val(payer.RTPYR_ID).change();
$P.$find("addrSn").val(payer.ADDR_SN).change(); $P.$findn("addrSn").val(payer.ADDR_SN).change();
$P.$find("rtpyrNm").val(payer.RTPYR_NM).change(); $P.$findn("rtpyrNm").val(payer.RTPYR_NM).change();
$P.$find("rtpyrSeCd").val(payer.RTPYR_SE_CD).change(); $P.$findn("rtpyrSeCd").val(payer.RTPYR_SE_CD).change();
$P.$find("rtpyrNo").val(payer.RTPYR_NO).change(); $P.$findn("rtpyrNo").val(payer.RTPYR_NO).change();
$P.$find("zip").val(payer.ZIP).change(); $P.$findn("zip").val(payer.ZIP).change();
$P.$find("addr").val(payer.ADDR).change(); $P.$findn("addr").val(payer.ADDR).change();
$P.$find("dtlAddr").val(payer.DTL_ADDR).change(); $P.$findn("dtlAddr").val(payer.DTL_ADDR).change();
} else { } else {
$P.$find("rtpyrId").val("").change(); $P.$findn("rtpyrId").val("").change();
$P.$find("addrSn").val("").change(); $P.$findn("addrSn").val("").change();
$P.$find("rtpyrNm").val("").change(); $P.$findn("rtpyrNm").val("").change();
$P.$find("rtpyrSeCd").val("").change(); $P.$findn("rtpyrSeCd").val("").change();
$P.$find("rtpyrNo").val("").change(); $P.$findn("rtpyrNo").val("").change();
$P.$find("zip").val("").change(); $P.$findn("zip").val("").change();
$P.$find("addr").val("").change(); $P.$findn("addr").val("").change();
$P.$find("dtlAddr").val("").change(); $P.$findn("dtlAddr").val("").change();
} }
} }
}); });
@ -786,17 +786,17 @@ $(document).ready(function(){
} }
$P.fnReset = () => { $P.fnReset = () => {
var crdnId = $P.$find("crdnId").val(); var crdnId = $P.$findn("crdnId").val();
$P.fnGo(crdnId); $P.fnGo(crdnId);
} }
$P.fnAccept = async() => { $P.fnAccept = async() => {
if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return; if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
var vhrno = $P.find("vhrno"); var vhrno = $P.findn("vhrno");
var rtpyrNm = $P.find("rtpyrNm"); var rtpyrNm = $P.findn("rtpyrNm");
if(vhrno.value == ""){ if(vhrno.value == ""){
dialog.alert({ dialog.alert({
@ -834,7 +834,7 @@ $(document).ready(function(){
return; return;
} }
var crdnId = $P.$find("crdnId").val(); var crdnId = $P.$findn("crdnId").val();
ajax.post({ ajax.post({
url : $P.ctrl.urls.remove, url : $P.ctrl.urls.remove,
@ -853,7 +853,7 @@ $(document).ready(function(){
}); });
var crdnId = $P.$find("crdnId").val(); var crdnId = $P.$findn("crdnId").val();
var cursorKey = ""; var cursorKey = "";
@ -867,7 +867,7 @@ $(document).ready(function(){
} }
} }
$P.$find("refreshEnd").attr("data-cursor-key", cursorKey); $P.$findn("refreshEnd").attr("data-cursor-key", cursorKey);
$P.provided.refreshList(); $P.provided.refreshList();
} }
} }
@ -881,30 +881,30 @@ $(document).ready(function(){
var clsForTask = "${taskSeCd}".toLowerCase(); var clsForTask = "${taskSeCd}".toLowerCase();
//업무별 입력 항목 //업무별 입력 항목
FimsSupport.renderForTask($P.find("frmEdit"), clsForTask); FimsSupport.renderForTask($P.findn("frmEdit"), clsForTask);
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on("click", () => $P.fnReset() ); $P.$findn("btnReset").on("click", () => $P.fnReset() );
$P.$find("btnPrev").on("click", () => $P.fnPrev() ); $P.$findn("btnPrev").on("click", () => $P.fnPrev() );
$P.$find("btnNext").on("click", () => $P.fnNext() ); $P.$findn("btnNext").on("click", () => $P.fnNext() );
//업무처리 버튼 //업무처리 버튼
$P.$find("btnSendBack").on('click', () => { $P.fnSendBack(); }); $P.$findn("btnSendBack").on('click', () => { $P.fnSendBack(); });
$P.$find("btnInstLevyExcl1").on("click", () => $P.openLevyExclPop("1")); $P.$findn("btnInstLevyExcl1").on("click", () => $P.openLevyExclPop("1"));
$P.$find("btnInstLevyExcl2").on("click", () => $P.openLevyExclPop("2")); $P.$findn("btnInstLevyExcl2").on("click", () => $P.openLevyExclPop("2"));
$P.$find("btnDataCopy").on("click", () => $P.fnCopy()); $P.$findn("btnDataCopy").on("click", () => $P.fnCopy());
$P.$find("btnAccept").on('click', () => $P.fnAccept()); $P.$findn("btnAccept").on('click', () => $P.fnAccept());
$P.$find("btnHold").on("click", () => $P.fnHold()); $P.$findn("btnHold").on("click", () => $P.fnHold());
$P.$find("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl()); $P.$findn("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl());
//납부자 삭제 //납부자 삭제
$P.$find("btnDeletePayer").on("click", () => $P.fnDeletePayer()); $P.$findn("btnDeletePayer").on("click", () => $P.fnDeletePayer());
//납부자 등록, 수정 //납부자 등록, 수정
$P.$find("btnPopPayer").on("click", () => $P.fnPopPayer()); $P.$findn("btnPopPayer").on("click", () => $P.fnPopPayer());
$P.$find("vhrno").onEnterPress(function(){ $P.$findn("vhrno").onEnterPress(function(){
$P.getVehicleTotalInfo(event.target); $P.getVehicleTotalInfo(event.target);
}); });
@ -916,7 +916,7 @@ $(document).ready(function(){
} }
var taskSeCd = "${taskSeCd}"; var taskSeCd = "${taskSeCd}";
var crdnYmd = $P.$find("crdnYmd").val().replaceAll("-", ""); var crdnYmd = $P.$findn("crdnYmd").val().replaceAll("-", "");
var vhrno = vhrnoEl.value; var vhrno = vhrnoEl.value;
if(crdnYmd == ""){ if(crdnYmd == ""){
@ -927,7 +927,7 @@ $(document).ready(function(){
AppSupport.setDialogZindex(); AppSupport.setDialogZindex();
AppSupport.focusClose(); AppSupport.focusClose();
}, },
onClose:function(){ $P.$find("crdnYmd").focus(); } onClose:function(){ $P.$findn("crdnYmd").focus(); }
}); });
return; return;
} else { } else {
@ -955,49 +955,49 @@ $(document).ready(function(){
} }
} }
var sggCd = $P.$find("sggCd").val(); var sggCd = $P.$findn("sggCd").val();
var resp = null; var resp = null;
// //
resp = await FimsSupport.countCrdnByVhrno(vhrno, taskSeCd, sggCd); resp = await FimsSupport.countCrdnByVhrno(vhrno, taskSeCd, sggCd);
if(resp.crdnCount > 0){ if(resp.crdnCount > 0){
$P.$find("outputCrdnCount").html(resp.crdnCount); $P.$findn("outputCrdnCount").html(resp.crdnCount);
$P.$find("btnViewCrdnList").removeAttr("hidden"); $P.$findn("btnViewCrdnList").removeAttr("hidden");
} else { } else {
$P.$find("btnViewCrdnList").attr("hidden","hidden"); $P.$findn("btnViewCrdnList").attr("hidden","hidden");
} }
// //
resp = await FimsSupport.countCvlcptDscsnByVhrno(vhrno, taskSeCd, sggCd); resp = await FimsSupport.countCvlcptDscsnByVhrno(vhrno, taskSeCd, sggCd);
if(resp.cvlcptDscsnNocs.NOCS > 0){ if(resp.cvlcptDscsnNocs.NOCS > 0){
$P.$find("outputCvlcptDscsnCount").html(resp.cvlcptDscsnNocs.NOCS); $P.$findn("outputCvlcptDscsnCount").html(resp.cvlcptDscsnNocs.NOCS);
$P.$find("btnViewCvlcptDscsnList").removeAttr("hidden"); $P.$findn("btnViewCvlcptDscsnList").removeAttr("hidden");
} else { } else {
$P.$find("btnViewCvlcptDscsnList").attr("hidden","hidden"); $P.$findn("btnViewCvlcptDscsnList").attr("hidden","hidden");
} }
// //
resp = await FimsSupport.getVhclInfo(sggCd, vhrno, crdnYmd); resp = await FimsSupport.getVhclInfo(sggCd, vhrno, crdnYmd);
if(otherWindow){ if(otherWindow){
$P.$find("vhrno").val(vhrno); $P.$findn("vhrno").val(vhrno);
} }
if(!resp.found){ if(!resp.found){
$P.$find("rtpyrId").val(""); $P.$findn("rtpyrId").val("");
$P.$find("addrSn").val(""); $P.$findn("addrSn").val("");
$P.$find("rtpyrNm").val(""); $P.$findn("rtpyrNm").val("");
$P.$find("rtpyrSeCd").val(""); $P.$findn("rtpyrSeCd").val("");
$P.$find("rtpyrNo").val(""); $P.$findn("rtpyrNo").val("");
$P.$find("vin").val(""); $P.$findn("vin").val("");
$P.$find("vhclNm").val(""); $P.$findn("vhclNm").val("");
$P.$find("vhclColr").val(""); $P.$findn("vhclColr").val("");
$P.$find("useFuelCd").val(""); $P.$findn("useFuelCd").val("");
$P.$find("ffnlgCarmdlCd").val(""); $P.$findn("ffnlgCarmdlCd").val("");
$P.$find("zip").val(""); $P.$findn("zip").val("");
$P.$find("addr").val(""); $P.$findn("addr").val("");
$P.$find("dtlAddr").val(""); $P.$findn("dtlAddr").val("");
if(!otherWindow){ if(!otherWindow){
dialog.alert({ dialog.alert({
@ -1017,12 +1017,12 @@ $(document).ready(function(){
} }
} }
$P.$find("rtpyrId").val(resp.rtpyrId); $P.$findn("rtpyrId").val(resp.rtpyrId);
$P.$find("addrSn").val(resp.addrSn); $P.$findn("addrSn").val(resp.addrSn);
var vehicle = resp.vehicle; var vehicle = resp.vehicle;
$P.$find("rtpyrNm").val(vehicle.mber_nm); $P.$findn("rtpyrNm").val(vehicle.mber_nm);
var pyrSeCd = ""; var pyrSeCd = "";
switch(vehicle.mber_se_code){ switch(vehicle.mber_se_code){
@ -1032,51 +1032,51 @@ $(document).ready(function(){
case "14" : pyrSeCd = "04"; break; case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; 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.$findn("vin").val(vehicle.vin);
$P.$find("vhclNm").val(vehicle.cnm); $P.$findn("vhclNm").val(vehicle.cnm);
$P.$find("vhclColr").val(vehicle.color_nm); $P.$findn("vhclColr").val(vehicle.color_nm);
$P.$find("useFuelCd").val(vehicle.use_fuel_code); $P.$findn("useFuelCd").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용 if(vehicle.vhcty_asort_code == "1"){ //승용
$P.$find("ffnlgCarmdlCd").val("11"); $P.$findn("ffnlgCarmdlCd").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합 } else if(vehicle.vhcty_asort_code == "2"){ //승합
$P.$find("ffnlgCarmdlCd").val("12"); $P.$findn("ffnlgCarmdlCd").val("12");
} else if(vehicle.vhcty_asort_code == "3"){ //화물 } else if(vehicle.vhcty_asort_code == "3"){ //화물
if(vehicle.mxmm_ldg <= 4000){ if(vehicle.mxmm_ldg <= 4000){
$P.$find("ffnlgCarmdlCd").val("13"); $P.$findn("ffnlgCarmdlCd").val("13");
} else { } else {
$P.$find("ffnlgCarmdlCd").val("14"); $P.$findn("ffnlgCarmdlCd").val("14");
} }
} else if(vehicle.vhcty_asort_code == "4"){ //특수 } else if(vehicle.vhcty_asort_code == "4"){ //특수
$P.$find("ffnlgCarmdlCd").val("15"); $P.$findn("ffnlgCarmdlCd").val("15");
} else { } else {
$P.$find("ffnlgCarmdlCd").val(""); $P.$findn("ffnlgCarmdlCd").val("");
} }
$P.$find("zip").val(vehicle.zip_code); //우편번호 $P.$findn("zip").val(vehicle.zip_code); //우편번호
$P.$find("addr").val(vehicle.road_nm_adres); //주소 $P.$findn("addr").val(vehicle.road_nm_adres); //주소
$P.$find("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소 $P.$findn("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소
if(taskSeCd == "DPV"){ if(taskSeCd == "DPV"){
resp = await FimsSupport.getVhclDisabledParkingInfo(vhrno); resp = await FimsSupport.getVhclDisabledParkingInfo(vhrno);
if(resp.parkingInfo.BOHUN_PARKING_PSBL_YN == "Y" || resp.parkingInfo.PARKING_PSBL_YN == "Y") { if(resp.parkingInfo.BOHUN_PARKING_PSBL_YN == "Y" || resp.parkingInfo.PARKING_PSBL_YN == "Y") {
$P.$find("prkPsbltyRsltCd").val("2"); $P.$findn("prkPsbltyRsltCd").val("2");
} else { } else {
$P.$find("prkPsbltyRsltCd").val("1"); $P.$findn("prkPsbltyRsltCd").val("1");
} }
} }
if(otherWindow){ if(otherWindow){
return { return {
vhrno : $P.$find("vhrno").val(), vhrno : $P.$findn("vhrno").val(),
vhclNm : $P.$find("vhclNm").val(), vhclNm : $P.$findn("vhclNm").val(),
vhclColr : $P.$find("vhclColr").val() vhclColr : $P.$findn("vhclColr").val()
}; };
} else { } else {
return; return;
@ -1084,13 +1084,13 @@ $(document).ready(function(){
}; };
//단속내역 보기 //단속내역 보기
$P.$find("btnViewCrdnList").on("click", function(){ $P.$findn("btnViewCrdnList").on("click", function(){
ajax.get({ ajax.get({
url: wctx.url("/crdn/crdn06/010/main.do"), url: wctx.url("/crdn/crdn06/010/main.do"),
data: { data: {
openType : "D", openType : "D",
taskSeCd : "${taskSeCd}", taskSeCd : "${taskSeCd}",
vhrno : $P.$find("vhrno").val() vhrno : $P.$findn("vhrno").val()
}, },
success: function(resp) { success: function(resp) {
@ -1112,7 +1112,7 @@ $(document).ready(function(){
let refDlgId = $P.refDlgId("crdnListDialog"); let refDlgId = $P.refDlgId("crdnListDialog");
$("#"+refDlgId).find("[name='schCrdnYmdFrom']").set(""); $("#"+refDlgId).find("[name='schCrdnYmdFrom']").set("");
$("#"+refDlgId).find("[name='schCrdnYmdTo']").set(""); $("#"+refDlgId).find("[name='schCrdnYmdTo']").set("");
$("#"+refDlgId).find("[name='vhrno']").set($P.$find("vhrno").val()); $("#"+refDlgId).find("[name='vhrno']").set($P.$findn("vhrno").val());
$("#"+refDlgId).find(".btn-search").eq(0).click(); $("#"+refDlgId).find(".btn-search").eq(0).click();
}); });
}, },
@ -1123,13 +1123,13 @@ $(document).ready(function(){
}); });
//민원내역 보기 //민원내역 보기
$P.$find("btnViewCvlcptDscsnList").on("click", function(){ $P.$findn("btnViewCvlcptDscsnList").on("click", function(){
ajax.get({ ajax.get({
url: wctx.url("/sprt/sprt04/010/main.do"), url: wctx.url("/sprt/sprt04/010/main.do"),
data: { data: {
openType : "D", openType : "D",
taskSeCd : "${taskSeCd}", taskSeCd : "${taskSeCd}",
vhrno : $P.$find("vhrno").val() vhrno : $P.$findn("vhrno").val()
}, },
success: function(resp) { success: function(resp) {
@ -1151,7 +1151,7 @@ $(document).ready(function(){
let refDlgId = $P.refDlgId("crdnListDialog"); let refDlgId = $P.refDlgId("crdnListDialog");
$("#"+refDlgId).find("[name='schDscsnYmdFrom']").set(""); $("#"+refDlgId).find("[name='schDscsnYmdFrom']").set("");
$("#"+refDlgId).find("[name='schDscsnYmdTo']").set(""); $("#"+refDlgId).find("[name='schDscsnYmdTo']").set("");
$("#"+refDlgId).find("[name='schVhrno']").set($P.$find("vhrno").val()); $("#"+refDlgId).find("[name='schVhrno']").set($P.$findn("vhrno").val());
$("#"+refDlgId).find(".btn-search").eq(0).click(); $("#"+refDlgId).find(".btn-search").eq(0).click();
}); });
}, },
@ -1163,17 +1163,17 @@ $(document).ready(function(){
if("${taskSeCd}" == "DPV"){ if("${taskSeCd}" == "DPV"){
$P.$find("vltnCd").on("change", function(){ $P.$findn("vltnCd").on("change", function(){
if(this.value == "01"){ if(this.value == "01"){
$P.$find("dstrbncYn").show(); $P.$findn("dstrbncYn").show();
} else { } else {
$P.$find("dstrbncYn").hide(); $P.$findn("dstrbncYn").hide();
$P.$find("dstrbncYn").prop("checked", false); $P.$findn("dstrbncYn").prop("checked", false);
} }
}); });
} }
$P.$find("refreshEnd").on("refreshEnd", function(){ $P.$findn("refreshEnd").on("refreshEnd", function(){
if(this.dataset.cursorKey == null || this.dataset.cursorKey == ""){ if(this.dataset.cursorKey == null || this.dataset.cursorKey == ""){
dialog.close($P.selfDlgId()); dialog.close($P.selfDlgId());
@ -1191,9 +1191,9 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
AppSupport.initDatepicker($P.find("frmEdit")); //달력 초기화 AppSupport.initDatepicker($P.findn("frmEdit")); //달력 초기화
$P.$find("frmEdit").find(".form-time").each(function(){ $P.$findn("frmEdit").find(".form-time").each(function(){
$(this).on("input",function(){ $(this).on("input",function(){
var value = this.value.replaceAll(":",""); var value = this.value.replaceAll(":","");
@ -1206,33 +1206,33 @@ $(document).ready(function(){
}); });
}); });
$P.$find("btnViewCrdnList").attr("hidden","hidden"); $P.$findn("btnViewCrdnList").attr("hidden","hidden");
$P.$find("btnViewCvlcptDscsnList").attr("hidden","hidden"); $P.$findn("btnViewCvlcptDscsnList").attr("hidden","hidden");
var crdnInfo = ${crdnInfo}; var crdnInfo = ${crdnInfo};
crdnInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN); crdnInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([crdnInfo]); $P.ctrl.dataset.setData([crdnInfo]);
if($P.$find("taskSeCd").val() == "DPV" && $P.$find("vltnCd").val() == "01"){ if($P.$findn("taskSeCd").val() == "DPV" && $P.$findn("vltnCd").val() == "01"){
$P.$find("dstrbncYn").show(); $P.$findn("dstrbncYn").show();
} else { } else {
$P.$find("dstrbncYn").hide(); $P.$findn("dstrbncYn").hide();
} }
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
var cs = $P.provided.getCountStatus($P.$find("crdnId").val()); var cs = $P.provided.getCountStatus($P.$findn("crdnId").val());
$P.$find("countStauts").val(cs); $P.$findn("countStauts").val(cs);
//사진영역 설정 //사진영역 설정
settingPhotoMain("${pageName}", $P.find("crdnId"), settingPhotoMain("${pageName}", $P.findn("crdnId"),
function(){ function(){
return { return {
vhrno : $P.$find("vhrno").val(), vhrno : $P.$findn("vhrno").val(),
vhclNm : $P.$find("vhclNm").val(), vhclNm : $P.$findn("vhclNm").val(),
vhclColr : $P.$find("vhclColr").val() vhclColr : $P.$findn("vhclColr").val()
}; };
}, },
async function(vhrnoEl){ async function(vhrnoEl){

@ -110,13 +110,13 @@ $(document).ready(function() {
$P.provided = pageObject.parentRes.pop(); $P.provided = pageObject.parentRes.pop();
} else { } else {
$P.provided = pageObject.childReq.pop(); $P.provided = pageObject.childReq.pop();
$P.$find("pageNavArea").hide(); $P.$findn("pageNavArea").hide();
} }
/************************************************************************** /**************************************************************************
* DatasetControl, Dataset, FormFields * DatasetControl, Dataset, FormFields
**************************************************************************/ **************************************************************************/
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({ $P.ctrl = new DatasetControl({
dataGetter:obj => obj.cvlcptInfo, dataGetter:obj => obj.cvlcptInfo,
@ -142,14 +142,14 @@ $(document).ready(function() {
**************************************************************************/ **************************************************************************/
$P.fnPrev = () => { $P.fnPrev = () => {
var prevKey = $P.provided.getPrevKey($P.$find("crdnId").val()); var prevKey = $P.provided.getPrevKey($P.$findn("crdnId").val());
if(prevKey != ""){ if(prevKey != ""){
$P.fnGo(prevKey); $P.fnGo(prevKey);
} }
} }
$P.fnNext = () => { $P.fnNext = () => {
var nextKey = $P.provided.getNextKey($P.$find("crdnId").val()); var nextKey = $P.provided.getNextKey($P.$findn("crdnId").val());
if(nextKey != ""){ if(nextKey != ""){
$P.fnGo(nextKey); $P.fnGo(nextKey);
} }
@ -167,8 +167,8 @@ $(document).ready(function() {
cvlcptInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN); cvlcptInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([cvlcptInfo]); $P.ctrl.dataset.setData([cvlcptInfo]);
var cs = $P.provided.getCountStatus($P.$find("crdnId").val()); var cs = $P.provided.getCountStatus($P.$findn("crdnId").val());
$P.$find("countStauts").val(cs); $P.$findn("countStauts").val(cs);
$P.provided.selectRow(crdnId); $P.provided.selectRow(crdnId);
} }
}); });
@ -176,7 +176,7 @@ $(document).ready(function() {
$P.fnMakeHwp = () => { $P.fnMakeHwp = () => {
var url = wctx.url("/"+$P.taskSeCd+"/cvlc/cvlc01/050/makeFileFromHwpFormat.do"); var url = wctx.url("/"+$P.taskSeCd+"/cvlc/cvlc01/050/makeFileFromHwpFormat.do");
var parameter = toQuery({ crdnId : $P.$find("crdnId").val() }); var parameter = toQuery({ crdnId : $P.$findn("crdnId").val() });
document.location.href = url + "?" + parameter; document.location.href = url + "?" + parameter;
} }
@ -184,9 +184,9 @@ $(document).ready(function() {
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnPrev").on("click", () => $P.fnPrev() ); $P.$findn("btnPrev").on("click", () => $P.fnPrev() );
$P.$find("btnNext").on("click", () => $P.fnNext() ); $P.$findn("btnNext").on("click", () => $P.fnNext() );
$P.$find("btnMakeHwp").on("click", () => $P.fnMakeHwp() ); $P.$findn("btnMakeHwp").on("click", () => $P.fnMakeHwp() );
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
@ -194,7 +194,7 @@ $(document).ready(function() {
var cvlcptInfo = ${cvlcptInfo}; var cvlcptInfo = ${cvlcptInfo};
cvlcptInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN); cvlcptInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([cvlcptInfo]); $P.ctrl.dataset.setData([cvlcptInfo]);
var cs = $P.provided.getCountStatus($P.$find("crdnId").val()); var cs = $P.provided.getCountStatus($P.$findn("crdnId").val());
$P.$find("countStauts").val(cs); $P.$findn("countStauts").val(cs);
}); });
</script> </script>

@ -276,34 +276,34 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderCrdnList(obj["Total"], $P.ctrl.dataset.length, trs, option); $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) => { $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) => { $P.ctrl.dataset.onSelectionChange = (selectedArr) => {
Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("crdnTbody"), 1, selectedArr); Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("crdnTbody"), 1, selectedArr);
Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnExecuteAnswer"), selectedArr); Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnExecuteAnswer"), selectedArr);
Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnAnswerComplete"), selectedArr); Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnAnswerComplete"), selectedArr);
Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnExecuteDisabledTagInfoInquire"), selectedArr); Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnExecuteDisabledTagInfoInquire"), selectedArr);
}; };
/************************************************************************** /**************************************************************************
* pageObject.function * pageObject.function
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $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='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val(""); searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$P.$find("byOutput").val("동적 검색"); $P.$findn("byOutput").val("동적 검색");
$P.$find("schCvlcptRcptYmdFrom").datepicker('setDate', DateSupport.getAddDay(-31)); $P.$findn("schCvlcptRcptYmdFrom").datepicker('setDate', DateSupport.getAddDay(-31));
$P.$find("schCvlcptRcptYmdTo").datepicker('setDate', TODAY()); $P.$findn("schCvlcptRcptYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }
@ -311,10 +311,10 @@ $(document).ready(function(){
$P.fnResetAndChangeBiz = taskSeCd => { $P.fnResetAndChangeBiz = taskSeCd => {
var clsForTask = taskSeCd.toLowerCase(); var clsForTask = taskSeCd.toLowerCase();
//업무별 버튼 //업무별 버튼
FimsSupport.renderForTask($P.find("gridbuttonArea"), clsForTask); FimsSupport.renderForTask($P.findn("gridbuttonArea"), clsForTask);
//버튼 이벤트 재매핑 //버튼 이벤트 재매핑
$P.$find("btnExecuteDisabledTagInfoInquire").off("click"); $P.$findn("btnExecuteDisabledTagInfoInquire").off("click");
$P.$find("btnExecuteDisabledTagInfoInquire").on("click", () => $P.fnExecuteDisabledTagInfoInquire()); $P.$findn("btnExecuteDisabledTagInfoInquire").on("click", () => $P.fnExecuteDisabledTagInfoInquire());
$P.fnReset(); $P.fnReset();
$P.ctrl.urls.load = wctx.url("/"+taskSeCd+"/cvlc/cvlc02/030/list.do"); $P.ctrl.urls.load = wctx.url("/"+taskSeCd+"/cvlc/cvlc02/030/list.do");
@ -323,7 +323,7 @@ $(document).ready(function(){
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize; data.fetchSize = $P.ctrl.defaultFetchSize;
@ -351,8 +351,8 @@ $(document).ready(function(){
return; return;
} }
var cellDefs = AppSupport.getCellDefs($P.$find("crdnThead").find("th").not(".dummy-th").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.find("crdnRow").content).find("td").not(".dummy-td").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; $P.ctrl.query.cellDefs = cellDefs;
if(forApproval){ if(forApproval){
@ -368,8 +368,8 @@ $(document).ready(function(){
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$P.find("crdnNotFound").innerHTML]; var notFound = [$P.findn("crdnNotFound").innerHTML];
var found = $P.find("crdnRow").innerHTML; var found = $P.findn("crdnRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');"); .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');");
@ -389,13 +389,13 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs, initScroll, noMore); $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
$P.$find("crdnTbody").find("tr[data-key]").each(function(item){ $P.$findn("crdnTbody").find("tr[data-key]").each(function(item){
var crdnId = this.dataset.key; var crdnId = this.dataset.key;
var data = $P.ctrl.dataset.getData(crdnId); var data = $P.ctrl.dataset.getData(crdnId);
@ -414,9 +414,9 @@ $(document).ready(function(){
GRID.checkbox.sync(element, bool); GRID.checkbox.sync(element, bool);
var atLeastOne = GRID.checkbox.countChecked(element) > 0; var atLeastOne = GRID.checkbox.countChecked(element) > 0;
$P.$find("btnExecuteAnswer").prop("disabled", !atLeastOne); $P.$findn("btnExecuteAnswer").prop("disabled", !atLeastOne);
$P.$find("btnAnswerComplete").prop("disabled", !atLeastOne); $P.$findn("btnAnswerComplete").prop("disabled", !atLeastOne);
$P.$find("btnExecuteDisabledTagInfoInquire").prop("disabled", !atLeastOne); $P.$findn("btnExecuteDisabledTagInfoInquire").prop("disabled", !atLeastOne);
Apply.toDataset.selection($P.ctrl.dataset, element, bool); Apply.toDataset.selection($P.ctrl.dataset, element, bool);
} }
@ -425,7 +425,7 @@ $(document).ready(function(){
if(dataKey == ""){ if(dataKey == ""){
return; return;
} }
$P.$find("crdnTbody").setCurrentRow(dataKey); $P.$findn("crdnTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -463,7 +463,7 @@ $(document).ready(function(){
return; 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({ ajax.get({
url : wctx.url("/"+taskSeCd+"/cvlc/cvlc01/050/info.do"), url : wctx.url("/"+taskSeCd+"/cvlc/cvlc01/050/info.do"),
@ -506,7 +506,7 @@ $(document).ready(function(){
return; 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({ ajax.get({
@ -688,38 +688,38 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on('click', () => $P.searchCrdnList()); $P.$findn("btnSearch").on('click', () => $P.searchCrdnList());
$P.$find("btnExcel").on('click', () => $P.fnExcelDown(false)); $P.$findn("btnExcel").on('click', () => $P.fnExcelDown(false));
$P.$find("btnExcelForApproval").on('click', () => $P.fnExcelDown(true)); $P.$findn("btnExcelForApproval").on('click', () => $P.fnExcelDown(true));
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$P.$find("term").onEnterPress($P.searchCrdnList); $P.$findn("term").onEnterPress($P.searchCrdnList);
$P.$find("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl()); $P.$findn("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl());
$P.$find("btnOpenAnswerPreview").on("click", () => $P.fnOpenAnswerPreview()); $P.$findn("btnOpenAnswerPreview").on("click", () => $P.fnOpenAnswerPreview());
$P.$find("btnExecuteAnswer").on("click", () => $P.fnExecuteAnswer()); $P.$findn("btnExecuteAnswer").on("click", () => $P.fnExecuteAnswer());
$P.$find("btnAnswerComplete").on("click", () => $P.fnAnswerComplete()); $P.$findn("btnAnswerComplete").on("click", () => $P.fnAnswerComplete());
Componentization.fnMakeResizableTable($P.find("table-responsive")); Componentization.fnMakeResizableTable($P.findn("table-responsive"));
Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList); Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollCrdnList);
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
//달력 초기화 //달력 초기화
AppSupport.initDatepicker($P.find("frmSearch")); AppSupport.initDatepicker($P.findn("frmSearch"));
AppSupport.initDetailSearchButton($P.find("frmSearch")); AppSupport.initDetailSearchButton($P.findn("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); 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.fnResetAndChangeBiz(defaultBizValue);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); 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"); $(this).prop("disabled", "true");
}); });
}); });

@ -84,7 +84,7 @@ $(document).ready(function() {
/************************************************************************** /**************************************************************************
* DatasetControl, Dataset, FormFields * DatasetControl, Dataset, FormFields
**************************************************************************/ **************************************************************************/
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({ $P.ctrl = new DatasetControl({
dataGetter:obj => obj.cvlcptInfo, dataGetter:obj => obj.cvlcptInfo,
@ -112,14 +112,14 @@ $(document).ready(function() {
**************************************************************************/ **************************************************************************/
$P.fnPrev = () => { $P.fnPrev = () => {
var prevKey = $P.parentRes.getPrevKey($P.$find("crdnId").val()); var prevKey = $P.parentRes.getPrevKey($P.$findn("crdnId").val());
if(prevKey != ""){ if(prevKey != ""){
$P.fnGo(prevKey); $P.fnGo(prevKey);
} }
} }
$P.fnNext = () => { $P.fnNext = () => {
var nextKey = $P.parentRes.getNextKey($P.$find("crdnId").val()); var nextKey = $P.parentRes.getNextKey($P.$findn("crdnId").val());
if(nextKey != ""){ if(nextKey != ""){
$P.fnGo(nextKey); $P.fnGo(nextKey);
} }
@ -137,8 +137,8 @@ $(document).ready(function() {
cvlcptInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN); cvlcptInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([cvlcptInfo]); $P.ctrl.dataset.setData([cvlcptInfo]);
var cs = $P.parentRes.getCountStatus($P.$find("crdnId").val()); var cs = $P.parentRes.getCountStatus($P.$findn("crdnId").val());
$P.$find("countStauts").val(cs); $P.$findn("countStauts").val(cs);
$P.parentRes.selectRow(crdnId); $P.parentRes.selectRow(crdnId);
} }
}); });
@ -146,7 +146,7 @@ $(document).ready(function() {
$P.fnSave = async() => { $P.fnSave = async() => {
if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return; if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
if(await confirm2("현재 답변 내용을 저장하시겠습니까?")){ if(await confirm2("현재 답변 내용을 저장하시겠습니까?")){
var info = $P.formFields.get(); var info = $P.formFields.get();
@ -181,10 +181,10 @@ $(document).ready(function() {
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnPrev").on("click", () => $P.fnPrev() ); $P.$findn("btnPrev").on("click", () => $P.fnPrev() );
$P.$find("btnNext").on("click", () => $P.fnNext() ); $P.$findn("btnNext").on("click", () => $P.fnNext() );
$P.$find("btnSave").on("click", () => $P.fnSave() ); $P.$findn("btnSave").on("click", () => $P.fnSave() );
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
@ -192,13 +192,13 @@ $(document).ready(function() {
var cvlcptInfo = ${cvlcptInfo}; var cvlcptInfo = ${cvlcptInfo};
cvlcptInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN); cvlcptInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([cvlcptInfo]); $P.ctrl.dataset.setData([cvlcptInfo]);
var cs = $P.parentRes.getCountStatus($P.$find("crdnId").val()); var cs = $P.parentRes.getCountStatus($P.$findn("crdnId").val());
$P.$find("countStauts").val(cs); $P.$findn("countStauts").val(cs);
if($("#"+$P.selfDlgId()).attr("data-ref-doctx") == "cvlc02010") { if($("#"+$P.selfDlgId()).attr("data-ref-doctx") == "cvlc02010") {
$P.$find("btnSave").show(); $P.$findn("btnSave").show();
} else { } else {
$P.$find("btnSave").hide(); $P.$findn("btnSave").hide();
} }
}); });

@ -50,7 +50,7 @@
</span> </span>
</div> </div>
<div class="col-6"> <div class="col-6">
<button type="button" class="w-px-120" onclick="pageObject.${pageName}.$find('cvlcptPrcsPicNm').val('${currentUserName}');"> <button type="button" class="w-px-120" onclick="pageObject.${pageName}.$findn('cvlcptPrcsPicNm').val('${currentUserName}');">
담당자명 지정 담당자명 지정
</button> </button>
<input type="text" name="cvlcptPrcsPicNm" <input type="text" name="cvlcptPrcsPicNm"
@ -230,7 +230,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"]; var $P = pageObject["${pageName}"];
$P.toast = new bootstrap.Toast($P.find("divToast"), { $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true, animation: true,
autohide: true, autohide: true,
delay: 2000 delay: 2000
@ -267,11 +267,11 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderCrdnList(obj["Total"], $P.ctrl.dataset.length, trs, option); $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) => { $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"));
} }
@ -279,16 +279,16 @@ $(document).ready(function(){
* pageObject.function * pageObject.function
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $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='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val(""); searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$P.$find("byOutput").val("동적 검색"); $P.$findn("byOutput").val("동적 검색");
$P.$find("schCvlcptRcptYmdFrom").datepicker('setDate', DateSupport.getAddDay(-365)); $P.$findn("schCvlcptRcptYmdFrom").datepicker('setDate', DateSupport.getAddDay(-365));
$P.$find("schCvlcptRcptYmdTo").datepicker('setDate', TODAY()); $P.$findn("schCvlcptRcptYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }
@ -302,7 +302,7 @@ $(document).ready(function(){
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize; data.fetchSize = $P.ctrl.defaultFetchSize;
@ -361,16 +361,16 @@ $(document).ready(function(){
return; return;
} }
var cellDefs = AppSupport.getCellDefs($P.$find("crdnThead").find("th").not(".dummy-th").not(":eq(0)"), var cellDefs = AppSupport.getCellDefs($P.$findn("crdnThead").find("th").not(".dummy-th").not(":eq(0)"),
$($P.find("crdnRow").content).find("td").not(".dummy-td").not(":eq(0)")); $($P.findn("crdnRow").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.query.cellDefs = cellDefs; $P.ctrl.query.cellDefs = cellDefs;
$P.ctrl.download(); $P.ctrl.download();
} }
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$P.find("crdnNotFound").innerHTML]; var notFound = [$P.findn("crdnNotFound").innerHTML];
var found = $P.find("crdnRow").innerHTML; var found = $P.findn("crdnRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickCrdnList('" + dataItem.getValue("CRDN_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');"); .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickCrdnList('" + dataItem.getValue("CRDN_ID") + "');");
@ -391,7 +391,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs, initScroll, noMore); $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -403,7 +403,7 @@ $(document).ready(function(){
return; return;
} }
$P.$find("crdnTbody").setCurrentRow(dataKey); $P.$findn("crdnTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -476,7 +476,7 @@ $(document).ready(function(){
return; 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({ ajax.get({
@ -556,34 +556,34 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on('click', () => $P.searchCrdnList()); $P.$findn("btnSearch").on('click', () => $P.searchCrdnList());
$P.$find("btnExcel").on('click', () => $P.fnExcelDown()); $P.$findn("btnExcel").on('click', () => $P.fnExcelDown());
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$P.$find("term").onEnterPress($P.searchCrdnList); $P.$findn("term").onEnterPress($P.searchCrdnList);
$P.$find("btnDelete").on("click", () => $P.fnRemove()); $P.$findn("btnDelete").on("click", () => $P.fnRemove());
$P.$find("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl()); $P.$findn("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl());
Componentization.fnMakeResizableTable($P.find("table-responsive")); Componentization.fnMakeResizableTable($P.findn("table-responsive"));
Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollCrdnList); Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollCrdnList);
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
//달력 초기화 //달력 초기화
AppSupport.initDatepicker($P.find("frmSearch")); AppSupport.initDatepicker($P.findn("frmSearch"));
AppSupport.initDetailSearchButton($P.find("frmSearch")); AppSupport.initDetailSearchButton($P.findn("frmSearch"));
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); 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.fnResetAndChangeBiz(defaultBizValue);
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); 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"); $(this).prop("disabled", "true");
}); });
}); });

@ -168,7 +168,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"]; var $P = pageObject["${pageName}"];
$P.toast = new bootstrap.Toast($P.find("divToast"), { $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true, animation: true,
autohide: true, autohide: true,
delay: 2000 delay: 2000
@ -203,11 +203,11 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderDmndList(obj["Total"], $P.ctrl.dataset.length, trs, option); $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) => { $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.fnReset = () => {
$P.$find("schDmndYmdFrom").datepicker('setDate', DateSupport.getAddDay(-5475)); $P.$findn("schDmndYmdFrom").datepicker('setDate', DateSupport.getAddDay(-5475));
$P.$find("schDmndYmdTo").datepicker('setDate', TODAY()); $P.$findn("schDmndYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }
@ -228,7 +228,7 @@ $(document).ready(function(){
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize; data.fetchSize = $P.ctrl.defaultFetchSize;
@ -284,8 +284,8 @@ $(document).ready(function(){
} }
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$P.find("dmndNotFound").innerHTML]; var notFound = [$P.findn("dmndNotFound").innerHTML];
var found = $P.find("dmndRow").innerHTML; var found = $P.findn("dmndRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickDmndList('" + dataItem.getValue("INDIV_ID") + "');"); .replace(/{onclick}/gi, "pageObject['${pageName}'].clickDmndList('" + dataItem.getValue("INDIV_ID") + "');");
@ -304,7 +304,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs, initScroll, noMore); $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
} }
$P.clickDmndList = (dataKey) => { $P.clickDmndList = (dataKey) => {
@ -312,7 +312,7 @@ $(document).ready(function(){
return; return;
} }
$P.$find("dmndTbody").setCurrentRow(dataKey); $P.$findn("dmndTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -351,7 +351,7 @@ $(document).ready(function(){
$P.removeCallback = (selected, resp) => { $P.removeCallback = (selected, resp) => {
if (resp.saved){ if (resp.saved){
$P.$find("toastText").html("삭제 되었습니다."); $P.$findn("toastText").html("삭제 되었습니다.");
$P.toast.show(); $P.toast.show();
AppSupport.sleep(1000).then(() => $P.refreshDmndList()); AppSupport.sleep(1000).then(() => $P.refreshDmndList());
} }
@ -402,7 +402,7 @@ $(document).ready(function(){
dialog.open({ dialog.open({
id : dialogId, id : dialogId,
title : "새올 접수 요청", title : "새올 접수 요청",
content : $P.find("seallDmndDialogTemplate").innerHTML, content : $P.findn("seallDmndDialogTemplate").innerHTML,
size : "lg", size : "lg",
init : () => { init : () => {
$("#"+dialogId).attr("name", dialogName); $("#"+dialogId).attr("name", dialogName);
@ -424,7 +424,7 @@ $(document).ready(function(){
let selectorStr = "#"+$P.refDlgId("seallDmndDialog")+" "+"form[name='frmEdit']"; let selectorStr = "#"+$P.refDlgId("seallDmndDialog")+" "+"form[name='frmEdit']";
let ff = new FimsFormFields(selectorStr); let ff = new FimsFormFields(selectorStr);
var info = ff.get(); 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({ ajax.get({
url : $P.ctrl.urls.create, url : $P.ctrl.urls.create,
@ -433,7 +433,7 @@ $(document).ready(function(){
if(resp.saved){ if(resp.saved){
dialog.close($P.refDlgId("seallDmndDialog")); dialog.close($P.refDlgId("seallDmndDialog"));
$P.$find("toastText").html("등록 되었습니다."); $P.$findn("toastText").html("등록 되었습니다.");
$P.toast.show(); $P.toast.show();
if(!$P.ctrl.dataset.empty){ if(!$P.ctrl.dataset.empty){
@ -447,27 +447,27 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on('click', () => $P.searchDmndList()); $P.$findn("btnSearch").on('click', () => $P.searchDmndList());
$P.$find("btnOpenDmndPop").on("click", () => $P.fnOpenDmndPop()); $P.$findn("btnOpenDmndPop").on("click", () => $P.fnOpenDmndPop());
$P.$find("btnDelete").on("click", () => $P.fnRemove(null)); $P.$findn("btnDelete").on("click", () => $P.fnRemove(null));
$P.$find("btnDeleteAllCompleteData").on("click", () => $P.fnRemoveAllCompleteData()); $P.$findn("btnDeleteAllCompleteData").on("click", () => $P.fnRemoveAllCompleteData());
Componentization.fnMakeResizableTable($P.find("table-responsive")); Componentization.fnMakeResizableTable($P.findn("table-responsive"));
Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollDmndList); 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(); 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.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"); $(this).prop("disabled", "true");
}); });
}); });

@ -307,7 +307,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"]; var $P = pageObject["${pageName}"];
$P.toast = new bootstrap.Toast($P.find("divToast"), { $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true, animation: true,
autohide: true, autohide: true,
delay: 2000 delay: 2000
@ -331,7 +331,7 @@ $(document).ready(function(){
} }
$P.fnReset = () => { $P.fnReset = () => {
$P.$find("btnAnsBasicTab").trigger("click"); $P.$findn("btnAnsBasicTab").trigger("click");
$P.ctrl.levy.setData([]); $P.ctrl.levy.setData([]);
$P.ctrl.warning.setData([]); $P.ctrl.warning.setData([]);
$P.ctrl.nonlevy.setData([]); $P.ctrl.nonlevy.setData([]);
@ -340,28 +340,28 @@ $(document).ready(function(){
$P.renderAnsBodyList(0,'warning'); $P.renderAnsBodyList(0,'warning');
$P.renderAnsBodyList(0,'nonlevy'); $P.renderAnsBodyList(0,'nonlevy');
$P.$find("frmEditAnsBasic").find("input, textarea").val(""); $P.$findn("frmEditAnsBasic").find("input, textarea").val("");
$P.$find("frmEditAnsBody").find("input, textarea").val(""); $P.$findn("frmEditAnsBody").find("input, textarea").val("");
$P.searchWordsStng(); $P.searchWordsStng();
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
return data; return data;
} }
$P.searchWordsStng = () => { $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({ ajax.get({
url : $P.ctrl.urls.load, url : $P.ctrl.urls.load,
data : {"taskSeCd" : taskSeCd}, data : {"taskSeCd" : taskSeCd},
success : (resp) => { success : (resp) => {
$P.$find("headerCn").val(resp.headerCn); $P.$findn("headerCn").val(resp.headerCn);
$P.$find("footerCn").val(resp.footerCn); $P.$findn("footerCn").val(resp.footerCn);
$P.ctrl.levy.setData(resp.levyCaseList); $P.ctrl.levy.setData(resp.levyCaseList);
$P.ctrl.warning.setData(resp.warningCaseList); $P.ctrl.warning.setData(resp.warningCaseList);
@ -410,8 +410,8 @@ $(document).ready(function(){
var ansBodyDS = $P.ctrl[renderDataType].dataset; var ansBodyDS = $P.ctrl[renderDataType].dataset;
var empty = ansBodyDS.empty; var empty = ansBodyDS.empty;
var notFound = [$P.find(notFoundName).innerHTML]; var notFound = [$P.findn(notFoundName).innerHTML];
var found = $P.find(foundName).innerHTML; var found = $P.findn(foundName).innerHTML;
var replacer = () => {}; var replacer = () => {};
if(renderDataType == "levy"){ if(renderDataType == "levy"){
@ -429,7 +429,7 @@ $(document).ready(function(){
} }
var trs = empty ? notFound : ansBodyDS.inStrings(found, replacer); var trs = empty ? notFound : ansBodyDS.inStrings(found, replacer);
$P.$find(tbodyName).html(trs.join()); $P.$findn(tbodyName).html(trs.join());
} }
$P.radioClickAnsBodyList = (dataKey, gridType) => { $P.radioClickAnsBodyList = (dataKey, gridType) => {
@ -446,7 +446,7 @@ $(document).ready(function(){
} else { } else {
return; return;
} }
$P.$find(tbodyName).setCurrentRow(dataKey); $P.$findn(tbodyName).setCurrentRow(dataKey);
if(gridType == "levy" && $P.currentDisplay == "levyAnsBody"){ if(gridType == "levy" && $P.currentDisplay == "levyAnsBody"){
$P.changeAnsBodyText(); $P.changeAnsBodyText();
@ -469,14 +469,14 @@ $(document).ready(function(){
return; 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"){ 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"){ } 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"){ } 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); $P.radioClickAnsBodyList(dataKey, gridType);
@ -496,10 +496,10 @@ $(document).ready(function(){
} }
if(curData == null){ if(curData == null){
$P.$find("ansRsnCd").val(""); $P.$findn("ansRsnCd").val("");
$P.$find("dstrbncYn").val(""); $P.$findn("dstrbncYn").val("");
$P.$find("ansWordsId").val(""); $P.$findn("ansWordsId").val("");
$P.$find("prcsRsltCn").val(""); $P.$findn("prcsRsltCn").val("");
return; return;
} }
@ -517,16 +517,16 @@ $(document).ready(function(){
rnsRsnCd = curData["LEVY_EXCL_RSN_CD"] rnsRsnCd = curData["LEVY_EXCL_RSN_CD"]
if(curData["ANS_WORDS_ID"] == null){ if(curData["ANS_WORDS_ID"] == null){
$P.$find("btnRemove").prop("disabled",true); $P.$findn("btnRemove").prop("disabled",true);
} else { } else {
$P.$find("btnRemove").prop("disabled",false); $P.$findn("btnRemove").prop("disabled",false);
} }
} }
$P.$find("ansRsnCd").val(rnsRsnCd); $P.$findn("ansRsnCd").val(rnsRsnCd);
$P.$find("dstrbncYn").val(dstrbncYn); $P.$findn("dstrbncYn").val(dstrbncYn);
$P.$find("ansWordsId").val(curData["ANS_WORDS_ID"]); $P.$findn("ansWordsId").val(curData["ANS_WORDS_ID"]);
$P.$find("prcsRsltCn").val(curData["PRCS_RSLT_CN"]); $P.$findn("prcsRsltCn").val(curData["PRCS_RSLT_CN"]);
} }
$P.refreshAnsWordsInfo = () => { $P.refreshAnsWordsInfo = () => {
@ -534,15 +534,15 @@ $(document).ready(function(){
var cursor2 = $P.ctrl.warning.getCurrent()["LEVY_EXCL_RSN_CD"]; var cursor2 = $P.ctrl.warning.getCurrent()["LEVY_EXCL_RSN_CD"];
var cursor3 = $P.ctrl.nonlevy.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({ ajax.get({
url : $P.ctrl.urls.load, url : $P.ctrl.urls.load,
data : {"taskSeCd" : taskSeCd}, data : {"taskSeCd" : taskSeCd},
success : (resp) => { success : (resp) => {
$P.$find("headerCn").val(resp.headerCn); $P.$findn("headerCn").val(resp.headerCn);
$P.$find("footerCn").val(resp.footerCn); $P.$findn("footerCn").val(resp.footerCn);
$P.ctrl.levy.setData(resp.levyCaseList); $P.ctrl.levy.setData(resp.levyCaseList);
$P.ctrl.warning.setData(resp.warningCaseList); $P.ctrl.warning.setData(resp.warningCaseList);
@ -586,14 +586,14 @@ $(document).ready(function(){
} }
if(!AppSupport.customValidate($P.$find(formName).find("input, select, textarea"))) return; if(!AppSupport.customValidate($P.$findn(formName).find("input, select, textarea"))) return;
var info = (new FimsFormFields($P.selector(formName))).get(); var info = (new FimsFormFields($P.selectorn(formName))).get();
if(isBasicWords){ if(isBasicWords){
info.saveData = "basic"; info.saveData = "basic";
} else { } else {
info.saveData = "body"; 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({ dialog.alert({
content : confirmMessage, content : confirmMessage,
@ -619,8 +619,8 @@ $(document).ready(function(){
//답변대상 제외 //답변대상 제외
$P.fnRemove = () => { $P.fnRemove = () => {
if(!AppSupport.customValidate($P.$find("frmEditAnsBody").find("input, select, textarea"))) return; if(!AppSupport.customValidate($P.$findn("frmEditAnsBody").find("input, select, textarea"))) return;
var info = (new FimsFormFields($P.selector("frmEditAnsBody"))).get(); var info = (new FimsFormFields($P.selectorn("frmEditAnsBody"))).get();
dialog.alert({ dialog.alert({
content : "해당 미부과사유를 답변대상에서 제외하시겠습니까?", content : "해당 미부과사유를 답변대상에서 제외하시겠습니까?",
@ -646,9 +646,9 @@ $(document).ready(function(){
$P.fnOpenPreviewPop = () => { $P.fnOpenPreviewPop = () => {
var result = fnMacroWordsReplace( var result = fnMacroWordsReplace(
$P.$find("headerCn").val(), $P.$findn("headerCn").val(),
$P.$find("footerCn").val(), $P.$findn("footerCn").val(),
$P.$find("prcsRsltCn").val(), $P.$findn("prcsRsltCn").val(),
"${currentUserTelno}", "${currentUserTelno}",
"${currentUserName}" "${currentUserName}"
); );
@ -659,7 +659,7 @@ $(document).ready(function(){
dialog.open({ dialog.open({
id : dialogId, id : dialogId,
title : "답변 내용 미리보기", title : "답변 내용 미리보기",
content : $P.find("previewDialogTemplate").innerHTML, content : $P.findn("previewDialogTemplate").innerHTML,
size : "lg", size : "lg",
init : () => { init : () => {
$("#"+dialogId).attr("name", dialogName); $("#"+dialogId).attr("name", dialogName);
@ -677,23 +677,23 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * 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.$findn("wrapper").find(".area-answerbasic").show();
$P.$find("wrapper").find(".area-answerbody").hide(); $P.$findn("wrapper").find(".area-answerbody").hide();
$P.currentDisplay = "ansBasic"; $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.$findn("wrapper").find(".area-answerbasic").hide();
$P.$find("wrapper").find(".area-answerbody").each(function(){ $P.$findn("wrapper").find(".area-answerbody").each(function(){
if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-levy")){ if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-levy")){
$(this).show(); $(this).show();
} else { } else {
@ -703,16 +703,16 @@ $(document).ready(function(){
$P.currentDisplay = "levyAnsBody"; $P.currentDisplay = "levyAnsBody";
$P.$find("wrapper").find(":radio[name='levyRadio']:checked").focus(); $P.$findn("wrapper").find(":radio[name='levyRadio']:checked").focus();
$P.changeAnsBodyText(); $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.$findn("wrapper").find(".area-answerbasic").hide();
$P.$find("wrapper").find(".area-answerbody").each(function(){ $P.$findn("wrapper").find(".area-answerbody").each(function(){
if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-warning")){ if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-warning")){
$(this).show(); $(this).show();
} else { } else {
@ -722,16 +722,16 @@ $(document).ready(function(){
$P.currentDisplay = "warningAnsBody"; $P.currentDisplay = "warningAnsBody";
$P.$find("wrapper").find(":radio[name='warningRadio']:checked").focus(); $P.$findn("wrapper").find(":radio[name='warningRadio']:checked").focus();
$P.changeAnsBodyText(); $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.$findn("wrapper").find(".area-answerbasic").hide();
$P.$find("wrapper").find(".area-answerbody").each(function(){ $P.$findn("wrapper").find(".area-answerbody").each(function(){
if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-nonlevy")){ if($(this).hasClass("area-answerbody-common") || $(this).hasClass("area-nonlevy")){
$(this).show(); $(this).show();
} else { } else {
@ -741,35 +741,35 @@ $(document).ready(function(){
$P.currentDisplay = "nonlevyAnsBody"; $P.currentDisplay = "nonlevyAnsBody";
$P.$find("wrapper").find(":radio[name='nonlevyRadio']:checked").focus(); $P.$findn("wrapper").find(":radio[name='nonlevyRadio']:checked").focus();
$P.changeAnsBodyText(); $P.changeAnsBodyText();
$P.$find("macroTarget").attr("for",""); $P.$findn("macroTarget").attr("for","");
}); });
//업무처리 버튼 //업무처리 버튼
$P.$find("btnSaveAnsBasic").on("click", () => $P.fnSave(true)); $P.$findn("btnSaveAnsBasic").on("click", () => $P.fnSave(true));
$P.$find("btnSaveAnsBody").on("click", () => $P.fnSave(false)); $P.$findn("btnSaveAnsBody").on("click", () => $P.fnSave(false));
$P.$find("btnRemove").on("click", () => $P.fnRemove()); $P.$findn("btnRemove").on("click", () => $P.fnRemove());
$P.$find("btnOpenPreviewPop").on("click", () => $P.fnOpenPreviewPop()); $P.$findn("btnOpenPreviewPop").on("click", () => $P.fnOpenPreviewPop());
$($P.selfElement()).find("[name='headerCn'],[name='footerCn'],[name='prcsRsltCn']").on("focus", (event) => { $($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", () => { $P.$findn("btnInsertMacro1").on("click", () => {
var macroTarget = $P.$find("macroTarget").attr("for"); var macroTarget = $P.$findn("macroTarget").attr("for");
if(macroTarget == ""){ return; } if(macroTarget == ""){ return; }
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_SEQ); fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_SEQ);
}); });
$P.$find("btnInsertMacro2").on("click", () => { $P.$findn("btnInsertMacro2").on("click", () => {
var macroTarget = $P.$find("macroTarget").attr("for"); var macroTarget = $P.$findn("macroTarget").attr("for");
if(macroTarget == ""){ return; } if(macroTarget == ""){ return; }
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_TELNO); fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_TELNO);
}); });
$P.$find("btnInsertMacro3").on("click", () => { $P.$findn("btnInsertMacro3").on("click", () => {
var macroTarget = $P.$find("macroTarget").attr("for"); var macroTarget = $P.$findn("macroTarget").attr("for");
if(macroTarget == ""){ return; } if(macroTarget == ""){ return; }
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_PIC_NM); fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_PIC_NM);
}); });
@ -777,10 +777,10 @@ $(document).ready(function(){
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); 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.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"); $(this).prop("disabled", "true");
}); });
}); });

@ -127,7 +127,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"]; var $P = pageObject["${pageName}"];
$P.toast = new bootstrap.Toast($P.find("divToast"), { $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true, animation: true,
autohide: true, autohide: true,
delay: 2000 delay: 2000
@ -158,19 +158,19 @@ $(document).ready(function(){
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
$P.renderWarningWordsList(0); $P.renderWarningWordsList(0);
$P.$find("frmEditWarningWords").find("input, textarea").val(""); $P.$findn("frmEditWarningWords").find("input, textarea").val("");
$P.searchWordsStng(); $P.searchWordsStng();
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
return data; return data;
} }
$P.searchWordsStng = () => { $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({ ajax.get({
url : $P.ctrl.urls.load, url : $P.ctrl.urls.load,
@ -193,30 +193,30 @@ $(document).ready(function(){
var warningWordsDS = $P.ctrl.dataset; var warningWordsDS = $P.ctrl.dataset;
var empty = warningWordsDS.empty; var empty = warningWordsDS.empty;
var notFound = [$P.find("warningWordsNotFound").innerHTML]; var notFound = [$P.findn("warningWordsNotFound").innerHTML];
var found = $P.find("warningWordsRow").innerHTML; var found = $P.findn("warningWordsRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickWarningWordsList('" + dataItem.getValue("LEVY_EXCL_RSN_CD") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickWarningWordsList('" + dataItem.getValue("LEVY_EXCL_RSN_CD") + "');")
.replace(/{onchange}/gi, "pageObject['${pageName}'].radioClickWarningWordsList('" + 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); 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.radioClickWarningWordsList = (dataKey, gridType) => {
$P.ctrl.dataset.setCurrent(dataKey); $P.ctrl.dataset.setCurrent(dataKey);
$P.$find("warningWordsTbody").setCurrentRow(dataKey); $P.$findn("warningWordsTbody").setCurrentRow(dataKey);
$P.changeTextarea(); $P.changeTextarea();
} }
$P.clickWarningWordsList = (dataKey, gridType) => { $P.clickWarningWordsList = (dataKey, gridType) => {
$P.$find("wrapper").find(":radio[name='gridRadio'][value='"+dataKey+"']").prop("checked",true); $P.$findn("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+"']").focus();
$P.radioClickWarningWordsList(dataKey, gridType); $P.radioClickWarningWordsList(dataKey, gridType);
@ -227,24 +227,24 @@ $(document).ready(function(){
var curData = $P.ctrl.dataset.getCurrent(); var curData = $P.ctrl.dataset.getCurrent();
if(curData == null){ if(curData == null){
$P.$find("ansRsnCd").val(""); $P.$findn("ansRsnCd").val("");
$P.$find("ansWordsId").val(""); $P.$findn("ansWordsId").val("");
$P.$find("mailTtlNm").val(""); $P.$findn("mailTtlNm").val("");
$P.$find("mailCn").val(""); $P.$findn("mailCn").val("");
return; return;
} }
$P.$find("ansRsnCd").val(curData["LEVY_EXCL_RSN_CD"]); $P.$findn("ansRsnCd").val(curData["LEVY_EXCL_RSN_CD"]);
$P.$find("ansWordsId").val(curData["ANS_WORDS_ID"]); $P.$findn("ansWordsId").val(curData["ANS_WORDS_ID"]);
$P.$find("mailTtlNm").val(curData["MAIL_TTL_NM"]); $P.$findn("mailTtlNm").val(curData["MAIL_TTL_NM"]);
$P.$find("mailCn").val(curData["MAIL_CN"]); $P.$findn("mailCn").val(curData["MAIL_CN"]);
} }
$P.refreshWarningWordsInfo = () => { $P.refreshWarningWordsInfo = () => {
var cursor = $P.ctrl.dataset.getCurrent()["LEVY_EXCL_RSN_CD"]; 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({ ajax.get({
url : $P.ctrl.urls.load, url : $P.ctrl.urls.load,
@ -266,11 +266,11 @@ $(document).ready(function(){
//적용 //적용
$P.fnSave = () => { $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({ dialog.alert({
content : "저장하시겠습니까?", content : "저장하시겠습니까?",
@ -296,19 +296,19 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * 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(); 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.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"); $(this).prop("disabled", "true");
}); });
}); });

@ -309,7 +309,7 @@
let $P = pageObject["${pageName}"]; let $P = pageObject["${pageName}"];
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmSearch")); $P.formFields = new FimsFormFields($P.selectorn("frmSearch"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -344,7 +344,7 @@
$P.renderList(obj["Total"], option); $P.renderList(obj["Total"], option);
// datasetPaging // 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; let key = item.data.LEVY_EXCL_ID;
$P.$find("tbodyList").setCurrentRow(key); $P.$findn("tbodyList").setCurrentRow(key);
} }
// 선택(체크) 변경 이벤트 // 선택(체크) 변경 이벤트
$P.ctrl.onSelectionChange = (selected) => { $P.ctrl.onSelectionChange = (selected) => {
Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("tbodyList"), 1, selected); Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("tbodyList"), 1, selected);
Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnRemove"), selected); // 삭제 버튼 Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnRemove"), selected); // 삭제 버튼
} }
// 상세정보 dialog // 상세정보 dialog
@ -425,10 +425,10 @@
$P.renderList = (totalSize, option) => { $P.renderList = (totalSize, option) => {
let dataList = $P.ctrl.dataset; let dataList = $P.ctrl.dataset;
let empty = dataList.empty; 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 // 업무별 DataTables(그리드) tr, td
let foundContent = $P.find("tmpltRows").content; let foundContent = $P.findn("tmpltRows").content;
let foundTr = $(foundContent).find("tr")[0].cloneNode(false); let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
let foundTds = $(foundContent).find("." + clsForTask + ",.cmn"); let foundTds = $(foundContent).find("." + clsForTask + ",.cmn");
@ -440,7 +440,7 @@
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("LEVY_EXCL_ID") + "');") .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") + "');"); .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); dataList.inStrings(foundTr.outerHTML, replacer);
let noMore = (dataList.length >= totalSize); let noMore = (dataList.length >= totalSize);
@ -450,10 +450,10 @@
initScroll = false; initScroll = false;
} }
$P.find("tableRspns").changeContent(trs.join(), initScroll, noMore); $P.findn("tableRspns").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제 // checkbox 체크 해제
$P.$find("gridAllCheckbox").prop("checked", false); $P.$findn("gridAllCheckbox").prop("checked", false);
// 보안모드 // 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -464,7 +464,7 @@
GRID.checkbox.sync(element, bool); GRID.checkbox.sync(element, bool);
let atLeastOne = GRID.checkbox.countChecked(element) > 0; 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); Apply.toDataset.selection($P.ctrl.dataset, element, bool);
} }
@ -473,7 +473,7 @@
$P.dataTableClick = (dataKey) => { $P.dataTableClick = (dataKey) => {
if (dataKey == "") return; if (dataKey == "") return;
$P.$find("tbodyList").setCurrentRow(dataKey); $P.$findn("tbodyList").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -523,8 +523,8 @@
**************************************************************************/ **************************************************************************/
// 사용자검색 callback // 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => { $P.callbackFindUser = (userId, userNm) => {
$P.$find("schRgtrCd").val(userId); // 사용자 ID $P.$findn("schRgtrCd").val(userId); // 사용자 ID
$P.$find("schRgtrNm").val(userNm); // 사용자 명 $P.$findn("schRgtrNm").val(userNm); // 사용자 명
} }
// 삭제사유 callback // 삭제사유 callback
@ -533,8 +533,8 @@
// 서버에 전송할 data(파라미터) 생성 // 서버에 전송할 data(파라미터) 생성
let params = { let params = {
sggCd: $P.$find("sggCd").val() // 시군구 코드 sggCd: $P.$findn("sggCd").val() // 시군구 코드
, taskSeCd: $P.$find("frmSearch").find("[name='taskSeCd']:checked").val() // 업무 구분 코드 , taskSeCd: $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val() // 업무 구분 코드
, levyExclIds: selected.join(",") // 부과 제외 IDs , levyExclIds: selected.join(",") // 부과 제외 IDs
, btnTitle: obj.btnTitle // 버튼 title , btnTitle: obj.btnTitle // 버튼 title
, delRsn: obj.reason // 삭제 사유 , delRsn: obj.reason // 삭제 사유
@ -549,10 +549,10 @@
// 초기화 버튼 이벤트 // 초기화 버튼 이벤트
$P.fnReset = (taskSeCd) => { $P.fnReset = (taskSeCd) => {
// 화면 초기화 // 화면 초기화
$P.find("frmSearch").reset(); $P.findn("frmSearch").reset();
// input, select 초기화 // 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='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val(""); searchForm.find("input[type='text']").val("");
@ -560,22 +560,22 @@
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); 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"); $(this).prop("disabled", "true");
}); });
AppSupport.initDatepicker($P.find("frmSearch")); // 달력 초기화 AppSupport.initDatepicker($P.findn("frmSearch")); // 달력 초기화
AppSupport.initDetailSearchButton($P.find("frmSearch")); // 상세검색 버튼 화살표 AppSupport.initDetailSearchButton($P.findn("frmSearch")); // 상세검색 버튼 화살표
// 기본 데이터 설정 // 기본 데이터 설정
$P.$find("sggCd").val("${sggCd}"); // 시군구 코드 $P.$findn("sggCd").val("${sggCd}"); // 시군구 코드
if (taskSeCd) { // 업무 구분 코드 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.$findn("schLevyExclYmdFrom").datepicker("setDate", DateSupport.getAddDay(-7)); // 부과 제외 일자 시작
$P.$find("schLevyExclYmdTo").datepicker("setDate", TODAY()); // 부과 제외 일자 종료 $P.$findn("schLevyExclYmdTo").datepicker("setDate", TODAY()); // 부과 제외 일자 종료
$P.$find("byOutput").val("동적 검색"); // 동적 검색 $P.$findn("byOutput").val("동적 검색"); // 동적 검색
$P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름 $P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
// dataset 초기화 // dataset 초기화
$P.ctrl.dataset.clear(); $P.ctrl.dataset.clear();
@ -595,19 +595,19 @@
$P.ctrl.urls.load = wctx.url(taskSeCd + "${infoPrefixUrl}" + "/010/list.do"); // 검색 $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 // 업무별 그리드 th
let colContent = $P.find("tmpltCols").content; let colContent = $P.findn("tmpltCols").content;
let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn"); let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn");
let colsOuterHTML = ""; let colsOuterHTML = "";
cols.each(function() { cols.each(function() {
colsOuterHTML += this.outerHTML; colsOuterHTML += this.outerHTML;
}); });
$P.find("tableRspns").changeColumn(colsOuterHTML); $P.findn("tableRspns").changeColumn(colsOuterHTML);
} }
// 사용자검색 버튼 클릭 이벤트 // 사용자검색 버튼 클릭 이벤트
@ -662,8 +662,8 @@
// DataTables(그리드) // DataTables(그리드)
$P.ctrl.query.cellDefs = $P.ctrl.query.cellDefs =
AppSupport.getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)") AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th").not(":eq(0)")
, $($P.find("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)") , $($P.findn("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")
, FimsSupport.getCellDefsForPrivacyCell); , FimsSupport.getCellDefsForPrivacyCell);
$P.ctrl.download(); $P.ctrl.download();
@ -734,27 +734,27 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 기본 버튼 이벤트 // 기본 버튼 이벤트
$P.$find("btnReset").on("click", () => { $P.fnResetAndChangeBiz() }); // 초기화 $P.$findn("btnReset").on("click", () => { $P.fnResetAndChangeBiz() }); // 초기화
$P.$find("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색 $P.$findn("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색
$P.$find("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀 $P.$findn("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀
$P.$find("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색 $P.$findn("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$P.$find("term").onEnterPress($P.fnSearchList); $P.$findn("term").onEnterPress($P.fnSearchList);
// 업무 버튼 이벤트 // 업무 버튼 이벤트
$P.$find("btnUpdate").on("click", function() { $P.$findn("btnUpdate").on("click", function() {
$P.fnUpdate($P.$find("btnUpdate").attr("title")); // 수정 $P.fnUpdate($P.$findn("btnUpdate").attr("title")); // 수정
}); });
$P.$find("btnRemove").on("click", function() { $P.$findn("btnRemove").on("click", function() {
$P.fnRemove($P.$find("btnRemove").attr("title")); // 삭제 $P.fnRemove($P.$findn("btnRemove").attr("title")); // 삭제
}); });
// DataTables width 변경 조정 // DataTables width 변경 조정
Componentization.fnMakeResizableTable($P.find("tableRspns")); Componentization.fnMakeResizableTable($P.findn("tableRspns"));
// DataTables 스크롤 이벤트 생성 // DataTables 스크롤 이벤트 생성
Componentization.fnMakeScrollableTable($P.find("tableRspns"), $P.scrollDataList); Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
} }
/************************************************************************** /**************************************************************************

@ -97,7 +97,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정) // infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}"; $P.callPurpose = "${callPurpose}";
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -127,7 +127,7 @@
// 호출용도가 등록 이라면.. // 호출용도가 등록 이라면..
if ($P.callPurpose == "create") { if ($P.callPurpose == "create") {
$P.$find("levyExclYmd").datepicker("setDate", TODAY()); $P.$findn("levyExclYmd").datepicker("setDate", TODAY());
} }
} }
@ -182,14 +182,14 @@
$P.fnSetFim021 = (seCode, rsnCode) => { $P.fnSetFim021 = (seCode, rsnCode) => {
let cmnCode = FIM021[seCode]; let cmnCode = FIM021[seCode];
$P.$find("levyExclSeCd").val(cmnCode.code); $P.$findn("levyExclSeCd").val(cmnCode.code);
$P.$find("levyExclSeNm").val(cmnCode.value); $P.$findn("levyExclSeNm").val(cmnCode.value);
let reasons = FIM022.list().filter(reason => "2" == seCode ? reason.code > "200" : reason.code < "200"); let reasons = FIM022.list().filter(reason => "2" == seCode ? reason.code > "200" : reason.code < "200");
$P.$find("levyExclRsnCd").html(reasons.map(reason => "<option value='" + reason.code + "'>" + reason.value + "</option>").join()); $P.$findn("levyExclRsnCd").html(reasons.map(reason => "<option value='" + reason.code + "'>" + reason.value + "</option>").join());
if (typeof rsnCode != "undefined" && rsnCode != "") { if (typeof rsnCode != "undefined" && rsnCode != "") {
$P.$find("levyExclRsnCd").val(rsnCode); $P.$findn("levyExclRsnCd").val(rsnCode);
} }
} }
@ -199,7 +199,7 @@
// 저장 버튼 클릭 이벤트 // 저장 버튼 클릭 이벤트
$P.fnSave = () => { $P.fnSave = () => {
// validate 확인 // 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({ dialog.alert({
content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?" content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?"
@ -214,25 +214,25 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 버튼 이벤트 // 버튼 이벤트
$P.$find("btnSave").on("click", () => { $P.fnSave() }); // 저장 $P.$findn("btnSave").on("click", () => { $P.fnSave() }); // 저장
} }
// 초기 화면 설정 // 초기 화면 설정
$P.initForm = () => { $P.initForm = () => {
// 화면 초기화 // 화면 초기화
$P.find("frmEdit").reset(); $P.findn("frmEdit").reset();
// 달력 초기화 // 달력 초기화
AppSupport.initDatepicker($P.find("frmEdit")); AppSupport.initDatepicker($P.findn("frmEdit"));
$P.$find("levyExclYmd").datepicker("setDate", TODAY()); $P.$findn("levyExclYmd").datepicker("setDate", TODAY());
// View로 호출되었을때 disabled 셋팅 // View로 호출되었을때 disabled 셋팅
if ($P.callPurpose == "view") { if ($P.callPurpose == "view") {
// input 요소들을 disabled // input 요소들을 disabled
$P.$find("frmEdit").find("input,textarea,select").prop("disabled", true); $P.$findn("frmEdit").find("input,textarea,select").prop("disabled", true);
// button 요소들을 disabled // button 요소들을 disabled
$P.$find("btnLevyExclYmd").prop("disabled", true); // 부과제외 일자 달력 버튼 $P.$findn("btnLevyExclYmd").prop("disabled", true); // 부과제외 일자 달력 버튼
$P.$find("btnSave").prop("disabled", true); // 저장 버튼 $P.$findn("btnSave").prop("disabled", true); // 저장 버튼
} }
} }

@ -358,7 +358,7 @@
let $P = pageObject["${pageName}"]; let $P = pageObject["${pageName}"];
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmSearch")); $P.formFields = new FimsFormFields($P.selectorn("frmSearch"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -395,7 +395,7 @@
$P.renderList(obj["Total"], option); $P.renderList(obj["Total"], option);
// datasetPaging // 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; let key = item.data.OPNN_ID;
$P.$find("tbodyList").setCurrentRow(key); $P.$findn("tbodyList").setCurrentRow(key);
} }
// 선택(체크) 변경 이벤트 // 선택(체크) 변경 이벤트
$P.ctrl.onSelectionChange = (selected) => { $P.ctrl.onSelectionChange = (selected) => {
Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("tbodyList"), 1, selected); Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("tbodyList"), 1, selected);
Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnRemove"), selected); // 삭제 버튼 Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnRemove"), selected); // 삭제 버튼
Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnPrintDlbrDecsn"), selected); // 심의의결서 출력 버튼 Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnPrintDlbrDecsn"), selected); // 심의의결서 출력 버튼
} }
// 상세정보 dialog // 상세정보 dialog
@ -477,10 +477,10 @@
$P.renderList = (totalSize, option) => { $P.renderList = (totalSize, option) => {
let dataList = $P.ctrl.dataset; let dataList = $P.ctrl.dataset;
let empty = dataList.empty; 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 // 업무별 DataTables(그리드) tr, td
let foundContent = $P.find("tmpltRows").content; let foundContent = $P.findn("tmpltRows").content;
let foundTr = $(foundContent).find("tr")[0].cloneNode(false); let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
let foundTds = $(foundContent).find("." + clsForTask + ",.cmn"); let foundTds = $(foundContent).find("." + clsForTask + ",.cmn");
@ -492,7 +492,7 @@
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("OPNN_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("OPNN_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("OPNN_ID") + "', '" + dataItem.getValue("CRDN_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); dataList.inStrings(foundTr.outerHTML, replacer);
let noMore = (dataList.length >= totalSize); let noMore = (dataList.length >= totalSize);
@ -502,10 +502,10 @@
initScroll = false; initScroll = false;
} }
$P.find("tableRspns").changeContent(trs.join(), initScroll, noMore); $P.findn("tableRspns").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제 // checkbox 체크 해제
$P.$find("gridAllCheckbox").prop("checked", false); $P.$findn("gridAllCheckbox").prop("checked", false);
// 보안모드 // 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -516,8 +516,8 @@
GRID.checkbox.sync(element, bool); GRID.checkbox.sync(element, bool);
let atLeastOne = GRID.checkbox.countChecked(element) > 0; let atLeastOne = GRID.checkbox.countChecked(element) > 0;
$P.$find("btnRemove").prop("disabled", !atLeastOne); // 의견제출 삭제 $P.$findn("btnRemove").prop("disabled", !atLeastOne); // 의견제출 삭제
$P.$find("btnPrintDlbrDecsn").prop("disabled", !atLeastOne); // 심의의결서 출력 $P.$findn("btnPrintDlbrDecsn").prop("disabled", !atLeastOne); // 심의의결서 출력
Apply.toDataset.selection($P.ctrl.dataset, element, bool); Apply.toDataset.selection($P.ctrl.dataset, element, bool);
} }
@ -526,7 +526,7 @@
$P.dataTableClick = (dataKey) => { $P.dataTableClick = (dataKey) => {
if (dataKey == "") return; if (dataKey == "") return;
$P.$find("tbodyList").setCurrentRow(dataKey); $P.$findn("tbodyList").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -576,8 +576,8 @@
**************************************************************************/ **************************************************************************/
// 사용자검색 callback // 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => { $P.callbackFindUser = (userId, userNm) => {
$P.$find("schRgtrCd").val(userId); // 사용자 ID $P.$findn("schRgtrCd").val(userId); // 사용자 ID
$P.$find("schRgtrNm").val(userNm); // 사용자 명 $P.$findn("schRgtrNm").val(userNm); // 사용자 명
} }
// 의견제출 심의위원 관리 // 의견제출 심의위원 관리
@ -641,8 +641,8 @@
// 서버에 전송할 data(파라미터) 생성 // 서버에 전송할 data(파라미터) 생성
let params = { let params = {
sggCd: $P.$find("sggCd").val() // 시군구 코드 sggCd: $P.$findn("sggCd").val() // 시군구 코드
, taskSeCd: $P.$find("frmSearch").find("[name='taskSeCd']:checked").val() // 업무 구분 코드 , taskSeCd: $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val() // 업무 구분 코드
, opnnIds: selected.join(",") // 의견제출 IDs , opnnIds: selected.join(",") // 의견제출 IDs
, btnTitle: obj.btnTitle // 버튼 title , btnTitle: obj.btnTitle // 버튼 title
, delRsn: obj.reason // 삭제 사유 , delRsn: obj.reason // 삭제 사유
@ -671,10 +671,10 @@
// 초기화 버튼 이벤트 // 초기화 버튼 이벤트
$P.fnReset = (taskSeCd) => { $P.fnReset = (taskSeCd) => {
// 화면 초기화 // 화면 초기화
$P.find("frmSearch").reset(); $P.findn("frmSearch").reset();
// input, select 초기화 // 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='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val(""); searchForm.find("input[type='text']").val("");
@ -682,22 +682,22 @@
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); 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"); $(this).prop("disabled", "true");
}); });
AppSupport.initDatepicker($P.find("frmSearch")); // 달력 초기화 AppSupport.initDatepicker($P.findn("frmSearch")); // 달력 초기화
AppSupport.initDetailSearchButton($P.find("frmSearch")); // 상세검색 버튼 화살표 AppSupport.initDetailSearchButton($P.findn("frmSearch")); // 상세검색 버튼 화살표
// 기본 데이터 설정 // 기본 데이터 설정
$P.$find("sggCd").val("${sggCd}"); // 시군구 코드 $P.$findn("sggCd").val("${sggCd}"); // 시군구 코드
if (taskSeCd) { // 업무 구분 코드 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.$findn("schRcptYmdFrom").datepicker('setDate', DateSupport.getAddDay(-7)); // 부과 제외 일자 시작
$P.$find("schRcptYmdTo").datepicker('setDate', TODAY()); // 부과 제외 일자 종료 $P.$findn("schRcptYmdTo").datepicker('setDate', TODAY()); // 부과 제외 일자 종료
$P.$find("byOutput").val("동적 검색"); // 동적 검색 $P.$findn("byOutput").val("동적 검색"); // 동적 검색
$P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름 $P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
// dataset 초기화 // dataset 초기화
$P.ctrl.dataset.clear(); $P.ctrl.dataset.clear();
@ -717,19 +717,19 @@
$P.ctrl.urls.load = wctx.url(taskSeCd + "${infoPrefixUrl}" + "/010/list.do"); // 검색 $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 // 업무별 그리드 th
let colContent = $P.find("tmpltCols").content; let colContent = $P.findn("tmpltCols").content;
let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn"); let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn");
let colsOuterHTML = ""; let colsOuterHTML = "";
cols.each(function() { cols.each(function() {
colsOuterHTML += this.outerHTML; colsOuterHTML += this.outerHTML;
}); });
$P.find("tableRspns").changeColumn(colsOuterHTML); $P.findn("tableRspns").changeColumn(colsOuterHTML);
} }
// 사용자검색 버튼 클릭 이벤트 // 사용자검색 버튼 클릭 이벤트
@ -784,8 +784,8 @@
// DataTables(그리드) // DataTables(그리드)
$P.ctrl.query.cellDefs = $P.ctrl.query.cellDefs =
AppSupport.getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)") AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th").not(":eq(0)")
, $($P.find("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)") , $($P.findn("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")
, FimsSupport.getCellDefsForPrivacyCell); , FimsSupport.getCellDefsForPrivacyCell);
$P.ctrl.download(); $P.ctrl.download();
@ -797,8 +797,8 @@
let params = { let params = {
btnTitle: btnTitle // 버튼 title btnTitle: btnTitle // 버튼 title
, callPurpose: "update" // 호출용도: 수정 , callPurpose: "update" // 호출용도: 수정
, sggCd: $P.$find("sggCd").val() // 시군구 코드 , sggCd: $P.$findn("sggCd").val() // 시군구 코드
, taskSeCd: $P.$find("frmSearch").find("[name='taskSeCd']:checked").val() // 업무 구분 코드 , taskSeCd: $P.$findn("frmSearch").find("[name='taskSeCd']:checked").val() // 업무 구분 코드
}; };
$P.opnnSbmsnDlbrMbr(params); $P.opnnSbmsnDlbrMbr(params);
@ -911,36 +911,36 @@
// 이벤트 // 이벤트
$P.setEvent = () => { $P.setEvent = () => {
// 기본 버튼 이벤트 // 기본 버튼 이벤트
$P.$find("btnReset").on("click", () => $P.fnResetAndChangeBiz()); // 초기화 $P.$findn("btnReset").on("click", () => $P.fnResetAndChangeBiz()); // 초기화
$P.$find("btnSearch").on("click", () => $P.fnSearchList()); // 검색 $P.$findn("btnSearch").on("click", () => $P.fnSearchList()); // 검색
$P.$find("btnExcel").on("click", () => $P.fnExcel()); // 엑셀 $P.$findn("btnExcel").on("click", () => $P.fnExcel()); // 엑셀
$P.$find("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색 $P.$findn("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(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.fnDlbrMbr($(this).attr("title")); // 심의위원 관리
}); });
$P.$find("btnUpdate").on("click", function() { $P.$findn("btnUpdate").on("click", function() {
$P.fnUpdate($(this).attr("title")); // 의견제출 수정 $P.fnUpdate($(this).attr("title")); // 의견제출 수정
}); });
$P.$find("btnUpdateDlbr").on("click", function() { $P.$findn("btnUpdateDlbr").on("click", function() {
$P.fnUpdateDlbr($(this).attr("title")); // 의견제출 심의 $P.fnUpdateDlbr($(this).attr("title")); // 의견제출 심의
}); });
$P.$find("btnRemove").on("click", function() { $P.$findn("btnRemove").on("click", function() {
$P.fnRemove($(this).attr("title")); // 의견제출 삭제 $P.fnRemove($(this).attr("title")); // 의견제출 삭제
}); });
$P.$find("btnPrintDlbrDecsn").on("click", function() { $P.$findn("btnPrintDlbrDecsn").on("click", function() {
$P.fnPrintDlbrDecsn($(this).attr("title")); // 심의의결서 출력 $P.fnPrintDlbrDecsn($(this).attr("title")); // 심의의결서 출력
}); });
// DataTables width 변경 조정 // DataTables width 변경 조정
Componentization.fnMakeResizableTable($P.find("tableRspns")); Componentization.fnMakeResizableTable($P.findn("tableRspns"));
// DataTables 스크롤 이벤트 생성 // DataTables 스크롤 이벤트 생성
Componentization.fnMakeScrollableTable($P.find("tableRspns"), $P.scrollDataList); Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
} }
/************************************************************************** /**************************************************************************

@ -192,7 +192,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정) // infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}"; $P.callPurpose = "${callPurpose}";
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
// 파일 리스트 // 파일 리스트
$P.fileListArr = new Array(); $P.fileListArr = new Array();
@ -223,7 +223,7 @@
// 호출용도가 등록.. // 호출용도가 등록..
if ($P.callPurpose == "create") { if ($P.callPurpose == "create") {
$P.$find("rcptYmd").datepicker("setDate", TODAY()); $P.$findn("rcptYmd").datepicker("setDate", TODAY());
} else { } else {
// 첨부파일 조회 // 첨부파일 조회
if (key != null) { $P.fnSearchFileList(key); } if (key != null) { $P.fnSearchFileList(key); }
@ -243,7 +243,7 @@
, onClose: () => { , onClose: () => {
if (resp.saved) { if (resp.saved) {
// 폼을 리셋해서 uploadFiles에 출력된 선택 파일을 초기화시킨다. // 폼을 리셋해서 uploadFiles에 출력된 선택 파일을 초기화시킨다.
$P.find("frmFile").reset(); $P.findn("frmFile").reset();
dialog.close($P.selfDlgId()); dialog.close($P.selfDlgId());
} }
@ -287,9 +287,9 @@
// 주소 검색 결과 callback // 주소 검색 결과 callback
$P.callbackSearchAddr = (obj) => { $P.callbackSearchAddr = (obj) => {
$P.$find("sttrAddr").val(obj.ADDR); // 주소 $P.$findn("sttrAddr").val(obj.ADDR); // 주소
$P.$find("sttrZip").val(obj.ZIP); // 우편번호 $P.$findn("sttrZip").val(obj.ZIP); // 우편번호
$P.$find("sttrDaddr").val(obj.DTL_ADDR); // 상세 주소 $P.$findn("sttrDaddr").val(obj.DTL_ADDR); // 상세 주소
} }
/************************************************************************** /**************************************************************************
@ -297,19 +297,19 @@
**************************************************************************/ **************************************************************************/
// 납부자 정보를 진술자 정보로 입력한다. // 납부자 정보를 진술자 정보로 입력한다.
$P.fnSearchPayer = (btnTitle) => { $P.fnSearchPayer = (btnTitle) => {
$P.$find("frmEdit").find("[name='ownrRelCd'] option:contains('본인')").prop("selected", true); $P.$findn("frmEdit").find("[name='ownrRelCd'] option:contains('본인')").prop("selected", true);
$P.$find("sttrNm").val($P.ctrl.getValue("RTPYR_NM")); $P.$findn("sttrNm").val($P.ctrl.getValue("RTPYR_NM"));
$P.$find("sttrBrdt").val($P.ctrl.getValue("RTPYR_BRDT")); $P.$findn("sttrBrdt").val($P.ctrl.getValue("RTPYR_BRDT"));
$P.$find("sttrAddr").val($P.ctrl.getValue("ADDR")); $P.$findn("sttrAddr").val($P.ctrl.getValue("ADDR"));
$P.$find("sttrZip").val($P.ctrl.getValue("ZIP")); $P.$findn("sttrZip").val($P.ctrl.getValue("ZIP"));
$P.$find("sttrDaddr").val($P.ctrl.getValue("DTL_ADDR")); $P.$findn("sttrDaddr").val($P.ctrl.getValue("DTL_ADDR"));
if ($P.ctrl.getValue("RTPYR_MBL_TELNO") != "") 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 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) => { $P.fnSearchFileList = (opnnId) => {
let tableFileList = $P.find("fileList"); // table element 찾기 let tableFileList = $P.findn("fileList"); // table element 찾기
let fileLength = tableFileList.rows.length; let fileLength = tableFileList.rows.length;
// 기존 table에 자료가 존재하면 tableRow 삭제 // 기존 table에 자료가 존재하면 tableRow 삭제
@ -370,7 +370,7 @@
innerHtml += "pageObject['${pageName}'].fnFileRemove(this);" + "><i class='bx bx-trash me-1'></i></button>" + "</td>"; innerHtml += "pageObject['${pageName}'].fnFileRemove(this);" + "><i class='bx bx-trash me-1'></i></button>" + "</td>";
innerHtml += "</tr>"; innerHtml += "</tr>";
$P.$find("tbodyFileList").append(innerHtml); $P.$findn("tbodyFileList").append(innerHtml);
}); });
} }
}); });
@ -378,7 +378,7 @@
// 첨부파일 등록 // 첨부파일 등록
$P.fnAddFiles = (obj) => { $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 fileNo = tableFileList.rows.length - 1; // table에 있는 파일 갯수 (첫번째 title은 제외하기 위해서 -1 처리)
let maxFileCnt = 3; // 의견제출에 등록 할 수 있는 첨부 파일 최대 개수 let maxFileCnt = 3; // 의견제출에 등록 할 수 있는 첨부 파일 최대 개수
let attFileCnt = obj.files.length; // 선택한 파일의 개수 let attFileCnt = obj.files.length; // 선택한 파일의 개수
@ -413,7 +413,7 @@
innerHtml += "pageObject['${pageName}'].fnFileRemove(this);" + "><i class='bx bx-trash me-1'></i></button>" + "</td>"; innerHtml += "pageObject['${pageName}'].fnFileRemove(this);" + "><i class='bx bx-trash me-1'></i></button>" + "</td>";
innerHtml += "</tr>"; innerHtml += "</tr>";
$P.$find("tbodyFileList").append(innerHtml); $P.$findn("tbodyFileList").append(innerHtml);
fileArr.push(obj.files[iLoop]); fileArr.push(obj.files[iLoop]);
} }
@ -456,7 +456,7 @@
// 저장 // 저장
$P.fnSave = () => { $P.fnSave = () => {
// validate 확인 // 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({ dialog.alert({
content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?" content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?"
@ -471,37 +471,37 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 버튼 이벤트 // 버튼 이벤트
$P.$find("btnSearchPayer").on("click", function() { $P.$findn("btnSearchPayer").on("click", function() {
$P.fnSearchPayer($(this).attr("title")); // 납부자 정보 조회 버튼 이벤트 $P.fnSearchPayer($(this).attr("title")); // 납부자 정보 조회 버튼 이벤트
}); });
$P.$find("btnSearchAddr").on("click", function() { $P.$findn("btnSearchAddr").on("click", function() {
$P.fnSearchAddr($(this).attr("title")); // 주소 검색 버튼 이벤트 $P.fnSearchAddr($(this).attr("title")); // 주소 검색 버튼 이벤트
}); });
$P.$find("btnAddFile").on("click", () => $P.$find("uploadFiles").trigger("click")); // 파일 등록 버튼 이벤트 $P.$findn("btnAddFile").on("click", () => $P.$findn("uploadFiles").trigger("click")); // 파일 등록 버튼 이벤트
$P.$find("btnSave").on("click", () => { $P.fnSave() }); // 저장 $P.$findn("btnSave").on("click", () => { $P.fnSave() }); // 저장
} }
// 초기 화면 설정 // 초기 화면 설정
$P.initForm = () => { $P.initForm = () => {
// 화면 초기화 // 화면 초기화
$P.find("frmEdit").reset(); $P.findn("frmEdit").reset();
// 달력 초기화 // 달력 초기화
AppSupport.initDatepicker($P.find("frmEdit")); AppSupport.initDatepicker($P.findn("frmEdit"));
$P.$find("rcptYmd").datepicker("setDate", TODAY()); $P.$findn("rcptYmd").datepicker("setDate", TODAY());
// View로 호출되었을때 disabled 셋팅 // View로 호출되었을때 disabled 셋팅
if ($P.callPurpose == "view") { if ($P.callPurpose == "view") {
// input 요소들을 disabled // input 요소들을 disabled
$P.$find("frmEdit").find("input,textarea,select").prop("disabled", true); $P.$findn("frmEdit").find("input,textarea,select").prop("disabled", true);
// button 요소들을 disabled // button 요소들을 disabled
$P.$find("btnRcptYmd").prop("disabled", true); // 접수 일자 달력 버튼 $P.$findn("btnRcptYmd").prop("disabled", true); // 접수 일자 달력 버튼
$P.$find("btnSearchPayer").prop("disabled", true); // 납부자 버튼 $P.$findn("btnSearchPayer").prop("disabled", true); // 납부자 버튼
$P.$find("btnSearchAddr").prop("disabled", true); // 우편번호 버튼 $P.$findn("btnSearchAddr").prop("disabled", true); // 우편번호 버튼
$P.$find("btnAddFile").prop("disabled", true); // 파일 추가 버튼 $P.$findn("btnAddFile").prop("disabled", true); // 파일 추가 버튼
$P.$find("btnSave").prop("disabled", true); // 저장 버튼 $P.$findn("btnSave").prop("disabled", true); // 저장 버튼
} else if ($P.callPurpose == "create") { } else if ($P.callPurpose == "create") {
$P.$find("rcptNo").prop("readonly", true); // 접수 번호 $P.$findn("rcptNo").prop("readonly", true); // 접수 번호
} }
} }

@ -138,7 +138,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정) // infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}"; $P.callPurpose = "${callPurpose}";
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -171,8 +171,8 @@
// 답변 일자가 없다면.. // 답변 일자가 없다면..
if (item.data.ANS_YMD == null || item.data.ANS_YMD == "") { if (item.data.ANS_YMD == null || item.data.ANS_YMD == "") {
$P.$find("ansYmd").datepicker("setDate", TODAY()); // 날짜 $P.$findn("ansYmd").datepicker("setDate", TODAY()); // 날짜
$P.$find("ansTm").val(new Date().toTimeString().split(" ")[0]); // 시간 "09:51:35 GMT+0900 (한국 표준시)"의 형식에서 공백을 기준으로 잘라 시간 부분만 가져와줍니다. $P.$findn("ansTm").val(new Date().toTimeString().split(" ")[0]); // 시간 "09:51:35 GMT+0900 (한국 표준시)"의 형식에서 공백을 기준으로 잘라 시간 부분만 가져와줍니다.
} }
} }
@ -216,17 +216,17 @@
// javascript를 이용한 visibility 변경 (이 방법을 사용하는 경우, 안에 있는 요소들이 보이지않지만 그 요소들이 할당 하고 있는 공간은 그대로 유지(공백처리)) // javascript를 이용한 visibility 변경 (이 방법을 사용하는 경우, 안에 있는 요소들이 보이지않지만 그 요소들이 할당 하고 있는 공간은 그대로 유지(공백처리))
// document.getElementById("divRdctRsnCd--${pageName}").style.visibility = "hidden"; // document.getElementById("divRdctRsnCd--${pageName}").style.visibility = "hidden";
// document.getElementById("divRdctRsnCd--${pageName}").style.visibility = "visible"; // document.getElementById("divRdctRsnCd--${pageName}").style.visibility = "visible";
$P.$find("divRdctRsnCd").hide(); $P.$findn("divRdctRsnCd").hide();
$P.$find("divRdctAmt").hide(); $P.$findn("divRdctAmt").hide();
$P.$find("rdctRsnCd").attr("required", false); $P.$findn("rdctRsnCd").attr("required", false);
$P.$find("rdctAmt").attr("required", false); $P.$findn("rdctAmt").attr("required", false);
if (obj == "04") { // 의견제출 상태 코드(FIM031) 04: 과태료감경 if (obj == "04") { // 의견제출 상태 코드(FIM031) 04: 과태료감경
// 필수 선택 추가 필요 // 필수 선택 추가 필요
$P.$find("divRdctRsnCd").show(); $P.$findn("divRdctRsnCd").show();
$P.$find("divRdctAmt").show(); $P.$findn("divRdctAmt").show();
$P.$find("rdctRsnCd").attr("required", true); $P.$findn("rdctRsnCd").attr("required", true);
$P.$find("rdctAmt").attr("required", true); $P.$findn("rdctAmt").attr("required", true);
} }
} }
@ -236,13 +236,13 @@
// 저장 // 저장
$P.fnSave = () => { $P.fnSave = () => {
// validate 확인 // 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 rdctRsnCd = $P.$findn("rdctRsnCd").find("option:selected").val();
let rdctRsnNm = $P.$find("rdctRsnCd").find("option:selected").text(); let rdctRsnNm = $P.$findn("rdctRsnCd").find("option:selected").text();
if (opnnSbmsnSttsCd == "04" && rdctRsnCd == "00") { if (opnnSbmsnSttsCd == "04" && rdctRsnCd == "00") {
dialog.alert({ dialog.alert({
@ -268,7 +268,7 @@
$P.setEvent = () => { $P.setEvent = () => {
/* /*
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용 // form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용
$P.$find("frmEdit").find(".form-date").each(function() { $P.$findn("frmEdit").find(".form-date").each(function() {
$(this).on("input", function() { $(this).on("input", function() {
let value = this.value.replaceAll("-", ""); let value = this.value.replaceAll("-", "");
@ -280,7 +280,7 @@
}); });
}); });
// form-time 항목에서 키보드로 입력시 시간 포맷팅 적용 // form-time 항목에서 키보드로 입력시 시간 포맷팅 적용
$P.$find("frmEdit").find(".form-time").each(function() { $P.$findn("frmEdit").find(".form-time").each(function() {
$(this).on("input", function() { $(this).on("input", function() {
let value = this.value.replaceAll(":", ""); 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.initForm = () => {
// 화면 초기화 // 화면 초기화
$P.find("frmEdit").reset(); $P.findn("frmEdit").reset();
// 달력 초기화 // 달력 초기화
AppSupport.initDatepicker($P.find("frmEdit")); AppSupport.initDatepicker($P.findn("frmEdit"));
$P.$find("ansYmd").datepicker("setDate", TODAY()); $P.$findn("ansYmd").datepicker("setDate", TODAY());
$P.$find("ansTm").val(new Date().toTimeString().split(" ")[0]); $P.$findn("ansTm").val(new Date().toTimeString().split(" ")[0]);
// view 로 호출됐을 경우.. // view 로 호출됐을 경우..
if ($P.callPurpose == "view") { if ($P.callPurpose == "view") {
// input 요소들을 disabled // input 요소들을 disabled
$P.$find("frmEdit").find("input,textarea,select").prop("disabled", true); $P.$findn("frmEdit").find("input,textarea,select").prop("disabled", true);
// button 요소들을 disabled // button 요소들을 disabled
$P.$find("btnAnsYmd").prop("disabled", true); // 답변 일자 달력 버튼 $P.$findn("btnAnsYmd").prop("disabled", true); // 답변 일자 달력 버튼
$P.$find("btnSave").prop("disabled", true); // 저장 버튼 $P.$findn("btnSave").prop("disabled", true); // 저장 버튼
} }
} }

@ -129,7 +129,7 @@
let $P = pageObject["${pageName}"]; let $P = pageObject["${pageName}"];
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -199,7 +199,7 @@
// 저장 // 저장
$P.fnSave = () => { $P.fnSave = () => {
// validate 확인 // 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({ dialog.alert({
content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?" content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?"
@ -214,13 +214,13 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 버튼 이벤트 // 버튼 이벤트
$P.$find("btnSave").on("click", () => { $P.fnSave() }); // 저장 $P.$findn("btnSave").on("click", () => { $P.fnSave() }); // 저장
} }
// 초기 화면 설정 // 초기 화면 설정
$P.initForm = () => { $P.initForm = () => {
// 화면 초기화 // 화면 초기화
$P.find("frmEdit").reset(); $P.findn("frmEdit").reset();
} }
/************************************************************************** /**************************************************************************

@ -272,7 +272,7 @@
let $P = pageObject["${pageName}"]; let $P = pageObject["${pageName}"];
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmSearch")); $P.formFields = new FimsFormFields($P.selectorn("frmSearch"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -305,7 +305,7 @@
$P.renderList(obj["Total"], option); $P.renderList(obj["Total"], option);
// datasetPaging // 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; 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) => { $P.renderList = (totalSize, option) => {
let dataList = $P.ctrl.dataset; let dataList = $P.ctrl.dataset;
let empty = dataList.empty; 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 // 업무별 DataTables(그리드) tr, td
let foundContent = $P.find("tmpltRows").content; let foundContent = $P.findn("tmpltRows").content;
let foundTr = $(foundContent).find("tr")[0].cloneNode(false); let foundTr = $(foundContent).find("tr")[0].cloneNode(false);
let foundTds = $(foundContent).find("." + clsForTask + ",.cmn"); let foundTds = $(foundContent).find("." + clsForTask + ",.cmn");
@ -339,7 +339,7 @@
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("RE_REG_ID") + "');") .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") + "');"); .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); dataList.inStrings(foundTr.outerHTML, replacer);
let noMore = (dataList.length >= totalSize); let noMore = (dataList.length >= totalSize);
@ -349,7 +349,7 @@
initScroll = false; initScroll = false;
} }
$P.find("tableRspns").changeContent(trs.join(), initScroll, noMore); $P.findn("tableRspns").changeContent(trs.join(), initScroll, noMore);
// 보안모드 // 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -359,7 +359,7 @@
$P.dataTableClick = (dataKey) => { $P.dataTableClick = (dataKey) => {
if (!dataKey) return; if (!dataKey) return;
$P.$find("tbodyList").setCurrentRow(dataKey); $P.$findn("tbodyList").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -416,8 +416,8 @@
**************************************************************************/ **************************************************************************/
// 사용자검색 callback // 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => { $P.callbackFindUser = (userId, userNm) => {
$P.$find("schRgtrCd").val(userId); // 사용자 ID $P.$findn("schRgtrCd").val(userId); // 사용자 ID
$P.$find("schRgtrNm").val(userNm); // 사용자 명 $P.$findn("schRgtrNm").val(userNm); // 사용자 명
} }
/************************************************************************** /**************************************************************************
@ -426,10 +426,10 @@
// 초기화 버튼 이벤트 // 초기화 버튼 이벤트
$P.fnReset = (taskSeCd) => { $P.fnReset = (taskSeCd) => {
// 화면 초기화 // 화면 초기화
$P.find("frmSearch").reset(); $P.findn("frmSearch").reset();
// input, select 초기화 // 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='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='text']").val(""); searchForm.find("input[type='text']").val("");
@ -437,22 +437,22 @@
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); 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"); $(this).prop("disabled", "true");
}); });
AppSupport.initDatepicker($P.find("frmSearch")); // 달력 초기화 AppSupport.initDatepicker($P.findn("frmSearch")); // 달력 초기화
AppSupport.initDetailSearchButton($P.find("frmSearch")); // 상세검색 버튼 화살표 AppSupport.initDetailSearchButton($P.findn("frmSearch")); // 상세검색 버튼 화살표
// 기본 데이터 설정 // 기본 데이터 설정
$P.$find("sggCd").val("${sggCd}"); // 시군구 코드 $P.$findn("sggCd").val("${sggCd}"); // 시군구 코드
if (taskSeCd) { // 업무 구분 코드 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.$findn("schReRegYmdFrom").datepicker("setDate", DateSupport.getAddDay(-7)); // 부과 제외 일자 시작
$P.$find("schReRegYmdTo").datepicker("setDate", TODAY()); // 부과 제외 일자 종료 $P.$findn("schReRegYmdTo").datepicker("setDate", TODAY()); // 부과 제외 일자 종료
$P.$find("byOutput").val("동적 검색"); // 동적 검색 $P.$findn("byOutput").val("동적 검색"); // 동적 검색
$P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름 $P.$findn("schRgtrNm").prop("readonly", true); // 사용자 이름
// dataset 초기화 // dataset 초기화
$P.ctrl.dataset.clear(); $P.ctrl.dataset.clear();
@ -472,19 +472,19 @@
$P.ctrl.urls.load = wctx.url(taskSeCd + "${infoPrefixUrl}" + "/010/list.do"); // 검색 $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 // 업무별 그리드 th
let colContent = $P.find("tmpltCols").content; let colContent = $P.findn("tmpltCols").content;
let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn"); let cols = $(colContent).find("." + taskSeCd.toLowerCase() + ",.cmn");
let colsOuterHTML = ""; let colsOuterHTML = "";
cols.each(function() { cols.each(function() {
colsOuterHTML += this.outerHTML; colsOuterHTML += this.outerHTML;
}); });
$P.find("tableRspns").changeColumn(colsOuterHTML); $P.findn("tableRspns").changeColumn(colsOuterHTML);
} }
// 사용자검색 버튼 클릭 이벤트 // 사용자검색 버튼 클릭 이벤트
@ -539,8 +539,8 @@
// DataTables(그리드) // DataTables(그리드)
$P.ctrl.query.cellDefs = $P.ctrl.query.cellDefs =
AppSupport.getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)") AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th").not(":eq(0)")
, $($P.find("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)") , $($P.findn("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")
, FimsSupport.getCellDefsForPrivacyCell); , FimsSupport.getCellDefsForPrivacyCell);
$P.ctrl.download(); $P.ctrl.download();
@ -563,24 +563,24 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 기본 버튼 이벤트 // 기본 버튼 이벤트
$P.$find("btnReset").on("click", () => { $P.fnResetAndChangeBiz() }); // 초기화 $P.$findn("btnReset").on("click", () => { $P.fnResetAndChangeBiz() }); // 초기화
$P.$find("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색 $P.$findn("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색
$P.$find("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀 $P.$findn("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀
$P.$find("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색 $P.$findn("btnFindUser").on("click", () => $P.fnGetFindUser()); // 사용자 검색
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$P.$find("term").onEnterPress($P.fnSearchList); $P.$findn("term").onEnterPress($P.fnSearchList);
// 업무 버튼 이벤트 // 업무 버튼 이벤트
$P.$find("btnBfrCrdnTotalInfo").on("click", function() { $P.$findn("btnBfrCrdnTotalInfo").on("click", function() {
$P.fnBfrCrdnTotalInfo($P.$find("btnBfrCrdnTotalInfo").attr("title")); // 이전 단속 정보 $P.fnBfrCrdnTotalInfo($P.$findn("btnBfrCrdnTotalInfo").attr("title")); // 이전 단속 정보
}); });
// DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고
Componentization.fnMakeResizableTable($P.find("tableRspns")); Componentization.fnMakeResizableTable($P.findn("tableRspns"));
// DataTables 스크롤 이벤트 생성 // DataTables 스크롤 이벤트 생성
Componentization.fnMakeScrollableTable($P.find("tableRspns"), $P.scrollDataList); Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
} }
/************************************************************************** /**************************************************************************

@ -115,7 +115,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"]; var $P = pageObject["${pageName}"];
$P.toast = new bootstrap.Toast($P.find("divToast"), { $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true, animation: true,
autohide: true, autohide: true,
delay: 2000 delay: 2000
@ -149,11 +149,11 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderNtcList(obj["Total"], $P.ctrl.dataset.length, trs, option); $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) => { $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) => { $P.ctrl.dataset.onSelectionChange = (selectedArr) => {
@ -164,7 +164,7 @@ $(document).ready(function(){
* pageObject.function * pageObject.function
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $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='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
@ -176,7 +176,7 @@ $(document).ready(function(){
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize; data.fetchSize = $P.ctrl.defaultFetchSize;
@ -201,8 +201,8 @@ $(document).ready(function(){
} }
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$P.find("ntcNotFound").innerHTML]; var notFound = [$P.findn("ntcNotFound").innerHTML];
var found = $P.find("ntcRow").innerHTML; var found = $P.findn("ntcRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickNtcList('" + dataItem.getValue("NTC_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickNtcList('" + dataItem.getValue("NTC_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickNtcList('" + dataItem.getValue("NTC_ID") + "');"); .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickNtcList('" + dataItem.getValue("NTC_ID") + "');");
@ -222,7 +222,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs, initScroll, noMore); $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드 fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
@ -233,7 +233,7 @@ $(document).ready(function(){
return; return;
} }
$P.$find("ntcTbody").setCurrentRow(dataKey); $P.$findn("ntcTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -297,21 +297,21 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on('click', () => $P.searchNtcList()); $P.$findn("btnSearch").on('click', () => $P.searchNtcList());
$P.$find("btnAdd").on('click', () => $P.createNtc()); $P.$findn("btnAdd").on('click', () => $P.createNtc());
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
Componentization.fnMakeResizableTable($P.find("table-responsive")); Componentization.fnMakeResizableTable($P.findn("table-responsive"));
Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollNtcList); Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollNtcList);
$P.fnReset(); $P.fnReset();
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드 fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
if(MY_INFO.institute != "ADMIN00"){ if(MY_INFO.institute != "ADMIN00"){
$P.$find("btnAdd").attr("hidden","hidden"); $P.$findn("btnAdd").attr("hidden","hidden");
} }
}); });

@ -83,7 +83,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* DatasetControl, Dataset, FormFields * DatasetControl, Dataset, FormFields
**************************************************************************/ **************************************************************************/
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({ $P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : true, dataGetter : obj => obj["List"], appendData : true,
@ -113,7 +113,7 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$P.fnSave = () => { $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(); var info = $P.formFields.get();
@ -156,8 +156,8 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnSave").on('click', () => $P.fnSave()); $P.$findn("btnSave").on('click', () => $P.fnSave());
$P.$find("btnRemove").on('click', () => $P.fnRemove()); $P.$findn("btnRemove").on('click', () => $P.fnRemove());
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
@ -166,14 +166,14 @@ $(document).ready(function(){
if(ntcInfo == null){ if(ntcInfo == null){
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
$P.$find("btnRemove").attr("hidden","hidden"); $P.$findn("btnRemove").attr("hidden","hidden");
} else { } else {
$P.ctrl.dataset.setData([ntcInfo]); $P.ctrl.dataset.setData([ntcInfo]);
$P.$find("sggCd").attr("disabled","disabled"); $P.$findn("sggCd").attr("disabled","disabled");
if(MY_INFO.institute != "ADMIN00"){ if(MY_INFO.institute != "ADMIN00"){
$P.$find("btnSave").attr("hidden","hidden"); $P.$findn("btnSave").attr("hidden","hidden");
$P.$find("btnRemove").attr("hidden","hidden"); $P.$findn("btnRemove").attr("hidden","hidden");
} }
} }

@ -23,7 +23,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"]; var $P = pageObject["${pageName}"];
$P.calendar = new Calendar($P.find("calendar"), { $P.calendar = new Calendar($P.findn("calendar"), {
initialView: 'dayGridMonth', initialView: 'dayGridMonth',
plugins : [dayGridPlugin, interactionPlugin], plugins : [dayGridPlugin, interactionPlugin],
locale: 'ko', locale: 'ko',

@ -78,7 +78,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* DatasetControl, Dataset, FormFields * DatasetControl, Dataset, FormFields
**************************************************************************/ **************************************************************************/
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({ $P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : false, dataGetter : obj => obj["List"], appendData : false,
@ -108,7 +108,7 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$P.fnSave = () => { $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(); var info = $P.formFields.get();
@ -117,7 +117,7 @@ $(document).ready(function(){
return; return;
} }
var create = ($P.$find("schdlId").val() == ""); var create = ($P.$findn("schdlId").val() == "");
if(create){ if(create){
ajax.post({ ajax.post({
url : $P.ctrl.urls.create, url : $P.ctrl.urls.create,
@ -191,13 +191,13 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnSave").on('click', () => $P.fnSave()); $P.$findn("btnSave").on('click', () => $P.fnSave());
$P.$find("btnRemove").on('click', () => $P.fnRemove()); $P.$findn("btnRemove").on('click', () => $P.fnRemove());
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
AppSupport.initDatepicker($P.find("frmEdit")); //달력 초기화 AppSupport.initDatepicker($P.findn("frmEdit")); //달력 초기화
var schdlInfo = ${schdlInfo}; var schdlInfo = ${schdlInfo};
if(schdlInfo != null){ if(schdlInfo != null){
@ -206,7 +206,7 @@ $(document).ready(function(){
$P.ctrl.dataset.setData([{ SCHDL_BGNG_YMD : "${schdlBgngYmd}", SCHDL_END_YMD : "${schdlEndYmd}" }]); $P.ctrl.dataset.setData([{ SCHDL_BGNG_YMD : "${schdlBgngYmd}", SCHDL_END_YMD : "${schdlEndYmd}" }]);
$P.$find("btnRemove").attr("hidden","hidden"); $P.$findn("btnRemove").attr("hidden","hidden");
} }
}); });

@ -269,28 +269,28 @@ $(document).ready(function(){
success : function(resp, textStatus, jqXHR) { success : function(resp, textStatus, jqXHR) {
$P.sggInfo = resp.sggInfo; $P.sggInfo = resp.sggInfo;
$P.$find("mainForm").find("[name='sggID']").val($P.sggInfo.SGG_CD); $P.$findn("mainForm").find("[name='sggID']").val($P.sggInfo.SGG_CD);
$P.$find("mainForm").find("[name='sggNm']").val($P.sggInfo.SGG_NM); $P.$findn("mainForm").find("[name='sggNm']").val($P.sggInfo.SGG_NM);
$P.$find("mainForm").find("[name='instCd']").val($P.sggInfo.INST_CD); $P.$findn("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='instNm']").val($P.sggInfo.INST_NM);
$P.$find("offcsImage") $P.$findn("offcsImage")
.attr("data-orgn-name", $P.sggInfo.OFFCS_FILE_NM) .attr("data-orgn-name", $P.sggInfo.OFFCS_FILE_NM)
.attr("data-orgn-path", $P.sggInfo.OFFCS_FILE_PATH); .attr("data-orgn-path", $P.sggInfo.OFFCS_FILE_PATH);
$P.$find("offcs").val(""); $P.$findn("offcs").val("");
$P.$find("offcs").trigger("change"); $P.$findn("offcs").trigger("change");
$P.$find("symbolImage") $P.$findn("symbolImage")
.attr("data-orgn-name", $P.sggInfo.SYMBOL_FILE_NM) .attr("data-orgn-name", $P.sggInfo.SYMBOL_FILE_NM)
.attr("data-orgn-path", $P.sggInfo.SYMBOL_FILE_PATH); .attr("data-orgn-path", $P.sggInfo.SYMBOL_FILE_PATH);
$P.$find("symbol").val(""); $P.$findn("symbol").val("");
$P.$find("symbol").trigger("change"); $P.$findn("symbol").trigger("change");
$P.$find("logoImage") $P.$findn("logoImage")
.attr("data-orgn-name", $P.sggInfo.LOGO_FILE_NM) .attr("data-orgn-name", $P.sggInfo.LOGO_FILE_NM)
.attr("data-orgn-path", $P.sggInfo.LOGO_FILE_PATH); .attr("data-orgn-path", $P.sggInfo.LOGO_FILE_PATH);
$P.$find("logo").val(""); $P.$findn("logo").val("");
$P.$find("logo").trigger("change"); $P.$findn("logo").trigger("change");
resolve({resp, textStatus, jqXHR}); resolve({resp, textStatus, jqXHR});
}, },
@ -319,8 +319,8 @@ $(document).ready(function(){
var taskSeCd = task.TASK_SE_CD; var taskSeCd = task.TASK_SE_CD;
var taskSeNm = task.TASK_SE_NM; var taskSeNm = task.TASK_SE_NM;
var tabButtonTemplate = $P.find("taskTabButtonTemplate").innerHTML; var tabButtonTemplate = $P.findn("taskTabButtonTemplate").innerHTML;
var tabContentsTemplate = $P.find("taskTabContentsTemplate").innerHTML; var tabContentsTemplate = $P.findn("taskTabContentsTemplate").innerHTML;
tabButtonTemplate = tabButtonTemplate.replace(/{task}/gi, taskSeCd); tabButtonTemplate = tabButtonTemplate.replace(/{task}/gi, taskSeCd);
tabButtonTemplate = tabButtonTemplate.replace(/{taskNm}/gi, taskSeNm); tabButtonTemplate = tabButtonTemplate.replace(/{taskNm}/gi, taskSeNm);
@ -341,8 +341,8 @@ $(document).ready(function(){
contents.push(tabContentsTemplate); contents.push(tabContentsTemplate);
} }
$P.$find("tabButtonContainer").html(tabs.join("")); $P.$findn("tabButtonContainer").html(tabs.join(""));
$P.$find("tabContentContainer").html(contents.join("")); $P.$findn("tabContentContainer").html(contents.join(""));
if(MY_INFO.institute != "ADMIN00"){ if(MY_INFO.institute != "ADMIN00"){
$(".superadmin").attr("hidden","hidden"); $(".superadmin").attr("hidden","hidden");
@ -354,17 +354,17 @@ $(document).ready(function(){
var taskSeNm = task.TASK_SE_NM; var taskSeNm = task.TASK_SE_NM;
let formName = taskSeCd+"Form"; let formName = taskSeCd+"Form";
$P.$find(formName).find("[name='taskSeNm']").val(taskSeNm); $P.$findn(formName).find("[name='taskSeNm']").val(taskSeNm);
$P.$find(formName).find("[name='advntceDayCnt']").val(task.ADVNTCE_DAY_CNT); $P.$findn(formName).find("[name='advntceDayCnt']").val(task.ADVNTCE_DAY_CNT);
$P.$find(formName).find("[name='advntceRdcrt']").val(task.ADVNTCE_RDCRT); $P.$findn(formName).find("[name='advntceRdcrt']").val(task.ADVNTCE_RDCRT);
$P.$find(formName).find("[name='wksnRdcrt']").val(task.WKSN_RDCRT); $P.$findn(formName).find("[name='wksnRdcrt']").val(task.WKSN_RDCRT);
$P.$find(formName).find("[name='ffnlgAdtnYmd']").val(task.FFNLG_ADTN_YMD); $P.$findn(formName).find("[name='ffnlgAdtnYmd']").val(task.FFNLG_ADTN_YMD);
$P.$find(formName).find("[name='ffnlgAdtnRt']").val(task.FFNLG_ADTN_RT); $P.$findn(formName).find("[name='ffnlgAdtnRt']").val(task.FFNLG_ADTN_RT);
$P.$find(formName).find("[name='ffnlgInadtnRt']").val(task.FFNLG_INADTN_RT); $P.$findn(formName).find("[name='ffnlgInadtnRt']").val(task.FFNLG_INADTN_RT);
$P.$find(formName).find("[name='ffnlgInadtnMaxCnt']").val(task.FFNLG_INADTN_MAX_CNT); $P.$findn(formName).find("[name='ffnlgInadtnMaxCnt']").val(task.FFNLG_INADTN_MAX_CNT);
$P.$find(formName).find("[name='nxrpLinkSeCd']").val(task.NXRP_LINK_SE_CD); $P.$findn(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='nxrpLinkSeDtlSn']").val(task.NXRP_LINK_SE_DTL_SN);
} }
resolve({resp, textStatus, jqXHR}); resolve({resp, textStatus, jqXHR});
@ -393,10 +393,10 @@ $(document).ready(function(){
for(var i=0; i < datasetNames.length; i++){ for(var i=0; i < datasetNames.length; i++){
var taskSeCd = datasetNames[i].substr(0,3); 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 taskDataset = $P.taskDatasets[taskSeCd+"Dataset"];
var trs = taskDataset.empty ? [""] : taskDataset.inStrings(template); 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}); 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.findn("offcsImage"), $P.findn("offcs"), "orgn-path", "orgn-name");
FimsComponentization.fnMakeSingleImageViewer($P.find("symbolImage"), $P.find("symbol"), "orgn-path", "orgn-name"); FimsComponentization.fnMakeSingleImageViewer($P.findn("symbolImage"), $P.findn("symbol"), "orgn-path", "orgn-name");
FimsComponentization.fnMakeSingleImageViewer($P.find("logoImage"), $P.find("logo"), "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({ ajax.post({
url: wctx.url("/ogdp/updateSggStng.do"), 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(""); $("#selectTaskButtons").html("");
var keys = Object.keys(ALL_TASK); var keys = Object.keys(ALL_TASK);
var ableKeys = []; var ableKeys = [];
for(var i=0; i < keys.length; i++){ 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]); ableKeys.push(keys[i]);
} }
} }
@ -477,7 +477,7 @@ $(document).ready(function(){
ajax.post({ ajax.post({
url: wctx.url("/ogdp/createTaskStng.do"), url: wctx.url("/ogdp/createTaskStng.do"),
data: { data: {
sggCd : $P.$find("mainForm").find("[name='sggID']").val(), sggCd : $P.$findn("mainForm").find("[name='sggID']").val(),
taskSeCd : taskSeCd taskSeCd : taskSeCd
}, },
success: (resp) => { success: (resp) => {
@ -497,9 +497,9 @@ $(document).ready(function(){
$P.fnSaveForTask = (el) => { $P.fnSaveForTask = (el) => {
var taskSeCd = el.dataset.task; 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("taskSeCd",taskSeCd);
formData.append("sggCd", sggCd); formData.append("sggCd", sggCd);
@ -533,7 +533,7 @@ $(document).ready(function(){
$P.getRowData = (tbodyName, formData) => { $P.getRowData = (tbodyName, formData) => {
var rowArr = []; var rowArr = [];
$P.$find(tbodyName).find("tr").each(function(){ $P.$findn(tbodyName).find("tr").each(function(){
var row = {}; var row = {};
row.vltnId = this.dataset.key; row.vltnId = this.dataset.key;

@ -147,7 +147,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"]; var $P = pageObject["${pageName}"];
$P.toast = new bootstrap.Toast($P.find("divToast"), { $P.toast = new bootstrap.Toast($P.findn("divToast"), {
animation: true, animation: true,
autohide: true, autohide: true,
delay: 2000 delay: 2000
@ -181,15 +181,15 @@ $(document).ready(function(){
var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer); var trs = Apply.fromDataset.getTbody($P.ctrl.dataset, t.found, t.notFound, t.replacer);
$P.renderDeptList(obj["Total"], $P.ctrl.dataset.length, trs, option); $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) => { $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) => { $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 * pageObject.function
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $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='radio']").not("[name='taskSeCd']").prop("checked", false);
searchForm.find("input[type='checkbox']").prop("checked", false); searchForm.find("input[type='checkbox']").prop("checked", false);
searchForm.find("input[type='hidden']").val(""); searchForm.find("input[type='hidden']").val("");
@ -209,7 +209,7 @@ $(document).ready(function(){
} }
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var data = formFields.get(); var data = formFields.get();
data.fetchSize = $P.ctrl.defaultFetchSize; data.fetchSize = $P.ctrl.defaultFetchSize;
@ -234,8 +234,8 @@ $(document).ready(function(){
} }
$P.getGridTemplate = () => { $P.getGridTemplate = () => {
var notFound = [$P.find("deptNotFound").innerHTML]; var notFound = [$P.findn("deptNotFound").innerHTML];
var found = $P.find("deptRow").innerHTML; var found = $P.findn("deptRow").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickDeptList('" + dataItem.getValue("DEPT_CD") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickDeptList('" + dataItem.getValue("DEPT_CD") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickDeptList('" + dataItem.getValue("DEPT_CD") + "');"); .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblclickDeptList('" + dataItem.getValue("DEPT_CD") + "');");
@ -255,7 +255,7 @@ $(document).ready(function(){
initScroll = false; initScroll = false;
} }
$P.find("table-responsive").changeContent(trs, initScroll, noMore); $P.findn("table-responsive").changeContent(trs, initScroll, noMore);
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드 fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
@ -266,7 +266,7 @@ $(document).ready(function(){
return; return;
} }
$P.$find("deptTbody").setCurrentRow(dataKey); $P.$findn("deptTbody").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -327,20 +327,20 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on('click', () => $P.searchDeptList()); $P.$findn("btnSearch").on('click', () => $P.searchDeptList());
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
Componentization.fnMakeResizableTable($P.find("table-responsive")); Componentization.fnMakeResizableTable($P.findn("table-responsive"));
Componentization.fnMakeScrollableTable($P.find("table-responsive"), $P.scrollDeptList); Componentization.fnMakeScrollableTable($P.findn("table-responsive"), $P.scrollDeptList);
$P.fnReset(); $P.fnReset();
fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드 fn_securityModeToggle($("#securityMode--top").is(":checked")); //보안모드
if(MY_INFO.institute == "ADMIN00"){ if(MY_INFO.institute == "ADMIN00"){
$P.$find("sggCd").removeAttr("disabled"); $P.$findn("sggCd").removeAttr("disabled");
} }
}); });

@ -277,7 +277,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* DatasetControl, Dataset, FormFields * DatasetControl, Dataset, FormFields
**************************************************************************/ **************************************************************************/
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
$P.ctrl = new DatasetControl({ $P.ctrl = new DatasetControl({
dataGetter : obj => obj["List"], appendData : true, dataGetter : obj => obj["List"], appendData : true,
@ -305,7 +305,7 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$P.fnSave = () => { $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(); var info = $P.formFields.get();
if(info.deptID.length != 7){ if(info.deptID.length != 7){
@ -333,7 +333,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* element.on * 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') { if(MY_INFO.institute == 'ADMIN00') {
$P.$find("forRootAdmin").removeAttr("hidden"); $P.$findn("forRootAdmin").removeAttr("hidden");
} }
var deptInfo = ${deptInfo}; var deptInfo = ${deptInfo};
$P.$find("deptID").attr("disabled","disabled"); $P.$findn("deptID").attr("disabled","disabled");
$P.$find("name").attr("disabled","disabled"); $P.$findn("name").attr("disabled","disabled");
$P.ctrl.dataset.setData([deptInfo]); $P.ctrl.dataset.setData([deptInfo]);
if(deptInfo.USE_YN == "N"){ if(deptInfo.USE_YN == "N"){
$P.$find("btnSave").attr("disabled","disabled"); $P.$findn("btnSave").attr("disabled","disabled");
} }
}); });

@ -145,7 +145,7 @@
let $P = pageObject["${pageName}"]; let $P = pageObject["${pageName}"];
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmSearch")); $P.formFields = new FimsFormFields($P.selectorn("frmSearch"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -177,7 +177,7 @@
$P.renderList(obj["Total"], option); $P.renderList(obj["Total"], option);
// datasetPaging // 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; let key = item.data.MPNG_ID;
$P.$find("tbodyList").setCurrentRow(key); $P.$findn("tbodyList").setCurrentRow(key);
}; };
// 선택(체크) 변경 이벤트 // 선택(체크) 변경 이벤트
$P.ctrl.onSelectionChange = (selected) => { $P.ctrl.onSelectionChange = (selected) => {
Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("tbodyList"), 1, selected); Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("tbodyList"), 1, selected);
Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnRemove"), selected); // 삭제 버튼 Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnRemove"), selected); // 삭제 버튼
}; };
// 상세정보 dialog // 상세정보 dialog
@ -257,8 +257,8 @@
let dataList = $P.ctrl.dataset; let dataList = $P.ctrl.dataset;
let empty = dataList.empty; let empty = dataList.empty;
let trs = empty ? [$P.find("tmpltNotFound").innerHTML] : let trs = empty ? [$P.findn("tmpltNotFound").innerHTML] :
dataList.inStrings($P.find("tmpltRows").innerHTML dataList.inStrings($P.findn("tmpltRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("MPNG_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("MPNG_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("MPNG_ID") + "');") .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("MPNG_ID") + "');")
@ -271,10 +271,10 @@
initScroll = false; initScroll = false;
} }
$P.find("tableRspns").changeContent(trs.join(), initScroll, noMore); $P.findn("tableRspns").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제 // checkbox 체크 해제
$P.$find("gridAllCheckbox").prop("checked", false); $P.$findn("gridAllCheckbox").prop("checked", false);
// 보안모드 // 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -285,7 +285,7 @@
GRID.checkbox.sync(element, bool); GRID.checkbox.sync(element, bool);
let atLeastOne = GRID.checkbox.countChecked(element) > 0; 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); Apply.toDataset.selection($P.ctrl.dataset, element, bool);
} }
@ -294,7 +294,7 @@
$P.dataTableClick = (dataKey) => { $P.dataTableClick = (dataKey) => {
if (dataKey == "") return; if (dataKey == "") return;
$P.$find("tbodyList").setCurrentRow(dataKey); $P.$findn("tbodyList").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -304,7 +304,7 @@
let params = { let params = {
callPurpose: "update" callPurpose: "update"
, mpngId: dataKey , mpngId: dataKey
, userId: $P.$find("userId").val() , userId: $P.$findn("userId").val()
, schEntNo: $P.ctrl.getValue("ENT_NO") , schEntNo: $P.ctrl.getValue("ENT_NO")
}; };
@ -327,14 +327,14 @@
// 초기화 버튼 이벤트 // 초기화 버튼 이벤트
$P.fnReset = () => { $P.fnReset = () => {
// 화면 초기화 // 화면 초기화
$P.find("frmSearch").reset(); $P.findn("frmSearch").reset();
// dataset 초기화 // dataset 초기화
$P.ctrl.dataset.clear(); $P.ctrl.dataset.clear();
// 기본 데이터 설정 // 기본 데이터 설정
$P.$find("userId").val("${userId}"); // 사용자 ID $P.$findn("userId").val("${userId}"); // 사용자 ID
$P.$find("schUserAcnt").val("${userAcnt}"); // 사용자 계정 $P.$findn("schUserAcnt").val("${userAcnt}"); // 사용자 계정
} }
// 검색 버튼 이벤트 // 검색 버튼 이벤트
@ -360,8 +360,8 @@
// DataTables(그리드) // DataTables(그리드)
$P.ctrl.query.cellDefs = $P.ctrl.query.cellDefs =
AppSupport.getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)") AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th").not(":eq(0)")
, $($P.find("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")); , $($P.findn("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.download(); $P.ctrl.download();
} }
@ -370,7 +370,7 @@
$P.fnCreate = () => { $P.fnCreate = () => {
let params = { let params = {
callPurpose: "create" callPurpose: "create"
, userId: $P.$find("userId").val() , userId: $P.$findn("userId").val()
, schEntNo: "" , schEntNo: ""
}; };
@ -409,19 +409,19 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 기본 버튼 이벤트 // 기본 버튼 이벤트
$P.$find("btnReset").on("click", () => { $P.fnReset() }); // 초기화 $P.$findn("btnReset").on("click", () => { $P.fnReset() }); // 초기화
$P.$find("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색 $P.$findn("btnSearch").on("click", () => { $P.fnSearchList() }); // 검색
$P.$find("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀 $P.$findn("btnExcel").on("click", () => { $P.fnExcel() }); // 엑셀
// 업무 버튼 이벤트 // 업무 버튼 이벤트
$P.$find("btnCreate").on("click", () => { $P.fnCreate(); }); // 등록 $P.$findn("btnCreate").on("click", () => { $P.fnCreate(); }); // 등록
$P.$find("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제 $P.$findn("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제
// DataTables width 변경 조정 // DataTables width 변경 조정
Componentization.fnMakeResizableTable($P.find("tableRspns")); Componentization.fnMakeResizableTable($P.findn("tableRspns"));
// DataTables 스크롤 이벤트 생성 // DataTables 스크롤 이벤트 생성
Componentization.fnMakeScrollableTable($P.find("tableRspns"), $P.scrollDataList); Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
} }
/************************************************************************** /**************************************************************************

@ -139,7 +139,7 @@
let $P = pageObject["${pageName}"]; let $P = pageObject["${pageName}"];
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmSearch")); $P.formFields = new FimsFormFields($P.selectorn("frmSearch"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -172,7 +172,7 @@
$P.renderList(obj["Total"], option); $P.renderList(obj["Total"], option);
// datasetPaging // 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; let key = item.data.ENT_ID;
$P.$find("tbodyList").setCurrentRow(key); $P.$findn("tbodyList").setCurrentRow(key);
}; };
// 선택(체크) 변경 이벤트 // 선택(체크) 변경 이벤트
$P.ctrl.onSelectionChange = (selected) => { $P.ctrl.onSelectionChange = (selected) => {
Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.find("tbodyList"), 1, selected); Apply.fromDataset.gridCheckbox($P.ctrl.dataset, $P.findn("tbodyList"), 1, selected);
Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnOK"), selected); // 선택 확인 버튼 Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnOK"), selected); // 선택 확인 버튼
Apply.fromDataset.gridButton($P.ctrl.dataset, $P.find("btnRemove"), selected); // 삭제 버튼 Apply.fromDataset.gridButton($P.ctrl.dataset, $P.findn("btnRemove"), selected); // 삭제 버튼
}; };
// 사용자 임대기업 매핑 저장 // 사용자 임대기업 매핑 저장
@ -277,8 +277,8 @@
let dataList = $P.ctrl.dataset; let dataList = $P.ctrl.dataset;
let empty = dataList.empty; let empty = dataList.empty;
let trs = empty ? [$P.find("tmpltNotFound").innerHTML] : let trs = empty ? [$P.findn("tmpltNotFound").innerHTML] :
dataList.inStrings($P.find("tmpltRows").innerHTML dataList.inStrings($P.findn("tmpltRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("ENT_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].dataTableClick('" + dataItem.getValue("ENT_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("ENT_ID") + "');") .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dataTableDblClick('" + dataItem.getValue("ENT_ID") + "');")
@ -291,10 +291,10 @@
initScroll = false; initScroll = false;
} }
$P.find("tableRspns").changeContent(trs.join(), initScroll, noMore); $P.findn("tableRspns").changeContent(trs.join(), initScroll, noMore);
// checkbox 체크 해제 // checkbox 체크 해제
$P.$find("gridAllCheckbox").prop("checked", false); $P.$findn("gridAllCheckbox").prop("checked", false);
// 보안모드 // 보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -305,8 +305,8 @@
GRID.checkbox.sync(element, bool); GRID.checkbox.sync(element, bool);
let atLeastOne = GRID.checkbox.countChecked(element) > 0; let atLeastOne = GRID.checkbox.countChecked(element) > 0;
$P.$find("btnOK").prop("disabled", !atLeastOne); $P.$findn("btnOK").prop("disabled", !atLeastOne);
$P.$find("btnRemove").prop("disabled", !atLeastOne); $P.$findn("btnRemove").prop("disabled", !atLeastOne);
Apply.toDataset.selection($P.ctrl.dataset, element, bool); Apply.toDataset.selection($P.ctrl.dataset, element, bool);
} }
@ -315,7 +315,7 @@
$P.dataTableClick = (dataKey) => { $P.dataTableClick = (dataKey) => {
if (dataKey == "") return; if (dataKey == "") return;
$P.$find("tbodyList").setCurrentRow(dataKey); $P.$findn("tbodyList").setCurrentRow(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey); Apply.toDataset.current($P.ctrl.dataset, dataKey);
} }
@ -346,14 +346,14 @@
// 업무 구분 변경 이벤트 // 업무 구분 변경 이벤트
$P.fnReset = (initSearchYN) => { $P.fnReset = (initSearchYN) => {
// 화면 초기화 // 화면 초기화
$P.find("frmSearch").reset(); $P.findn("frmSearch").reset();
// dataset 초기화 // dataset 초기화
$P.ctrl.dataset.clear(); $P.ctrl.dataset.clear();
// 기본 데이터 설정 // 기본 데이터 설정
$P.$find("userId").val("${userId}"); // 사용자 ID $P.$findn("userId").val("${userId}"); // 사용자 ID
$P.$find("schEntNo").val("${schEntNo}"); // 기업 번호 $P.$findn("schEntNo").val("${schEntNo}"); // 기업 번호
if (initSearchYN && $("#schEntNo--${pageName}").val() != "") { if (initSearchYN && $("#schEntNo--${pageName}").val() != "") {
$P.fnSearchList(); $P.fnSearchList();
@ -382,8 +382,8 @@
// DataTable(그리드) // DataTable(그리드)
$P.ctrl.query.cellDefs = $P.ctrl.query.cellDefs =
AppSupport.getCellDefs($P.$find("theadTr").find("th").not(".dummy-th").not(":eq(0)") AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th").not(":eq(0)")
, $($P.find("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)")); , $($P.findn("tmpltRows").content).find("td").not(".dummy-td").not(":eq(0)"));
$P.ctrl.download(); $P.ctrl.download();
} }
@ -405,7 +405,7 @@
, onOK: () => { , onOK: () => {
let params = { let params = {
callPurpose: "create" callPurpose: "create"
, userId: $P.$find("userId").val() , userId: $P.$findn("userId").val()
, entIds: selected.join(",") , entIds: selected.join(",")
} }
@ -462,20 +462,20 @@
// 이벤트 // 이벤트
$P.setEvent = () => { $P.setEvent = () => {
// 기본 버튼 이벤트 // 기본 버튼 이벤트
$P.$find("btnReset").on("click", () => { $P.fnReset(); }); // 초기화 $P.$findn("btnReset").on("click", () => { $P.fnReset(); }); // 초기화
$P.$find("btnSearch").on("click", () => { $P.fnSearchList(); }); // 검색 $P.$findn("btnSearch").on("click", () => { $P.fnSearchList(); }); // 검색
$P.$find("btnOK").on("click", () => { $P.fnOK(); }); // 선택 확인 $P.$findn("btnOK").on("click", () => { $P.fnOK(); }); // 선택 확인
// 업무 버튼 이벤트 // 업무 버튼 이벤트
$P.$find("btnCreate").on("click", () => { $P.fnCreate(); }); // 등록 $P.$findn("btnCreate").on("click", () => { $P.fnCreate(); }); // 등록
$P.$find("btnUpdate").on("click", () => { $P.fnUpdate(); }); // 수정 $P.$findn("btnUpdate").on("click", () => { $P.fnUpdate(); }); // 수정
$P.$find("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제 $P.$findn("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제
// DataTable width 변경 조정 // DataTable width 변경 조정
Componentization.fnMakeResizableTable($P.find("tableRspns")); Componentization.fnMakeResizableTable($P.findn("tableRspns"));
// DataTable 스크롤 이벤트 생성 // DataTable 스크롤 이벤트 생성
Componentization.fnMakeScrollableTable($P.find("tableRspns"), $P.scrollDataList); Componentization.fnMakeScrollableTable($P.findn("tableRspns"), $P.scrollDataList);
} }
/************************************************************************** /**************************************************************************

@ -106,7 +106,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정) // infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}"; $P.callPurpose = "${callPurpose}";
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -166,9 +166,9 @@
**************************************************************************/ **************************************************************************/
// 우편번호 검색 결과 // 우편번호 검색 결과
$P.callbackSearchAddr = (obj) => { $P.callbackSearchAddr = (obj) => {
$P.$find("entAddr").val(obj.ADDR); // 주소 $P.$findn("entAddr").val(obj.ADDR); // 주소
$P.$find("entZip").val(obj.ZIP); // 우편번호 $P.$findn("entZip").val(obj.ZIP); // 우편번호
$P.$find("entDtlAddr").val(obj.DTL_ADDR); // 상세 주소 $P.$findn("entDtlAddr").val(obj.DTL_ADDR); // 상세 주소
} }
/************************************************************************** /**************************************************************************
@ -195,7 +195,7 @@
// 임대기업 등록 버튼 클릭 이벤트 // 임대기업 등록 버튼 클릭 이벤트
$P.fnSave = () => { $P.fnSave = () => {
// validate 확인 // 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({ dialog.alert({
content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?" content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?"
@ -210,15 +210,15 @@
// 이벤트 // 이벤트
$P.setEvent = () => { $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.initForm = () => {
// 화면 초기화 // 화면 초기화
$P.find("frmEdit").reset(); $P.findn("frmEdit").reset();
} }
/************************************************************************** /**************************************************************************

@ -57,12 +57,12 @@ $(document).ready(function() {
**************************************************************************/ **************************************************************************/
// Dataset 변경 이벤트 // Dataset 변경 이벤트
$P.ctrl.upDataset.onDatasetChange = (obj, option) => { $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.renderList("up", upActiveTab);
}; };
$P.ctrl.downDataset.onDatasetChange = (obj, option) => { $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); $P.renderList("down", downActiveTab);
}; };
@ -70,13 +70,13 @@ $(document).ready(function() {
$P.ctrl.upDataset.onCurrentChange = (DI) => { $P.ctrl.upDataset.onCurrentChange = (DI) => {
if (!DI) return; if (!DI) return;
var key = DI.data.CRDN_ID; var key = DI.data.CRDN_ID;
$P.$find("upTbody").setCurrentRow(key); $P.$findn("upTbody").setCurrentRow(key);
}; };
$P.ctrl.downDataset.onCurrentChange = (DI) => { $P.ctrl.downDataset.onCurrentChange = (DI) => {
if (!DI) return; if (!DI) return;
var key = DI.data.CRDN_ID; 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 DS = $P.ctrl.upDataset;
var keys = selectedArr.map(item => DS.getKey(item)); 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); var checkbox = $(this);
checkbox.prop("checked", keys.includes(checkbox.val())); checkbox.prop("checked", keys.includes(checkbox.val()));
}); });
let status = getCheckboxesStatus($P.$find("upTbody").find("input[type='checkbox']")); let status = getCheckboxesStatus($P.$findn("upTbody").find("input[type='checkbox']"));
let thc = $P.$find("upTheadTr").find("input[type='checkbox']"); let thc = $P.$findn("upTheadTr").find("input[type='checkbox']");
if(status == 1 && !thc.is(":checked")){ if(status == 1 && !thc.is(":checked")){
thc.prop("checked", true); thc.prop("checked", true);
@ -104,13 +104,13 @@ $(document).ready(function() {
var DS = $P.ctrl.downDataset; var DS = $P.ctrl.downDataset;
var keys = selectedArr.map(item => DS.getKey(item)); 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); var checkbox = $(this);
checkbox.prop("checked", keys.includes(checkbox.val())); checkbox.prop("checked", keys.includes(checkbox.val()));
}); });
let status = getCheckboxesStatus($P.$find("downTbody").find("input[type='checkbox']")); let status = getCheckboxesStatus($P.$findn("downTbody").find("input[type='checkbox']"));
let thc = $P.$find("downTheadTr").find("input[type='checkbox']"); let thc = $P.$findn("downTheadTr").find("input[type='checkbox']");
if(status == 1 && !thc.is(":checked")){ if(status == 1 && !thc.is(":checked")){
thc.prop("checked", true); 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, animation: true,
autohide: true, autohide: true,
delay: 2000 delay: 2000
@ -148,9 +148,9 @@ $(document).ready(function() {
// 초기화 // 초기화
$P.fnResetAndChangeBiz = (taskSeCd) => { $P.fnResetAndChangeBiz = (taskSeCd) => {
// 항목 초기화 // 항목 초기화
$P.$find("ischVltnCd").empty(); $P.$findn("ischVltnCd").empty();
$P.$find("ischVltnCd").append("<option value=''>" + "전체" + "</option>"); $P.$findn("ischVltnCd").append("<option value=''>" + "전체" + "</option>");
// 업무에 따른 위반 내용 // 업무에 따른 위반 내용
var vltnIdCode = []; var vltnIdCode = [];
@ -168,7 +168,7 @@ $(document).ready(function() {
if(taskSeCd != ""){ if(taskSeCd != ""){
$(vltnIdCode).each(function(index, item) { $(vltnIdCode).each(function(index, item) {
$P.$find("ischVltnCd").append("<option value='" + vltnIdCode[index].code +"'>" + vltnIdCode[index].value + "</option>"); $P.$findn("ischVltnCd").append("<option value='" + vltnIdCode[index].code +"'>" + vltnIdCode[index].value + "</option>");
}) })
} }
@ -182,7 +182,7 @@ $(document).ready(function() {
// 검색 조건 파라미터 가져오기 // 검색 조건 파라미터 가져오기
$P.getParams = () => { $P.getParams = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var formData = formFields.get(); var formData = formFields.get();
return formData; return formData;
@ -224,10 +224,10 @@ $(document).ready(function() {
query.ischRtpyrNo = ""; query.ischRtpyrNo = "";
} }
$P.$find("upGridTabs").find("button").not(":eq(0)").removeClass("active"); $P.$findn("upGridTabs").find("button").not(":eq(0)").removeClass("active");
$P.$find("upGridTabs").find("button").eq(0).addClass("active"); $P.$findn("upGridTabs").find("button").eq(0).addClass("active");
$P.$find("downGridTabs").find("button").not(":eq(0)").removeClass("active"); $P.$findn("downGridTabs").find("button").not(":eq(0)").removeClass("active");
$P.$find("downGridTabs").find("button").eq(0).addClass("active"); $P.$findn("downGridTabs").find("button").eq(0).addClass("active");
$P.ctrl.upDataset.clear(); $P.ctrl.upDataset.clear();
$P.ctrl.downDataset.clear(); $P.ctrl.downDataset.clear();
@ -247,8 +247,8 @@ $(document).ready(function() {
} }
cellDefs = AppSupport.getCellDefs( cellDefs = AppSupport.getCellDefs(
$P.$find("upTheadTr").find("th").not(".dummy-th").not(":eq(0)"), $P.$findn("upTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
$($P.find("row").content).find("td").not(".dummy-td").not(":eq(0)"), $($P.findn("row").content).find("td").not(".dummy-td").not(":eq(0)"),
FimsSupport.getCellDefsForPrivacyCell FimsSupport.getCellDefsForPrivacyCell
); );
@ -260,8 +260,8 @@ $(document).ready(function() {
} }
cellDefs = AppSupport.getCellDefs( cellDefs = AppSupport.getCellDefs(
$P.$find("downTheadTr").find("th").not(".dummy-th").not(":eq(0)"), $P.$findn("downTheadTr").find("th").not(".dummy-th").not(":eq(0)"),
$($P.find("row").content).find("td").not(".dummy-td").not(":eq(0)"), $($P.findn("row").content).find("td").not(".dummy-td").not(":eq(0)"),
FimsSupport.getCellDefsForPrivacyCell FimsSupport.getCellDefsForPrivacyCell
); );
@ -278,8 +278,8 @@ $(document).ready(function() {
var tbodyName = updown == "up" ? "upTbody" : "downTbody"; var tbodyName = updown == "up" ? "upTbody" : "downTbody";
var trs = ""; var trs = "";
var notFound = [$P.find("notFound").innerHTML]; var notFound = [$P.findn("notFound").innerHTML];
var found = $P.find("row").innerHTML; var found = $P.findn("row").innerHTML;
var DS; var DS;
if(updown == "up"){ 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")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -336,31 +336,31 @@ $(document).ready(function() {
$P.setTotalData = (updown, list) => { $P.setTotalData = (updown, list) => {
if(updown == "up"){ 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); 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); 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); 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 { } else {
var sunapList = list.filter(item => item.data.TAB_GROUP == '수납'); var sunapList = list.filter(item => item.data.TAB_GROUP == '수납');
var sonList = 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); 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); 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); 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); 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); 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){ if(cur != null){
clipboardCopy(cur.RTPYR_NO); clipboardCopy(cur.RTPYR_NO);
$P.$find("toastText").html("납부자번호가 복사되었습니다."); $P.$findn("toastText").html("납부자번호가 복사되었습니다.");
$P.toast.show(); $P.toast.show();
} }
@ -793,38 +793,38 @@ $(document).ready(function() {
//이벤트 //이벤트
$P.setEvent = () => { $P.setEvent = () => {
$P.$find("btnReset").on("click", function(){ $P.fnReset(); }); $P.$findn("btnReset").on("click", function(){ $P.fnReset(); });
$P.$find("btnSearch").on("click", function(){ $P.fnSearchList(); }); $P.$findn("btnSearch").on("click", function(){ $P.fnSearchList(); });
// 동적검색에서 엔터(Enter) 키를 누르면 검색한다. // 동적검색에서 엔터(Enter) 키를 누르면 검색한다.
$P.$find("term").onEnterPress($P.fnSearchList); $P.$findn("term").onEnterPress($P.fnSearchList);
$P.$find("btnPrintCrdn").on("click", function(){ $P.fnPrintCrdn(); }); $P.$findn("btnPrintCrdn").on("click", function(){ $P.fnPrintCrdn(); });
$P.$find("btnPrintBill").on("click", function(){ $P.fnPrintBill(); }); $P.$findn("btnPrintBill").on("click", function(){ $P.fnPrintBill(); });
$P.$find("btnUpExcel").on("click", function(){ $P.fnExcel("up"); }); $P.$findn("btnUpExcel").on("click", function(){ $P.fnExcel("up"); });
$P.$find("btnDownExcel").on("click", function(){ $P.fnExcel("down"); }); $P.$findn("btnDownExcel").on("click", function(){ $P.fnExcel("down"); });
$P.$find("btnUpCopyPyrNo").on("click", function(){ $P.fnCopyPyrNo("up"); }); $P.$findn("btnUpCopyPyrNo").on("click", function(){ $P.fnCopyPyrNo("up"); });
$P.$find("btnDownCopyPyrNo").on("click", function(){ $P.fnCopyPyrNo("down"); }); $P.$findn("btnDownCopyPyrNo").on("click", function(){ $P.fnCopyPyrNo("down"); });
$P.$find("btnUpManageEtcCn").on("click", function(){ $P.fnManageEtcCn("up"); }); $P.$findn("btnUpManageEtcCn").on("click", function(){ $P.fnManageEtcCn("up"); });
$P.$find("btnDownManageEtcCn").on("click", function(){ $P.fnManageEtcCn("down"); }); $P.$findn("btnDownManageEtcCn").on("click", function(){ $P.fnManageEtcCn("down"); });
$P.$find("btnUpInputEtcCn").on("click", function(){ $P.fnInputEtcCn("up"); }); $P.$findn("btnUpInputEtcCn").on("click", function(){ $P.fnInputEtcCn("up"); });
$P.$find("btnDownInputEtcCn").on("click", function(){ $P.fnInputEtcCn("down"); }); $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.$findn("btnUpPrintAdvntce").on("click", function(){ $P.fnPrintAdvntce(); });
$P.$find("btnPrintNht").on("click", function(){ $P.fnPrintNht(); }); $P.$findn("btnPrintNht").on("click", function(){ $P.fnPrintNht(); });
//$("#btn").on("click", function(){ }); //$("#btn").on("click", function(){ });
// 달력 초기화 // 달력 초기화
AppSupport.initDatepicker($P.find("frmSearch")); AppSupport.initDatepicker($P.findn("frmSearch"));
AppSupport.initDetailSearchButton($P.find("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(){ $(this).on("input",function(){
var value = this.value.replaceAll(":",""); var value = this.value.replaceAll(":","");
@ -838,15 +838,15 @@ $(document).ready(function() {
}); });
// DataTables width 변경 조정 // DataTables width 변경 조정
Componentization.fnMakeResizableTable($P.find("table-responsive-up")); Componentization.fnMakeResizableTable($P.findn("table-responsive-up"));
Componentization.fnMakeResizableTable($P.find("table-responsive-down")); Componentization.fnMakeResizableTable($P.findn("table-responsive-down"));
} }
/************************************************************************** /**************************************************************************
* script 진입 * script 진입
**************************************************************************/ **************************************************************************/
$P.$find("upTheadTr").html($P.find("cols").innerHTML); $P.$findn("upTheadTr").html($P.findn("cols").innerHTML);
$P.$find("downTheadTr").html($P.find("cols").innerHTML); $P.$findn("downTheadTr").html($P.findn("cols").innerHTML);
// 이벤트 설정 // 이벤트 설정
$P.setEvent(); $P.setEvent();
@ -861,18 +861,18 @@ $(document).ready(function() {
if($("#fastBy--top").val() == "vhrno"){ 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"){ } 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"){ } 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"){ } else if($("#fastBy--top").val() == "cvlcptAplcntNm"){
$P.$find("ischCvlcptAplcntNm").val($("#fastTerm--top").val()); $P.$findn("ischCvlcptAplcntNm").val($("#fastTerm--top").val());
} else { } else {
return; return;
} }
$P.$find("btnSearch").click(); $P.$findn("btnSearch").click();
} }
}); });

@ -76,12 +76,12 @@ $(document).ready(function(){
$P.clickGrid = (element) => { $P.clickGrid = (element) => {
var key = element.dataset.key; var key = element.dataset.key;
$P.$find("tbody").setCurrentRow(key); $P.$findn("tbody").setCurrentRow(key);
} }
//특기사항 입력 //특기사항 입력
$P.fnInputEtcCn = () => { $P.fnInputEtcCn = () => {
var etcCn = $P.$find("etcCn").val(); var etcCn = $P.$findn("etcCn").val();
if(etcCn == ""){ if(etcCn == ""){
alert("특기사항을 입력하세요."); alert("특기사항을 입력하세요.");
return; 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();
}); });

@ -87,14 +87,14 @@ $(document).ready(function(){
$P.clickGrid = (element) => { $P.clickGrid = (element) => {
var key = element.dataset.key; var key = element.dataset.key;
$P.$find("tbody").setCurrentRow(key); $P.$findn("tbody").setCurrentRow(key);
} }
//단속내역서 파일 생성 //단속내역서 파일 생성
$P.fnMakeCrdnListFile = () => { $P.fnMakeCrdnListFile = () => {
var privateInfoYn = "Y"; var privateInfoYn = "Y";
if($P.$find("privateInfoYn").is(":checked")){ if($P.$findn("privateInfoYn").is(":checked")){
privateInfoYn = "N"; privateInfoYn = "N";
} }
@ -119,8 +119,8 @@ $(document).ready(function(){
$P.fnExcelDown = () => { $P.fnExcelDown = () => {
var query = {}; var query = {};
var cellDefs = AppSupport.getCellDefs($P.$find("theadTr").find("th").not(".dummy-th"), var cellDefs = AppSupport.getCellDefs($P.$findn("theadTr").find("th").not(".dummy-th"),
$($P.find("found").content).find("td").not(".dummy-td")); $($P.findn("found").content).find("td").not(".dummy-td"));
query.cellDefs = cellDefs; query.cellDefs = cellDefs;
query.download = "xls"; query.download = "xls";
@ -131,12 +131,12 @@ $(document).ready(function(){
} }
//버튼 이벤트 //버튼 이벤트
$P.$find("btnPrintCrdnList").on("click", () => $P.fnMakeCrdnListFile() ); $P.$findn("btnPrintCrdnList").on("click", () => $P.fnMakeCrdnListFile() );
$P.$find("btnPrintCrdnConfirm").on("click", () => $P.fnMakeCrdnConfirmFile() ); $P.$findn("btnPrintCrdnConfirm").on("click", () => $P.fnMakeCrdnConfirmFile() );
$P.$find("btnExcel").on("click", () => $P.fnExcelDown()); $P.$findn("btnExcel").on("click", () => $P.fnExcelDown());
//첫번째 줄 클릭 //첫번째 줄 클릭
$P.$find("tbody").find("tr:eq(0)").click(); $P.$findn("tbody").find("tr:eq(0)").click();
}); });
</script> </script>

@ -194,17 +194,17 @@ $(document).ready(function(){
$P.clickGrid = (element) => { $P.clickGrid = (element) => {
var key = element.dataset.key; var key = element.dataset.key;
$P.$find("tbody").setCurrentRow(key); $P.$findn("tbody").setCurrentRow(key);
var info = $P.provided.getInfo(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); formFields.set(null,info);
} }
//교부청구서 파일 생성 //교부청구서 파일 생성
$P.fnMakeRequestForDeliveryFile = () => { $P.fnMakeRequestForDeliveryFile = () => {
if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return; if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
$P.checkActno(); $P.checkActno();
} }
@ -223,7 +223,7 @@ $(document).ready(function(){
dialog.open({ dialog.open({
id : dialogId, id : dialogId,
title : "계좌번호 확인", title : "계좌번호 확인",
content : $P.find("checkActnoTemplate").innerHTML, content : $P.findn("checkActnoTemplate").innerHTML,
size : "md", size : "md",
init : () => { init : () => {
$("#"+dialogId).attr("name", dialogName); $("#"+dialogId).attr("name", dialogName);
@ -254,7 +254,7 @@ $(document).ready(function(){
$P.checkActnoCallback = (change, callbackDialogId) => { $P.checkActnoCallback = (change, callbackDialogId) => {
var url = wctx.url("/sprt/sprt01/120/makeRequestForDeliveryFileFromHwpFormat.do"); 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 globalVariable = formFields.get();
var changed = false; var changed = false;
@ -290,10 +290,10 @@ $(document).ready(function(){
//채권신고서 파일 생성 //채권신고서 파일 생성
$P.fnMakeReportOnClaimsFile = () => { $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 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(); var globalVariable = formFields.get();
$P.fnMakeFile(url, globalVariable); $P.fnMakeFile(url, globalVariable);
@ -311,11 +311,11 @@ $(document).ready(function(){
} }
//버튼이벤트 //버튼이벤트
$P.$find("btnPrintRequestForDelivery").on("click", () => $P.fnMakeRequestForDeliveryFile() ); $P.$findn("btnPrintRequestForDelivery").on("click", () => $P.fnMakeRequestForDeliveryFile() );
$P.$find("btnPrintReportOnClaims").on("click", () => $P.fnMakeReportOnClaimsFile() ); $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")); fn_securityModeToggle($("#securityMode--top").is(":checked"));

@ -108,22 +108,22 @@ $(document).ready(function(){
$P.clickGrid = (element) => { $P.clickGrid = (element) => {
var key = element.dataset.key; var key = element.dataset.key;
$P.$find("tbody").setCurrentRow(key); $P.$findn("tbody").setCurrentRow(key);
var info = $P.provided.getInfo(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); formFields.set(null,info);
} }
$P.fnMakeFile = (fileType, paper) => { $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){ if(checkboxes.length < 1){
alert("체크된 자료가 없습니다."); alert("체크된 자료가 없습니다.");
return; return;
} }
if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return; if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
var checkedCrdnIds = []; var checkedCrdnIds = [];
checkboxes.each(function(){ checkboxes.each(function(){
@ -149,7 +149,7 @@ $(document).ready(function(){
fileTypeName = "외주 요청 파일"; fileTypeName = "외주 요청 파일";
} }
var formFields = new FimsFormFields($P.selector("frmEdit")); var formFields = new FimsFormFields($P.selectorn("frmEdit"));
var globalVariable = formFields.get(); var globalVariable = formFields.get();
var submitParam = { var submitParam = {
@ -200,7 +200,7 @@ $(document).ready(function(){
} }
$P.fnOpenOtptStng = () => { $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){ if(checkboxes.length < 1){
alert("체크된 자료가 없습니다."); alert("체크된 자료가 없습니다.");
return; return;
@ -259,13 +259,13 @@ $(document).ready(function(){
} }
//버튼이벤트 //버튼이벤트
$P.$find("btnPrintAdvntcePdf01").on("click", () => $P.fnMakeFile('pdf','01') ); $P.$findn("btnPrintAdvntcePdf01").on("click", () => $P.fnMakeFile('pdf','01') );
$P.$find("btnPrintAdvntcePdf02").on("click", () => $P.fnMakeFile('pdf','02') ); $P.$findn("btnPrintAdvntcePdf02").on("click", () => $P.fnMakeFile('pdf','02') );
$P.$find("btnPrintAdvntceOutsourcing").on("click", () => $P.fnMakeFile('outsourcing') ); $P.$findn("btnPrintAdvntceOutsourcing").on("click", () => $P.fnMakeFile('outsourcing') );
$P.$find("btnOpenOtptStng").on("click", () => $P.fnOpenOtptStng() ); $P.$findn("btnOpenOtptStng").on("click", () => $P.fnOpenOtptStng() );
//첫번째 줄 클릭 //첫번째 줄 클릭
$P.$find("tbody").find("tr:eq(0)").click(); $P.$findn("tbody").find("tr:eq(0)").click();
}); });
</script> </script>

@ -106,21 +106,21 @@ $(document).ready(function(){
$P.clickGrid = (element) => { $P.clickGrid = (element) => {
var key = element.dataset.key; var key = element.dataset.key;
$P.$find("tbody").setCurrentRow(key); $P.$findn("tbody").setCurrentRow(key);
var info = $P.provided.getInfo(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); formFields.set(null,info);
} }
$P.fnMakeFile = (fileType, paper) => { $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){ if(checkboxes.length < 1){
alert("체크된 자료가 없습니다."); alert("체크된 자료가 없습니다.");
return; return;
} }
if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return; if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
var checkedCrdnIds = []; var checkedCrdnIds = [];
checkboxes.each(function(){ checkboxes.each(function(){
@ -146,7 +146,7 @@ $(document).ready(function(){
fileTypeName = "외주 요청 파일"; fileTypeName = "외주 요청 파일";
} }
var formFields = new FimsFormFields($P.selector("frmEdit")); var formFields = new FimsFormFields($P.selectorn("frmEdit"));
var globalVariable = formFields.get(); var globalVariable = formFields.get();
var submitParam = { var submitParam = {
@ -195,7 +195,7 @@ $(document).ready(function(){
} }
$P.fnOpenOtptStng = () => { $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){ if(checkboxes.length < 1){
alert("체크된 자료가 없습니다."); alert("체크된 자료가 없습니다.");
return; return;
@ -252,13 +252,13 @@ $(document).ready(function(){
} }
//버튼이벤트 //버튼이벤트
$P.$find("btnPrintNhtPdf01").on("click", () => $P.fnMakeFile('pdf','01') ); $P.$findn("btnPrintNhtPdf01").on("click", () => $P.fnMakeFile('pdf','01') );
$P.$find("btnPrintNhtPdf02").on("click", () => $P.fnMakeFile('pdf','02') ); $P.$findn("btnPrintNhtPdf02").on("click", () => $P.fnMakeFile('pdf','02') );
$P.$find("btnPrintNhtOutsourcing").on("click", () => $P.fnMakeFile('outsourcing') ); $P.$findn("btnPrintNhtOutsourcing").on("click", () => $P.fnMakeFile('outsourcing') );
$P.$find("btnOpenOtptStng").on("click", () => $P.fnOpenOtptStng() ); $P.$findn("btnOpenOtptStng").on("click", () => $P.fnOpenOtptStng() );
//첫번째 줄 클릭 //첫번째 줄 클릭
$P.$find("tbody").find("tr:eq(0)").click(); $P.$findn("tbody").find("tr:eq(0)").click();
}); });
</script> </script>

@ -110,7 +110,7 @@
// infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정) // infoDialog 호출 용도(view 조회(편집불가), create 등록, update 수정)
$P.callPurpose = "${callPurpose}"; $P.callPurpose = "${callPurpose}";
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
// 자료 이동을 위한 자료의 Index. 0부터 시작. // 자료 이동을 위한 자료의 Index. 0부터 시작.
$P.curDataIndex; $P.curDataIndex;
// 현재 탭의 위치 // 현재 탭의 위치
@ -227,7 +227,7 @@
let viewNumber = $P.curDataIndex + 1; 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.setEvent = () => {
// 기본 버튼 이벤트 // 기본 버튼 이벤트
$P.$find("btnPrev").on("click", () => { $P.fnPrev() }); // 이전 $P.$findn("btnPrev").on("click", () => { $P.fnPrev() }); // 이전
$P.$find("btnNext").on("click", () => { $P.fnNext() }); // 다음 $P.$findn("btnNext").on("click", () => { $P.fnNext() }); // 다음
$P.$find("btnCrdnPayer").on("click", () => { $P.fnCrdnPayerInfo() }); // 단속 정보 $P.$findn("btnCrdnPayer").on("click", () => { $P.fnCrdnPayerInfo() }); // 단속 정보
$P.$find("btnOpnnSbmsn").on("click", () => { $P.fnOpnnSbmsnInfo() }); // 의견제출 정보 $P.$findn("btnOpnnSbmsn").on("click", () => { $P.fnOpnnSbmsnInfo() }); // 의견제출 정보
$P.$find("btnSndng").on("click", () => { $P.fnSndngInfo() }); // 발송반송 정보 $P.$findn("btnSndng").on("click", () => { $P.fnSndngInfo() }); // 발송반송 정보
$P.$find("btnPrcs").on("click", () => { $P.fnPrcsInfo() }); // 처리상세 정보 $P.$findn("btnPrcs").on("click", () => { $P.fnPrcsInfo() }); // 처리상세 정보
$P.$find("btnLevy").on("click", () => { $P.fnLevyInfo() }); // 부과체납 정보 $P.$findn("btnLevy").on("click", () => { $P.fnLevyInfo() }); // 부과체납 정보
$P.$find("btnRcvmt").on("click", () => { $P.fnRcvmtInfo() }); // 수납 정보 $P.$findn("btnRcvmt").on("click", () => { $P.fnRcvmtInfo() }); // 수납 정보
$P.$find("btnCvlcptDscsn").on("click", () => { $P.fnCvlcptDscsnInfo() }); // 민원상담 정보 $P.$findn("btnCvlcptDscsn").on("click", () => { $P.fnCvlcptDscsnInfo() }); // 민원상담 정보
} }
// 기본 데이터 설정 // 기본 데이터 설정

@ -349,14 +349,14 @@
// pageObject // pageObject
let $P = pageObject["${pageName}"]; 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 // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEditCrdnPayer")); $P.formFields = new FimsFormFields($P.selectorn("frmEditCrdnPayer"));
// 단속 사진 // 단속 사진
$P.existFileArr = []; $P.existFileArr = [];
$P.localUploadArr = []; $P.localUploadArr = [];
$P.uploadSet = uploadSupport($P.selector("inputUploadSet")); $P.uploadSet = uploadSupport($P.selectorn("inputUploadSet"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -476,7 +476,7 @@
, data: params || {} , data: params || {}
, success: (resp) => { , success: (resp) => {
// 초기화 // 초기화
$P.find("frmEditCrdnPayer").reset(); // 화면 초기화 $P.findn("frmEditCrdnPayer").reset(); // 화면 초기화
$P.ctrlCrdnPayer.dataset.clear(); // Dataset 초기화 $P.ctrlCrdnPayer.dataset.clear(); // Dataset 초기화
// sprt02010-main 단속 정보 // sprt02010-main 단속 정보
@ -977,77 +977,77 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 업무 버튼 이벤트 // 업무 버튼 이벤트
$P.$find("btnViewCvlcptOrgnl").on("click", () => { $P.$findn("btnViewCvlcptOrgnl").on("click", () => {
$P.fnViewCvlcptOrgnl($P.$find("btnViewCvlcptOrgnl").attr("title")); // 민원 원본 보기 $P.fnViewCvlcptOrgnl($P.$findn("btnViewCvlcptOrgnl").attr("title")); // 민원 원본 보기
}); });
$P.$find("btnViewAnswerPreview").on("click", () => { $P.$findn("btnViewAnswerPreview").on("click", () => {
$P.fnViewAnswerPreview($P.$find("btnViewAnswerPreview").attr("title")); // 민원 답변 보기 $P.fnViewAnswerPreview($P.$findn("btnViewAnswerPreview").attr("title")); // 민원 답변 보기
}); });
$P.$find("btnPrintNhtPdf01").on("click", () => { $P.$findn("btnPrintNhtPdf01").on("click", () => {
$P.fnMakeFileNht($P.$find("btnPrintNhtPdf01").attr("title"), "pdf", "01"); // 고지서 출력 $P.fnMakeFileNht($P.$findn("btnPrintNhtPdf01").attr("title"), "pdf", "01"); // 고지서 출력
}); });
$P.$find("btnPrintNhtPdf02").on("click", () => { $P.$findn("btnPrintNhtPdf02").on("click", () => {
$P.fnMakeFileNht($P.$find("btnPrintNhtPdf02").attr("title"), "pdf", "02"); // 고지서 출력 $P.fnMakeFileNht($P.$findn("btnPrintNhtPdf02").attr("title"), "pdf", "02"); // 고지서 출력
}); });
$P.$find("btnUpdateCrdn").on("click", () => { $P.$findn("btnUpdateCrdn").on("click", () => {
$P.fnUpdateCrdn($P.$find("btnUpdateCrdn").attr("title")); // 단속 정보 수정 $P.fnUpdateCrdn($P.$findn("btnUpdateCrdn").attr("title")); // 단속 정보 수정
}); });
$P.$find("btnRemoveCrdn").on("click", () => { $P.$findn("btnRemoveCrdn").on("click", () => {
$P.fnRemoveCrdn($P.$find("btnRemoveCrdn").attr("title")); // 단속 정보 삭제 $P.fnRemoveCrdn($P.$findn("btnRemoveCrdn").attr("title")); // 단속 정보 삭제
}); });
$P.$find("btnUpdateCrdnSttsCd").on("click", () => { $P.$findn("btnUpdateCrdnSttsCd").on("click", () => {
$P.fnUpdateCrdnSttsCd($P.$find("btnUpdateCrdnSttsCd").attr("title")); // 단속 상태 변경 $P.fnUpdateCrdnSttsCd($P.$findn("btnUpdateCrdnSttsCd").attr("title")); // 단속 상태 변경
}); });
$P.$find("btnCreateCrdnReReg").on("click", () => { $P.$findn("btnCreateCrdnReReg").on("click", () => {
$P.fnCreateCrdnReReg($P.$find("btnCreateCrdnReReg").attr("title")); // 단속 재등록 $P.fnCreateCrdnReReg($P.$findn("btnCreateCrdnReReg").attr("title")); // 단속 재등록
}); });
$P.$find("btnDeleteCrdnPayer").on("click", () => { $P.$findn("btnDeleteCrdnPayer").on("click", () => {
$P.fnDeleteCrdnPayer($P.$find("btnDeleteCrdnPayer").attr("title")); // 납부자 초기화 $P.fnDeleteCrdnPayer($P.$findn("btnDeleteCrdnPayer").attr("title")); // 납부자 초기화
}); });
$P.$find("btnUpdatePayer").on("click", () => { $P.$findn("btnUpdatePayer").on("click", () => {
$P.fnUpdatePayer($P.$find("btnUpdatePayer").attr("title")); // 납부자 수정 $P.fnUpdatePayer($P.$findn("btnUpdatePayer").attr("title")); // 납부자 수정
}); });
} }
// 초기 화면 설정 // 초기 화면 설정
$P.initForm = () => { $P.initForm = () => {
// 초기화 // 초기화
$P.find("frmEditCrdnPayer").reset(); // 화면 초기화 $P.findn("frmEditCrdnPayer").reset(); // 화면 초기화
$P.ctrlCrdnPayer.dataset.clear(); // Dataset 초기화 $P.ctrlCrdnPayer.dataset.clear(); // Dataset 초기화
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true // 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") { if (pageObject['${mainPageName}'].callPurpose == "view") {
$P.$find("btnPrintNhtPdf01").prop("disabled", true); $P.$findn("btnPrintNhtPdf01").prop("disabled", true);
$P.$find("btnPrintNhtPdf02").prop("disabled", true); $P.$findn("btnPrintNhtPdf02").prop("disabled", true);
$P.$find("btnUpdateCrdn").prop("disabled", true); $P.$findn("btnUpdateCrdn").prop("disabled", true);
$P.$find("btnRemoveCrdn").prop("disabled", true); $P.$findn("btnRemoveCrdn").prop("disabled", true);
$P.$find("btnUpdateCrdnSttsCd").prop("disabled", true); $P.$findn("btnUpdateCrdnSttsCd").prop("disabled", true);
$P.$find("btnCreateCrdnReReg").prop("disabled", true); $P.$findn("btnCreateCrdnReReg").prop("disabled", true);
$P.$find("btnDeleteCrdnPayer").prop("disabled", true); $P.$findn("btnDeleteCrdnPayer").prop("disabled", true);
$P.$find("btnUpdatePayer").prop("disabled", true); $P.$findn("btnUpdatePayer").prop("disabled", true);
$P.$find("btnOpenVideoCapture").prop("disabled", true); $P.$findn("btnOpenVideoCapture").prop("disabled", true);
$P.$find("btnAddFile").prop("disabled", true); $P.$findn("btnAddFile").prop("disabled", true);
$P.$find("btnEditPhoto").prop("disabled", true); $P.$findn("btnEditPhoto").prop("disabled", true);
$P.$find("btnDeleteExistPhoto").prop("disabled", true); $P.$findn("btnDeleteExistPhoto").prop("disabled", true);
} else { } else {
$P.$find("btnPrintNhtPdf01").prop("disabled", false); $P.$findn("btnPrintNhtPdf01").prop("disabled", false);
$P.$find("btnPrintNhtPdf02").prop("disabled", false); $P.$findn("btnPrintNhtPdf02").prop("disabled", false);
$P.$find("btnUpdateCrdn").prop("disabled", false); $P.$findn("btnUpdateCrdn").prop("disabled", false);
$P.$find("btnRemoveCrdn").prop("disabled", false); $P.$findn("btnRemoveCrdn").prop("disabled", false);
$P.$find("btnUpdateCrdnSttsCd").prop("disabled", false); $P.$findn("btnUpdateCrdnSttsCd").prop("disabled", false);
$P.$find("btnCreateCrdnReReg").prop("disabled", false); $P.$findn("btnCreateCrdnReReg").prop("disabled", false);
$P.$find("btnDeleteCrdnPayer").prop("disabled", false); $P.$findn("btnDeleteCrdnPayer").prop("disabled", false);
$P.$find("btnUpdatePayer").prop("disabled", false); $P.$findn("btnUpdatePayer").prop("disabled", false);
$P.$find("btnOpenVideoCapture").prop("disabled", false); $P.$findn("btnOpenVideoCapture").prop("disabled", false);
$P.$find("btnAddFile").prop("disabled", false); $P.$findn("btnAddFile").prop("disabled", false);
$P.$find("btnEditPhoto").prop("disabled", false); $P.$findn("btnEditPhoto").prop("disabled", false);
$P.$find("btnDeleteExistPhoto").prop("disabled", false); $P.$findn("btnDeleteExistPhoto").prop("disabled", false);
} }
let taskSeCd = pageObject["${mainPageName}"].mainCtrl.getValue("TASK_SE_CD"); 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}]); $P.ctrlCrdnPayer.setData([${crdnPayerInfo}]);
// 4. 사진영역 설정 // 4. 사진영역 설정
settingPhotoMain("${pageName}", $P.find("crdnId") settingPhotoMain("${pageName}", $P.findn("crdnId")
, function() { , function() {
return { return {
vhrno: $P.$find("vhrno").val() vhrno: $P.$findn("vhrno").val()
, vhclNm: $P.$find("vhclNm").val() , vhclNm: $P.$findn("vhclNm").val()
, vhclColr: $P.$find("vhclColr").val() , vhclColr: $P.$findn("vhclColr").val()
}; };
} }
, async function(vhrnoEl) { , async function(vhrnoEl) {

@ -201,7 +201,7 @@
let $P = pageObject["${pageName}"]; let $P = pageObject["${pageName}"];
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEditOpnn")); $P.formFields = new FimsFormFields($P.selectorn("frmEditOpnn"));
// 파일 리스트 // 파일 리스트
$P.fileListArr = new Array(); $P.fileListArr = new Array();
@ -325,7 +325,7 @@
, data: params || {} , data: params || {}
, success: (resp) => { , success: (resp) => {
// 초기화 // 초기화
$P.find("frmEditOpnn").reset(); // 화면 초기화 $P.findn("frmEditOpnn").reset(); // 화면 초기화
$P.ctrlOpnn.dataset.clear(); // Dataset 초기화 $P.ctrlOpnn.dataset.clear(); // Dataset 초기화
// sprt02010-main 단속 정보 // sprt02010-main 단속 정보
@ -572,7 +572,7 @@
// 첨부파일 조회 // 첨부파일 조회
$P.fnSearchFileList = (opnnId) => { $P.fnSearchFileList = (opnnId) => {
let tableFileList = $P.find("fileList"); // table element 찾기 let tableFileList = $P.findn("fileList"); // table element 찾기
let fileLength = tableFileList.rows.length; let fileLength = tableFileList.rows.length;
// 기존 table에 자료가 존재하면 tableRow 삭제 // 기존 table에 자료가 존재하면 tableRow 삭제
@ -608,7 +608,7 @@
innerHtml += "pageObject['${pageName}'].fnFileDownload(" + item.FILE_ID + ");" + "><i class='bx bx-download me-1'></i></button>" + "</td>"; innerHtml += "pageObject['${pageName}'].fnFileDownload(" + item.FILE_ID + ");" + "><i class='bx bx-download me-1'></i></button>" + "</td>";
innerHtml += "</tr>"; innerHtml += "</tr>";
$P.$find("tbodyFileList").append(innerHtml); $P.$findn("tbodyFileList").append(innerHtml);
}); });
} }
}); });
@ -627,40 +627,40 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 업무 버튼 이벤트 // 업무 버튼 이벤트
$P.$find("btnCreateOpnnSbmsn").on("click", function() { $P.$findn("btnCreateOpnnSbmsn").on("click", function() {
$P.fnCreateOpnnSbmsn($P.$find("btnCreateOpnnSbmsn").attr("title")); // 의견제출 등록 $P.fnCreateOpnnSbmsn($P.$findn("btnCreateOpnnSbmsn").attr("title")); // 의견제출 등록
}); });
$P.$find("btnUpdateOpnnSbmsn").on("click", function() { $P.$findn("btnUpdateOpnnSbmsn").on("click", function() {
$P.fnUpdateOpnnSbmsn($P.$find("btnUpdateOpnnSbmsn").attr("title")); // 의견제출 수정 $P.fnUpdateOpnnSbmsn($P.$findn("btnUpdateOpnnSbmsn").attr("title")); // 의견제출 수정
}); });
$P.$find("btnRemoveOpnnSbmsn").on("click", function() { $P.$findn("btnRemoveOpnnSbmsn").on("click", function() {
$P.fnRemoveOpnnSbmsn($P.$find("btnRemoveOpnnSbmsn").attr("title")); // 의견제출 삭제 $P.fnRemoveOpnnSbmsn($P.$findn("btnRemoveOpnnSbmsn").attr("title")); // 의견제출 삭제
}); });
$P.$find("btnPrintDlbrDecsn").on("click", function() { $P.$findn("btnPrintDlbrDecsn").on("click", function() {
$P.fnPrintDlbrDecsn($P.$find("btnPrintDlbrDecsn").attr("title")); // 심의의결서 출력 $P.fnPrintDlbrDecsn($P.$findn("btnPrintDlbrDecsn").attr("title")); // 심의의결서 출력
}); });
$P.$find("btnUpdateOpnnSbmsnDlbrt").on("click", function() { $P.$findn("btnUpdateOpnnSbmsnDlbrt").on("click", function() {
$P.fnUpdateOpnnSbmsnDlbrt($P.$find("btnUpdateOpnnSbmsnDlbrt").attr("title")); // 의견제출 심의 $P.fnUpdateOpnnSbmsnDlbrt($P.$findn("btnUpdateOpnnSbmsnDlbrt").attr("title")); // 의견제출 심의
}); });
} }
// 초기 화면 설정 // 초기 화면 설정
$P.initForm = () => { $P.initForm = () => {
// 초기화 // 초기화
$P.find("frmEditOpnn").reset(); // 화면 초기화 $P.findn("frmEditOpnn").reset(); // 화면 초기화
$P.ctrlOpnn.dataset.clear(); // Dataset 초기화 $P.ctrlOpnn.dataset.clear(); // Dataset 초기화
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true // 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") { if (pageObject['${mainPageName}'].callPurpose == "view") {
$P.$find("btnCreateOpnnSbmsn").prop("disabled", true); $P.$findn("btnCreateOpnnSbmsn").prop("disabled", true);
$P.$find("btnUpdateOpnnSbmsn").prop("disabled", true); $P.$findn("btnUpdateOpnnSbmsn").prop("disabled", true);
$P.$find("btnRemoveOpnnSbmsn").prop("disabled", true); $P.$findn("btnRemoveOpnnSbmsn").prop("disabled", true);
$P.$find("btnUpdateOpnnSbmsnDlbrt").prop("disabled", true); $P.$findn("btnUpdateOpnnSbmsnDlbrt").prop("disabled", true);
} else { } else {
$P.$find("btnCreateOpnnSbmsn").prop("disabled", false); $P.$findn("btnCreateOpnnSbmsn").prop("disabled", false);
$P.$find("btnUpdateOpnnSbmsn").prop("disabled", false); $P.$findn("btnUpdateOpnnSbmsn").prop("disabled", false);
$P.$find("btnRemoveOpnnSbmsn").prop("disabled", false); $P.$findn("btnRemoveOpnnSbmsn").prop("disabled", false);
$P.$find("btnUpdateOpnnSbmsnDlbrt").prop("disabled", false); $P.$findn("btnUpdateOpnnSbmsnDlbrt").prop("disabled", false);
} }
} }

@ -211,7 +211,7 @@
let $P = pageObject["${pageName}"]; let $P = pageObject["${pageName}"];
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEditSndngDtl")); $P.formFields = new FimsFormFields($P.selectorn("frmEditSndngDtl"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -262,7 +262,7 @@
let key = item.data.SNDNG_DTL_ID; 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) => { let vrActno = Array.from({length: 20}, (x, i) => {
@ -281,7 +281,7 @@
.filter(txt => txt != null) .filter(txt => txt != null)
.join("\n"); .join("\n");
$P.$find("vrActno").val(vrActno); // 가상 계좌번호 $P.$findn("vrActno").val(vrActno); // 가상 계좌번호
} }
// 개별 반송 dialog // 개별 반송 dialog
@ -353,7 +353,7 @@
let key = item.data.SNDNG_DTL_ID; 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 sndngDtlList = $P.ctrlSndngDtl.dataset;
let empty = sndngDtlList.empty; let empty = sndngDtlList.empty;
let trs = empty ? [$P.find("tmpltNotFoundSndngDtl").innerHTML] : let trs = empty ? [$P.findn("tmpltNotFoundSndngDtl").innerHTML] :
sndngDtlList.inStrings($P.find("tmpltSndngDtlRows").innerHTML sndngDtlList.inStrings($P.findn("tmpltSndngDtlRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlSndngDtl.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');") .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 이벤트 // 공시송달 정보 DataTables에 click 이벤트
@ -378,13 +378,13 @@
let svbtcList = $P.ctrlSvbtc.dataset; let svbtcList = $P.ctrlSvbtc.dataset;
let empty = svbtcList.empty; let empty = svbtcList.empty;
let trs = empty ? [$P.find("tmpltNotFoundSvbtc").innerHTML] : let trs = empty ? [$P.findn("tmpltNotFoundSvbtc").innerHTML] :
svbtcList.inStrings($P.find("tmpltSvbtcRows").innerHTML svbtcList.inStrings($P.findn("tmpltSvbtcRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlSvbtc.setCurrent('" + dataItem.getValue("SNDNG_DTL_ID") + "');") .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 || {} , data: params || {}
, success: (resp) => { , success: (resp) => {
// 초기화 // 초기화
$P.find("frmEditSndngDtl").reset(); // 화면 초기화 $P.findn("frmEditSndngDtl").reset(); // 화면 초기화
$P.ctrlSndngDtl.dataset.clear(); // 발송 상세 Dataset 초기화 $P.ctrlSndngDtl.dataset.clear(); // 발송 상세 Dataset 초기화
$P.ctrlSvbtc.dataset.clear(); // 공시송달 Dataset 초기화 $P.ctrlSvbtc.dataset.clear(); // 공시송달 Dataset 초기화
@ -567,40 +567,40 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 업무 버튼 이벤트 // 업무 버튼 이벤트
$P.$find("btnCreateSndbk").on("click", function() { $P.$findn("btnCreateSndbk").on("click", function() {
$P.fnCreateSndbk($P.$find("btnCreateSndbk").attr("title")); // 개별 반송 등록 $P.fnCreateSndbk($P.$findn("btnCreateSndbk").attr("title")); // 개별 반송 등록
}); });
$P.$find("btnUpdateSndbk").on("click", function() { $P.$findn("btnUpdateSndbk").on("click", function() {
$P.fnUpdateSndbk($P.$find("btnUpdateSndbk").attr("title")); // 개별 반송 수정 $P.fnUpdateSndbk($P.$findn("btnUpdateSndbk").attr("title")); // 개별 반송 수정
}); });
$P.$find("btnRemoveSndbk").on("click", function() { $P.$findn("btnRemoveSndbk").on("click", function() {
$P.fnRemoveSndbk($P.$find("btnRemoveSndbk").attr("title")); // 개별 반송 삭제 $P.fnRemoveSndbk($P.$findn("btnRemoveSndbk").attr("title")); // 개별 반송 삭제
}); });
$P.$find("btnViewPostTrace").on("click", function() { $P.$findn("btnViewPostTrace").on("click", function() {
$P.fnViewPostTrace($P.$find("btnViewPostTrace").attr("title")); // 개별 반송 등록 $P.fnViewPostTrace($P.$findn("btnViewPostTrace").attr("title")); // 개별 반송 등록
}); });
// DataTables width 변경 조정 // DataTables width 변경 조정
Componentization.fnMakeResizableTable($P.find("tableRspnsSndngDtl")); Componentization.fnMakeResizableTable($P.findn("tableRspnsSndngDtl"));
Componentization.fnMakeResizableTable($P.find("tableRspnsSvbtc")); Componentization.fnMakeResizableTable($P.findn("tableRspnsSvbtc"));
} }
// 초기 화면 설정 // 초기 화면 설정
$P.initForm = () => { $P.initForm = () => {
// 초기화 // 초기화
$P.find("frmEditSndngDtl").reset(); // 화면 초기화 $P.findn("frmEditSndngDtl").reset(); // 화면 초기화
$P.ctrlSndngDtl.dataset.clear(); // 발송 상세 Dataset 초기화 $P.ctrlSndngDtl.dataset.clear(); // 발송 상세 Dataset 초기화
$P.ctrlSvbtc.dataset.clear(); // 공시송달 Dataset 초기화 $P.ctrlSvbtc.dataset.clear(); // 공시송달 Dataset 초기화
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true // 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") { if (pageObject['${mainPageName}'].callPurpose == "view") {
$P.$find("btnCreateSndbk").prop("disabled", true); $P.$findn("btnCreateSndbk").prop("disabled", true);
$P.$find("btnUpdateSndbk").prop("disabled", true); $P.$findn("btnUpdateSndbk").prop("disabled", true);
$P.$find("btnRemoveSndbk").prop("disabled", true); $P.$findn("btnRemoveSndbk").prop("disabled", true);
} else { } else {
$P.$find("btnCreateSndbk").prop("disabled", false); $P.$findn("btnCreateSndbk").prop("disabled", false);
$P.$find("btnUpdateSndbk").prop("disabled", false); $P.$findn("btnUpdateSndbk").prop("disabled", false);
$P.$find("btnRemoveSndbk").prop("disabled", false); $P.$findn("btnRemoveSndbk").prop("disabled", false);
} }
} }

@ -253,8 +253,8 @@
let $P = pageObject["${pageName}"]; let $P = pageObject["${pageName}"];
// FormFields // FormFields
$P.formFieldsRdct = new FimsFormFields($P.selector("frmEditRdct")); $P.formFieldsRdct = new FimsFormFields($P.selectorn("frmEditRdct"));
$P.formFieldsLevyExcl = new FimsFormFields($P.selector("frmEditLevyExcl")); $P.formFieldsLevyExcl = new FimsFormFields($P.selectorn("frmEditLevyExcl"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -474,7 +474,7 @@
let key = item.data.STTS_HSTRY_ID; 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; 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 crdnSttsHstryList = $P.ctrlCrdnSttsHstry.dataset;
let empty = crdnSttsHstryList.empty; let empty = crdnSttsHstryList.empty;
let trs = empty ? [$P.find("tmpltNotFoundCrdnSttsHstry").innerHTML] : let trs = empty ? [$P.findn("tmpltNotFoundCrdnSttsHstry").innerHTML] :
crdnSttsHstryList.inStrings($P.find("tmpltCrdnSttsHstryRows").innerHTML crdnSttsHstryList.inStrings($P.findn("tmpltCrdnSttsHstryRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlCrdnSttsHstry.setCurrent('" + dataItem.getValue("STTS_HSTRY_ID") + "');") .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 이벤트 // 납부자 이력 DataTables에 click 이벤트
@ -516,13 +516,13 @@
let payerHstryList = $P.ctrlPayerHstry.dataset; let payerHstryList = $P.ctrlPayerHstry.dataset;
let empty = payerHstryList.empty; let empty = payerHstryList.empty;
let trs = empty ? [$P.find("tmpltNotFoundPayerHstry").innerHTML] : let trs = empty ? [$P.findn("tmpltNotFoundPayerHstry").innerHTML] :
payerHstryList.inStrings($P.find("tmpltPayerHstryRows").innerHTML payerHstryList.inStrings($P.findn("tmpltPayerHstryRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlPayerHstry.setCurrent('" + dataItem.getValue("STTS_HSTRY_ID") + "');") .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 || {} , data: params || {}
, success: (resp) => { , success: (resp) => {
// 초기화 // 초기화
$P.find("frmEditRdct").reset(); // 감경 화면 초기화 $P.findn("frmEditRdct").reset(); // 감경 화면 초기화
$P.find("frmEditLevyExcl").reset(); // 부과제외 화면 초기화 $P.findn("frmEditLevyExcl").reset(); // 부과제외 화면 초기화
$P.ctrlRdct.dataset.clear(); // 감경 Dataset 초기화 $P.ctrlRdct.dataset.clear(); // 감경 Dataset 초기화
$P.ctrlLevyExcl.dataset.clear(); // 부과제외 Dataset 초기화 $P.ctrlLevyExcl.dataset.clear(); // 부과제외 Dataset 초기화
$P.ctrlCrdnSttsHstry.dataset.clear(); // 단속상태 이력 Dataset 초기화 $P.ctrlCrdnSttsHstry.dataset.clear(); // 단속상태 이력 Dataset 초기화
@ -808,52 +808,52 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 업무 버튼 이벤트 // 업무 버튼 이벤트
$P.$find("btnCreateRdct").on("click", function() { $P.$findn("btnCreateRdct").on("click", function() {
$P.fnCreateRdct($P.$find("btnCreateRdct").attr("title")); // 감경 등록 $P.fnCreateRdct($P.$findn("btnCreateRdct").attr("title")); // 감경 등록
}); });
$P.$find("btnUpdateRdct").on("click", function() { $P.$findn("btnUpdateRdct").on("click", function() {
$P.fnUpdateRdct($P.$find("btnUpdateRdct").attr("title")); // 감경 수정 $P.fnUpdateRdct($P.$findn("btnUpdateRdct").attr("title")); // 감경 수정
}); });
$P.$find("btnRemoveRdct").on("click", function() { $P.$findn("btnRemoveRdct").on("click", function() {
$P.fnRemoveRdct($P.$find("btnRemoveRdct").attr("title")); // 감경 등록 $P.fnRemoveRdct($P.$findn("btnRemoveRdct").attr("title")); // 감경 등록
}); });
$P.$find("btnCreateWrng").on("click", function() { $P.$findn("btnCreateWrng").on("click", function() {
$P.fnCreateWrng($P.$find("btnCreateWrng").attr("title")); // 계고 등록 $P.fnCreateWrng($P.$findn("btnCreateWrng").attr("title")); // 계고 등록
}); });
$P.$find("btnCreateLevyExcl").on("click", function() { $P.$findn("btnCreateLevyExcl").on("click", function() {
$P.fnCreateLevyExcl($P.$find("btnCreateLevyExcl").attr("title")); // 비부과 등록 $P.fnCreateLevyExcl($P.$findn("btnCreateLevyExcl").attr("title")); // 비부과 등록
}); });
$P.$find("btnUpdateLevyExcl").on("click", function() { $P.$findn("btnUpdateLevyExcl").on("click", function() {
$P.fnUpdateLevyExcl($P.$find("btnUpdateLevyExcl").attr("title")); // 부과제외 수정 $P.fnUpdateLevyExcl($P.$findn("btnUpdateLevyExcl").attr("title")); // 부과제외 수정
}); });
$P.$find("btnRemoveLevyExcl").on("click", function() { $P.$findn("btnRemoveLevyExcl").on("click", function() {
$P.fnRemoveLevyExcl($P.$find("btnRemoveLevyExcl").attr("title")); // 부과제외 삭제 $P.fnRemoveLevyExcl($P.$findn("btnRemoveLevyExcl").attr("title")); // 부과제외 삭제
}); });
// DataTables width 변경 조정 // DataTables width 변경 조정
Componentization.fnMakeResizableTable($P.find("tableRspnsCrdnSttsHstry")); Componentization.fnMakeResizableTable($P.findn("tableRspnsCrdnSttsHstry"));
Componentization.fnMakeResizableTable($P.find("tableRspnsPayerHstry")); Componentization.fnMakeResizableTable($P.findn("tableRspnsPayerHstry"));
} }
// 초기 화면 설정 // 초기 화면 설정
$P.initForm = () => { $P.initForm = () => {
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true // 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") { if (pageObject['${mainPageName}'].callPurpose == "view") {
$P.$find("btnCreateRdct").prop("disabled", true); $P.$findn("btnCreateRdct").prop("disabled", true);
$P.$find("btnUpdateRdct").prop("disabled", true); $P.$findn("btnUpdateRdct").prop("disabled", true);
$P.$find("btnRemoveRdct").prop("disabled", true); $P.$findn("btnRemoveRdct").prop("disabled", true);
$P.$find("btnCreateWrng").prop("disabled", true); $P.$findn("btnCreateWrng").prop("disabled", true);
$P.$find("btnCreateLevyExcl").prop("disabled", true); $P.$findn("btnCreateLevyExcl").prop("disabled", true);
$P.$find("btnUpdateLevyExcl").prop("disabled", true); $P.$findn("btnUpdateLevyExcl").prop("disabled", true);
$P.$find("btnRemoveLevyExcl").prop("disabled", true); $P.$findn("btnRemoveLevyExcl").prop("disabled", true);
} else { } else {
$P.$find("btnCreateRdct").prop("disabled", false); $P.$findn("btnCreateRdct").prop("disabled", false);
$P.$find("btnUpdateRdct").prop("disabled", false); $P.$findn("btnUpdateRdct").prop("disabled", false);
$P.$find("btnRemoveRdct").prop("disabled", false); $P.$findn("btnRemoveRdct").prop("disabled", false);
$P.$find("btnCreateWrng").prop("disabled", false); $P.$findn("btnCreateWrng").prop("disabled", false);
$P.$find("btnCreateLevyExcl").prop("disabled", false); $P.$findn("btnCreateLevyExcl").prop("disabled", false);
$P.$find("btnUpdateLevyExcl").prop("disabled", false); $P.$findn("btnUpdateLevyExcl").prop("disabled", false);
$P.$find("btnRemoveLevyExcl").prop("disabled", false); $P.$findn("btnRemoveLevyExcl").prop("disabled", false);
} }
} }

@ -262,7 +262,7 @@
let $P = pageObject["${pageName}"]; let $P = pageObject["${pageName}"];
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEditLevy")); $P.formFields = new FimsFormFields($P.selectorn("frmEditLevy"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -321,7 +321,7 @@
.filter(txt => txt != null) .filter(txt => txt != null)
.join("\n"); .join("\n");
$P.$find("vrActno").val(vrActno); // 가상 계좌번호 $P.$findn("vrActno").val(vrActno); // 가상 계좌번호
} }
/************************************************************************** /**************************************************************************
@ -348,7 +348,7 @@
, data: params || {} , data: params || {}
, success: (resp) => { , success: (resp) => {
// 초기화 // 초기화
$P.find("frmEditLevy").reset(); // 화면 초기화 $P.findn("frmEditLevy").reset(); // 화면 초기화
$P.ctrlLevy.dataset.clear(); // Dataset 초기화 $P.ctrlLevy.dataset.clear(); // Dataset 초기화
// sprt02010-main 단속 정보 // sprt02010-main 단속 정보
@ -431,27 +431,27 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 업무 버튼 이벤트 // 업무 버튼 이벤트
$P.$find("btnCreateLevy").on("click", function() { $P.$findn("btnCreateLevy").on("click", function() {
$P.fnCreateLevy($P.$find("btnCreateLevy").attr("title")); // 부과 등록 $P.fnCreateLevy($P.$findn("btnCreateLevy").attr("title")); // 부과 등록
}); });
$P.$find("btnCreateLevyExcl").on("click", function() { $P.$findn("btnCreateLevyExcl").on("click", function() {
$P.fnCreateLevyExcl($P.$find("btnCreateLevyExcl").attr("title")); // 부과 취소 $P.fnCreateLevyExcl($P.$findn("btnCreateLevyExcl").attr("title")); // 부과 취소
}); });
} }
// 초기 화면 설정 // 초기 화면 설정
$P.initForm = () => { $P.initForm = () => {
// 초기화 // 초기화
$P.find("frmEditLevy").reset(); // 화면 초기화 $P.findn("frmEditLevy").reset(); // 화면 초기화
$P.ctrlLevy.dataset.clear(); // Dataset 초기화 $P.ctrlLevy.dataset.clear(); // Dataset 초기화
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true // 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") { if (pageObject['${mainPageName}'].callPurpose == "view") {
$P.$find("btnCreateLevy").prop("disabled", true); $P.$findn("btnCreateLevy").prop("disabled", true);
$P.$find("btnCreateLevyExcl").prop("disabled", true); $P.$findn("btnCreateLevyExcl").prop("disabled", true);
} else { } else {
$P.$find("btnCreateLevy").prop("disabled", false); $P.$findn("btnCreateLevy").prop("disabled", false);
$P.$find("btnCreateLevyExcl").prop("disabled", false); $P.$findn("btnCreateLevyExcl").prop("disabled", false);
} }
} }

@ -232,7 +232,7 @@
let $P = pageObject["${pageName}"]; let $P = pageObject["${pageName}"];
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEditRcvmt")); $P.formFields = new FimsFormFields($P.selectorn("frmEditRcvmt"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -273,7 +273,7 @@
let key = item.data.RCVMT_ID; let key = item.data.RCVMT_ID;
$P.$find("tbodyRcvmtList").setCurrentRow(key); // datatable에 자료 셋팅 $P.$findn("tbodyRcvmtList").setCurrentRow(key); // datatable에 자료 셋팅
}; };
// 수납 등록 Dialog // 수납 등록 Dialog
@ -369,13 +369,13 @@
let rcvmtList = $P.ctrlRcvmt.dataset; let rcvmtList = $P.ctrlRcvmt.dataset;
let empty = rcvmtList.empty; let empty = rcvmtList.empty;
let trs = empty ? [$P.find("tmpltNotFoundRcvmt").innerHTML] : let trs = empty ? [$P.findn("tmpltNotFoundRcvmt").innerHTML] :
rcvmtList.inStrings($P.find("tmpltRcvmtRows").innerHTML rcvmtList.inStrings($P.findn("tmpltRcvmtRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrl.setCurrent('" + dataItem.getValue("RCVMT_ID") + "');") .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 || {} , data: params || {}
, success: (resp) => { , success: (resp) => {
// 초기화 // 초기화
$P.find("frmEditRcvmt").reset(); // 화면 초기화 $P.findn("frmEditRcvmt").reset(); // 화면 초기화
$P.ctrlRcvmt.dataset.clear(); // 수납 Dataset 초기화 $P.ctrlRcvmt.dataset.clear(); // 수납 Dataset 초기화
// sprt02010-main 단속 정보 // sprt02010-main 단속 정보
@ -554,47 +554,47 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 업무 버튼 이벤트 // 업무 버튼 이벤트
$P.$find("btnCreateRcvmt").on("click", function() { $P.$findn("btnCreateRcvmt").on("click", function() {
$P.fnCreateRcvmt($P.$find("btnCreateRcvmt").attr("title")); // 수납 등록 $P.fnCreateRcvmt($P.$findn("btnCreateRcvmt").attr("title")); // 수납 등록
}); });
$P.$find("btnUpdateRcvmtRtrc").on("click", function() { $P.$findn("btnUpdateRcvmtRtrc").on("click", function() {
$P.fnUpdateRcvmtRtrcn($P.$find("btnUpdateRcvmtRtrc").attr("title")); // 수납 취소 $P.fnUpdateRcvmtRtrcn($P.$findn("btnUpdateRcvmtRtrc").attr("title")); // 수납 취소
}); });
$P.$find("btnRemoveRcvmt").on("click", function() { $P.$findn("btnRemoveRcvmt").on("click", function() {
$P.fnRemoveRcvmt($P.$find("btnRemoveRcvmt").attr("title")); // 수납 삭제 $P.fnRemoveRcvmt($P.$findn("btnRemoveRcvmt").attr("title")); // 수납 삭제
}); });
// DataTables width 변경 조정 // DataTables width 변경 조정
Componentization.fnMakeResizableTable($P.find("tableRspnsRcvmt")); Componentization.fnMakeResizableTable($P.findn("tableRspnsRcvmt"));
} }
// 초기 화면 설정 // 초기 화면 설정
$P.initForm = () => { $P.initForm = () => {
// 초기화 // 초기화
$P.find("frmEditRcvmt").reset(); // 화면 초기화 $P.findn("frmEditRcvmt").reset(); // 화면 초기화
$P.ctrlRcvmt.dataset.clear(); // 수납 Dataset 초기화 $P.ctrlRcvmt.dataset.clear(); // 수납 Dataset 초기화
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true // 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") { if (pageObject['${mainPageName}'].callPurpose == "view") {
$P.$find("btnCreateRcvmt").prop("disabled", true); $P.$findn("btnCreateRcvmt").prop("disabled", true);
$P.$find("btnUpdateRcvmtRtrc").prop("disabled", true); $P.$findn("btnUpdateRcvmtRtrc").prop("disabled", true);
$P.$find("btnRemoveRcvmt").prop("disabled", true); $P.$findn("btnRemoveRcvmt").prop("disabled", true);
} else { } else {
$P.$find("btnCreateRcvmt").prop("disabled", false); $P.$findn("btnCreateRcvmt").prop("disabled", false);
$P.$find("btnUpdateRcvmtRtrc").prop("disabled", false); $P.$findn("btnUpdateRcvmtRtrc").prop("disabled", false);
$P.$find("btnRemoveRcvmt").prop("disabled", false); $P.$findn("btnRemoveRcvmt").prop("disabled", false);
} }
// 주정차위반, 전용차로위반과태료 외에는 수납 등록, 취소, 삭제 기능이 없어야 한다. // 주정차위반, 전용차로위반과태료 외에는 수납 등록, 취소, 삭제 기능이 없어야 한다.
let taskSeCd = pageObject["${mainPageName}"].mainCtrl.getValue("TASK_SE_CD"); let taskSeCd = pageObject["${mainPageName}"].mainCtrl.getValue("TASK_SE_CD");
if ("BPV,PVS".indexOf("taskSeCd") != -1) { if ("BPV,PVS".indexOf("taskSeCd") != -1) {
$P.$find("btnCreateRcvmt").show(); $P.$findn("btnCreateRcvmt").show();
$P.$find("btnUpdateRcvmtRtrc").show(); $P.$findn("btnUpdateRcvmtRtrc").show();
$P.$find("btnRemoveRcvmt").show(); $P.$findn("btnRemoveRcvmt").show();
} else { } else {
$P.$find("btnCreateRcvmt").hide(); $P.$findn("btnCreateRcvmt").hide();
$P.$find("btnUpdateRcvmtRtrc").hide(); $P.$findn("btnUpdateRcvmtRtrc").hide();
$P.$find("btnRemoveRcvmt").hide(); $P.$findn("btnRemoveRcvmt").hide();
} }
} }

@ -102,7 +102,7 @@
let $P = pageObject["${pageName}"]; let $P = pageObject["${pageName}"];
// FormFields // FormFields
$P.formFields = new FimsFormFields($P.selector("frmEditCvlcptDscsn")); $P.formFields = new FimsFormFields($P.selectorn("frmEditCvlcptDscsn"));
/************************************************************************** /**************************************************************************
* DatasetControl * DatasetControl
@ -136,7 +136,7 @@
let key = item.data.CVLCPT_DSCSN_ID; let key = item.data.CVLCPT_DSCSN_ID;
$P.$find("tbodyCvlcptDscsnList").setCurrentRow(key); // datatable에 자료 셋팅 $P.$findn("tbodyCvlcptDscsnList").setCurrentRow(key); // datatable에 자료 셋팅
}; };
// 민원 상담 내용 Dialog // 민원 상담 내용 Dialog
@ -202,13 +202,13 @@
let cvlcptDscsnList = $P.ctrlCvlcptDscsn.dataset; let cvlcptDscsnList = $P.ctrlCvlcptDscsn.dataset;
let empty = cvlcptDscsnList.empty; let empty = cvlcptDscsnList.empty;
let trs = empty ? [$P.find("tmpltNotFoundCvlcptDscsn").innerHTML] : let trs = empty ? [$P.findn("tmpltNotFoundCvlcptDscsn").innerHTML] :
cvlcptDscsnList.inStrings($P.find("tmpltCvlcptDscsnRows").innerHTML cvlcptDscsnList.inStrings($P.findn("tmpltCvlcptDscsnRows").innerHTML
, (str, dataItem) => str , (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].ctrlCvlcptDscsn.setCurrent('" + dataItem.getValue("CVLCPT_DSCSN_ID") + "');") .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 || {} , data: params || {}
, success: (resp) => { , success: (resp) => {
// 초기화 // 초기화
$P.find("frmEditCvlcptDscsn").reset(); // 화면 초기화 $P.findn("frmEditCvlcptDscsn").reset(); // 화면 초기화
$P.ctrlCvlcptDscsn.dataset.clear(); // 수납 Dataset 초기화 $P.ctrlCvlcptDscsn.dataset.clear(); // 수납 Dataset 초기화
// Dataset 셋팅 // Dataset 셋팅
@ -340,35 +340,35 @@
// 이벤트 설정 // 이벤트 설정
$P.setEvent = () => { $P.setEvent = () => {
// 업무 버튼 이벤트 // 업무 버튼 이벤트
$P.$find("btnCreateCvlcptDscsn").on("click", function() { $P.$findn("btnCreateCvlcptDscsn").on("click", function() {
$P.fnCreateCvlcptDscsn($P.$find("btnCreateCvlcptDscsn").attr("title")); // 민원상담 등록 $P.fnCreateCvlcptDscsn($P.$findn("btnCreateCvlcptDscsn").attr("title")); // 민원상담 등록
}); });
$P.$find("btnUpdateCvlcptDscsn").on("click", function() { $P.$findn("btnUpdateCvlcptDscsn").on("click", function() {
$P.fnCreateCvlcptDscsn($P.$find("btnUpdateCvlcptDscsn").attr("title")); // 민원상담 수정 $P.fnCreateCvlcptDscsn($P.$findn("btnUpdateCvlcptDscsn").attr("title")); // 민원상담 수정
}); });
$P.$find("btnRemoveCvlcptDscsn").on("click", function() { $P.$findn("btnRemoveCvlcptDscsn").on("click", function() {
$P.fnRemoveCvlcptDscsn($P.$find("btnRemoveCvlcptDscsn").attr("title")); // 민원상담 삭제 $P.fnRemoveCvlcptDscsn($P.$findn("btnRemoveCvlcptDscsn").attr("title")); // 민원상담 삭제
}); });
// DataTables width 변경 조정 // DataTables width 변경 조정
Componentization.fnMakeResizableTable($P.find("tableRspnsCvlcptDscsn")); Componentization.fnMakeResizableTable($P.findn("tableRspnsCvlcptDscsn"));
} }
// 초기 화면 설정 // 초기 화면 설정
$P.initForm = () => { $P.initForm = () => {
// 초기화 // 초기화
$P.find("frmEditCvlcptDscsn").reset(); // 화면 초기화 $P.findn("frmEditCvlcptDscsn").reset(); // 화면 초기화
$P.ctrlCvlcptDscsn.dataset.clear(); // 수납 Dataset 초기화 $P.ctrlCvlcptDscsn.dataset.clear(); // 수납 Dataset 초기화
// 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true // 화면 호출(callPurpose)이 view라면 버튼 비활성화 disabled = true
if (pageObject['${mainPageName}'].callPurpose == "view") { if (pageObject['${mainPageName}'].callPurpose == "view") {
$P.$find("btnCreateCvlcptDscsn").prop("disabled", true); $P.$findn("btnCreateCvlcptDscsn").prop("disabled", true);
$P.$find("btnUpdateCvlcptDscsn").prop("disabled", true); $P.$findn("btnUpdateCvlcptDscsn").prop("disabled", true);
$P.$find("btnRemoveCvlcptDscsn").prop("disabled", true); $P.$findn("btnRemoveCvlcptDscsn").prop("disabled", true);
} else { } else {
$P.$find("btnCreateCvlcptDscsn").prop("disabled", false); $P.$findn("btnCreateCvlcptDscsn").prop("disabled", false);
$P.$find("btnUpdateCvlcptDscsn").prop("disabled", false); $P.$findn("btnUpdateCvlcptDscsn").prop("disabled", false);
$P.$find("btnRemoveCvlcptDscsn").prop("disabled", false); $P.$findn("btnRemoveCvlcptDscsn").prop("disabled", false);
} }
} }

@ -215,12 +215,12 @@ $(document).ready(function(){
var DS = $P.alt.dataset; var DS = $P.alt.dataset;
var empty = DS.empty; var empty = DS.empty;
var notFound = [""]; var notFound = [""];
var found = $P.find("detailGridTbodyTemplate").innerHTML; var found = $P.findn("detailGridTbodyTemplate").innerHTML;
var replacer = (str, dataItem) => str var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "pageObject['${pageName}'].clickDetailGrid('" + dataItem.getValue("DATA_ID") + "');") .replace(/{onclick}/gi, "pageObject['${pageName}'].clickDetailGrid('" + dataItem.getValue("DATA_ID") + "');")
.replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblClickDetailGrid('" + dataItem.getValue("DATA_ID") + "');"); .replace(/{ondblclick}/gi, "pageObject['${pageName}'].dblClickDetailGrid('" + dataItem.getValue("DATA_ID") + "');");
var trs = empty ? notFound : DS.inStrings(found, replacer); 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")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
@ -231,25 +231,25 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $P.fnReset = () => {
var searchForm = $P.$find("frmSearch"); var searchForm = $P.$findn("frmSearch");
searchForm.find("input[type='radio'][name='taskSeCd'][value='']").prop("checked", true); searchForm.find("input[type='radio'][name='taskSeCd'][value='']").prop("checked", true);
$P.$find("sggCd").find("option:eq(1)").prop("selected", true); $P.$findn("sggCd").find("option:eq(1)").prop("selected", true);
$P.$find("dayColumn").find("option:eq(0)").prop("selected", true); $P.$findn("dayColumn").find("option:eq(0)").prop("selected", true);
$P.$find("firstDay").datepicker('setDate', TODAY()); $P.$findn("firstDay").datepicker('setDate', TODAY());
$P.$find("lastDay").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("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
searchForMenu.find("input[type='checkbox']").prop("checked", false); searchForMenu.find("input[type='checkbox']").prop("checked", false);
searchForMenu.find("input[type='text']").val(""); searchForMenu.find("input[type='text']").val("");
$P.$find("groupLevel1").find("option:eq(0)").prop("selected", true); $P.$findn("groupLevel1").find("option:eq(0)").prop("selected", true);
$P.$find("groupLevel2").val(""); $P.$findn("groupLevel2").val("");
$P.$find("groupLevel3").val(""); $P.$findn("groupLevel3").val("");
$P.$find("groupLevel4").val(""); $P.$findn("groupLevel4").val("");
$P.$find("preset").find("option:eq(0)").prop("selected", true); $P.$findn("preset").find("option:eq(0)").prop("selected", true);
$P.$find("refListYn").find("option:eq(0)").prop("selected", true); $P.$findn("refListYn").find("option:eq(0)").prop("selected", true);
$P.changeGrid(); $P.changeGrid();
$P.showDetailGrid(); $P.showDetailGrid();
@ -259,14 +259,14 @@ $(document).ready(function(){
$P.getGroupInfoList = () => { $P.getGroupInfoList = () => {
var groupInfoLiost = []; var groupInfoLiost = [];
var selected = $P.$find("groupLevel1").find(":selected"); var selected = $P.$findn("groupLevel1").find(":selected");
groupInfoLiost.push({ groupInfoLiost.push({
refCol : selected[0].dataset.refCol, refCol : selected[0].dataset.refCol,
ctgrType : selected[0].dataset.ctgrType, ctgrType : selected[0].dataset.ctgrType,
dtlCtgr : selected[0].dataset.dtlCtgr dtlCtgr : selected[0].dataset.dtlCtgr
}) })
selected = $P.$find("groupLevel2").find(":selected"); selected = $P.$findn("groupLevel2").find(":selected");
if(selected.val() == ""){ if(selected.val() == ""){
return groupInfoLiost; return groupInfoLiost;
} }
@ -277,7 +277,7 @@ $(document).ready(function(){
dtlCtgr : selected[0].dataset.dtlCtgr dtlCtgr : selected[0].dataset.dtlCtgr
}) })
selected = $P.$find("groupLevel3").find(":selected"); selected = $P.$findn("groupLevel3").find(":selected");
if(selected.val() == ""){ if(selected.val() == ""){
return groupInfoLiost; return groupInfoLiost;
} }
@ -288,7 +288,7 @@ $(document).ready(function(){
dtlCtgr : selected[0].dataset.dtlCtgr dtlCtgr : selected[0].dataset.dtlCtgr
}) })
selected = $P.$find("groupLevel4").find(":selected"); selected = $P.$findn("groupLevel4").find(":selected");
if(selected.val() == ""){ if(selected.val() == ""){
return groupInfoLiost; return groupInfoLiost;
} }
@ -306,7 +306,7 @@ $(document).ready(function(){
$P.getNumberValueInfoList = () => { $P.getNumberValueInfoList = () => {
var numberValuefoLiost = []; var numberValuefoLiost = [];
var preset = $P.$find("preset").find(":selected"); var preset = $P.$findn("preset").find(":selected");
if(preset.val() == "totCnt"){ if(preset.val() == "totCnt"){
numberValuefoLiost = [{ aggregateType : "count" }]; numberValuefoLiost = [{ aggregateType : "count" }];
@ -328,11 +328,11 @@ $(document).ready(function(){
var groupLevel4subset = $P.getCodeSubsetInfo("groupLevel4"); var groupLevel4subset = $P.getCodeSubsetInfo("groupLevel4");
var subsetForGroup = []; var subsetForGroup = [];
subsetForGroup = subsetForGroup.concat(groupLevel1subset); subsetForGroup = subsetForGroup.concat(groupLevel1subset);
if($P.$find("groupLevel2").val() != ""){ if($P.$findn("groupLevel2").val() != ""){
subsetForGroup = subsetForGroup.concat(groupLevel2subset); subsetForGroup = subsetForGroup.concat(groupLevel2subset);
if($P.$find("groupLevel3").val() != ""){ if($P.$findn("groupLevel3").val() != ""){
subsetForGroup = subsetForGroup.concat(groupLevel3subset); subsetForGroup = subsetForGroup.concat(groupLevel3subset);
if($P.$find("groupLevel4").val() != ""){ if($P.$findn("groupLevel4").val() != ""){
subsetForGroup = subsetForGroup.concat(groupLevel4subset); subsetForGroup = subsetForGroup.concat(groupLevel4subset);
} }
} }
@ -353,7 +353,7 @@ $(document).ready(function(){
$P.getCodeSubsetInfo = (elementName) => { $P.getCodeSubsetInfo = (elementName) => {
var result = []; var result = [];
var selected = $P.$find(elementName).find(":selected"); var selected = $P.$findn(elementName).find(":selected");
if(window[selected.val()+"_codeSubsetInfoList"] != undefined){ if(window[selected.val()+"_codeSubsetInfoList"] != undefined){
result = window[selected.val()+"_codeSubsetInfoList"]; result = window[selected.val()+"_codeSubsetInfoList"];
} }
@ -385,64 +385,64 @@ $(document).ready(function(){
$P.changeGrid = () => { $P.changeGrid = () => {
//그룹단위 초기화 //그룹단위 초기화
if($P.$find("groupLevel2").val() == ""){ if($P.$findn("groupLevel2").val() == ""){
$P.$find("groupLevel3").val(""); $P.$findn("groupLevel3").val("");
$P.$find("groupLevel3").attr("disabled","disabled"); $P.$findn("groupLevel3").attr("disabled","disabled");
} else { } else {
$P.$find("groupLevel3").removeAttr("disabled"); $P.$findn("groupLevel3").removeAttr("disabled");
} }
if($P.$find("groupLevel3").val() == ""){ if($P.$findn("groupLevel3").val() == ""){
$P.$find("groupLevel4").val(""); $P.$findn("groupLevel4").val("");
$P.$find("groupLevel4").attr("disabled","disabled"); $P.$findn("groupLevel4").attr("disabled","disabled");
} else { } else {
$P.$find("groupLevel4").removeAttr("disabled"); $P.$findn("groupLevel4").removeAttr("disabled");
} }
//그리드 초기화 //그리드 초기화
$P.$find("masterThead").html(""); $P.$findn("masterThead").html("");
$P.$find("masterTbody").html(""); $P.$findn("masterTbody").html("");
$P.$find("detailThead").html(""); $P.$findn("detailThead").html("");
$P.$find("detailTbody").html(""); $P.$findn("detailTbody").html("");
//상단 그리드 //상단 그리드
var level1Text = $P.$find("groupLevel1").find(":selected").text(); var level1Text = $P.$findn("groupLevel1").find(":selected").text();
$P.$find("masterThead").append("<th class='text-orange' style='width:160px'>"+level1Text+"</th>"); $P.$findn("masterThead").append("<th class='text-orange' style='width:160px'>"+level1Text+"</th>");
if($P.$find("groupLevel2").val() != ""){ if($P.$findn("groupLevel2").val() != ""){
var level2Text = $P.$find("groupLevel2").find(":selected").text(); var level2Text = $P.$findn("groupLevel2").find(":selected").text();
$P.$find("masterThead").append("<th class='text-orange' style='width:160px'>"+level2Text+"</th>"); $P.$findn("masterThead").append("<th class='text-orange' style='width:160px'>"+level2Text+"</th>");
if($P.$find("groupLevel3").val() != ""){ if($P.$findn("groupLevel3").val() != ""){
var level3Text = $P.$find("groupLevel3").find(":selected").text(); var level3Text = $P.$findn("groupLevel3").find(":selected").text();
$P.$find("masterThead").append("<th class='text-orange' style='width:160px'>"+level3Text+"</th>"); $P.$findn("masterThead").append("<th class='text-orange' style='width:160px'>"+level3Text+"</th>");
if($P.$find("groupLevel4").val() != ""){ if($P.$findn("groupLevel4").val() != ""){
var level4Text = $P.$find("groupLevel4").find(":selected").text(); var level4Text = $P.$findn("groupLevel4").find(":selected").text();
$P.$find("masterThead").append("<th class='text-orange' style='width:160px'>"+level4Text+"</th>"); $P.$findn("masterThead").append("<th class='text-orange' style='width:160px'>"+level4Text+"</th>");
} }
} }
} }
var preset = $P.$find("preset").find(":selected"); var preset = $P.$findn("preset").find(":selected");
var cols = preset.text().split(","); var cols = preset.text().split(",");
for(var i=0; i < cols.length; i++){ for(var i=0; i < cols.length; i++){
$P.$find("masterThead").append("<th style='width: 160px;'>"+cols[i]+"</th>"); $P.$findn("masterThead").append("<th style='width: 160px;'>"+cols[i]+"</th>");
} }
$P.$find("masterThead").append("<th class='cmn dummy-th'></th>"); $P.$findn("masterThead").append("<th class='cmn dummy-th'></th>");
//하단 그리드 //하단 그리드
var detailTheadTemplate = $P.find("detailGridTheadTemplate"); var detailTheadTemplate = $P.findn("detailGridTheadTemplate");
$P.$find("detailThead").append(detailTheadTemplate.innerHTML); $P.$findn("detailThead").append(detailTheadTemplate.innerHTML);
} }
//상세 그리드 표시 //상세 그리드 표시
$P.showDetailGrid = () => { $P.showDetailGrid = () => {
if($P.$find("refListYn").val() == "Y"){ if($P.$findn("refListYn").val() == "Y"){
$P.$find("detailArea").removeAttr("hidden"); $P.$findn("detailArea").removeAttr("hidden");
} else { } else {
$P.$find("detailArea").attr("hidden","hidden"); $P.$findn("detailArea").attr("hidden","hidden");
} }
} }
@ -450,7 +450,7 @@ $(document).ready(function(){
$P.searchStat = () => { $P.searchStat = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var formFieldsData = formFields.get(); var formFieldsData = formFields.get();
if(formFieldsData.firstDay == "" || formFieldsData.lastDay == ""){ if(formFieldsData.firstDay == "" || formFieldsData.lastDay == ""){
@ -478,9 +478,9 @@ $(document).ready(function(){
statQuery.schOnlyRent = formFieldsData.schOnlyRent; statQuery.schOnlyRent = formFieldsData.schOnlyRent;
//통계 유형 //통계 유형
var preset = $P.$find("preset").find(":selected"); var preset = $P.$findn("preset").find(":selected");
if(preset.val() == "totCnt"){ if(preset.val() == "totCnt"){
statQuery.statDomain = $P.$find("defaultStatDomain").val(); statQuery.statDomain = $P.$findn("defaultStatDomain").val();
} else { } else {
statQuery.statDomain = preset[0].dataset.statDomain; statQuery.statDomain = preset[0].dataset.statDomain;
} }
@ -516,8 +516,8 @@ $(document).ready(function(){
//통계 그리드 렌더링 //통계 그리드 렌더링
$P.renderStat = (stat) => { $P.renderStat = (stat) => {
$P.$find("masterTbody").html(""); $P.$findn("masterTbody").html("");
$P.$find("detailTbody").html(""); $P.$findn("detailTbody").html("");
refListMap = {}; refListMap = {};
var statItems = stat.statItems; var statItems = stat.statItems;
@ -572,59 +572,59 @@ $(document).ready(function(){
tr += "</tr>"; tr += "</tr>";
$P.$find("masterTbody").append(tr); $P.$findn("masterTbody").append(tr);
} }
$P.$find("masterTbody").find("tr").attr("onclick","pageObject['${pageName}'].clickMasterGrid(this);"); $P.$findn("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("ondblclick","pageObject['${pageName}'].dblClickMasterGrid(this);");
} }
$P.clickMasterGrid = (obj) => { $P.clickMasterGrid = (obj) => {
var dataKey = obj.dataset.key; var dataKey = obj.dataset.key;
$P.$find("masterTbody").setCurrentRow(dataKey); $P.$findn("masterTbody").setCurrentRow(dataKey);
} }
$P.dblClickMasterGrid = (obj) => { $P.dblClickMasterGrid = (obj) => {
var dataKey = obj.dataset.key; var dataKey = obj.dataset.key;
$P.alt.dataset.setData(refListMap[dataKey]); $P.alt.dataset.setData(refListMap[dataKey]);
var offset = $P.$find("masterArea").offset(); var offset = $P.$findn("masterArea").offset();
$P.$find("statWrapper").animate({scrollTop : offset.top}, 400); $P.$findn("statWrapper").animate({scrollTop : offset.top}, 400);
} }
$P.clickDetailGrid = (key) => { $P.clickDetailGrid = (key) => {
$P.$find("detailTbody").setCurrentRow(key); $P.$findn("detailTbody").setCurrentRow(key);
} }
$P.dblClickDetailGrid = (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.$findn("groupLevel1").append($P.findn("groupLevelDatalist").innerHTML);
$P.$find("groupLevel2").append($P.find("groupLevelDatalist").innerHTML); $P.$findn("groupLevel2").append($P.findn("groupLevelDatalist").innerHTML);
$P.$find("groupLevel3").append($P.find("groupLevelDatalist").innerHTML); $P.$findn("groupLevel3").append($P.findn("groupLevelDatalist").innerHTML);
$P.$find("groupLevel4").append($P.find("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 * element.on
**************************************************************************/ **************************************************************************/
$P.$find("btnReset").on('click', () => $P.fnReset()); $P.$findn("btnReset").on('click', () => $P.fnReset());
$P.$find("btnSearch").on('click', () => $P.searchStat()); $P.$findn("btnSearch").on('click', () => $P.searchStat());
$P.$find("groupLevel1").on('change', () => $P.changeGrid()); $P.$findn("groupLevel1").on('change', () => $P.changeGrid());
$P.$find("groupLevel2").on('change', () => $P.changeGrid()); $P.$findn("groupLevel2").on('change', () => $P.changeGrid());
$P.$find("groupLevel3").on('change', () => $P.changeGrid()); $P.$findn("groupLevel3").on('change', () => $P.changeGrid());
$P.$find("groupLevel4").on('change', () => $P.changeGrid()); $P.$findn("groupLevel4").on('change', () => $P.changeGrid());
$P.$find("preset").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(); $P.fnReset();
}); });

@ -269,36 +269,36 @@ $(document).ready(function(){
$P.otptGlobalStng = {}; $P.otptGlobalStng = {};
$P.otptArtclStngMap = {}; $P.otptArtclStngMap = {};
$P.$find("btnSave").attr("disabled","disabled"); $P.$findn("btnSave").attr("disabled","disabled");
$P.$find("btnUniqueAdd").attr("disabled","disabled"); $P.$findn("btnUniqueAdd").attr("disabled","disabled");
$P.$find("btnUniqueDel").attr("disabled","disabled"); $P.$findn("btnUniqueDel").attr("disabled","disabled");
$P.$find("btnMultipleAdd").attr("disabled","disabled"); $P.$findn("btnMultipleAdd").attr("disabled","disabled");
$P.$find("btnMultipleDel").attr("disabled","disabled"); $P.$findn("btnMultipleDel").attr("disabled","disabled");
$P.fnLoad = () => { $P.fnLoad = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var query = formFields.get(); var query = formFields.get();
ajax.post({ ajax.post({
url : wctx.url("/stng/stng01/010/info.do"), url : wctx.url("/stng/stng01/010/info.do"),
data : query, data : query,
success : (resp) => { success : (resp) => {
$P.$find("btnSave").removeAttr("disabled"); $P.$findn("btnSave").removeAttr("disabled");
$P.$find("btnUniqueAdd").removeAttr("disabled"); $P.$findn("btnUniqueAdd").removeAttr("disabled");
$P.$find("btnUniqueDel").removeAttr("disabled"); $P.$findn("btnUniqueDel").removeAttr("disabled");
$P.$find("btnMultipleAdd").removeAttr("disabled"); $P.$findn("btnMultipleAdd").removeAttr("disabled");
$P.$find("btnMultipleDel").removeAttr("disabled"); $P.$findn("btnMultipleDel").removeAttr("disabled");
$P.$find("currentOtpt").text(""); $P.$findn("currentOtpt").text("");
$P.$find("otptGlobalStng").html(""); $P.$findn("otptGlobalStng").html("");
$P.$find("tbodyUnique").html(""); $P.$findn("tbodyUnique").html("");
$P.$find("tbodyMultiple").html(""); $P.$findn("tbodyMultiple").html("");
$P.$find("frmEdit").find("[name='sggCd']").val(query.sggCd); $P.$findn("frmEdit").find("[name='sggCd']").val(query.sggCd);
$P.$find("frmEdit").find("[name='taskSeCd']").val(query.taskSeCd); $P.$findn("frmEdit").find("[name='taskSeCd']").val(query.taskSeCd);
$P.$find("frmEdit").find("[name='sndngSeCd']").val(query.sndngSeCd); $P.$findn("frmEdit").find("[name='sndngSeCd']").val(query.sndngSeCd);
$P.$find("frmEdit").find("[name='paperSeCd']").val(query.paperSeCd); $P.$findn("frmEdit").find("[name='paperSeCd']").val(query.paperSeCd);
$P.$find("currentOtpt").text(resp.otptStngTitle); $P.$findn("currentOtpt").text(resp.otptStngTitle);
if(resp.otptGlobalStng != null){ if(resp.otptGlobalStng != null){
$P.otptGlobalStng = resp.otptGlobalStng; $P.otptGlobalStng = resp.otptGlobalStng;
} else { } else {
@ -327,17 +327,17 @@ $(document).ready(function(){
//출력 전역 설정 렌더링 //출력 전역 설정 렌더링
$P.renderOtptGlobalStng = (otptGlobalStng) => { $P.renderOtptGlobalStng = (otptGlobalStng) => {
var paperSeCd = $P.$find("frmEdit").find("[name='paperSeCd']").val(); var paperSeCd = $P.$findn("frmEdit").find("[name='paperSeCd']").val();
var editForm = $P.$find("frmEdit"); var editForm = $P.$findn("frmEdit");
//설정ID //설정ID
$P.$find("otptGlobalStng").append("<input type='hidden' name='otptBscId' />"); $P.$findn("otptGlobalStng").append("<input type='hidden' name='otptBscId' />");
editForm.find("input[name='otptBscId']").val(otptGlobalStng.OTPT_BSC_ID); 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"){ 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){ if(otptGlobalStng.FOLD_LINE_PSTN_SE_CD == null){
otptGlobalStng.FOLD_LINE_PSTN_SE_CD = ""; otptGlobalStng.FOLD_LINE_PSTN_SE_CD = "";
@ -347,19 +347,19 @@ $(document).ready(function(){
.prop("checked", true); .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 == ""){ if(otptGlobalStng.BCRN_IMG_PATH == null || otptGlobalStng.BCRN_IMG_PATH == ""){
$P.$find("fileStatus").text("없음"); $P.$findn("fileStatus").text("없음");
$P.$find("fileStatus").attr("title",""); $P.$findn("fileStatus").attr("title","");
$P.$find("btnBgDown").attr("hidden","hidden"); $P.$findn("btnBgDown").attr("hidden","hidden");
} else { } else {
$P.$find("fileStatus").text("있음"); $P.$findn("fileStatus").text("있음");
$P.$find("fileStatus").attr("title",otptGlobalStng.BCRN_IMG_FILE_NM); $P.$findn("fileStatus").attr("title",otptGlobalStng.BCRN_IMG_FILE_NM);
$P.$find("btnBgDown").removeAttr("hidden"); $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 == ""){ if(otptGlobalStng.OTPT_PHOTO_CNT == null || otptGlobalStng.OTPT_PHOTO_CNT == ""){
otptGlobalStng.OTPT_PHOTO_CNT = 0; otptGlobalStng.OTPT_PHOTO_CNT = 0;
} }
@ -378,13 +378,13 @@ $(document).ready(function(){
for(var i=0; i < dataList.length; i++){ for(var i=0; i < dataList.length; i++){
var data = dataList[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(/{OTPT_FORM_ID}/gi, data.OTPT_FORM_ID);
found = found.replace(/{COMPONENTS}/gi, components); 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,"fontNm"));
FimsComponentization.fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontColr")); 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")); .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"){ if(tbodyName == "tbodyUnique"){
var el = $P.fnGetElement(this,"otptArtclNm"); var el = $P.fnGetElement(this,"otptArtclNm");
@ -438,7 +438,7 @@ $(document).ready(function(){
var rowSpinButtons = $(this).find("td[data-col='otptArtclSeq']").find("button"); 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) => { $P.fnGetProto = (prototypeList, otptArtclNm, stngItemAttrNm) => {
if(stngItemAttrNm == "leftPstn" || stngItemAttrNm == "topPstn"){ 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 = ""; var paperNm = "";
if(paperSeCd == "01"){ if(paperSeCd == "01"){
paperNm = "a4"; paperNm = "a4";
@ -472,38 +472,38 @@ $(document).ready(function(){
//출력 요소 선택 //출력 요소 선택
$P.choiceOtptArtclNm = () => { $P.choiceOtptArtclNm = () => {
$P.$find("dropdownUniqueAdd").html(""); $P.$findn("dropdownUniqueAdd").html("");
var prototypeList = $P.otptArtclStngMap.unique.prototypeList; var prototypeList = $P.otptArtclStngMap.unique.prototypeList;
var existArr = []; var existArr = [];
$P.$find("tbodyUnique").find("tr").each(function(){ $P.$findn("tbodyUnique").find("tr").each(function(){
var el = $P.fnGetElement(this,"otptArtclNm"); var el = $P.fnGetElement(this,"otptArtclNm");
existArr.push($(el).val()); existArr.push($(el).val());
}); });
var selectableArr = prototypeList.filter(item => existArr.indexOf(item.artclNm) == -1); var selectableArr = prototypeList.filter(item => existArr.indexOf(item.artclNm) == -1);
var template = $P.find("dropdownTemplate"); var template = $P.findn("dropdownTemplate");
if(selectableArr.length < 1){ if(selectableArr.length < 1){
var li = template.innerHTML; var li = template.innerHTML;
li = li.replace(/{onclick}/gi, ""); li = li.replace(/{onclick}/gi, "");
li = li.replace(/{DSCRP}/gi, "추가할 수 있는 항목이 없습니다."); li = li.replace(/{DSCRP}/gi, "추가할 수 있는 항목이 없습니다.");
$P.$find("dropdownUniqueAdd").append(li); $P.$findn("dropdownUniqueAdd").append(li);
} else { } else {
for(var i=0; i < selectableArr.length; i++){ for(var i=0; i < selectableArr.length; i++){
var li = template.innerHTML; var li = template.innerHTML;
li = li.replace(/{onclick}/gi, "pageObject['${pageName}'].addRow('" + selectableArr[i].artclNm + "')"); li = li.replace(/{onclick}/gi, "pageObject['${pageName}'].addRow('" + selectableArr[i].artclNm + "')");
li = li.replace(/{DSCRP}/gi, selectableArr[i].artclDscrp); li = li.replace(/{DSCRP}/gi, selectableArr[i].artclDscrp);
$P.$find("dropdownUniqueAdd").append(li); $P.$findn("dropdownUniqueAdd").append(li);
} }
} }
} }
//행 추가 //행 추가
$P.addRow = (otptArtclNm) => { $P.addRow = (otptArtclNm) => {
var paperSeCd = $P.$find("frmEdit").find("[name='paperSeCd']").val(); var paperSeCd = $P.$findn("frmEdit").find("[name='paperSeCd']").val();
var prototypeList; var prototypeList;
var tbodyName; var tbodyName;
@ -520,12 +520,12 @@ $(document).ready(function(){
var p = prototypeList[i]; var p = prototypeList[i];
components += "<option value='"+p.artclNm+"' data-component-type='"+p.componentType+"'>"+p.artclDscrp+"</option>"; components += "<option value='"+p.artclNm+"' data-component-type='"+p.componentType+"'>"+p.artclDscrp+"</option>";
} }
var template = $P.find("found").innerHTML; var template = $P.findn("found").innerHTML;
template = template.replace(/{OTPT_FORM_ID}/gi, ""); template = template.replace(/{OTPT_FORM_ID}/gi, "");
template = template.replace(/{COMPONENTS}/gi, components); 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,"fontNm"));
FimsComponentization.fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontColr")); FimsComponentization.fnMakeOptionStyleSelect($P.fnGetElement(lastTr,"fontColr"));
@ -538,7 +538,7 @@ $(document).ready(function(){
scrollDivName = "scrollMultiple"; scrollDivName = "scrollMultiple";
} }
var rowSpinButtons = $(lastTr).find("td[data-col='otptArtclSeq']").find("button"); 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 != ""){ if(otptArtclNm != null && otptArtclNm != ""){
@ -583,14 +583,14 @@ $(document).ready(function(){
FimsComponentization.fnMakeSpinnerSelect(sel, toPrev, toNext); FimsComponentization.fnMakeSpinnerSelect(sel, toPrev, toNext);
if(tbodyName == "tbodyUnique"){ if(tbodyName == "tbodyUnique"){
$P.$find("scrollUnique").scrollTop($P.find("scrollUnique").scrollHeight); $P.$findn("scrollUnique").scrollTop($P.findn("scrollUnique").scrollHeight);
} else { } else {
$P.$find("scrollMultiple").scrollTop($P.find("scrollMultiple").scrollHeight); $P.$findn("scrollMultiple").scrollTop($P.findn("scrollMultiple").scrollHeight);
} }
if(otptArtclNm == "background"){ //배경이미지 순서 보정 if(otptArtclNm == "background"){ //배경이미지 순서 보정
if($P.$find("tbodyUnique").find("tr").length >= 2){ if($P.$findn("tbodyUnique").find("tr").length >= 2){
$P.$find("tbodyUnique").find("tr").eq(0).before(lastTr); $P.$findn("tbodyUnique").find("tr").eq(0).before(lastTr);
} }
} }
@ -599,17 +599,17 @@ $(document).ready(function(){
//행 삭제 //행 삭제
$P.delRow = (tbodyName) => { $P.delRow = (tbodyName) => {
if($P.$find(tbodyName).find("tr").length <= 0){ if($P.$findn(tbodyName).find("tr").length <= 0){
alert('삭제할 항목이 없습니다.'); alert('삭제할 항목이 없습니다.');
return; 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('체크된 항목이 없습니다.'); alert('체크된 항목이 없습니다.');
return; 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")){ if($(item).find("input[name='del'][type='checkbox']").is(":checked")){
$(item).remove(); $(item).remove();
} }
@ -618,7 +618,7 @@ $(document).ready(function(){
//출력 요소 변경 //출력 요소 변경
$P.fnChangeComponent = (selectElement) => { $P.fnChangeComponent = (selectElement) => {
if($P.$find("tbodyMultiple").find(selectElement).length <= 0){ if($P.$findn("tbodyMultiple").find(selectElement).length <= 0){
return; return;
} }
@ -657,7 +657,7 @@ $(document).ready(function(){
//출력 요소 설정 값 추출 //출력 요소 설정 값 추출
$P.getRowData = (tbodyName, formData) => { $P.getRowData = (tbodyName, formData) => {
var rowArr = []; var rowArr = [];
$P.$find(tbodyName).find("tr").each(function(){ $P.$findn(tbodyName).find("tr").each(function(){
var row = {}; var row = {};
row.otptFormId = this.dataset.key; row.otptFormId = this.dataset.key;
@ -697,7 +697,7 @@ $(document).ready(function(){
$P.fnSave = () => { $P.fnSave = () => {
//출력물 전역설정 //출력물 전역설정
var formData = new FormData($P.find("frmEdit")); var formData = new FormData($P.findn("frmEdit"));
//출력 요소 설정 //출력 요소 설정
var rowArr1 = $P.getRowData("tbodyUnique", formData); var rowArr1 = $P.getRowData("tbodyUnique", formData);
@ -722,19 +722,19 @@ $(document).ready(function(){
contentType : false, processData : false, contentType : false, processData : false,
success : (resp) => { success : (resp) => {
if(resp.saved){ if(resp.saved){
if(!$P.$find("viewSample").is(":checked")){ if(!$P.$findn("viewSample").is(":checked")){
dialog.alert("저장되었습니다."); dialog.alert("저장되었습니다.");
} }
var formFields = new FimsFormFields($P.selector("frmEdit")).get(); var formFields = new FimsFormFields($P.selectorn("frmEdit")).get();
$P.$find("frmSearch").find("[name='sggCd']").val(formFields.sggCd); $P.$findn("frmSearch").find("[name='sggCd']").val(formFields.sggCd);
$P.$find("frmSearch").find("[name='taskSeCd']").val(formFields.taskSeCd); $P.$findn("frmSearch").find("[name='taskSeCd']").val(formFields.taskSeCd);
$P.$find("frmSearch").find("[name='sndngSeCd']").val(formFields.sndngSeCd); $P.$findn("frmSearch").find("[name='sndngSeCd']").val(formFields.sndngSeCd);
$P.$find("frmSearch").find("[name='paperSeCd']").val(formFields.paperSeCd); $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(); $P.fnMakeSampleFile();
} }
} }
@ -745,7 +745,7 @@ $(document).ready(function(){
//샘플파일 생성 //샘플파일 생성
$P.fnMakeSampleFile = () => { $P.fnMakeSampleFile = () => {
var formFields = new FimsFormFields($P.selector("frmEdit")); var formFields = new FimsFormFields($P.selectorn("frmEdit"));
var submitParam = formFields.get(); var submitParam = formFields.get();
submitParam.crdnIds = "sample"; submitParam.crdnIds = "sample";
@ -811,41 +811,41 @@ $(document).ready(function(){
var a = document.createElement("a"); var a = document.createElement("a");
a.href = $P.otptGlobalStng.BCRN_IMG_PATH; a.href = $P.otptGlobalStng.BCRN_IMG_PATH;
a.download = $P.otptGlobalStng.BCRN_IMG_FILE_NM; a.download = $P.otptGlobalStng.BCRN_IMG_FILE_NM;
$P.find("tempArea").appendChild(a); $P.findn("tempArea").appendChild(a);
a.click(); a.click();
$P.find("tempArea").removeChild(a); $P.findn("tempArea").removeChild(a);
} }
$P.fnBgUpload = (fileElement) => { $P.fnBgUpload = (fileElement) => {
if(fileElement.files == null || fileElement.files.length == 0){ if(fileElement.files == null || fileElement.files.length == 0){
if($P.otptGlobalStng.BCRN_IMG_PATH == null || $P.otptGlobalStng.BCRN_IMG_PATH == ""){ if($P.otptGlobalStng.BCRN_IMG_PATH == null || $P.otptGlobalStng.BCRN_IMG_PATH == ""){
$P.$find("fileStatus").text("없음"); $P.$findn("fileStatus").text("없음");
$P.$find("fileStatus").attr("title",""); $P.$findn("fileStatus").attr("title","");
$P.$find("btnBgDown").attr("hidden","hidden"); $P.$findn("btnBgDown").attr("hidden","hidden");
} else { } else {
$P.$find("fileStatus").text("있음"); $P.$findn("fileStatus").text("있음");
$P.$find("fileStatus").attr("title", $P.otptGlobalStng.BCRN_IMG_FILE_NM); $P.$findn("fileStatus").attr("title", $P.otptGlobalStng.BCRN_IMG_FILE_NM);
$P.$find("btnBgDown").removeAttr("hidden"); $P.$findn("btnBgDown").removeAttr("hidden");
} }
} else { } else {
$P.$find("fileStatus").text("이미지 변경됨"); $P.$findn("fileStatus").text("이미지 변경됨");
$P.$find("fileStatus").attr("title",""); $P.$findn("fileStatus").attr("title","");
$P.$find("btnBgDown").attr("hidden","hidden"); $P.$findn("btnBgDown").attr("hidden","hidden");
} }
} }
$P.$find("theadUnique").html($P.find("theadTr").innerHTML); $P.$findn("theadUnique").html($P.findn("theadTr").innerHTML);
$P.$find("theadMultiple").html($P.find("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.$findn("btnUniqueAdd").on("click", () => $P.choiceOtptArtclNm() );
$P.$find("btnMultipleAdd").on("click", () => $P.addRow() ); $P.$findn("btnMultipleAdd").on("click", () => $P.addRow() );
$P.$find("btnUniqueDel").on("click", () => $P.delRow('tbodyUnique') ); $P.$findn("btnUniqueDel").on("click", () => $P.delRow('tbodyUnique') );
$P.$find("btnMultipleDel").on("click", () => $P.delRow('tbodyMultiple') ); $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){ var markerFinder = function(tr){
return $P.fnGetElement(tr,"otptArtclSeq"); return $P.fnGetElement(tr,"otptArtclSeq");
@ -854,8 +854,8 @@ $(document).ready(function(){
marker.value = value; marker.value = value;
}; };
Componentization.fnMakeRowNumberingTable($P.find("tbodyUnique"), markerFinder, markerSetter); Componentization.fnMakeRowNumberingTable($P.findn("tbodyUnique"), markerFinder, markerSetter);
Componentization.fnMakeRowNumberingTable($P.find("tbodyMultiple"), markerFinder, markerSetter); Componentization.fnMakeRowNumberingTable($P.findn("tbodyMultiple"), markerFinder, markerSetter);
}); });

@ -180,40 +180,40 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"]; var $P = pageObject["${pageName}"];
$P.extrArtclStngMap = {}; $P.extrArtclStngMap = {};
$P.$find("btnSave").attr("disabled","disabled"); $P.$findn("btnSave").attr("disabled","disabled");
$P.$find("btnPredefinedAdd").attr("disabled","disabled"); $P.$findn("btnPredefinedAdd").attr("disabled","disabled");
$P.$find("btnPredefinedDel").attr("disabled","disabled"); $P.$findn("btnPredefinedDel").attr("disabled","disabled");
$P.$find("btnCustomAdd}").attr("disabled","disabled"); $P.$findn("btnCustomAdd}").attr("disabled","disabled");
$P.$find("btnCustomDel").attr("disabled","disabled"); $P.$findn("btnCustomDel").attr("disabled","disabled");
$P.fnLoad = () => { $P.fnLoad = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var query = formFields.get(); var query = formFields.get();
ajax.post({ ajax.post({
url : wctx.url("/stng/stng01/020/info.do"), url : wctx.url("/stng/stng01/020/info.do"),
data : query, data : query,
success : (resp) => { success : (resp) => {
$P.$find("btnSave").removeAttr("disabled"); $P.$findn("btnSave").removeAttr("disabled");
$P.$find("btnPredefinedAdd").removeAttr("disabled"); $P.$findn("btnPredefinedAdd").removeAttr("disabled");
$P.$find("btnPredefinedDel").removeAttr("disabled"); $P.$findn("btnPredefinedDel").removeAttr("disabled");
$P.$find("btnCustomAdd").removeAttr("disabled"); $P.$findn("btnCustomAdd").removeAttr("disabled");
$P.$find("btnCustomDel").removeAttr("disabled"); $P.$findn("btnCustomDel").removeAttr("disabled");
$P.$find("currentTmplat").text(""); $P.$findn("currentTmplat").text("");
$P.$find("tbodyPredefined").html(""); $P.$findn("tbodyPredefined").html("");
$P.$find("tbodyCustom").html(""); $P.$findn("tbodyCustom").html("");
$P.$find("frmEdit").find("[name='sggCd']").val(query.sggCd); $P.$findn("frmEdit").find("[name='sggCd']").val(query.sggCd);
$P.$find("frmEdit").find("[name='taskSeCd']").val(query.taskSeCd); $P.$findn("frmEdit").find("[name='taskSeCd']").val(query.taskSeCd);
$P.$find("frmEdit").find("[name='tmplatId']").val(query.tmplatId); $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; $P.extrArtclStngMap = resp.extrArtclStngMap;
@ -232,12 +232,12 @@ $(document).ready(function(){
for(var i=0; i < dataList.length; i++){ for(var i=0; i < dataList.length; i++){
var data = dataList[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); 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,"extrArtclNm")).set(data.EXTR_ARTCL_NM);
$($P.fnGetElement(lastTr,"extrArtclDscrp")).set(data.EXTR_ARTCL_DSCRP); $($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"){ if(tbodyName == "tbodyPredefined"){
$($P.fnGetElement(this,"extrArtclNm")).attr("disabled","disabled").addClass("no-bgi"); $($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"); 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.choiceExtrArtclNm = () => {
$P.$find("dropdownPredefinedAdd").html(""); $P.$findn("dropdownPredefinedAdd").html("");
var predefinedSetList = $P.extrArtclStngMap.predefinedSetList; var predefinedSetList = $P.extrArtclStngMap.predefinedSetList;
var existArr = []; var existArr = [];
$P.$find("tbodyPredefined").find("tr").each(function(){ $P.$findn("tbodyPredefined").find("tr").each(function(){
var el = $P.fnGetElement(this,"extrArtclNm"); var el = $P.fnGetElement(this,"extrArtclNm");
existArr.push($(el).val()); existArr.push($(el).val());
}); });
var selectableArr = predefinedSetList.filter(item => existArr.indexOf(item.artclNm) == -1); var selectableArr = predefinedSetList.filter(item => existArr.indexOf(item.artclNm) == -1);
var template = $P.find("dropdownTemplate"); var template = $P.findn("dropdownTemplate");
if(selectableArr.length < 1){ if(selectableArr.length < 1){
var li = template.innerHTML; var li = template.innerHTML;
li = li.replace(/{onclick}/gi, ""); li = li.replace(/{onclick}/gi, "");
li = li.replace(/{DSCRP}/gi, "추가할 수 있는 항목이 없습니다."); li = li.replace(/{DSCRP}/gi, "추가할 수 있는 항목이 없습니다.");
$P.$find("dropdownPredefinedAdd").append(li); $P.$findn("dropdownPredefinedAdd").append(li);
} else { } else {
for(var i=0; i < selectableArr.length; i++){ for(var i=0; i < selectableArr.length; i++){
var li = template.innerHTML; var li = template.innerHTML;
li = li.replace(/{onclick}/gi, "pageObject['${pageName}'].addRow('" + selectableArr[i].artclNm + "','"+selectableArr[i].artclDscrp+"')"); li = li.replace(/{onclick}/gi, "pageObject['${pageName}'].addRow('" + selectableArr[i].artclNm + "','"+selectableArr[i].artclDscrp+"')");
li = li.replace(/{DSCRP}/gi, 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"; tbodyName = "tbodyPredefined";
} }
var template = $P.find("found").innerHTML; var template = $P.findn("found").innerHTML;
template = template.replace(/{EXTR_FORM_ID}/gi, ""); 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 var scrollDivName = "";l
@ -337,7 +337,7 @@ $(document).ready(function(){
scrollDivName = "scrollCustom"; scrollDivName = "scrollCustom";
} }
var rowSpinButtons = $(lastTr).find("td[data-col='extrArtclOrdr']").find("button"); 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 != ""){ if(extrArtclNm != null && extrArtclNm != ""){
@ -367,9 +367,9 @@ $(document).ready(function(){
FimsComponentization.fnMakeSpinnerSelect(sel, toPrev, toNext); FimsComponentization.fnMakeSpinnerSelect(sel, toPrev, toNext);
if(tbodyName == "tbodyPredefined"){ if(tbodyName == "tbodyPredefined"){
$P.$find("scrollPredefined").scrollTop($P.find("scrollPredefined").scrollHeight); $P.$findn("scrollPredefined").scrollTop($P.findn("scrollPredefined").scrollHeight);
} else { } 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) => { $P.delRow = (tbodyName) => {
if($P.$find(tbodyName).find("tr").length <= 0){ if($P.$findn(tbodyName).find("tr").length <= 0){
alert('삭제할 항목이 없습니다.'); alert('삭제할 항목이 없습니다.');
return; 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('체크된 항목이 없습니다.'); alert('체크된 항목이 없습니다.');
return; 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")){ if($(item).find("input[name='del'][type='checkbox']").is(":checked")){
$(item).remove(); $(item).remove();
} }
@ -400,7 +400,7 @@ $(document).ready(function(){
//추출 요소 설정 값 추출 //추출 요소 설정 값 추출
$P.getRowData = (tbodyName, formData) => { $P.getRowData = (tbodyName, formData) => {
var rowArr = []; var rowArr = [];
$P.$find(tbodyName).find("tr").each(function(){ $P.$findn(tbodyName).find("tr").each(function(){
var row = {}; var row = {};
row.extrFormId = this.dataset.key; row.extrFormId = this.dataset.key;
@ -426,10 +426,10 @@ $(document).ready(function(){
//추출 설정 저장 //추출 설정 저장
$P.fnSave = () => { $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); var rowArr1 = $P.getRowData("tbodyPredefined", formData);
@ -461,12 +461,12 @@ $(document).ready(function(){
alert("저장되었습니다."); alert("저장되었습니다.");
var formFields = new FimsFormFields($P.selector("frmEdit")).get(); var formFields = new FimsFormFields($P.selectorn("frmEdit")).get();
$P.$find("frmSearch").find("[name='sggCd']").val(formFields.sggCd); $P.$findn("frmSearch").find("[name='sggCd']").val(formFields.sggCd);
$P.$find("frmSearch").find("[name='taskSeCd']").val(formFields.taskSeCd); $P.$findn("frmSearch").find("[name='taskSeCd']").val(formFields.taskSeCd);
$P.$find("frmSearch").find("[name='tmplatId']").val(formFields.tmplatId); $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.$findn("theadPredefined").html($P.findn("theadTr").innerHTML);
$P.$find("theadCustom").html($P.find("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.$findn("btnPredefinedAdd").on("click", () => $P.choiceExtrArtclNm() );
$P.$find("btnCustomAdd").on("click", () => $P.addRow() ); $P.$findn("btnCustomAdd").on("click", () => $P.addRow() );
$P.$find("btnPredefinedDel").on("click", () => $P.delRow('tbodyPredefined') ); $P.$findn("btnPredefinedDel").on("click", () => $P.delRow('tbodyPredefined') );
$P.$find("btnCustomDel").on("click", () => $P.delRow('tbodyCustom') ); $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){ var markerFinder = function(tr){
return $P.fnGetElement(tr,"extrArtclOrdr"); return $P.fnGetElement(tr,"extrArtclOrdr");
@ -498,8 +498,8 @@ $(document).ready(function(){
marker.value = value; marker.value = value;
}; };
Componentization.fnMakeRowNumberingTable($P.find("tbodyPredefined"), markerFinder, markerSetter); Componentization.fnMakeRowNumberingTable($P.findn("tbodyPredefined"), markerFinder, markerSetter);
Componentization.fnMakeRowNumberingTable($P.find("tbodyCustom"), markerFinder, markerSetter); Componentization.fnMakeRowNumberingTable($P.findn("tbodyCustom"), markerFinder, markerSetter);
}); });

@ -145,34 +145,34 @@ $(document).ready(function(){
$P.zipGlobalStng = {}; $P.zipGlobalStng = {};
$P.zipArtclStngMap = {}; $P.zipArtclStngMap = {};
$P.$find("btnSave").attr("disabled","disabled"); $P.$findn("btnSave").attr("disabled","disabled");
$P.$find("btnAdd").attr("disabled","disabled"); $P.$findn("btnAdd").attr("disabled","disabled");
$P.$find("btnDel").attr("disabled","disabled"); $P.$findn("btnDel").attr("disabled","disabled");
$P.fnLoad = () => { $P.fnLoad = () => {
var formFields = new FimsFormFields($P.selector("frmSearch")); var formFields = new FimsFormFields($P.selectorn("frmSearch"));
var query = formFields.get(); var query = formFields.get();
ajax.post({ ajax.post({
url : wctx.url("/stng/stng01/030/info.do"), url : wctx.url("/stng/stng01/030/info.do"),
data : query, data : query,
success : (resp) => { success : (resp) => {
$P.$find("btnSave").removeAttr("disabled"); $P.$findn("btnSave").removeAttr("disabled");
$P.$find("btnAdd").removeAttr("disabled"); $P.$findn("btnAdd").removeAttr("disabled");
$P.$find("btnDel").removeAttr("disabled"); $P.$findn("btnDel").removeAttr("disabled");
$P.$find("currentOtpt").text(""); $P.$findn("currentOtpt").text("");
$P.$find("zipGlobalStng").html(""); $P.$findn("zipGlobalStng").html("");
$P.$find("tbody").html(""); $P.$findn("tbody").html("");
$P.$find("frmEdit").find("[name='sggCd']").val(query.sggCd); $P.$findn("frmEdit").find("[name='sggCd']").val(query.sggCd);
$P.$find("frmEdit").find("[name='taskSeCd']").val(query.taskSeCd); $P.$findn("frmEdit").find("[name='taskSeCd']").val(query.taskSeCd);
$P.$find("frmEdit").find("[name='sndngSeCd']").val(query.sndngSeCd); $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){ if(resp.zipGlobalStng != null){
$P.zipGlobalStng = resp.zipGlobalStng; $P.zipGlobalStng = resp.zipGlobalStng;
} else { } else {
@ -195,10 +195,10 @@ $(document).ready(function(){
//전역 설정 렌더링 //전역 설정 렌더링
$P.renderZipGlobalStng = (zipGlobalStng) => { $P.renderZipGlobalStng = (zipGlobalStng) => {
var editForm = $P.$find("frmEdit"); var editForm = $P.$findn("frmEdit");
//설정ID //설정ID
$P.$find("zipGlobalStng").append("<input type='hidden' name='outsourcingBscId' />"); $P.$findn("zipGlobalStng").append("<input type='hidden' name='outsourcingBscId' />");
editForm.find("input[name='outsourcingBscId']").val(zipGlobalStng.OUTSOURCING_BSC_ID); 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++){ for(var i=0; i < dataList.length; i++){
var data = dataList[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(/{OUTSOURCING_FORM_ID}/gi, data.OUTSOURCING_FORM_ID);
found = found.replace(/{COMPONENTS}/gi, components); 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,"artclNm")).set(data.ARTCL_NM);
$($P.fnGetElement(lastTr,"artclSz")) $($P.fnGetElement(lastTr,"artclSz"))
@ -232,7 +232,7 @@ $(document).ready(function(){
.set(!isEmpty(data.FORMATTING) ? data.FORMATTING : ""); .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 sel = $P.fnGetElement(this,"paddingDirection");
var toPrev = $(sel).siblings()[0]; var toPrev = $(sel).siblings()[0];
@ -243,7 +243,7 @@ $(document).ready(function(){
var rowSpinButtons = $(this).find("td[data-col='artclOrdr']").find("button"); 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]; var p = predefinedSetList[i];
components += "<option value='"+p.artclNm+"' >"+p.artclDscrp+"</option>"; components += "<option value='"+p.artclNm+"' >"+p.artclDscrp+"</option>";
} }
var template = $P.find("found").innerHTML; var template = $P.findn("found").innerHTML;
template = template.replace(/{OUTSOURCING_FORM_ID}/gi, ""); template = template.replace(/{OUTSOURCING_FORM_ID}/gi, "");
template = template.replace(/{COMPONENTS}/gi, components); 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"); 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]; var toNext = $(sel).siblings()[1];
FimsComponentization.fnMakeSpinnerSelect(sel, toPrev, toNext); FimsComponentization.fnMakeSpinnerSelect(sel, toPrev, toNext);
$P.$find("scroll").scrollTop($P.find("scroll").scrollHeight); $P.$findn("scroll").scrollTop($P.findn("scroll").scrollHeight);
} }
//행 삭제 //행 삭제
$P.delRow = () => { $P.delRow = () => {
if($P.$find("tbody").find("tr").length <= 0){ if($P.$findn("tbody").find("tr").length <= 0){
alert('삭제할 항목이 없습니다.'); alert('삭제할 항목이 없습니다.');
return; 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('체크된 항목이 없습니다.'); alert('체크된 항목이 없습니다.');
return; 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")){ if($(selector).find("input[name='del'][type='checkbox']").is(":checked")){
$(selector).remove(); $(selector).remove();
} }
@ -306,7 +306,7 @@ $(document).ready(function(){
//요소 설정 값 추출 //요소 설정 값 추출
$P.getRowData = (formData) => { $P.getRowData = (formData) => {
var rowArr = []; var rowArr = [];
$P.$find("tbody").find("tr").each(function(){ $P.$findn("tbody").find("tr").each(function(){
var row = {}; var row = {};
row.outsourcingFormId = this.dataset.key; row.outsourcingFormId = this.dataset.key;
@ -331,7 +331,7 @@ $(document).ready(function(){
$P.fnSave = () => { $P.fnSave = () => {
//출력물 전역설정 //출력물 전역설정
var formData = new FormData($P.find("frmEdit")); var formData = new FormData($P.findn("frmEdit"));
//요소 설정 //요소 설정
var rowArr = $P.getRowData(formData); var rowArr = $P.getRowData(formData);
@ -361,25 +361,25 @@ $(document).ready(function(){
dialog.alert("저장되었습니다."); dialog.alert("저장되었습니다.");
var formFields = new FimsFormFields($P.selector("frmEdit")).get(); var formFields = new FimsFormFields($P.selectorn("frmEdit")).get();
$P.$find("frmSearch").find("[name='sggCd']").val(formFields.sggCd); $P.$findn("frmSearch").find("[name='sggCd']").val(formFields.sggCd);
$P.$find("frmSearch").find("[name='taskSeCd']").val(formFields.taskSeCd); $P.$findn("frmSearch").find("[name='taskSeCd']").val(formFields.taskSeCd);
$P.$find("frmSearch").find("[name='sndngSeCd']").val(formFields.sndngSeCd); $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.$findn("btnLoad").on("click", () => $P.fnLoad() );
$P.$find("btnAdd").on("click", () => $P.addRow() ); $P.$findn("btnAdd").on("click", () => $P.addRow() );
$P.$find("btnDel").on("click", () => $P.delRow() ); $P.$findn("btnDel").on("click", () => $P.delRow() );
$P.$find("btnSave").on("click", () => $P.fnSave() ); $P.$findn("btnSave").on("click", () => $P.fnSave() );
var markerFinder = function(tr){ var markerFinder = function(tr){
return $P.fnGetElement(tr,"artclOrdr"); return $P.fnGetElement(tr,"artclOrdr");
@ -388,7 +388,7 @@ $(document).ready(function(){
marker.value = value; marker.value = value;
}; };
Componentization.fnMakeRowNumberingTable($P.find("tbody"), markerFinder, markerSetter); Componentization.fnMakeRowNumberingTable($P.findn("tbody"), markerFinder, markerSetter);
}); });

@ -147,10 +147,12 @@ class FimsFormFields extends FormFields {
**************************************************************************/ **************************************************************************/
function newDoctxFinder(doctx){ function newDoctxFinder(doctx){
let finder = new DoctxFinder(doctx); let finder = new DoctxFinder(doctx);
finder.setContainers("[data-doctx='"+doctx+"']");
return finder; return finder;
} }
class DoctxFinder extends EventTarget { class DoctxFinder extends DomQuery {
constructor(doctx) { constructor(doctx) {
super(); super();
this.doctx = doctx; this.doctx = doctx;
@ -165,18 +167,24 @@ class DoctxFinder extends EventTarget {
console.log("DoctxFinder클래스 : HTML문서 내에서 data-doctx속성을 갖는 요소의 내부에서 name속성 값으로 하위요소를 찾을 수 있는 기능을 제공하는 객체이다."); console.log("DoctxFinder클래스 : HTML문서 내에서 data-doctx속성을 갖는 요소의 내부에서 name속성 값으로 하위요소를 찾을 수 있는 기능을 제공하는 객체이다.");
console.log("newDoctxFinder(doctx명);전역함수로 인스턴스 생성할 수 있다."); console.log("newDoctxFinder(doctx명);전역함수로 인스턴스 생성할 수 있다.");
console.log("클래스 메서드 목록"); 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("selfElement() : data-doctx속성이 설정된doctx인 HTML요소를 반환한다.");
console.log("selfDlgId() : data-doctx속성이 설정된doctx인 HTML요소를 갖는 모달창의 id를 반환한다."); console.log("selfDlgId() : data-doctx속성이 설정된doctx인 HTML요소를 갖는 모달창의 id를 반환한다.");
console.log("refDlgId(모달창이름) : data-ref-doctx속성이 설정된doctx이고 name속성이 모달창이름인 모달창의 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){ selectorn(name){
return "[data-doctx='"+this.doctx+"'] [name='"+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(){ selfElement(){
return document.querySelector("[data-doctx='"+this.doctx+"']"); return document.querySelector("[data-doctx='"+this.doctx+"']");
} }
@ -194,15 +202,7 @@ class DoctxFinder extends EventTarget {
return ""; 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+"']");
}
} }

@ -11,7 +11,7 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
$P.carLinkFunc = carLinkFunc; $P.carLinkFunc = carLinkFunc;
//드래그앤드롭 //드래그앤드롭
Sortable.create($P.find("dragAndDrop"), { Sortable.create($P.findn("dragAndDrop"), {
onEnd : function(evt){ onEnd : function(evt){
if(evt.oldIndex != evt.newIndex){ if(evt.oldIndex != evt.newIndex){
$P.updateFileInfo("changeOrder"); $P.updateFileInfo("changeOrder");
@ -21,11 +21,11 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
//파일처리 버튼 //파일처리 버튼
//추가버튼 //추가버튼
$P.$find("btnAddFile").on('click', () => { $P.$findn("btnAddFile").on('click', () => {
$P.$find("inputUploadSet").trigger("click"); $P.$findn("inputUploadSet").trigger("click");
}); });
//동영상캡쳐버튼 //동영상캡쳐버튼
$P.$find("btnOpenVideoCapture").on('click', () => { $P.$findn("btnOpenVideoCapture").on('click', () => {
var crdnId = $(crdnIdElement).val(); var crdnId = $(crdnIdElement).val();
var popupWidth = 1800; var popupWidth = 1800;
@ -46,8 +46,8 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
}); });
//편집버튼 //편집버튼
$P.$find("btnEditPhoto").on('click', async() => { $P.$findn("btnEditPhoto").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){ if(checked.length < 1){
await alert2("선택된 사진이 없습니다."); await alert2("선택된 사진이 없습니다.");
return; 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){ if(checked.length < 1){
await alert2("선택된 사진이 없습니다."); await alert2("선택된 사진이 없습니다.");
return; return;
@ -91,7 +91,7 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
$P.updateFileInfo("delete"); $P.updateFileInfo("delete");
}); });
$P.uploadSet = uploadSupport($P.selector("inputUploadSet")); $P.uploadSet = uploadSupport($P.selectorn("inputUploadSet"));
$P.uploadSet.onDatasetChange = () => { $P.uploadSet.onDatasetChange = () => {
@ -123,9 +123,9 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
// pageName에 따라 template이 다르다. // pageName에 따라 template이 다르다.
var template; var template;
if (pageName == "sprt02020") { if (pageName == "sprt02020") {
template = $P.find("imgRadioTemplateTotalInfo").innerHTML; template = $P.findn("imgRadioTemplateTotalInfo").innerHTML;
} else { } else {
template = $P.find("imgRadioTemplate").innerHTML; template = $P.findn("imgRadioTemplate").innerHTML;
} }
template = template.replace(/{name}/gi, "existPhoto"); template = template.replace(/{name}/gi, "existPhoto");
@ -155,11 +155,11 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
var tagsText = $P.fnMakeImgForExistFile($P.existFileArr); var tagsText = $P.fnMakeImgForExistFile($P.existFileArr);
if(tagsText == ""){ if(tagsText == ""){
$P.find("dragAndDrop").innerHTML = ""; $P.findn("dragAndDrop").innerHTML = "";
$P.$find("btnEditPhoto").hide(); $P.$findn("btnEditPhoto").hide();
} else { } else {
$P.find("dragAndDrop").innerHTML = tagsText; $P.findn("dragAndDrop").innerHTML = tagsText;
$P.$find("btnEditPhoto").show(); $P.$findn("btnEditPhoto").show();
} }
}; };
@ -216,7 +216,7 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
// 사진 저장 // 사진 저장
$P.updateFileInfo = (flag) => { $P.updateFileInfo = (flag) => {
var formData = new FormData($P.find("frmFile")); var formData = new FormData($P.findn("frmFile"));
formData.append("crdnId", $(crdnIdElement).val()); formData.append("crdnId", $(crdnIdElement).val());
formData.append("atchFileCnt", $P.existFileArr.length); formData.append("atchFileCnt", $P.existFileArr.length);
@ -260,7 +260,7 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
} else if(flag == "changeOrder"){ } else if(flag == "changeOrder"){
fileProcessingURL = wctx.url("file/changeOrderCrdnImageFile.do"); 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++){ for(var i=0; i < inputs.length; i++){
formData.append("orderedKeys", inputs[i].value); formData.append("orderedKeys", inputs[i].value);
} }
@ -302,9 +302,9 @@ function initPhotoMain(pageName, fileList, existVideo){
//동영상캡쳐버튼 //동영상캡쳐버튼
if(existVideo){ if(existVideo){
$P.$find("btnOpenVideoCapture").show(); $P.$findn("btnOpenVideoCapture").show();
} else { } else {
$P.$find("btnOpenVideoCapture").hide(); $P.$findn("btnOpenVideoCapture").hide();
} }
$P.existFileArr = []; $P.existFileArr = [];
@ -316,8 +316,8 @@ function initPhotoMain(pageName, fileList, existVideo){
} }
$P.localUploadArr = []; $P.localUploadArr = [];
$P.find("inputUploadSet").value = ""; $P.findn("inputUploadSet").value = "";
$P.$find("inputUploadSet").trigger("change"); $P.$findn("inputUploadSet").trigger("change");
$P.fnDisplay(); $P.fnDisplay();
} }
Loading…
Cancel
Save