From 2ce26843e5aa02344c0c1e81552ebd68b390d056 Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 24 Nov 2025 09:34:54 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=B8=EB=82=A9=EC=B0=A8=EB=9F=89=ED=8C=90?= =?UTF-8?q?=EB=8F=85=EC=97=85=EB=AC=B4=ED=99=94=EB=A9=B4=20=EC=86=8C?= =?UTF-8?q?=EC=8A=A4=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/ui/cfs/fine/FN002M01.xml | 421 +++++++++++++--------------- 1 file changed, 200 insertions(+), 221 deletions(-) diff --git a/WebContent/ui/cfs/fine/FN002M01.xml b/WebContent/ui/cfs/fine/FN002M01.xml index 22060df..fbd08f8 100644 --- a/WebContent/ui/cfs/fine/FN002M01.xml +++ b/WebContent/ui/cfs/fine/FN002M01.xml @@ -321,8 +321,8 @@ ref='data:json,{"id":"searchResultParam","key":"param"}' target="data:json,searchSameCarCount" action="/cfs/fine/countSameCar.do" - processMsg="조회중입니다" - ev:submitdone="" + processMsg="동일차량 건수 조회중입니다" + ev:submitdone="scwin.sbm_countSameCar_submitdone" mode="asynchronous" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace="" abortTrigger="" errorHandler="" customHandler="" ev:submit="" ev:submiterror=""> @@ -331,8 +331,8 @@ ref='data:json,{"id":"searchResultParam","key":"param"}' target="data:json,searchWrongCount" action="/cfs/fine/countWrongCar.do" - processMsg="조회중입니다." - ev:submitdone="" + processMsg="동일차량 고지면제 건수 조회중입니다." + ev:submitdone="scwin.sbm_countWrong_submitdone" mode="asynchronous" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace="" abortTrigger="" errorHandler="" customHandler="" ev:submit="" ev:submiterror=""> @@ -341,8 +341,8 @@ ref='data:json,{"id":"searchResultParam","key":"param"}' target="data:json,searchExemptCount" action="/cfs/fine/countExemptCar.do" - processMsg="조회중입니다." - ev:submitdone="" + processMsg="면제,감면 건수 조회중입니다." + ev:submitdone="scwin.sbm_countExempt_submitdone" mode="asynchronous" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace="" abortTrigger="" errorHandler="" customHandler="" ev:submit="" ev:submiterror=""> @@ -351,7 +351,7 @@ ref='data:json,{"id":"searchResultParam","key":"param"}' target="data:json,searchResultMap" action="/cfs/fine/findFareReadInfo.do" - processMsg="조회중입니다" + processMsg="상세정보 조회 중입니다" ev:submitdone="scwin.sbm_searchMap_submitdone" mode="asynchronous" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace="" abortTrigger="" errorHandler="" customHandler="" ev:submit="" ev:submiterror=""> @@ -361,7 +361,7 @@ ref='data:json,{"id":"reqImage","key":"param"}' target='data:json,{"id":"resImage","key":"result"}' action="/cfs/common/viewStopPicture.do" - processMsg="" + processMsg="이미지 조회 중입니다." ev:submitdone="scwin.sub_image_submitdone" mode="asynchronous" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace="" abortTrigger="" errorHandler="" customHandler="" ev:submit="" ev:submiterror=""> @@ -371,7 +371,7 @@ ref='data:json,{"id":"reqImage","key":"param"}' target='data:json,{"id":"resCode","key":"result"}' action="/cfs/common/viewMovePicture.do" - processMsg="" + processMsg="동영상 조회 중입니다." ev:submitdone="scwin.sub_moveFile_submitdone" mode="asynchronous" method="post" mediatype="application/json" encoding="UTF-8" instance="" replace="" abortTrigger="" errorHandler="" customHandler="" ev:submit="" ev:submiterror=""> @@ -468,7 +468,35 @@ scwin.sbm_exemptReason_submitdone = function(e) { scwin.onpageunload = function() { }; + +scwin.checkSavable = function(){ + + var ok1 = false; + if(ibx_date.getValue() != ""){ + ok1 = true; + } + var ok2 = false; + if(sbx_readResultId.getValue() != ""){ + ok2 = true; + } + var ok3 = false; + if(sbx_readResultId.getValue() != "01" && sbx_readResultId.getValue() != "05"){ + ok3 = true; + } else if(sbx_exemptReasonId.getValue() != ""){ + ok3 = true; + } + + if(ok1 && ok2 && ok3){ + btn_save_remarks.setDisabled(false); + btn_save.setDisabled(false); + }else{ + btn_save_remarks.setDisabled(true); + btn_save.setDisabled(true); + } + +} + //조회조건의 요금소 변경시 scwin.cond_fareOfficeId_onchange = function() { var vFareOfficeId = cond_fareOfficeId.getValue(); @@ -518,9 +546,18 @@ scwin.sbm_searchList_submitdone = function(e) { btn_save.setDisabled(true); grp_image.init(); + img_image.setSrc(""); grp_video.init(); grd_rfid.initGrid(); grp_readInfo.init(); + + searchSameCarCount.set("carNo",""); + searchSameCarCount.set("sameCarCnt",""); + searchWrongCount.set("carNo",""); + searchWrongCount.set("sameCarCnt",""); + searchExemptCount.set("carNo",""); + searchExemptCount.set("sameCarCnt",""); + if(searchParam.get( "readDiv" ) != "0"){ for(var i = 0; i 0 ) { - var data = { data : searchResultParam.getJSON() }; - var opt = { id : "F2P02", - popupName : "동일차량 판독현황", - width : 1052, height : 300}; - var popupUrl = "/ui/cfs/fine/FN002P02.xml"; - - com.openPopup(popupUrl, opt, data); - } else { - com.alert("조회 대상이 없습니다."); - } - } } + + var carNo = searchResultList.getCellData(row, "carNo"); + if(carNo == null && carNo == '') { + com.alert("해당 차량번호가 없으므로 조회할 수 없습니다."); + return false; + } + + searchResultParam.setJSON(searchResultList.getRowJSON(row)); + if(searchSameCarCount.get("sameCarCnt") <= 0 ) { + com.alert("조회 대상이 없습니다."); + return; + } + + var data = { data : searchResultParam.getJSON() }; + var opt = { id : "F2P02", + popupName : "동일차량 판독현황", + width : 1052, height : 300}; + var popupUrl = "/ui/cfs/fine/FN002P02.xml"; + + com.openPopup(popupUrl, opt, data); }; //동일차량 고지면제 현황 버튼 클릭 scwin.btn_wrongCar_onclick = function(e) { - if(searchWrongCount.get("sameCarCnt") > 0) { - var data = { data : searchResultParam.getJSON() }; - var opt = { - id : "F2P02", - popupName : "동일차량 고지면제현황", - width : 1052, height : 300 - }; - var popupUrl = "/ui/cfs/fine/FN002P06.xml"; - - com.openPopup(popupUrl, opt, data); - } else { + if(searchWrongCount.get("sameCarCnt") <= 0) { com.alert("조회 대상이 없습니다."); + return; } + + var data = { data : searchResultParam.getJSON() }; + var opt = { + id : "F2P02", + popupName : "동일차량 고지면제현황", + width : 1052, height : 300 + }; + var popupUrl = "/ui/cfs/fine/FN002P06.xml"; + + com.openPopup(popupUrl, opt, data); }; // 면제/감면 이력현황 버튼 클릭 scwin.btn_Exemp_onclick = function(e) { - if(searchExemptCount.get("sameCarCnt") > 0) { - var data = { data : searchResultParam.getJSON() }; - var opt = { - id : "F2P02", - popupName : "면제/감면 이력현황", - width : 1052, height : 300 - }; - var popupUrl = "/ui/cfs/fine/FN002P05.xml"; - - com.openPopup(popupUrl, opt, data); - } else { + if(searchExemptCount.get("sameCarCnt") <= 0) { com.alert("조회 대상이 없습니다."); + return; } + + var data = { data : searchResultParam.getJSON() }; + var opt = { + id : "F2P02", + popupName : "면제/감면 이력현황", + width : 1052, height : 300 + }; + var popupUrl = "/ui/cfs/fine/FN002P05.xml"; + + com.openPopup(popupUrl, opt, data); }; //정지영상 및 동영상 등록 버튼 클릭 @@ -996,6 +998,7 @@ scwin.btn_imageUp_onclick = function(e) { com.alert("조회할 대상을 선택해 주세요"); return false; } + var fareOfficeId = searchResultList.getCellData( row, "fareOfficeId" ); var boothId = searchResultList.getCellData( row, "boothId" ); var passDate = searchResultList.getCellData( row, "passDate" ); @@ -1010,37 +1013,32 @@ scwin.btn_imageUp_onclick = function(e) { //좌표변경 버튼 클릭 scwin.btn_xyUp_onclick = function(e) { - if(searchResultMap.get("carsStopPictureFile") != null && searchResultMap.get("carsStopPictureFile") != '') { - var rsltJSON = searchResultMap.getJSON(); - - rsltJSON.grpCanvasId = grp_canvas.getID(); - var data = { - data : rsltJSON, callbackFn : null - }; - var opt = { - id : "F2P07", - popupName : "정지영상 좌표수정", - width : 675, height : 605 - }; - var popupUrl = "/ui/cfs/fine/FN002P07.xml"; - - com.openPopup(popupUrl, opt, data); - } else { + if(searchResultMap.get("carsStopPictureFile") == null || searchResultMap.get("carsStopPictureFile") == ''){ com.alert("정지영상이 없습니다."); + return; } + + var rsltJSON = searchResultMap.getJSON(); + + rsltJSON.grpCanvasId = grp_canvas.getID(); + var data = { + data : rsltJSON, callbackFn : null + }; + var opt = { + id : "F2P07", + popupName : "정지영상 좌표수정", + width : 675, height : 605 + }; + var popupUrl = "/ui/cfs/fine/FN002P07.xml"; + + com.openPopup(popupUrl, opt, data); }; //우측 통행일자 입력칸 뷰 변경시 scwin.ibx_date_onviewchange = function(info) { - var exmptId = sbx_exemptReasonId.getValue(); - var readResult = sbx_readResultId.getValue(); - var date = ibx_date.getValue(); - if( date != "" && readResult != "" && exmptId != ""){ - btn_save.setDisabled( false ); - }else{ - btn_save.setDisabled( true ); - } - + + scwin.checkSavable(); + }; //우측 판독결과 셀렉트박스 뷰 변경시 @@ -1066,21 +1064,6 @@ scwin.sbx_readResultId_onviewchange = function(info) { sbx_exemptReasonId.setDisabled( true ); } - - var readResult = sbx_readResultId.getValue(); - var exmptId ; - if(readResult == "01" || readResult == "05"){ - exmptId = sbx_exemptReasonId.getValue(); - }else{ - exmptId = 1; - } - - var date = ibx_date.getValue(); - if( date != "" && readResult != "" && exmptId != ""){ - btn_save.setDisabled( false ); - }else{ - btn_save.setDisabled( true ); - } if(['06','07','08','09','10','11','12'].contains(selBox)){ tb_receiptD.setStyle( "display" , "" ); td_receiptM.setStyle( "display" , "" ); @@ -1089,28 +1072,24 @@ scwin.sbx_readResultId_onviewchange = function(info) { tb_receiptD.setStyle( "display" , "none" ); td_receiptM.setStyle( "display" , "none" ); } + + scwin.checkSavable(); }; //우측 사유 셀렉트박스 뷰 변경시 scwin.sbx_exemptReasonId_onviewchange = function(info) { + var readResult = sbx_readResultId.getValue(); - var date = ibx_date.getValue(); - var exmptId ; if(readResult == "01" || readResult == "05"){ - exmptId = sbx_exemptReasonId.getValue(); + var sayuId = sbx_exemptReasonId.getValue(); if(readResult == "01"){ - searchResultMap.set( "exemptReasonId" , exmptId ); + searchResultMap.set( "exemptReasonId" , sayuId ); }else{ - searchResultMap.set( "notconfirmId" , exmptId ); + searchResultMap.set( "notconfirmId" , sayuId ); } - }else{ - exmptId = 1; } - if( date != "" && readResult != "" && exmptId != ""){ - btn_save.setDisabled( false ); - }else{ - btn_save.setDisabled( true ); - } + + scwin.checkSavable(); }; //우측 금액 라디오버튼 뷰 변경시