2024-03-05 11:48 조건부기소유예 삭제 기능 추가
This commit is contained in:
parent
68e3422948
commit
782996ba9b
@ -2149,7 +2149,48 @@ public class CndtnPrcsInfoMngController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 조건부기소유예 신청기간 삭제 - useYn-D 처리
|
||||||
|
*/
|
||||||
|
@RequestMapping("/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngDelAjax.do")
|
||||||
|
public ModelAndView cndtnEduPrcsAplctPrdMngDelAjax(
|
||||||
|
@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.setPrcsAplctPrdOrd(vEPrcsDetailVO.getPrcsAplctPrdOrd());
|
||||||
|
tvEPrcsDetailVO.setLastUpdusrId(loginVO.getUniqId()); //강의구분코드 VE0011 10-청소년강의, 20-성인강의, 30-체험, 50-기반강화, 60-조건부
|
||||||
|
tvEPrcsDetailVO.setFrstRegisterId(loginVO.getUniqId()); //esntl_id
|
||||||
|
tvEPrcsDetailVO.setUseYn("D");
|
||||||
|
|
||||||
|
vEPrcsAplctPrdService.update(tvEPrcsDetailVO);
|
||||||
|
|
||||||
|
|
||||||
|
modelAndView.addObject("result", "success");
|
||||||
|
|
||||||
|
return modelAndView;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -404,6 +404,10 @@
|
|||||||
AND a.lctr_div_cd=#lctrDivCd#
|
AND a.lctr_div_cd=#lctrDivCd#
|
||||||
</isNotEmpty>
|
</isNotEmpty>
|
||||||
|
|
||||||
|
<isEqual property="lctrDivCd" compareValue="60">
|
||||||
|
AND NVL(a.use_yn,'Y')!='D'
|
||||||
|
</isEqual>
|
||||||
|
|
||||||
<isNotEmpty property="useYn">
|
<isNotEmpty property="useYn">
|
||||||
AND a.use_yn=#useYn#
|
AND a.use_yn=#useYn#
|
||||||
</isNotEmpty>
|
</isNotEmpty>
|
||||||
@ -512,6 +516,10 @@
|
|||||||
AND a.lctr_div_cd=#lctrDivCd#
|
AND a.lctr_div_cd=#lctrDivCd#
|
||||||
</isNotEmpty>
|
</isNotEmpty>
|
||||||
|
|
||||||
|
<isEqual property="lctrDivCd" compareValue="60">
|
||||||
|
AND NVL(a.use_yn,'Y')!='D'
|
||||||
|
</isEqual>
|
||||||
|
|
||||||
<isNotEmpty property="useYn">
|
<isNotEmpty property="useYn">
|
||||||
AND a.use_yn=#useYn#
|
AND a.use_yn=#useYn#
|
||||||
</isNotEmpty>
|
</isNotEmpty>
|
||||||
@ -596,6 +604,10 @@
|
|||||||
AND a.lctr_div_cd=#lctrDivCd#
|
AND a.lctr_div_cd=#lctrDivCd#
|
||||||
</isNotEmpty>
|
</isNotEmpty>
|
||||||
|
|
||||||
|
<isEqual property="lctrDivCd" compareValue="60">
|
||||||
|
AND NVL(a.use_yn,'Y')!='D'
|
||||||
|
</isEqual>
|
||||||
|
|
||||||
<isNotEmpty property="prcsAplctPrdOrd">
|
<isNotEmpty property="prcsAplctPrdOrd">
|
||||||
AND a.prcs_aplct_prd_ord=#prcsAplctPrdOrd#
|
AND a.prcs_aplct_prd_ord=#prcsAplctPrdOrd#
|
||||||
</isNotEmpty>
|
</isNotEmpty>
|
||||||
|
|||||||
@ -68,6 +68,7 @@
|
|||||||
|
|
||||||
function fncGoList(){
|
function fncGoList(){
|
||||||
var listForm = document.listForm ;
|
var listForm = document.listForm ;
|
||||||
|
listForm.prcsAplctPrdOrd.value="";
|
||||||
listForm.action = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngList.do'/>";
|
listForm.action = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngList.do'/>";
|
||||||
listForm.submit();
|
listForm.submit();
|
||||||
}
|
}
|
||||||
@ -83,8 +84,34 @@
|
|||||||
detailForm.action = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngMdfy.do'/>";
|
detailForm.action = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngMdfy.do'/>";
|
||||||
detailForm.submit();
|
detailForm.submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//삭제 - useYn-D 처리
|
||||||
|
function fncDel(){
|
||||||
|
var data = new FormData(document.getElementById("modyfiForm"));
|
||||||
|
if(confirm("삭제하시겠습니까?\n데이터 복구가 안됩니다.")){
|
||||||
|
var url = "<c:url value='/kccadr/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngDelAjax.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);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function fn_delInstr(data){
|
function fn_delInstr(data){
|
||||||
document.instrForm.userId.value = data ;
|
document.instrForm.userId.value = data ;
|
||||||
@ -407,10 +434,11 @@
|
|||||||
<!-- btn_wrap -->
|
<!-- btn_wrap -->
|
||||||
<div class="btn_wrap btn_layout01">
|
<div class="btn_wrap btn_layout01">
|
||||||
<div class="btn_left">
|
<div class="btn_left">
|
||||||
|
<button type="button" class="btn_type02" onclick="fncDel(); return false;">삭제</button>
|
||||||
</div>
|
</div>
|
||||||
<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="fncMdfy(); return false;">수정</button>
|
<button type="button" class="btn_type02" onclick="fncMdfy(); 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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user