From 0ef19ac431ce2ba45996f91342026239c3b4e3e6 Mon Sep 17 00:00:00 2001 From: jiwoo Date: Thu, 30 Nov 2023 11:46:28 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=9A=B0=20-=20SFR-019-01(?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90=20=EC=B2=AD=EC=86=8C=EB=85=84=20?= =?UTF-8?q?=EA=B5=90=EC=9C=A1=20=EC=8B=A0=EC=B2=AD=20=EC=8B=9C=20=EA=B5=90?= =?UTF-8?q?=EC=9C=A1=EC=8B=9C=EA=B0=84=EC=97=90=20'=EC=84=A0=ED=83=9D'=20?= =?UTF-8?q?=EA=B8=88=EC=A7=80),=20=EC=88=98=EC=A0=95=20=EC=8B=9C=20?= =?UTF-8?q?=EA=B0=9C=EC=9D=B8=EC=A0=95=EB=B3=B4=EB=8F=99=EC=9D=98=20?= =?UTF-8?q?=EC=B2=B4=ED=81=AC=20=ED=99=95=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tngrVisitEdu/eduAplct/eduAplctMdfy.jsp | 34 ++++++++++++++++--- .../tngrVisitEdu/eduAplct/eduAplctReg.jsp | 14 ++++++++ 2 files changed, 43 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/web/ve/aplct/tngrVisitEdu/eduAplct/eduAplctMdfy.jsp b/src/main/webapp/WEB-INF/jsp/web/ve/aplct/tngrVisitEdu/eduAplct/eduAplctMdfy.jsp index f45b9442..7e86a30d 100644 --- a/src/main/webapp/WEB-INF/jsp/web/ve/aplct/tngrVisitEdu/eduAplct/eduAplctMdfy.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/ve/aplct/tngrVisitEdu/eduAplct/eduAplctMdfy.jsp @@ -118,14 +118,10 @@ } }); - alert("1"); $("select[name=divCd] option[value='10']").remove(); - alert("12"); $("select[name=divCd] option[value='20']").remove(); - alert("13"); $("select[name=divCd] option[value='30']").remove(); - alert("14"); }); function fncScholList(paramObj) { @@ -368,12 +364,21 @@ $('input[name=strtTm]:eq('+idx+')').focus(); return flag = false; } + if($(this).find('input[name=strtTm]').val().indexOf('선택') != -1){ + alert('교육시작 시간을 입력해주세요.'); + $('input[name=strtTm]:eq('+idx+')').focus(); + return flag = false; + } if($(this).find('input[name=endTm]').val() == ''){ alert('교육종료 시간을 입력해주세요.'); $('input[name=endTm]:eq('+idx+')').focus(); return flag = false; } - + if($(this).find('input[name=endTm]').val().indexOf('선택') != -1){ + alert('교육종료 시간을 입력해주세요.'); + $('input[name=endTm]:eq('+idx+')').focus(); + return flag = false; + } if($(this).find('select[name=divCd]').val() == ''){ alert('구분을 선택해주세요.'); $('select[name=divCd]:eq('+idx+')').focus(); @@ -441,10 +446,29 @@ } + /*작동안되어서 하기로 대체 if($("#agree").length > 0 && $('#agree').val() != 'Y'){ alert('개인정보 수집 및 이용 목적에 동의하셔야합니다.'); return false; } + */ + + var fnAgree = true; + + $('input:checkbox[name="agree"]:checked').each(function(idx) { + /* + if($(this).attr("class") != "60") { + alert("선택한 목록 중 교욱확정알림이 불가능한 건이 있습니다."); + fnAgree = true; + } + */ + fnAgree = false; + }); + + if(fnAgree){ + alert('개인정보 수집 및 이용 목적에 동의하셔야합니다.'); + return false; + } return true; } diff --git a/src/main/webapp/WEB-INF/jsp/web/ve/aplct/tngrVisitEdu/eduAplct/eduAplctReg.jsp b/src/main/webapp/WEB-INF/jsp/web/ve/aplct/tngrVisitEdu/eduAplct/eduAplctReg.jsp index 1597bc4c..451f8d5c 100644 --- a/src/main/webapp/WEB-INF/jsp/web/ve/aplct/tngrVisitEdu/eduAplct/eduAplctReg.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/ve/aplct/tngrVisitEdu/eduAplct/eduAplctReg.jsp @@ -416,12 +416,26 @@ var psblFlag = "Y";//학생 신청가능기간여부 체크 $('input[name=strtTm]:eq('+idx+')').focus(); return flag = false; } + + if($(this).find('input[name=strtTm]').val().indexOf('선택') != -1){ + alert('교육시작 시간을 입력해주세요.'); + $('input[name=strtTm]:eq('+idx+')').focus(); + return flag = false; + } + + if($(this).find('input[name=endTm]').val() == ''){ alert('교육종료 시간을 입력해주세요.'); $('input[name=endTm]:eq('+idx+')').focus(); return flag = false; } + if($(this).find('input[name=endTm]').val().indexOf('선택') != -1){ + alert('교육종료 시간을 입력해주세요.'); + $('input[name=endTm]:eq('+idx+')').focus(); + return flag = false; + } + if($(this).find('select[name=divCd]').val() == ''){ alert('구분을 선택해주세요.'); $('select[name=divCd]:eq('+idx+')').focus();