|
|
@ -409,7 +409,7 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
var $P = pageObject["${pageName}"];
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("photoMainWrapper").addClass("w-px-550 min-w-px-550");
|
|
|
|
$P.$findn("photoMainWrapper").addClass("w-px-550 min-w-px-550");
|
|
|
|
|
|
|
|
|
|
|
|
if(pageObject.parentRes.length > 0){
|
|
|
|
if(pageObject.parentRes.length > 0){
|
|
|
|
$P.provided = pageObject.parentRes.pop();
|
|
|
|
$P.provided = pageObject.parentRes.pop();
|
|
|
@ -420,7 +420,7 @@ $(document).ready(function(){
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* DatasetControl, Dataset, FormFields
|
|
|
|
* DatasetControl, Dataset, FormFields
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$P.formFields = new FimsFormFields($P.selector("frmEdit"));
|
|
|
|
$P.formFields = new FimsFormFields($P.selectorn("frmEdit"));
|
|
|
|
|
|
|
|
|
|
|
|
$P.ctrl = new DatasetControl({
|
|
|
|
$P.ctrl = new DatasetControl({
|
|
|
|
dataGetter:obj => obj.crdnInfo,
|
|
|
|
dataGetter:obj => obj.crdnInfo,
|
|
|
@ -452,7 +452,7 @@ $(document).ready(function(){
|
|
|
|
$P.openLevyExclPop = (levyExclSeCd) => {
|
|
|
|
$P.openLevyExclPop = (levyExclSeCd) => {
|
|
|
|
|
|
|
|
|
|
|
|
if(levyExclSeCd == "2"){
|
|
|
|
if(levyExclSeCd == "2"){
|
|
|
|
var rtpyrNm = $P.find("rtpyrNm");
|
|
|
|
var rtpyrNm = $P.findn("rtpyrNm");
|
|
|
|
|
|
|
|
|
|
|
|
if(rtpyrNm.value == ""){
|
|
|
|
if(rtpyrNm.value == ""){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
@ -467,9 +467,9 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var crdnId = $P.$find("crdnId").val();
|
|
|
|
var crdnId = $P.$findn("crdnId").val();
|
|
|
|
var sggCd = $P.$find("sggCd").val();
|
|
|
|
var sggCd = $P.$findn("sggCd").val();
|
|
|
|
var taskSeCd = $P.$find("taskSeCd").val();
|
|
|
|
var taskSeCd = $P.$findn("taskSeCd").val();
|
|
|
|
|
|
|
|
|
|
|
|
var params = {
|
|
|
|
var params = {
|
|
|
|
"saveCallbackFuncName" : "pageObject['${pageName}']['exclSaveCallback']",
|
|
|
|
"saveCallbackFuncName" : "pageObject['${pageName}']['exclSaveCallback']",
|
|
|
@ -551,7 +551,7 @@ $(document).ready(function(){
|
|
|
|
dialog.close($P.refDlgId("levyExclDialog"));
|
|
|
|
dialog.close($P.refDlgId("levyExclDialog"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var crdnId = $P.$find("crdnId").val();
|
|
|
|
var crdnId = $P.$findn("crdnId").val();
|
|
|
|
|
|
|
|
|
|
|
|
var cursorKey = "";
|
|
|
|
var cursorKey = "";
|
|
|
|
|
|
|
|
|
|
|
@ -565,20 +565,20 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("refreshEnd").attr("data-cursor-key", cursorKey);
|
|
|
|
$P.$findn("refreshEnd").attr("data-cursor-key", cursorKey);
|
|
|
|
$P.provided.refreshList();
|
|
|
|
$P.provided.refreshList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnPrev = () => {
|
|
|
|
$P.fnPrev = () => {
|
|
|
|
var prevKey = $P.provided.getPrevKey($P.$find("crdnId").val());
|
|
|
|
var prevKey = $P.provided.getPrevKey($P.$findn("crdnId").val());
|
|
|
|
if(prevKey != ""){
|
|
|
|
if(prevKey != ""){
|
|
|
|
$P.fnGo(prevKey);
|
|
|
|
$P.fnGo(prevKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnNext = () => {
|
|
|
|
$P.fnNext = () => {
|
|
|
|
var nextKey = $P.provided.getNextKey($P.$find("crdnId").val());
|
|
|
|
var nextKey = $P.provided.getNextKey($P.$findn("crdnId").val());
|
|
|
|
if(nextKey != ""){
|
|
|
|
if(nextKey != ""){
|
|
|
|
$P.fnGo(nextKey);
|
|
|
|
$P.fnGo(nextKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -596,14 +596,14 @@ $(document).ready(function(){
|
|
|
|
crdnInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
|
|
|
|
crdnInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
|
|
|
|
$P.ctrl.dataset.setData([crdnInfo]);
|
|
|
|
$P.ctrl.dataset.setData([crdnInfo]);
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("btnViewCrdnList").attr("hidden","hidden");
|
|
|
|
$P.$findn("btnViewCrdnList").attr("hidden","hidden");
|
|
|
|
$P.$find("btnViewCvlcptDscsnList").attr("hidden","hidden");
|
|
|
|
$P.$findn("btnViewCvlcptDscsnList").attr("hidden","hidden");
|
|
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
//보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
|
|
var cs = $P.provided.getCountStatus($P.$find("crdnId").val());
|
|
|
|
var cs = $P.provided.getCountStatus($P.$findn("crdnId").val());
|
|
|
|
$P.$find("countStauts").val(cs);
|
|
|
|
$P.$findn("countStauts").val(cs);
|
|
|
|
$P.provided.selectRow(crdnId);
|
|
|
|
$P.provided.selectRow(crdnId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -618,7 +618,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnCopy = async() => {
|
|
|
|
$P.fnCopy = async() => {
|
|
|
|
var crdnId = $P.$find("crdnId").val();
|
|
|
|
var crdnId = $P.$findn("crdnId").val();
|
|
|
|
|
|
|
|
|
|
|
|
if(await confirm2("현 자료의 복사본을 생성하시겠습니까?")){
|
|
|
|
if(await confirm2("현 자료의 복사본을 생성하시겠습니까?")){
|
|
|
|
|
|
|
|
|
|
|
@ -635,7 +635,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("refreshEnd").attr("data-cursor-key", crdnId);
|
|
|
|
$P.$findn("refreshEnd").attr("data-cursor-key", crdnId);
|
|
|
|
$P.provided.refreshList();
|
|
|
|
$P.provided.refreshList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -645,7 +645,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnOpenCvlcptOrgnl = () => {
|
|
|
|
$P.fnOpenCvlcptOrgnl = () => {
|
|
|
|
var crdnId = $P.$find("crdnId").val();
|
|
|
|
var crdnId = $P.$findn("crdnId").val();
|
|
|
|
|
|
|
|
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url : wctx.url("/${taskSeCd}/cvlc/cvlc01/050/info.do"),
|
|
|
|
url : wctx.url("/${taskSeCd}/cvlc/cvlc01/050/info.do"),
|
|
|
@ -672,7 +672,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnHold = () => {
|
|
|
|
$P.fnHold = () => {
|
|
|
|
var crdnId = $P.$find("crdnId").val();
|
|
|
|
var crdnId = $P.$findn("crdnId").val();
|
|
|
|
|
|
|
|
|
|
|
|
$P.provided.holdRow(crdnId);
|
|
|
|
$P.provided.holdRow(crdnId);
|
|
|
|
|
|
|
|
|
|
|
@ -699,7 +699,7 @@ $(document).ready(function(){
|
|
|
|
$P.fnPopPayer = () => {
|
|
|
|
$P.fnPopPayer = () => {
|
|
|
|
var callPurpose = "";
|
|
|
|
var callPurpose = "";
|
|
|
|
var dialogTitle = "";
|
|
|
|
var dialogTitle = "";
|
|
|
|
if($P.$find("rtpyrId").val() == null || $P.$find("rtpyrId").val() == ""){
|
|
|
|
if($P.$findn("rtpyrId").val() == null || $P.$findn("rtpyrId").val() == ""){
|
|
|
|
callPurpose = "create";
|
|
|
|
callPurpose = "create";
|
|
|
|
dialogTitle = "납부자 등록";
|
|
|
|
dialogTitle = "납부자 등록";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -709,12 +709,12 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
var params = {
|
|
|
|
var params = {
|
|
|
|
callPurpose : callPurpose,
|
|
|
|
callPurpose : callPurpose,
|
|
|
|
crdnId : $P.$find("crdnId").val(), // 단속 ID
|
|
|
|
crdnId : $P.$findn("crdnId").val(), // 단속 ID
|
|
|
|
sggCd : $P.$find("sggCd").val(), // 시군구 코드
|
|
|
|
sggCd : $P.$findn("sggCd").val(), // 시군구 코드
|
|
|
|
taskSeCd : $P.$find("taskSeCd").val(), // 업무 구분 코드
|
|
|
|
taskSeCd : $P.$findn("taskSeCd").val(), // 업무 구분 코드
|
|
|
|
rtpyrId : $P.$find("rtpyrId").val(), // 납부자 ID
|
|
|
|
rtpyrId : $P.$findn("rtpyrId").val(), // 납부자 ID
|
|
|
|
addrSn : $P.$find("addrSn").val(), // 주소 일련번호
|
|
|
|
addrSn : $P.$findn("addrSn").val(), // 주소 일련번호
|
|
|
|
vhrno : $P.$find("vhrno").val(), // 차량번호
|
|
|
|
vhrno : $P.$findn("vhrno").val(), // 차량번호
|
|
|
|
rtpyrInptSeCd : "01", // 납부자 입력 구분 코드
|
|
|
|
rtpyrInptSeCd : "01", // 납부자 입력 구분 코드
|
|
|
|
delYn : "N"
|
|
|
|
delYn : "N"
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -748,9 +748,9 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
var params = {
|
|
|
|
var params = {
|
|
|
|
callPurpose : "refresh",
|
|
|
|
callPurpose : "refresh",
|
|
|
|
crdnId : $P.$find("crdnId").val(),
|
|
|
|
crdnId : $P.$findn("crdnId").val(),
|
|
|
|
sggCd : $P.$find("sggCd").val(),
|
|
|
|
sggCd : $P.$findn("sggCd").val(),
|
|
|
|
taskSeCd : $P.$find("taskSeCd").val(),
|
|
|
|
taskSeCd : $P.$findn("taskSeCd").val(),
|
|
|
|
delYn : "N"
|
|
|
|
delYn : "N"
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -762,23 +762,23 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
if (resp.crdnPayer) {
|
|
|
|
if (resp.crdnPayer) {
|
|
|
|
var payer = resp.crdnPayer;
|
|
|
|
var payer = resp.crdnPayer;
|
|
|
|
$P.$find("rtpyrId").val(payer.RTPYR_ID).change();
|
|
|
|
$P.$findn("rtpyrId").val(payer.RTPYR_ID).change();
|
|
|
|
$P.$find("addrSn").val(payer.ADDR_SN).change();
|
|
|
|
$P.$findn("addrSn").val(payer.ADDR_SN).change();
|
|
|
|
$P.$find("rtpyrNm").val(payer.RTPYR_NM).change();
|
|
|
|
$P.$findn("rtpyrNm").val(payer.RTPYR_NM).change();
|
|
|
|
$P.$find("rtpyrSeCd").val(payer.RTPYR_SE_CD).change();
|
|
|
|
$P.$findn("rtpyrSeCd").val(payer.RTPYR_SE_CD).change();
|
|
|
|
$P.$find("rtpyrNo").val(payer.RTPYR_NO).change();
|
|
|
|
$P.$findn("rtpyrNo").val(payer.RTPYR_NO).change();
|
|
|
|
$P.$find("zip").val(payer.ZIP).change();
|
|
|
|
$P.$findn("zip").val(payer.ZIP).change();
|
|
|
|
$P.$find("addr").val(payer.ADDR).change();
|
|
|
|
$P.$findn("addr").val(payer.ADDR).change();
|
|
|
|
$P.$find("dtlAddr").val(payer.DTL_ADDR).change();
|
|
|
|
$P.$findn("dtlAddr").val(payer.DTL_ADDR).change();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$P.$find("rtpyrId").val("").change();
|
|
|
|
$P.$findn("rtpyrId").val("").change();
|
|
|
|
$P.$find("addrSn").val("").change();
|
|
|
|
$P.$findn("addrSn").val("").change();
|
|
|
|
$P.$find("rtpyrNm").val("").change();
|
|
|
|
$P.$findn("rtpyrNm").val("").change();
|
|
|
|
$P.$find("rtpyrSeCd").val("").change();
|
|
|
|
$P.$findn("rtpyrSeCd").val("").change();
|
|
|
|
$P.$find("rtpyrNo").val("").change();
|
|
|
|
$P.$findn("rtpyrNo").val("").change();
|
|
|
|
$P.$find("zip").val("").change();
|
|
|
|
$P.$findn("zip").val("").change();
|
|
|
|
$P.$find("addr").val("").change();
|
|
|
|
$P.$findn("addr").val("").change();
|
|
|
|
$P.$find("dtlAddr").val("").change();
|
|
|
|
$P.$findn("dtlAddr").val("").change();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -786,17 +786,17 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnReset = () => {
|
|
|
|
$P.fnReset = () => {
|
|
|
|
var crdnId = $P.$find("crdnId").val();
|
|
|
|
var crdnId = $P.$findn("crdnId").val();
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnGo(crdnId);
|
|
|
|
$P.fnGo(crdnId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.fnAccept = async() => {
|
|
|
|
$P.fnAccept = async() => {
|
|
|
|
|
|
|
|
|
|
|
|
if(!AppSupport.customValidate($P.$find("frmEdit").find("input"))) return;
|
|
|
|
if(!AppSupport.customValidate($P.$findn("frmEdit").find("input"))) return;
|
|
|
|
|
|
|
|
|
|
|
|
var vhrno = $P.find("vhrno");
|
|
|
|
var vhrno = $P.findn("vhrno");
|
|
|
|
var rtpyrNm = $P.find("rtpyrNm");
|
|
|
|
var rtpyrNm = $P.findn("rtpyrNm");
|
|
|
|
|
|
|
|
|
|
|
|
if(vhrno.value == ""){
|
|
|
|
if(vhrno.value == ""){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
@ -834,7 +834,7 @@ $(document).ready(function(){
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var crdnId = $P.$find("crdnId").val();
|
|
|
|
var crdnId = $P.$findn("crdnId").val();
|
|
|
|
|
|
|
|
|
|
|
|
ajax.post({
|
|
|
|
ajax.post({
|
|
|
|
url : $P.ctrl.urls.remove,
|
|
|
|
url : $P.ctrl.urls.remove,
|
|
|
@ -853,7 +853,7 @@ $(document).ready(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var crdnId = $P.$find("crdnId").val();
|
|
|
|
var crdnId = $P.$findn("crdnId").val();
|
|
|
|
|
|
|
|
|
|
|
|
var cursorKey = "";
|
|
|
|
var cursorKey = "";
|
|
|
|
|
|
|
|
|
|
|
@ -867,7 +867,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("refreshEnd").attr("data-cursor-key", cursorKey);
|
|
|
|
$P.$findn("refreshEnd").attr("data-cursor-key", cursorKey);
|
|
|
|
$P.provided.refreshList();
|
|
|
|
$P.provided.refreshList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -881,30 +881,30 @@ $(document).ready(function(){
|
|
|
|
var clsForTask = "${taskSeCd}".toLowerCase();
|
|
|
|
var clsForTask = "${taskSeCd}".toLowerCase();
|
|
|
|
|
|
|
|
|
|
|
|
//업무별 입력 항목
|
|
|
|
//업무별 입력 항목
|
|
|
|
FimsSupport.renderForTask($P.find("frmEdit"), clsForTask);
|
|
|
|
FimsSupport.renderForTask($P.findn("frmEdit"), clsForTask);
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* element.on
|
|
|
|
* element.on
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
$P.$find("btnReset").on("click", () => $P.fnReset() );
|
|
|
|
$P.$findn("btnReset").on("click", () => $P.fnReset() );
|
|
|
|
$P.$find("btnPrev").on("click", () => $P.fnPrev() );
|
|
|
|
$P.$findn("btnPrev").on("click", () => $P.fnPrev() );
|
|
|
|
$P.$find("btnNext").on("click", () => $P.fnNext() );
|
|
|
|
$P.$findn("btnNext").on("click", () => $P.fnNext() );
|
|
|
|
|
|
|
|
|
|
|
|
//업무처리 버튼
|
|
|
|
//업무처리 버튼
|
|
|
|
$P.$find("btnSendBack").on('click', () => { $P.fnSendBack(); });
|
|
|
|
$P.$findn("btnSendBack").on('click', () => { $P.fnSendBack(); });
|
|
|
|
$P.$find("btnInstLevyExcl1").on("click", () => $P.openLevyExclPop("1"));
|
|
|
|
$P.$findn("btnInstLevyExcl1").on("click", () => $P.openLevyExclPop("1"));
|
|
|
|
$P.$find("btnInstLevyExcl2").on("click", () => $P.openLevyExclPop("2"));
|
|
|
|
$P.$findn("btnInstLevyExcl2").on("click", () => $P.openLevyExclPop("2"));
|
|
|
|
$P.$find("btnDataCopy").on("click", () => $P.fnCopy());
|
|
|
|
$P.$findn("btnDataCopy").on("click", () => $P.fnCopy());
|
|
|
|
$P.$find("btnAccept").on('click', () => $P.fnAccept());
|
|
|
|
$P.$findn("btnAccept").on('click', () => $P.fnAccept());
|
|
|
|
$P.$find("btnHold").on("click", () => $P.fnHold());
|
|
|
|
$P.$findn("btnHold").on("click", () => $P.fnHold());
|
|
|
|
$P.$find("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl());
|
|
|
|
$P.$findn("btnOpenCvlcptOrgnl").on("click", () => $P.fnOpenCvlcptOrgnl());
|
|
|
|
|
|
|
|
|
|
|
|
//납부자 삭제
|
|
|
|
//납부자 삭제
|
|
|
|
$P.$find("btnDeletePayer").on("click", () => $P.fnDeletePayer());
|
|
|
|
$P.$findn("btnDeletePayer").on("click", () => $P.fnDeletePayer());
|
|
|
|
//납부자 등록, 수정
|
|
|
|
//납부자 등록, 수정
|
|
|
|
$P.$find("btnPopPayer").on("click", () => $P.fnPopPayer());
|
|
|
|
$P.$findn("btnPopPayer").on("click", () => $P.fnPopPayer());
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("vhrno").onEnterPress(function(){
|
|
|
|
$P.$findn("vhrno").onEnterPress(function(){
|
|
|
|
$P.getVehicleTotalInfo(event.target);
|
|
|
|
$P.getVehicleTotalInfo(event.target);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -916,7 +916,7 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var taskSeCd = "${taskSeCd}";
|
|
|
|
var taskSeCd = "${taskSeCd}";
|
|
|
|
var crdnYmd = $P.$find("crdnYmd").val().replaceAll("-", "");
|
|
|
|
var crdnYmd = $P.$findn("crdnYmd").val().replaceAll("-", "");
|
|
|
|
var vhrno = vhrnoEl.value;
|
|
|
|
var vhrno = vhrnoEl.value;
|
|
|
|
|
|
|
|
|
|
|
|
if(crdnYmd == ""){
|
|
|
|
if(crdnYmd == ""){
|
|
|
@ -927,7 +927,7 @@ $(document).ready(function(){
|
|
|
|
AppSupport.setDialogZindex();
|
|
|
|
AppSupport.setDialogZindex();
|
|
|
|
AppSupport.focusClose();
|
|
|
|
AppSupport.focusClose();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onClose:function(){ $P.$find("crdnYmd").focus(); }
|
|
|
|
onClose:function(){ $P.$findn("crdnYmd").focus(); }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -955,49 +955,49 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var sggCd = $P.$find("sggCd").val();
|
|
|
|
var sggCd = $P.$findn("sggCd").val();
|
|
|
|
var resp = null;
|
|
|
|
var resp = null;
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
resp = await FimsSupport.countCrdnByVhrno(vhrno, taskSeCd, sggCd);
|
|
|
|
resp = await FimsSupport.countCrdnByVhrno(vhrno, taskSeCd, sggCd);
|
|
|
|
if(resp.crdnCount > 0){
|
|
|
|
if(resp.crdnCount > 0){
|
|
|
|
$P.$find("outputCrdnCount").html(resp.crdnCount);
|
|
|
|
$P.$findn("outputCrdnCount").html(resp.crdnCount);
|
|
|
|
$P.$find("btnViewCrdnList").removeAttr("hidden");
|
|
|
|
$P.$findn("btnViewCrdnList").removeAttr("hidden");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$P.$find("btnViewCrdnList").attr("hidden","hidden");
|
|
|
|
$P.$findn("btnViewCrdnList").attr("hidden","hidden");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
resp = await FimsSupport.countCvlcptDscsnByVhrno(vhrno, taskSeCd, sggCd);
|
|
|
|
resp = await FimsSupport.countCvlcptDscsnByVhrno(vhrno, taskSeCd, sggCd);
|
|
|
|
if(resp.cvlcptDscsnNocs.NOCS > 0){
|
|
|
|
if(resp.cvlcptDscsnNocs.NOCS > 0){
|
|
|
|
$P.$find("outputCvlcptDscsnCount").html(resp.cvlcptDscsnNocs.NOCS);
|
|
|
|
$P.$findn("outputCvlcptDscsnCount").html(resp.cvlcptDscsnNocs.NOCS);
|
|
|
|
$P.$find("btnViewCvlcptDscsnList").removeAttr("hidden");
|
|
|
|
$P.$findn("btnViewCvlcptDscsnList").removeAttr("hidden");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$P.$find("btnViewCvlcptDscsnList").attr("hidden","hidden");
|
|
|
|
$P.$findn("btnViewCvlcptDscsnList").attr("hidden","hidden");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
resp = await FimsSupport.getVhclInfo(sggCd, vhrno, crdnYmd);
|
|
|
|
resp = await FimsSupport.getVhclInfo(sggCd, vhrno, crdnYmd);
|
|
|
|
|
|
|
|
|
|
|
|
if(otherWindow){
|
|
|
|
if(otherWindow){
|
|
|
|
$P.$find("vhrno").val(vhrno);
|
|
|
|
$P.$findn("vhrno").val(vhrno);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(!resp.found){
|
|
|
|
if(!resp.found){
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("rtpyrId").val("");
|
|
|
|
$P.$findn("rtpyrId").val("");
|
|
|
|
$P.$find("addrSn").val("");
|
|
|
|
$P.$findn("addrSn").val("");
|
|
|
|
$P.$find("rtpyrNm").val("");
|
|
|
|
$P.$findn("rtpyrNm").val("");
|
|
|
|
$P.$find("rtpyrSeCd").val("");
|
|
|
|
$P.$findn("rtpyrSeCd").val("");
|
|
|
|
$P.$find("rtpyrNo").val("");
|
|
|
|
$P.$findn("rtpyrNo").val("");
|
|
|
|
$P.$find("vin").val("");
|
|
|
|
$P.$findn("vin").val("");
|
|
|
|
$P.$find("vhclNm").val("");
|
|
|
|
$P.$findn("vhclNm").val("");
|
|
|
|
$P.$find("vhclColr").val("");
|
|
|
|
$P.$findn("vhclColr").val("");
|
|
|
|
$P.$find("useFuelCd").val("");
|
|
|
|
$P.$findn("useFuelCd").val("");
|
|
|
|
$P.$find("ffnlgCarmdlCd").val("");
|
|
|
|
$P.$findn("ffnlgCarmdlCd").val("");
|
|
|
|
$P.$find("zip").val("");
|
|
|
|
$P.$findn("zip").val("");
|
|
|
|
$P.$find("addr").val("");
|
|
|
|
$P.$findn("addr").val("");
|
|
|
|
$P.$find("dtlAddr").val("");
|
|
|
|
$P.$findn("dtlAddr").val("");
|
|
|
|
|
|
|
|
|
|
|
|
if(!otherWindow){
|
|
|
|
if(!otherWindow){
|
|
|
|
dialog.alert({
|
|
|
|
dialog.alert({
|
|
|
@ -1017,12 +1017,12 @@ $(document).ready(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("rtpyrId").val(resp.rtpyrId);
|
|
|
|
$P.$findn("rtpyrId").val(resp.rtpyrId);
|
|
|
|
$P.$find("addrSn").val(resp.addrSn);
|
|
|
|
$P.$findn("addrSn").val(resp.addrSn);
|
|
|
|
|
|
|
|
|
|
|
|
var vehicle = resp.vehicle;
|
|
|
|
var vehicle = resp.vehicle;
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("rtpyrNm").val(vehicle.mber_nm);
|
|
|
|
$P.$findn("rtpyrNm").val(vehicle.mber_nm);
|
|
|
|
|
|
|
|
|
|
|
|
var pyrSeCd = "";
|
|
|
|
var pyrSeCd = "";
|
|
|
|
switch(vehicle.mber_se_code){
|
|
|
|
switch(vehicle.mber_se_code){
|
|
|
@ -1032,51 +1032,51 @@ $(document).ready(function(){
|
|
|
|
case "14" : pyrSeCd = "04"; break;
|
|
|
|
case "14" : pyrSeCd = "04"; break;
|
|
|
|
case "15" : pyrSeCd = "05"; break;
|
|
|
|
case "15" : pyrSeCd = "05"; break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$P.$find("rtpyrSeCd").val(pyrSeCd);
|
|
|
|
$P.$findn("rtpyrSeCd").val(pyrSeCd);
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("rtpyrNo").val(vehicle.mber_se_no);
|
|
|
|
$P.$findn("rtpyrNo").val(vehicle.mber_se_no);
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("vin").val(vehicle.vin);
|
|
|
|
$P.$findn("vin").val(vehicle.vin);
|
|
|
|
$P.$find("vhclNm").val(vehicle.cnm);
|
|
|
|
$P.$findn("vhclNm").val(vehicle.cnm);
|
|
|
|
$P.$find("vhclColr").val(vehicle.color_nm);
|
|
|
|
$P.$findn("vhclColr").val(vehicle.color_nm);
|
|
|
|
$P.$find("useFuelCd").val(vehicle.use_fuel_code);
|
|
|
|
$P.$findn("useFuelCd").val(vehicle.use_fuel_code);
|
|
|
|
|
|
|
|
|
|
|
|
if(vehicle.vhcty_asort_code == "1"){ //승용
|
|
|
|
if(vehicle.vhcty_asort_code == "1"){ //승용
|
|
|
|
$P.$find("ffnlgCarmdlCd").val("11");
|
|
|
|
$P.$findn("ffnlgCarmdlCd").val("11");
|
|
|
|
} else if(vehicle.vhcty_asort_code == "2"){ //승합
|
|
|
|
} else if(vehicle.vhcty_asort_code == "2"){ //승합
|
|
|
|
$P.$find("ffnlgCarmdlCd").val("12");
|
|
|
|
$P.$findn("ffnlgCarmdlCd").val("12");
|
|
|
|
} else if(vehicle.vhcty_asort_code == "3"){ //화물
|
|
|
|
} else if(vehicle.vhcty_asort_code == "3"){ //화물
|
|
|
|
if(vehicle.mxmm_ldg <= 4000){
|
|
|
|
if(vehicle.mxmm_ldg <= 4000){
|
|
|
|
$P.$find("ffnlgCarmdlCd").val("13");
|
|
|
|
$P.$findn("ffnlgCarmdlCd").val("13");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$P.$find("ffnlgCarmdlCd").val("14");
|
|
|
|
$P.$findn("ffnlgCarmdlCd").val("14");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if(vehicle.vhcty_asort_code == "4"){ //특수
|
|
|
|
} else if(vehicle.vhcty_asort_code == "4"){ //특수
|
|
|
|
$P.$find("ffnlgCarmdlCd").val("15");
|
|
|
|
$P.$findn("ffnlgCarmdlCd").val("15");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$P.$find("ffnlgCarmdlCd").val("");
|
|
|
|
$P.$findn("ffnlgCarmdlCd").val("");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("zip").val(vehicle.zip_code); //우편번호
|
|
|
|
$P.$findn("zip").val(vehicle.zip_code); //우편번호
|
|
|
|
$P.$find("addr").val(vehicle.road_nm_adres); //주소
|
|
|
|
$P.$findn("addr").val(vehicle.road_nm_adres); //주소
|
|
|
|
$P.$find("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소
|
|
|
|
$P.$findn("dtlAddr").val(vehicle.use_strnghld_adres_nm); //상세주소
|
|
|
|
|
|
|
|
|
|
|
|
if(taskSeCd == "DPV"){
|
|
|
|
if(taskSeCd == "DPV"){
|
|
|
|
resp = await FimsSupport.getVhclDisabledParkingInfo(vhrno);
|
|
|
|
resp = await FimsSupport.getVhclDisabledParkingInfo(vhrno);
|
|
|
|
|
|
|
|
|
|
|
|
if(resp.parkingInfo.BOHUN_PARKING_PSBL_YN == "Y" || resp.parkingInfo.PARKING_PSBL_YN == "Y") {
|
|
|
|
if(resp.parkingInfo.BOHUN_PARKING_PSBL_YN == "Y" || resp.parkingInfo.PARKING_PSBL_YN == "Y") {
|
|
|
|
$P.$find("prkPsbltyRsltCd").val("2");
|
|
|
|
$P.$findn("prkPsbltyRsltCd").val("2");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$P.$find("prkPsbltyRsltCd").val("1");
|
|
|
|
$P.$findn("prkPsbltyRsltCd").val("1");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(otherWindow){
|
|
|
|
if(otherWindow){
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
vhrno : $P.$find("vhrno").val(),
|
|
|
|
vhrno : $P.$findn("vhrno").val(),
|
|
|
|
vhclNm : $P.$find("vhclNm").val(),
|
|
|
|
vhclNm : $P.$findn("vhclNm").val(),
|
|
|
|
vhclColr : $P.$find("vhclColr").val()
|
|
|
|
vhclColr : $P.$findn("vhclColr").val()
|
|
|
|
};
|
|
|
|
};
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -1084,13 +1084,13 @@ $(document).ready(function(){
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
//단속내역 보기
|
|
|
|
//단속내역 보기
|
|
|
|
$P.$find("btnViewCrdnList").on("click", function(){
|
|
|
|
$P.$findn("btnViewCrdnList").on("click", function(){
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url: wctx.url("/crdn/crdn06/010/main.do"),
|
|
|
|
url: wctx.url("/crdn/crdn06/010/main.do"),
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
openType : "D",
|
|
|
|
openType : "D",
|
|
|
|
taskSeCd : "${taskSeCd}",
|
|
|
|
taskSeCd : "${taskSeCd}",
|
|
|
|
vhrno : $P.$find("vhrno").val()
|
|
|
|
vhrno : $P.$findn("vhrno").val()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
success: function(resp) {
|
|
|
|
success: function(resp) {
|
|
|
|
|
|
|
|
|
|
|
@ -1112,7 +1112,7 @@ $(document).ready(function(){
|
|
|
|
let refDlgId = $P.refDlgId("crdnListDialog");
|
|
|
|
let refDlgId = $P.refDlgId("crdnListDialog");
|
|
|
|
$("#"+refDlgId).find("[name='schCrdnYmdFrom']").set("");
|
|
|
|
$("#"+refDlgId).find("[name='schCrdnYmdFrom']").set("");
|
|
|
|
$("#"+refDlgId).find("[name='schCrdnYmdTo']").set("");
|
|
|
|
$("#"+refDlgId).find("[name='schCrdnYmdTo']").set("");
|
|
|
|
$("#"+refDlgId).find("[name='vhrno']").set($P.$find("vhrno").val());
|
|
|
|
$("#"+refDlgId).find("[name='vhrno']").set($P.$findn("vhrno").val());
|
|
|
|
$("#"+refDlgId).find(".btn-search").eq(0).click();
|
|
|
|
$("#"+refDlgId).find(".btn-search").eq(0).click();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1123,13 +1123,13 @@ $(document).ready(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//민원내역 보기
|
|
|
|
//민원내역 보기
|
|
|
|
$P.$find("btnViewCvlcptDscsnList").on("click", function(){
|
|
|
|
$P.$findn("btnViewCvlcptDscsnList").on("click", function(){
|
|
|
|
ajax.get({
|
|
|
|
ajax.get({
|
|
|
|
url: wctx.url("/sprt/sprt04/010/main.do"),
|
|
|
|
url: wctx.url("/sprt/sprt04/010/main.do"),
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
openType : "D",
|
|
|
|
openType : "D",
|
|
|
|
taskSeCd : "${taskSeCd}",
|
|
|
|
taskSeCd : "${taskSeCd}",
|
|
|
|
vhrno : $P.$find("vhrno").val()
|
|
|
|
vhrno : $P.$findn("vhrno").val()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
success: function(resp) {
|
|
|
|
success: function(resp) {
|
|
|
|
|
|
|
|
|
|
|
@ -1151,7 +1151,7 @@ $(document).ready(function(){
|
|
|
|
let refDlgId = $P.refDlgId("crdnListDialog");
|
|
|
|
let refDlgId = $P.refDlgId("crdnListDialog");
|
|
|
|
$("#"+refDlgId).find("[name='schDscsnYmdFrom']").set("");
|
|
|
|
$("#"+refDlgId).find("[name='schDscsnYmdFrom']").set("");
|
|
|
|
$("#"+refDlgId).find("[name='schDscsnYmdTo']").set("");
|
|
|
|
$("#"+refDlgId).find("[name='schDscsnYmdTo']").set("");
|
|
|
|
$("#"+refDlgId).find("[name='schVhrno']").set($P.$find("vhrno").val());
|
|
|
|
$("#"+refDlgId).find("[name='schVhrno']").set($P.$findn("vhrno").val());
|
|
|
|
$("#"+refDlgId).find(".btn-search").eq(0).click();
|
|
|
|
$("#"+refDlgId).find(".btn-search").eq(0).click();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1163,17 +1163,17 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if("${taskSeCd}" == "DPV"){
|
|
|
|
if("${taskSeCd}" == "DPV"){
|
|
|
|
$P.$find("vltnCd").on("change", function(){
|
|
|
|
$P.$findn("vltnCd").on("change", function(){
|
|
|
|
if(this.value == "01"){
|
|
|
|
if(this.value == "01"){
|
|
|
|
$P.$find("dstrbncYn").show();
|
|
|
|
$P.$findn("dstrbncYn").show();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$P.$find("dstrbncYn").hide();
|
|
|
|
$P.$findn("dstrbncYn").hide();
|
|
|
|
$P.$find("dstrbncYn").prop("checked", false);
|
|
|
|
$P.$findn("dstrbncYn").prop("checked", false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("refreshEnd").on("refreshEnd", function(){
|
|
|
|
$P.$findn("refreshEnd").on("refreshEnd", function(){
|
|
|
|
|
|
|
|
|
|
|
|
if(this.dataset.cursorKey == null || this.dataset.cursorKey == ""){
|
|
|
|
if(this.dataset.cursorKey == null || this.dataset.cursorKey == ""){
|
|
|
|
dialog.close($P.selfDlgId());
|
|
|
|
dialog.close($P.selfDlgId());
|
|
|
@ -1191,9 +1191,9 @@ $(document).ready(function(){
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 초기화
|
|
|
|
* 초기화
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
AppSupport.initDatepicker($P.find("frmEdit")); //달력 초기화
|
|
|
|
AppSupport.initDatepicker($P.findn("frmEdit")); //달력 초기화
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("frmEdit").find(".form-time").each(function(){
|
|
|
|
$P.$findn("frmEdit").find(".form-time").each(function(){
|
|
|
|
$(this).on("input",function(){
|
|
|
|
$(this).on("input",function(){
|
|
|
|
var value = this.value.replaceAll(":","");
|
|
|
|
var value = this.value.replaceAll(":","");
|
|
|
|
|
|
|
|
|
|
|
@ -1206,33 +1206,33 @@ $(document).ready(function(){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$P.$find("btnViewCrdnList").attr("hidden","hidden");
|
|
|
|
$P.$findn("btnViewCrdnList").attr("hidden","hidden");
|
|
|
|
$P.$find("btnViewCvlcptDscsnList").attr("hidden","hidden");
|
|
|
|
$P.$findn("btnViewCvlcptDscsnList").attr("hidden","hidden");
|
|
|
|
|
|
|
|
|
|
|
|
var crdnInfo = ${crdnInfo};
|
|
|
|
var crdnInfo = ${crdnInfo};
|
|
|
|
crdnInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
|
|
|
|
crdnInfo.CVLCPT_APLY_CN = StringSupport.escapeHTMLEntity(crdnInfo.CVLCPT_APLY_CN);
|
|
|
|
$P.ctrl.dataset.setData([crdnInfo]);
|
|
|
|
$P.ctrl.dataset.setData([crdnInfo]);
|
|
|
|
|
|
|
|
|
|
|
|
if($P.$find("taskSeCd").val() == "DPV" && $P.$find("vltnCd").val() == "01"){
|
|
|
|
if($P.$findn("taskSeCd").val() == "DPV" && $P.$findn("vltnCd").val() == "01"){
|
|
|
|
$P.$find("dstrbncYn").show();
|
|
|
|
$P.$findn("dstrbncYn").show();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$P.$find("dstrbncYn").hide();
|
|
|
|
$P.$findn("dstrbncYn").hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//보안모드
|
|
|
|
//보안모드
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
fn_securityModeToggle($("#securityMode--top").is(":checked"));
|
|
|
|
|
|
|
|
|
|
|
|
var cs = $P.provided.getCountStatus($P.$find("crdnId").val());
|
|
|
|
var cs = $P.provided.getCountStatus($P.$findn("crdnId").val());
|
|
|
|
$P.$find("countStauts").val(cs);
|
|
|
|
$P.$findn("countStauts").val(cs);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//사진영역 설정
|
|
|
|
//사진영역 설정
|
|
|
|
settingPhotoMain("${pageName}", $P.find("crdnId"),
|
|
|
|
settingPhotoMain("${pageName}", $P.findn("crdnId"),
|
|
|
|
function(){
|
|
|
|
function(){
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
vhrno : $P.$find("vhrno").val(),
|
|
|
|
vhrno : $P.$findn("vhrno").val(),
|
|
|
|
vhclNm : $P.$find("vhclNm").val(),
|
|
|
|
vhclNm : $P.$findn("vhclNm").val(),
|
|
|
|
vhclColr : $P.$find("vhclColr").val()
|
|
|
|
vhclColr : $P.$findn("vhclColr").val()
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async function(vhrnoEl){
|
|
|
|
async function(vhrnoEl){
|
|
|
|