소스 정리

main
이범준 1 year ago
parent 914c4db97f
commit 8064663853

@ -109,11 +109,7 @@ public class Crdn01Controller extends ApplicationController {
public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery req) {
req.setGrid("receiptData");
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
crdn01Service.getCrackdownList(req),
"crdn"
);
return setCollectionInfo(new ModelAndView("jsonView"),crdn01Service.getCrackdownList(req),"");
}
/** .<br />
@ -151,11 +147,7 @@ public class Crdn01Controller extends ApplicationController {
public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery req) {
req.setGrid("answerTargetData");
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
crdn01Service.getCrackdownList(req),
"crdn"
);
return setCollectionInfo(new ModelAndView("jsonView"), crdn01Service.getCrackdownList(req), "");
}
/** .<br />
@ -172,11 +164,7 @@ public class Crdn01Controller extends ApplicationController {
@RequestMapping(name="민원자료 목록", value="/040/list.do")
public ModelAndView getCivilComplaintList(CrdnQuery req) {
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
crdn01Service.getCrackdownList(req),
"crdn"
);
return setCollectionInfo(new ModelAndView("jsonView"),crdn01Service.getCrackdownList(req),"");
}
/** .

@ -65,11 +65,7 @@ public class Crdn05Controller extends ApplicationController {
@RequestMapping(name="당일 입력 단속자료 목록 조회", value="/010/list.do")
public ModelAndView getTodayCrdnDataList(CrdnQuery req) {
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
crdn05Service.getCrackdownList(req),
"crdn"
);
return setCollectionInfo(new ModelAndView("jsonView"),crdn05Service.getCrackdownList(req),"");
}
/** .

@ -99,11 +99,7 @@ public class Crdn06Controller extends ApplicationController {
@RequestMapping(name="단속자료 목록", value="/010/list.do")
public ModelAndView getCrackdownList(CrdnQuery req) {
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
crdn06Service.getCrackdownList(req),
"crdn"
);
return setCollectionInfo(new ModelAndView("jsonView"),crdn06Service.getCrackdownList(req),"");
}
/** .<br />
@ -125,11 +121,7 @@ public class Crdn06Controller extends ApplicationController {
case "sameVehicleSub" -> req.setGrid("sameVehicleSub");
}
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
crdn06Service.getCrackdownList(req),
"crdn"
);
return setCollectionInfo(new ModelAndView("jsonView"),crdn06Service.getCrackdownList(req),"");
}
/** .<br />
@ -147,10 +139,6 @@ public class Crdn06Controller extends ApplicationController {
public ModelAndView getFineReductionDataList(CrdnQuery req) {
req.setGrid("fineReductionData");
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
crdn06Service.getCrackdownList(req),
"crdn"
);
return setCollectionInfo(new ModelAndView("jsonView"),crdn06Service.getCrackdownList(req),"");
}
}

@ -47,11 +47,7 @@ public class DpvController {
public ModelAndView getTagInformationUndefinedDataList(CrdnQuery req) {
req.setGrid("tagInformationUndefinedData");
setFetchSize(req);
return setCollectionInfo(
new ModelAndView("jsonView"),
crdn06Service.getCrackdownList(req),
"crdn"
);
return setCollectionInfo(new ModelAndView("jsonView"),crdn06Service.getCrackdownList(req),"");
}
/** .

@ -179,9 +179,9 @@ $(document).ready(function(){
* DatasetControl
**************************************************************************/
$P.crdnControl = new DatasetControl({
size:"xxl",
urls : { load : "", getInfo : "", remove : "" },
keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:true,
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
formats : {
CRDN_REG_SE_CD : FIM026,
CVLCPT_RCPT_YMD : dateFormat,
@ -194,16 +194,15 @@ $(document).ready(function(){
* DatasetControl.on
**************************************************************************/
$P.crdnControl.onDatasetChange = (obj) => {
var prefix = obj.infoPrefix;
$P.renderCrdnList(obj[prefix+"Total"]);
$P.renderCrdnList(obj["Total"]);
$("#crdnPaging--${pageName}").setPagingInfo({
list: $P.crdnControl.dataset,
prefix: "crdnPaging--${pageName}",
start: obj[prefix+"Start"],
totalSize: obj[prefix+"Total"],
fetchSize: obj[prefix+"Fetch"],
start: obj["Start"],
totalSize: obj["Total"],
fetchSize: obj["Fetch"],
func: "pageObject['${pageName}'].crdnControl.load({index})"
});
@ -486,6 +485,8 @@ $(document).ready(function(){
//보안모드
fn_securityModeToggle($("#securityMode--top").is(":checked"));
});

@ -176,7 +176,8 @@ $(document).ready(function(){
**************************************************************************/
$P.crdnControl = new DatasetControl({
urls : { load : "", getInfo : "" },
keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:true,
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
formats : {
CRDN_REG_SE_CD : FIM026,
CVLCPT_RCPT_YMD : dateFormat,
@ -190,16 +191,15 @@ $(document).ready(function(){
* DatasetControl.on
**************************************************************************/
$P.crdnControl.onDatasetChange = (obj) => {
var prefix = obj.infoPrefix;
$P.renderCrdnList(obj[prefix+"Total"]);
$P.renderCrdnList(obj["Total"]);
$("#crdnPaging--${pageName}").setPagingInfo({
list: $P.crdnControl.dataset,
prefix: "crdnPaging--${pageName}",
start: obj[prefix+"Start"],
totalSize: obj[prefix+"Total"],
fetchSize: obj[prefix+"Fetch"],
start: obj["Start"],
totalSize: obj["Total"],
fetchSize: obj["Fetch"],
func: "pageObject['${pageName}'].crdnControl.load({index})"
});

@ -116,9 +116,8 @@ $(document).ready(function(){
**************************************************************************/
$P.crdnControl = new DatasetControl({
urls : { load : "" },
keymapper:info => info ? info.CRDN_ID : "",
dataGetter:obj => obj.crdnList,
appendData:true,
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
formats: {
CRDN_INPT_SE_CD : FIM003,
CRDN_REG_SE_CD : FIM026,
@ -162,16 +161,14 @@ $(document).ready(function(){
**************************************************************************/
$P.crdnControl.onDatasetChange = (obj) => {
var prefix = obj.infoPrefix;
$P.renderCrdnList(obj[prefix+"Total"]);
$P.renderCrdnList(obj["Total"]);
$("#crdnPaging--${pageName}").setPagingInfo({
list: $P.crdnControl.dataset,
prefix: "crdnPaging--${pageName}",
start: obj["crdnStart"],
totalSize: obj["crdnTotal"],
fetchSize: obj["crdnFetch"],
start: obj["Start"],
totalSize: obj["Total"],
fetchSize: obj["Fetch"],
func: "pageObject['${pageName}'].crdnControl.load({index})"
});

@ -276,11 +276,9 @@ $(document).ready(function(){
$P.uploadSet = uploadSupport("#uploadFileList--${pageName}");
$P.crdnControl = new DatasetControl({
prefix:"crdn", prefixName:"단속", infoSize:"xxl",
urls : { load : "", create : wctx.url("/${taskSeCd}/crdn/crdn05/030/create.do") },
keymapper:info => info ? info.CRDN_ID : "",
dataGetter:obj => obj.crdnList,
appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
dataGetter : obj => obj["List"], appendData : true,
formats: {
}

@ -234,6 +234,8 @@ $(document).ready(function(){
load : "",
getInfo : ""
},
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
formats: {
CRDN_INPT_SE_CD: FIM003,
CRDN_YMD_TM : datetimeFormat,
@ -249,10 +251,7 @@ $(document).ready(function(){
CRDN_REG_SE_CD: FIM026,
LEVY_EXCL_YMD : dateFormat,
LEVY_EXCL_RSN_CD : FIM022
},
keymapper:info => info ? info.CRDN_ID : "",
dataGetter:obj => obj.crdnList,
appendData:true
}
});
/**************************************************************************
@ -260,16 +259,14 @@ $(document).ready(function(){
**************************************************************************/
$P.crdnControl.onDatasetChange = obj => {
var prefix = obj.infoPrefix;
$P.renderCrdnList(obj[prefix+"Total"]);
$P.renderCrdnList(obj["Total"]);
$("#crdnPaging--${pageName}").setPagingInfo({
list: $P.crdnControl.dataset,
prefix: "crdnPaging--${pageName}",
start: obj[prefix+"Start"],
totalSize: obj[prefix+"Total"],
fetchSize: obj[prefix+"Fetch"],
start: obj["Start"],
totalSize: obj["Total"],
fetchSize: obj["Fetch"],
func: "pageObject['${pageName}'].crdnControl.load({index})"
});

@ -337,7 +337,8 @@ $(document).ready(function(){
//단속사진검사 datasetControl 인스턴스
$P.photoInspectionControl = new DatasetControl({
urls : { load : "", getInfo : "" },
keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:true,
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
formats: {
CRDN_YMD_TM : datetimeFormat,
CRDN_INPT_SE_CD : FIM003,
@ -350,12 +351,14 @@ $(document).ready(function(){
//동일차량검사 datasetControl 인스턴스
$P.sameVehicleControl = new InspectionControl({
urls : { load : "", getInfo : "" },
keymapper:info => info ? info.CRDN_ID_LIST : "", dataGetter:obj => obj.crdnList, appendData:true,
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID_LIST : "",
formats: { CRDN_CNT : numberFormat, FFNLG_AMT : numberFormat }
},
{
urls : { load : "", getInfo : "" },
keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList,
dataGetter : obj => obj["List"],
keymapper : info => info ? info.CRDN_ID : "",
formats: {
CRDN_YMD_TM : datetimeFormat,
CRDN_INPT_SE_CD : FIM003,
@ -379,29 +382,26 @@ $(document).ready(function(){
* DatasetControl.on
**************************************************************************/
$P.photoInspectionControl.onDatasetChange = (obj) => {
var prefix = obj.infoPrefix;
$P.renderInspectionDataList(obj[prefix+"Total"], "photoInspection");
$P.renderInspectionDataList(obj["Total"], "photoInspection");
var prefix = obj.infoPrefix;
$("#photoInspectionPaging--${pageName}").setPagingInfo({
list: $P.photoInspectionControl.dataset,
prefix: "photoInspectionPaging--${pageName}",
start: obj[prefix+"Start"], totalSize: obj[prefix+"Total"], fetchSize: obj[prefix+"Fetch"],
start: obj["Start"], totalSize: obj["Total"], fetchSize: obj["Fetch"],
func: "pageObject['${pageName}'].photoInspectionControl.load({index})"
});
};
$P.sameVehicleControl.main.onDatasetChange = (obj) => {
var prefix = obj.infoPrefix;
$P.renderInspectionDataList(obj[prefix+"Total"], "sameVehicleInspectionMain");
$P.renderInspectionDataList(obj["Total"], "sameVehicleInspectionMain");
$("#sameVehicleInspectionMainPaging--${pageName}").setPagingInfo({
list: $P.sameVehicleControl.main.dataset,
prefix: "sameVehicleInspectionMainPaging--${pageName}",
start: obj[prefix+"Start"], totalSize: obj[prefix+"Total"], fetchSize: obj[prefix+"Fetch"],
start: obj["Start"], totalSize: obj["Total"], fetchSize: obj["Fetch"],
func: "pageObject['${pageName}'].sameVehicleControl.main.load({index})"
});
@ -409,10 +409,7 @@ $(document).ready(function(){
$P.sameVehicleControl.sub.onDatasetChange = (obj) => {
var prefix = obj.infoPrefix;
$P.renderInspectionDataList(obj[prefix+"Total"], "sameVehicleInspectionSub");
$P.renderInspectionDataList(obj["Total"], "sameVehicleInspectionSub");
};
/**************************************************************************
@ -584,7 +581,8 @@ $(document).ready(function(){
data : params || {},
success : resp => {
resp = resp.replace(/infoPrefix/g, levyExclPrefix)
.replace(/prefixName/g, levyExclPrefixName)
.replace(/prefixName/g, levyExclPrefixName);
dialog.open({
id : "levyExcldialog--${pageName}",
title : "부과제외 정보",

@ -139,30 +139,30 @@ $(document).ready(function(){
getInfo : wctx.url("/DPV/sprt/sprt01/020/info.do"),
update: wctx.url("/DPV/crdn/crdn06/030/update.do")
},
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
formats: {
CRDN_INPT_SE_CD : FIM003,
CRDN_YMD_TM : datetimeFormat,
FFNLG_AMT : numberFormat,
CRDN_STTS_CD : FIM010,
BLNC : numberFormat
},
keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:true
}
});
/**************************************************************************
* DatasetControl.on
**************************************************************************/
$P.crdnControl.onDatasetChange = obj => {
var prefix = obj.infoPrefix;
$P.renderCrdnList(obj[prefix+"Total"]);
$P.renderCrdnList(obj["Total"]);
$("#crdnPaging--${pageName}").setPagingInfo({
list: $P.crdnControl.dataset,
prefix: "crdnPaging--${pageName}",
start: obj[prefix+"Start"],
totalSize: obj[prefix+"Total"],
fetchSize: obj[prefix+"Fetch"],
start: obj["Start"],
totalSize: obj["Total"],
fetchSize: obj["Fetch"],
func: "pageObject['${pageName}'].crdnControl.load({index})"
});
};

@ -147,6 +147,8 @@ $(document).ready(function(){
**************************************************************************/
$P.crdnControl = new DatasetControl({
urls : { load : "", getInfo : "" },
dataGetter : obj => obj["List"], appendData:true,
keymapper : info => info ? info.CRDN_ID : "",
formats: {
RDUCT_RSN_CD : FIM019,
RDUCT_YMD : dateFormat,
@ -155,24 +157,22 @@ $(document).ready(function(){
SUM_AMT : numberFormat,
CRDN_STTS_CD : FIM010,
BLNC : numberFormat
},
keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:true
}
});
/**************************************************************************
* DatasetControl.on
**************************************************************************/
$P.crdnControl.onDatasetChange = (obj) => {
var prefix = obj.infoPrefix;
$P.renderCrdnList(obj[prefix+"Total"]);
$P.renderCrdnList(obj["Total"]);
$("#crdnPaging--${pageName}").setPagingInfo({
list: $P.crdnControl.dataset,
prefix: "crdnPaging--${pageName}",
start: obj["crdnStart"],
totalSize: obj["crdnTotal"],
fetchSize: obj["crdnFetch"],
start: obj["Start"],
totalSize: obj["Total"],
fetchSize: obj["Fetch"],
func: "pageObject['${pageName}'].crdnControl.load({index})"
});

Loading…
Cancel
Save