From 268faeda498e9668c8dd3abf094a11991abd2370 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 20 Jul 2023 11:21:06 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=84=EB=8F=84=20=EC=B2=98=EB=A6=AC?= =?UTF-8?q?=EC=8B=9C=20=EC=86=8C=EC=9C=A0=EC=A3=BC=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=ED=95=84=EC=88=98=20=EC=9E=85=EB=A0=A5=20=EC=B2=B4=ED=81=AC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/crdn/crdn05030-info.jsp | 36 ++++++++----------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp index b0eb2cdf..7bbbe707 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp @@ -323,27 +323,20 @@ $(document).ready(function(){ $P.fnSave = () => { - - //if (!$("#frmEdit--${pageName} input").validInputs()) return; if(!customValidate($("#frmEdit--${pageName} input"))) return; - - - - - - //if(){ - //dialog.alert({ - //content:"계도 처리를 하기 위해선 차량번호가 입력되어야 합니다", - //onClose:function(){input.focus();} - //}); - //} - //if(){ - //dialog.alert({ - //content:"계도 처리를 하기 위해선 소유주정보가 입력되어야 합니다.", - //onClose:function(){input.focus();} - //}); - //} - + + if($("#doGuidance--${pageName}").is(":checked")){ + + var rtpyrNm = document.getElementById("rtpyrNm--${pageName}"); + if(rtpyrNm.value == ""){ + dialog.alert({ + content:"계도 처리를 하기 위해선 소유주정보가 입력되어야 합니다.", + onClose:function(){rtpyrNm.focus();} + }); + return; + } + + } dialog.alert({ content:"현재 단속 정보를 저장하시겠습니까?", @@ -351,8 +344,7 @@ $(document).ready(function(){ $P.crdnControl.save($P.formFields.get()); } }); - - + }; $P.videoCallback = (snapshots) => {