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); + }); }