|
|
|
|
@ -182,7 +182,7 @@
|
|
|
|
|
<th style="border-bottom: 0;">시가표준액<br/>(1,000원미만절삭)</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="border-right: 0; border-bottom: 0;"><input type="text" class="input" id="bldgNewPrcCrtrAmt_nm" readonly/></td>
|
|
|
|
|
<td style="border-right: 0; border-bottom: 0;"><input type="text" class="input numericMask" id="bldgNewPrcCrtrAmt_nm" readonly/></td>
|
|
|
|
|
<td rowspan="2" style="width: 23px; border-right: 0;">X</td>
|
|
|
|
|
<td style="border-right: 0; border-bottom: 0;"><input type="text" class="input" id="strctIdx_nm" readonly/></td>
|
|
|
|
|
<td rowspan="2" style="width: 23px; border-right: 0;">X</td>
|
|
|
|
|
@ -201,16 +201,16 @@
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td rowspan="2" style="width: 23px; border-right: 0;">=</td>
|
|
|
|
|
<td rowspan="2" style="border-right: 0; border-bottom: 0;"><input type="text" class="input" id="taxableMarketPrice" readonly/></td>
|
|
|
|
|
<td rowspan="2" style="border-bottom: 0;"><input type="text" class="input" id="standardMarketPrice" readonly/></td>
|
|
|
|
|
<td rowspan="2" style="border-right: 0; border-bottom: 0;"><input type="text" class="input numericMask" id="taxableMarketPrice" readonly/></td>
|
|
|
|
|
<td rowspan="2" style="border-bottom: 0;"><input type="text" class="input numericMask" id="standardMarketPrice" readonly/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="border-right: 0; border-top: 0;"><input type="text" class="input" id="bldgNewPrcCrtrAmt"/></td>
|
|
|
|
|
<td style="border-right: 0; border-top: 0;"><input type="text" class="input" id="strctIdx"/></td>
|
|
|
|
|
<td style="border-right: 0; border-top: 0;"><input type="text" class="input" id="usgIdx"/></td>
|
|
|
|
|
<td style="border-right: 0; border-top: 0;"><input type="text" class="input" id="pstnIdx"/></td>
|
|
|
|
|
<td style="border-right: 0; border-top: 0;"><input type="text" class="input" id="elpsYrRdvlrt" value="" /></td>
|
|
|
|
|
<td style="border-right: 0; border-top: 0;"><input type="text" class="input" id="bscsCstrnRt" readonly/></td>
|
|
|
|
|
<td style="border-right: 0; border-top: 0;"><input type="text" class="input numericMask" id="bldgNewPrcCrtrAmt"/></td>
|
|
|
|
|
<td style="border-right: 0; border-top: 0;"><input type="text" class="input decimalMask" id="strctIdx"/></td>
|
|
|
|
|
<td style="border-right: 0; border-top: 0;"><input type="text" class="input decimalMask" id="usgIdx"/></td>
|
|
|
|
|
<td style="border-right: 0; border-top: 0;"><input type="text" class="input decimalMask" id="pstnIdx"/></td>
|
|
|
|
|
<td style="border-right: 0; border-top: 0;"><input type="text" class="input numericMask" id="elpsYrRdvlrt" value="" /></td>
|
|
|
|
|
<td style="border-right: 0; border-top: 0;"><input type="text" class="input numericMask" id="bscsCstrnRt" readonly/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
@ -455,10 +455,17 @@
|
|
|
|
|
} else {
|
|
|
|
|
rate = "";
|
|
|
|
|
}
|
|
|
|
|
$('#bscsCstrnRt').val(rate);
|
|
|
|
|
$('#bscsCstrnRt').val(rate).trigger('input');
|
|
|
|
|
|
|
|
|
|
// 자동계산 함수 호출
|
|
|
|
|
calculateAuto();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 계산에 사용되는 입력 필드 변경 시 자동 계산 호출
|
|
|
|
|
var calculationInputs = '#bldgNewPrcCrtrAmt, #strctIdx, #usgIdx, #pstnIdx, #elpsYrRdvlrt';
|
|
|
|
|
$(document).on('change', calculationInputs, calculateAuto);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -569,6 +576,31 @@
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 자동 계산
|
|
|
|
|
* @description 각 항목의 값을 곱하여 건축물과세시가와 시가표준액을 계산합니다.
|
|
|
|
|
* - 건축물과세시가 = 건물기준시가액 * 구조지수 * 용도지수 * 위치지수 * 경과년수별잔가율 * 기초공사율
|
|
|
|
|
* - 시가표준액 = 건축물과세시가에서 1,000원 미만 절사
|
|
|
|
|
*/
|
|
|
|
|
function calculateAuto() {
|
|
|
|
|
var bldgNewPrcCrtrAmt = parseFloat($('#bldgNewPrcCrtrAmt').inputmask('unmaskedvalue')) || 0;
|
|
|
|
|
var strctIdx = parseFloat($('#strctIdx').inputmask('unmaskedvalue')) || 0;
|
|
|
|
|
var usgIdx = parseFloat($('#usgIdx').inputmask('unmaskedvalue')) || 0;
|
|
|
|
|
var pstnIdx = parseFloat($('#pstnIdx').inputmask('unmaskedvalue')) || 0;
|
|
|
|
|
var elpsYrRdvlrt = parseFloat($('#elpsYrRdvlrt').inputmask('unmaskedvalue')) || 0;
|
|
|
|
|
var bscsCstrnRt = parseFloat($('#bscsCstrnRt').inputmask('unmaskedvalue')) || 0;
|
|
|
|
|
|
|
|
|
|
// 건축물과세시가 계산
|
|
|
|
|
var taxableMarketPrice = bldgNewPrcCrtrAmt * strctIdx * usgIdx * pstnIdx * elpsYrRdvlrt * bscsCstrnRt;
|
|
|
|
|
|
|
|
|
|
// 시가표준액 계산: 1,000원 미만 절사
|
|
|
|
|
var standardMarketPrice = Math.floor(taxableMarketPrice / 1000) * 1000;
|
|
|
|
|
|
|
|
|
|
// 계산된 값을 input 필드에 설정
|
|
|
|
|
$('#taxableMarketPrice').val(Math.round(taxableMarketPrice)).trigger('focus');
|
|
|
|
|
$('#standardMarketPrice').val(standardMarketPrice).trigger('focus');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 그리드 행 선택시 실행되는 함수
|
|
|
|
|
* @param rowData
|
|
|
|
|
@ -577,8 +609,8 @@
|
|
|
|
|
if (!rowData) return;
|
|
|
|
|
$('#bscsCstrnRt').val('');
|
|
|
|
|
|
|
|
|
|
$('#bldgNewPrcCrtrAmt_nm').val(rowData.bldgNewPrcCrtrAmt ? parseFloat(rowData.bldgNewPrcCrtrAmt).toLocaleString() : '');
|
|
|
|
|
$('#bldgNewPrcCrtrAmt').val();
|
|
|
|
|
$('#bldgNewPrcCrtrAmt_nm').val(rowData.bldgNewPrcCrtrAmt).trigger('focus');
|
|
|
|
|
$('#bldgNewPrcCrtrAmt').val(rowData.bldgNewPrcCrtrAmt).trigger('focus');
|
|
|
|
|
|
|
|
|
|
$('#strctIdx_nm').val(rowData.strctIdxCdNm);
|
|
|
|
|
$('#strctIdx').val(rowData.strctIdx);
|
|
|
|
|
|