diff --git a/src/main/resources/mybatis/mapper/crdn/crndRegistAndView/main/CrdnLevyPrvntcMapper_maria.xml b/src/main/resources/mybatis/mapper/crdn/crndRegistAndView/main/CrdnLevyPrvntcMapper_maria.xml index 06c67eb..db27343 100644 --- a/src/main/resources/mybatis/mapper/crdn/crndRegistAndView/main/CrdnLevyPrvntcMapper_maria.xml +++ b/src/main/resources/mybatis/mapper/crdn/crndRegistAndView/main/CrdnLevyPrvntcMapper_maria.xml @@ -71,6 +71,7 @@ MDFR from tb_cmpttn_rt_2 where USE_YN = 'Y' + order by CMPTTN_RT_2_CD asc \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/crdn/crndRegistAndView/main/crdnLevyPrvntc/levyPrvntcPopup.jsp b/src/main/webapp/WEB-INF/views/crdn/crndRegistAndView/main/crdnLevyPrvntc/levyPrvntcPopup.jsp index efaeff7..d45c2c5 100644 --- a/src/main/webapp/WEB-INF/views/crdn/crndRegistAndView/main/crdnLevyPrvntc/levyPrvntcPopup.jsp +++ b/src/main/webapp/WEB-INF/views/crdn/crndRegistAndView/main/crdnLevyPrvntc/levyPrvntcPopup.jsp @@ -124,6 +124,63 @@
  • 이행강제금 산출조사서
  • + + <%-- 해당년도 시가표준액 계산 --%> +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ${crdnData.crdnYr} 년도건물
    기준시가액
    구조지수용도지수위치지수경과년수
    별잔가율
    기초공시율건축물
    과세시가
    시가표준액
    (1,000원미만절삭)
    XXXXX + + =
    +
    +
    +
    @@ -151,8 +208,14 @@
    X - - + + + + + + + + X @@ -187,61 +250,7 @@
    - <%-- 해당년도 시가표준액 계산 --%> -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ${crdnData.crdnYr} 년도건물
    기준시가액
    구조지수용도지수위치지수경과년수
    별잔가율
    기초공시율건축물
    과세시가
    시가표준액
    (1,000원미만절삭)
    XXXXX - - =
    -
    -
    +
    @@ -497,17 +506,27 @@ }); // 저장 버튼 - $('#btnSave').on('click', function() { + $('#btnSave').on('click', function () { self.save(); }); // 닫기 버튼 이벤트 바인딩 - $('.modalclose').on('click', function(e) { + $('.modalclose').on('click', function (e) { e.preventDefault(); self.cancel(); }); - $('#bscsCstrnSeCd').on('change', function() { // 기초공사구분 변경 시 + // 가산 버튼 이벤트 바인딩 + $('.btnOpenAddPopup').on('click', function (e) { + self.openAddMinusPopup('add'); + }); + + // 감산 버튼 이벤트 바인딩 + $('.btnOpenMinusPopup').on('click', function (e) { + self.openAddMinusPopup('minus'); + }); + + $('#bscsCstrnSeCd').on('change', function () { // 기초공사구분 변경 시 var focusedCell = self.grid.instance.getFocusedCell(); if (focusedCell && focusedCell.rowKey !== null) { var rowData = self.grid.instance.getRow(focusedCell.rowKey); @@ -524,7 +543,7 @@ rate = ""; } $('#bscsCstrnRt').val(rate).trigger('focus'); // 기초공사율 설정 - + // 자동계산 함수 호출 calculateAuto(); } @@ -532,7 +551,7 @@ }); // 산정률2 선택 시 산정률2 input에 값 설정 - $('#cmpttnRt2Cd').on('change', function() { + $('#cmpttnRt2Cd').on('change', function () { var selectedOption = $(this).find('option:selected'); var rateValue = selectedOption.attr('rateValueAttribute'); $('#actCmpttnRt').val(rateValue || '').trigger('focus'); @@ -547,10 +566,22 @@ * 팝업 취소 처리 * 중요한 로직 주석: 팝업창을 닫는 기능을 제공합니다. */ - cancel: function() { + cancel: function () { window.close(); }, + openAddMinusPopup: function (type) { + var adsbmtnRtCd = ""; + if( type === 'add' ){ + adsbmtnRtCd = $('#adsbmtnRtCdAdd').val(); + }else{ + adsbmtnRtCd = $('#adsbmtnRtCdMinus').val(); + } + var url = '?type=' + + encodeURIComponent(type) + '&adsbmtnRtCd=' + + encodeURIComponent(adsbmtnRtCd); + openPopup(url, 800, 700, 'LevyAddMinusPopup'); + }, /** * 저장 diff --git a/src/main/webapp/resources/xit/common_util.js b/src/main/webapp/resources/xit/common_util.js index e6a63f4..de5f14a 100644 --- a/src/main/webapp/resources/xit/common_util.js +++ b/src/main/webapp/resources/xit/common_util.js @@ -60,6 +60,18 @@ $(document).ready(function () { }); }); + // 중요로직: - decimal(4,4) 스펙에 맞춤 + $("body").on("focus", ".decimalMask4", function () { + $(this).inputmask("numeric", { + autoGroup: true, // 그룹화 사용 안함 + allowMinus: false, // 음수 사용 안함 + autoUnmask: true, + groupSeparator: ",", // 그룹 구분자 없음 + repeat: 1, // 정수부 최대 1자리 (0) + digits: 4, // 소수점 최대 4자리 + }); + }); + // 중요로직: PTOUT 지적 전용 마스크 - decimal(22,2) 스펙에 맞춤 $("body").on("focus", ".ptoutMask", function () { $(this).inputmask("numeric", { @@ -150,7 +162,7 @@ $(document).ready(function () { groupSeparator: ",", // 그룹 구분자 없음 repeat: 1, // 정수부 최대 1자리 (0) digits: 4, // 소수점 최대 4자리 - max: 0.9999 + max: 0.9999, }); }); diff --git a/src/main/webapp/resources/xit/xit-common.css b/src/main/webapp/resources/xit/xit-common.css index 3af792c..46dbd9a 100644 --- a/src/main/webapp/resources/xit/xit-common.css +++ b/src/main/webapp/resources/xit/xit-common.css @@ -1788,6 +1788,10 @@ select[data-auto-color="true"] option[data-color] { text-align: right; } +.decimalMask4 { + text-align: right; +} + .decimalMask { text-align: right; }