소스 정리

main
이범준 1 year ago
parent a600789651
commit bc4fc8aecb

@ -20,11 +20,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.CRDN_YMD <!-- 단속 일자 --> , C.CRDN_YMD <!-- 단속 일자 -->
, C.CRDN_TM <!-- 단속 시각 --> , C.CRDN_TM <!-- 단속 시각 -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 --> , CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
, IF(CC.CVLCPT_APLCNT_NM != '', CC.CVLCPT_APLCNT_NM, , '' AS APLCNT_CRDN_NM <!-- 신고/단속자 -->
IF(TI.TEAMER_1 != '', TI.TEAMER_1,
IF(TI.TEAMER_2 != '', TI.TEAMER_2,
IF(TI.TEAMER_3 != '', TI.TEAMER_3,
TI.TEAMER_4)))) AS APLCNT_CRDN_NM <!-- 신고/단속자 -->
, C.VHRNO <!-- 차량번호 --> , C.VHRNO <!-- 차량번호 -->
, C.CRDN_STDG_NM <!-- 단속 법정동 명 --> , C.CRDN_STDG_NM <!-- 단속 법정동 명 -->
, C.CRDN_ROAD_NM <!-- 단속 도로 명 --> , C.CRDN_ROAD_NM <!-- 단속 도로 명 -->

