기소유예 수료자 상세 > 중복자 이수처리 로직 완료
This commit is contained in:
parent
495fadb6b5
commit
2a1d458a4a
@ -2,6 +2,8 @@ package kcc.ve.oprtn.cndtnSspnIdtmt.trgtMng.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsDetailVO;
|
||||
|
||||
|
||||
public interface CndtnTrgtMngService {
|
||||
|
||||
@ -17,6 +19,8 @@ public interface CndtnTrgtMngService {
|
||||
|
||||
int findCntreqNmber(String reqNmbrTemp);
|
||||
|
||||
void updateTrgtDuplAjax(CndtnTrgtMngVO cndtnTrgtInfoMngVO);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -46,6 +46,7 @@ public class CndtnTrgtMngVO extends ComDefaultVO implements Serializable {
|
||||
|
||||
|
||||
private List<String> searchSelStatusList;
|
||||
private List<String> sspnIdtmtTrgtOrdList;
|
||||
|
||||
|
||||
|
||||
@ -217,6 +218,12 @@ public class CndtnTrgtMngVO extends ComDefaultVO implements Serializable {
|
||||
public void setDBirth(String dBirth) {
|
||||
DBirth = dBirth;
|
||||
}
|
||||
public List<String> getSspnIdtmtTrgtOrdList() {
|
||||
return sspnIdtmtTrgtOrdList;
|
||||
}
|
||||
public void setSspnIdtmtTrgtOrdList(List<String> sspnIdtmtTrgtOrdList) {
|
||||
this.sspnIdtmtTrgtOrdList = sspnIdtmtTrgtOrdList;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -125,5 +125,9 @@ public class CndtnTrgtMngDAO extends EgovAbstractDAO {
|
||||
return (int) select("cndtnTrgtInfoMngDAO.findCntreqNmber", reqNmbrTemp);
|
||||
}
|
||||
|
||||
public void updateTrgtDuplAjax(CndtnTrgtMngVO cndtnTrgtMngVO) {
|
||||
update("cndtnTrgtInfoMngDAO.updateTrgtDuplAjax", cndtnTrgtMngVO);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -57,6 +57,12 @@ public class CndtnTrgtMngServiceImpl implements CndtnTrgtMngService {
|
||||
public int findCntreqNmber(String reqNmbrTemp) {
|
||||
return cndtnTrgtInfoMngDAO.findCntreqNmber(reqNmbrTemp);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateTrgtDuplAjax(CndtnTrgtMngVO cndtnTrgtInfoMngVO) {
|
||||
cndtnTrgtInfoMngDAO.updateTrgtDuplAjax(cndtnTrgtInfoMngVO);
|
||||
|
||||
}
|
||||
/*
|
||||
//C
|
||||
public void insert(VEPrcsDetailVO vEPrcsDetailVO) throws Exception {
|
||||
|
||||
@ -704,6 +704,44 @@ public class CndtnTrgtMngController {
|
||||
return "oprtn/cndtnSspnIdtmt/trgtCmpltDetail";
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("/kccadr/oprtn/cndtnSspnIdtmt/updateTrgtDuplAjax.do")
|
||||
public ModelAndView updateEduAplctAprvlCd(
|
||||
@ModelAttribute("vEPrcsDetailVO") CndtnTrgtMngVO cndtnTrgtInfoMngVO
|
||||
, ModelMap model
|
||||
, HttpServletRequest request
|
||||
) throws Exception {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
//로그인 처리====================================
|
||||
//로그인 정보 가져오기
|
||||
String s_oprtnLoginCheckNInfo = checkLoginUtil.oprtnCheckNInfo(model);
|
||||
if (!"".equals(s_oprtnLoginCheckNInfo)) {
|
||||
modelAndView.addObject("result", "loginFail");
|
||||
return modelAndView;
|
||||
}
|
||||
//로그인 처리====================================
|
||||
|
||||
LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); //권한에 따른 로그인 정보 가져오기
|
||||
|
||||
try {
|
||||
// 교육 신청 테이블에 신청자 상태값 update
|
||||
// vEAPrcsAplctPrdInstrAsgnmService.udpateAprvlCdEduAplct(vEPrcsDetailVO);
|
||||
cndtnTrgtInfoMngService.updateTrgtDuplAjax(cndtnTrgtInfoMngVO);
|
||||
|
||||
modelAndView.addObject("result", "success");
|
||||
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
modelAndView.addObject("result", "");
|
||||
}
|
||||
|
||||
|
||||
return modelAndView;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 조건부기소유예과정 수정화면
|
||||
*/
|
||||
|
||||
@ -139,6 +139,20 @@
|
||||
WHERE
|
||||
sspn_idtmt_trgt_ord = #sspnIdtmtTrgtOrd#
|
||||
</update>
|
||||
|
||||
<update id="cndtnTrgtInfoMngDAO.updateTrgtDuplAjax" parameterClass="CndtnPrcsInfoMngVO">
|
||||
/* cndtnTrgtInfoMngDAO.updateTrgtDuplAjax */
|
||||
|
||||
UPDATE
|
||||
<include refid="CndtnTrgtInfoMngDAO.table_name"/>
|
||||
SET
|
||||
edu_state_cd = #eduStateCd#
|
||||
, prcs_aplct_prd_ord_cmplt = #sspnIdtmtTrgtOrd#
|
||||
WHERE SSPN_IDTMT_TRGT_ORD IN
|
||||
<iterate property="sspnIdtmtTrgtOrdList" open="(" close=")" conjunction=",">
|
||||
#sspnIdtmtTrgtOrdList[]#
|
||||
</iterate>
|
||||
</update>
|
||||
|
||||
<select id="cndtnTrgtInfoMngDAO.findCntreqNmber" resultClass="int" parameterClass="String">
|
||||
SELECT
|
||||
|
||||
@ -5167,6 +5167,7 @@ VALUES
|
||||
vea_aplct_detail_info
|
||||
SET
|
||||
aplct_state_cd = #aplctStateCd#
|
||||
, aplct_pnttm = SYSDATE
|
||||
, last_updusr_id = #lastUpdusrId#
|
||||
, last_updt_pnttm = SYSDATE
|
||||
WHERE
|
||||
|
||||
@ -75,6 +75,7 @@
|
||||
prcs_aplct_prd_ord
|
||||
, edu_aplct_ord
|
||||
, aplct_state_cd
|
||||
, aplct_pnttm
|
||||
, frst_regist_pnttm
|
||||
, frst_register_id
|
||||
)
|
||||
@ -84,6 +85,7 @@
|
||||
, #eduAplctOrd#
|
||||
, #aplctStateCd#
|
||||
, SYSDATE
|
||||
, SYSDATE
|
||||
, #frstRegisterId#
|
||||
)
|
||||
</insert>
|
||||
@ -106,6 +108,7 @@
|
||||
|
||||
UPDATE vea_aplct_detail_info SET
|
||||
aplct_state_cd = #aplctStateCd#
|
||||
, aplct_pnttm = SYSDATE
|
||||
WHERE
|
||||
edu_aplct_ord = #eduAplctOrd#
|
||||
AND prcs_aplct_prd_ord = #prcsAplctPrdOrd#
|
||||
@ -133,6 +136,7 @@
|
||||
|
||||
UPDATE VEA_APLCT_DETAIL_INFO
|
||||
SET aplct_state_cd = #aplctStateCd#
|
||||
,aplct_pnttm = SYSDATE
|
||||
,last_updusr_id = #lastUpdusrId#
|
||||
,last_updt_pnttm = sysdate
|
||||
WHERE edu_aplct_ord IN
|
||||
|
||||
@ -1,319 +1,386 @@
|
||||
<!DOCTYPE html>
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"
|
||||
pageEncoding="utf-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
<%
|
||||
/**
|
||||
* @Class Name : cndtnEduPrcsMngDetail.jsp
|
||||
* @Description : 조건부기소유예 상세화면
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.12.16 조용준 최초 생성
|
||||
* @author 조용주
|
||||
* @since 2021.12.16
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>교육과정관리</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
|
||||
function fncGoList(){
|
||||
var listForm = document.listForm ;
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/trgtCmpltList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
function fncGoSearch(){
|
||||
var form = document.listForm ;
|
||||
form.trgtNm.value=$('#trgtNm').val();
|
||||
form.dBirth.value=$('#dBirth').val();
|
||||
form.action = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/trgtCmpltDetail.do'/>";
|
||||
form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<form:form id="listForm" name="listForm" commandName="vEPrcsDetailVO" method="post">
|
||||
<input type="hidden" name="sspnIdtmtTrgtOrd" value="<c:out value='${info.sspnIdtmtTrgtOrd}'/>"/>
|
||||
<input type="hidden" name="trgtNm" value=""/>
|
||||
<input type="hidden" name="dBirth" value=""/>
|
||||
</form:form>
|
||||
<input type="hidden" name="sspnIdtmtTrgtOrd" value="<c:out value='${info.sspnIdtmtTrgtOrd}'/>"/>
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>수료자 상세</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li>
|
||||
<p>조건부기소유예관리</p>
|
||||
</li>
|
||||
<li><span class="cur_nav">수료자 목록</span></li>
|
||||
<li><span class="cur_nav">수료자 상세</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<!-- list_상세 -->
|
||||
<div class="tb_tit01">
|
||||
<p>수료자 상세</p>
|
||||
</div>
|
||||
<div class="tb_type02">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">의뢰일</th>
|
||||
<td>
|
||||
<div id="calendar">
|
||||
<div class="calendar_wrap">
|
||||
<!-- <input type="text" class="calendar" placeholder="의뢰일" title="의뢰일 선택" id="reqPnttm" name="reqPnttm" value=""> -->
|
||||
<!-- <input type="text" class="calendar" placeholder="의뢰일" title="의뢰일 선택" id="reqPnttm" name="reqPnttm" value=""> -->
|
||||
<c:set var="reqPnttm" value="${fn:substring(info.reqPnttm, 0, 10)}" />
|
||||
<%-- <fmt:formatDate value="${list.reqPnttm }" pattern="yyyy-MM-dd" /> --%>
|
||||
<c:out value="${reqPnttm }" />
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">사건번호</th>
|
||||
<td>
|
||||
<c:out value="${info.vntNmbr }" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">관할청</th>
|
||||
<td>
|
||||
<c:out value="${info.cmptntAthrt }" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">성별</th>
|
||||
<td>
|
||||
<ve:code codeId="COM014" code="${info.sex }"/>
|
||||
</td>
|
||||
<th scope="row">연락처</th>
|
||||
<td>
|
||||
<c:out value="${info.clphone }" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">성명</th>
|
||||
<td>
|
||||
<c:out value="${info.trgtNm }" />
|
||||
</td>
|
||||
<th scope="row">생년월일</th>
|
||||
<td>
|
||||
<c:out value="${info.dBirth }" />
|
||||
</td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<th scope="row">연락처(핸드폰)</th>
|
||||
<td>
|
||||
<input type="text" name="clphone" />
|
||||
|
||||
</td>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<th scope="row">의뢰번호</th>
|
||||
<td>
|
||||
<c:out value="${info.reqNmbr }" />
|
||||
</td>
|
||||
<th scope="row">의뢰상태</th>
|
||||
<td>
|
||||
<ve:code codeId="VEA005" code="${info.reqStateCd }"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">교육상태</th>
|
||||
<td>
|
||||
<ve:code codeId="VEA002" code="${info.eduStateCd }"/>
|
||||
</td>
|
||||
<th scope="row">검사명</th>
|
||||
<td>
|
||||
<c:out value="${info.prsctrNm }" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="input_adress">
|
||||
<th scope="row">
|
||||
<p>주소</p>
|
||||
</th>
|
||||
<td colspan="3">
|
||||
<label for="post" class="label">우편번호 입력</label>
|
||||
<c:out value='${info.post}'/>
|
||||
<div class="detail_address">
|
||||
<c:out value='${info.addr}'/>
|
||||
<c:out value='${info.addrDetail}'/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="tb_tit01">
|
||||
<p>중복 대상자 검색</p>
|
||||
</div>
|
||||
|
||||
<!-- list_top -->
|
||||
<div class="list_top search-only">
|
||||
<div class="list_top_1">
|
||||
<div class="util_right">
|
||||
|
||||
<!-- placeholder를 위한 c:choose 추가 -->
|
||||
<c:choose>
|
||||
<c:when test="${not empty cndtnTrgtInfoMngVO.trgtNm}">
|
||||
<input type="text" id="trgtNm" name="trgtNm" placeholder="이름" value="<c:out value='${cndtnTrgtInfoMngVO.trgtNm }' /> " />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="text" id="trgtNm" name="trgtNm" placeholder="이름" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<c:choose>
|
||||
<c:when test="${not empty cndtnTrgtInfoMngVO.dBirth}">
|
||||
<input type="text" id="dBirth" name="dBirth" placeholder="연락처" value="<c:out value='${cndtnTrgtInfoMngVO.dBirth }' /> " />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="text" id="dBirth" name="dBirth" placeholder="연락처" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<%-- <input type="text" id="searchKeyword" name="searchKeyword" placeholder="검색어를 입력하세요." title="검색어 입력" class="search_input" value="<c:out value='${vEPrcsDetailVO.searchKeyword}'/>"> --%>
|
||||
<button type="button" class="btn_type08" onclick="fncGoSearch(); return false;">검색</button>
|
||||
<!-- <button class="btn_type03" onclick="fncReset(this); return false;">초기화</button> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- list -->
|
||||
<div class="tb_type01">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 10%">
|
||||
<col style="width: 10%">
|
||||
<col style="width: 2px">
|
||||
<col style="width: 2px">
|
||||
<col style="width: 2px">
|
||||
<col style="width: 2px">
|
||||
<col style="width: 10%">
|
||||
<col style="width: 10%">
|
||||
<col style="width: 10%">
|
||||
<col style="width: 2px">
|
||||
<col style="width: 2px">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>의뢰일</th>
|
||||
<th>사건번호</th>
|
||||
<th>관할청</th>
|
||||
<th>생년월일</th>
|
||||
<th>성명</th>
|
||||
<th>성별</th>
|
||||
<th>의뢰번호</th>
|
||||
<th>의뢰상태</th>
|
||||
<th>교육상태</th>
|
||||
<th>주소</th>
|
||||
<th>검사명</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<tr class="listCount" onclick="fncGoDetail('<c:out value="${list.sspnIdtmtTrgtOrd}"/>');" style="cursor:pointer;">
|
||||
<%-- <td onclick="fncGoDetail('<c:out value="${list.sspnIdtmtTrgtOrd}"/>');" style="cursor:pointer;"> --%>
|
||||
<%-- <c:out value='${list.prcsNm}'/> --%>
|
||||
<!-- </td> -->
|
||||
<td>
|
||||
<c:set var="reqPnttm" value="${fn:substring(list.reqPnttm, 0, 10)}" />
|
||||
<%-- <fmt:formatDate value="${list.reqPnttm }" pattern="yyyy-MM-dd" /> --%>
|
||||
<c:out value="${reqPnttm }" />
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.vntNmbr }" />
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.cmptntAthrt }" />
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.dBirth }" />
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.trgtNm }" />
|
||||
</td>
|
||||
<td>
|
||||
<ve:code codeId="COM014" code="${list.sex }"/>
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.reqNmbr }" />
|
||||
</td>
|
||||
<td>
|
||||
<ve:code codeId="VEA005" code="${list.reqStateCd }"/>
|
||||
</td>
|
||||
<td>
|
||||
<ve:code codeId="VEA002" code="${list.eduStateCd }"/>
|
||||
</td>
|
||||
<c:set var="fullAddr" value="${list.addr} ${list.addrDetail}" />
|
||||
<%-- <c:set var="fullAddr" value="${list.addr}" /> --%>
|
||||
<td title="${fullAddr}">
|
||||
${fn:length(fullAddr)> 5 ? fn:substring(fullAddr, 0, 5).concat('...') : ''}
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.prsctrNm }" />
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<c:if test="${empty list}">
|
||||
<tr><td colspan="11"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- btn_wrap -->
|
||||
<div class="btn_wrap btn_layout01">
|
||||
<div class="btn_left">
|
||||
</div>
|
||||
<div class="btn_center">
|
||||
</div>
|
||||
<div class="btn_right">
|
||||
<!-- <button type="button" class="btn_type02" onclick="fncMdfy(); return false;">수정</button> -->
|
||||
<button type="button" class="btn_type03" onclick="fncGoList(); return false;">목록</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //cont -->
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8"
|
||||
pageEncoding="utf-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
<%
|
||||
/**
|
||||
* @Class Name : cndtnEduPrcsMngDetail.jsp
|
||||
* @Description : 조건부기소유예 상세화면
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.12.16 조용준 최초 생성
|
||||
* @author 조용주
|
||||
* @since 2021.12.16
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<title>교육과정관리</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
|
||||
function fncGoList(){
|
||||
var listForm = document.listForm ;
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/trgtCmpltList.do'/>";
|
||||
listForm.submit();
|
||||
}
|
||||
function fncGoSearch(){
|
||||
var form = document.listForm ;
|
||||
form.trgtNm.value=$('#trgtNm').val();
|
||||
form.dBirth.value=$('#dBirth').val();
|
||||
form.action = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/trgtCmpltDetail.do'/>";
|
||||
form.submit();
|
||||
}
|
||||
|
||||
|
||||
// 체크박스O
|
||||
function fnUpdate(){
|
||||
|
||||
var sspnIdtmtTrgtOrdList = [];
|
||||
|
||||
// "chk" 이름을 가진 체크박스가 체크된 항목들을 순회
|
||||
$("input[name='chk']:checked").each(function() {
|
||||
var sspnIdtmtTrgtOrd = $(this).val();
|
||||
sspnIdtmtTrgtOrdList.push(sspnIdtmtTrgtOrd);
|
||||
});
|
||||
|
||||
// 선택된 항목이 없으면 경고 메시지를 표시하고 함수를 종료
|
||||
if (sspnIdtmtTrgtOrdList.length === 0) {
|
||||
alert("선택된 항목이 없습니다. 선택 후 다시 시도하세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var dataToSend = {
|
||||
"sspnIdtmtTrgtOrdList": sspnIdtmtTrgtOrdList
|
||||
, "eduStateCd" : "20"
|
||||
, "sspnIdtmtTrgtOrd" : $('#sspnIdtmtTrgtOrd').val()
|
||||
};
|
||||
|
||||
|
||||
// var url = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/updateEduAplctAprvlCdAjax.do'/>";
|
||||
var url = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/updateTrgtDuplAjax.do'/>";
|
||||
|
||||
|
||||
// AJAX 호출을 통해 서버에 데이터 전송
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url: url,
|
||||
data: $.param(dataToSend, true), // 직렬화 , 컨트롤러에서 @ModelAttribute로 받을 수 있음
|
||||
// contentType : 'application/json',
|
||||
dataType:'json',
|
||||
success:function(returnData){
|
||||
if(returnData.result == "success"){
|
||||
alert("변경 처리 되었습니다.");
|
||||
window.location.reload();
|
||||
}else{
|
||||
alert("변경 중 오류가 발생하였습니다.");
|
||||
}
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
console.error("AJAX Error:", textStatus, errorThrown);
|
||||
console.error("Response:", jqXHR.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<form:form id="listForm" name="listForm" commandName="vEPrcsDetailVO" method="post">
|
||||
<input type="hidden" name="sspnIdtmtTrgtOrd" value="<c:out value='${info.sspnIdtmtTrgtOrd}'/>"/>
|
||||
<input type="hidden" name="trgtNm" value=""/>
|
||||
<input type="hidden" name="dBirth" value=""/>
|
||||
</form:form>
|
||||
<input type="hidden" name="sspnIdtmtTrgtOrd" id="sspnIdtmtTrgtOrd" value="<c:out value='${info.sspnIdtmtTrgtOrd}'/>"/>
|
||||
<!-- cont -->
|
||||
<div class="cont_wrap">
|
||||
<div class="box">
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
<h2>수료자 상세</h2>
|
||||
<ul class="cont_nav">
|
||||
<li class="home"><a href="/"><i></i></a></li>
|
||||
<li>
|
||||
<p>조건부기소유예관리</p>
|
||||
</li>
|
||||
<li><span class="cur_nav">수료자 목록</span></li>
|
||||
<li><span class="cur_nav">수료자 상세</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- //cont_tit -->
|
||||
|
||||
<div class="cont">
|
||||
<!-- list_상세 -->
|
||||
<div class="tb_tit01">
|
||||
<p>수료자 상세</p>
|
||||
</div>
|
||||
<div class="tb_type02">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
<col style="width: 210px;">
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">의뢰일</th>
|
||||
<td>
|
||||
<div id="calendar">
|
||||
<div class="calendar_wrap">
|
||||
<!-- <input type="text" class="calendar" placeholder="의뢰일" title="의뢰일 선택" id="reqPnttm" name="reqPnttm" value=""> -->
|
||||
<!-- <input type="text" class="calendar" placeholder="의뢰일" title="의뢰일 선택" id="reqPnttm" name="reqPnttm" value=""> -->
|
||||
<c:set var="reqPnttm" value="${fn:substring(info.reqPnttm, 0, 10)}" />
|
||||
<%-- <fmt:formatDate value="${list.reqPnttm }" pattern="yyyy-MM-dd" /> --%>
|
||||
<c:out value="${reqPnttm }" />
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">사건번호</th>
|
||||
<td>
|
||||
<c:out value="${info.vntNmbr }" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">관할청</th>
|
||||
<td>
|
||||
<c:out value="${info.cmptntAthrt }" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">성별</th>
|
||||
<td>
|
||||
<ve:code codeId="COM014" code="${info.sex }"/>
|
||||
</td>
|
||||
<th scope="row">연락처</th>
|
||||
<td>
|
||||
<c:out value="${info.clphone }" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">성명</th>
|
||||
<td>
|
||||
<c:out value="${info.trgtNm }" />
|
||||
</td>
|
||||
<th scope="row">생년월일</th>
|
||||
<td>
|
||||
<c:out value="${info.dBirth }" />
|
||||
</td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<th scope="row">연락처(핸드폰)</th>
|
||||
<td>
|
||||
<input type="text" name="clphone" />
|
||||
|
||||
</td>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<th scope="row">의뢰번호</th>
|
||||
<td>
|
||||
<c:out value="${info.reqNmbr }" />
|
||||
</td>
|
||||
<th scope="row">의뢰상태</th>
|
||||
<td>
|
||||
<ve:code codeId="VEA005" code="${info.reqStateCd }"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">교육상태</th>
|
||||
<td>
|
||||
<ve:code codeId="VEA002" code="${info.eduStateCd }"/>
|
||||
</td>
|
||||
<th scope="row">검사명</th>
|
||||
<td>
|
||||
<c:out value="${info.prsctrNm }" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="input_adress">
|
||||
<th scope="row">
|
||||
<p>주소</p>
|
||||
</th>
|
||||
<td colspan="3">
|
||||
<label for="post" class="label">우편번호 입력</label>
|
||||
<c:out value='${info.post}'/>
|
||||
<div class="detail_address">
|
||||
<c:out value='${info.addr}'/>
|
||||
<c:out value='${info.addrDetail}'/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- //list_상세 -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="tb_tit01">
|
||||
<p>중복 대상자 검색</p>
|
||||
</div>
|
||||
|
||||
<!-- list_top -->
|
||||
<div class="list_top search-only">
|
||||
<div class="list_top_1">
|
||||
<div class="util_right">
|
||||
|
||||
<!-- placeholder를 위한 c:choose 추가 -->
|
||||
<c:choose>
|
||||
<c:when test="${not empty cndtnTrgtInfoMngVO.trgtNm}">
|
||||
<input type="text" id="trgtNm" name="trgtNm" placeholder="이름" value="<c:out value='${cndtnTrgtInfoMngVO.trgtNm }' /> " />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="text" id="trgtNm" name="trgtNm" placeholder="이름" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<c:choose>
|
||||
<c:when test="${not empty cndtnTrgtInfoMngVO.dBirth}">
|
||||
<input type="text" id="dBirth" name="dBirth" placeholder="연락처" value="<c:out value='${cndtnTrgtInfoMngVO.dBirth }' /> " />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="text" id="dBirth" name="dBirth" placeholder="연락처" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<%-- <input type="text" id="searchKeyword" name="searchKeyword" placeholder="검색어를 입력하세요." title="검색어 입력" class="search_input" value="<c:out value='${vEPrcsDetailVO.searchKeyword}'/>"> --%>
|
||||
<button type="button" class="btn_type08" onclick="fncGoSearch(); return false;">검색</button>
|
||||
<!-- <button class="btn_type03" onclick="fncReset(this); return false;">초기화</button> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn_wrap btn_layout01" style="margin: 0px 0px 30px 10px;">
|
||||
<div class="btn_left">
|
||||
<button type="button" class="btn_type04" onclick="fnUpdate(); return false;">중복자 이수 처리</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- list -->
|
||||
<div class="tb_type01">
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="width: 2px">
|
||||
<col style="width: 10%">
|
||||
<col style="width: 10%">
|
||||
<col style="width: 2px">
|
||||
<col style="width: 2px">
|
||||
<col style="width: 2px">
|
||||
<col style="width: 2px">
|
||||
<col style="width: 10%">
|
||||
<col style="width: 10%">
|
||||
<col style="width: 10%">
|
||||
<col style="width: 2px">
|
||||
<col style="width: 2px">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>의뢰일</th>
|
||||
<th>사건번호</th>
|
||||
<th>관할청</th>
|
||||
<th>생년월일</th>
|
||||
<th>성명</th>
|
||||
<th>성별</th>
|
||||
<th>의뢰번호</th>
|
||||
<th>의뢰상태</th>
|
||||
<th>교육상태</th>
|
||||
<th>주소</th>
|
||||
<th>검사명</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="list" items="${list}" varStatus="status">
|
||||
<%-- <tr class="listCount" onclick="fncGoDetail('<c:out value="${list.sspnIdtmtTrgtOrd}"/>');" style="cursor:pointer;"> --%>
|
||||
<tr>
|
||||
<%-- <td onclick="fncGoDetail('<c:out value="${list.sspnIdtmtTrgtOrd}"/>');" style="cursor:pointer;"> --%>
|
||||
<%-- <c:out value='${list.prcsNm}'/> --%>
|
||||
<!-- </td> -->
|
||||
<td>
|
||||
<c:if test="${list.eduStateCd ne 20}">
|
||||
<input name="chk"
|
||||
value="${list.sspnIdtmtTrgtOrd}" title="Check" type="checkbox"/>
|
||||
</c:if>
|
||||
</td>
|
||||
<td>
|
||||
<c:set var="reqPnttm" value="${fn:substring(list.reqPnttm, 0, 10)}" />
|
||||
<%-- <fmt:formatDate value="${list.reqPnttm }" pattern="yyyy-MM-dd" /> --%>
|
||||
<c:out value="${reqPnttm }" />
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.vntNmbr }" />
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.cmptntAthrt }" />
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.dBirth }" />
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.trgtNm }" />
|
||||
</td>
|
||||
<td>
|
||||
<ve:code codeId="COM014" code="${list.sex }"/>
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.reqNmbr }" />
|
||||
</td>
|
||||
<td>
|
||||
<ve:code codeId="VEA005" code="${list.reqStateCd }"/>
|
||||
</td>
|
||||
<td>
|
||||
<ve:code codeId="VEA002" code="${list.eduStateCd }"/>
|
||||
</td>
|
||||
<c:set var="fullAddr" value="${list.addr} ${list.addrDetail}" />
|
||||
<%-- <c:set var="fullAddr" value="${list.addr}" /> --%>
|
||||
<td title="${fullAddr}">
|
||||
${fn:length(fullAddr)> 5 ? fn:substring(fullAddr, 0, 5).concat('...') : ''}
|
||||
</td>
|
||||
<td>
|
||||
<c:out value="${list.prsctrNm }" />
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<c:if test="${empty list}">
|
||||
<tr><td colspan="12"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- btn_wrap -->
|
||||
<div class="btn_wrap btn_layout01">
|
||||
<div class="btn_left">
|
||||
</div>
|
||||
<div class="btn_center">
|
||||
</div>
|
||||
<div class="btn_right">
|
||||
<!-- <button type="button" class="btn_type02" onclick="fncMdfy(); return false;">수정</button> -->
|
||||
<button type="button" class="btn_type03" onclick="fncGoList(); return false;">목록</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //cont -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user