소스 정리

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save