This commit is contained in:
hyunho 2021-01-27 08:23:51 +00:00
parent b59ae90027
commit 648caf938e
7 changed files with 55 additions and 42 deletions

View File

@ -59,7 +59,7 @@
,2 intval,c.iseq intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7 ,2 intval,c.iseq intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7
,a.lectno longval ,a.lectno longval
,b.cname strval,b.studyplace strval2,concat(date_format(c.idate,'%m/%d'),' ',left(c.ist,2),':',right(c.ist,2),' ~ ',left(c.iet,2),':',right(c.iet,2)) strval3,bc.cname strval4 ,b.cname strval,b.studyplace strval2,concat(date_format(c.idate,'%m/%d'),' ',left(c.ist,2),':',right(c.ist,2),' ~ ',left(c.iet,2),':',right(c.iet,2)) strval3,bc.cname strval4
,b.sstime time,b.setime time2 ,a.sdate time,a.edate time2
,row_number() over(partition by a.cmno order by c.iseq) rno2 ,row_number() over(partition by a.cmno order by c.iseq) rno2
,row_number() over(order by b.setime) rno ,row_number() over(order by b.setime) rno
from lect a from lect a
@ -81,7 +81,7 @@
,3 intval,0 intval2,b.classno intval3,c.extype intval4,0 intval5,0 intval6,a.cmno intval7 ,3 intval,0 intval2,b.classno intval3,c.extype intval4,0 intval5,0 intval6,a.cmno intval7
,a.lectno longval ,a.lectno longval
,b.cname strval,b.studyplace strval2,null strval3,bc.cname strval4 ,b.cname strval,b.studyplace strval2,null strval3,bc.cname strval4
,b.sstime time,b.setime time2 ,a.sdate time,a.edate time2
,row_number() over(partition by a.cmno order by c.extype,c.cdt) rno2 ,row_number() over(partition by a.cmno order by c.extype,c.cdt) rno2
,row_number() over(order by b.setime) rno ,row_number() over(order by b.setime) rno
from lect a from lect a
@ -103,7 +103,7 @@
,4 intval,0 intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7 ,4 intval,0 intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7
,a.lectno longval ,a.lectno longval
,b.cname strval,b.studyplace strval2,null strval3,bc.cname strval4 ,b.cname strval,b.studyplace strval2,null strval3,bc.cname strval4
,b.sstime time,b.setime time2 ,a.sdate time,a.edate time2
,row_number() over(partition by a.cmno order by c.cdt) rno2 ,row_number() over(partition by a.cmno order by c.cdt) rno2
,row_number() over(order by b.setime) rno ,row_number() over(order by b.setime) rno
from lect a from lect a
@ -125,7 +125,7 @@
,5 intval,0 intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7 ,5 intval,0 intval2,b.classno intval3,0 intval4,0 intval5,0 intval6,a.cmno intval7
,a.lectno longval ,a.lectno longval
,b.cname strval,b.studyplace strval2,null strval3,bc.cname strval4 ,b.cname strval,b.studyplace strval2,null strval3,bc.cname strval4
,b.sstime time,b.setime time2 ,a.sdate time,a.edate time2
,row_number() over(partition by a.cmno order by c.cdt) rno2 ,row_number() over(partition by a.cmno order by c.cdt) rno2
,row_number() over(order by b.setime) rno ,row_number() over(order by b.setime) rno
from lect a from lect a
@ -372,6 +372,7 @@
select distinct a.lectno,a.attrate select distinct a.lectno,a.attrate
,b.rsno,b.cmno,b.rscno,b.rstype,b.rsname,b.rscondition ,b.rsno,b.cmno,b.rscno,b.rstype,b.rsname,b.rscondition
,case when c.lectno is null then 0 else 1 end isrsok ,case when c.lectno is null then 0 else 1 end isrsok
,a.edate
from lect a from lect a
inner join cmrs b on b.cmno=a.cmno and b.isdel=0 inner join cmrs b on b.cmno=a.cmno and b.isdel=0
left outer join lectrs c on c.lectno=a.lectno and c.rsno=b.rsno left outer join lectrs c on c.lectno=a.lectno and c.rsno=b.rsno
@ -428,6 +429,7 @@
,null strval,0 intval10 ,null strval,0 intval10
,0 intval,0 intval2,0 intval3,0 intval4 ,0 intval,0 intval2,0 intval3,0 intval4
,0 rno ,0 rno
,null time
from (select 1 col1) a from (select 1 col1) a
where a.col1=0 where a.col1=0
<isNotNull property="exam"> <isNotNull property="exam">
@ -439,6 +441,7 @@
,case when c.eend is null then 0 else 1 end intval3 ,case when c.eend is null then 0 else 1 end intval3
,null intval4 ,null intval4
,row_number() over (partition by b.extype order by b.extype, b.cdt) rno ,row_number() over (partition by b.extype order by b.extype, b.cdt) rno
,a.edate time
from lect a from lect a
inner join cm a2 on a2.cmno=a.cmno inner join cm a2 on a2.cmno=a.cmno
inner join cmex b on b.cmno=a.cmno and b.isdel=0 inner join cmex b on b.cmno=a.cmno and b.isdel=0
@ -454,6 +457,7 @@
,case when c.submittime is null then 0 else 1 end intval3 ,case when c.submittime is null then 0 else 1 end intval3
,case when c.checktime is null then 0 else 1 end intval4 ,case when c.checktime is null then 0 else 1 end intval4
,row_number() over (order by b.cdt) rno ,row_number() over (order by b.cdt) rno
,a.edate time
from lect a from lect a
inner join cm a2 on a2.cmno=a.cmno inner join cm a2 on a2.cmno=a.cmno
inner join cmsd b on b.cmno=a.cmno and b.sdtype=0 and b.isdel=0 inner join cmsd b on b.cmno=a.cmno and b.sdtype=0 and b.isdel=0
@ -469,6 +473,7 @@
,case when count(d.bno) &gt; 0 then 1 else 0 end intval3 ,case when count(d.bno) &gt; 0 then 1 else 0 end intval3
,case when c.checktime is null then 0 else 1 end intval4 ,case when c.checktime is null then 0 else 1 end intval4
,row_number() over (order by b.cdt) rno ,row_number() over (order by b.cdt) rno
,a.edate time
from lect a from lect a
inner join cm a2 on a2.cmno=a.cmno inner join cm a2 on a2.cmno=a.cmno
inner join cmsd b on b.cmno=a.cmno and b.sdtype=1 and b.isdel=0 inner join cmsd b on b.cmno=a.cmno and b.sdtype=1 and b.isdel=0

