From 2714454e026378e9d3e2a8665f354aba0690271a Mon Sep 17 00:00:00 2001 From: iyak Date: Fri, 17 Jan 2025 08:36:49 +0000 Subject: [PATCH] =?UTF-8?q?6411(6413):=20=EC=8B=9C=ED=97=98=EC=9D=91?= =?UTF-8?q?=EC=8B=9C=20=EA=B4=80=EB=A0=A8=20=EB=82=B4=EC=9A=A9=20=EC=A0=95?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FO/Views/CRoom/Estimation.cshtml | 6 +++- FO/Views/CRoom/EstimationExam.cshtml | 24 ++++++++++++--- FO/Views/CRoom/ExamRecord.cshtml | 45 +++++++++++++++++----------- 3 files changed, 52 insertions(+), 23 deletions(-) diff --git a/FO/Views/CRoom/Estimation.cshtml b/FO/Views/CRoom/Estimation.cshtml index 31bef8c..8821780 100644 --- a/FO/Views/CRoom/Estimation.cshtml +++ b/FO/Views/CRoom/Estimation.cshtml @@ -27,10 +27,12 @@ } + @* 아래에 주석친 부분들은 2025년3월에 롤백될 예정 *@
@(d.dtype == 0 ? "진행평가":d.dtype==1?"최종평가":d.dtype == 2?"과제":d.dtype==3?"토론":"") @d.strval
@if (d.dtype == 1) {

※ 집체교육일에 교육장에서 평가진행

+ @*

※ 참여조건 : 진도율 90% 이상 / 집체교육 참석 완료 (집체교육일 : @d.time.ToShortDateString())

*@ } else if (d.dtype > 1) { @@ -39,7 +41,9 @@ @if (d.dtype == 1 && ViewBag.exCheck == false) { - + + @*=d.intval2?"02":"01")">@(d.intval4 == 1 ? "[평가완료]" : d.intval3 == 1 ? "[참여완료]" : d.intval3 == 0 && d.intval >=d.intval2 ? "[참여가능]" : "[참여불가]")*@ =d.intval2?"02":"01")">@(d.intval4 == 1 ? "[평가완료]" : d.intval3 == 1 ? "[참여완료]" : d.intval3 == 0 && d.intval >=d.intval2 ? "[참여가능]" : "[참여불가]") diff --git a/FO/Views/CRoom/EstimationExam.cshtml b/FO/Views/CRoom/EstimationExam.cshtml index d6606d5..998e79f 100644 --- a/FO/Views/CRoom/EstimationExam.cshtml +++ b/FO/Views/CRoom/EstimationExam.cshtml @@ -22,17 +22,23 @@ {
  • 응시하기
  • } - @if (Model.LectEX.ispass == 1) + + + @* [start] 아래 if문 주석은 2025 3월이후에 다시 사용 현재는 임시처리 *@ + @*@if (Model.LectEX.ispass == 1)*@ + @if (Model.LectEX.estart != null) {
  • 결과보기
  • - } + @* [end] 아래 if문 주석은 2025 3월이후에 다시 사용 현재는 임시처리 *@ + + @if (Model.LectEX.edate > DateTime.Now && Model.LectEX.estart != null && Model.LectEX.isreexamable == 1 && Model.LectEX.iscomplete != 1) { // #xodus extype 추가
  • 재응시
  • } - +
    @Html.HiddenFor(m => m.croomlectno) @@ -71,7 +77,17 @@ } } } + + // 아래 주석은 2025-03 이후에 다시 사용 예정 function showexam() { + if (@Model.LectEX.isresultopen == 1) { + $("#mform").attr("action", "/CRoom/ExamRecord").submit(); + } else { + msg("운영자가 시험결과를 비공개처리하였습니다. 별도로 문의해주세요."); + } + } + + @*function showexam() { if (@Model.LectEX.ispass == 0) { msg("수료기준을 통과하지 못하여 비공개처리되었습니다."); } else { @@ -82,7 +98,7 @@ msg("운영자가 시험결과를 비공개처리하였습니다. 별도로 문의해주세요."); } } - } + }*@ // #xodus extype 추가 function reexam(exno, lectno, extype) { diff --git a/FO/Views/CRoom/ExamRecord.cshtml b/FO/Views/CRoom/ExamRecord.cshtml index 8cfe554..25c1007 100644 --- a/FO/Views/CRoom/ExamRecord.cshtml +++ b/FO/Views/CRoom/ExamRecord.cshtml @@ -32,19 +32,24 @@ 문제@(i++) @Html.Raw(q.qtext) - - 정답 - - @if (q.atype > 0) - { - @Html.Raw(string.Join(" | ", Model.QuestionItems.Where(w => w.qno == q.qno).ToList().Select(s => s.qitext))) - } - else - { - @Html.Raw((string.Join(" | ", Model.QuestionItems.Where(w => w.qno == q.qno && w.isright == 1).ToList().Select(s => string.IsNullOrEmpty(s.qitext) ? ("") : s.qitext)))) - } - - + + @if (Model.LectEX.tpoint >= 60) + { // 2025-03월 이후에 if문이 제거되어야 할 필요성 + + 정답 + + @if (q.atype > 0) + { + @Html.Raw(string.Join(" | ", Model.QuestionItems.Where(w => w.qno == q.qno).ToList().Select(s => s.qitext))) + } + else + { + @Html.Raw((string.Join(" | ", Model.QuestionItems.Where(w => w.qno == q.qno && w.isright == 1).ToList().Select(s => string.IsNullOrEmpty(s.qitext) ? ("") : s.qitext)))) + } + + + } + 응시생답안 @@ -58,13 +63,17 @@ } - - 해설 - @Html.Raw(q.qdesc??"") - + + @if (Model.LectEX.tpoint >= 60) + { // 2025-03월 이후에 if문이 제거되어야 할 필요성 + + 해설 + @Html.Raw(q.qdesc ?? "") + + } 점수 - @q.cpoint / @(q.dpoint)점 (@q.atypename) @Html.Raw(q.iscorrect == 1 ?"\"\"":"") + @q.cpoint / @(q.dpoint)점 (@q.atypename) @Html.Raw(q.iscorrect == 1 ? "\"\"" : "")