소스정리(html엘리먼트 id제거 및 name추가)

main
이범준 3 months ago
parent b22c2b04d3
commit 6a399961c8

@ -361,10 +361,11 @@ $(document).ready(function(){
$P.ctrl.dataset.setData([layoutInfo]); $P.ctrl.dataset.setData([layoutInfo]);
} else { } else {
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
$("#sggCd--${pageName}").val(MY_INFO.info.sggCd);
$("#instCd--${pageName}").val(MY_INFO.info.instCd); $P.$find("sggCd").val(MY_INFO.info.sggCd);
$("#deptCd--${pageName}").val(MY_INFO.info.deptCd); $P.$find("instCd").val(MY_INFO.info.instCd);
$("#taskSeCd--${pageName}").val("${taskSeCd}"); $P.$find("deptCd").val(MY_INFO.info.deptCd);
$P.$find("taskSeCd").val("${taskSeCd}");
$P.$find("btnDelete").attr("hidden","hidden"); $P.$find("btnDelete").attr("hidden","hidden");
} }

@ -490,9 +490,9 @@ $(document).ready(function(){
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.$find("byOutput").val("동적 검색");
$("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름 $P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름
$('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-7).date); $P.$find("schCrdnYmdFrom").datepicker('setDate', DateUtil.getDateDay(-7).date);
$('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.$find("schCrdnYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
$P.alt.dataset.setData([]); $P.alt.dataset.setData([]);
}; };
@ -981,8 +981,8 @@ $(document).ready(function(){
// 사용자검색 callback // 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => { $P.callbackFindUser = (userId, userNm) => {
$("#schRgtrCd--${pageName}").val(userId); // 사용자 ID $P.$find("schRgtrCd").val(userId); // 사용자 ID
$("#schRgtrNm--${pageName}").val(userNm); // 사용자 명 $P.$find("schRgtrNm").val(userNm); // 사용자 명
} }
// 사용자검색 버튼 클릭 이벤트 // 사용자검색 버튼 클릭 이벤트

@ -75,7 +75,8 @@ $(document).ready(function(){
$P.fnSave = async() => { $P.fnSave = async() => {
var alertMessage = ""; var alertMessage = "";
if($("#chgAmtSe--${pageName}").val() == "1"){
if($P.$find("chgAmtSe").val() == "1"){
if(crdnInfo.OVTM_YN == "Y"){ if(crdnInfo.OVTM_YN == "Y"){
dialog.alert({ dialog.alert({
content : "이미 가산 처리된 자료입니다.", content : "이미 가산 처리된 자료입니다.",
@ -88,7 +89,7 @@ $(document).ready(function(){
} }
alertMessage = "가산 처리하시겠습니까?"; alertMessage = "가산 처리하시겠습니까?";
} else if($("#chgAmtSe--${pageName}").val() == "2"){ } else if($P.$find("chgAmtSe").val() == "2"){
if(crdnInfo.OVTM_PRTTN_YN == "Y"){ if(crdnInfo.OVTM_PRTTN_YN == "Y"){
dialog.alert({ dialog.alert({
content : "이미 감액 처리된 자료입니다.", content : "이미 감액 처리된 자료입니다.",

@ -182,8 +182,8 @@ $(document).ready(function(){
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.$find("byOutput").val("동적 검색");
$('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date); $P.$find("schCrdnYmdFrom").datepicker('setDate', DateUtil.getDateDay(-5475).date);
$('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.$find("schCrdnYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }

@ -158,7 +158,7 @@ $(document).ready(function(){
* pageObject.function * pageObject.function
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $P.fnReset = () => {
$("#regDt--${pageName}").datepicker('setDate', TODAY()); $P.$find("regDt").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }

@ -8,7 +8,7 @@
<div class="row g-1"> <div class="row g-1">
<div class="col-md-12"> <div class="col-md-12">
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="direct--${pageName}"> <input class="form-check-input" type="checkbox" role="switch" id="direct--${pageName}" name="direct">
<label class="form-check-label" for="direct--${pageName}">로컬파일업로드</label> <label class="form-check-label" for="direct--${pageName}">로컬파일업로드</label>
</div> </div>
</div> </div>
@ -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 : $("#taskSeCd--${pageName}").val() taskSeCd : $P.$find("taskSeCd").val()
}, },
success : (resp) => { success : (resp) => {
if(resp.saved){ if(resp.saved){
@ -257,7 +257,7 @@ $(document).ready(function(){
//로컬파일업로드 //로컬파일업로드
$P.uploadLocalFile = () => { $P.uploadLocalFile = () => {
if($("#uploadFiles--${pageName}").val() == ""){ if($P.$find("uploadFiles").val() == ""){
dialog.alert({ dialog.alert({
content : "파일이 없습니다.", content : "파일이 없습니다.",
init : function(){ init : function(){
@ -277,7 +277,7 @@ $(document).ready(function(){
data : formData, data : formData,
success : (resp) => { success : (resp) => {
if(resp.saved){ if(resp.saved){
$("#uploadFiles--${pageName}").val(""); $P.$find("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 : $("#taskSeCd--${pageName}").val() taskSeCd : $P.$find("taskSeCd").val()
}, },
success : (resp) => { success : (resp) => {
$P.ctrl.dataset.setData(resp); $P.ctrl.dataset.setData(resp);
@ -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 : $("#taskSeCd--${pageName}").val(), taskSeCd : $P.$find("taskSeCd").val(),
fileLayoutId : fileLayoutId, fileLayoutId : fileLayoutId,
fileName : fileName fileName : fileName
}, },
@ -491,7 +491,7 @@ $(document).ready(function(){
$P.$find("btnDelete").on("click", function(){ $P.deleteFile(); }); $P.$find("btnDelete").on("click", function(){ $P.deleteFile(); });
$("#direct--${pageName}").on("click", function(){ $P.$find("direct").on("click", function(){
if($(this).is(":checked")){ if($(this).is(":checked")){
$("#uploadFilesArea").removeAttr("hidden"); $("#uploadFilesArea").removeAttr("hidden");
$P.$find("btnFileUpload").removeAttr("hidden"); $P.$find("btnFileUpload").removeAttr("hidden");
@ -500,7 +500,7 @@ $(document).ready(function(){
$("#uploadFilesArea").attr("hidden","hidden"); $("#uploadFilesArea").attr("hidden","hidden");
$P.$find("btnFileUpload").attr("hidden","hidden"); $P.$find("btnFileUpload").attr("hidden","hidden");
$P.$find("btnSearch").removeAttr("hidden"); $P.$find("btnSearch").removeAttr("hidden");
$("#uploadFiles--${pageName}").val(""); $P.$find("uploadFiles").val("");
} }
}); });

@ -439,7 +439,7 @@ $(document).ready(function(){
if(!customValidate($P.$find("frmEdit").find("input"))) return; if(!customValidate($P.$find("frmEdit").find("input"))) return;
if($("#doWarning--${pageName}").is(":checked")){ if($P.$find("doWarning").is(":checked")){
var rtpyrNm = document.getElementById("rtpyrNm--${pageName}"); var rtpyrNm = document.getElementById("rtpyrNm--${pageName}");
if(rtpyrNm.value == ""){ if(rtpyrNm.value == ""){
@ -521,7 +521,7 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* 초기화(업무별 입력항목) * 초기화(업무별 입력항목)
**************************************************************************/ **************************************************************************/
var clsForTask = $("#taskSeCd--${pageName}").val().toLowerCase(); var clsForTask = $P.$find("taskSeCd").val().toLowerCase();
//업무별 입력 항목 //업무별 입력 항목
renderForTask($P.find("frmEdit"), clsForTask); renderForTask($P.find("frmEdit"), clsForTask);
@ -532,7 +532,7 @@ $(document).ready(function(){
$P.$find("btnInst").on('click', () => $P.fnSave()); $P.$find("btnInst").on('click', () => $P.fnSave());
$P.$find("btnAddFile").on('click', () => { $P.$find("btnAddFile").on('click', () => {
$("#inputUploadSet--${pageName}").trigger("click"); $P.$find("inputUploadSet").trigger("click");
}); });
$P.$find("btnOpenVideoCapture").on('click', () => { $P.$find("btnOpenVideoCapture").on('click', () => {
@ -571,10 +571,10 @@ $(document).ready(function(){
$P.fnDisplay(); $P.fnDisplay();
}); });
$("#vhrno--${pageName}").onEnterPress(function(){ $P.$find("vhrno").onEnterPress(function(){
var alertDialogId = "alertDialog"; var alertDialogId = "alertDialog";
var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", ""); var crdnYmd = $P.$find("crdnYmd").val().replaceAll("-", "");
var vhrnoEl = event.target; var vhrnoEl = event.target;
var vhrno = vhrnoEl.value; var vhrno = vhrnoEl.value;
if(crdnYmd == ""){ if(crdnYmd == ""){
@ -584,7 +584,7 @@ $(document).ready(function(){
setDialogZindex(); setDialogZindex();
focusClose(); focusClose();
}, },
onClose : function(){ $("#crdnYmd--${pageName}").focus(); } onClose : function(){ $P.$find("crdnYmd").focus(); }
}); });
return; return;
@ -604,7 +604,7 @@ $(document).ready(function(){
json.post({ json.post({
url: wctx.url("/payer/vehicle.do"), url: wctx.url("/payer/vehicle.do"),
data: { data: {
sggCd : $("#sggCd--${pageName}").val(), sggCd : $P.$find("sggCd").val(),
vhrno : vhrno, vhrno : vhrno,
levy_stdde : crdnYmd levy_stdde : crdnYmd
}, },
@ -617,28 +617,28 @@ $(document).ready(function(){
focusClose(); focusClose();
} }
}); });
$("#rtpyrId--${pageName}").val(""); $P.$find("rtpyrId").val("");
$("#addrSn--${pageName}").val(""); $P.$find("addrSn").val("");
$("#rtpyrNm--${pageName}").val(""); $P.$find("rtpyrNm").val("");
$("#rtpyrSeCd--${pageName}").val(""); $P.$find("rtpyrSeCd").val("");
$("#rtpyrNo--${pageName}").val(""); $P.$find("rtpyrNo").val("");
$("#vin--${pageName}").val(""); $P.$find("vin").val("");
$("#vhclNm--${pageName}").val(""); $P.$find("vhclNm").val("");
$("#vhclColr--${pageName}").val(""); $P.$find("vhclColr").val("");
$("#useFuelCd--${pageName}").val(""); $P.$find("useFuelCd").val("");
$("#ffnlgCarmdlCd--${pageName}").val(""); $P.$find("ffnlgCarmdlCd").val("");
$("#zip--${pageName}").val(""); $P.$find("zip").val("");
$("#addr--${pageName}").val(""); $P.$find("addr").val("");
$("#dtlAddr--${pageName}").val(""); $P.$find("dtlAddr").val("");
return; return;
} }
$("#rtpyrId--${pageName}").val(resp.rtpyrId); $P.$find("rtpyrId").val(resp.rtpyrId);
$("#addrSn--${pageName}").val(resp.addrSn); $P.$find("addrSn").val(resp.addrSn);
var vehicle = resp.vehicle; var vehicle = resp.vehicle;
$("#rtpyrNm--${pageName}").val(vehicle.mber_nm); $P.$find("rtpyrNm").val(vehicle.mber_nm);
var pyrSeCd = ""; var pyrSeCd = "";
switch(vehicle.mber_se_code){ switch(vehicle.mber_se_code){
@ -648,44 +648,44 @@ $(document).ready(function(){
case "14" : pyrSeCd = "04"; break; case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; break; case "15" : pyrSeCd = "05"; break;
} }
$("#rtpyrSeCd--${pageName}").val(pyrSeCd); $P.$find("rtpyrSeCd").val(pyrSeCd);
$("#rtpyrNo--${pageName}").val(vehicle.mber_se_no); $P.$find("rtpyrNo").val(vehicle.mber_se_no);
$("#vin--${pageName}").val(vehicle.vin); $P.$find("vin").val(vehicle.vin);
$("#vhclNm--${pageName}").val(vehicle.cnm); $P.$find("vhclNm").val(vehicle.cnm);
$("#vhclColr--${pageName}").val(vehicle.color_nm); $P.$find("vhclColr").val(vehicle.color_nm);
$("#useFuelCd--${pageName}").val(vehicle.use_fuel_code); $P.$find("useFuelCd").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용 if(vehicle.vhcty_asort_code == "1"){ //승용
$("#ffnlgCarmdlCd--${pageName}").val("11"); $P.$find("ffnlgCarmdlCd").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합 } else if(vehicle.vhcty_asort_code == "2"){ //승합
$("#ffnlgCarmdlCd--${pageName}").val("12"); $P.$find("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){
$("#ffnlgCarmdlCd--${pageName}").val("13"); $P.$find("ffnlgCarmdlCd").val("13");
} else { } else {
$("#ffnlgCarmdlCd--${pageName}").val("14"); $P.$find("ffnlgCarmdlCd").val("14");
} }
} else if(vehicle.vhcty_asort_code == "4"){ //특수 } else if(vehicle.vhcty_asort_code == "4"){ //특수
$("#ffnlgCarmdlCd--${pageName}").val("15"); $P.$find("ffnlgCarmdlCd").val("15");
} else { } else {
$("#ffnlgCarmdlCd--${pageName}").val(""); $P.$find("ffnlgCarmdlCd").val("");
} }
$("#zip--${pageName}").val(vehicle.zip_code); //우편번호 $P.$find("zip").val(vehicle.zip_code); //우편번호
$("#addr--${pageName}").val(vehicle.road_nm_adres); //주소 $P.$find("addr").val(vehicle.road_nm_adres); //주소
$("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소 $P.$find("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소
} }
}); });
}); });
$("#teamId--${pageName}").on("change",function(){ $P.$find("teamId").on("change",function(){
$("#teamer1--${pageName}").val(""); $P.$find("teamer1").val("");
$("#teamer2--${pageName}").val(""); $P.$find("teamer2").val("");
$("#teamer3--${pageName}").val(""); $P.$find("teamer3").val("");
$("#teamer4--${pageName}").val(""); $P.$find("teamer4").val("");
if(this.value != ""){ if(this.value != ""){
ajax.get({ ajax.get({
@ -694,10 +694,10 @@ $(document).ready(function(){
success : (resp) => { success : (resp) => {
if(resp.teamInfo != null){ if(resp.teamInfo != null){
var teamInfo = resp.teamInfo; var teamInfo = resp.teamInfo;
$("#teamer1--${pageName}").val(teamInfo.TEAMER_1); $P.$find("teamer1").val(teamInfo.TEAMER_1);
$("#teamer2--${pageName}").val(teamInfo.TEAMER_2); $P.$find("teamer2").val(teamInfo.TEAMER_2);
$("#teamer3--${pageName}").val(teamInfo.TEAMER_3); $P.$find("teamer3").val(teamInfo.TEAMER_3);
$("#teamer4--${pageName}").val(teamInfo.TEAMER_4); $P.$find("teamer4").val(teamInfo.TEAMER_4);
} }
} }
}); });

@ -355,9 +355,9 @@ $(document).ready(function(){
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.$find("byOutput").val("동적 검색");
$("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름 $P.$find("schRgtrNm").prop("readonly", true); // 사용자 이름
$('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-365).date); $P.$find("schCrdnYmdFrom").datepicker('setDate', DateUtil.getDateDay(-365).date);
$('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.$find("schCrdnYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }
@ -549,8 +549,8 @@ $(document).ready(function(){
// 사용자검색 callback // 사용자검색 callback
$P.callbackFindUser = (userId, userNm) => { $P.callbackFindUser = (userId, userNm) => {
$("#schRgtrCd--${pageName}").val(userId); // 사용자 ID $P.$find("schRgtrCd").val(userId); // 사용자 ID
$("#schRgtrNm--${pageName}").val(userNm); // 사용자 명 $P.$find("schRgtrNm").val(userNm); // 사용자 명
} }
// 사용자검색 버튼 클릭 이벤트 // 사용자검색 버튼 클릭 이벤트

@ -293,7 +293,7 @@
// 업무별 입력 항목 // 업무별 입력 항목
$P.fnRenderTask = (taskSeCd) => { $P.fnRenderTask = (taskSeCd) => {
if (taskSeCd == undefined || taskSeCd == null || taskSeCd == "") { if (taskSeCd == undefined || taskSeCd == null || taskSeCd == "") {
taskSeCd = $("#taskSeCd--${pageName}").val(); taskSeCd = $P.$find("taskSeCd").val();
} }
renderForTask($P.find("frmEdit"), taskSeCd.toLowerCase()); renderForTask($P.find("frmEdit"), taskSeCd.toLowerCase());
@ -313,11 +313,11 @@
, data: params || {} , data: params || {}
, success: resp => { , success: resp => {
// 항목 초기화 // 항목 초기화
$("#vin--${pageName}").val(""); $P.$find("vin").val("");
$("#vhclNm--${pageName}").val(""); $P.$find("vhclNm").val("");
$("#vhclColr--${pageName}").val(""); $P.$find("vhclColr").val("");
$("#useFuelCd--${pageName}").val(""); $P.$find("useFuelCd").val("");
$("#ffnlgCarmdlCd--${pageName}").val(""); $P.$find("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) - 공통 항목
$("#vin--${pageName}").val(vehicle.vin); // 차대번호 $P.$find("vin").val(vehicle.vin); // 차대번호
$("#vhclNm--${pageName}").val(vehicle.cnm); // 차량명 $P.$find("vhclNm").val(vehicle.cnm); // 차량명
$("#vhclColr--${pageName}").val(vehicle.color_nm); // 차량색상 $P.$find("vhclColr").val(vehicle.color_nm); // 차량색상
// 단속 부가 정보(TB_CRDN_ADI) - 사용 연료 코드 // 단속 부가 정보(TB_CRDN_ADI) - 사용 연료 코드
$("#useFuelCd--${pageName}").val(vehicle.use_fuel_code); $P.$find("useFuelCd").val(vehicle.use_fuel_code);
// 단속 부가 정보(TB_CRDN_ADI) - 과태료 차종 코드 // 단속 부가 정보(TB_CRDN_ADI) - 과태료 차종 코드
if (vehicle.vhcty_asort_code == "1") { // 승용 if (vehicle.vhcty_asort_code == "1") { // 승용
$("#ffnlgCarmdlCd--${pageName}").val("11"); $P.$find("ffnlgCarmdlCd").val("11");
} else if (vehicle.vhcty_asort_code == "2") { // 승합 } else if (vehicle.vhcty_asort_code == "2") { // 승합
$("#ffnlgCarmdlCd--${pageName}").val("12"); $P.$find("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){
$("#ffnlgCarmdlCd--${pageName}").val("13"); $P.$find("ffnlgCarmdlCd").val("13");
} else { } else {
$("#ffnlgCarmdlCd--${pageName}").val("14"); $P.$find("ffnlgCarmdlCd").val("14");
} }
} else if (vehicle.vhcty_asort_code == "4") { // 특수 } else if (vehicle.vhcty_asort_code == "4") { // 특수
$("#ffnlgCarmdlCd--${pageName}").val("15"); $P.$find("ffnlgCarmdlCd").val("15");
} else { } else {
$("#ffnlgCarmdlCd--${pageName}").val(""); $P.$find("ffnlgCarmdlCd").val("");
} }
} }
}); });
@ -362,8 +362,8 @@
// 차적 조회 // 차적 조회
$P.fnVehicle = (title) => { $P.fnVehicle = (title) => {
let crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", ""); let crdnYmd = $P.$find("crdnYmd").val().replaceAll("-", "");
let vhrno = $("#vhrno--${pageName}").val(); let vhrno = $P.$find("vhrno").val();
// 단속일자 // 단속일자
if (crdnYmd == "") { if (crdnYmd == "") {
@ -373,7 +373,7 @@
setDialogZindex(); setDialogZindex();
focusClose(); focusClose();
}, },
onClose : function() { $("#crdnYmd--${pageName}").focus(); } onClose : function() { $P.$find("crdnYmd").focus(); }
}); });
return; return;
} }
@ -385,14 +385,14 @@
setDialogZindex(); setDialogZindex();
focusClose(); focusClose();
}, },
onClose : function() { $("#vhrno--${pageName}").focus(); } onClose : function() { $P.$find("vhrno").focus(); }
}); });
return; return;
} }
let params = { let params = {
inqire_se_code : "3" inqire_se_code : "3"
, sggCd: $("#sggCd--${pageName}").val() , sggCd: $P.$find("sggCd").val()
, levy_stdde: crdnYmd , levy_stdde: crdnYmd
, vhrno: vhrno , vhrno: vhrno
} }
@ -455,7 +455,7 @@
}); });
// 차량번호 엔터 이벤트 // 차량번호 엔터 이벤트
$("#vhrno--${pageName}").onEnterPress(function() { $P.$find("vhrno").onEnterPress(function() {
$P.fnVehicle("차적 조회"); $P.fnVehicle("차적 조회");
}); });
@ -468,7 +468,7 @@
$P.initForm = () => { $P.initForm = () => {
// 달력 초기화 // 달력 초기화
initDatepicker($P.find("frmEdit")); initDatepicker($P.find("frmEdit"));
$("#crdnYmd--${pageName}").datepicker("setDate", TODAY()); $P.$find("crdnYmd").datepicker("setDate", TODAY());
} }
/************************************************************************** /**************************************************************************

@ -304,27 +304,27 @@ $(document).ready(function(){
$P.ctrl.dataset.onCurrentChange = (dataItem) => { $P.ctrl.dataset.onCurrentChange = (dataItem) => {
if(!dataItem){ if(!dataItem){
$("#teamNm--${pageName}").val(""); $P.$find("teamNm").val("");
$("#crdnSeCd--${pageName}").val(""); $P.$find("crdnSeCd").val("");
$("#teamer1--${pageName}").val(""); $P.$find("teamer1").val("");
$("#teamer2--${pageName}").val(""); $P.$find("teamer2").val("");
$("#teamer3--${pageName}").val(""); $P.$find("teamer3").val("");
$("#teamer4--${pageName}").val(""); $P.$find("teamer4").val("");
$("#etcCn--${pageName}").val(""); $P.$find("etcCn").val("");
return; return;
} }
Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("useTeamTbody")); Apply.fromDataset.currentRow($P.ctrl.dataset, dataItem, $P.find("useTeamTbody"));
$("#teamNm--${pageName}").val(dataItem.data.TEAM_NM); $P.$find("teamNm").val(dataItem.data.TEAM_NM);
$("#crdnSeCd--${pageName}").val(dataItem.data.CRDN_SE_CD); $P.$find("crdnSeCd").val(dataItem.data.CRDN_SE_CD);
$("#teamer1--${pageName}").val(dataItem.data.TEAMER_1); $P.$find("teamer1").val(dataItem.data.TEAMER_1);
$("#teamer2--${pageName}").val(dataItem.data.TEAMER_2); $P.$find("teamer2").val(dataItem.data.TEAMER_2);
$("#teamer3--${pageName}").val(dataItem.data.TEAMER_3); $P.$find("teamer3").val(dataItem.data.TEAMER_3);
$("#teamer4--${pageName}").val(dataItem.data.TEAMER_4); $P.$find("teamer4").val(dataItem.data.TEAMER_4);
$("#etcCn--${pageName}").val(dataItem.data.ETC_CN); $P.$find("etcCn").val(dataItem.data.ETC_CN);
$("#deletedTeamNm--${pageName}").val(dataItem.data.TEAM_NM); $P.$find("deletedTeamNm").val(dataItem.data.TEAM_NM);
} }
@ -447,7 +447,7 @@ $(document).ready(function(){
$P.fnShowDeleted = () => { $P.fnShowDeleted = () => {
var teamNm = $("#deletedTeamNm--${pageName}").val(); var teamNm = $P.$find("deletedTeamNm").val();
var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val(); var taskSeCd = $P.$find("frmSearch").find("input[name='taskSeCd']:checked").val();

@ -113,7 +113,7 @@ $(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);
$("#vhrno--${pageName}").prop("readonly", !create); $P.$find("vhrno").prop("readonly", !create);
} }
$P.fnSave = async() => { $P.fnSave = async() => {

@ -195,7 +195,7 @@
</div> </div>
</div> </div>
<div class="mt-2"> <div class="mt-2">
단속장소 <input id="bottomCrdnPlc--${pageName}" type="text" class="form-control" size="100" readonly /> 단속장소 <input id="bottomCrdnPlc--${pageName}" name="bottomCrdnPlc" type="text" class="form-control" size="100" readonly />
<button type="button" name="btnDelete" class="btn btn-primary" title="선택자료 삭제"> <button type="button" name="btnDelete" class="btn btn-primary" title="선택자료 삭제">
선택자료 삭제 선택자료 삭제
</button> </button>
@ -276,14 +276,14 @@ $(document).ready(function(){
$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.find("crdnTbody"));
if(!dataItem){ if(!dataItem){
$("#bottomCrdnPlc--${pageName}").val(""); $P.$find("bottomCrdnPlc").val("");
$P.$find("btnOpenCvlcptOrgnl").hide(); $P.$find("btnOpenCvlcptOrgnl").hide();
$P.$find("btnDelete").hide(); $P.$find("btnDelete").hide();
$P.$find("btnDeleteSameRcptYmd").hide(); $P.$find("btnDeleteSameRcptYmd").hide();
} else { } else {
$("#bottomCrdnPlc--${pageName}").val(dataItem.data["CRDN_PLC"]); $P.$find("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.$find("btnOpenCvlcptOrgnl").hide();
@ -314,9 +314,8 @@ $(document).ready(function(){
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.$find("byOutput").val("동적 검색");
$("#schRgtrNm--${pageName}").prop("readonly", true); // 사용자 이름 searchForm.find("[name='schCvlcptRcptYmdFrom']").datepicker('setDate', DateUtil.getDateDay(-5475).date);
$('#schCvlcptRcptYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date); searchForm.find("[name='schCvlcptRcptYmdTo']").datepicker('setDate', TODAY());
$('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }
@ -443,13 +442,13 @@ $(document).ready(function(){
$P.clickCrdnList = (dataKey) => { $P.clickCrdnList = (dataKey) => {
if(dataKey == ""){ if(dataKey == ""){
$("#bottomCrdnPlc--${pageName}").val(""); $P.$find("bottomCrdnPlc").val("");
return; return;
} }
$P.$find("crdnTbody").setCurrentRow(dataKey); $P.$find("crdnTbody").setCurrentRow(dataKey);
$("#bottomCrdnPlc--${pageName}").val($P.ctrl.dataset.getData(dataKey)["CRDN_PLC"]); $P.$find("bottomCrdnPlc").val($P.ctrl.dataset.getData(dataKey)["CRDN_PLC"]);
if($P.holdList.includes(dataKey)){ if($P.holdList.includes(dataKey)){
$P.$find("btnOpenCvlcptOrgnl").hide(); $P.$find("btnOpenCvlcptOrgnl").hide();

@ -381,7 +381,7 @@
</div> </div>
<jsp:include page="/WEB-INF/jsp/fims/photo-main.jsp" /> <jsp:include page="/WEB-INF/jsp/fims/photo-main.jsp" />
<div id="refreshEnd--${pageName}" class="parentGrid" hidden></div> <div name="refreshEnd" class="parentGrid" hidden></div>
</div> </div>
@ -467,9 +467,9 @@ $(document).ready(function(){
} }
} }
var crdnId = $("#crdnId--${pageName}").val(); var crdnId = $P.$find("crdnId").val();
var sggCd = $("#sggCd--${pageName}").val(); var sggCd = $P.$find("sggCd").val();
var taskSeCd = $("#taskSeCd--${pageName}").val(); var taskSeCd = $P.$find("taskSeCd").val();
var params = { var params = {
"openerPageName" : "${pageName}", "openerPageName" : "${pageName}",
@ -546,7 +546,7 @@ $(document).ready(function(){
dialog.close("levyExclDialog--${pageName}"); dialog.close("levyExclDialog--${pageName}");
} }
var crdnId = $("#crdnId--${pageName}").val(); var crdnId = $P.$find("crdnId").val();
var cursorKey = ""; var cursorKey = "";
@ -560,20 +560,20 @@ $(document).ready(function(){
} }
} }
$("#refreshEnd--${pageName}").attr("data-cursor-key", cursorKey); $P.$find("refreshEnd").attr("data-cursor-key", cursorKey);
$P.provided.refreshList(); $P.provided.refreshList();
} }
}; };
$P.fnPrev = () => { $P.fnPrev = () => {
var prevKey = $P.provided.getPrevKey($("#crdnId--${pageName}").val()); var prevKey = $P.provided.getPrevKey($P.$find("crdnId").val());
if(prevKey != ""){ if(prevKey != ""){
$P.fnGo(prevKey); $P.fnGo(prevKey);
} }
} }
$P.fnNext = () => { $P.fnNext = () => {
var nextKey = $P.provided.getNextKey($("#crdnId--${pageName}").val()); var nextKey = $P.provided.getNextKey($P.$find("crdnId").val());
if(nextKey != ""){ if(nextKey != ""){
$P.fnGo(nextKey); $P.fnGo(nextKey);
} }
@ -597,8 +597,8 @@ $(document).ready(function(){
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
var cs = $P.provided.getCountStatus($("#crdnId--${pageName}").val()); var cs = $P.provided.getCountStatus($P.$find("crdnId").val());
$("#countStauts--${pageName}").val(cs); $P.$find("countStauts").val(cs);
$P.provided.selectRow(crdnId); $P.provided.selectRow(crdnId);
@ -613,7 +613,7 @@ $(document).ready(function(){
} }
$P.fnCopy = async() => { $P.fnCopy = async() => {
var crdnId = $("#crdnId--${pageName}").val(); var crdnId = $P.$find("crdnId").val();
if(await confirm2("현 자료의 복사본을 생성하시겠습니까?")){ if(await confirm2("현 자료의 복사본을 생성하시겠습니까?")){
@ -630,7 +630,7 @@ $(document).ready(function(){
} }
}); });
$("#refreshEnd--${pageName}").attr("data-cursor-key", crdnId); $P.$find("refreshEnd").attr("data-cursor-key", crdnId);
$P.provided.refreshList(); $P.provided.refreshList();
} }
} }
@ -640,7 +640,7 @@ $(document).ready(function(){
} }
$P.fnOpenCvlcptOrgnl = () => { $P.fnOpenCvlcptOrgnl = () => {
var crdnId = $("#crdnId--${pageName}").val(); var crdnId = $P.$find("crdnId").val();
var dialogId = "cvlcptOrgnlDialog--${pageName}"; var dialogId = "cvlcptOrgnlDialog--${pageName}";
@ -662,7 +662,7 @@ $(document).ready(function(){
} }
$P.fnHold = () => { $P.fnHold = () => {
var crdnId = $("#crdnId--${pageName}").val(); var crdnId = $P.$find("crdnId").val();
$P.provided.holdRow(crdnId); $P.provided.holdRow(crdnId);
@ -689,7 +689,7 @@ $(document).ready(function(){
$P.fnPopPayer = () => { $P.fnPopPayer = () => {
var callPurpose = ""; var callPurpose = "";
var dialogTitle = ""; var dialogTitle = "";
if($("#rtpyrId--${pageName}").val() == null || $("#rtpyrId--${pageName}").val() == ""){ if($P.$find("rtpyrId").val() == null || $P.$find("rtpyrId").val() == ""){
callPurpose = "create"; callPurpose = "create";
dialogTitle = "납부자 등록"; dialogTitle = "납부자 등록";
} else { } else {
@ -699,12 +699,12 @@ $(document).ready(function(){
var params = { var params = {
callPurpose : callPurpose, callPurpose : callPurpose,
crdnId : $("#crdnId--${pageName}").val(), // 단속 ID crdnId : $P.$find("crdnId").val(), // 단속 ID
sggCd : $("#sggCd--${pageName}").val(), // 시군구 코드 sggCd : $P.$find("sggCd").val(), // 시군구 코드
taskSeCd : $("#taskSeCd--${pageName}").val(), // 업무 구분 코드 taskSeCd : $P.$find("taskSeCd").val(), // 업무 구분 코드
rtpyrId : $("#rtpyrId--${pageName}").val(), // 납부자 ID rtpyrId : $P.$find("rtpyrId").val(), // 납부자 ID
addrSn : $("#addrSn--${pageName}").val(), // 주소 일련번호 addrSn : $P.$find("addrSn").val(), // 주소 일련번호
vhrno : $("#vhrno--${pageName}").val(), // 차량번호 vhrno : $P.$find("vhrno").val(), // 차량번호
rtpyrInptSeCd : "01", // 납부자 입력 구분 코드 rtpyrInptSeCd : "01", // 납부자 입력 구분 코드
delYn : "N" delYn : "N"
}; };
@ -729,9 +729,9 @@ $(document).ready(function(){
var params = { var params = {
callPurpose : "refresh", callPurpose : "refresh",
crdnId : $("#crdnId--${pageName}").val(), crdnId : $P.$find("crdnId").val(),
sggCd : $("#sggCd--${pageName}").val(), sggCd : $P.$find("sggCd").val(),
taskSeCd : $("#taskSeCd--${pageName}").val(), taskSeCd : $P.$find("taskSeCd").val(),
delYn : "N" delYn : "N"
}; };
@ -743,23 +743,23 @@ $(document).ready(function(){
if (resp.crdnPayer) { if (resp.crdnPayer) {
var payer = resp.crdnPayer; var payer = resp.crdnPayer;
$("#rtpyrId--${pageName}").val(payer.RTPYR_ID).change(); $P.$find("rtpyrId").val(payer.RTPYR_ID).change();
$("#addrSn--${pageName}").val(payer.ADDR_SN).change(); $P.$find("addrSn").val(payer.ADDR_SN).change();
$("#rtpyrNm--${pageName}").val(payer.RTPYR_NM).change(); $P.$find("rtpyrNm").val(payer.RTPYR_NM).change();
$("#rtpyrSeCd--${pageName}").val(payer.RTPYR_SE_CD).change(); $P.$find("rtpyrSeCd").val(payer.RTPYR_SE_CD).change();
$("#rtpyrNo--${pageName}").val(payer.RTPYR_NO).change(); $P.$find("rtpyrNo").val(payer.RTPYR_NO).change();
$("#zip--${pageName}").val(payer.ZIP).change(); $P.$find("zip").val(payer.ZIP).change();
$("#addr--${pageName}").val(payer.ADDR).change(); $P.$find("addr").val(payer.ADDR).change();
$("#dtlAddr--${pageName}").val(payer.DTL_ADDR).change(); $P.$find("dtlAddr").val(payer.DTL_ADDR).change();
} else { } else {
$("#rtpyrId--${pageName}").val("").change(); $P.$find("rtpyrId").val("").change();
$("#addrSn--${pageName}").val("").change(); $P.$find("addrSn").val("").change();
$("#rtpyrNm--${pageName}").val("").change(); $P.$find("rtpyrNm").val("").change();
$("#rtpyrSeCd--${pageName}").val("").change(); $P.$find("rtpyrSeCd").val("").change();
$("#rtpyrNo--${pageName}").val("").change(); $P.$find("rtpyrNo").val("").change();
$("#zip--${pageName}").val("").change(); $P.$find("zip").val("").change();
$("#addr--${pageName}").val("").change(); $P.$find("addr").val("").change();
$("#dtlAddr--${pageName}").val("").change(); $P.$find("dtlAddr").val("").change();
} }
} }
}); });
@ -767,7 +767,7 @@ $(document).ready(function(){
} }
$P.fnReset = () => { $P.fnReset = () => {
var crdnId = $("#crdnId--${pageName}").val(); var crdnId = $P.$find("crdnId").val();
$P.fnGo(crdnId); $P.fnGo(crdnId);
} }
@ -815,7 +815,7 @@ $(document).ready(function(){
return; return;
} }
var crdnId = $("#crdnId--${pageName}").val(); var crdnId = $P.$find("crdnId").val();
ajax.post({ ajax.post({
url : $P.ctrl.urls.remove, url : $P.ctrl.urls.remove,
@ -834,7 +834,7 @@ $(document).ready(function(){
}); });
var crdnId = $("#crdnId--${pageName}").val(); var crdnId = $P.$find("crdnId").val();
var cursorKey = ""; var cursorKey = "";
@ -848,7 +848,7 @@ $(document).ready(function(){
} }
} }
$("#refreshEnd--${pageName}").attr("data-cursor-key", cursorKey); $P.$find("refreshEnd").attr("data-cursor-key", cursorKey);
$P.provided.refreshList(); $P.provided.refreshList();
} }
} }
@ -885,19 +885,19 @@ $(document).ready(function(){
//납부자 등록, 수정 //납부자 등록, 수정
$P.$find("btnPopPayer").on("click", () => $P.fnPopPayer()); $P.$find("btnPopPayer").on("click", () => $P.fnPopPayer());
$("#vhrno--${pageName}").onEnterPress(function(){ $P.$find("vhrno").onEnterPress(function(){
$P.getVehicleTotalInfo(event.target); $P.getVehicleTotalInfo(event.target);
}); });
//차적조회(단속내역,민원상담내역,차적기본조회,장애인표지조회) //차적조회(단속내역,민원상담내역,차적기본조회,장애인표지조회)
$P.getVehicleTotalInfo = async function(vhrnoEl){ $P.getVehicleTotalInfo = async function(vhrnoEl){
var otherWindow = false; var otherWindow = false;
if(!vhrnoEl.id.endsWith("--${pageName}")){ if($(vhrnoEl).parents("[data-doctx='${pageName}']").length < 1){
otherWindow = true; otherWindow = true;
} }
var taskSeCd = "${taskSeCd}"; var taskSeCd = "${taskSeCd}";
var crdnYmd = $("#crdnYmd--${pageName}").val().replaceAll("-", ""); var crdnYmd = $P.$find("crdnYmd").val().replaceAll("-", "");
var vhrno = vhrnoEl.value; var vhrno = vhrnoEl.value;
if(crdnYmd == ""){ if(crdnYmd == ""){
@ -908,7 +908,7 @@ $(document).ready(function(){
setDialogZindex(); setDialogZindex();
focusClose(); focusClose();
}, },
onClose:function(){ $("#crdnYmd--${pageName}").focus(); } onClose:function(){ $P.$find("crdnYmd").focus(); }
}); });
return; return;
} else { } else {
@ -936,7 +936,7 @@ $(document).ready(function(){
} }
} }
var sggCd = $("#sggCd--${pageName}").val(); var sggCd = $P.$find("sggCd").val();
var resp = null; var resp = null;
// //
@ -961,24 +961,24 @@ $(document).ready(function(){
resp = await getVhclInfo(sggCd, vhrno, crdnYmd); resp = await getVhclInfo(sggCd, vhrno, crdnYmd);
if(otherWindow){ if(otherWindow){
$("#vhrno--${pageName}").val(vhrno); $P.$find("vhrno").val(vhrno);
} }
if(!resp.found){ if(!resp.found){
$("#rtpyrId--${pageName}").val(""); $P.$find("rtpyrId").val("");
$("#addrSn--${pageName}").val(""); $P.$find("addrSn").val("");
$("#rtpyrNm--${pageName}").val(""); $P.$find("rtpyrNm").val("");
$("#rtpyrSeCd--${pageName}").val(""); $P.$find("rtpyrSeCd").val("");
$("#rtpyrNo--${pageName}").val(""); $P.$find("rtpyrNo").val("");
$("#vin--${pageName}").val(""); $P.$find("vin").val("");
$("#vhclNm--${pageName}").val(""); $P.$find("vhclNm").val("");
$("#vhclColr--${pageName}").val(""); $P.$find("vhclColr").val("");
$("#useFuelCd--${pageName}").val(""); $P.$find("useFuelCd").val("");
$("#ffnlgCarmdlCd--${pageName}").val(""); $P.$find("ffnlgCarmdlCd").val("");
$("#zip--${pageName}").val(""); $P.$find("zip").val("");
$("#addr--${pageName}").val(""); $P.$find("addr").val("");
$("#dtlAddr--${pageName}").val(""); $P.$find("dtlAddr").val("");
if(!otherWindow){ if(!otherWindow){
dialog.alert({ dialog.alert({
@ -998,12 +998,12 @@ $(document).ready(function(){
} }
} }
$("#rtpyrId--${pageName}").val(resp.rtpyrId); $P.$find("rtpyrId").val(resp.rtpyrId);
$("#addrSn--${pageName}").val(resp.addrSn); $P.$find("addrSn").val(resp.addrSn);
var vehicle = resp.vehicle; var vehicle = resp.vehicle;
$("#rtpyrNm--${pageName}").val(vehicle.mber_nm); $P.$find("rtpyrNm").val(vehicle.mber_nm);
var pyrSeCd = ""; var pyrSeCd = "";
switch(vehicle.mber_se_code){ switch(vehicle.mber_se_code){
@ -1013,51 +1013,51 @@ $(document).ready(function(){
case "14" : pyrSeCd = "04"; break; case "14" : pyrSeCd = "04"; break;
case "15" : pyrSeCd = "05"; break; case "15" : pyrSeCd = "05"; break;
} }
$("#rtpyrSeCd--${pageName}").val(pyrSeCd); $P.$find("rtpyrSeCd").val(pyrSeCd);
$("#rtpyrNo--${pageName}").val(vehicle.mber_se_no); $P.$find("rtpyrNo").val(vehicle.mber_se_no);
$("#vin--${pageName}").val(vehicle.vin); $P.$find("vin").val(vehicle.vin);
$("#vhclNm--${pageName}").val(vehicle.cnm); $P.$find("vhclNm").val(vehicle.cnm);
$("#vhclColr--${pageName}").val(vehicle.color_nm); $P.$find("vhclColr").val(vehicle.color_nm);
$("#useFuelCd--${pageName}").val(vehicle.use_fuel_code); $P.$find("useFuelCd").val(vehicle.use_fuel_code);
if(vehicle.vhcty_asort_code == "1"){ //승용 if(vehicle.vhcty_asort_code == "1"){ //승용
$("#ffnlgCarmdlCd--${pageName}").val("11"); $P.$find("ffnlgCarmdlCd").val("11");
} else if(vehicle.vhcty_asort_code == "2"){ //승합 } else if(vehicle.vhcty_asort_code == "2"){ //승합
$("#ffnlgCarmdlCd--${pageName}").val("12"); $P.$find("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){
$("#ffnlgCarmdlCd--${pageName}").val("13"); $P.$find("ffnlgCarmdlCd").val("13");
} else { } else {
$("#ffnlgCarmdlCd--${pageName}").val("14"); $P.$find("ffnlgCarmdlCd").val("14");
} }
} else if(vehicle.vhcty_asort_code == "4"){ //특수 } else if(vehicle.vhcty_asort_code == "4"){ //특수
$("#ffnlgCarmdlCd--${pageName}").val("15"); $P.$find("ffnlgCarmdlCd").val("15");
} else { } else {
$("#ffnlgCarmdlCd--${pageName}").val(""); $P.$find("ffnlgCarmdlCd").val("");
} }
$("#zip--${pageName}").val(vehicle.zip_code); //우편번호 $P.$find("zip").val(vehicle.zip_code); //우편번호
$("#addr--${pageName}").val(vehicle.road_nm_adres); //주소 $P.$find("addr").val(vehicle.road_nm_adres); //주소
$("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소 $P.$find("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소
if(taskSeCd == "DPV"){ if(taskSeCd == "DPV"){
resp = await getVhclDisabledParkingInfo(vhrno); resp = await 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") {
$("#prkPsbltyRsltCd--${pageName}").val("2"); $P.$find("prkPsbltyRsltCd").val("2");
} else { } else {
$("#prkPsbltyRsltCd--${pageName}").val("1"); $P.$find("prkPsbltyRsltCd").val("1");
} }
} }
if(otherWindow){ if(otherWindow){
return { return {
vhrno : $("#vhrno--${pageName}").val(), vhrno : $P.$find("vhrno").val(),
vhclNm : $("#vhclNm--${pageName}").val(), vhclNm : $P.$find("vhclNm").val(),
vhclColr : $("#vhclColr--${pageName}").val() vhclColr : $P.$find("vhclColr").val()
}; };
} else { } else {
return; return;
@ -1071,7 +1071,7 @@ $(document).ready(function(){
data: { data: {
openType : "D", openType : "D",
taskSeCd : "${taskSeCd}", taskSeCd : "${taskSeCd}",
vhrno : $("#vhrno--${pageName}").val() vhrno : $P.$find("vhrno").val()
}, },
success: function(resp) { success: function(resp) {
dialog.open({ dialog.open({
@ -1084,7 +1084,7 @@ $(document).ready(function(){
$(document).find("div.modal").last().on('shown.bs.modal', function () { $(document).find("div.modal").last().on('shown.bs.modal', function () {
$("#crdnListDialog--${pageName}").find("[name='schCrdnYmdFrom']").set(""); $("#crdnListDialog--${pageName}").find("[name='schCrdnYmdFrom']").set("");
$("#crdnListDialog--${pageName}").find("[name='schCrdnYmdTo']").set(""); $("#crdnListDialog--${pageName}").find("[name='schCrdnYmdTo']").set("");
$("#crdnListDialog--${pageName}").find("[name='vhrno']").set($("#vhrno--${pageName}").val()); $("#crdnListDialog--${pageName}").find("[name='vhrno']").set($P.$find("vhrno").val());
$("#crdnListDialog--${pageName}").find(".btn-search").eq(0).click(); $("#crdnListDialog--${pageName}").find(".btn-search").eq(0).click();
}); });
}, },
@ -1101,7 +1101,7 @@ $(document).ready(function(){
data: { data: {
openType : "D", openType : "D",
taskSeCd : "${taskSeCd}", taskSeCd : "${taskSeCd}",
vhrno : $("#vhrno--${pageName}").val() vhrno : $P.$find("vhrno").val()
}, },
success: function(resp) { success: function(resp) {
dialog.open({ dialog.open({
@ -1114,7 +1114,7 @@ $(document).ready(function(){
$(document).find("div.modal").last().on('shown.bs.modal', function () { $(document).find("div.modal").last().on('shown.bs.modal', function () {
$("#cvlcptDscsnListDialog--${pageName}").find("[name='schDscsnYmdFrom']").set(""); $("#cvlcptDscsnListDialog--${pageName}").find("[name='schDscsnYmdFrom']").set("");
$("#cvlcptDscsnListDialog--${pageName}").find("[name='schDscsnYmdTo']").set(""); $("#cvlcptDscsnListDialog--${pageName}").find("[name='schDscsnYmdTo']").set("");
$("#cvlcptDscsnListDialog--${pageName}").find("[name='schVhrno']").set($("#vhrno--${pageName}").val()); $("#cvlcptDscsnListDialog--${pageName}").find("[name='schVhrno']").set($P.$find("vhrno").val());
$("#cvlcptDscsnListDialog--${pageName}").find(".btn-search").eq(0).click(); $("#cvlcptDscsnListDialog--${pageName}").find(".btn-search").eq(0).click();
}); });
}, },
@ -1126,17 +1126,17 @@ $(document).ready(function(){
if("${taskSeCd}" == "DPV"){ if("${taskSeCd}" == "DPV"){
$("#vltnCd--${pageName}").on("change", function(){ $P.$find("vltnCd").on("change", function(){
if(this.value == "01"){ if(this.value == "01"){
$("label[for='dstrbncYn--${pageName}']").show(); $("label[for='dstrbncYn--${pageName}']").show();
} else { } else {
$("label[for='dstrbncYn--${pageName}']").hide(); $("label[for='dstrbncYn--${pageName}']").hide();
$("#dstrbncYn--${pageName}").prop("checked", false); $P.$find("dstrbncYn").prop("checked", false);
} }
}); });
} }
$("#refreshEnd--${pageName}").on("refreshEnd", function(){ $P.$find("refreshEnd").on("refreshEnd", function(){
if(this.dataset.cursorKey == null || this.dataset.cursorKey == ""){ if(this.dataset.cursorKey == null || this.dataset.cursorKey == ""){
dialog.close("cvlcptInitialDataEditDialog--${openerPageName}"); dialog.close("cvlcptInitialDataEditDialog--${openerPageName}");
@ -1176,7 +1176,7 @@ $(document).ready(function(){
crdnInfo.CVLCPT_APLY_CN = escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN); crdnInfo.CVLCPT_APLY_CN = escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([crdnInfo]); $P.ctrl.dataset.setData([crdnInfo]);
if($("#taskSeCd--${pageName}").val() == "DPV" && $("#vltnCd--${pageName}").val() == "01"){ if($P.$find("taskSeCd").val() == "DPV" && $P.$find("vltnCd").val() == "01"){
$("label[for='dstrbncYn--${pageName}']").show(); $("label[for='dstrbncYn--${pageName}']").show();
} else { } else {
$("label[for='dstrbncYn--${pageName}']").hide(); $("label[for='dstrbncYn--${pageName}']").hide();
@ -1185,17 +1185,17 @@ $(document).ready(function(){
//보안모드 //보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked")); fn_securityModeToggle($("#securityMode--top").is(":checked"));
var cs = $P.provided.getCountStatus($("#crdnId--${pageName}").val()); var cs = $P.provided.getCountStatus($P.$find("crdnId").val());
$("#countStauts--${pageName}").val(cs); $P.$find("countStauts").val(cs);
//사진영역 설정 //사진영역 설정
settingPhotoMain("${pageName}", "crdnId--${pageName}", settingPhotoMain("${pageName}", "crdnId--${pageName}",
function(){ function(){
return { return {
vhrno : $("#vhrno--${pageName}").val(), vhrno : $P.$find("vhrno").val(),
vhclNm : $("#vhclNm--${pageName}").val(), vhclNm : $P.$find("vhclNm").val(),
vhclColr : $("#vhclColr--${pageName}").val() vhclColr : $P.$find("vhclColr").val()
}; };
}, },
async function(vhrnoEl){ async function(vhrnoEl){

@ -80,7 +80,7 @@
</select> </select>
</div> </div>
<div class="col-md-6" name="pageNavArea"> <div class="col-md-6" name="pageNavArea">
<input type="text" id="countStauts--${pageName}" <input type="text" id="countStauts--${pageName}" name="countStauts"
class="form-control w-px-150 text-center fw-bold" readonly /> class="form-control w-px-150 text-center fw-bold" readonly />
<button type="button" iname="btnPrev" class="w-px-50 btn-PageUp">◀</button> <button type="button" iname="btnPrev" class="w-px-50 btn-PageUp">◀</button>
<button type="button" name="btnNext" class="w-px-50 btn-PageDown">▶</button> <button type="button" name="btnNext" class="w-px-50 btn-PageDown">▶</button>
@ -142,14 +142,14 @@ $(document).ready(function() {
**************************************************************************/ **************************************************************************/
$P.fnPrev = () => { $P.fnPrev = () => {
var prevKey = $P.provided.getPrevKey($("#crdnId--${pageName}").val()); var prevKey = $P.provided.getPrevKey($P.$find("crdnId").val());
if(prevKey != ""){ if(prevKey != ""){
$P.fnGo(prevKey); $P.fnGo(prevKey);
} }
} }
$P.fnNext = () => { $P.fnNext = () => {
var nextKey = $P.provided.getNextKey($("#crdnId--${pageName}").val()); var nextKey = $P.provided.getNextKey($P.$find("crdnId").val());
if(nextKey != ""){ if(nextKey != ""){
$P.fnGo(nextKey); $P.fnGo(nextKey);
} }
@ -167,8 +167,8 @@ $(document).ready(function() {
cvlcptInfo.CVLCPT_APLY_CN = escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN); cvlcptInfo.CVLCPT_APLY_CN = escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([cvlcptInfo]); $P.ctrl.dataset.setData([cvlcptInfo]);
var cs = $P.provided.getCountStatus($("#crdnId--${pageName}").val()); var cs = $P.provided.getCountStatus($P.$find("crdnId").val());
$("#countStauts--${pageName}").val(cs); $P.$find("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 : $("#crdnId--${pageName}").val() }); var parameter = toQuery({ crdnId : $P.$find("crdnId").val() });
document.location.href = url + "?" + parameter; document.location.href = url + "?" + parameter;
} }
@ -194,7 +194,7 @@ $(document).ready(function() {
var cvlcptInfo = ${cvlcptInfo}; var cvlcptInfo = ${cvlcptInfo};
cvlcptInfo.CVLCPT_APLY_CN = escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN); cvlcptInfo.CVLCPT_APLY_CN = escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([cvlcptInfo]); $P.ctrl.dataset.setData([cvlcptInfo]);
var cs = $P.provided.getCountStatus($("#crdnId--${pageName}").val()); var cs = $P.provided.getCountStatus($P.$find("crdnId").val());
$("#countStauts--${pageName}").val(cs); $P.$find("countStauts").val(cs);
}); });
</script> </script>

@ -302,8 +302,8 @@ $(document).ready(function(){
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.$find("byOutput").val("동적 검색");
$('#schCvlcptRcptYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-31).date); $P.$find("schCvlcptRcptYmdFrom").datepicker('setDate', DateUtil.getDateDay(-31).date);
$('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.$find("schCvlcptRcptYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }

@ -16,7 +16,7 @@
</label> </label>
</div> </div>
<div class="col-md-6 text-end"> <div class="col-md-6 text-end">
<input type="text" id="countStauts--${pageName}" <input type="text" id="countStauts--${pageName}" name="countStauts"
class="form-control w-px-150 text-center fw-bold" readonly /> class="form-control w-px-150 text-center fw-bold" readonly />
<button type="button" name="btnPrev" class="w-px-50 btn-PageUp">◀</button> <button type="button" name="btnPrev" class="w-px-50 btn-PageUp">◀</button>
<button type="button" name="btnNext" class="w-px-50 btn-PageDown">▶</button> <button type="button" name="btnNext" class="w-px-50 btn-PageDown">▶</button>
@ -112,14 +112,14 @@ $(document).ready(function() {
**************************************************************************/ **************************************************************************/
$P.fnPrev = () => { $P.fnPrev = () => {
var prevKey = $P.parentRes.getPrevKey($("#crdnId--${pageName}").val()); var prevKey = $P.parentRes.getPrevKey($P.$find("crdnId").val());
if(prevKey != ""){ if(prevKey != ""){
$P.fnGo(prevKey); $P.fnGo(prevKey);
} }
} }
$P.fnNext = () => { $P.fnNext = () => {
var nextKey = $P.parentRes.getNextKey($("#crdnId--${pageName}").val()); var nextKey = $P.parentRes.getNextKey($P.$find("crdnId").val());
if(nextKey != ""){ if(nextKey != ""){
$P.fnGo(nextKey); $P.fnGo(nextKey);
} }
@ -137,8 +137,8 @@ $(document).ready(function() {
cvlcptInfo.CVLCPT_APLY_CN = escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN); cvlcptInfo.CVLCPT_APLY_CN = escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([cvlcptInfo]); $P.ctrl.dataset.setData([cvlcptInfo]);
var cs = $P.parentRes.getCountStatus($("#crdnId--${pageName}").val()); var cs = $P.parentRes.getCountStatus($P.$find("crdnId").val());
$("#countStauts--${pageName}").val(cs); $P.$find("countStauts").val(cs);
$P.parentRes.selectRow(crdnId); $P.parentRes.selectRow(crdnId);
} }
}); });
@ -192,8 +192,8 @@ $(document).ready(function() {
var cvlcptInfo = ${cvlcptInfo}; var cvlcptInfo = ${cvlcptInfo};
cvlcptInfo.CVLCPT_APLY_CN = escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN); cvlcptInfo.CVLCPT_APLY_CN = escapeHTMLEntity(cvlcptInfo.CVLCPT_APLY_CN);
$P.ctrl.dataset.setData([cvlcptInfo]); $P.ctrl.dataset.setData([cvlcptInfo]);
var cs = $P.parentRes.getCountStatus($("#crdnId--${pageName}").val()); var cs = $P.parentRes.getCountStatus($P.$find("crdnId").val());
$("#countStauts--${pageName}").val(cs); $P.$find("countStauts").val(cs);
let openerPageName = "${openerPageName}"; let openerPageName = "${openerPageName}";

@ -287,8 +287,8 @@ $(document).ready(function(){
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.$find("byOutput").val("동적 검색");
$('#schCvlcptRcptYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-365).date); $P.$find("schCvlcptRcptYmdFrom").datepicker('setDate', DateUtil.getDateDay(-365).date);
$('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.$find("schCvlcptRcptYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }

@ -215,8 +215,8 @@ $(document).ready(function(){
**************************************************************************/ **************************************************************************/
$P.fnReset = () => { $P.fnReset = () => {
$('#schDmndYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date); $P.$find("schDmndYmdFrom").datepicker('setDate', DateUtil.getDateDay(-5475).date);
$('#schDmndYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.$find("schDmndYmdTo").datepicker('setDate', TODAY());
$P.ctrl.dataset.setData([]); $P.ctrl.dataset.setData([]);
} }

@ -255,7 +255,7 @@
<div class="row"> <div class="row">
<div class="col-12 btns"> <div class="col-12 btns">
<strong>[매크로 문자 삽입]</strong> <strong>[매크로 문자 삽입]</strong>
<label id="macroTarget--${pageName}" for="" hidden></label> <label name="macroTarget" for="" hidden></label>
<button type="button" name="btnInsertMacro1" <button type="button" name="btnInsertMacro1"
class="btn btn-primary" title="일련번호 삽입">일련번호</button> class="btn btn-primary" title="일련번호 삽입">일련번호</button>
@ -359,9 +359,9 @@ $(document).ready(function(){
url : $P.ctrl.urls.load, url : $P.ctrl.urls.load,
data : {"taskSeCd" : taskSeCd}, data : {"taskSeCd" : taskSeCd},
success : (resp) => { success : (resp) => {
$("#headerCn--${pageName}").val(resp.headerCn); $P.$find("headerCn").val(resp.headerCn);
$("#footerCn--${pageName}").val(resp.footerCn); $P.$find("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);
@ -496,10 +496,10 @@ $(document).ready(function(){
} }
if(curData == null){ if(curData == null){
$("#ansRsnCd--${pageName}").val(""); $P.$find("ansRsnCd").val("");
$("#dstrbncYn--${pageName}").val(""); $P.$find("dstrbncYn").val("");
$("#ansWordsId--${pageName}").val(""); $P.$find("ansWordsId").val("");
$("#prcsRsltCn--${pageName}").val(""); $P.$find("prcsRsltCn").val("");
return; return;
} }
@ -523,10 +523,10 @@ $(document).ready(function(){
} }
} }
$("#ansRsnCd--${pageName}").val(rnsRsnCd); $P.$find("ansRsnCd").val(rnsRsnCd);
$("#dstrbncYn--${pageName}").val(dstrbncYn); $P.$find("dstrbncYn").val(dstrbncYn);
$("#ansWordsId--${pageName}").val(curData["ANS_WORDS_ID"]); $P.$find("ansWordsId").val(curData["ANS_WORDS_ID"]);
$("#prcsRsltCn--${pageName}").val(curData["PRCS_RSLT_CN"]); $P.$find("prcsRsltCn").val(curData["PRCS_RSLT_CN"]);
} }
$P.refreshAnsWordsInfo = () => { $P.refreshAnsWordsInfo = () => {
@ -541,8 +541,8 @@ $(document).ready(function(){
data : {"taskSeCd" : taskSeCd}, data : {"taskSeCd" : taskSeCd},
success : (resp) => { success : (resp) => {
$("#headerCn--${pageName}").val(resp.headerCn); $P.$find("headerCn").val(resp.headerCn);
$("#footerCn--${pageName}").val(resp.footerCn); $P.$find("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);
@ -642,9 +642,9 @@ $(document).ready(function(){
$P.fnOpenPreviewPop = () => { $P.fnOpenPreviewPop = () => {
var result = fnMacroWordsReplace( var result = fnMacroWordsReplace(
$("#headerCn--${pageName}").val(), $P.$find("headerCn").val(),
$("#footerCn--${pageName}").val(), $P.$find("footerCn").val(),
$("#prcsRsltCn--${pageName}").val(), $P.$find("prcsRsltCn").val(),
"${currentUserTelno}", "${currentUserTelno}",
"${currentUserName}" "${currentUserName}"
); );
@ -677,7 +677,7 @@ $(document).ready(function(){
$P.currentDisplay = "ansBasic"; $P.currentDisplay = "ansBasic";
$("#macroTarget--${pageName}").attr("for",""); $P.$find("macroTarget").attr("for","");
}); });
$P.$find("btnLevyAnsBodyTab").on('click', (event) => { $P.$find("btnLevyAnsBodyTab").on('click', (event) => {
@ -697,7 +697,7 @@ $(document).ready(function(){
$P.changeAnsBodyText(); $P.changeAnsBodyText();
$("#macroTarget--${pageName}").attr("for",""); $P.$find("macroTarget").attr("for","");
}); });
$P.$find("btnWarningAnsBodyTab").on('click', (event) => { $P.$find("btnWarningAnsBodyTab").on('click', (event) => {
@ -716,7 +716,7 @@ $(document).ready(function(){
$P.changeAnsBodyText(); $P.changeAnsBodyText();
$("#macroTarget--${pageName}").attr("for",""); $P.$find("macroTarget").attr("for","");
}); });
$P.$find("btnNonlevyAnsBodyTab").on('click', (event) => { $P.$find("btnNonlevyAnsBodyTab").on('click', (event) => {
@ -735,7 +735,7 @@ $(document).ready(function(){
$P.changeAnsBodyText(); $P.changeAnsBodyText();
$("#macroTarget--${pageName}").attr("for",""); $P.$find("macroTarget").attr("for","");
}); });
//업무처리 버튼 //업무처리 버튼
@ -743,23 +743,23 @@ $(document).ready(function(){
$P.$find("btnSaveAnsBody").on("click", () => $P.fnSave(false)); $P.$find("btnSaveAnsBody").on("click", () => $P.fnSave(false));
$P.$find("btnRemove").on("click", () => $P.fnRemove()); $P.$find("btnRemove").on("click", () => $P.fnRemove());
$P.$find("btnOpenPreviewPop").on("click", () => $P.fnOpenPreviewPop()); $P.$find("btnOpenPreviewPop").on("click", () => $P.fnOpenPreviewPop());
$("#headerCn--${pageName},#footerCn--${pageName},#prcsRsltCn--${pageName}").on("focus", (event) => { $($P.selfElement()).find("[name='headerCn'],[name='footerCn'],[name='prcsRsltCn']").on("focus", (event) => {
$("#macroTarget--${pageName}").attr("for", event.target.id); $P.$find("macroTarget").attr("for", event.target.id);
}); });
$P.$find("btnInsertMacro1").on("click", () => { $P.$find("btnInsertMacro1").on("click", () => {
var macroTarget = $("#macroTarget--${pageName}").attr("for"); var macroTarget = $P.$find("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.$find("btnInsertMacro2").on("click", () => {
var macroTarget = $("#macroTarget--${pageName}").attr("for"); var macroTarget = $P.$find("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.$find("btnInsertMacro3").on("click", () => {
var macroTarget = $("#macroTarget--${pageName}").attr("for"); var macroTarget = $P.$find("macroTarget").attr("for");
if(macroTarget == ""){ return; } if(macroTarget == ""){ return; }
fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_PIC_NM); fnMacroStringInsert(macroTarget, MACRO_STRING.MACRO_PIC_NM);
}); });

@ -227,17 +227,17 @@ $(document).ready(function(){
var curData = $P.ctrl.dataset.getCurrent(); var curData = $P.ctrl.dataset.getCurrent();
if(curData == null){ if(curData == null){
$("#ansRsnCd--${pageName}").val(""); $P.$find("ansRsnCd").val("");
$("#ansWordsId--${pageName}").val(""); $P.$find("ansWordsId").val("");
$("#mailTtlNm--${pageName}").val(""); $P.$find("mailTtlNm").val("");
$("#mailCn--${pageName}").val(""); $P.$find("mailCn").val("");
return; return;
} }
$("#ansRsnCd--${pageName}").val(curData["LEVY_EXCL_RSN_CD"]); $P.$find("ansRsnCd").val(curData["LEVY_EXCL_RSN_CD"]);
$("#ansWordsId--${pageName}").val(curData["ANS_WORDS_ID"]); $P.$find("ansWordsId").val(curData["ANS_WORDS_ID"]);
$("#mailTtlNm--${pageName}").val(curData["MAIL_TTL_NM"]); $P.$find("mailTtlNm").val(curData["MAIL_TTL_NM"]);
$("#mailCn--${pageName}").val(curData["MAIL_CN"]); $P.$find("mailCn").val(curData["MAIL_CN"]);
} }
$P.refreshWarningWordsInfo = () => { $P.refreshWarningWordsInfo = () => {

@ -14,6 +14,9 @@ class DoctxFinder extends EventTarget {
selector(name){ selector(name){
return "[data-doctx='"+this.doctx+"'] [name='"+name+"']"; return "[data-doctx='"+this.doctx+"'] [name='"+name+"']";
} }
selfElement(){
return document.querySelector("[data-doctx='"+this.doctx+"']");
}
$find(name){ $find(name){
return $(document.querySelector("[data-doctx='"+this.doctx+"']")).find("[name='"+name+"']"); return $(document.querySelector("[data-doctx='"+this.doctx+"']")).find("[name='"+name+"']");
} }

Loading…
Cancel
Save