부과제외/계도 수정/삭제 수정

master
mjkhan21 5 months ago
parent cdbb30a51c
commit 16bba814ef

@ -127,7 +127,7 @@ public class ChongnoTaskProcessor extends TaskProcessor {
else if (vhclCpct >= capacity) { else if (vhclCpct >= capacity) {
boolean enforce = isTarget(vhrno, crdn); boolean enforce = isTarget(vhrno, crdn);
if (enforce) { if (enforce) {
// excluded.put(crdn, newLevyExcl(crdn, "2", "206")); // 정원초과 -> 계도(시범운영) excluded.put(crdn, newLevyExcl(crdn, "2", "206")); // 정원초과 -> 계도(시범운영)
} else } else
excluded.put(crdn, newLevyExcl(crdn, "1", "103")); // 부과제외(일반차량) excluded.put(crdn, newLevyExcl(crdn, "1", "103")); // 부과제외(일반차량)
} }
@ -171,7 +171,7 @@ public class ChongnoTaskProcessor extends TaskProcessor {
boolean enforce = vhclCpct >= capacity && isTarget(new Vhrno(), crdn); boolean enforce = vhclCpct >= capacity && isTarget(new Vhrno(), crdn);
if (enforce) // 정원초과, 승합차, 운수사업 일반 -> 단속대상: 계도(시범운영) if (enforce) // 정원초과, 승합차, 운수사업 일반 -> 단속대상: 계도(시범운영)
return null; // newLevyExcl(crdn, "2", "206"); return newLevyExcl(crdn, "2", "206");
else else
return newLevyExcl(crdn, "1", "103"); // 부과제외(일반차량) return newLevyExcl(crdn, "1", "103"); // 부과제외(일반차량)
} }

@ -611,11 +611,20 @@
} }
--%> --%>
let crdnSttsCd = pageObject["sprt02010"].ctrlMain.dataset.getDataset()[0].CRDN_STTS_CD; let crdnSttsCd = pageObject["sprt02010"].ctrlMain.dataset.getDataset()[0].CRDN_STTS_CD;
debug("crdnSttsCd", crdnSttsCd);
$P.$findn("btnCreateWrng").prop("disabled", crdnSttsCd != "21"); $P.$findn("btnCreateWrng").prop("disabled", crdnSttsCd != "21");
$P.$findn("btnCreateLevyExcl").prop("disabled", crdnSttsCd == "81"); $P.$findn("btnCreateLevyExcl").prop("disabled", crdnSttsCd == "81");
$P.$findn("btnUpdateLevyExcl").prop("disabled", crdnSttsCd != "81"); let exclWarn = "81,83".includes(crdnSttsCd), <%-- 부과제외 또는 계도 --%>
$P.$findn("btnRemoveLevyExcl").prop("disabled", crdnSttsCd != "81"); label = "83" == crdnSttsCd ? "계도" : "부과제외",
button = $P.$findn("btnUpdateLevyExcl");
button
.attr("title", label + " 수정")
.html(button.attr("title"))
.prop("disabled", !exclWarn);
button = $P.$findn("btnRemoveLevyExcl");
button
.attr("title", label + " 삭제")
.html(button.attr("title"))
.prop("disabled", !exclWarn);
} }
/************************************************************************** /**************************************************************************

Loading…
Cancel
Save