|
|
|
|
@ -43,6 +43,26 @@
|
|
|
|
|
style="width: 120px;" maxlength="10" validation-check="required"
|
|
|
|
|
value="${dateUtil:getCurrentDateTime('yyyy-MM-dd')}" />
|
|
|
|
|
</li>
|
|
|
|
|
<li class="th">법정동</li>
|
|
|
|
|
<li>
|
|
|
|
|
<select id="schStdgEmdCd" name="schStdgEmdCd" class="input" style="width: 120px;">
|
|
|
|
|
<option value="">전체</option>
|
|
|
|
|
<c:forEach var="code" items="${stdgEmdCdList}">
|
|
|
|
|
<option value="${code.cdId}" <c:if test="${param.schStdgEmdCd eq code.cdId}">selected</c:if>>${code.cdNm}</option>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<ul class="lef2">
|
|
|
|
|
<li class="th">주소 검색</li>
|
|
|
|
|
<li>
|
|
|
|
|
<input type="text" id="schZip" name="schZip" class="input" style="width: 80px;" maxlength="6" autocomplete="off" placeholder="우편번호"/>
|
|
|
|
|
<input type="text" id="schLotnoAddr" name="schLotnoAddr" class="input" style="width: 200px;" maxlength="400" autocomplete="off" placeholder="지번주소"/>
|
|
|
|
|
<input type="text" id="schDtlAddr" name="schDtlAddr" class="input" style="width: 150px;" maxlength="380" autocomplete="off" placeholder="상세주소"/>
|
|
|
|
|
<input type="text" id="schLotnoMno" name="schLotnoMno" class="input" style="width: 60px;" maxlength="4" autocomplete="off" placeholder="본번"/>
|
|
|
|
|
<input type="text" id="schLotnoSno" name="schLotnoSno" class="input" style="width: 60px;" maxlength="4" autocomplete="off" placeholder="부번"/>
|
|
|
|
|
<button class="newbtnss bg1" type="button" id="btnAddrSearch">주소 찾기</button>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<ul class="rig2">
|
|
|
|
|
<li><button type="button" id="search_btn" class="newbtnss bg1">검색</button></li>
|
|
|
|
|
@ -133,11 +153,23 @@
|
|
|
|
|
var schImpltTaskSeCd = $.trim(nvl($("#schImpltTaskSeCd").val(), ""));
|
|
|
|
|
var schImpltBgngYmd1 = $.trim(nvl($("#schImpltBgngYmd1").val(), "")).replace(/-/g, "");
|
|
|
|
|
var schImpltBgngYmd2 = $.trim(nvl($("#schImpltBgngYmd2").val(), "")).replace(/-/g, "");
|
|
|
|
|
var schStdgEmdCd = $.trim(nvl($("#schStdgEmdCd").val(), ""));
|
|
|
|
|
var schZip = $.trim(nvl($("#schZip").val(), ""));
|
|
|
|
|
var schLotnoAddr = $.trim(nvl($("#schLotnoAddr").val(), ""));
|
|
|
|
|
var schDtlAddr = $.trim(nvl($("#schDtlAddr").val(), ""));
|
|
|
|
|
var schLotnoMno = $.trim(nvl($("#schLotnoMno").val(), ""));
|
|
|
|
|
var schLotnoSno = $.trim(nvl($("#schLotnoSno").val(), ""));
|
|
|
|
|
|
|
|
|
|
SEARCH_MASTER_COND.schCrdnYr = schCrdnYr;
|
|
|
|
|
SEARCH_MASTER_COND.schImpltTaskSeCd = schImpltTaskSeCd;
|
|
|
|
|
SEARCH_MASTER_COND.schImpltBgngYmd1 = schImpltBgngYmd1;
|
|
|
|
|
SEARCH_MASTER_COND.schImpltBgngYmd2 = schImpltBgngYmd2;
|
|
|
|
|
SEARCH_MASTER_COND.schStdgEmdCd = schStdgEmdCd;
|
|
|
|
|
SEARCH_MASTER_COND.schZip = schZip;
|
|
|
|
|
SEARCH_MASTER_COND.schLotnoAddr = schLotnoAddr;
|
|
|
|
|
SEARCH_MASTER_COND.schDtlAddr = schDtlAddr;
|
|
|
|
|
SEARCH_MASTER_COND.schLotnoMno = schLotnoMno;
|
|
|
|
|
SEARCH_MASTER_COND.schLotnoSno = schLotnoSno;
|
|
|
|
|
//console.log(SEARCH_MASTER_COND.schImpltBgngYmd2);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@ -234,7 +266,7 @@
|
|
|
|
|
header: '행정처분시작일',
|
|
|
|
|
name: 'impltBgngYmd',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 110,
|
|
|
|
|
width: 120,
|
|
|
|
|
formatter: function (e) {
|
|
|
|
|
return e.value ? moment(e.value).format('YYYY-MM-DD') : '';
|
|
|
|
|
}
|
|
|
|
|
@ -243,22 +275,23 @@
|
|
|
|
|
header: '행정처분종료일',
|
|
|
|
|
name: 'impltEndYmd',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 110,
|
|
|
|
|
width: 120,
|
|
|
|
|
formatter: function (e) {
|
|
|
|
|
return e.value ? moment(e.value).format('YYYY-MM-DD') : '';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{ header: '위치', name: 'lotnoWholAddr', align: 'left', minWidth: 300 },
|
|
|
|
|
{
|
|
|
|
|
header: '등록일시',
|
|
|
|
|
name: 'regDt',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 130
|
|
|
|
|
width: 140
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
header: '등록자',
|
|
|
|
|
name: 'rgtrNm',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 100
|
|
|
|
|
width: 120
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
@ -557,6 +590,14 @@
|
|
|
|
|
$("#schImpltBgngYmd1").val(INITIAL_SEARCH_VALUES.schImpltBgngYmd1);
|
|
|
|
|
$("#schImpltBgngYmd2").val(INITIAL_SEARCH_VALUES.schImpltBgngYmd2);
|
|
|
|
|
|
|
|
|
|
// 추가 검색 조건 초기화(법정동/주소)
|
|
|
|
|
$("#schStdgEmdCd").val("");
|
|
|
|
|
$("#schZip").val("");
|
|
|
|
|
$("#schLotnoAddr").val("");
|
|
|
|
|
$("#schDtlAddr").val("");
|
|
|
|
|
$("#schLotnoMno").val("");
|
|
|
|
|
$("#schLotnoSno").val("");
|
|
|
|
|
|
|
|
|
|
// 마스터 그리드만 1페이지부터 재조회 (상세는 마스터 성공 시 초기화)
|
|
|
|
|
self.masterGrid.instance.readData(1);
|
|
|
|
|
});
|
|
|
|
|
@ -583,6 +624,26 @@
|
|
|
|
|
$("#openReviBtn").on('click', function() {
|
|
|
|
|
self.openReviReport();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 주소 찾기 버튼 클릭 이벤트
|
|
|
|
|
$("#btnAddrSearch").on('click', function() {
|
|
|
|
|
var popUrl = '<c:url value="/common/address/search.do"/>';
|
|
|
|
|
var params = '?callback=searchAddrCallback';
|
|
|
|
|
|
|
|
|
|
// 중요로직: 법정동이 선택된 경우 동 이름을 검색어로 전달(시군구명 + 읍면동명)
|
|
|
|
|
var selectedEmd = $('#schStdgEmdCd').val();
|
|
|
|
|
if (selectedEmd) {
|
|
|
|
|
var selectedEmdText = $('#schStdgEmdCd option:selected').text();
|
|
|
|
|
if (selectedEmdText && selectedEmdText !== '전체') {
|
|
|
|
|
params += '&keyword=' + encodeURIComponent( '${sessionScope.sessionVO.user.orgCdNm} ' + selectedEmdText + ' ');
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
params += '&keyword=' + encodeURIComponent( '${sessionScope.sessionVO.user.orgCdNm} ');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
popUrl += params;
|
|
|
|
|
openPopup(popUrl, 570, 530, '주소 찾기');
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -606,6 +667,21 @@
|
|
|
|
|
LevyList.refreshList();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 주소 검색 콜백 함수
|
|
|
|
|
* - 주소 검색 팝업의 검색결과를 전달 받아 해당 필드에 설정
|
|
|
|
|
* @param {Object} obj - 주소 검색 결과 객체
|
|
|
|
|
*/
|
|
|
|
|
window.searchAddrCallback = function(obj) {
|
|
|
|
|
// 중요로직: 주소 검색 결과를 각 필드에 설정
|
|
|
|
|
$("#schZip").val(obj.zipNo || "");
|
|
|
|
|
$("#schLotnoAddr").val(obj.jibunAddr || "");
|
|
|
|
|
$("#schLotnoMno").val(obj.lnbrMnnm || "");
|
|
|
|
|
$("#schLotnoSno").val(obj.lnbrSlno || "");
|
|
|
|
|
// 상세주소는 사용자가 직접 입력
|
|
|
|
|
$("#schDtlAddr").focus();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// DOM 준비 완료 시 초기화
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
LevyList.init();
|
|
|
|
|
|