관리자 기반강화 설문조사 완료
This commit is contained in:
parent
615b6a6fc6
commit
c634d5ea14
@ -167,4 +167,6 @@ public interface EgovQustnrRespondInfoService {
|
|||||||
public List<QustnrRespondInfoVO> selectQustnrDetail(QustnrRespondInfoVO qustnrVO);
|
public List<QustnrRespondInfoVO> selectQustnrDetail(QustnrRespondInfoVO qustnrVO);
|
||||||
|
|
||||||
public List<QustnrRespondInfoVO> selectQustnr5060(VEPrcsDetailVO vEPrcsDetailVO);
|
public List<QustnrRespondInfoVO> selectQustnr5060(VEPrcsDetailVO vEPrcsDetailVO);
|
||||||
|
|
||||||
|
public void deleteStatusFormlettnqestnrrslt(QustnrRespondInfoVO item);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -254,5 +254,9 @@ public class EgovQustnrRespondInfoServiceImpl extends EgovAbstractServiceImpl im
|
|||||||
public List<QustnrRespondInfoVO> selectQustnr5060(VEPrcsDetailVO vEPrcsDetailVO) {
|
public List<QustnrRespondInfoVO> selectQustnr5060(VEPrcsDetailVO vEPrcsDetailVO) {
|
||||||
return dao.selectQustnr5060(vEPrcsDetailVO);
|
return dao.selectQustnr5060(vEPrcsDetailVO);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public void deleteStatusFormlettnqestnrrslt(QustnrRespondInfoVO item) {
|
||||||
|
dao.deleteStatusFormlettnqestnrrslt(item);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -219,4 +219,8 @@ public class QustnrRespondInfoDao extends EgovAbstractDAO {
|
|||||||
public List<QustnrRespondInfoVO> selectQustnr5060(VEPrcsDetailVO vEPrcsDetailVO) {
|
public List<QustnrRespondInfoVO> selectQustnr5060(VEPrcsDetailVO vEPrcsDetailVO) {
|
||||||
return (List<QustnrRespondInfoVO>) list("QustnrRespondInfo.selectQustnr5060", vEPrcsDetailVO);
|
return (List<QustnrRespondInfoVO>) list("QustnrRespondInfo.selectQustnr5060", vEPrcsDetailVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void deleteStatusFormlettnqestnrrslt(QustnrRespondInfoVO item) {
|
||||||
|
delete("QustnrRespondInfo.deleteStatusFormlettnqestnrrslt", item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -47,6 +47,8 @@ import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsDetailVO;
|
|||||||
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsMIXService;
|
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsMIXService;
|
||||||
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsOnlnCntntService;
|
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsOnlnCntntService;
|
||||||
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsService;
|
import kcc.ve.instr.tngrVisitEdu.prcsInfo.service.VEPrcsService;
|
||||||
|
import kcc.ve.oprtn.cndtnSspnIdtmt.trgtMng.service.CndtnTrgtMngService;
|
||||||
|
import kcc.ve.oprtn.cndtnSspnIdtmt.trgtMng.service.CndtnTrgtMngVO;
|
||||||
import kcc.ve.oprtn.qestnr.service.VEALettnQestnrMIXService;
|
import kcc.ve.oprtn.qestnr.service.VEALettnQestnrMIXService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -168,6 +170,9 @@ public class FndtnEnhanceTrnController {
|
|||||||
@Resource(name = "egovQustnrRespondInfoService")
|
@Resource(name = "egovQustnrRespondInfoService")
|
||||||
private EgovQustnrRespondInfoService egovQustnrRespondInfoService;
|
private EgovQustnrRespondInfoService egovQustnrRespondInfoService;
|
||||||
|
|
||||||
|
//기소 대상자 관리
|
||||||
|
@Resource(name = "cndtnTrgtInfoMngService")
|
||||||
|
private CndtnTrgtMngService cndtnTrgtInfoMngService;
|
||||||
|
|
||||||
|
|
||||||
// 설문 util
|
// 설문 util
|
||||||
@ -772,7 +777,6 @@ public class FndtnEnhanceTrnController {
|
|||||||
modelAndView.addObject("msg", "로그인 해주세요.");
|
modelAndView.addObject("msg", "로그인 해주세요.");
|
||||||
return modelAndView;
|
return modelAndView;
|
||||||
}
|
}
|
||||||
|
|
||||||
qustnrRespondInfoVO.getResultList().stream()
|
qustnrRespondInfoVO.getResultList().stream()
|
||||||
.forEach(item -> {
|
.forEach(item -> {
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,6 @@ public class CndtnTrgtMngServiceImpl implements CndtnTrgtMngService {
|
|||||||
public int findCntreqNmber(String reqNmbrTemp) {
|
public int findCntreqNmber(String reqNmbrTemp) {
|
||||||
return cndtnTrgtInfoMngDAO.findCntreqNmber(reqNmbrTemp);
|
return cndtnTrgtInfoMngDAO.findCntreqNmber(reqNmbrTemp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
//C
|
//C
|
||||||
public void insert(VEPrcsDetailVO vEPrcsDetailVO) throws Exception {
|
public void insert(VEPrcsDetailVO vEPrcsDetailVO) throws Exception {
|
||||||
|
|||||||
@ -1084,11 +1084,6 @@ public class FndthPrcsAplctPrdMngController {
|
|||||||
model.addAttribute("nonRespondents", nonRespondents);
|
model.addAttribute("nonRespondents", nonRespondents);
|
||||||
model.addAttribute("responseRate", String.format("%.2f", responseRate) + "%");
|
model.addAttribute("responseRate", String.format("%.2f", responseRate) + "%");
|
||||||
|
|
||||||
System.out.println("참석자: " + totalParticipants);
|
|
||||||
System.out.println("응답자: " + respondents);
|
|
||||||
System.out.println("무응답: " + nonRespondents);
|
|
||||||
System.out.println("응답률: " + String.format("%.2f", responseRate) + "%");
|
|
||||||
|
|
||||||
|
|
||||||
return "/oprtn/fndthEnhanceTrn/popup/lctrEvalPopup";
|
return "/oprtn/fndthEnhanceTrn/popup/lctrEvalPopup";
|
||||||
}
|
}
|
||||||
@ -1126,6 +1121,18 @@ System.out.println("응답률: " + String.format("%.2f", responseRate) + "%");
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @methodName : adminMergeSrvyInfoAjax
|
||||||
|
* @author : 이호영
|
||||||
|
* @date : 2023.11.27
|
||||||
|
* @description : 관리자 설문결과 update
|
||||||
|
* @param request
|
||||||
|
* @param model
|
||||||
|
* @param veEduAplctVO
|
||||||
|
* @param qustnrRespondInfoVO
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
@RequestMapping("/kccadr/oprtn/fndthEnhanceTrn/mergeSrvyInfoAjax.do")
|
@RequestMapping("/kccadr/oprtn/fndthEnhanceTrn/mergeSrvyInfoAjax.do")
|
||||||
public ModelAndView adminMergeSrvyInfoAjax( HttpServletRequest request
|
public ModelAndView adminMergeSrvyInfoAjax( HttpServletRequest request
|
||||||
, ModelMap model
|
, ModelMap model
|
||||||
@ -1175,21 +1182,58 @@ System.out.println("응답률: " + String.format("%.2f", responseRate) + "%");
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 설문 문항 결과 등록
|
}catch(Exception ex) {
|
||||||
// for(int i=0; i < qustnrRespondInfoVO.getResultList().size(); i++) {
|
System.out.println("Exception vEEduAplctOnlnService.updateBulk");
|
||||||
// qustnrRespondInfoVO.getResultList().get(i).setQustnrTmplatId(qustnrRespondInfoVO.getQustnrTmplatId());
|
}
|
||||||
// qustnrRespondInfoVO.getResultList().get(i).setRespondId(loginVO.getId());
|
modelAndView.addObject("result", "success");
|
||||||
// qustnrRespondInfoVO.getResultList().get(i).setFrstRegisterId(loginVO.getId());
|
return modelAndView;
|
||||||
// qustnrRespondInfoVO.getResultList().get(i).setLastUpdusrId(loginVO.getId());
|
}
|
||||||
// qustnrRespondInfoVO.getResultList().get(i).setLastUpdusrId(loginVO.getId());
|
|
||||||
// qustnrRespondInfoVO.getResultList().get(i).setEduAplctOrd(veEduAplctVO.getEduAplctOrd());
|
/**
|
||||||
|
* @methodName : adminDelSrvyInfoAjax
|
||||||
|
* @author : 이호영
|
||||||
|
* @date : 2023.11.27
|
||||||
|
* @description : 관리자 설문결과 del
|
||||||
|
* @param request
|
||||||
|
* @param model
|
||||||
|
* @param veEduAplctVO
|
||||||
|
* @param qustnrRespondInfoVO
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@RequestMapping("/kccadr/oprtn/fndthEnhanceTrn/delSrvyInfoAjax.do")
|
||||||
|
public ModelAndView adminDelSrvyInfoAjax( HttpServletRequest request
|
||||||
|
, ModelMap model
|
||||||
|
, VEEduAplctVO veEduAplctVO
|
||||||
|
, QustnrRespondInfoVO qustnrRespondInfoVO) throws Exception {
|
||||||
|
ModelAndView modelAndView = new ModelAndView();
|
||||||
|
modelAndView.setViewName("jsonView");
|
||||||
|
try {
|
||||||
|
|
||||||
|
LoginVO loginVO = checkLoginUtil.getAuthLoginVO();
|
||||||
|
if (loginVO == null) {
|
||||||
|
modelAndView.addObject("result", "fail");
|
||||||
|
modelAndView.addObject("msg", "로그인 해주세요.");
|
||||||
|
return modelAndView;
|
||||||
|
}
|
||||||
|
|
||||||
|
qustnrRespondInfoVO.getResultList().stream()
|
||||||
|
.forEach(item -> {
|
||||||
|
|
||||||
|
item.setQustnrTmplatId(qustnrRespondInfoVO.getQustnrTmplatId());
|
||||||
|
item.setRespondId(qustnrRespondInfoVO.getRespondId());
|
||||||
|
item.setFrstRegisterId(qustnrRespondInfoVO.getRespondId());
|
||||||
|
item.setLastUpdusrId(loginVO.getId());
|
||||||
|
item.setEduAplctOrd(veEduAplctVO.getEduAplctOrd());
|
||||||
|
|
||||||
|
try {
|
||||||
|
egovQustnrRespondInfoService.deleteStatusFormlettnqestnrrslt(item);
|
||||||
|
} catch (Exception e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// if("update".equals(qustnrRespondInfoVO.getQustnrIemType())) {
|
|
||||||
// egovQustnrRespondInfoService.updateSrvyInfo(qustnrRespondInfoVO.getResultList().get(i));
|
|
||||||
// }else {
|
|
||||||
// egovQustnrRespondInfoService.insertSrvyInfo(qustnrRespondInfoVO.getResultList().get(i));
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}catch(Exception ex) {
|
}catch(Exception ex) {
|
||||||
System.out.println("Exception vEEduAplctOnlnService.updateBulk");
|
System.out.println("Exception vEEduAplctOnlnService.updateBulk");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -755,4 +755,11 @@
|
|||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<delete id="QustnrRespondInfo.deleteStatusFormlettnqestnrrslt" parameterClass="QustnrRespondInfoVO">
|
||||||
|
/* QustnrRespondInfo.deleteChasiStatusFormlettnqestnrrslt */
|
||||||
|
DELETE FROM lettnqestnrrsltDetail
|
||||||
|
WHERE 1=1
|
||||||
|
AND edu_aplct_ord = #eduAplctOrd#
|
||||||
|
AND respond_id = #respondId#
|
||||||
|
</delete>
|
||||||
</sqlMap>
|
</sqlMap>
|
||||||
@ -128,7 +128,6 @@
|
|||||||
AND sspn_idtmt_trgt_ord = #sspnIdtmtTrgtOrd#
|
AND sspn_idtmt_trgt_ord = #sspnIdtmtTrgtOrd#
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<!-- 강사 수정 C -->
|
<!-- 강사 수정 C -->
|
||||||
<update id="cndtnTrgtInfoMngDAO.update" parameterClass="CndtnPrcsInfoMngVO">
|
<update id="cndtnTrgtInfoMngDAO.update" parameterClass="CndtnPrcsInfoMngVO">
|
||||||
|
|
||||||
|
|||||||
@ -181,6 +181,38 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fnDel(){
|
||||||
|
|
||||||
|
if(confirm("설문결과를 삭제 하시겠습니까?")){
|
||||||
|
var data = new FormData(document.getElementById("createForm"));
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type:"POST"
|
||||||
|
,url:"${pageContext.request.contextPath}/kccadr/oprtn/fndthEnhanceTrn/delSrvyInfoAjax.do"
|
||||||
|
,data: data
|
||||||
|
,dataType:'json'
|
||||||
|
,async: false
|
||||||
|
,processData: false
|
||||||
|
,contentType: false
|
||||||
|
,cache: false
|
||||||
|
,success:function(returnData){
|
||||||
|
if(returnData.result == 'success'){
|
||||||
|
|
||||||
|
alert("설문결과가 삭제 되었습니다.");
|
||||||
|
window.opener.location.reload();
|
||||||
|
self.close();
|
||||||
|
}else if(returnData.result == 'fail'){
|
||||||
|
alert(returnData.msg);
|
||||||
|
// location.href="${pageContext.request.contextPath}/web/user/login/ssoLogin.do?test=test";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
,error:function(request , status, error){
|
||||||
|
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -270,6 +302,7 @@
|
|||||||
<div class="btn_center">
|
<div class="btn_center">
|
||||||
|
|
||||||
<button type="button" class="btn_type04" onclick="fnSave()">수정</button>
|
<button type="button" class="btn_type04" onclick="fnSave()">수정</button>
|
||||||
|
<button type="button" class="btn_type05" onclick="fnDel()">삭제</button>
|
||||||
<button type="button" class="btn_type02" onclick="fncPopClose()">닫기</button>
|
<button type="button" class="btn_type02" onclick="fncPopClose()">닫기</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn_right">
|
<div class="btn_right">
|
||||||
|
|||||||
@ -423,6 +423,7 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
<!-- 강의만족도 결과 등록 팝업 -->
|
<!-- 강의만족도 결과 등록 팝업 -->
|
||||||
<form id="srvyPopupForm" name="srvyPopupForm" method="post" >
|
<form id="srvyPopupForm" name="srvyPopupForm" method="post" >
|
||||||
|
<input type="hidden" name="lctrDivCd" id="lctrDivCd" value="50">
|
||||||
<input type="hidden" name="eduAplctOrd" id="eduAplctOrd" value="">
|
<input type="hidden" name="eduAplctOrd" id="eduAplctOrd" value="">
|
||||||
<input type="hidden" name="qustnrTmplatId" id="qustnrTmplatId" value="${qustnrTmplatId}">
|
<input type="hidden" name="qustnrTmplatId" id="qustnrTmplatId" value="${qustnrTmplatId}">
|
||||||
<input type="hidden" name="qestnrId" id="qestnrId" value="${qestnrId}">
|
<input type="hidden" name="qestnrId" id="qestnrId" value="${qestnrId}">
|
||||||
|
|||||||
@ -655,6 +655,8 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
<!-- 강의만족도 결과 등록 팝업 -->
|
<!-- 강의만족도 결과 등록 팝업 -->
|
||||||
<form id="srvyPopupForm" name="srvyPopupForm" method="post" >
|
<form id="srvyPopupForm" name="srvyPopupForm" method="post" >
|
||||||
|
|
||||||
|
<input type="hidden" name="lctrDivCd" id="lctrDivCd" value="60">
|
||||||
<input type="hidden" name="eduAplctOrd" id="eduAplctOrd" value="">
|
<input type="hidden" name="eduAplctOrd" id="eduAplctOrd" value="">
|
||||||
<input type="hidden" name="qustnrTmplatId" id="qustnrTmplatId" value="${qustnrTmplatId}">
|
<input type="hidden" name="qustnrTmplatId" id="qustnrTmplatId" value="${qustnrTmplatId}">
|
||||||
<input type="hidden" name="qestnrId" id="qestnrId" value="${qestnrId}">
|
<input type="hidden" name="qestnrId" id="qestnrId" value="${qestnrId}">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user