단속 등록&열람: 조사원, 소유자 행위자 선택 팝업에서 각 등록 팝업 연결

dev
박성영 3 months ago
parent 856c269edd
commit d787f88040

@ -13,11 +13,14 @@
<ul class="lef">
<li>
<input type="text" id="schExmnr" name="schExmnr" class="input" placeholder="조사원ID 또는 조사원명을 입력하세요." style="width: 300px;">
<button type="button" id="search_btn" class="newbtnss bg1 smallb-2">검색</button>
</li>
<li><button type="button" id="search_btn" class="newbtnss bg1 smallb-2">검색</button></li>
</ul>
<ul class="rig">
<li style="border-right: 0px;"></li>
<li style="border-right: 0px;">
<button type="button" id="newExmnrPopupBtn" class="newbtnss bg1">조사원 등록</button>
</li>
</ul>
</div>
@ -216,7 +219,6 @@
var totalCount = responseObj.data.contents.length;
$("#totalCount").text('총 ' + totalCount.toLocaleString() + '건');
}
});
// 체크 이벤트
@ -224,6 +226,15 @@
// 기존 선택된 행들의 체크박스 상태 복원
ExmnrPopPopup.restoreCheckboxStates();
});
// 행 더블클릭 시 선택
this.instance.on('dblclick', function(ev) {
var rowData = self.instance.getRow(ev.rowKey);
if (rowData) {
ExmnrPopPopup.onRowCheck(ev);
ExmnrPopPopup.selectExmnr();
}
});
// 체크 이벤트
this.instance.on('check', function(ev) {
@ -265,6 +276,14 @@
self.search();
});
//신규 조사원 등록
$('#newExmnrPopupBtn').on('click', function() {
var w = 450, h = 280;
var left = Math.max(0, (window.screen.availLeft + (window.screen.availWidth - w) / 2));
var top = Math.max(0, (window.screen.availTop + (window.screen.availHeight - h) / 2));
window.open('<c:url value="/crdn/exmnr/popup.do"/>?mode=C', 'exmnrReg', 'width=' + w + ',height=' + h + ',left=' + left + ',top=' + top + ',resizable=yes,scrollbars=yes');
});
// 엔터키 검색
$('#schExmnr').on('keypress', function(e) {
if (e.which === 13) {

@ -47,7 +47,9 @@
<td>
<input type="text" id="searchTelno" name="searchTelno" class="input" maxlength="11" placeholder="전화번호를 입력하세요"/>
</td>
<td style="text-align: right; border: 0px;"></td>
<td style="text-align: right; border: 0px;">
<button type="button" id="newOwnrPopupBtn" class="newbtn bg1">${popupGubunName} 등록</button>
</td>
</tr>
</table>
</form>
@ -261,6 +263,11 @@
}
self.selectOwners(checkedRows);
});
$('#newOwnrPopupBtn').on('click', function() {
window.open('<c:url value="/crdn/ownact/ownActRegistPopup.do"/>?mode=C', 'ownActRegistAndViewReg', 'width=600,height=600,scrollbars=yes');
});
// 닫기 버튼 클릭 이벤트
$('#closeBtn, #btnCloseTop').on('click', function(e) {

@ -117,6 +117,8 @@
alert(response.message || '처리되었습니다.');
if (window.opener && window.opener.refreshCrdnList) {
window.opener.refreshCrdnList();
}else if (window.opener && window.opener.ExmnrPopPopup) {
window.opener.ExmnrPopPopup.search();
}
window.close();
} else {
@ -140,7 +142,10 @@
alert(response.message || '삭제되었습니다.');
if (window.opener && window.opener.refreshCrdnList) {
window.opener.refreshCrdnList();
}else if (window.opener && window.opener.ExmnrPopPopup) {
window.opener.ExmnrPopPopup.search();
}
window.close();
} else {
alert(response.message || '삭제 중 오류가 발생했습니다.');

@ -91,7 +91,7 @@
<tr style="display: none;">
<th class="th"><span class="required">*</span> 지번 주소</th>
<td colspan="3">
<input type="text" id="lotnoAddr" name="lotnoAddr" class="input" style="width: 450px;" maxlength="320" readonly validation-check="required" value="${data.lotnoAddr}"/>
<input type="text" id="lotnoAddr" name="lotnoAddr" class="input" style="width: 450px;" maxlength="320" readonly value="${data.lotnoAddr}"/>
<input type="text" id="lotnoMno" name="lotnoMno" class="input" style="width: 120px;" maxlength="4" readonly value="${data.lotnoMno}"/>
<input type="text" id="lotnoSno" name="lotnoSno" class="input" style="width: 120px;" maxlength="4" readonly value="${data.lotnoSno}"/>
</td>
@ -99,7 +99,7 @@
<tr style="display: none;">
<th class="th"><span class="required">*</span> 도로명 주소</th>
<td colspan="3">
<input type="text" id="roadNmAddr" name="roadNmAddr" class="input" style="width: 450px;" maxlength="320" readonly validation-check="required" value="${data.roadNmAddr}"/>
<input type="text" id="roadNmAddr" name="roadNmAddr" class="input" style="width: 450px;" maxlength="320" readonly value="${data.roadNmAddr}"/>
<input type="text" id="bldgMno" name="bldgMno" class="input" style="width: 120px;" maxlength="4" readonly value="${data.bldgMno}"/>
<input type="text" id="bldgSno" name="bldgSno" class="input" style="width: 120px;" maxlength="4" readonly value="${data.bldgSno}"/>
</td>
@ -226,6 +226,8 @@
alert(response.message || '처리되었습니다.');
if (window.opener && window.opener.refreshOwnActList) {
window.opener.refreshOwnActList();
}else if (window.opener && window.opener.CrdnOwnrSelectPopup) {
window.opener.CrdnOwnrSelectPopup.search();
}
window.close();
} else {
@ -249,6 +251,8 @@
alert(response.message || '삭제되었습니다.');
if (window.opener && window.opener.refreshOwnActList) {
window.opener.refreshOwnActList();
}else if (window.opener && window.opener.CrdnOwnrSelectPopup) {
window.opener.CrdnOwnrSelectPopup.search();
}
window.close();
} else {
@ -303,6 +307,7 @@
}
}
}
console.log(isValid, extraValid);
return isValid && extraValid;
}
};

Loading…
Cancel
Save