2024-06-18 성인 찾교 & 청소년 찾교 QR 작업, 기소유예 사용자 확정 후 취소 프로세스 제거
This commit is contained in:
parent
520a12452b
commit
e2c09d8f43
@ -475,6 +475,24 @@ public class EduRsltMngAdultController {
|
||||
|
||||
vEAsgnmNotiService.insertAsgnmNotiInfo(vEAsgnmNotiVO);
|
||||
|
||||
|
||||
//사용자 교육신청 차시 리스트 - 4 qr===============================================
|
||||
VEEduChasiVO vEEduChasiQR = new VEEduChasiVO();
|
||||
vEEduChasiQR.setEduAplctOrd(vEEduAplctVO.getEduAplctOrd());
|
||||
vEEduChasiQR.setEduChasiOrd(vEEduAplctVO.getEduChasiOrd());
|
||||
vEEduChasiQR.setInstrDiv(VeConstants.LCTR_DIV_CD_20);
|
||||
vEEduChasiQR.setPageIndex(0);
|
||||
|
||||
vEEduChasiQR.setSiteId("20"); //설문정보를 위해서 설문지의 대상값을 넣는다. VE0011 10-청소년, 20-성인,30-체험, 40-외부, 50-기반, 60-기소
|
||||
|
||||
//List<VEEduChasiVO> vEEduChasiVOList = vEEduMIXService.selectChasiList(vEEduChasiVO);
|
||||
List<VEEduChasiVO> vEEduChasiQRList = vEEduMIXService.selectChasiList202312(vEEduChasiQR);
|
||||
|
||||
//복호화
|
||||
vEEduChasiQRList = egovCryptoUtil.decryptVEEduChasiVOList(vEEduChasiQRList);
|
||||
|
||||
model.addAttribute("chasiQr", vEEduChasiQRList);
|
||||
|
||||
|
||||
return "oprtn/adultVisitEdu/eduRsltMngDetail";
|
||||
}
|
||||
|
||||
@ -511,7 +511,64 @@ public class EduRsltMngTngrController {
|
||||
return "oprtn/tngrVisitEdu/popup/chasiStatusPopup";
|
||||
}
|
||||
|
||||
/**
|
||||
* 교육결과관리 상세 화면
|
||||
*/
|
||||
@RequestMapping("popup/chasiQRPopup.do")
|
||||
public String chasiQRPopup(
|
||||
//@ModelAttribute("vEEduAplctVO") VEEduAplctVO vEEduAplctVO
|
||||
@ModelAttribute("vEEduChasiVO") VEEduChasiVO vEEduChasiVO
|
||||
, ModelMap model
|
||||
, HttpSession session
|
||||
, HttpServletRequest request
|
||||
) throws Exception {
|
||||
|
||||
//설문 정보(설문지정보, 문항정보)
|
||||
try {
|
||||
//qustnrCommonUtil._qustnrQesItm(model, p_siteId, p_siteIdCd, p_qestnrTmplatId, p_vEALettnQestnrMIXService, p_egovQustnrRespondInfoService)
|
||||
|
||||
/*
|
||||
model = qustnrCommonUtil._qustnrQesItm(
|
||||
model
|
||||
, VeConstants.LCTR_DIV_CD_10 //청소년 -10, 성인-20, ...VE0012
|
||||
, "10" //10-기본설문, 20-신청자설문, 30-강사설문 VEA012
|
||||
, "QTMPLA_0000000000001"
|
||||
, vEALettnQestnrMIXService
|
||||
, egovQustnrRespondInfoService
|
||||
, vEEduAplctVO.getEduAplctOrd()
|
||||
, vEEduAplctVO.getEduChasiOrd()
|
||||
);
|
||||
*/
|
||||
|
||||
}catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
System.out.println("================================= Comtnqustnrqesitm =================================");
|
||||
|
||||
|
||||
//답변정보
|
||||
try{
|
||||
/*
|
||||
model = qustnrCommonUtil._chasiSrvyList(
|
||||
model
|
||||
, VeConstants.LCTR_DIV_CD_10 //청소년 -10, 성인-20, ...VE0012
|
||||
, "10" //10-기본설문, 20-신청자설문, 30-강사설문 VEA012
|
||||
, vEEduAplctVO.getEduAplctOrd()
|
||||
, vEEduAplctVO.getEduChasiOrd()
|
||||
, vEALettnQestnrMIXService
|
||||
);
|
||||
*/
|
||||
|
||||
}catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
System.out.println("=============================================chasiSrvyList=============================================");
|
||||
|
||||
return "oprtn/tngrVisitEdu/popup/chasiQRPopup";
|
||||
}
|
||||
|
||||
/**
|
||||
* 교육설문 수정 - 청소년/성인 공통
|
||||
*/
|
||||
@ -860,6 +917,26 @@ public class EduRsltMngTngrController {
|
||||
}catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
//사용자 교육신청 차시 리스트 - 4 qr===============================================
|
||||
VEEduChasiVO vEEduChasiQR = new VEEduChasiVO();
|
||||
vEEduChasiQR.setEduAplctOrd(vEEduAplctVO.getEduAplctOrd());
|
||||
vEEduChasiQR.setEduChasiOrd(vEEduAplctVO.getEduChasiOrd());
|
||||
vEEduChasiQR.setInstrDiv(VeConstants.LCTR_DIV_CD_20);
|
||||
vEEduChasiQR.setPageIndex(0);
|
||||
|
||||
vEEduChasiQR.setSiteId("10"); //설문정보를 위해서 설문지의 대상값을 넣는다. VE0011 10-청소년, 20-성인,30-체험, 40-외부, 50-기반, 60-기소
|
||||
|
||||
//List<VEEduChasiVO> vEEduChasiVOList = vEEduMIXService.selectChasiList(vEEduChasiVO);
|
||||
List<VEEduChasiVO> vEEduChasiQRList = vEEduMIXService.selectChasiList202312(vEEduChasiQR);
|
||||
|
||||
//복호화
|
||||
vEEduChasiQRList = egovCryptoUtil.decryptVEEduChasiVOList(vEEduChasiQRList);
|
||||
|
||||
model.addAttribute("chasiQr", vEEduChasiQRList);
|
||||
|
||||
|
||||
return "oprtn/tngrVisitEdu/eduRsltMngDetail";
|
||||
}
|
||||
|
||||
|
||||
@ -360,6 +360,34 @@
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
// 만족도 평가 등록/수정 팝업(청소년, 성인 별도임)
|
||||
function fn_chasiQRPop(
|
||||
id //aplctOrd
|
||||
, chId //chasiOrd
|
||||
, p_site_id_cd //10,20,30
|
||||
, p_action //select, insert
|
||||
, p_qustnrTmplatId //select, insert
|
||||
, p_qestnrId //select, insert
|
||||
, p_qustnrRespondId //select, insert
|
||||
) {
|
||||
var form = document.chasiStatusPopForm;
|
||||
|
||||
form.eduAplctOrd.value=id;
|
||||
form.eduChasiOrd.value=chId;
|
||||
form.siteIdCd.value=p_site_id_cd;
|
||||
form.qustnrTmplatId.value=p_qustnrTmplatId;
|
||||
form.qestnrId.value=p_qestnrId;
|
||||
form.qustnrRespondId.value=p_qustnrRespondId;
|
||||
|
||||
//form.action = "${pageContext.request.contextPath}/web/ve/aplct/cpyrgExprnClsrm/scholInfo/popup/qustnrQRPrintPopList.do";
|
||||
form.action = "<c:url value='/kccadr/oprtn/tngrVisitEdu/popup/chasiQRPopup.do'/>";
|
||||
|
||||
|
||||
window.open("#", "_chasiQRPop", "scrollbars = no, top=100px, left=100px, height=750px, width=830px");
|
||||
form.target = "_chasiQRPop";
|
||||
form.submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
@ -367,6 +395,12 @@
|
||||
<form:form id="chasiStatusPopForm" name="chasiStatusPopForm" action="">
|
||||
<input type="hidden" name="eduAplctOrd" id="eduAplctOrd" value="<c:out value="${vEEduAplctVO.eduAplctOrd}" />" />
|
||||
<input type="hidden" name="eduChasiOrd" value="<c:out value="${vEEduAplctVO.eduChasiOrd}" />" />
|
||||
|
||||
<input type="hidden" name="siteIdCd" value="" />
|
||||
<input type="hidden" name="qustnrTmplatId" value="" />
|
||||
<input type="hidden" name="qestnrId" value="" />
|
||||
<input type="hidden" name="qustnrRespondId" value="" />
|
||||
<input type="hidden" name="instrDiv" value="10" />
|
||||
</form:form>
|
||||
<form:form id="listForm" name="listForm" method="post" onsubmit="return false;">
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${vEEduAplctVO.pageIndex}' />"/>
|
||||
@ -930,6 +964,26 @@
|
||||
|
||||
<div class="btn_wrap">
|
||||
<div class="btn_right">
|
||||
|
||||
<c:forEach var="list" items="${chasiQr}" varStatus="status">
|
||||
|
||||
<c:choose>
|
||||
|
||||
<c:when test="${not empty list.qestnrId10}">
|
||||
|
||||
<button type="button" class="btn_type04" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
|
||||
onclick="fn_chasiQRPop('${list.eduAplctOrd}','${list.eduChasiOrd}','10','print'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}','${list.qustnrRespondId10}'
|
||||
)" title="팝업 열림">설문QR</button>
|
||||
</c:when>
|
||||
|
||||
<c:otherwise>
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</c:forEach>
|
||||
|
||||
<button type="button" class="btn_type06" onclick="fn_chasiStatusPop(); return false;">수정</button>
|
||||
<button type="button" class="btn_type01" onclick="fn_delete(); return false;">삭제</button>
|
||||
</div>
|
||||
@ -939,6 +993,26 @@
|
||||
<!-- 등록버튼 추가 필요 -->
|
||||
<div class="btn_wrap">
|
||||
<div class="btn_right">
|
||||
|
||||
<c:forEach var="list" items="${chasiQr}" varStatus="status">
|
||||
|
||||
<c:choose>
|
||||
|
||||
<c:when test="${not empty list.qestnrId10}">
|
||||
|
||||
<button type="button" class="btn_type04" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
|
||||
onclick="fn_chasiQRPop('${list.eduAplctOrd}','${list.eduChasiOrd}','10','print'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}','${list.qustnrRespondId10}'
|
||||
)" title="팝업 열림">설문QR</button>
|
||||
</c:when>
|
||||
|
||||
<c:otherwise>
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</c:forEach>
|
||||
|
||||
<button type="button" class="btn_type06" onclick="fn_chasiStatusPop(); return false;">등록</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -229,7 +229,7 @@
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<c:if test="${empty list}">
|
||||
<tr><td colspan="5"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
<tr><td colspan="7"><spring:message code="common.nodata.msg" /></td></tr>
|
||||
</c:if>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@ -322,7 +322,33 @@ function replyCalculation(){
|
||||
form.submit();
|
||||
}
|
||||
|
||||
|
||||
// 만족도 평가 등록/수정 팝업(청소년, 성인 별도임)
|
||||
function fn_chasiQRPop(
|
||||
id //aplctOrd
|
||||
, chId //chasiOrd
|
||||
, p_site_id_cd //10,20,30
|
||||
, p_action //select, insert
|
||||
, p_qustnrTmplatId //select, insert
|
||||
, p_qestnrId //select, insert
|
||||
, p_qustnrRespondId //select, insert
|
||||
) {
|
||||
var form = document.chasiStatusPopForm;
|
||||
|
||||
form.eduAplctOrd.value=id;
|
||||
form.eduChasiOrd.value=chId;
|
||||
form.siteIdCd.value=p_site_id_cd;
|
||||
form.qustnrTmplatId.value=p_qustnrTmplatId;
|
||||
form.qestnrId.value=p_qestnrId;
|
||||
form.qustnrRespondId.value=p_qustnrRespondId;
|
||||
|
||||
//form.action = "${pageContext.request.contextPath}/web/ve/aplct/cpyrgExprnClsrm/scholInfo/popup/qustnrQRPrintPopList.do";
|
||||
form.action = "<c:url value='/kccadr/oprtn/tngrVisitEdu/popup/chasiQRPopup.do'/>";
|
||||
|
||||
|
||||
window.open("#", "_chasiQRPop", "scrollbars = no, top=100px, left=100px, height=750px, width=830px");
|
||||
form.target = "_chasiQRPop";
|
||||
form.submit();
|
||||
}
|
||||
|
||||
|
||||
// 서류요청 SMS, EMAIL 알림 팝업
|
||||
@ -394,6 +420,12 @@ function replyCalculation(){
|
||||
<input type="hidden" name="eduAplctOrd" value="<c:out value="${vEEduAplctVO.eduAplctOrd}" />" />
|
||||
<input type="hidden" name="eduChasiOrd" value="<c:out value="${vEEduAplctVO.eduChasiOrd}" />" />
|
||||
<input type="hidden" name="userId" id="rsltRprtUserId" /> <!-- 강사 Id -->
|
||||
|
||||
<input type="hidden" name="siteIdCd" value="" />
|
||||
<input type="hidden" name="qustnrTmplatId" value="" />
|
||||
<input type="hidden" name="qestnrId" value="" />
|
||||
<input type="hidden" name="qustnrRespondId" value="" />
|
||||
<input type="hidden" name="instrDiv" value="10" />
|
||||
</form:form>
|
||||
<form:form id="listForm" name="listForm" method="post" onsubmit="return false;">
|
||||
<input type="hidden" name="pageIndex" value="<c:out value='${vEEduAplctVO.pageIndex}' />"/>
|
||||
@ -973,8 +1005,27 @@ function replyCalculation(){
|
||||
<c:choose>
|
||||
<%-- <c:when test="${chasiSrvyList[0].neither ne '' and chasiSrvyList[0].neither ne null}"> --%>
|
||||
<c:when test="${qestnrParticipant ne '' and qestnrParticipant ne null}">
|
||||
<div class="btn_wrap">
|
||||
<div class="btn_wrap">
|
||||
<div class="btn_right">
|
||||
<c:forEach var="list" items="${chasiQr}" varStatus="status">
|
||||
|
||||
<c:choose>
|
||||
|
||||
<c:when test="${not empty list.qestnrId10}">
|
||||
|
||||
<button type="button" class="btn_type04" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
|
||||
onclick="fn_chasiQRPop('${list.eduAplctOrd}','${list.eduChasiOrd}','10','print'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}','${list.qustnrRespondId10}'
|
||||
)" title="팝업 열림">설문QR</button>
|
||||
</c:when>
|
||||
|
||||
<c:otherwise>
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</c:forEach>
|
||||
|
||||
<button type="button" class="btn_type06" onclick="fn_chasiStatusPop(); return false;">수정</button>
|
||||
<button type="button" class="btn_type01" onclick="fn_delete(); return false;">삭제</button>
|
||||
</div>
|
||||
@ -982,8 +1033,28 @@ function replyCalculation(){
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<!-- 등록버튼 추가 필요 -->
|
||||
<div class="btn_wrap">
|
||||
<div class="btn_wrap">
|
||||
<div class="btn_right">
|
||||
|
||||
<c:forEach var="list" items="${chasiQr}" varStatus="status">
|
||||
|
||||
<c:choose>
|
||||
|
||||
<c:when test="${not empty list.qestnrId10}">
|
||||
|
||||
<button type="button" class="btn_type04" data-info="${list.eduChasiOrd}" data-tooltip="sub37_pop20"
|
||||
onclick="fn_chasiQRPop('${list.eduAplctOrd}','${list.eduChasiOrd}','10','print'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}','${list.qustnrRespondId10}'
|
||||
)" title="팝업 열림">설문QR</button>
|
||||
</c:when>
|
||||
|
||||
<c:otherwise>
|
||||
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
</c:forEach>
|
||||
|
||||
<button type="button" class="btn_type06" onclick="fn_chasiStatusPop(); return false;">등록</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -0,0 +1,307 @@
|
||||
<!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="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||
<%@ taglib prefix="ve" uri="/WEB-INF/tlds/kcc_tld.tld"%>
|
||||
<%
|
||||
/**
|
||||
* @Class Name : chasiQRPopup.jsp
|
||||
* @Description : 관리자에서 QR보기 팝업
|
||||
* @Modification Information
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ ------- -------- ---------------------------
|
||||
* @ 2021.08.09 김봉호 최초 생성
|
||||
* @author 안주영
|
||||
* @since 2022.1.8
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
%>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
|
||||
<%-- <script type="text/javascript" src="<c:url value='/js/ve/tmapJS.js'/>"></script> --%>
|
||||
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
<title>강사배치 팝업</title>
|
||||
<script type="text/javaScript" language="javascript">
|
||||
$(document).ready(function () {
|
||||
replyCalculation();
|
||||
|
||||
// 강의 만족도
|
||||
var id = $('#eduAplctOrd').val();
|
||||
var chId = $('#eduChasiOrd').val();
|
||||
|
||||
selectChasiStatus(id, chId);
|
||||
});
|
||||
|
||||
|
||||
function replyCalculation(){
|
||||
var qestnrParticipant = $("#qestnrParticipant").val(); //참석자 수량
|
||||
var qestnrRespondent = $("#qestnrRespondent").val(); //응답자 수량
|
||||
|
||||
|
||||
var responseRateTxt = (Number(qestnrRespondent) / Number(qestnrParticipant)*Number(100)).toFixed(1);
|
||||
|
||||
$("#responseRate").text(responseRateTxt +"%");
|
||||
$("#noResponse").text(Number(qestnrParticipant) - Number(qestnrRespondent));
|
||||
}
|
||||
function selectChasiStatus(id, chId, action){
|
||||
$.ajax({
|
||||
type:"POST"
|
||||
,url:"${pageContext.request.contextPath}/web/ve/aplct/tngrVisitEdu/eduEnd/selectEduChasiStatusAjax.do"
|
||||
,data: {
|
||||
"eduAplctOrd" : id
|
||||
,"eduChasiOrd" : chId
|
||||
}
|
||||
,dataType:'json'
|
||||
,success:function(returnData){
|
||||
console.log(returnData);
|
||||
var info = returnData.chasiInfo;
|
||||
var tm = info.strtTm.replace(/(.{2})/,"$1:") +"~"+ info.endTm.replace(/(.{2})/,"$1:")+"("+info.lrnTm+"분)"
|
||||
$("#popupEduHopeDt").text(info.eduHopeDt);
|
||||
$("#popupTm").text(tm);
|
||||
$("#popupDivCd").text(info.divCd);
|
||||
$("#popupTrgt").text(info.trgt);
|
||||
$("#popupInstrNm").text(info.instrNm);
|
||||
$("#popupPrsnl").text(info.prsnl);
|
||||
|
||||
$("#eduAplctOrd").val(info.eduAplctOrd);
|
||||
$("#eduChasiOrd").val(info.eduChasiOrd);
|
||||
|
||||
// $(".popupInput").removeAttr("readonly");
|
||||
// $(".popupInput").val("0");
|
||||
|
||||
// if(action == "select"){
|
||||
// $("#popupSubmin").hide();
|
||||
$("#popupSrvyStatus").text("설문완료");
|
||||
// selectChasiSrvyInfo(id, chId);
|
||||
// }else{
|
||||
// $("#popupSubmin").show();
|
||||
// $("#popupSrvyStatus").text("설문진행중");
|
||||
// }
|
||||
}
|
||||
,error:function(request , status, error){
|
||||
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function fn_self_close(){
|
||||
window.open('','_self').close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function srvySendSubmit(){
|
||||
|
||||
//기타의견은 1000자 까지만 가능
|
||||
if ($('#qustnrCn').val().length>1000){
|
||||
alert("기타의견은 1000자까지만 등록가능합니다.("+$('#qustnrCn').val().length+")");
|
||||
return;
|
||||
}
|
||||
|
||||
var qestmSize = parseInt($("#qestmInfoSize").val()); //평가문항 수량
|
||||
var qestnrParticipant = parseInt($("#qestnrParticipant").val()); //참석자 수량
|
||||
var qestnrRespondent = parseInt($("#qestnrRespondent").val()); //응답자 수량
|
||||
|
||||
if(qestnrParticipant == null || qestnrParticipant == ""){
|
||||
alert("참석자 수량을 넣어주세요");
|
||||
$("#qestnrParticipant").focus();
|
||||
return
|
||||
}
|
||||
|
||||
if(qestnrRespondent == null || qestnrRespondent == ""){
|
||||
alert("응답자 수량을 넣어주세요");
|
||||
$("#qestnrRespondent").focus();
|
||||
return
|
||||
}
|
||||
|
||||
if(qestnrParticipant < qestnrRespondent){
|
||||
alert("응답자 수량이 참석자 수보다 많습니다 확인해 주세요");
|
||||
$("#qestnrRespondent").focus();
|
||||
return
|
||||
}
|
||||
|
||||
for(var i=0; i < qestmSize; i++){
|
||||
var verySatisfied = $("#verySatisfied_"+i).val();
|
||||
var satisfied = $("#satisfied_"+i).val();
|
||||
var neither = $("#neither_"+i).val();
|
||||
var dissatisfied = $("#dissatisfied_"+i).val();
|
||||
var veryDissatisfied = $("#veryDissatisfied_"+i).val();
|
||||
|
||||
if(verySatisfied == null || verySatisfied == ""){
|
||||
alert((i+1)+"번 [매우만족] 만족도를 정확히 넣어주세요");
|
||||
$("#verySatisfied_"+i).focus();
|
||||
return
|
||||
}
|
||||
if(satisfied == null || satisfied == ""){
|
||||
alert((i+1)+"번 [만족] 만족도를 정확히 넣어주세요");
|
||||
$("#satisfied_"+i).focus();
|
||||
return
|
||||
}
|
||||
if(neither == null || neither == ""){
|
||||
alert((i+1)+"번 [보통] 만족도를 정확히 넣어주세요");
|
||||
$("#neither_"+i).focus();
|
||||
return
|
||||
}
|
||||
if(dissatisfied == null || dissatisfied == ""){
|
||||
alert((i+1)+"번 [불만족] 만족도를 정확히 넣어주세요");
|
||||
$("#dissatisfied_"+i).focus();
|
||||
return
|
||||
}
|
||||
if(veryDissatisfied == null || veryDissatisfied == ""){
|
||||
alert((i+1)+"번 [매우불만족] 만족도를 정확히 넣어주세요");
|
||||
$("#veryDissatisfied_"+i).focus();
|
||||
return
|
||||
}
|
||||
|
||||
var sum = Number(verySatisfied) + Number(satisfied) + Number(neither) + Number(dissatisfied) + Number(veryDissatisfied);
|
||||
|
||||
if(qestnrRespondent != sum ){
|
||||
alert((i+1)+"문항의 합계가 응답수량과 맞지 않습니다.");
|
||||
$("#verySatisfied_"+i).focus();
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if(confirm("설문결과를 수정 하시겠습니까?")){
|
||||
// var frm = document.srvyPopupForm;
|
||||
var data = new FormData(document.getElementById("srvyPopupForm"));
|
||||
|
||||
$.ajax({
|
||||
type:"POST"
|
||||
,url:"${pageContext.request.contextPath}/kccadr/oprtn/tngrVisitEdu/updateSrvyInfoAjax.do"
|
||||
,data: data
|
||||
,dataType:'json'
|
||||
,async: false
|
||||
,processData: false
|
||||
,contentType: false
|
||||
,cache: false
|
||||
,success:function(returnData){
|
||||
if(returnData.result == 'success'){
|
||||
alert("설문결과가 수정 되었습니다.");
|
||||
top.window.opener.location.reload();
|
||||
}else if(returnData.result == 'fail'){
|
||||
alert(returnData.msg);
|
||||
location.href="/web/user/login/ssoLogin.do?test=test";
|
||||
}
|
||||
}
|
||||
,error:function(request , status, error){
|
||||
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<style>
|
||||
.popup_wrap{padding: 30px 20px;}
|
||||
.popup_tit p{font-size: 17px; font-weight: 600;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<form id="srvyPopupForm" name="srvyPopupForm" method="post">
|
||||
<input type="hidden" name="eduAplctOrd" id="eduAplctOrd" value="<c:out value='${vEEduAplctVO.eduAplctOrd }' />">
|
||||
<input type="hidden" name="eduChasiOrd" id="eduChasiOrd" value="<c:out value='${vEEduAplctVO.eduChasiOrd }' />">
|
||||
<input type="hidden" name="qestnrRespondId" id="qestnrRespondId" value="<c:out value='${chasiSrvyList[0].qestnrRespondId }' />">
|
||||
<input type="hidden" id="qestmInfoSize" value="${fn:length(Comtnqustnrqesitm)}">
|
||||
<input type="hidden" name="qustnrTmplatId" id="qustnrTmplatId" value="${qustnrTmplatId}">
|
||||
<input type="hidden" name="qestnrId" id="qestnrId" value="${qestnrId}">
|
||||
|
||||
|
||||
<div class="tooltip-wrap">
|
||||
<div class="popup_wrap popType05" tabindex="0" data-tooltip-con="sub37_pop01" data-focus="sub37_pop01" data-focus-prev="sub37_pop01_close" style="width: 800px; display: block; left: 666.5px; top: 75.1145px;">
|
||||
<div class="popup_tit">
|
||||
<p>강의만족도 결과</p>
|
||||
<button class="btn_popup_close tooltip-close" data-focus="sub37_pop01_close" title="팝업 닫기"><i></i></button>
|
||||
</div>
|
||||
<div class="popup_cont">
|
||||
<div class="cont_body">
|
||||
<div class="pop_tb_type04">
|
||||
|
||||
<script src="${pageContext.request.contextPath}/visitEdu/usr/publish/script/qrCode/qrcode.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/visitEdu/usr/publish/script/qrCodeCustom.js"></script>
|
||||
<script type="text/javaScript" language="javascript">
|
||||
$(document).ready(function (){
|
||||
var url = "";
|
||||
|
||||
var isLocal = '${isLocal}';
|
||||
var v_userId = $('#userId').val();
|
||||
|
||||
if(isLocal == 'real'){ //운영
|
||||
|
||||
//var viewer = new m2soft.crownix.Viewer('https://www.edu-copyright.or.kr/offedu/ReportingServer/service');
|
||||
/*
|
||||
url += "${pageContext.request.scheme}";
|
||||
alert(url);
|
||||
url += "://${pageContext.request.serverName}";
|
||||
alert(url);
|
||||
*/
|
||||
url = "https://www.edu-copyright.or.kr";
|
||||
}else{ //개발
|
||||
url += "${pageContext.request.scheme}";
|
||||
url += "://${pageContext.request.serverName}";
|
||||
|
||||
if("${pageContext.request.serverPort}" != '80' || "${pageContext.request.serverPort}" != '443' ){
|
||||
url += ":${pageContext.request.serverPort}";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//url += "${pageContext.request.scheme}";
|
||||
//url += "://${pageContext.request.serverName}";
|
||||
|
||||
|
||||
url += "${pageContext.request.contextPath}";
|
||||
url += "/web/ve/aplct/tngrVisitEdu/eduEnd/eduEndQustnrNoLoginDetail.do";
|
||||
url += "?qustnrTmplatId=${vEEduChasiVO.qustnrTmplatId}";
|
||||
url += "&qestnrId=${vEEduChasiVO.qestnrId}";
|
||||
url += "&qustnrRespondId=${vEEduChasiVO.qustnrRespondId}";
|
||||
|
||||
url += "&siteIdCd=${vEEduChasiVO.siteIdCd}";
|
||||
url += "&eduAplctOrd=${vEEduChasiVO.eduAplctOrd}";
|
||||
url += "&eduChasiOrd=${vEEduChasiVO.eduChasiOrd}";
|
||||
url += "&instrDiv=${vEEduChasiVO.instrDiv}";
|
||||
|
||||
makeCode(url);
|
||||
|
||||
console.log("url====");
|
||||
console.log(url);
|
||||
console.log("url====");
|
||||
|
||||
});
|
||||
</script>
|
||||
<div id="qrcode" class="qr_img"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="pop_btn_wrap btn_layout01">
|
||||
<div class="btn_left"></div>
|
||||
<div class="btn_center">
|
||||
<button type="button" class="btn_type02 tooltip-close" onclick="fn_self_close()">취소</button>
|
||||
</div>
|
||||
<div class="btn_right"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -609,7 +609,7 @@
|
||||
</c:if>
|
||||
|
||||
<c:if test="${prcsAplctVO.aprvlCd eq '60' and prcsAplctVO.ddlnCd eq '20'}">
|
||||
<button type="button" class="btnType05" onclick="fncCancelStatusChange('${infoAplctOrd.eduAplctOrd}', '${infoAplctOrd.prcsOrd}', '6-1')">취소요청</button>
|
||||
<%-- <button type="button" class="btnType05" onclick="fncCancelStatusChange('${infoAplctOrd.eduAplctOrd}', '${infoAplctOrd.prcsOrd}', '6-1')">취소요청</button> --%>
|
||||
</c:if>
|
||||
|
||||
</div>
|
||||
|
||||
@ -229,7 +229,7 @@
|
||||
<button type="button" class="btnType02" onclick="fncGoDetail('<c:out value="${list.prcsAplctPrdOrd}"/>');">취소</button>
|
||||
</c:if>
|
||||
<c:if test="${list.aprvlCd eq '60' and list.ddlnCd eq '20'}">
|
||||
<button type="button" class="btnType02" onclick="fncGoDetail('<c:out value="${list.prcsAplctPrdOrd}"/>');">취소</button>
|
||||
<%-- <button type="button" class="btnType02" onclick="fncGoDetail('<c:out value="${list.prcsAplctPrdOrd}"/>');">취소</button> --%>
|
||||
</c:if>
|
||||
|
||||
</td>
|
||||
@ -348,7 +348,7 @@
|
||||
<button type="button" class="btnType02" onclick="fncGoDetail('<c:out value="${list.prcsAplctPrdOrd}"/>');">취소</button>
|
||||
</c:if>
|
||||
<c:if test="${list.aprvlCd eq '60' and list.ddlnCd eq '20'}">
|
||||
<button type="button" class="btnType02" onclick="fncGoDetail('<c:out value="${list.prcsAplctPrdOrd}"/>');">취소</button>
|
||||
<%-- <button type="button" class="btnType02" onclick="fncGoDetail('<c:out value="${list.prcsAplctPrdOrd}"/>');">취소</button> --%>
|
||||
</c:if>
|
||||
|
||||
</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user