2025-10-23 16:07 사용자 화면 설문조사 & 이수증 수정
This commit is contained in:
parent
0d5e79402e
commit
bb780aa1ec
@ -272,6 +272,7 @@
|
||||
LAST_UPDT_PNTTM,
|
||||
LAST_UPDUSR_ID,
|
||||
ATCH_FILE_ID
|
||||
, SITE_ID_CD
|
||||
)VALUES(
|
||||
#qestnrId#,
|
||||
#qestnrSj#,
|
||||
@ -288,6 +289,7 @@
|
||||
NOW(),
|
||||
#lastUpdusrId#,
|
||||
#atchFileId#
|
||||
, '10'
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
@ -204,11 +204,11 @@
|
||||
b.QUSTNR_QESITM_ID AS qestnrQesitmId
|
||||
, c.QUSTNR_RSLT_ID AS qustnrRsltId
|
||||
|
||||
, NVL(c.VERY_SATISFIED, cVERY_SATISFIED) AS verySatisfied
|
||||
, NVL(c.SATISFIED, cSATISFIED) AS satisfied
|
||||
, NVL(c.NEITHER, cNEITHER) AS neither
|
||||
, NVL(c.DISSATISFIED, cDISSATISFIED) AS dissatisfied
|
||||
, NVL(c.VERY_DISSATISFIED, cVERY_DISSATISFIED) AS veryDissatisfied
|
||||
, COALESCE(c.VERY_SATISFIED::numeric, cVERY_SATISFIED) AS verySatisfied
|
||||
, COALESCE(c.SATISFIED::numeric, cSATISFIED) AS satisfied
|
||||
, COALESCE(c.NEITHER::numeric, cNEITHER) AS neither
|
||||
, COALESCE(c.DISSATISFIED::numeric, cDISSATISFIED) AS dissatisfied
|
||||
, COALESCE(c.VERY_DISSATISFIED::numeric, cVERY_DISSATISFIED) AS veryDissatisfied
|
||||
, c.ANSWER AS answer
|
||||
, c.QUSTNR_IEM_ID AS qustnrIemId
|
||||
|
||||
@ -304,11 +304,11 @@
|
||||
, c.EDU_APLCT_ORD
|
||||
, c.EDU_CHASI_ORD
|
||||
|
||||
, sum(c.very_satisfied) AS cvery_satisfied
|
||||
, sum(c.satisfied) AS csatisfied
|
||||
, sum(c.neither) AS cneither
|
||||
, sum(c.dissatisfied) AS cdissatisfied
|
||||
, sum(c.very_dissatisfied) AS cvery_dissatisfied
|
||||
, sum(c.very_satisfied::numeric) AS cvery_satisfied
|
||||
, sum(c.satisfied::numeric) AS csatisfied
|
||||
, sum(c.neither::numeric) AS cneither
|
||||
, sum(c.dissatisfied::numeric) AS cdissatisfied
|
||||
, sum(c.very_dissatisfied::numeric) AS cvery_dissatisfied
|
||||
|
||||
FROM LETTNQESTNRRSLTEADetail c
|
||||
GROUP BY
|
||||
@ -330,7 +330,7 @@
|
||||
)
|
||||
|
||||
WHERE a.site_id=#siteId#
|
||||
AND a.SITE_ID_CD =#siteIdCd#
|
||||
AND COALESCE(a.SITE_ID_CD,'10') =#siteIdCd#
|
||||
AND b.QUSTNR_TMPLAT_ID =a.QUSTNR_TMPLAT_ID
|
||||
AND b.QESTNR_ID =a.QESTNR_ID
|
||||
|
||||
@ -346,11 +346,11 @@
|
||||
, a.qustnr_birth AS qustnrBirth
|
||||
, count(*) AS rrspnsResultCnt
|
||||
|
||||
, ROUND(SUM(a.VERY_SATISFIED * 100
|
||||
+ a.SATISFIED * 80
|
||||
+ a.NEITHER * 60
|
||||
+ a.dissatisfied * 40
|
||||
+ a.very_dissatisfied * 20)
|
||||
, ROUND(SUM(a.VERY_SATISFIED::numeric * 100
|
||||
+ a.SATISFIED::numeric * 80
|
||||
+ a.NEITHER::numeric * 60
|
||||
+ a.dissatisfied::numeric * 40
|
||||
+ a.very_dissatisfied::numeric * 20)
|
||||
/
|
||||
count(*),1) AS qustnrScore
|
||||
|
||||
|
||||
@ -202,6 +202,7 @@ function delete_item(obj, fileIdx){
|
||||
<input type="hidden" name="cal_url" value="<c:url value='/sym/cmm/EgovNormalCalPopup.do'/>">
|
||||
<input name="cmd" type="hidden" value="<c:out value='save'/>">
|
||||
<input type="hidden" name="limitcount" value="1" />
|
||||
<input type="hidden" name="site_id_cd" value="1" />
|
||||
|
||||
<!-- cont_tit -->
|
||||
<div class="cont_tit">
|
||||
|
||||
@ -249,12 +249,13 @@
|
||||
|
||||
<c:choose>
|
||||
<%-- <c:when test="${list.aprvlCd eq 20 and list.qestRsltExists and list.aplctStateCd ne 10 and list.aplctStateCd ne 30}"> --%>
|
||||
<%-- <c:when test="${list.aprvlCd eq 60 and list.qestRsltExists and list.aplctStateCd ne 10 and list.aplctStateCd ne 30}"> --%>
|
||||
<c:when test="${list.aprvlCd eq 60 and list.qestRsltExists}">
|
||||
<!-- 설문노출대상(승인처리를 받았음(20) && 교육기간이 지났음 list.qestRsltExists=true && 미이수가 아닌것(10) ) -->
|
||||
|
||||
<c:choose>
|
||||
|
||||
<c:when test="${list.aplctStateCd eq 20 and list.qestnrId10Cnt gt 0}">
|
||||
<c:when test="${list.qestnrId10Cnt gt 0}">
|
||||
<!-- 작성된 설문이 있다 -->
|
||||
<button type="button" class="btnType02" data-info="${list.eduAplctOrd}" data-tooltip="sub36_pop02"
|
||||
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','select'
|
||||
@ -262,21 +263,13 @@
|
||||
)" title="팝업 열림">설문완료</button>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${empty list.qestnrId10 and list.aprvlCd eq 20}">
|
||||
<c:when test="${empty list.qestnrId10}">
|
||||
<!-- 대상 설문이 없다 -->
|
||||
대상설문없음
|
||||
</c:when>
|
||||
|
||||
<c:when test="${(empty list.qestnrId10Cnt or list.qestnrId10Cnt eq 0) and list.qustnrTm eq '0'}">
|
||||
<!-- 작성된 설문이 없다 -->
|
||||
<button type="button" class="btn small mint line sur_bt" data-info="${list.eduAplctOrd}" data-tooltip="sub36_pop02"
|
||||
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','insert'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}',''
|
||||
)" title="팝업 열림">설문등록</button>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${list.qustnrTm eq '1'}">
|
||||
<!-- 작성된 설문이 없다 -->
|
||||
<c:when test="${not empty list.qestnrId10 and list.qestnrId10Cnt eq 0 and list.qustnrTm eq '1'}">
|
||||
<!-- 설문 키값이 있고, 답변이 없고, 설문 오픈 시간이 지났다(1), (0-지나기전)면 설문 등록을 연다 -->
|
||||
<button type="button" class="btn small mint line sur_bt" data-info="${list.eduAplctOrd}" data-tooltip="sub36_pop02"
|
||||
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','insert'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}',''
|
||||
@ -296,20 +289,20 @@
|
||||
</c:choose>
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${list.qestRsltExists }">
|
||||
<button type="button" title="출력" class="btnType03">출력</button>
|
||||
</c:when>
|
||||
<c:when test="${list.dateChk eq 1 and not list.qestRsltExists}">
|
||||
교육완료
|
||||
<c:when test="${list.qestRsltExists and list.aprvlCd eq '60' and list.aplctStateCd eq '20'}">
|
||||
<!-- 교육 기간 종료 & 교육신청은 확정(60) & 교육상태는 이슈(20) & 수료증 출력 가능 -->
|
||||
<button type="button" class="btn small mint line sur_bt" data-info="${list.eduAplctOrd}" data-tooltip="sub36_pop02"
|
||||
onclick="fncPrintCert('${list.eduAplctOrd}','${list.eduChasiOrd}','10','insert'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}',''
|
||||
)" title="출력">출력</button>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
-
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
||||
@ -184,7 +184,7 @@
|
||||
<col style="width:;">
|
||||
<col style="width:13%;">
|
||||
<col style="width:13%;">
|
||||
<%-- <col style="width:13%;"> --%>
|
||||
<col style="width:13%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -192,7 +192,7 @@
|
||||
<th scope="col">교육일자</th>
|
||||
<th scope="col">신청결과</th>
|
||||
<th scope="col">설문조사</th>
|
||||
<!-- <th scope="col">이수증</th> -->
|
||||
<th scope="col">이수증</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -246,14 +246,17 @@
|
||||
<!-- - -->
|
||||
<%-- </c:otherwise> --%>
|
||||
<%-- </c:choose> --%>
|
||||
|
||||
|
||||
<!-- 설문노출대상(승인처리를 받았음(20) && 교육기간이 지났음 list.qestRsltExists=true && 미이수가 아닌것(10) ) -->
|
||||
<c:choose>
|
||||
<c:when test="${list.aprvlCd eq 20 and list.qestRsltExists and list.aplctStateCd ne 10 and list.aplctStateCd ne 30}">
|
||||
<%-- <c:when test="${list.aprvlCd eq 20 and list.qestRsltExists and list.aplctStateCd ne 10 and list.aplctStateCd ne 30}"> --%>
|
||||
|
||||
<c:when test="${list.aprvlCd eq 60 and list.qestRsltExists}">
|
||||
<!-- 설문노출대상(승인처리를 받았음(20) && 교육기간이 지났음 list.qestRsltExists=true && 미이수가 아닌것(10) ) -->
|
||||
|
||||
<c:choose>
|
||||
|
||||
<c:when test="${list.aplctStateCd eq 20 and list.qestnrId10Cnt gt 0}">
|
||||
<c:when test="${list.qestnrId10Cnt gt 0}">
|
||||
<!-- 작성된 설문이 있다 -->
|
||||
<button type="button" class="btnType02" data-info="${list.eduAplctOrd}" data-tooltip="sub36_pop02"
|
||||
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','select'
|
||||
@ -261,21 +264,13 @@
|
||||
)" title="팝업 열림">설문완료</button>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${empty list.qestnrId10 and list.aprvlCd eq 20}">
|
||||
<c:when test="${empty list.qestnrId10}">
|
||||
<!-- 대상 설문이 없다 -->
|
||||
대상설문없음
|
||||
</c:when>
|
||||
|
||||
<c:when test="${(empty list.qestnrId10Cnt or list.qestnrId10Cnt eq 0) and list.qustnrTm eq '0'}">
|
||||
<!-- 작성된 설문이 없다 -->
|
||||
<button type="button" class="btn small mint line sur_bt" data-info="${list.eduAplctOrd}" data-tooltip="sub36_pop02"
|
||||
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','insert'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}',''
|
||||
)" title="팝업 열림">설문등록</button>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${list.qustnrTm eq '1'}">
|
||||
<!-- 작성된 설문이 없다 -->
|
||||
<c:when test="${not empty list.qestnrId10 and list.qestnrId10Cnt eq 0 and list.qustnrTm eq '1'}">
|
||||
<!-- 설문 키값이 있고, 답변이 없고, 설문 오픈 시간이 지났다(1), (0-지나기전)면 설문 등록을 연다 -->
|
||||
<button type="button" class="btn small mint line sur_bt" data-info="${list.eduAplctOrd}" data-tooltip="sub36_pop02"
|
||||
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','insert'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}',''
|
||||
@ -295,21 +290,20 @@
|
||||
</c:choose>
|
||||
|
||||
</td>
|
||||
<!--
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${list.qestRsltExists }">
|
||||
<button type="button" title="출력" class="btnType03">출력</button>
|
||||
</c:when>
|
||||
<c:when test="${list.dateChk eq 1 and not list.qestRsltExists}">
|
||||
교육완료
|
||||
<c:when test="${list.qestRsltExists and list.aprvlCd eq '60' and list.aplctStateCd eq '20'}">
|
||||
<!-- 교육 기간 종료 & 교육신청은 확정(60) & 교육상태는 이슈(20) & 수료증 출력 가능 -->
|
||||
<button type="button" class="btn small mint line sur_bt" data-info="${list.eduAplctOrd}" data-tooltip="sub36_pop02"
|
||||
onclick="fncPrintCert('${list.eduAplctOrd}','${list.eduChasiOrd}','10','insert'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}',''
|
||||
)" title="출력">출력</button>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
-
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
-->
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<c:if test="${empty list}">
|
||||
|
||||
@ -295,12 +295,13 @@
|
||||
|
||||
<c:choose>
|
||||
|
||||
<c:when test="${list.aprvlCd eq 60 and list.qestRsltExists and list.aplctStateCd ne 10 and list.aplctStateCd ne 30}">
|
||||
<!-- 설문노출대상(승인처리를 받았음(20) && 교육기간이 지났음 list.qestRsltExists=true && 미이수가 아닌것(10) ) -->
|
||||
<%-- <c:when test="${list.aprvlCd eq 60 and list.qestRsltExists and list.aplctStateCd ne 10 and list.aplctStateCd ne 30}"> --%>
|
||||
<c:when test="${list.aprvlCd eq 60 and list.qestRsltExists}">
|
||||
<!-- 설문노출대상(확정처리를 받았음(60) && 교육기간이 지났음 list.qestRsltExists=true && 미이수가 아닌것(10) ) -->
|
||||
|
||||
<c:choose>
|
||||
|
||||
<c:when test="${list.aplctStateCd eq 20 and list.qestnrId10Cnt gt 0}">
|
||||
<c:when test="${list.qestnrId10Cnt gt 0}">
|
||||
<!-- 작성된 설문이 있다 -->
|
||||
<button type="button" class="btnType02" data-info="${list.eduAplctOrd}" data-tooltip="sub36_pop02"
|
||||
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','select'
|
||||
@ -308,21 +309,13 @@
|
||||
)" title="팝업 열림">설문완료</button>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${empty list.qestnrId10 and list.aprvlCd eq 20}">
|
||||
<c:when test="${empty list.qestnrId10}">
|
||||
<!-- 대상 설문이 없다 -->
|
||||
대상설문없음
|
||||
</c:when>
|
||||
|
||||
<c:when test="${(empty list.qestnrId10Cnt or list.qestnrId10Cnt eq 0) and list.qustnrTm eq '0'}">
|
||||
<!-- 작성된 설문이 없다 -->
|
||||
<button type="button" class="btn small mint line sur_bt" data-info="${list.eduAplctOrd}" data-tooltip="sub36_pop02"
|
||||
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','insert'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}',''
|
||||
)" title="팝업 열림">설문등록</button>
|
||||
</c:when>
|
||||
|
||||
<c:when test="${list.qustnrTm eq '1'}">
|
||||
<!-- 작성된 설문이 없다 -->
|
||||
|
||||
<c:when test="${not empty list.qestnrId10 and list.qestnrId10Cnt eq 0 and list.qustnrTm eq '1'}">
|
||||
<!-- 설문 키값이 있고, 답변이 없고, 설문 오픈 시간이 지났다(1), (0-지나기전)면 설문 등록을 연다 -->
|
||||
<button type="button" class="btn small mint line sur_bt" data-info="${list.eduAplctOrd}" data-tooltip="sub36_pop02"
|
||||
onclick="fncQustnrList('${list.eduAplctOrd}','${list.eduChasiOrd}','10','insert'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}',''
|
||||
@ -344,15 +337,13 @@
|
||||
</td>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${list.qestRsltExists }">
|
||||
<c:when test="${list.qestRsltExists and list.aprvlCd eq '60' and list.aplctStateCd eq '20'}">
|
||||
<!-- 교육 기간 종료 & 교육신청은 확정(60) & 교육상태는 이슈(20) & 수료증 출력 가능 -->
|
||||
<button type="button" class="btn small mint line sur_bt" data-info="${list.eduAplctOrd}" data-tooltip="sub36_pop02"
|
||||
onclick="fncPrintCert('${list.eduAplctOrd}','${list.eduChasiOrd}','10','insert'
|
||||
,'${list.qustnrTmplatId}','${list.qestnrId10}',''
|
||||
)" title="출력">출력</button>
|
||||
</c:when>
|
||||
<c:when test="${list.dateChk eq 1 and not list.qestRsltExists}">
|
||||
교육완료
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
-
|
||||
</c:otherwise>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user