@ -110,11 +110,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.CRDN_YMD <!-- 단속 일자 --> , C.CRDN_YMD <!-- 단속 일자 -->
, C.CRDN_TM <!-- 단속 시각 --> , C.CRDN_TM <!-- 단속 시각 -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 --> , CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
, IF(CC.CVLCPT_APLCNT_NM != '', CC.CVLCPT_APLCNT_NM, , '' AS APLCNT_CRDN_NM <!-- 신고/단속자 -->
IF(TI.TEAMER_1 != '', TI.TEAMER_1,
IF(TI.TEAMER_2 != '', TI.TEAMER_2,
IF(TI.TEAMER_3 != '', TI.TEAMER_3,
TI.TEAMER_4)))) AS APLCNT_CRDN_NM <!-- 신고/단속자 -->
, C.VHRNO <!-- 차량번호 --> , C.VHRNO <!-- 차량번호 -->
, C.CRDN_STDG_NM <!-- 단속 법정동 명 --> , C.CRDN_STDG_NM <!-- 단속 법정동 명 -->
, C.CRDN_ROAD_NM <!-- 단속 도로 명 --> , C.CRDN_ROAD_NM <!-- 단속 도로 명 -->
@ -358,11 +354,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 --> , CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
, C.VHRNO <!-- 차량번호 --> , C.VHRNO <!-- 차량번호 -->
, C.CRDN_STDG_NM <!-- 단속 법정동 명 --> , C.CRDN_STDG_NM <!-- 단속 법정동 명 -->
, IF(CC.CVLCPT_APLCNT_NM != '', CC.CVLCPT_APLCNT_NM, , '' AS APLCNT_CRDN_NM <!-- 신고/단속자 -->
IF(TI.TEAMER_1 != '', TI.TEAMER_1,
IF(TI.TEAMER_2 != '', TI.TEAMER_2,
IF(TI.TEAMER_3 != '', TI.TEAMER_3,
TI.TEAMER_4)))) AS APLCNT_CRDN_NM <!-- 신고/단속자 -->
, C.CRDN_STTS_CD <!-- 처리상태 --> , C.CRDN_STTS_CD <!-- 처리상태 -->
, C.LEVY_AMT <!-- 부과금액 --> , C.LEVY_AMT <!-- 부과금액 -->
, C.ADVNTCE_LEVY_AMT <!-- 사전통지부과금액 --> , C.ADVNTCE_LEVY_AMT <!-- 사전통지부과금액 -->
@ -394,11 +386,7 @@ AND C.VHRNO LIKE CONCAT('%', #{term}, '%')
AND C.CRDN_STDG_NM LIKE CONCAT('%', #{term}, '%') AND C.CRDN_STDG_NM LIKE CONCAT('%', #{term}, '%')
</when> </when>
<when test="by == 'aplcntCrdnNm'"> <when test="by == 'aplcntCrdnNm'">
AND IF(CC.CVLCPT_APLCNT_NM != '', CC.CVLCPT_APLCNT_NM,
IF(TI.TEAMER_1 != '', TI.TEAMER_1,
IF(TI.TEAMER_2 != '', TI.TEAMER_2,
IF(TI.TEAMER_3 != '', TI.TEAMER_3,
TI.TEAMER_4)))) LIKE CONCAT('%', #{term}, '%')
</when> </when>
<when test="by == 'atchFileCnt'"> <when test="by == 'atchFileCnt'">
AND C.ATCH_FILE_CNT = #{term} AND C.ATCH_FILE_CNT = #{term}

@ -294,9 +294,9 @@ $(document).ready(function(){
/************************************************************************** /**************************************************************************
* 초기화 * 초기화
**************************************************************************/ **************************************************************************/
var cssForTask = $("#taskSeCd--${pageName}").val().toLowerCase(); var clsForTask = $("#taskSeCd--${pageName}").val().toLowerCase();
var content = document.getElementById("taskItem--${pageName}").content; var content = document.getElementById("taskItem--${pageName}").content;
var taskItem = $(content).find("."+cssForTask); var taskItem = $(content).find("."+clsForTask);
$("#editByTask--${pageName}").html(taskItem); $("#editByTask--${pageName}").html(taskItem);
initDatepicker("frmEdit--${pageName}"); //달력 초기화 initDatepicker("frmEdit--${pageName}"); //달력 초기화

@ -149,37 +149,37 @@
</tbody> </tbody>
<template id="crdnCols--${pageName}"> <template id="crdnCols--${pageName}">
<th width="80" class="pvs bpv dpv eca">No.</th> <th width="80" class="cmn">No.</th>
<th width="80" class="pvs bpv dpv eca">자료출처</th> <th width="80" class="pvs bpv dpv eca">자료출처</th>
<th width="80" class="pvs bpv dpv eca">차량번호</th> <th width="80" class="cmn">차량번호</th>
<th width="80" class="pvs bpv dpv eca">위반일시</th> <th width="80" class="cmn">위반일시</th>
<th width="80" class="dpv eca">신고/단속자</th> <th width="80" class="dpv eca">신고/단속자</th>
<th width="80" class="pvs bpv dpv eca">위반장소</th> <th width="80" class="cmn">위반장소</th>
<th width="80" class="pvs bpv dpv eca">체납액</th> <th width="80" class="cmn">체납액</th>
<th width="80" class="pvs bpv dpv eca">사진건수</th> <th width="80" class="cmn">사진건수</th>
<th width="80" class="pvs bpv dpv eca">발행번호</th> <th width="80" class="pvs dpv eca">스티커번호</th>
<th width="80" class="pvs bpv dpv eca">차량확인</th> <th width="80" class="pvs bpv dpv eca">차량확인</th>
<th width="80" class="pvs bpv dpv eca">처리상태</th> <th width="80" class="cmn">처리상태</th>
<th width="80" class="pvs bpv dpv eca">제외사유</th> <th width="80" class="cmn">제외사유</th>
<th width="80" class="pvs bpv dpv eca">제외처리일자</th> <th width="80" class="cmn">제외처리일자</th>
<th width="80" class="pvs bpv dpv eca">제외내역</th> <th width="80" class="cmn">제외내역</th>
</template> </template>
<template id="crdnRow--${pageName}"> <template id="crdnRow--${pageName}">
<tr data-key="{CRDN_ID}"> <tr data-key="{CRDN_ID}">
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end pvs bpv dpv eca">{ROW_NUM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end cmn">{ROW_NUM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{CRDN_INPT_SE_CD}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{CRDN_INPT_SE_CD}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{VHRNO}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">{VHRNO}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{CRDN_YMD_TM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">{CRDN_YMD_TM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center dpv eca">{APLCNT_CRDN_NM}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center dpv eca">{APLCNT_CRDN_NM}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{CRDN_PLC}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">{CRDN_PLC}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end pvs bpv dpv eca">{체납액}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-end cmn">{체납액}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{ATCH_FILE_CNT}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">{ATCH_FILE_CNT}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{CRDN_SN}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs dpv eca">{CRDN_SN}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{차량확인}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{차량확인}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{CRDN_STTS_CD}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">{CRDN_STTS_CD}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{LEVY_EXCL_RSN_CD}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">{LEVY_EXCL_RSN_CD}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{LEVY_EXCL_YMD}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">{LEVY_EXCL_YMD}</td>
<td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center pvs bpv dpv eca">{LEVY_EXCL_ETC_CN}</td> <td onclick="{onclick}" ondblclick="{ondblclick}" class="text-center cmn">{LEVY_EXCL_ETC_CN}</td>
</tr> </tr>
</template> </template>
<template id="crdnNotFound--${pageName}"> <template id="crdnNotFound--${pageName}">
@ -295,14 +295,14 @@ $(document).ready(function(){
$P.crdnControl.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn06/010/list.do"); $P.crdnControl.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn06/010/list.do");
$P.crdnControl.urls.getInfo = wctx.url("/"+taskSeCd+"/sprt/sprt01/020/info.do"); $P.crdnControl.urls.getInfo = wctx.url("/"+taskSeCd+"/sprt/sprt01/020/info.do");
var cssForTask = taskSeCd.toLowerCase(); var clsForTask = taskSeCd.toLowerCase();
var searchOption = document.getElementById("taskSearchOption--${pageName}").content.querySelector("."+cssForTask)?.outerHTML; var searchOption = document.getElementById("taskSearchOption--${pageName}").content.querySelector("."+clsForTask)?.outerHTML;
if(!searchOption) searchOption = ""; if(!searchOption) searchOption = "";
$("#searchByTaskArea--${pageName}").html(searchOption); $("#searchByTaskArea--${pageName}").html(searchOption);
var colsContent = document.getElementById("crdnCols--${pageName}").content; var colsContent = document.getElementById("crdnCols--${pageName}").content;
var cols = $(colsContent).find("."+cssForTask); var cols = $(colsContent).find("."+clsForTask+",.cmn");
var colsStr = ""; var colsStr = "";
cols.each(function(){ cols.each(function(){
colsStr += this.outerHTML; colsStr += this.outerHTML;
@ -343,11 +343,11 @@ $(document).ready(function(){
var crdnList = $P.crdnControl.dataset; var crdnList = $P.crdnControl.dataset;
var empty = crdnList.empty; var empty = crdnList.empty;
var cssForTask = $("#frmSearch--${pageName} [name='taskSeCd']:checked").val().toLowerCase(); var clsForTask = $("#frmSearch--${pageName} [name='taskSeCd']:checked").val().toLowerCase();
var notFound = [document.getElementById("crdnNotFound--${pageName}").content.querySelector("."+cssForTask).outerHTML]; var notFound = [document.getElementById("crdnNotFound--${pageName}").content.querySelector("."+clsForTask+",.cmn").outerHTML];
var foundContent = document.getElementById("crdnRow--${pageName}").content; var foundContent = document.getElementById("crdnRow--${pageName}").content;
var foundTr = $(foundContent).find("tr")[0].cloneNode(false); var foundTr = $(foundContent).find("tr")[0].cloneNode(false);
var foundTds = $(foundContent).find("."+cssForTask); var foundTds = $(foundContent).find("."+clsForTask+",.cmn");
foundTds.each(function(){ foundTds.each(function(){
foundTr.appendChild(this.cloneNode(true)); foundTr.appendChild(this.cloneNode(true));

@ -434,13 +434,13 @@ $(document).ready(function(){
$P.sameVehicleControl.sub.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn06/020/list.do?inspectionDataType=sameVehicleSub"); $P.sameVehicleControl.sub.urls.load = wctx.url("/"+taskSeCd+"/crdn/crdn06/020/list.do?inspectionDataType=sameVehicleSub");
$P.sameVehicleControl.sub.urls.getInfo = wctx.url("/"+taskSeCd+"/sprt/sprt01/020/info.do"); $P.sameVehicleControl.sub.urls.getInfo = wctx.url("/"+taskSeCd+"/sprt/sprt01/020/info.do");
var cssForTask = taskSeCd.toLowerCase(); var clsForTask = taskSeCd.toLowerCase();
//업무별 조회조건 //업무별 조회조건
var searchOption = document.getElementById("taskSearchOption--${pageName}").content.querySelector("."+cssForTask)?.outerHTML; var searchOption = document.getElementById("taskSearchOption--${pageName}").content.querySelector("."+clsForTask)?.outerHTML;
if(!searchOption) searchOption = ""; if(!searchOption) searchOption = "";
$("#searchByTaskArea--${pageName}").html(searchOption); $("#searchByTaskArea--${pageName}").html(searchOption);
//업무별 버튼 //업무별 버튼
var buttons = document.getElementById("taskButton--${pageName}").content.querySelector("."+cssForTask)?.outerHTML; var buttons = document.getElementById("taskButton--${pageName}").content.querySelector("."+clsForTask)?.outerHTML;
if(!buttons) buttons = ""; if(!buttons) buttons = "";
$("#buttonByTaskArea--${pageName}").html(buttons); $("#buttonByTaskArea--${pageName}").html(buttons);

Loading…
Cancel
Save