|
|
|
|
@ -718,23 +718,8 @@
|
|
|
|
|
|
|
|
|
|
LevyPrvntcPopup.levyInfoIdSelect = existingData.levyInfoId;
|
|
|
|
|
|
|
|
|
|
// 위반면적 설정
|
|
|
|
|
$('#vltnArea').val(existingData.vltnArea || '').trigger('focus');
|
|
|
|
|
|
|
|
|
|
// 산정률1 설정 (행위유형)
|
|
|
|
|
$('#cmpttnRtDisplay').val((existingData.cmpttnRt || '') + ' %'); // 산정률 표시 필드 (퍼센트 포함)
|
|
|
|
|
$('#cmpttnRtCd').val(existingData.cmpttnRtCd || ''); // 산정률 코드 설정
|
|
|
|
|
$('#cmpttnRt').val(existingData.cmpttnRt || ''); // 산정률 값 설정
|
|
|
|
|
$('#cmpttnRtRate').val(existingData.cmpttnRtRate || ''); // 계산용 비율값
|
|
|
|
|
|
|
|
|
|
// 기초공사구분 및 비율
|
|
|
|
|
$('#bscsCstrnSeCd').val(existingData.bscsCstrnSeCd || ''); // 기초공사구분 코드 설정
|
|
|
|
|
$('#bscsCstrnRt').val(existingData.bscsCstrnRt || ''); // 기초공사율 값 설정
|
|
|
|
|
|
|
|
|
|
// 건물기준시가액
|
|
|
|
|
$('#bldgNewPrcCrtrAmtNo').val(existingData.bldgNewPrcCrtrAmtNo || ''); // 건물기준시가액 번호 설정
|
|
|
|
|
$('#bldgNewPrcCrtrAmtDisplay').val(existingData.bldgNewPrcCrtrAmtDisplay || ''); // 건축물용도명
|
|
|
|
|
$('#bldgNewPrcCrtrAmt').val(existingData.bldgCrtrMprcAmt || '').trigger('focus'); // 건물기준시가액 값 설정
|
|
|
|
|
// 건축물과세시가
|
|
|
|
|
$('#taxableMarketPrice').val(existingData.bdstTxtnMprc || '').trigger('focus');
|
|
|
|
|
|
|
|
|
|
// 구조지수
|
|
|
|
|
$('#strctIdxCd').val(existingData.strctIdxCd || ''); // 구조지수 코드 설정
|
|
|
|
|
@ -755,11 +740,31 @@
|
|
|
|
|
$('#elpsYrRdvlrt_yr').val((existingData.elpsYrRdvlrtYr || '') + ' 년'); // 행위시작년도
|
|
|
|
|
$('#elpsYrRdvlrt').val(existingData.elpsYrRdvlrt || ''); // 경과년수별잔가율 값 설정
|
|
|
|
|
|
|
|
|
|
// 산정률2
|
|
|
|
|
$('#cmpttnRt2Cd').val(existingData.cmpttnRt2Cd || ''); // 산정률2 코드 설정
|
|
|
|
|
$('#cmpttnRt2').val(existingData.cmpttnRt2 || ''); // 산정률2 값 설정
|
|
|
|
|
$('#cmpttnRt2Display').val((existingData.cmpttnRt2 || '') + ' %'); // 산정률2 표시 필드 (퍼센트 포함)
|
|
|
|
|
$('#cmpttnRt2Rate').val(existingData.cmpttnRt2Rate || ''); // 계산용 비율값
|
|
|
|
|
// 기초공사구분 및 비율
|
|
|
|
|
$('#bscsCstrnSeCd').val(existingData.bscsCstrnSeCd || ''); // 기초공사구분 코드 설정
|
|
|
|
|
$('#bscsCstrnRt').val(existingData.bscsCstrnRt || ''); // 기초공사율 값 설정
|
|
|
|
|
|
|
|
|
|
// 기초공사율 계산을 위한 기준 비율들 저장 (hidden으로)
|
|
|
|
|
if (!$('#bscsCstrnYBdstCmpttnRt').length) {
|
|
|
|
|
$('<input type="hidden" id="bscsCstrnYBdstCmpttnRt">').appendTo('body');
|
|
|
|
|
$('<input type="hidden" id="bscsCstrnNBdstCmpttnRt">').appendTo('body');
|
|
|
|
|
$('<input type="hidden" id="dupEtbldgBdstCmpttnRt">').appendTo('body');
|
|
|
|
|
}
|
|
|
|
|
$('#bscsCstrnYBdstCmpttnRt').val(existingData.bscsCstrnYBdstCmpttnRt || '');
|
|
|
|
|
$('#bscsCstrnNBdstCmpttnRt').val(existingData.bscsCstrnNBdstCmpttnRt || '');
|
|
|
|
|
$('#dupEtbldgBdstCmpttnRt').val(existingData.dupEtbldgBdstCmpttnRt || '');
|
|
|
|
|
|
|
|
|
|
// 건물기준시가액
|
|
|
|
|
$('#bldgNewPrcCrtrAmtNo').val(existingData.bldgNewPrcCrtrAmtNo || ''); // 건물기준시가액 번호 설정
|
|
|
|
|
$('#bldgNewPrcCrtrAmtDisplay').val(existingData.bldgNewPrcCrtrAmtDisplay || ''); // 건축물용도명
|
|
|
|
|
$('#bldgNewPrcCrtrAmt').val(existingData.bldgCrtrMprcAmt || '').trigger('focus'); // 건물기준시가액 값 설정
|
|
|
|
|
|
|
|
|
|
// 시가표준액
|
|
|
|
|
$('#standardMarketPrice').val(existingData.mprcStdAmt || '').trigger('focus');
|
|
|
|
|
$('#standardMarketPrice_bottom').val(existingData.mprcStdAmt || '').trigger('focus');
|
|
|
|
|
|
|
|
|
|
// 위반면적 설정
|
|
|
|
|
$('#vltnArea').val(existingData.vltnArea || '').trigger('focus');
|
|
|
|
|
|
|
|
|
|
// 가감산 정보
|
|
|
|
|
$('#adtnRtCd').val(existingData.adtnRtCd || ''); // 가산율 코드 설정
|
|
|
|
|
@ -773,28 +778,6 @@
|
|
|
|
|
$('#adsbmtnEnfcRt').val(existingData.adsbmtnEnfcRt || '100'); // 가감산시행령률 값 설정
|
|
|
|
|
$('#adsbmtnEnfcRtDisplay').val((existingData.adsbmtnEnfcRt || '100') + ' %'); // 가감산시행령률 표시 필드 (퍼센트 포함)
|
|
|
|
|
|
|
|
|
|
// 산정액 및 부과총액
|
|
|
|
|
$('#cmpttnAmt').val(existingData.cmpttnAmt || '').trigger('focus'); // 산정액 값 설정
|
|
|
|
|
$('#levyWholAmt').val(existingData.levyWholAmt || ''); // 부과총액 값 설정
|
|
|
|
|
$('#levyWholAmtDisplay').text((existingData.levyWholAmt ? Number(existingData.levyWholAmt).toLocaleString() : '0') + ' 원');
|
|
|
|
|
|
|
|
|
|
// 시가표준액
|
|
|
|
|
$('#standardMarketPrice').val(existingData.mprcStdAmt || '').trigger('focus');
|
|
|
|
|
$('#standardMarketPrice_bottom').val(existingData.mprcStdAmt || '').trigger('focus');
|
|
|
|
|
|
|
|
|
|
// 건축물과세시가
|
|
|
|
|
$('#taxableMarketPrice').val(existingData.bdstTxtnMprc || '').trigger('focus');
|
|
|
|
|
|
|
|
|
|
// 기초공사율 계산을 위한 기준 비율들 저장 (hidden으로)
|
|
|
|
|
if (!$('#bscsCstrnYBdstCmpttnRt').length) {
|
|
|
|
|
$('<input type="hidden" id="bscsCstrnYBdstCmpttnRt">').appendTo('body');
|
|
|
|
|
$('<input type="hidden" id="bscsCstrnNBdstCmpttnRt">').appendTo('body');
|
|
|
|
|
$('<input type="hidden" id="dupEtbldgBdstCmpttnRt">').appendTo('body');
|
|
|
|
|
}
|
|
|
|
|
$('#bscsCstrnYBdstCmpttnRt').val(existingData.bscsCstrnYBdstCmpttnRt || '');
|
|
|
|
|
$('#bscsCstrnNBdstCmpttnRt').val(existingData.bscsCstrnNBdstCmpttnRt || '');
|
|
|
|
|
$('#dupEtbldgBdstCmpttnRt').val(existingData.dupEtbldgBdstCmpttnRt || '');
|
|
|
|
|
|
|
|
|
|
// 가감산 버튼 텍스트 업데이트
|
|
|
|
|
if (existingData.adtnRt && parseFloat(existingData.adtnRt) > 0) {
|
|
|
|
|
$('#btnOpenAddPopup').text('+ 가산 [' + existingData.adtnRt + '%]');
|
|
|
|
|
@ -808,6 +791,23 @@
|
|
|
|
|
$('#btnOpenMinusPopup').text('- 감산 [0%]');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 산정률1 설정 (행위유형)
|
|
|
|
|
$('#cmpttnRtDisplay').val((existingData.cmpttnRt || '') + ' %'); // 산정률 표시 필드 (퍼센트 포함)
|
|
|
|
|
$('#cmpttnRtCd').val(existingData.cmpttnRtCd || ''); // 산정률 코드 설정
|
|
|
|
|
$('#cmpttnRt').val(existingData.cmpttnRt || ''); // 산정률 값 설정
|
|
|
|
|
$('#cmpttnRtRate').val(existingData.cmpttnRtRate || ''); // 계산용 비율값
|
|
|
|
|
|
|
|
|
|
// 산정률2
|
|
|
|
|
$('#cmpttnRt2Cd').val(existingData.cmpttnRt2Cd || ''); // 산정률2 코드 설정
|
|
|
|
|
$('#cmpttnRt2').val(existingData.cmpttnRt2 || ''); // 산정률2 값 설정
|
|
|
|
|
$('#cmpttnRt2Display').val((existingData.cmpttnRt2 || '') + ' %'); // 산정률2 표시 필드 (퍼센트 포함)
|
|
|
|
|
$('#cmpttnRt2Rate').val(existingData.cmpttnRt2Rate || ''); // 계산용 비율값
|
|
|
|
|
|
|
|
|
|
// 산정액 및 부과총액
|
|
|
|
|
$('#cmpttnAmt').val(existingData.cmpttnAmt || '').trigger('focus'); // 산정액 값 설정
|
|
|
|
|
$('#levyWholAmt').val(existingData.levyWholAmt || ''); // 부과총액 값 설정
|
|
|
|
|
$('#levyWholAmtDisplay').text((existingData.levyWholAmt ? Number(existingData.levyWholAmt).toLocaleString() : '0') + ' 원');
|
|
|
|
|
|
|
|
|
|
// 기존 데이터 로딩 시 계산하기 버튼 숨김 (이미 계산된 결과가 있으므로)
|
|
|
|
|
LevyPrvntcPopup.hideCalculateButton(); // 기존 부과정보 로드 시 계산하기 버튼 숨김
|
|
|
|
|
|
|
|
|
|
@ -822,26 +822,6 @@
|
|
|
|
|
*/
|
|
|
|
|
var setActInfoToForm = function(rowData) {
|
|
|
|
|
var vltnArea = rowData.calcArea; // 면적 - 조치면적 : 위반면적
|
|
|
|
|
$('#vltnArea').val(vltnArea).trigger('focus').trigger('change'); // 위반면적, change 이벤트 트리거
|
|
|
|
|
|
|
|
|
|
// 행위유형에 따른 산정률1 설정
|
|
|
|
|
$('#cmpttnRtDisplay').val(rowData.actCmpttnRt+ ' %'); // 산정률 표시 필드 (퍼센트 포함)
|
|
|
|
|
$('#cmpttnRtCd').val(rowData.actTypeCd); // 산정률 코드 설정
|
|
|
|
|
$('#cmpttnRt').val(rowData.actCmpttnRt); // 산정률 값 설정
|
|
|
|
|
$('#cmpttnRtRate').val(rowData.actCmpttnRtRate); // 산정률 계산용 비율값 설정
|
|
|
|
|
|
|
|
|
|
$('#bscsCstrnRt').val(''); // 기초공사율
|
|
|
|
|
$('#bscsCstrnSeCd').val(''); // 기초공사구분
|
|
|
|
|
|
|
|
|
|
// 기초공사율 계산을 위한 기준 비율들 초기화 (hidden으로)
|
|
|
|
|
if (!$('#bscsCstrnYBdstCmpttnRt').length) {
|
|
|
|
|
$('<input type="hidden" id="bscsCstrnYBdstCmpttnRt">').appendTo('body');
|
|
|
|
|
$('<input type="hidden" id="bscsCstrnNBdstCmpttnRt">').appendTo('body');
|
|
|
|
|
$('<input type="hidden" id="dupEtbldgBdstCmpttnRt">').appendTo('body');
|
|
|
|
|
}
|
|
|
|
|
$('#bscsCstrnYBdstCmpttnRt').val('');
|
|
|
|
|
$('#bscsCstrnNBdstCmpttnRt').val('');
|
|
|
|
|
$('#dupEtbldgBdstCmpttnRt').val('');
|
|
|
|
|
|
|
|
|
|
$('#bldgNewPrcCrtrAmtNo').val(rowData.bldgNewPrcCrtrAmtNo); // 건물기준시가액(NO)
|
|
|
|
|
$('#bldgNewPrcCrtrAmtDisplay').val(rowData.bdstUsg); // 건물기준시가액(건축물 용도)
|
|
|
|
|
@ -862,8 +842,30 @@
|
|
|
|
|
$('#elpsYrRdvlrt_yr').val(rowData.elpsYrRdvlrtYr+' 년'); // 경과년수별잔가율(상단)
|
|
|
|
|
$('#elpsYrRdvlrt').val(rowData.elpsYrRdvlrt); // 경과년수별잔가율(하단)
|
|
|
|
|
|
|
|
|
|
$('#bscsCstrnRt').val(''); // 기초공사율
|
|
|
|
|
$('#bscsCstrnSeCd').val(''); // 기초공사구분
|
|
|
|
|
|
|
|
|
|
// 기초공사율 계산을 위한 기준 비율들 초기화 (hidden으로)
|
|
|
|
|
if (!$('#bscsCstrnYBdstCmpttnRt').length) {
|
|
|
|
|
$('<input type="hidden" id="bscsCstrnYBdstCmpttnRt">').appendTo('body');
|
|
|
|
|
$('<input type="hidden" id="bscsCstrnNBdstCmpttnRt">').appendTo('body');
|
|
|
|
|
$('<input type="hidden" id="dupEtbldgBdstCmpttnRt">').appendTo('body');
|
|
|
|
|
}
|
|
|
|
|
$('#bscsCstrnYBdstCmpttnRt').val('');
|
|
|
|
|
$('#bscsCstrnNBdstCmpttnRt').val('');
|
|
|
|
|
$('#dupEtbldgBdstCmpttnRt').val('');
|
|
|
|
|
$('#bscsCstrnSeCd').trigger('change'); // 기초공사구분 변경 이벤트 트리거
|
|
|
|
|
|
|
|
|
|
$('#vltnArea').val(vltnArea).trigger('focus').trigger('change'); // 위반면적, change 이벤트 트리거
|
|
|
|
|
|
|
|
|
|
// 행위유형에 따른 산정률1 설정
|
|
|
|
|
$('#cmpttnRtDisplay').val(rowData.actCmpttnRt+ ' %'); // 산정률 표시 필드 (퍼센트 포함)
|
|
|
|
|
$('#cmpttnRtCd').val(rowData.actTypeCd); // 산정률 코드 설정
|
|
|
|
|
$('#cmpttnRt').val(rowData.actCmpttnRt); // 산정률 값 설정
|
|
|
|
|
$('#cmpttnRtRate').val(rowData.actCmpttnRtRate); // 산정률 계산용 비율값 설정
|
|
|
|
|
|
|
|
|
|
$('#cmpttnRt2Cd').val('').trigger('change'); // 산정률2 변경 이벤트 트리거
|
|
|
|
|
|
|
|
|
|
// 계산하기 버튼 표시 (값이 변경된 경우)
|
|
|
|
|
LevyPrvntcPopup.showCalculateButton(); // 신규 행위정보 선택 시 계산하기 버튼 표시
|
|
|
|
|
};
|
|
|
|
|
|