단속 메뉴에서 개별총정보 호출하는 부분 수정.

main
jjh 1 year ago
parent 21bed67a7c
commit b065db335c

@ -154,6 +154,8 @@ AND CA.TOWNG_YN = #{towngYn}
/* 금일 단속자료 목록 조회(crdnListMapper.selectTodayCrackdownList) */
<include refid="utility.paging-prefix"/>
SELECT C.CRDN_ID <!-- 단속 ID -->
, C.SGG_CD <!-- 시군구 코드 -->
, C.TASK_SE_CD <!-- 업무 구분 코드 -->
, C.CRDN_REG_SE_CD <!-- 단속 등록 구분 코드 -->
, C.CRDN_INPT_SE_CD <!-- 단속 입력 구분 코드 -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
@ -182,6 +184,8 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
/* 단속사진 검사 자료 목록 조회(crdnListMapper.selectPhotoInspectionDataList) */
<include refid="utility.paging-prefix"/>
SELECT C.CRDN_ID <!-- 단속 ID -->
, C.SGG_CD <!-- 시군구 코드 -->
, C.TASK_SE_CD <!-- 업무 구분 코드 -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
, C.VHRNO <!-- 차량번호 -->
, COUNT(*) OVER (PARTITION BY C.VHRNO, C.CRDN_PLC) AS CRDN_CNT <!-- 위반건수 -->
@ -331,6 +335,8 @@ HAVING COUNT(*) <![CDATA[ >= ]]>
<select id="selectSameVehicleSubList" parameterType="map" resultType="dataobject">
/* 동일 차량 단속 자료 목록 조회(crdnListMapper.selectSameVehicleSubList) */
SELECT C.CRDN_ID <!-- 단속 ID -->
, C.SGG_CD <!-- 시군구 코드 -->
, C.TASK_SE_CD <!-- 업무 구분 코드 -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속일시 -->
, C.CRDN_INPT_SE_CD <!-- 자료출처 -->
, TI.TEAM_NM <!-- 단속조 -->
@ -355,16 +361,18 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
/* 표지정보 미확인 자료 목록 조회(crdnListMapper.selectTagInformationUndefinedDataList) */
<include refid="utility.paging-prefix"/>
SELECT C.CRDN_ID <!-- 단속 ID -->
, C.SGG_CD <!-- 시군구 코드 -->
, C.TASK_SE_CD <!-- 업무 구분 코드 -->
, C.CRDN_INPT_SE_CD <!-- 단속 입력 구분 코드 -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
, C.VHRNO <!-- 차량번호 -->
, C.CRDN_STDG_NM <!-- 단속 법정동 명 -->
, C.CRDN_STTS_CD <!-- 처리상태 -->
, C.FFNLG_AMT <!-- 과태료금액 -->
, C.ADVNTCE_AMT <!-- 사전통지금액 -->
, C.MINUS_AMT <!-- 감경금액 -->
, C.ADTN_AMT <!-- 가산금액 -->
, C.RCVMT_AMT <!-- 수납금액 -->
, C.CRDN_STTS_CD <!-- 처리상태 -->
, C.FFNLG_AMT <!-- 과태료금액 -->
, C.ADVNTCE_AMT <!-- 사전통지금액 -->
, C.MINUS_AMT <!-- 감경금액 -->
, C.ADTN_AMT <!-- 가산금액 -->
, C.RCVMT_AMT <!-- 수납금액 -->
, C.ATCH_FILE_CNT <!-- 사진건수 -->
, CA.CRDN_SN <!-- 단속 일련번호 -->
, 0 AS BLNC <!-- 잔액 -->

