부과제외 처리 후 콜백 함수 추가

main
이범준 1 year ago
parent 08c80323c7
commit 93fb474f4c

@ -49,6 +49,7 @@ public class CrdnQuery extends CmmnQuery {
private String dtlAmtDcsnCd; private String dtlAmtDcsnCd;
private String crdnInptSeCd; private String crdnInptSeCd;
private String cvlcptPrcsCd; private String cvlcptPrcsCd;
private String crdnSttsCd;
//포함, 제외, 특정 자료 //포함, 제외, 특정 자료
private String schOnlySamePlace; private String schOnlySamePlace;
@ -267,6 +268,15 @@ public class CrdnQuery extends CmmnQuery {
return self(); return self();
} }
public String getCrdnSttsCd() {
return ifEmpty(crdnSttsCd, () -> null);
}
public <T extends CrdnQuery> T setCrdnSttsCd(String crdnSttsCd) {
this.crdnSttsCd = crdnSttsCd;
return self();
}
public String getAplcnYmd() { public String getAplcnYmd() {
return ifEmpty(aplcnYmd, () -> null); return ifEmpty(aplcnYmd, () -> null);
} }

@ -214,7 +214,9 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
</otherwise> </otherwise>
</choose> </choose>
</if> </if>
<if test="crdnSttsCd != null">
AND C.CRDN_STTS_CD = #{crdnSttsCd}
</if>
<include refid="utility.orderBy" /> <include refid="utility.orderBy" />
<include refid="utility.paging-suffix"/> <include refid="utility.paging-suffix"/>
</select> </select>
@ -271,6 +273,9 @@ SELECT GROUP_CONCAT(C.CRDN_ID) AS CRDN_ID_LIST <!-- 단속 ID -->
</otherwise> </otherwise>
</choose> </choose>
</if> </if>
<if test="crdnSttsCd != null">
AND C.CRDN_STTS_CD = #{crdnSttsCd}
</if>
GROUP BY C.VHRNO<if test="schOnlySamePlace == 'on'">, C.CRDN_STDG_NM </if> GROUP BY C.VHRNO<if test="schOnlySamePlace == 'on'">, C.CRDN_STDG_NM </if>
HAVING COUNT(*) <![CDATA[ >= ]]> HAVING COUNT(*) <![CDATA[ >= ]]>
<choose> <choose>

@ -620,7 +620,9 @@ $(document).ready(function(){
var params = { var params = {
"crdnId" : info.data.CRDN_ID, "crdnId" : info.data.CRDN_ID,
"levyExclSeCd" : levyExclSeCd "levyExclSeCd" : levyExclSeCd,
"openerPageName" : "crdn06020-main",
"callbackFuncName" : "pageObject['crdn06020-main']['exclCallback']",
}; };
ajax.get({ ajax.get({
@ -639,15 +641,19 @@ $(document).ready(function(){
content : resp, content : resp,
size : "lg", size : "lg",
init : () => {}, init : () => {},
onClose : () => { onClose : () => {}
$P.refreshInspectionList();
}
}); });
} }
}); });
}; };
$P.exclCallback = (saved) => {
if(saved){
$P.refreshInspectionList();
}
}
$P.renderInspectionDataList = (total, renderDataType) => { $P.renderInspectionDataList = (total, renderDataType) => {
switch (renderDataType) { switch (renderDataType) {

@ -505,6 +505,9 @@ $(document).ready(function(){
}, },
"holdRow" : function(currentKey){ "holdRow" : function(currentKey){
$P.fnHold(currentKey); $P.fnHold(currentKey);
},
"refreshList" : function(){
$P.refreshCrdnList();
} }
}; };

@ -326,7 +326,8 @@ pageObject.childReq.push({
getNextKey : function(){ return ""; }, getNextKey : function(){ return ""; },
getPrevKey : function(){ return ""; }, getPrevKey : function(){ return ""; },
selectRow : function(){}, selectRow : function(){},
holdRow : function(){} holdRow : function(){},
refreshList : function(){}
}); });
$(document).ready(function(){ $(document).ready(function(){
@ -602,7 +603,9 @@ $(document).ready(function(){
var params = { var params = {
"crdnId" : crdnId, "crdnId" : crdnId,
"levyExclSeCd" : levyExclSeCd "levyExclSeCd" : levyExclSeCd,
"openerPageName" : "cvlc01020-info",
"callbackFuncName" : "pageObject['cvlc01020-info']['exclCallback']",
}; };
ajax.get({ ajax.get({
@ -611,17 +614,44 @@ $(document).ready(function(){
success : resp => { success : resp => {
dialog.open({ dialog.open({
id : "levyExcldialog--${pageName}", id : "levyExcldialog",
title : "부과제외 정보", title : "부과제외 정보",
content : resp, content : resp,
size : "lg", size : "lg",
init : () => {}, init : () => {},
onClose : () => { $P.fnGo(crdnId); } // callback onClose : () => {}
}); });
} }
}); });
}; };
$P.exclCallback = function(saved){
if(saved){
var crdnId = $("#crdnId--${pageName}").val();
var cursorKey = "";
var nextKey = $P.provided.getNextKey(crdnId);
if(nextKey != ""){
cursorKey = nextKey;
} else {
var prevKey = $P.provided.getPrevKey(crdnId);
if(prevKey != ""){
cursorKey = prevKey;
}
}
$P.provided.refreshList();
if(cursorKey != ""){
$P.fnGo(cursorKey);
} else {
dialog.close("cvlcptInitialDataEditDialog--${openerPageName}");
}
}
};
$P.fnPrev = () => { $P.fnPrev = () => {
var prevKey = $P.provided.getPrevKey($("#crdnId--${pageName}").val()); var prevKey = $P.provided.getPrevKey($("#crdnId--${pageName}").val());
if(prevKey != ""){ if(prevKey != ""){

@ -405,6 +405,9 @@ $(document).ready(function(){
}, },
"selectRow" : function(currentKey){ "selectRow" : function(currentKey){
$P.clickCrdnList(currentKey); $P.clickCrdnList(currentKey);
},
"refreshList" : function(){
$P.refreshCrdnList();
} }
}; };

Loading…
Cancel
Save