YNICTE/FO/Views/CRoom/Estimation.cshtml

82 lines
3.9 KiB
Plaintext
Raw Normal View History

2020-10-12 14:39:23 +09:00
@model NP.Model.VMCRoom
@{
}
2021-11-03 15:19:08 +09:00
<ul class="lctpTab col3">
<li class="@(Model.tabidx == 0 ? "current":"")"><a onclick="gotab(0, this)" style="@(Model.tabidx == 0 ? "cursor: default;":"")" href="#;">전체</a></li>
<li class="@(Model.tabidx == 1 ? "current":"")"><a onclick="gotab(1, this)" style="@(Model.tabidx == 1 ? "cursor: default;":"")" href="#">시험</a></li>
<li class="@(Model.tabidx == 2 ? "current":"")"><a onclick="gotab(2, this)" style="@(Model.tabidx == 2 ? "cursor: default;":"")" href="#">과제</a></li>
2021-11-03 15:19:08 +09:00
@*<li class="@(Model.tabidx == 3 ? "current":"")"><a onclick="gotab(3, this)" style="@(Model.tabidx == 3 ? "cursor: default;":"")" href="#">토론</a></li>*@
2020-10-12 14:39:23 +09:00
</ul>
2021-11-03 15:19:08 +09:00
@*@if (Model.tabidx == 0 || Model.tabidx == 3)
2020-10-12 14:39:23 +09:00
{
<div style="color: #0094ff; text-align: right;">※ 토론은 참여완료 후에도 추가로 참여할 수 있습니다.</div>
2021-11-03 15:19:08 +09:00
}*@
2020-10-12 14:39:23 +09:00
<div class="evaList">
<table>
<tbody>
@foreach (var d in Model.Datas.Where(w=>w.dtype > -1))
2020-10-12 14:39:23 +09:00
{
<tr>
<th>
<h5><b>@(d.dtype == 0 ? "진행평가":d.dtype==1?"최종평가":d.dtype == 2?"과제":d.dtype==3?"토론":"")</b><span> @d.strval</span></h5>
2021-01-27 17:23:51 +09:00
<p>참여조건 : 진도율 @(d.intval2)% 이상 / 수강 종료일 (@d.time.ToShortDateString()) 이내</p>
2020-10-12 14:39:23 +09:00
</th>
2024-08-07 12:54:55 +09:00
@if (d.dtype == 1 && ViewBag.exCheck == false)
{
<td>
<a href="#" onclick="msg('24년 8월 22일 부터 건설기술진흥법 변경으로 <br>집체교육 당일 교육장에서 시험평가가 진행됩니다.')"
2024-08-07 12:54:55 +09:00
class="evaType@(d.intval4==1?"04":d.intval3==1?"03":d.intval3==0 && d.intval >=d.intval2?"02":"01")">@(d.intval4 == 1 ? "[평가완료]" : d.intval3 == 1 ? "[참여완료]" : d.intval3 == 0 && d.intval >=d.intval2 ? "[참여가능]" : "[참여불가]")</a>
</td>
}
else
{
<td>
<a href="#" onclick="eva(@d.dtype, @d.intval10, @(d.intval4==1?4:d.intval3==1?3:d.intval3==0 && d.intval >=d.intval2?2:1))"
class="evaType@(d.intval4==1?"04":d.intval3==1?"03":d.intval3==0 && d.intval >=d.intval2?"02":"01")">@(d.intval4 == 1 ? "[평가완료]" : d.intval3 == 1 ? "[참여완료]" : d.intval3 == 0 && d.intval >=d.intval2 ? "[참여가능]" : "[참여불가]")</a>
</td>
}
2020-10-12 14:39:23 +09:00
</tr>
}
@if (Model.Datas.Where(w => w.dtype > -1).Count() < 1)
2020-10-12 14:39:23 +09:00
{
<tr><th colspan="2" style="text-align: center; font-weight: normal; height: 100px;">- 평가할 항목이 없습니다.</th></tr>
}
else
{
<tr><th colspan="2" style="text-align: center; font-weight: normal; height: 100px;">현재 진도율: @Model.Datas.Where(w=>w.dtype == -1).First().intval5 %</th></tr>
2020-10-12 14:39:23 +09:00
}
</tbody>
</table>
</div>
<form id="mform" action="/CRoom/Estimation?@Model.croomparam" method="get">
@Html.HiddenFor(m => m.croomlectno)
@Html.HiddenFor(m => m.croomcmno)
@Html.HiddenFor(m => m.tabidx)
@Html.HiddenFor(m => m.estno)
</form>
@section scriptsHeader{
}
@section scripts{
<script>
$(document).ready(function () {
});
function gotab(idx, a) {
if (!$(a).parent().hasClass("current")){
setv("tabidx", idx);
submit();
}
}
function eva(type, no, status) {
if (status == 1) {
2021-01-27 17:23:51 +09:00
msg("진도율 조건에 맞지않거나 수강일이 종료되어 참여하실 수 없습니다.");
2020-10-12 14:39:23 +09:00
} else {
setv("estno", no);
$("#mform").attr("action", "/CRoom/Estimation" + (type < 2 ?"Exam":type==2?"Subject":"Discuss")).submit();
}
}
</script>
}