@ -153,15 +153,15 @@
<span slot="button">
<template class="pvs">
<slot>
<button id="btnOpenOverTime--${pageName}"
class="btn btn-primary area-photoinspection"
<button id="btnOpenOverTime--${pageName}"
class="btn btn-primary area-photoinspection"
title="2시간 초과 처리">2시간 초과 처리</button>
</slot>
</template>
</span>
</span>
</div>
<div class="card-datatable text-nowrap area-photoinspection">
<div id="photoInspection_Table_0_wrapper--${pageName}" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div id="photoInspection-responsive--${pageName}" class="table-responsive"
@ -379,8 +379,8 @@ $(document).ready(function(){
$P.photoInspectionControl.untilPageNum = 0;
$P.photoInspectionControl.beforeCurrent = null;
$P.photoInspectionControl.tableRenderComplete = false;
//동일차량검사 datasetControl 인스턴스
$P.sameVehicleControl = new InspectionControl({
urls : { load : "", getInfo : "" },
@ -404,7 +404,7 @@ $(document).ready(function(){
$P.sameVehicleControl.main.beforeCurrent = null;
$P.sameVehicleControl.main.tableRenderComplete = false;
$P.sameVehicleControl.sub.tableRenderComplete = false;
$P.photoInspectionControl.getNext = (key) => {
var ds = $P.photoInspectionControl.dataset.getDataset();
@ -429,12 +429,12 @@ $(document).ready(function(){
start: obj["Start"], totalSize: obj["Total"], fetchSize: obj["Fetch"],
func: "pageObject['${pageName}'].photoInspectionControl.load({index})"
});
$P.photoInspectionControl.tableRenderComplete = true;
};
$P.photoInspectionControl.onCurrentChange = (item) => {
if(!$P.photoInspectionControl.tableRenderComplete){
return;
}
@ -443,26 +443,26 @@ $(document).ready(function(){
var beforeCurrentKey = $P.photoInspectionControl.beforeCurrent.key;
var beforeCurrentIndex = $P.photoInspectionControl.beforeCurrent.index;
$P.photoInspectionControl.beforeCurrent = null;
if(!$P.photoInspectionControl.dataset.empty){
var info = $P.photoInspectionControl.dataset.getData(beforeCurrentKey);
if(info != null){
$P.photoInspectionControl.dataset.setCurrent(beforeCurrentKey, true);
return;
}
if(beforeCurrentIndex > ($P.photoInspectionControl.dataset.length - 1)){
info = $P.photoInspectionControl.dataset.getDataset()[$P.photoInspectionControl.dataset.length - 1];
} else {
info = $P.photoInspectionControl.dataset.getDataset()[beforeCurrentIndex];
}
$P.photoInspectionControl.dataset.setCurrent(info["CRDN_ID"], true);
return;
}
}
$P.photoInspectionControl.tableRenderComplete = false;
if(!item){
$P.clickInspectionDataList("","photoInspection", true);
@ -470,7 +470,7 @@ $(document).ready(function(){
$P.clickInspectionDataList($P.photoInspectionControl.getCurrent()["CRDN_ID"],"photoInspection", true);
}
}
$P.sameVehicleControl.main.onDatasetChange = (obj) => {
$P.renderInspectionDataList(obj["Total"], "sameVehicleInspectionMain");
@ -481,8 +481,8 @@ $(document).ready(function(){
start: obj["Start"], totalSize: obj["Total"], fetchSize: obj["Fetch"],
func: "pageObject['${pageName}'].sameVehicleControl.main.load({index})"
});
$P.sameVehicleControl.main.tableRenderComplete = true;
};
@ -490,31 +490,31 @@ $(document).ready(function(){
if(!$P.sameVehicleControl.main.tableRenderComplete){
return;
}
if($P.sameVehicleControl.main.beforeCurrent != null){
var beforeCurrentKey = $P.sameVehicleControl.main.beforeCurrent.key;
var beforeCurrentIndex = $P.sameVehicleControl.main.beforeCurrent.index;
$P.sameVehicleControl.main.beforeCurrent = null;
if(!$P.sameVehicleControl.main.dataset.empty){
var info = $P.sameVehicleControl.main.dataset.getData(beforeCurrentKey);
if(info != null){
$P.sameVehicleControl.main.dataset.setCurrent(beforeCurrentKey,true);
return;
}
if(beforeCurrentIndex > ($P.sameVehicleControl.main.dataset.length - 1)){
info = $P.sameVehicleControl.main.dataset.getDataset()[$P.sameVehicleControl.main.dataset.length - 1];
} else {
info = $P.sameVehicleControl.main.dataset.getDataset()[beforeCurrentIndex];
}
$P.sameVehicleControl.main.dataset.setCurrent(info["CRDN_ID_LIST"],true);
return;
}
}
$P.sameVehicleControl.main.tableRenderComplete = false;
if(!item){
$P.clickInspectionDataList("","sameVehicleInspectionMain", true);
@ -522,17 +522,17 @@ $(document).ready(function(){
$P.clickInspectionDataList($P.sameVehicleControl.main.getCurrent()["CRDN_ID_LIST"],"sameVehicleInspectionMain", true);
}
}
$P.sameVehicleControl.sub.onDatasetChange = (obj) => {
$P.renderInspectionDataList(obj["Total"], "sameVehicleInspectionSub");
$P.sameVehicleControl.sub.tableRenderComplete = true;
};
$P.sameVehicleControl.sub.onCurrentChange = (item) => {
if(!$P.sameVehicleControl.sub.tableRenderComplete){
return;
}
$P.sameVehicleControl.sub.tableRenderComplete = false;
if(!item){
$P.clickInspectionDataList("","sameVehicleInspectionSub", true);
@ -540,7 +540,7 @@ $(document).ready(function(){
$P.clickInspectionDataList($P.sameVehicleControl.sub.getCurrent()["CRDN_ID"],"sameVehicleInspectionSub", true);
}
};
/**************************************************************************
* pageObject.function
**************************************************************************/
@ -551,7 +551,7 @@ $(document).ready(function(){
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$("#byOutput--${pageName}").val("동적 검색");
$('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-7).date);
$('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date());
@ -573,14 +573,14 @@ $(document).ready(function(){
renderForTask("frmSearch--${pageName}", clsForTask);
//업무별 버튼
renderForTask("gridbuttonArea--${pageName}", clsForTask);
//버튼 이벤트 재매핑
//버튼 이벤트 재매핑
$("#btnOpenOverTime--${pageName}").off("click");
$("#btnOpenOverTime--${pageName}").on("click", () => $P.openOverTimePop());
$('#btnPhotoInspection--${pageName}').trigger("click");
}
$P.refreshInspectionList = () => {
switch ($P.currentDisplay) {
case "photoInspection":
@ -604,7 +604,7 @@ $(document).ready(function(){
default: break;
}
}
$P.searchInspectionList = () => {
switch ($P.currentDisplay) {
case "photoInspection":
@ -654,7 +654,7 @@ $(document).ready(function(){
$P.clickInspectionDataList = (dataKey, gridType, auto) => {
switch (gridType) {
case "photoInspection":
if(dataKey == ""){
$("#curDataVhrno--${pageName}").html("");
$("#nextDataVhrno--${pageName}").html("");
@ -662,7 +662,7 @@ $(document).ready(function(){
$("#nextDataFiles--${pageName}").html("");
return;
}
$("#photoInspectionTbody--${pageName}").setCurrentRow(dataKey);
var curDataVhrno = $P.photoInspectionControl.dataset.getData(dataKey)["VHRNO"];
@ -701,16 +701,16 @@ $(document).ready(function(){
}
});
if(!auto){
$P.photoInspectionControl.setCurrent(dataKey);
}
break;
case "sameVehicleInspectionMain":
if(dataKey == ""){
$P.sameVehicleControl.sub.setData([]);
return;
return;
}
$("#sameVehicleInspectionMainTbody--${pageName}").setCurrentRow(dataKey);
$P.searchDetailInspectionDataList(dataKey);
@ -730,22 +730,27 @@ $(document).ready(function(){
}
}
$P.dblclickInspectionDataList = (dataKey, gridType) => {
var taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val();
var dialogUrl = wctx.url("/"+taskSeCd+"/sprt/sprt02/010/main.do");
let params = {
callControlName : "pageObject['${pageName}'].photoInspectionControl"
, crdnId : dataKey
}
ajax.get({
url : dialogUrl,
data : { "crdnId" : dataKey },
data : params,
success : resp => {
dialog.open({
id : "totalDialog--${pageName}",
title : "개별총정보", size : "xxl", content : resp,
init : () => {}
});
}
});
}
@ -776,12 +781,12 @@ $(document).ready(function(){
url : wctx.url("/excl/excl01/020/info.do"),
data : params,
success : resp => {
if((typeof resp) != "string"){
dialog.alert(resp.message);
return;
}
dialog.open({
id : "levyExcldialog",
title : "부과제외 정보",
@ -790,7 +795,7 @@ $(document).ready(function(){
init : () => {},
onClose : () => {}
});
}
});
};
@ -802,27 +807,27 @@ $(document).ready(function(){
}
var info = $P.photoInspectionControl.dataset.getCurrent("item");
if (info == undefined || info == "") {
return;
}
var params = {
var params = {
"crdnId" : info.data.CRDN_ID,
"openerPageName" : "${pageName}",
"savedCallbackFuncName" : "pageObject['${pageName}']['popupSavedCallback']"
};
ajax.get({
url : wctx.url("/PVS/crdn/crdn02/050/info.do"),
data : params,
success : resp => {
if((typeof resp) != "string"){
dialog.alert(resp.message);
return;
}
dialog.open({
id : "overTimeProcessDialog--${pageName}",
title : "2시간 초과 처리",
@ -834,13 +839,13 @@ $(document).ready(function(){
}
});
}
$P.popupSavedCallback = (saved) => {
if(saved){
$P.refreshInspectionList();
}
}
$P.renderInspectionDataList = (total, renderDataType) => {
switch (renderDataType) {
@ -860,7 +865,7 @@ $(document).ready(function(){
} else {
$("#photoInspection-responsive--${pageName}").removeAttr("data-scroll-status");
}
if($P.photoInspectionControl.untilPageNum != 0){
$P.photoInspectionControl.query.fetchSize = $P.photoInspectionControl.defaultFetchSize;
$P.photoInspectionControl.query.pageNum = $P.photoInspectionControl.untilPageNum;
@ -882,7 +887,7 @@ $(document).ready(function(){
} else {
$("#sameVehicleInspectionMain-responsive--${pageName}").removeAttr("data-scroll-status");
}
if($P.sameVehicleControl.untilPageNum != 0){
$P.sameVehicleControl.main.query.fetchSize = $P.sameVehicleControl.defaultFetchSize;
$P.sameVehicleControl.main.query.pageNum = $P.sameVehicleControl.untilPageNum;
@ -910,7 +915,7 @@ $(document).ready(function(){
$P.getParams = () => {
var formFields = new FimsFormFields("#frmSearch--${pageName}");
var data = formFields.get();
if($P.currentDisplay == "photoInspection"){
data.fetchSize = $P.photoInspectionControl.defaultFetchSize;
} else if($P.currentDisplay == "sameVehicleInspection"){
@ -945,7 +950,7 @@ $(document).ready(function(){
$('#btnSearch--${pageName}').on('click', () => $P.searchInspectionList()); //검색버튼
$("#btnInstLevyExcl--${pageName}").on("click", () => $P.openLevyExclPop("1"));
//스크롤 이벤트 추가(동일차량검사)
$("#photoInspection-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
$("#sameVehicleInspectionMain-responsive--${pageName}").scroll(function(){ $P.scrollEnd(this); });
@ -955,7 +960,7 @@ $(document).ready(function(){
**************************************************************************/
initDatepicker("frmSearch--${pageName}"); //달력 초기화
initDetailSearchButton("frmSearch--${pageName}");
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);

@ -59,7 +59,7 @@
<table id="DataTables_Table_0--${pageName}"
class="datatables-ajax table table-bordered dataTable no-footer" >
<thead>
<tr id="crdnTheadTr--${pageName}"
<tr id="crdnTheadTr--${pageName}"
data-by="by--${pageName}" data-by-output="byOutput--${pageName}"
data-main-option="mainOption--${pageName}" data-sub-option="subOption--${pageName}">
<th style="min-width: 80px;">No.</th>
@ -126,7 +126,7 @@ pageObject["${pageName}"] = {};
$(document).ready(function(){
var $P = pageObject["${pageName}"];
/**************************************************************************
* DatasetControl
**************************************************************************/
@ -150,12 +150,12 @@ $(document).ready(function(){
$P.crdnControl.untilPageNum = 0;
$P.crdnControl.beforeCurrent = null;
$P.crdnControl.tableRenderComplete = false;
/**************************************************************************
* DatasetControl.on
**************************************************************************/
$P.crdnControl.onDatasetChange = (obj) => {
$P.renderCrdnList(obj["Total"]);
$("#crdnPaging--${pageName}").setPagingInfo({
@ -166,7 +166,7 @@ $(document).ready(function(){
fetchSize: obj["Fetch"],
func: "pageObject['${pageName}'].crdnControl.load({index})"
});
$P.crdnControl.tableRenderComplete = true;
};
@ -175,7 +175,7 @@ $(document).ready(function(){
if(!$P.crdnControl.tableRenderComplete){
return;
}
$P.crdnControl.tableRenderComplete = false;
if(!item){
$P.clickCrdnList("", true);
@ -192,7 +192,7 @@ $(document).ready(function(){
$P.crdnControl.query.fetchSize = $P.crdnControl.defaultFetchSize * $P.crdnControl.query.pageNum;
$P.crdnControl.load(1);
}
$P.searchCrdnList = () => {
$P.crdnControl.query = $P.getParams();
$P.crdnControl.load(1);
@ -200,9 +200,9 @@ $(document).ready(function(){
$P.scrollEnd = (obj) => {
if(obj.dataset.scrollStatus){
return;
return;
}
var el = $(obj);
if(el.scrollTop() == 0){
return;
@ -222,30 +222,34 @@ $(document).ready(function(){
if(dataKey == ""){
return;
}
$("#crdnTbody--${pageName}").setCurrentRow(dataKey);
if(!auto){
$P.crdnControl.setCurrent(dataKey);
}
}
$P.dblclickCrdnList = (dataKey) => {
let params = {
callControlName : "pageObject['${pageName}'].crdnControl"
, crdnId : dataKey
}
ajax.get({
url : $P.crdnControl.urls.getInfo,
data : { "crdnId" : dataKey },
data : params,
success : resp => {
dialog.open({
id : "totalDialog--${pageName}",
title : "개별총정보", size : "xxl", content : resp,
init : () => {}
});
}
});
}
$P.renderCrdnList = (total) => {
@ -263,7 +267,7 @@ $(document).ready(function(){
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
if(total == crdnList.length){
$("#table-responsive--${pageName}").attr("data-scroll-status", "complete");
} else {
@ -293,7 +297,7 @@ $(document).ready(function(){
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$("#byOutput--${pageName}").val("동적 검색");
$('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
$('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date());

@ -113,7 +113,7 @@
<label class="form-label">
<input type="radio" name="towngYn" value="Y" class="form-check-input" />예
</label>
<label class="form-label">
<label class="form-label">
<input type="radio" name="towngYn" value="N" class="form-check-input" />아니오
</label>
</slot>
@ -278,7 +278,7 @@ $(document).ready(function(){
$P.crdnControl.untilPageNum = 0;
$P.crdnControl.beforeCurrent = null;
$P.crdnControl.tableRenderComplete = false;
/**************************************************************************
* DatasetControl.on
**************************************************************************/
@ -299,11 +299,11 @@ $(document).ready(function(){
};
$P.crdnControl.onCurrentChange = (item) => {
if(!$P.crdnControl.tableRenderComplete){
return;
}
$P.crdnControl.tableRenderComplete = false;
if(!item){
$P.clickCrdnList("", true);
@ -322,7 +322,7 @@ $(document).ready(function(){
searchForm.find("input[type='text']").val("");
searchForm.find("input[type='hidden']").val("");
searchForm.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); });
$("#byOutput--${pageName}").val("동적 검색");
$('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date);
$('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date());
@ -354,7 +354,7 @@ $(document).ready(function(){
$P.crdnControl.query.fetchSize = $P.crdnControl.defaultFetchSize * $P.crdnControl.query.pageNum;
$P.crdnControl.load(1);
}
$P.searchCrdnList = () => {
$P.crdnControl.query = $P.getParams();
$P.crdnControl.load(1);
@ -384,30 +384,34 @@ $(document).ready(function(){
if(dataKey == ""){
return;
}
$("#crdnTbody--${pageName}").setCurrentRow(dataKey);
if(!auto){
$P.crdnControl.setCurrent(dataKey);
}
}
$P.dblclickCrdnList = (dataKey) => {
let params = {
callControlName : "pageObject['${pageName}'].crdnControl"
, crdnId : dataKey
}
ajax.get({
url : $P.crdnControl.urls.getInfo,
data : { "crdnId" : dataKey },
data : params,
success : resp => {
dialog.open({
id : "totalDialog--${pageName}",
title : "개별총정보", size : "xxl", content : resp,
init : () => {}
});
}
});
}
$P.renderCrdnList = (total) => {
@ -439,7 +443,7 @@ $(document).ready(function(){
} else {
$("#table-responsive--${pageName}").removeAttr("data-scroll-status");
}
if($P.crdnControl.untilPageNum != 0){
$P.crdnControl.query.fetchSize = $P.crdnControl.defaultFetchSize;
$P.crdnControl.query.pageNum = $P.crdnControl.untilPageNum;
@ -467,7 +471,7 @@ $(document).ready(function(){
**************************************************************************/
initDatepicker("frmSearch--${pageName}"); //달력 초기화
initDetailSearchButton("frmSearch--${pageName}");
var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val();
$("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true);
$P.fnResetAndChangeBiz(defaultBizValue);

Loading…
Cancel
Save