|
|
|
@ -26,8 +26,7 @@
|
|
|
|
<input type="hidden" id="mmCodes" />
|
|
|
|
<input type="hidden" id="mmCodes" />
|
|
|
|
<%-- 부모창에서 받아오는 리스크 커서 --%>
|
|
|
|
<%-- 부모창에서 받아오는 리스크 커서 --%>
|
|
|
|
<input type="hidden" id="cursor" />
|
|
|
|
<input type="hidden" id="cursor" />
|
|
|
|
<%-- 개별총정보 상태값 --%>
|
|
|
|
|
|
|
|
<input type="hidden" id="infoState" value="init" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="page-indicator">
|
|
|
|
<div class="page-indicator">
|
|
|
|
<span id="cursorCnt">0</span>of <span id="total">0</span>
|
|
|
|
<span id="cursorCnt">0</span>of <span id="total">0</span>
|
|
|
|
@ -154,7 +153,9 @@
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="lbl">법정동</div>
|
|
|
|
<div class="lbl">법정동</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<input type="text" name="cpAnswer" data-field="asJsno" id="asJsno" value="" readonly>
|
|
|
|
<select name="cpMain" id="mmDdcode">
|
|
|
|
|
|
|
|
<option value=""></option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -195,7 +196,7 @@
|
|
|
|
<div class="field-group full">
|
|
|
|
<div class="field-group full">
|
|
|
|
<div class="lbl">특기사항</div>
|
|
|
|
<div class="lbl">특기사항</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<textarea name="cpMain" data-field="mmSgcont" id="mmSgcont" value="" readonly></textarea>
|
|
|
|
<textarea name="cpMain" data-field="mmSgcont" id="mmSgcont" value="" ></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -205,13 +206,13 @@
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="lbl">차량명</div>
|
|
|
|
<div class="lbl">차량명</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<input type="text" data-field="" value="" readonly>
|
|
|
|
<input type="text" data-field="" value="" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="lbl">차량색상</div>
|
|
|
|
<div class="lbl">차량색상</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<input type="text" data-field="" value="" readonly>
|
|
|
|
<input type="text" data-field="" value="" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -221,7 +222,7 @@
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="lbl">연료구분</div>
|
|
|
|
<div class="lbl">연료구분</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<input type="text" data-field="" value="" readonly>
|
|
|
|
<input type="text" data-field="" value="" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field-group empty"></div>
|
|
|
|
<div class="field-group empty"></div>
|
|
|
|
@ -232,13 +233,13 @@
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="lbl">소유주</div>
|
|
|
|
<div class="lbl">소유주</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<input type="text" data-field="" value="" readonly>
|
|
|
|
<input type="text" data-field="" value="" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="lbl">등록구분</div>
|
|
|
|
<div class="lbl">등록구분</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<input type="text" data-field="" value="" readonly>
|
|
|
|
<input type="text" data-field="" value="" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -248,13 +249,13 @@
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="lbl">주민번호</div>
|
|
|
|
<div class="lbl">주민번호</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<input type="text" data-field="" value="" readonly>
|
|
|
|
<input type="text" data-field="" value="" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="lbl">우편번호</div>
|
|
|
|
<div class="lbl">우편번호</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<input type="text" data-field="" value="" readonly>
|
|
|
|
<input type="text" data-field="" value="" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -264,7 +265,7 @@
|
|
|
|
<div class="field-group full">
|
|
|
|
<div class="field-group full">
|
|
|
|
<div class="lbl">주소</div>
|
|
|
|
<div class="lbl">주소</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<input type="text" data-field="" value="" readonly>
|
|
|
|
<input type="text" data-field="" value="" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -274,13 +275,13 @@
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="lbl">번지</div>
|
|
|
|
<div class="lbl">번지</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<input type="text" data-field="" value="" readonly>
|
|
|
|
<input type="text" data-field="" value="" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="lbl">차대번호</div>
|
|
|
|
<div class="lbl">차대번호</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<input type="text" data-field="" value="" readonly>
|
|
|
|
<input type="text" data-field="" value="" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -290,7 +291,7 @@
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="field-group">
|
|
|
|
<div class="lbl">도로코드</div>
|
|
|
|
<div class="lbl">도로코드</div>
|
|
|
|
<div class="fld">
|
|
|
|
<div class="fld">
|
|
|
|
<input type="text" data-field="" value="" readonly>
|
|
|
|
<input type="text" data-field="" value="" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field-group empty"></div>
|
|
|
|
<div class="field-group empty"></div>
|
|
|
|
@ -317,12 +318,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div id="btn-area">
|
|
|
|
<div id="btn-area">
|
|
|
|
<button type="button" class="btn btn-light" name="changeSt" id="non-target" value="81">미부과처리</button>
|
|
|
|
<button type="button" class="btn btn-light" name="changeSt" id="non-target" value="81">미부과처리</button>
|
|
|
|
<button type="button" class="btn btn-light" name="changeSt" id="non-target" value="">계도처리</button>
|
|
|
|
<button type="button" class="btn btn-light" name="changeSt" id="guide" value="">계도처리</button>
|
|
|
|
<button type="button" class="btn btn-light" name="changeSt" id="non-target" value="">회수처리</button>
|
|
|
|
<button type="button" class="btn btn-light" name="changeSt" id="return" value="">회수처리</button>
|
|
|
|
<button type="button" class="btn btn-light" name="changeSt" id="non-target" value="">자료복사</button>
|
|
|
|
<button type="button" class="btn btn-light" name="changeSt" id="copy" value="">자료복사</button>
|
|
|
|
<button type="button" class="btn btn-light" id="delay">처리보류</button>
|
|
|
|
<button type="button" class="btn btn-light" id="delay">처리보류</button>
|
|
|
|
<button type="button" class="btn btn-light" id="delay">원본보기</button>
|
|
|
|
<button type="button" class="btn btn-light" id="init">되돌리기</button>
|
|
|
|
<button type="button" class="btn btn-light" id="infoReadReturn">되돌리기</button>
|
|
|
|
<button type="button" class="btn btn-light" id="lavyTarget">되돌리기</button>
|
|
|
|
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-light" id="stateChange" hidden>처리상태 변경</button>
|
|
|
|
<button type="button" class="btn btn-light" id="stateChange" hidden>처리상태 변경</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -337,9 +338,8 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="photoEditSection" style="display:none;">
|
|
|
|
<jsp:include page="/WEB-INF/views/biz/totalInfo/totalInfo_photo_dialog.jsp" />
|
|
|
|
<jsp:include page="/WEB-INF/views/biz/totalInfo/totalInfo_photo_dialog.jsp" />
|
|
|
|
<jsp:include page="/WEB-INF/views/biz/dialog/destruction_doc_dialog.jsp" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- /Main body -->
|
|
|
|
<!-- /Main body -->
|
|
|
|
@ -348,10 +348,7 @@
|
|
|
|
<script type="text/javascript">
|
|
|
|
<script type="text/javascript">
|
|
|
|
window.INIT_POP_API = {
|
|
|
|
window.INIT_POP_API = {
|
|
|
|
search: () => {
|
|
|
|
search: () => {
|
|
|
|
console.log("Total Info Search!!!!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { cursor, mmCodes } = JSON.parse(localStorage.getItem("TOTAL_INFO_STATE"));
|
|
|
|
const { cursor, mmCodes } = JSON.parse(localStorage.getItem("TOTAL_INFO_STATE"));
|
|
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
// PathVariable 형태로 url를 동적으로 쓰는방식이다.
|
|
|
|
// PathVariable 형태로 url를 동적으로 쓰는방식이다.
|
|
|
|
// 해당 방식 이외에 그냥 쿼리스트링으로 넘기는 방법도 있다.
|
|
|
|
// 해당 방식 이외에 그냥 쿼리스트링으로 넘기는 방법도 있다.
|
|
|
|
@ -359,10 +356,7 @@
|
|
|
|
type: "GET",
|
|
|
|
type: "GET",
|
|
|
|
dataType: 'json',
|
|
|
|
dataType: 'json',
|
|
|
|
success: function(response) {
|
|
|
|
success: function(response) {
|
|
|
|
|
|
|
|
|
|
|
|
console.log(response.data)
|
|
|
|
console.log(response.data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#mmIngb").val(response.data.cpMain.mmIngb);
|
|
|
|
$("#mmIngb").val(response.data.cpMain.mmIngb);
|
|
|
|
$("#mmDlgb").val(response.data.cpMain.mmDlgb);
|
|
|
|
$("#mmDlgb").val(response.data.cpMain.mmDlgb);
|
|
|
|
$("#mmLawgb").val(response.data.cpMain.mmLawgb);
|
|
|
|
$("#mmLawgb").val(response.data.cpMain.mmLawgb);
|
|
|
|
@ -407,9 +401,6 @@
|
|
|
|
$("#cursorCnt").text(mmCodes.indexOf(cursor) + 1);
|
|
|
|
$("#cursorCnt").text(mmCodes.indexOf(cursor) + 1);
|
|
|
|
$("#total").text(mmCodes.length);
|
|
|
|
$("#total").text(mmCodes.length);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// total info 초기상태
|
|
|
|
|
|
|
|
$("#infoState").val("init").trigger("change");
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
error: function(xhr, status, error) {
|
|
|
|
error: function(xhr, status, error) {
|
|
|
|
$("#result").text("조회 실패");
|
|
|
|
$("#result").text("조회 실패");
|
|
|
|
@ -423,10 +414,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
let fnBiz = {
|
|
|
|
let fnBiz = {
|
|
|
|
init: () => {
|
|
|
|
init: () => {
|
|
|
|
// fnBiz.search();
|
|
|
|
fnBiz.setCode();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
infoSave: () => {
|
|
|
|
setCode: () => {
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: "/common/code/find.ajax",
|
|
|
|
|
|
|
|
type: "GET",
|
|
|
|
|
|
|
|
contentType: 'application/json',
|
|
|
|
|
|
|
|
success: function(response) {
|
|
|
|
|
|
|
|
console.log(response);
|
|
|
|
|
|
|
|
response.cpBdong.forEach((item) => {
|
|
|
|
|
|
|
|
$("#mmDdcode").append('<option value="' +item.bdCode+'">' +item.bdDongName+ '</option>')
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
response.cpCancelAnswer.forEach((item) => {
|
|
|
|
|
|
|
|
$("#cpCancelAnswer").append('<option value="' +item.caCode+'">' +item.caId+ '</option>')
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
error: function(xhr, status, error) {
|
|
|
|
|
|
|
|
$("#result").text("조회 실패");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
initDataUpdate: () => {
|
|
|
|
|
|
|
|
|
|
|
|
const { cursor, mmCodes } = JSON.parse(localStorage.getItem("TOTAL_INFO_STATE"));
|
|
|
|
const { cursor, mmCodes } = JSON.parse(localStorage.getItem("TOTAL_INFO_STATE"));
|
|
|
|
const payload = fnBiz.collectByDataField();
|
|
|
|
const payload = fnBiz.collectByDataField();
|
|
|
|
@ -466,32 +478,7 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
btnSet: (infoState) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (infoState) {
|
|
|
|
|
|
|
|
case "init":
|
|
|
|
|
|
|
|
// $("#btn-area > button").prop("hidden", true);
|
|
|
|
|
|
|
|
// $("#infoEdit").prop("hidden", false);
|
|
|
|
|
|
|
|
// $("#infoDel").prop("hidden", false);
|
|
|
|
|
|
|
|
// $("#delay").prop("hidden", false);
|
|
|
|
|
|
|
|
// $("#buillPrint").prop("hidden", false);
|
|
|
|
|
|
|
|
// $("#stateChange").prop("hidden", false);
|
|
|
|
|
|
|
|
// $("#non-target").prop("hidden", false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "edit":
|
|
|
|
|
|
|
|
// $("#btn-area > button").prop("hidden", true);
|
|
|
|
|
|
|
|
// $("#infoSave").prop("hidden", false);
|
|
|
|
|
|
|
|
// $("#infoReadReturn").prop("hidden", false);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch ($("#asState")) {
|
|
|
|
|
|
|
|
case "":
|
|
|
|
|
|
|
|
$("#destructionDocReReg").prop("hidden", false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
collectByDataField: () => {
|
|
|
|
collectByDataField: () => {
|
|
|
|
const payload = {};
|
|
|
|
const payload = {};
|
|
|
|
@ -534,40 +521,8 @@
|
|
|
|
INIT_POP_API.search();
|
|
|
|
INIT_POP_API.search();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
/** 개별총정보 상태변경 트리거 */
|
|
|
|
|
|
|
|
$("#infoState").on("change", () => {
|
|
|
|
|
|
|
|
fnBiz.btnSet($("#infoState").val());
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 개별총정보 수정모드 진입*/
|
|
|
|
|
|
|
|
$("#infoEdit").on("click", () => {
|
|
|
|
|
|
|
|
$("input").prop("readonly", false);
|
|
|
|
|
|
|
|
$("#infoState").val("edit").trigger("change");
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
/** 개별총정보 읽기모드 진입 */
|
|
|
|
|
|
|
|
$("#infoReadReturn").on("click", () => {
|
|
|
|
|
|
|
|
$("input").prop("readonly", true);
|
|
|
|
|
|
|
|
INIT_POP_API.search();
|
|
|
|
|
|
|
|
$("#infoState").val("init").trigger("change");
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 정보수정 */
|
|
|
|
|
|
|
|
$("#infoSave").on("click", () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fnBiz.infoSave();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("input").prop("readonly", true);
|
|
|
|
|
|
|
|
INIT_POP_API.search();
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 상태값 변경 */
|
|
|
|
|
|
|
|
$("button[name='changeSt']").on("click", (e) => {
|
|
|
|
|
|
|
|
let flag = e.target.value;
|
|
|
|
|
|
|
|
fnBiz.changeState(e, flag);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 사진 더블클릭 → 원본 다이얼로그 */
|
|
|
|
/** 사진 더블클릭 → 원본 다이얼로그 */
|
|
|
|
$("#photoThumbs").on("dblclick", "img", function () {
|
|
|
|
$("#photoThumbs").on("dblclick", "img", function () {
|
|
|
|
const src = $(this).attr("src"); // 썸네일 경로
|
|
|
|
const src = $(this).attr("src"); // 썸네일 경로
|
|
|
|
@ -576,6 +531,12 @@
|
|
|
|
$("#photoDialog").dialog("open");
|
|
|
|
$("#photoDialog").dialog("open");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#non-target").on("click", () => {
|
|
|
|
|
|
|
|
$("#destruction_doc_dialog").dialog("open");
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -585,6 +546,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
$("#tabs").tabs();
|
|
|
|
$("#tabs").tabs();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fnBiz.init();
|
|
|
|
|
|
|
|
|
|
|
|
INIT_POP_API.search();
|
|
|
|
INIT_POP_API.search();
|
|
|
|
fnBiz.eventListener();
|
|
|
|
fnBiz.eventListener();
|
|
|
|
|
|
|
|
|
|
|
|
|