View File

@ -20,7 +20,7 @@
<tr> <tr>
<th> <th>
<h5><b>@(d.dtype == 0 ? "진행평가":d.dtype==1?"최종평가":d.dtype == 2?"과제":d.dtype==3?"토론":"")</b><span> @d.strval</span></h5> <h5><b>@(d.dtype == 0 ? "진행평가":d.dtype==1?"최종평가":d.dtype == 2?"과제":d.dtype==3?"토론":"")</b><span> @d.strval</span></h5>
<p>참여조건 : 진도율 @(d.intval2)% 이상</p> <p>참여조건 : 진도율 @(d.intval2)% 이상 / 수강 종료일 (@d.time.ToShortDateString()) 이내</p>
</th> </th>
<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))" <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> 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>
@ -59,7 +59,7 @@
} }
function eva(type, no, status) { function eva(type, no, status) {
if (status == 1) { if (status == 1) {
msg("진도율 조건을 충족시키지 못하여 참여하실 수 없습니다."); msg("진도율 조건에 맞지않거나 수강일이 종료되어 참여하실 수 없습니다.");
} else { } else {
setv("estno", no); setv("estno", no);
$("#mform").attr("action", "/CRoom/Estimation" + (type < 2 ?"Exam":type==2?"Subject":"Discuss")).submit(); $("#mform").attr("action", "/CRoom/Estimation" + (type < 2 ?"Exam":type==2?"Subject":"Discuss")).submit();

View File

@ -21,19 +21,12 @@
<tbody> <tbody>
<tr> <tr>
<td>나의성적</td> <td>나의성적</td>
@if (Model.Lect.iscomplete == null)
{
<td colspan="6">공개전</td>
}
else
{
<td>@(Model.Lect.attrate)%(@(Model.Lect.attrate)점)</td> <td>@(Model.Lect.attrate)%(@(Model.Lect.attrate)점)</td>
<td>@(Model.Lect.ex0lectpoint)점</td> <td>@(Model.Lect.ex0lectpoint)점</td>
<td>@(Model.Lect.ex1lectpoint)점</td> <td>@(Model.Lect.ex1lectpoint)점</td>
<td>@(Model.Lect.sd0lectpoint)점</td> <td>@(Model.Lect.sd0lectpoint)점</td>
<td>@(Model.Lect.sd1lectpoint)점</td> <td>@(Model.Lect.sd1lectpoint)점</td>
<td style="color:#ff0000;">@(Model.Lect.apoint + Model.Lect.mpoint + Model.Lect.fpoint + Model.Lect.spoint + Model.Lect.dpoint)점</td> <td style="color:#ff0000;">@(Model.Lect.apoint + Model.Lect.mpoint + Model.Lect.fpoint + Model.Lect.spoint + Model.Lect.dpoint)점</td>
}
@*<td>@(Model.Lect.attrate)%(@(Model.Lect.apoint)점)</td> @*<td>@(Model.Lect.attrate)%(@(Model.Lect.apoint)점)</td>
<td>@(Model.Lect.mpoint)점</td> <td>@(Model.Lect.mpoint)점</td>
<td>@(Model.Lect.fpoint)점</td> <td>@(Model.Lect.fpoint)점</td>
@ -50,6 +43,12 @@
<td>@(Model.Lect.dcut)점이상</td> <td>@(Model.Lect.dcut)점이상</td>
<td style="color:#ff0000;">@(Model.Lect.cut)점이상</td> <td style="color:#ff0000;">@(Model.Lect.cut)점이상</td>
</tr> </tr>
<tr>
@if (Model.Lect.iscomplete == null)
{
<td colspan="7">※ 나의성적이 수료기준을 충족하였을 경우 성적 화면에서 수료요청을 해주셔야 합니다.</td>
}
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>

View File

@ -17,11 +17,18 @@
<h5>[@(d.iseq)회] @d.ititle</h5> <h5>[@(d.iseq)회] @d.ititle</h5>
<dl> <dl>
<dt>@(d.isonline == 0 && d.istatus == 2 ? "출석완료" : d.isonline == 0 && d.idate < DateTime.Now ? "결석" : d.isonline == 0 ? "출석전" : d.stime == null ? "학습전(0%)" : d.istatus == 2 ? "학습완료" : string.Format("학습중({0}%)", d.sttime > 0 ? (d.totstudy * 100 / (d.sttime * 60)) : 0))</dt> <dt>@(d.isonline == 0 && d.istatus == 2 ? "출석완료" : d.isonline == 0 && d.idate < DateTime.Now ? "결석" : d.isonline == 0 ? "출석전" : d.stime == null ? "학습전(0%)" : d.istatus == 2 ? "학습완료" : string.Format("학습중({0}%)", d.sttime > 0 ? (d.totstudy * 100 / (d.sttime * 60)) : 0))</dt>
<dd><span>@(d.isonline == 0 ? "강의시작일" : "강의기간")</span> : @(d.isonline == 0 ? string.Format("{0} {1}:{2}", d.idate.ToString("MM/dd"), d.ist.Substring(0, 2), d.ist.Substring(2, 2)) : (d.sstime.ToString("MM/dd") + " ~ " + d.setime.ToString("MM/dd")))</dd> <dd><span>@(d.isonline == 0 ? (d.cshape != 2 ? "강의시작일" : "집체교육") : "강의기간")</span> : @(d.isonline == 0 ? (d.cshape != 2 ? string.Format("{0} {1}:{2}", d.idate.ToString("MM/dd"), d.ist.Substring(0, 2), d.ist.Substring(2, 2)) : d.eend.ToString("MM/dd")) : (d.sdate.ToString("MM/dd") + " ~ " + d.edate.ToString("MM/dd")))</dd>
@if (d.isonline == 0) @if (d.isonline == 0)
{
if (d.cshape != 2)
{ {
<dd style="margin-left:10px;"><span style="color:#222">강의실</span> : @(d.icontent ?? "-")</dd> <dd style="margin-left:10px;"><span style="color:#222">강의실</span> : @(d.icontent ?? "-")</dd>
} }
else
{
<dd style="margin-left:10px;"><span style="color:#222">장소</span> : @(d.cname ?? "-")</dd>
}
}
</dl> </dl>
</td> </td>
<td> <td>
@ -40,7 +47,7 @@
@if (d.isonline == 1) @if (d.isonline == 1)
{ {
//학습기간 종료후에도 시청은 가능하고, 출석인정은 되지않도록 변경 2021-01-25 //학습기간 종료후에도 시청은 가능하고, 출석인정은 되지않도록 변경 2021-01-25
<a href="#" onclick="playerOpen(@d.cmino, @(d.sstime < DateTime.Now @*&& d.setime > DateTime.Now *@ ? 1 : 0), @(d.isseq == 1 && d.iseq != 1 && d.preistatus < 2 ? 0 : 1), @(Model.intval > 5 && d.isrebate == 1 ? 0 : 1));" class="lctcStdy">학습하기</a> <a href="#" onclick="playerOpen(@d.cmino, @(d.sdate < DateTime.Now @*&& d.setime > DateTime.Now *@ ? 1 : 0), @(d.isseq == 1 && d.iseq != 1 && d.preistatus < 2 ? 0 : 1), @(Model.intval > 5 && d.isrebate == 1 ? 0 : 1));" class="lctcStdy">학습하기</a>
} }
</li> </li>
</ul> </ul>

View File

@ -13,18 +13,17 @@
<tr> <tr>
<th> <th>
<h5><span>@d.rstypename</span></h5> <h5><span>@d.rstypename</span></h5>
<p>참여조건 : 진도율 @(d.rscondition)% 이상 , 수강 기간내</p> <p>참여조건 : 진도율 @(d.rscondition)% 이상 / 수강 종료일 (@d.edate.ToShortDateString()) 이내</p>
</th> </th>
<td> <td>
@if (ViewBag.isres > 0) @if (ViewBag.isres > 0)
{ {
<a href="#" data-rsno="@(d.attrate >= d.rscondition && d.isrsok == 0 ? d.rsno : 0)" class="evaType@(d.rscondition > d.attrate ? "01" : d.isrsok == 1 ? "03" : "02")">@(d.rscondition > d.attrate ? "참여불가" : d.isrsok == 1 ? "참여완료" : "참여")</a> <td><a href="#" data-rsno="@(d.attrate >= d.rscondition && d.isrsok == 0?d.rsno:0)" class="evaType@((d.rscondition > d.attrate) || (d.edate < DateTime.Now ) ? "01": d.isrsok == 1 ? "03" : "02")">@(d.rscondition > d.attrate ? "참여불가" : d.isrsok == 1 ? "참여완료" : "참여가능")</a></td>
} }
else else
{ {
<a href="#" class="evaType02">참여불가</a> <td><a href="#" class="evaType01">참여불가</a></td>
} }
</td>
</tr> </tr>
} }
} }

