강의실>평가>과제제출 :

"(오류)
과제 등록 시 운영자에게 문의해주세요 출력

ID: teststudent5
강좌: 교육기간 ~7/1
초기값: 교육기간 ~7/1 로 설정 및 수강신청
교육생 교육기간 변경 : 교육운영>수강신청>교육생정보
변경일자: ~7/30
현상 : 변경된 날짜 7/30까지 시험 제출이 가능하도록 변경"
This commit is contained in:
lch 2021-07-13 00:57:50 +00:00
parent 4c887f91e8
commit 767d19d875
3 changed files with 14 additions and 6 deletions

View File

@ -613,7 +613,7 @@
where a.lectno=#lectno# and a.exno=#exno# and a.eend is null
</update>
<select id="cr.lectsd" parameterClass="hashtable" resultClass="lectsd">
select a.lectno,a.attrate,a.cmno
select a.lectno,a.attrate,a.cmno,a.sdate,a.edate
,b.sdno,b.sdname,b.sddesc,b.fgno sdfgno,b.sdcondition
,a.sdate sstime,a.edate setime
,d.checktime,d.cpoint,d.feedb,d.fgno,d.atext
@ -625,8 +625,8 @@
</select>
<update id="cr.lectsd.save" parameterClass="lectsd">
update lectsd a
inner join lect b on b.lectno=a.lectno and b.userno=#userno#
inner join cm c on c.cmno=b.cmno and c.sstime &lt; now() and c.setime &gt; now()
inner join lect b on b.lectno=a.lectno and b.userno=#userno# and b.sdate &lt; now() and b.edate &gt; now()
inner join cm c on c.cmno=b.cmno
set a.udt=now(),a.uno=#uno#,a.uip=#uip#
,a.fgno=#fgno#,a.atext=#atext#
,a.submittime=now(),submitip=#uip#
@ -636,7 +636,7 @@
select a.lectno,a.sdno,#atext#,#fgno#,0,now(),#uip#,<include refid="sql.inv"></include>
from (select #lectno# lectno,#userno# userno,#sdno# sdno) a
inner join lect b on b.lectno=a.lectno and b.userno=a.userno
inner join cm c on c.cmno=b.cmno and c.sstime &lt; now() and c.setime &gt; now()
inner join cm c on c.cmno=b.cmno and b.sdate &lt; now() and b.edate &gt; now()
left outer join lectsd d on d.lectno=a.lectno and d.sdno=a.sdno
where d.lectno is null;
</update>

View File

@ -18,7 +18,7 @@
</tr>
<tr>
<th>제출시간</th>
<td>@Model.LectSD.sstime.ToString("yy-MM-dd") 00:00 ~ @Model.LectSD.setime.ToString("yy-MM-dd") 23:59</td>
<td>수강 종료일 (@Model.LectSD.edate.Value.ToString("yyyy-MM-dd")) 이내</td>
</tr>
<tr>
<td colspan="2">
@ -61,7 +61,7 @@
</tbody>
</table>
<ul class="lctBtn col1">
@if (Model.LectSD.sstime < DateTime.Now && Model.LectSD.setime > DateTime.Now && Model.LectSD.checktime == null)
@if (Model.LectSD.sdate < DateTime.Now && Model.LectSD.edate > DateTime.Now && Model.LectSD.checktime == null)
{
<li><a href="#" class="bk sm" onclick="save()">제출</a></li>
}

View File

@ -3384,6 +3384,14 @@ namespace NP.Model
}
public String lectnos { get; set; }
public Int64 bno { get; set; }
/// <summary>
/// 온라인강좌 수강시작일
/// </summary>
public DateTime? sdate { get; set; }
/// <summary>
/// 온라인강좌 수강종료일
/// </summary>
public DateTime? edate { get; set; }
}
/// <summary>
/// 토론글