From 00ba0428918689ceaf96afa2dbc96acb4bc4fe92 Mon Sep 17 00:00:00 2001 From: jiwoo Date: Thu, 26 Oct 2023 17:12:23 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=9A=B0=20-=20=EC=84=B1?= =?UTF-8?q?=EC=9D=B8=20=EC=A0=80=EC=9E=91=EA=B6=8C=EA=B5=90=EC=9C=A1=20?= =?UTF-8?q?=EC=8B=A0=EC=B2=AD=20=EC=9E=84=EC=8B=9C=EC=A0=80=EC=9E=A5?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sqlmap/ve/edu/VEEduAplct_SQL_Tibero.xml | 3 +++ .../adultVisitEdu/eduAplct/eduAplctReg.jsp | 20 +++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/main/resources/egovframework/sqlmap/ve/edu/VEEduAplct_SQL_Tibero.xml b/src/main/resources/egovframework/sqlmap/ve/edu/VEEduAplct_SQL_Tibero.xml index 7d63c3b6..b11d35e2 100644 --- a/src/main/resources/egovframework/sqlmap/ve/edu/VEEduAplct_SQL_Tibero.xml +++ b/src/main/resources/egovframework/sqlmap/ve/edu/VEEduAplct_SQL_Tibero.xml @@ -838,6 +838,9 @@ , RNDS_ORD = #rndsOrd# + + , APLCT_CN = #aplctCn# + WHERE EDU_APLCT_ORD = #eduAplctOrd# diff --git a/src/main/webapp/WEB-INF/jsp/web/ve/aplct/adultVisitEdu/eduAplct/eduAplctReg.jsp b/src/main/webapp/WEB-INF/jsp/web/ve/aplct/adultVisitEdu/eduAplct/eduAplctReg.jsp index f0594926..66670b5f 100644 --- a/src/main/webapp/WEB-INF/jsp/web/ve/aplct/adultVisitEdu/eduAplct/eduAplctReg.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/ve/aplct/adultVisitEdu/eduAplct/eduAplctReg.jsp @@ -376,6 +376,13 @@ $("#mode").val(VeConstants.MODE_UPT); $("#eduAplctOrd").val(info.eduAplctOrd); $("#eduSlctCd").val(info.eduSlctCd); + //오프라인의 경우 교육장소 활성화 + if(info.eduSlctCd == '20'){ + $("#juso").show(); + $("#juso").find("input").removeAttr("disabled", "disabled"); + $("#mechae").hide(); + $("#mechae").find("input").attr("disabled", "disabled"); + } $("#eduMd").val(info.eduMd); $("#eduSlctAreaCd").val(info.eduSlctAreaCd); $("#insttNm").val(info.insttNm); @@ -385,7 +392,13 @@ $("#addrDetail").val(info.addrDetail); $("#chrgNm").val(info.chrgNm); $("#jobNm").val(info.jobNm); - + if(isNotEmpty(info.aplctCn)){ + var aplctCnList = info.aplctCn.split(','); + $.each(aplctCnList, function(idx, value){ + $('input[name=aplctCn][value='+value+']').prop('checked',true); + }); + } + if(!isEmpty(info.clphone)){ var clphone = info.clphone.split('-'); $("#clphone1").val(clphone[0]); @@ -416,12 +429,15 @@ } console.log("+++++++++++++++++++++++++++++++++"); var tr = $('.addClassRow').find('tbody > tr').not('.calendar_wrap tr').eq(idx); - tr.find('input[name=eduHopeDt]').val(dateFormat(value.eduHopeDt, 'date')); + //tr.find('input[name=eduHopeDt]').val(dateFormat(value.eduHopeDt, 'date')); + tr.find('input[name=eduHopeDt0]').val(dateFormat(value.eduHopeDt.replace(/\./g, ""), 'date')); + tr.find('input[name=eduHopeDt]').val(dateFormat(value.eduHopeDt.replace(/\./g, ""), 'date')); tr.find('input[name=strtTm]').val(timeFomat(value.strtTm)); tr.find('input[name=endTm]').val(timeFomat(value.endTm)); tr.find('input[name=lrnTm]').val(value.lrnTm); tr.find('input[name=trgt]').val(value.trgt); tr.find('input[name=prsnl]').val(value.prsnl); + }); }