2024-03-12 16:06 기소유예 과정관리 삭제 처리

This commit is contained in:
myname 2024-03-12 16:06:32 +09:00
parent 639959a275
commit 1c912ba1c8
6 changed files with 105 additions and 7 deletions

View File

@ -414,7 +414,51 @@ public class CndtnPrcsInfoMngController {
return "/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngMdfy";
}
/**
* 조건부기소유예 신청기간 삭제 - useYn-D 처리
*/
@RequestMapping("/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngDelAjax.do")
public ModelAndView cndtnEduPrcsMngDelAjax(
@ModelAttribute("vEPrcsDetailVO") VEPrcsDetailVO vEPrcsDetailVO
, ModelMap model
//, RedirectAttributes redirectAttributes
, 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(); //권한에 따른 로그인 정보 가져오기
VEPrcsDetailVO tvEPrcsDetailVO = new VEPrcsDetailVO();
tvEPrcsDetailVO.setPrcsOrd(vEPrcsDetailVO.getPrcsOrd());
tvEPrcsDetailVO.setLastUpdusrId(loginVO.getUniqId()); //강의구분코드 VE0011 10-청소년강의, 20-성인강의, 30-체험, 50-기반강화, 60-조건부
//tvEPrcsDetailVO.setFrstRegisterId(loginVO.getUniqId()); //esntl_id
tvEPrcsDetailVO.setUseYn("D");
//vEPrcsAplctPrdService.update(tvEPrcsDetailVO);
vEPrcsDetailVO.setLastUpdusrId(loginVO.getUniqId()); //esntl_id
vEPrcsService.update(tvEPrcsDetailVO);
modelAndView.addObject("result", "success");
return modelAndView;
}
@RequestMapping("/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctMngList.do")
public String cndtnEduPrcsAplctMngList(

View File

@ -1068,7 +1068,8 @@
ELSE 0
END AS qestRsltExists,
a.APRVL_CD AS aprvlCd ,
a.APRVL_CD AS aprvlCd,
vpap.ddln_cd AS ddlnCd,
vadi.APLCT_STATE_CD AS aplctStateCd,
vadi.CNCL_ATCH_FILE_ID AS cnclAtchFileId,
vadi.CNCL_CN AS cnclCn,

View File

@ -44,6 +44,33 @@
detailForm.submit();
}
//삭제 - useYn-D 처리
function fncDel(){
var data = new FormData(document.getElementById("detailForm"));
if(confirm("삭제하시겠습니까?\n데이터 복구가 안됩니다.")){
var url = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngDelAjax.do'/>";
console.log(data);
$.ajax({
type:"POST",
url: url,
data: data,
dataType:'json',
async: false,
processData: false,
contentType: false,
cache: false,
success:function(returnData){
if(returnData.result == "success"){
alert("삭제되었습니다.");
fncGoList();
}
},
error:function(request , status, error){
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
}
});
}
}
</script>
</head>
@ -136,6 +163,7 @@
<!-- btn_wrap -->
<div class="btn_wrap btn_layout01">
<div class="btn_left">
<button type="button" class="btn_type02" onclick="fncDel(); return false;">삭제</button>
</div>
<div class="btn_center">
</div>

View File

@ -483,7 +483,7 @@
</c:if>
<c:if test="${(info.aprvlCd eq '10' or info.aprvlCd eq '20') and info.ddlnCd eq '20'}">
<!-- 신청이고 교육확정이 아니면 취소 가능 하도록 버튼 노출 할것. -->
<button type="button" class="btnType05" onclick="fncCancelUserToAdmin('${infoAplctOrd.eduAplctOrd}')">취소신청</button>
<%-- <button type="button" class="btnType05" onclick="fncCancelUserToAdmin('${infoAplctOrd.eduAplctOrd}')">취소신청</button> --%>
</c:if>

View File

@ -697,13 +697,13 @@ $(document).ready(function(){
<td>
<c:out value="${list.nosCnt1}"/>/<c:out value="${list.nos}"/>
</td>
<td class="ddlnCdStts">
<td class="ddlnCdStts">
<c:choose>
<c:when test="${not empty list.aprvlCd}">
<kc:code codeId="VE0003" code="${list.aprvlCd}"/>
<c:when test="${not empty list.ddlnCd}">
<kc:code codeId="VEA004" code="${list.ddlnCd}"/>
</c:when>
<c:otherwise>
<kc:code codeId="VEA004" code="${list.ddlnCd}"/>
<kc:code codeId="VE0003" code="${list.aprvlCd}"/>
</c:otherwise>
</c:choose>
</td>

View File

@ -479,6 +479,7 @@ $(document).ready(function(){
<col style="width:10%;">
<col style="width:13%;">
<col style="width:13%;">
<col style="width:10%;">
<%-- <col style="width:13%;"> --%>
</colgroup>
<thead>
@ -487,6 +488,7 @@ $(document).ready(function(){
<th scope="col">교육일자</th>
<th scope="col">신청결과</th>
<th scope="col">설문조사</th>
<th scope="col">비고</th>
<!-- <th scope="col">이수증</th> -->
</tr>
</thead>
@ -511,6 +513,8 @@ $(document).ready(function(){
</td>
<td>
<!--
ve_edu_aplct
aprvl_cd - 교육신청에 대한 상태
10 요청
120 선정완료
140 선정취소
@ -522,7 +526,28 @@ $(document).ready(function(){
70 수정요청
80 수정완료
90 교육미확정
vea_aplct_detail_info
aprvl_state_cd - 신청된 교육에 대한 상태
VEA003 10 미이수
VEA003 20 이수완료
VEA003 30 취소
VEA003 35 취소요청
VEA003 40 취소반려
VEA003 50 반려
ve_prcs_aplct_prd
ddln_cd - 교육과정의 진행 상태
VEA004 10 신청마감
VEA004 20 교육확정
-->
@
<kc:code codeId="VEA003" code="${list.aplctStateCd }"/>
@
<kc:code codeId="VE0003" code="${list.aprvlCd}"/>
@
<c:choose>
<c:when test="${not empty list.aplctStateCd }">
<!--