pms#3325 - [관리자] 기반강화연수관리 > 과정관리 개발 완료

This commit is contained in:
hylee 2023-08-29 14:49:53 +09:00
parent cb151dca3d
commit d464136341
6 changed files with 155 additions and 191 deletions

View File

@ -176,19 +176,8 @@ public class FndthPrcsInfoMngController {
if(StringUtil.isNotEmpty(vEPrcsDetailVO.getSearchKeyword())){ if(StringUtil.isNotEmpty(vEPrcsDetailVO.getSearchKeyword())){
String selectCondition = "AND a.PRCS_NM LIKE CONCAT ('%', '" +vEPrcsDetailVO.getSearchKeyword() + "', '%')"; String selectCondition = "AND a.PRCS_NM LIKE CONCAT ('%', '" +vEPrcsDetailVO.getSearchKeyword() + "', '%')";
vEPrcsDetailVO.setSelectPagingListQuery(selectCondition); vEPrcsDetailVO.setSelectPagingListQuery(selectCondition);
} }
if(StringUtil.isNotEmpty(vEPrcsDetailVO.getPrcsKind())){
String[] splited = vEPrcsDetailVO.getPrcsKind().split(",");
vEPrcsDetailVO.setSearchStatusArr(splited);
}
if(StringUtil.isEmpty(vEPrcsDetailVO.getPrcsDiv())) {
//vEPrcsDetailVO.setPrcsDiv("10");// 과정구분 VE0015 10-산업종사자, 20-대학생, 30-공무원, 40-일반인, 50-청소년, 60-학부모
}
List<VEPrcsDetailVO> vEPrcsDetailVOList = vEPrcsService.selectPagingList(vEPrcsDetailVO); List<VEPrcsDetailVO> vEPrcsDetailVOList = vEPrcsService.selectPagingList(vEPrcsDetailVO);
//3.pageing step3 //3.pageing step3
@ -261,13 +250,12 @@ public class FndthPrcsInfoMngController {
String prcsOrd = prcsGnrService.getNextStringId(); // 고유ID String prcsOrd = prcsGnrService.getNextStringId(); // 고유ID
vEPrcsDetailVO.setPrcsOrd(prcsOrd); vEPrcsDetailVO.setPrcsOrd(prcsOrd);
vEPrcsDetailVO.setLctrDivCd("50"); //강의구분코드 VE0011 10-청소년강의, 20-성인강의, 30-체험, 50-기반강화, 60-조건부 vEPrcsDetailVO.setLctrDivCd("50"); //강의구분코드 VE0011 10-청소년강의, 20-성인강의, 30-체험, 50-기반강화, 60-조건부
vEPrcsDetailVO.setUseYn("Y");
vEPrcsDetailVO.setFrstRegisterId(loginVO.getUniqId()); //esntl_id vEPrcsDetailVO.setFrstRegisterId(loginVO.getUniqId()); //esntl_id
vEPrcsService.insert(vEPrcsDetailVO); vEPrcsService.insert(vEPrcsDetailVO);
//세부과정 생성하기 //세부과정 생성하기
String[] s_detailPrcsNm = request.getParameterValues("detailPrcsNm"); /*String[] s_detailPrcsNm = request.getParameterValues("detailPrcsNm");
for (int i=0;i<s_detailPrcsNm.length;i++) { for (int i=0;i<s_detailPrcsNm.length;i++) {
String prcsOnlnOrd = prcsOnlnGnrService.getNextStringId(); // 고유ID String prcsOnlnOrd = prcsOnlnGnrService.getNextStringId(); // 고유ID
VEPrcsCntntVO vEPrcsCntntVO = new VEPrcsCntntVO(); VEPrcsCntntVO vEPrcsCntntVO = new VEPrcsCntntVO();
@ -279,7 +267,7 @@ public class FndthPrcsInfoMngController {
vEPrcsCntntVO.setUseYn("Y"); vEPrcsCntntVO.setUseYn("Y");
vEPrcsCntntVO.setFrstRegisterId(loginVO.getUniqId()); //esntl_id vEPrcsCntntVO.setFrstRegisterId(loginVO.getUniqId()); //esntl_id
vEPrcsOnlnCntntService.insert(vEPrcsCntntVO); vEPrcsOnlnCntntService.insert(vEPrcsCntntVO);
} } */
modelAndView.addObject("result", "success"); modelAndView.addObject("result", "success");
@ -346,10 +334,10 @@ public class FndthPrcsInfoMngController {
VEPrcsDetailVO vEPrcsDetailVODetail = vEPrcsService.selectDetail(vEPrcsDetailVO); VEPrcsDetailVO vEPrcsDetailVODetail = vEPrcsService.selectDetail(vEPrcsDetailVO);
model.addAttribute("info", vEPrcsDetailVODetail); model.addAttribute("info", vEPrcsDetailVODetail);
//세부과정 목록 조회 //세부과정 목록 조회
VEPrcsCntntVO vePrcsCntntVO = new VEPrcsCntntVO(); // VEPrcsCntntVO vePrcsCntntVO = new VEPrcsCntntVO();
vePrcsCntntVO.setPrcsOrd(vEPrcsDetailVO.getPrcsOrd()); // vePrcsCntntVO.setPrcsOrd(vEPrcsDetailVO.getPrcsOrd());
List<VEPrcsCntntVO> vEPrcsCntntList = vEPrcsOnlnCntntService.selectList(vePrcsCntntVO); // List<VEPrcsCntntVO> vEPrcsCntntList = vEPrcsOnlnCntntService.selectList(vePrcsCntntVO);
model.addAttribute("vEPrcsCntntList", vEPrcsCntntList); // model.addAttribute("vEPrcsCntntList", vEPrcsCntntList);
return "oprtn/fndthEnhanceTrn/fndthEduPrcsMngMdfy"; return "oprtn/fndthEnhanceTrn/fndthEduPrcsMngMdfy";
} }
@ -390,9 +378,9 @@ public class FndthPrcsInfoMngController {
//세부과정 지우고 다시 생성 //세부과정 지우고 다시 생성
VEPrcsCntntVO vEPrcsCntntVO = new VEPrcsCntntVO(); VEPrcsCntntVO vEPrcsCntntVO = new VEPrcsCntntVO();
vEPrcsCntntVO.setPrcsOrd(vEPrcsDetailVO.getPrcsOrd()); vEPrcsCntntVO.setPrcsOrd(vEPrcsDetailVO.getPrcsOrd());
int iv = vEPrcsOnlnCntntService.deleteAll(vEPrcsCntntVO); // int iv = vEPrcsOnlnCntntService.deleteAll(vEPrcsCntntVO);
String[] s_detailPrcsNm = request.getParameterValues("detailPrcsNm"); // String[] s_detailPrcsNm = request.getParameterValues("detailPrcsNm");
for (int i=0;i<s_detailPrcsNm.length;i++) { /*for (int i=0;i<s_detailPrcsNm.length;i++) {
String prcsOnlnOrd = prcsOnlnGnrService.getNextStringId(); // 고유ID String prcsOnlnOrd = prcsOnlnGnrService.getNextStringId(); // 고유ID
vEPrcsCntntVO.setPrcsOnlnCntntOrd(prcsOnlnOrd); vEPrcsCntntVO.setPrcsOnlnCntntOrd(prcsOnlnOrd);
//vEPrcsCntntVO.setPrcsNm(s_detailPrcsNm[i]); //vEPrcsCntntVO.setPrcsNm(s_detailPrcsNm[i]);
@ -401,7 +389,7 @@ public class FndthPrcsInfoMngController {
vEPrcsCntntVO.setUseYn("Y"); vEPrcsCntntVO.setUseYn("Y");
vEPrcsCntntVO.setLastUpdusrId(loginVO.getUniqId()); //esntl_id vEPrcsCntntVO.setLastUpdusrId(loginVO.getUniqId()); //esntl_id
vEPrcsOnlnCntntService.insert(vEPrcsCntntVO); vEPrcsOnlnCntntService.insert(vEPrcsCntntVO);
} } */
modelAndView.addObject("result", "success"); modelAndView.addObject("result", "success");

View File

@ -171,21 +171,21 @@
SELECT SELECT
COUNT(1) OVER() AS totCnt , COUNT(1) OVER() AS totCnt ,
<include refid="VEPrcsDAO.select_column_name"/> <include refid="VEPrcsDAO.select_column_name"/>
, b.cnt <!-- , b.cnt -->
FROM FROM
<include refid="VEPrcsDAO.table_name"/> a <include refid="VEPrcsDAO.table_name"/> a
, ( <!-- , (
SELECT SELECT
prcs_ord prcs_ord
, COUNT(*) cnt , COUNT(*) cnt
FROM FROM
ve_prcs_onln_cntnt a ve_prcs_onln_cntnt a
GROUP BY prcs_ord GROUP BY prcs_ord
)b )b -->
WHERE WHERE
1=1 1=1
AND a.prcs_ord=b.prcs_ord <!-- AND a.prcs_ord=b.prcs_ord -->
<isNotEmpty property="selectPagingListQuery"> <isNotEmpty property="selectPagingListQuery">
$selectPagingListQuery$ $selectPagingListQuery$
</isNotEmpty> </isNotEmpty>
@ -199,6 +199,10 @@
</isNotEmpty> </isNotEmpty>
<isNotEmpty property="searchStatus">
AND a.prcs_div = #searchStatus#
</isNotEmpty>
<isNotEmpty property="prcsOrd"> <isNotEmpty property="prcsOrd">
AND a.prcs_ord=#prcsOrd# AND a.prcs_ord=#prcsOrd#
</isNotEmpty> </isNotEmpty>
@ -207,6 +211,17 @@
AND a.lctr_div_cd=#lctrDivCd# AND a.lctr_div_cd=#lctrDivCd#
</isNotEmpty> </isNotEmpty>
<isNotEmpty property="searchSmbtStartDt">
/*등록일시*/
AND TO_CHAR(a.FRST_REGIST_PNTTM, 'YYYYMMDD') <![CDATA[ >= ]]> REPLACE(#searchSmbtStartDt#, '.' , '')
</isNotEmpty>
<isNotEmpty property="searchSmbtEndDt">
/*등록일시*/
AND TO_CHAR(a.FRST_REGIST_PNTTM, 'YYYYMMDD') <![CDATA[ <= ]]> REPLACE(#searchSmbtEndDt#, '.' , '')
</isNotEmpty>
ORDER BY 1=1 ORDER BY 1=1
, (a.prcs_sort_no * 1) , (a.prcs_sort_no * 1)
<isEmpty property="orderByQuery"> <isEmpty property="orderByQuery">
@ -214,7 +229,9 @@
</isEmpty> </isEmpty>
<isNotEmpty property="orderByQuery"> <isNotEmpty property="orderByQuery">
, $orderByQuery$ , $orderByQuery$
</isNotEmpty> </isNotEmpty>
LIMIT #recordCountPerPage# OFFSET #firstIndex# LIMIT #recordCountPerPage# OFFSET #firstIndex#
</select> </select>

View File

@ -85,27 +85,21 @@
<tbody> <tbody>
<tr> <tr>
<th scope="row">구분</th> <th scope="row">교육부문</th>
<td> <td colspan="3" style="position: relative;">
<ve:code codeId="VE0015" code="${info.prcsDiv}"/> <ve:code codeId="VEA001" code="${info.prcsDiv}"/>
</td> <div class="put_photo">
</tr> <div class="put_photo_in">
<tr> <div class="put_photo">
<th scope="row">종류</th> <div class="put_photo_in">
<td> <div class="put_photo_box">
<input type="checkbox" id="prcsKind01" name="prcsKind" value="01" disabled="disabled"; <c:if test="${fn:contains(info.prcsKind, '01')}">checked="checked"</c:if>> <img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
<label class="" for="prcsKind01">신규</label> </div>
<input type="checkbox" id="prcsKind012" name="prcsKind" value="02" disabled="disabled"; <c:if test="${fn:contains(info.prcsKind, '02')}">checked="checked"</c:if>> <!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> -->
<label class="" for="prcsKind012">갱신</label> </div>
<input type="checkbox" id="prcsKind0123" name="prcsKind" value="03" disabled="disabled"; <c:if test="${fn:contains(info.prcsKind, '03')}">checked="checked"</c:if>> </div>
<label class="" for="prcsKind0123">의무</label> </div>
<%-- 1<ve:checkbox codeId="VE0033" id="prcsKind" name="prcsKind" selectedJoinValue="${info.prcsKind}" warp="span" css="disabled"/>2 </div>
<br/>
3<ve:checkbox codeId="VE0033" id="prcsKind" name="prcsKind" selectedJoinValue="${info.prcsKind}" warp="span"/>4
<br/>
5<ve:checkbox codeId="VE0033" id="prcsKind" name="prcsKind" selectedJoinValue="${info.prcsKind}" css="disabled"/>6
<br/>
7<ve:checkbox codeId="VE0033" id="prcsKind" name="prcsKind" selectedJoinValue="${info.prcsKind}"/>8 --%>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -121,22 +115,14 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row">세부과정</th> <th scope="row">사용여부</th>
<td class="addPro_wrap">
<c:forEach var="list" items="${vEPrcsCntntList}" varStatus="status">
<div class="tbody_one">
<span><span class="span_num3">${status.count}</span>.</span>
<div>
<c:out value='${list.detailPrcsNm}' />
</div>
</div>
</c:forEach>
</td>
</tr>
<tr>
<th scope="row">표시순서</th>
<td> <td>
<c:out value='${info.prcsSortNo}' /> <c:if test="${info.useYn eq 'Y'}">
사용
</c:if>
<c:if test="${info.useYn ne 'Y'}">
미사용
</c:if>
</td> </td>
</tr> </tr>
</tbody> </tbody>

View File

@ -9,6 +9,7 @@
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%> <%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %> <%@ taglib prefix="un" uri="http://jakarta.apache.org/taglibs/unstandard-1.0" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<un:useConstants var="KccadrStatus" className="kcc.kccadr.cmm.KccadrConstants" /> <un:useConstants var="KccadrStatus" className="kcc.kccadr.cmm.KccadrConstants" />
<% <%
/** /**
@ -169,29 +170,27 @@
<p>교육 과정 관리</p> <p>교육 과정 관리</p>
</div> </div>
<!-- list_top --> <!-- list_top -->
<div class="list_top"> <div class="list_top search-only">
<div class="list_top_1"> <div class="list_top_1">
<div class="util_left">
<p>이름</p>
</div>
<div class="util_right"> <div class="util_right">
<kc:select codeId="VE0015" name="prcsDiv" id="prcsDiv" css="class='sel_type1'" selectedValue="${vEPrcsDetailVO.prcsDiv}"
defaultValue="" <ve:select codeId="VEA001" name="searchStatus" id="searchStatus" css="class='sel_type1'"
defaultText="전체" selectedValue="${vEPrcsDetailVO.searchStatus }" defaultValue=""
/> defaultText="전체"
/>
<input type="checkbox" id="prcsKind01" name="prcsKind" value="01" <c:if test="${fn:contains(vEPrcsDetailVO.prcsKind, '01')}">checked="checked"</c:if>> <div class="calendar_wrap">
<label class="" for="prcsKind01">신규</label> <input type="text" class="calendar" title="시작일 선택" id="searchSmbtStartDt" name="searchSmbtStartDt" value="${vEPrcsDetailVO.searchSmbtStartDt}">
<input type="checkbox" id="prcsKind012" name="prcsKind" value="02" <c:if test="${fn:contains(vEPrcsDetailVO.prcsKind, '02')}">checked="checked"</c:if>> </div>
<label class="" for="prcsKind012">갱신</label> ~
<input type="checkbox" id="prcsKind0123" name="prcsKind" value="03" <c:if test="${fn:contains(vEPrcsDetailVO.prcsKind, '03')}">checked="checked"</c:if>> <div class="calendar_wrap">
<label class="" for="prcsKind0123">의무</label> <input type="text" class="calendar" title="종료일 선택" id="searchSmbtEndDt" name="searchSmbtEndDt" value="${vEPrcsDetailVO.searchSmbtEndDt}">
</div>
<input type="text" id="searchKeyword" name="searchKeyword" placeholder="검색어를 입력하세요." title="검색어 입력" class="search_input" value="<c:out value='${vEPrcsDetailVO.searchKeyword}'/>"> <input type="text" id="searchKeyword" name="searchKeyword" placeholder="과정명를 입력하세요." title="검색어 입력" class="search_input" value="<c:out value='${vEEduAplctVO.searchFullName}'/>">
<button type="button" class="btn_type08" onclick="fncGoList(); return false;">검색</button> <button type="button" class="btn_type08" onclick="fncGoList(); return false;">검색</button>
<button class="btn_type03" onclick="fncReset(this); return false;">초기화</button>
</div> </div>
</div> </div>
</div> </div>
<div class="list_util"> <div class="list_util">
<p class="list_util_p"><span><c:out value="${paginationInfo.totalRecordCount}" /></span>건의 접수가 검색되었습니다.</p> <p class="list_util_p"><span><c:out value="${paginationInfo.totalRecordCount}" /></span>건의 접수가 검색되었습니다.</p>
@ -208,71 +207,54 @@
<!-- //list_top --> <!-- //list_top -->
<!-- list_top -->
<!-- list util -->
<div class="list_util">
<p class="list_util_p">총 건수 : <span><c:out value="${paginationInfo.totalRecordCount}" /></span>건</p>
<%-- <div>
<select class="sel_type1" name="pageUnit" id="pageUnit" onchange="linkPage(1);" title="줄 선택" style="width: 140px">
<option value='10' <c:if test="${vEPrcsDetailVO.pageUnit == '10' or vEEduAplctVO.pageUnit == ''}">selected</c:if>>10줄</option>
<option value='20' <c:if test="${vEPrcsDetailVO.pageUnit == '20'}">selected</c:if>>20줄</option>
<option value='30' <c:if test="${vEPrcsDetailVO.pageUnit == '30'}">selected</c:if>>30줄</option>
<option value='100' <c:if test="${vEPrcsDetailVO.pageUnit == '100'}">selected</c:if>>100줄</option>
</select>
</div> --%>
</div>
<!-- //list_top -->
<!-- list --> <!-- list -->
<div class="tb_type01"> <div class="tb_type01">
<table> <table>
<colgroup> <colgroup>
<col style="width: 10%"> <col style="width: 10%">
<col style="width: 10%"> <col style="width: 20%">
<col style="width: auto"> <col style="width: auto">
<col style="width: 10%"> <col style="width: 10%">
<col style="width: 10%"> <col style="width: 10%">
<col style="width: 10%">
</colgroup> </colgroup>
<thead> <thead>
<tr> <tr>
<th>구분</th> <th>교육부문</th>
<th>구분</th>
<th>과정명</th> <th>과정명</th>
<th>표시순서</th> <th>설명</th>
<th>차시수</th> <th>등록일시</th>
<th>삭제</th> <th>사용여부 </th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<c:forEach var="list" items="${list}" varStatus="status"> <c:forEach var="list" items="${list}" varStatus="status">
<tr class="listCount"> <tr class="listCount">
<td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;"> <td>
<kc:code codeId="VE0015" code="${list.prcsDiv}"/> <kc:code codeId="VEA001" code="${list.prcsDiv}"/>
</td>
<td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;">
<c:if test="${fn:contains(list.prcsKind, '01')}">신규</c:if>
<c:if test="${fn:contains(list.prcsKind, '02')}">갱신</c:if>
<c:if test="${fn:contains(list.prcsKind, '03')}">의무</c:if>
</td> </td>
<td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;"> <td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;">
<c:out value='${list.prcsNm}'/> <c:out value='${list.prcsNm}'/>
</td> </td>
<td>
<input type="text" id="prcsSortNo${status.count}" name="prcsSortNo${status.count}" value="<c:out value='${list.prcsSortNo}'/>" style="width:50px;" maxLength="3"/>
&nbsp; <button type="button" class="btn_type01" onclick="fncSaveSort('<c:out value="${list.prcsOrd}"/>', '<c:out value="${status.count}"/>'); return false;">저장</button>
</td>
<td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;"> <td onclick="fncGoDetail('<c:out value="${list.prcsOrd}"/>');" style="cursor:pointer;">
<c:out value='${list.cnt}'/> <c:out value='${list.prcsCn}'/>
</td> </td>
<td> <td>
<button class="btnType02" onclick="fncDelete('<c:out value='${list.prcsOrd}'/>'); return false;" >삭제</button> <c:out value='${list.frstRegistPnttm}'/>
</td>
<td>
<c:if test="${list.useYn eq 'Y'}">
사용
</c:if>
<c:if test="${list.useYn ne 'Y'}">
미사용
</c:if>
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>
<c:if test="${empty list}"> <c:if test="${empty list}">
<tr><td colspan="4"><spring:message code="common.nodata.msg" /></td></tr> <tr><td colspan="5"><spring:message code="common.nodata.msg" /></td></tr>
</c:if> </c:if>
</tbody> </tbody>
</table> </table>

View File

@ -100,7 +100,7 @@
function fncSave(){ function fncSave(){
var data = new FormData(document.getElementById("createForm")); var data = new FormData(document.getElementById("createForm"));
if(confirm("저장하시겠습니까?")){ if(confirm("수정하시겠습니까?")){
var url = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngMdfyAjax.do'/>"; var url = "<c:url value='/kccadr/oprtn/fndthEnhanceTrn/fndthEduPrcsMngMdfyAjax.do'/>";
console.log(data); console.log(data);
$.ajax({ $.ajax({
@ -173,57 +173,52 @@
<tbody> <tbody>
<tr> <tr>
<th scope="row">구분</th> <th scope="row">교육부문</th>
<td> <td colspan="3" style="position: relative;">
<ve:select codeId="VE0015" name="prcsDiv" id="prcsDiv" css="class='sel_type1'" selectedValue="${info.prcsDiv}" defaultValue='10'/> <ve:select codeId="VEA001" name="prcsDiv" id="prcsDiv" css="class='sel_type1'"
</td> selectedValue="${info.prcsDiv }" defaultValue=''
</tr> defaultText="선택"
<tr> />
<th scope="row">종류</th> <!-- <input type="text" name="instrNm"/> -->
<td> <div class="put_photo">
<div class="put_photo_in">
<input type="checkbox" id="prcsKind01" name="prcsKind" value="01" <c:if test="${fn:contains(info.prcsKind, '01')}">checked="checked"</c:if>> <div class="put_photo">
<label class="" for="prcsKind01">신규</label> <div class="put_photo_in">
<input type="checkbox" id="prcsKind012" name="prcsKind" value="02" <c:if test="${fn:contains(info.prcsKind, '02')}">checked="checked"</c:if>> <div class="put_photo_box">
<label class="" for="prcsKind012">갱신</label> <img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
<input type="checkbox" id="prcsKind0123" name="prcsKind" value="03" <c:if test="${fn:contains(info.prcsKind, '03')}">checked="checked"</c:if>> </div>
<label class="" for="prcsKind0123">의무</label> <!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> -->
</div>
</div>
</div>
</div>
<%-- <ve:select codeId="VE0015" name="prcsDiv" id="prcsDiv" css="class='sel_type1'" selectedValue="<c:out value='${info.prcsDiv}'/>" defaultValue='10'/> --%>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row">과정명</th> <th scope="row">과정명</th>
<td> <td>
<input type="text" placeholder="과정명을 입력해주세요." name="prcsNm" id="prcsNm" value="<c:out value='${info.prcsNm}'/>" style="width: 56%;"> <input type="text" name="prcsNm" value="${info.prcsNm }"/>
<button type="button" class="btn_type06" onclick="addPro(); return false;">세부과정 추가</button>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row">과정설명</th> <th scope="row">상세교육과정</th>
<td> <td>
<textarea placeholder="과정설명을 입력해주세요." name="prcsCn" id="prcsCn" class="memo" onfocus="this.placeholder=''" onblur="this.placeholder='과정설명을 입력해주세요.'" class="inputLight"><c:out value='${info.prcsCn}'/></textarea> <textarea placeholder="과정설명을 입력해주세요." name="prcsCn" id="prcsCn" class="memo" onfocus="this.placeholder=''" onblur="this.placeholder='과정설명을 입력해주세요.'" class="inputLight" style="height: 200px;"><c:out value="${info.prcsCn }" /></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row">세부과정</th> <th scope="row">상태</th>
<td class="addPro_wrap">
<c:forEach var="list" items="${vEPrcsCntntList}" varStatus="status">
<div class="tbody_one">
<span><span class="span_num3">${status.count}</span>.</span>
<div>
<input type="text" name="detailPrcsNm" id="detailPrcsNm" value="${list.detailPrcsNm}">
<button type="button" class="table_del3" onclick="delPro(this)"><img src="${pageContext.request.contextPath}/visitEdu/adm/publish/image/content/btn_del.png"></button>
</div>
</div>
</c:forEach>
</td>
</tr>
<tr>
<th scope="row">표시순서</th>
<td> <td>
<input type="text" name="prcsSortNo" id="prcsSortNo" value="<c:out value='${info.prcsSortNo}'/>" style="width: 50px;" maxLength="3"> <select name="useYn" class="sel_type1">
<option value="Y" <c:if test="${info.useYn=='Y' }">selected="selected"</c:if>>사용</option>
<option value="N" <c:if test="${info.useYn=='N' }">selected="selected"</c:if>>미사용</option>
</select>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</tbody>
</table> </table>
</div> </div>
<!-- //list_상세 --> <!-- //list_상세 -->
@ -235,7 +230,7 @@
<div class="btn_center"> <div class="btn_center">
</div> </div>
<div class="btn_right"> <div class="btn_right">
<button type="button" class="btn_type02" onclick="fncSave(); return false;">저장</button> <button type="button" class="btn_type02" onclick="fncSave(); return false;">수정</button>
<button type="button" class="btn_type03" onclick="fncGoList(); return false;">취소</button> <button type="button" class="btn_type03" onclick="fncGoList(); return false;">취소</button>
</div> </div>
</div> </div>

View File

@ -7,6 +7,7 @@
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%> <%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<%@ taglib prefix="kc" uri="/WEB-INF/tlds/kcc_tld.tld"%>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> <%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<% <%
/** /**
@ -159,7 +160,7 @@
<div class="cont"> <div class="cont">
<!-- list_상세 --> <!-- list_상세 -->
<div class="tb_tit01"> <div class="tb_tit01">
<p>교육과정관리</p> <p>교육과정</p>
</div> </div>
<div class="tb_type02"> <div class="tb_type02">
<table> <table>
@ -172,53 +173,48 @@
<tbody> <tbody>
<tr> <tr>
<th scope="row">구분</th> <th scope="row">교육부문</th>
<td> <td colspan="3" style="position: relative;">
<ve:select codeId="VE0015" name="prcsDiv" id="prcsDiv" css="class='sel_type1'" selectedValue="<c:out value='${info.prcsDiv}'/>" defaultValue='10'/> <ve:select codeId="VEA001" name="prcsDiv" id="prcsDiv" css="class='sel_type1'"
</td> selectedValue="" defaultValue=''
</tr> defaultText="선택"
<tr> />
<th scope="row">종류</th> <!-- <input type="text" name="instrNm"/> -->
<td> <div class="put_photo">
<div class="put_photo_in">
<input type="checkbox" id="prcsKind01" name="prcsKind" value="01" <c:if test="${fn:contains(info.prcsKind, '01')}">checked="checked"</c:if>> <div class="put_photo">
<label class="" for="prcsKind01">신규</label> <div class="put_photo_in">
<input type="checkbox" id="prcsKind012" name="prcsKind" value="02" <c:if test="${fn:contains(info.prcsKind, '02')}">checked="checked"</c:if>> <div class="put_photo_box">
<label class="" for="prcsKind012">갱신</label> <img src="${pageContext.request.contextPath}/visitEdu/usr/publish/images/content/img_add.png" alt="이미지를 넣어주세요">
<input type="checkbox" id="prcsKind0123" name="prcsKind" value="03" <c:if test="${fn:contains(info.prcsKind, '03')}">checked="checked"</c:if>> </div>
<label class="" for="prcsKind0123">의무</label> <!-- <button type="button" class="btnType01" onclick="fncPhotoPopup(); return false;">사진등록</button> -->
</div>
</div>
</div>
</div>
<%-- <ve:select codeId="VE0015" name="prcsDiv" id="prcsDiv" css="class='sel_type1'" selectedValue="<c:out value='${info.prcsDiv}'/>" defaultValue='10'/> --%>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row">과정명</th> <th scope="row">과정명</th>
<td> <td>
<input type="text" placeholder="과정명을 입력해주세요." name="prcsNm" id="prcsNm" value="<c:out value='${info.prcsNm}'/>" style="width: 56%;"> <input type="text" name="prcsNm"/>
<button type="button" class="btn_type06" onclick="addPro(); return false;">세부과정 추가</button>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row">과정설명</th> <th scope="row">상세교육과정</th>
<td> <td>
<textarea placeholder="과정설명을 입력해주세요." name="prcsCn" id="prcsCn" class="memo" onfocus="this.placeholder=''" onblur="this.placeholder='과정설명을 입력해주세요.'" class="inputLight"><c:out value='${info.prcsCn}'/></textarea> <textarea placeholder="과정설명을 입력해주세요." name="prcsCn" id="prcsCn" class="memo" onfocus="this.placeholder=''" onblur="this.placeholder='과정설명을 입력해주세요.'" class="inputLight" style="height: 200px;"></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<th scope="row">세부과정</th> <th scope="row">상태</th>
<td class="addPro_wrap"> <td>
<div class="tbody_one"> <select name="useYn" class="sel_type1">
<span><span class="span_num3">1</span>.</span> <option value="Y">사용</option>
<div> <option value="N">미사용</option>
<input type="text" name="detailPrcsNm" id="detailPrcsNm" value="${info.detailPrcsNm}"> </select>
<button type="button" class="table_del3" onclick="delPro(this)"><img src="${pageContext.request.contextPath}/visitEdu/adm/publish/image/content/btn_del.png"></button>
</div>
</div>
</td>
</tr>
<tr>
<th scope="row">표시순서</th>
<td class="addPro_wrap">
<input type="text" name="prcsSortNo" id="prcsSortNo" value="${info.prcsSortNo}" style="width:50px;" maxLength="3">
</td> </td>
</tr> </tr>
</tbody> </tbody>