@ -428,6 +428,40 @@
if( responseObj && responseObj.data ){
// 총 개수 업데이트
$('#totalCount').text('총 ' + responseObj.data.contents.length + '건');
// 부과정보 완료 여부 판단
var isAllLevyInfoCompletedUrl = '<c:url value="/crdn/crndRegistAndView/crdnLevyPrvntc/selectIsAllLevyInfoCompleted.ajax"/>';
var requestData = {
crdnYr: LevyPrvntcPopup.crdnYr,
crdnNo: LevyPrvntcPopup.crdnNo,
impltTaskSeCd: LevyPrvntcPopup.impltTaskSeCd
};
$.ajax({
url: isAllLevyInfoCompletedUrl,
type: 'GET',
data: requestData,
dataType: 'json',
success: function(response) {
console.log('부과정보 완료 여부 판단 결과:', response);
if (response.success && response.data) {
LevyPrvntcPopup.isAllLevyInfoCompleted = response.data;
if( LevyPrvntcPopup.isAllLevyInfoCompleted ){
$('#tab-implt').show();
}else{
$('#tab-implt').hide();
}
} else {
LevyPrvntcPopup.isAllLevyInfoCompleted = null;
$('#tab-implt').hide();
}
},
error: function(xhr, status, error) {
console.error('부과정보 완료 여부 판단 중 오류 발생:', error);
LevyPrvntcPopup.isAllLevyInfoCompleted = null;
$('#tab-implt').hide();
}
});
}
});
@ -455,38 +489,6 @@
});
// 부과정보 완료 여부 판단
var isAllLevyInfoCompletedUrl = '<c:url value="/crdn/crndRegistAndView/crdnLevyPrvntc/selectIsAllLevyInfoCompleted.ajax"/>';
var requestData = {
crdnYr: LevyPrvntcPopup.crdnYr,
crdnNo: LevyPrvntcPopup.crdnNo,
impltTaskSeCd: LevyPrvntcPopup.impltTaskSeCd
};
$.ajax({
url: isAllLevyInfoCompletedUrl,
type: 'GET',
data: requestData,
dataType: 'json',
success: function(response) {
console.log('부과정보 완료 여부 판단 결과:', response);
if (response.success && response.data) {
LevyPrvntcPopup.isAllLevyInfoCompleted = response.data;
if( LevyPrvntcPopup.isAllLevyInfoCompleted ){
$('#tab-implt').show();
}else{
$('#tab-implt').hide();
}
} else {
LevyPrvntcPopup.isAllLevyInfoCompleted = null;
$('#tab-implt').hide();
}
},
error: function(xhr, status, error) {
console.error('부과정보 완료 여부 판단 중 오류 발생:', error);
LevyPrvntcPopup.isAllLevyInfoCompleted = null;
$('#tab-implt').hide();
}
});
});
this.instance.on('focusChange', function(ev) {
@ -558,7 +560,7 @@
LevyPrvntcPopup.levyInfoIdSelect = existingData.levyInfoId;
// 위반면적 설정
$('#vltnArea').val(existingData.vltnArea || '').trigger('change ');
$('#vltnArea').val(existingData.vltnArea || '').trigger('focus ');
// 산정률1 설정 (행위유형)
$('#cmpttnRtDisplay').val((existingData.cmpttnRt || '') + ' %');
@ -587,7 +589,7 @@
// 위치지수
$('#pstnIdxNo').val(existingData.pstnIdxNo || '');
$('#pstnIdx_nm').val(existingData.oalp || '').trigger('focus'); // 공시지가
$('#pstnIdx_nm').val(existingData.oalp || '').trigger('focus').trigger('change') ; // 공시지가
$('#pstnIdx').val(existingData.pstnIdx || '');
// 경과년수별잔가율
@ -658,7 +660,7 @@
*/
var setActInfoToForm = function(rowData) {
var vltnArea = rowData.calcArea; // 면적 - 조치면적 : 위반면적
$('#vltnArea').val(vltnArea).trigger('change'); // 위반면적, change 이벤트 트리거
$('#vltnArea').val(vltnArea).trigger('focus').trigger(' change'); // 위반면적, change 이벤트 트리거
// 행위유형에 따른 산정률1 설정
$('#cmpttnRtDisplay').val(rowData.actCmpttnRt+ ' %');