View File

@ -40,7 +40,8 @@
<dl class="ltaDl"> <dl class="ltaDl">
<dt class="@(d.pstatus == 1 && d.rfdstatus < 1 ? "ltaDlbk":"ltaDlred")">@(d.pstatus == 55 ? "승인대기" : d.pstatus == 51 ? "심사중" : d.pstatus == 21 ? "결제대기" : d.pstatus == 22 ? "입금대기" : d.pstatus == 1 && d.rfdstatus > 0 ? "환불요청" : d.pstatus == 1 ? "결제완료" : d.rstatus == 1 ? "부분환불" : d.rstatus == 2 ? "전액환불" : "-")</dt> <dt class="@(d.pstatus == 1 && d.rfdstatus < 1 ? "ltaDlbk":"ltaDlred")">@(d.pstatus == 55 ? "승인대기" : d.pstatus == 51 ? "심사중" : d.pstatus == 21 ? "결제대기" : d.pstatus == 22 ? "입금대기" : d.pstatus == 1 && d.rfdstatus > 0 ? "환불요청" : d.pstatus == 1 ? "결제완료" : d.rstatus == 1 ? "부분환불" : d.rstatus == 2 ? "전액환불" : "-")</dt>
<dd> <dd>
수강기간 : @d.sdate.ToString("yy-MM-dd") ~ @d.edate.ToString("yy-MM-dd") 신청기간 : @(d.retime.Value.Year == 2099 ? "상시운영" : d.rstime.Value.ToString("yy/MM/dd") + " ~ " + d.retime.Value.ToString("yy/MM/dd"))
@*수강기간 : @d.sdate.ToString("yy-MM-dd") ~ @d.edate.ToString("yy-MM-dd")*@
@if (d.cshape == 2) @if (d.cshape == 2)
{ {
@:| 집체교육기간 : @(d.cmisno == null ? "미정" : ("[" + d.studyplacename + "] " + string.Format("{0}", d.cmiestart.ToString("yy-MM-dd")))) @:| 집체교육기간 : @(d.cmisno == null ? "미정" : ("[" + d.studyplacename + "] " + string.Format("{0}", d.cmiestart.ToString("yy-MM-dd"))))

View File

@ -2183,6 +2183,8 @@ namespace NP.Model
public int rscondition {get;set;} public int rscondition {get;set;}
public int attrate { get; set; } public int attrate { get; set; }
public int isrsok { get; set; } public int isrsok { get; set; }
public DateTime sdate { get; set; }
public DateTime edate { get; set; }
} }
[Serializable] [Serializable]