개별총정보 - 단속정보 탭 수정.

main
jjh 3 months ago
parent 02fb93815b
commit 57e5e8c71a

@ -112,6 +112,21 @@
<button type="button" class="bx bx-lg bx-calendar bg-white"></button>
</span>
</div>
<!-- 차량번호 -->
<div class="col-4">
<label is="name-label" class="form-label fw-bold form-search-title w-px-120 text-end" for="schVhrno">차량번호</label>
<input is="id-input" type="text" class="form-control w-px-160" name="schVhrno" autocomplete="off" />
</div>
<!-- 납부자번호 -->
<div class="col-4">
<label is="name-label" class="form-label fw-bold form-search-title w-px-120 text-end" for="schRtpyrNm">납부자번호</label>
<input is="id-input" type="text" class="form-control w-px-160" name="schRtpyrNm" autocomplete="off" />
</div>
<!-- 납부자명 -->
<div class="col-4">
<label is="name-label" class="form-label fw-bold form-search-title w-px-120 text-end" for="schRtpyrNo">납부자명</label>
<input is="id-input" type="text" class="form-control w-px-160" name="schRtpyrNo" autocomplete="off" />
</div>
<!-- 등록일자, 수정일자 -->
<div class="col-4">
<select class="form-select w-px-120 text-center" name="schRegDateOpt">
@ -368,9 +383,7 @@
$("#" + dialogId).attr("name", dialogName);
$("#" + dialogId).attr("data-ref-doctx", "${pageName}");
}
, onClose: () => {
$P.ctrl.reload({all : true}); // 자료 재조회
}
, onClose: () => { $P.ctrl.reload({all : true}); } // 자료 재조회
});
}
});
@ -386,9 +399,7 @@
, init: () => { setDialogZindex(); }
, onOK: () => { }
, onClose: () => {
if (resp.saved) {
$P.ctrl.reload({ all: true }); // 자료 재조회
}
if (resp.saved) { $P.ctrl.reload({ all: true }); } // 자료 재조회
}
});
}
@ -490,8 +501,8 @@
dialog.open({
id: dialogId
, title: "개별총정보"
, content: resp
, size: "xxl"
, content: resp
, init: () => {
setDialogZindex();
@ -524,8 +535,8 @@
// 서버에 전송할 data(파라미터) 생성
let params = {
sggCd: $("#sggCd--${pageName}").val() // 시군구 코드
, taskSeCd: $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val() // 업무 구분 코드
sggCd: $P.$find("sggCd").val() // 시군구 코드
, taskSeCd: $P.$find("taskSeCd").val() // 업무 구분 코드
, levyExclIds: selected.join(",") // 부과 제외 IDs
, delRsn: obj.reason // 삭제 사유
};
@ -606,8 +617,8 @@
dialog.open({
id: dialogId
, title: "사용자 검색"
, content: resp
, size: "lg"
, content: resp
, init: () => {
setDialogZindex();
@ -652,6 +663,7 @@
$P.fnUpdate = () => {
// 부과제외 ID
let levyExclId = $P.ctrl.getValue("LEVY_EXCL_ID");
// 부과제외 ID 가 없다면.. return
if (typeof levyExclId == "undefined" || levyExclId == null || levyExclId == "") return;
@ -659,7 +671,7 @@
callPurpose: "update" // 호출용도: 수정
, sggCd: $P.ctrl.getValue("SGG_CD") // 시군구 코드
, taskSeCd: $P.ctrl.getValue("TASK_SE_CD") // 업무 구분 코드
, levyExclId: levyExclId // 부과제외 ID
, levyExclId: $P.ctrl.getValue("LEVY_EXCL_ID") // 부과제외 ID
, levyExclSeCd: $P.ctrl.getValue("LEVY_EXCL_SE_CD") // 부과제외 구분 코드
};
@ -668,8 +680,7 @@
// 부과제외 삭제 버튼 클릭 이벤트
$P.fnRemove = () => {
// 선택 자료
let selected = $P.ctrl.dataset.getKeys("selected");
let selected = $P.ctrl.dataset.getKeys("selected"); // 선택 자료
if (selected.length < 1) {
dialog.alert({

@ -217,9 +217,7 @@
$("#" + dialogId).attr("name", dialogName);
$("#" + dialogId).attr("data-ref-doctx", "${pageName}");
}
, onClose: () => {
$P.ctrl.reload({ all: true });
}
, onClose: () => { $P.ctrl.reload({ all: true }); } // 자료 재조회
});
}
});
@ -235,9 +233,7 @@
, init: () => { setDialogZindex(); }
, onOK: () => { }
, onClose: () => {
if (resp.saved) {
$P.ctrl.reload({ all: true }); // 자료 재조회
}
if (resp.saved) { $P.ctrl.reload({ all: true }); } // 자료 재조회
}
});
}
@ -249,9 +245,7 @@
ajax.post({
url: $P.ctrl.urls.remove
, data: params || {}
, success: (resp) => {
$P.ctrl.onRemove(params, resp);
}
, success: (resp) => { $P.ctrl.onRemove(params, resp); }
});
}
@ -384,7 +378,7 @@
// 임대기업 매핑 삭제 버튼 이벤트
$P.fnRemove = () => {
let selected = $P.ctrl.dataset.getKeys("selected");
let selected = $P.ctrl.dataset.getKeys("selected"); // 선택 자료
if (selected.length < 1) {
dialog.alert({

@ -237,22 +237,14 @@
$("#" + dialogId).attr("name", dialogName);
$("#" + dialogId).attr("data-ref-doctx", "${pageName}");
}
, onClose: () => {
$P.ctrl.reload({ all: true });
}
, onClose: () => { $P.ctrl.reload({ all: true }); } // 자료 재조회
});
}
});
}
// 삭제
$P.ctrl.remove = (params) => {
if (!params) return;
ajax.post({
url: $P.ctrl.urls.remove
, data: params || {}
, success: (resp) => {
// 삭제 callback
$P.ctrl.onRemove = (params, resp) => {
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, $P.ctrl.prefixName);
// 메시지 출력
@ -261,10 +253,19 @@
, init: () => { setDialogZindex(); }
, onOK: () => { }
, onClose: () => {
if (resp.saved) { $P.ctrl.reload({ all: true }); }
if (resp.saved) { $P.ctrl.reload({ all: true }); } // 자료 재조회
}
});
}
// 삭제
$P.ctrl.remove = (params) => {
if (!params) return;
ajax.post({
url: $P.ctrl.urls.remove
, data: params || {}
, success: (resp) => { $P.ctrl.onRemove(params, resp); }
});
}

@ -16,7 +16,7 @@
<div class="row g-1">
<!-- 기업 구분 코드 -->
<div class="col-md-6">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required" for="entSeCd">기업구분</label>
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end required" for="entSeCd">기업구분</label>
<select is="id-select" class="form-select" name="entSeCd" data-map="ENT_SE_CD" required>
<option value="">선택하세요</option>
<c:forEach items="${FIM088List}" var="item">
@ -26,37 +26,37 @@
</div>
<!-- 기업 번호 -->
<div class="col-md-6">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required" for="entNo">법인(사업자)번호</label>
<input is="id-input" type="text" class="form-control w-30" name="entNo" data-map="ENT_NO" autocomplete="off" />
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end required" for="entNo">법인(사업자)번호</label>
<input is="id-input" type="text" class="form-control w-30" name="entNo" data-map="ENT_NO" required autocomplete="off" />
</div>
<!-- 기업 명 -->
<div class="col-md-6">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end required" for="entNm">기업명</label>
<input is="id-input" type="text" class="form-control w-40" name="entNm" data-map="ENT_NM" autocomplete="off" />
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end required" for="entNm">기업명</label>
<input is="id-input" type="text" class="form-control w-40" name="entNm" data-map="ENT_NM" required autocomplete="off" />
</div>
<!-- 대표자 명 -->
<div class="col-md-6">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end" for="rprsvNm">대표자명</label>
<input is="id-input" type="text" class="form-control w-30" name="rprsvNm" data-map="RPRSV_NM" autocomplete="off" />
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end required" for="rprsvNm">대표자명</label>
<input is="id-input" type="text" class="form-control w-30" name="rprsvNm" data-map="RPRSV_NM" required autocomplete="off" />
</div>
<!-- 기업 전화번호 -->
<div class="col-md-6">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end" for="entTelno">전화번호</label>
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="entTelno">전화번호</label>
<input is="id-input" type="text" class="form-control w-30" name="entTelno" data-map="ENT_TELNO" autocomplete="off" />
</div>
<!-- 기업 팩스번호 -->
<div class="col-md-6">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end" for="entFxno--${pageName}">팩스번호</label>
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="entFxno--${pageName}">팩스번호</label>
<input is="id-input" type="text" class="form-control w-30" name="entFxno" data-map="ENT_FXNO" autocomplete="off" />
</div>
<!-- 기업 이메일 -->
<div class="col-md-12">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end" for="entEmlAddr--${pageName}">이메일</label>
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="entEmlAddr--${pageName}">이메일</label>
<input is="id-input" type="text" class="form-control w-30" name="entEmlAddr" data-map="ENT_EML_ADDR" />
</div>
<!-- 주소 --><!-- 우편번호 -->
<div class="col-md-12">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end" for="entAddr">주소</label>
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="entAddr">주소</label>
<input is="id-input" type="text" class="form-control w-70" name="entAddr" data-map="ENT_ADDR" autocomplete="off" />
<input is="id-input" type="text" class="form-control w-px-80" name="entZip" data-map="ENT_ZIP" autocomplete="off" />
<button type="button" class="btn btn-sm btn-outline-dark" name="btnZipCode" title="우편번호검색">
@ -65,7 +65,7 @@
</div>
<!-- 상세주소 -->
<div class="col-md-12">
<label is="name-label" class="w-px-120 bg-lighter pe-2 col-form-label text-sm-end" for="entDtlAddr">상세주소</label>
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="entDtlAddr">상세주소</label>
<input is="id-input" type="text" class="form-control w-85" name="entDtlAddr" data-map="ENT_DTL_ADDR" autocomplete="off" />
</div>
</div>
@ -185,9 +185,9 @@
, size: "lg"
, content: template
, init: () => {
$("#searchAddrCallback").val("pageObject['${pageName}'].callbackSearchAddr");
setDialogZindex();
$("#searchAddrCallback").val("pageObject['${pageName}'].callbackSearchAddr");
}
});
}
@ -195,13 +195,11 @@
// 임대기업 등록 버튼 클릭 이벤트
$P.fnSave = () => {
// validate 확인
if (!customValidate($("#frmEdit--${pageName}").find("input, select, textarea"))) return;
if (!customValidate($P.$find("frmEdit").find("input,select,textarea"))) return;
dialog.alert({
content: "현재 " + $P.ctrl.prefixName + " 정보를 저장하시겠습니까?"
, onOK: () => {
$P.ctrl.save($P.formFields.get()); // formFields
}
, onOK: () => { $P.ctrl.save($P.formFields.get()); } // formFields
});
}
@ -220,9 +218,6 @@
$P.initForm = () => {
// 화면 초기화
$P.find("frmEdit").reset();
// dataset 설정
$P.ctrl.setData([${Info}]);
}
/**************************************************************************
@ -231,8 +226,11 @@
// 1. 이벤트 설정
$P.setEvent();
// 2. 초기 설정
// 2. 초기 화면 설정
$P.initForm();
// 3. dataset 설정
$P.ctrl.setData([${Info}]);
});
</script>

@ -28,8 +28,8 @@
<!-- 단속상태 -->
<div class="col-md-4">
<label is="name-label" class="w-px-80 bg-lighter pe-2 col-form-label text-sm-end" for="crdnSttsNm">단속상태</label>
<input is="id-input" type="text" class="form-control w-35 fw-bold" name="crdnSttsChgDt" data-map="CRDN_STTS_CHG_DT" readonly />
<input is="id-input" type="text" class="form-control w-30 fw-bold text-primary" name="crdnSttsNm" data-map="CRDN_STTS_NM" readonly />
<input is="id-input" type="text" class="form-control w-35 fw-bold" name="crdnSttsChgDt" data-map="CRDN_STTS_CHG_DT" readonly />
<input type="hidden" name="crdnSttsCd" data-map="CRDN_STTS_CD" />
</div>
<!-- 자료 이동 버튼 -->
@ -143,12 +143,13 @@
// 화면에 Dataset 셋팅
$P.formFields.set($P.mainCtrl, item);
let key = item.data.CRDN_ID;
if ($P.callControlName != "noControlName") {
$P.fnChangeCountStauts(); // 건수 표기
}
// 자료 수정
$P.fnUseDataEdit(item);
$P.fnUseDataEdit(item); // 자료 수정
}
/**************************************************************************
@ -231,6 +232,7 @@
let viewNumber = $P.curDataIndex + 1;
// 표시
$P.$find("countStauts").val(viewNumber + " of " + dataItems.length);
}
@ -261,7 +263,7 @@
callPurpose: "view"
, sggCd: dataItems[$P.curDataIndex].data.SGG_CD
, taskSeCd: dataItems[$P.curDataIndex].data.TASK_SE_CD
, crdnId: crdnId
, crdnId: dataItems[$P.curDataIndex].data.CRDN_ID
, delYn: "N"
};
@ -295,7 +297,7 @@
callPurpose: "view"
, sggCd: dataItems[$P.curDataIndex].data.SGG_CD
, taskSeCd: dataItems[$P.curDataIndex].data.TASK_SE_CD
, crdnId: crdnId
, crdnId: dataItems[$P.curDataIndex].data.CRDN_ID
, delYn: "N"
};
@ -318,16 +320,14 @@
callPurpose: "view"
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, crdnId: $P.mainCtrl.getValue("CRDN_ID")
, delYn: "N"
};
ajax.get({
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/020/info.do")
, data: params || {}
, success: resp => {
$("#crdnPayerInfo").html(resp);
}
, success: (resp) => { $("#crdnPayerInfo").html(resp); }
});
}
@ -344,23 +344,20 @@
callPurpose: "view"
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, crdnId: $P.mainCtrl.getValue("CRDN_ID")
, delYn: "N"
};
ajax.get({
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/030/info.do")
, data: params || {}
, success: resp => {
$("#opnnSbmsnInfo").html(resp);
}
, success: (resp) => { $("#opnnSbmsnInfo").html(resp); }
});
}
// 발송 반송 정보
$P.fnSndngInfo = () => {
let crdnId = $P.mainCtrl.getValue("CRDN_ID");
// 단속 ID 가 없다면.. return
if (typeof crdnId == "undefined" || crdnId == null || crdnId == "") return;
@ -371,16 +368,14 @@
callPurpose: "view"
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, crdnId: $P.mainCtrl.getValue("CRDN_ID")
, delYn: "N"
};
ajax.get({
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/040/info.do")
, data: params || {}
, success: resp => {
$("#sndngInfo").html(resp);
}
, success: (resp) => { $("#sndngInfo").html(resp); }
});
}
@ -397,7 +392,7 @@
callPurpose: "view"
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, crdnId: $P.mainCtrl.getValue("CRDN_ID")
, rtpyrId: $P.mainCtrl.getValue("RTPYR_ID")
, delYn: "N"
};
@ -405,9 +400,7 @@
ajax.get({
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/050/info.do")
, data: params || {}
, success: resp => {
$("#prcsInfo").html(resp);
}
, success: (resp) => { $("#prcsInfo").html(resp); }
});
}
@ -424,16 +417,14 @@
callPurpose: "view"
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, crdnId: $P.mainCtrl.getValue("CRDN_ID")
, delYn: "N"
};
ajax.get({
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/060/info.do")
, data: params || {}
, success: resp => {
$("#levyInfo").html(resp);
}
, success: (resp) => { $("#levyInfo").html(resp); }
});
}
@ -450,16 +441,14 @@
callPurpose: "view"
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, crdnId: $P.mainCtrl.getValue("CRDN_ID")
, delYn: "N"
};
ajax.get({
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/070/info.do")
, data: params || {}
, success: resp => {
$("#rcvmtInfo").html(resp);
}
, success: (resp) => { $("#rcvmtInfo").html(resp); }
});
}
@ -477,7 +466,7 @@
, inquiryCondition: "crdnId_vhrno"
, sggCd: $P.mainCtrl.getValue("SGG_CD")
, taskSeCd: $P.mainCtrl.getValue("TASK_SE_CD")
, crdnId: crdnId
, crdnId: $P.mainCtrl.getValue("CRDN_ID")
, vhrno: $P.mainCtrl.getValue("VHRNO")
, delYn: "N"
};
@ -485,9 +474,7 @@
ajax.get({
url: wctx.url("/" + params.taskSeCd + "/sprt/sprt02/080/info.do")
, data: params || {}
, success: resp => {
$("#cvlcptDscsnInfo").html(resp);
}
, success: resp => { $("#cvlcptDscsnInfo").html(resp); }
});
}

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save