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

main
jjh 1 year ago
parent 21bed67a7c
commit b065db335c

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

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

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

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

Loading…
Cancel
Save