<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyShiXunWork.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubject" %> <%= new MyShiXunWorkNavTopInstance(this) { Local = MyShiXunWorkNavTopItem.作业管理 }.ToHtml()%>
我创建的<%= this.Query.RecordCount %>个实训作业
作业名称: <%= new HtmlText("Name", this.Name) { Width = 120 }%> 日期从 <%= new HtmlText("BeginTime", this.BeginTime.ToShortDate()) { Width = 80 }%> 至 <%= new HtmlText("EndTime", this.EndTime.ToShortDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MyShiXunWork") %> <%= new HtmlSubmit("查询") %> <%--<%= new HtmlReset("清除") { Class="btn"}%>--%> <%= new HtmlButton("创建实训作业...", "window.location.href='" + WebUrl.MyShiXunWorkAdd() + "';"){ Class="btn btn-warning " }%> <%= new HtmlButton("删除", "SubjectBatchDelete(this);") { Class="pull-right btn-danger" }%>
<% for (int i = 0; i <= this.ListSubject.Count - 1; i++) { var subject = this.ListSubject[i]; %> <% } %>
任务封面 任务名称 任务状态 起止时间 截止提交作业日期 操作
<%= new HtmlCheckBox() { Value = SetKey(subject.Guid, subject.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
    <% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.禁用) { %>
  • <%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = "#",OnClick= "CheckStatus()", Title = subject.Name}%>
  • <% } else { %>
  • <%=new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} %> <%-- <%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.SubjectView(subject.Guid), Target = "_blank", Title = subject.Name}%> --%>
  • <% } %>

<% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.禁用) { %> <%= new HtmlAnchor(subject.Name) { Href = "#",OnClick="CheckStatus();",Suffix="..", TextLength=22 }%> <% } else { %> <%= new HtmlAnchor(subject.Name) { Href = WebUrl.MyShiXunWorkEdit(subject.Guid), Target = "_blank",Suffix="..", TextLength=22 }%> <% } %>
已交作业:<%=CreateInstance.SubjectVideoDao.Count(l => l.ParentSubject == subject) %>个 <%--当前未分配:<%= AVA.ResourcesPlatform.Factory.CreateInstance.SubjectVideoDao.Where(l => l._ListSTUserVideo.Select(s => s.ParentSubjectVideo.Guid).ToArray().Contains(l.Guid)).Count()%>--%> <%-- 当前未分配作业:<% = (CreateInstance.SubjectVideoDao.Count(l => l.ParentSubject == subject))-(CreateInstance.SubjectVideoDao.Count(l => l._ListSTUserVideo.Any(li => li.ParentSubjectVideo.ParentSubject == subject))) %>个 --%>
当前未审核参与人员:<%= (CreateInstance.SubjectUserApplyDao.Count(l=>l.ApplyStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectUserApplyApplyStatusEnum.申请 && l.ParentSubject == subject)) %>个
<% if (subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.审核不通过 || subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.提交审核) { %> <%= ((AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum)subject.Examine).Define()%> <% } %> <%-- <% var classExamine = ""; if (subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.审核通过) { classExamine = "pass"; } else if (subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.审核不通过) { } else { classExamine = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum)subject.Examine).Define()%> <% if (subject.LockSubject == (int)AVA.ResourcesPlatform.Model.Pub.SubjectLockSubjectEnum.锁定) { %> <%= new HtmlSpan("锁定") { Title = subject.ParentLockUser.UserName + " " + subject.LockDateTime + " " + subject.LockDescription }.Style(new { Color = "Red" })%> <% } %>
<% if (subject.ShareUpload == (int)AVA.ResourcesPlatform.Model.Pub.SubjectShareUploadEnum.是) { %> 公开上传 <% } %> 播放:<%= subject.VideoView%> 评论:<%= subject.CommentCount%>--%>

<% var classStatus = ""; if (subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.启动) { classStatus = "pass"; } else { classStatus = ""; } %> <% var isOver = false; if (subject.ParentSubject != null && subject.ParentSubject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.结束) { isOver = true; } %> <%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "SubjectChangeStatusClient(this,'" + SetKey(subject.Guid, subject.Version) + "');", Lang = subject.Status.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum), SelectedValue = isOver ? (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.结束 : subject.Status, Disabled=isOver }.Style(new { Width = "auto" })%>
<%if (subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.启动 && AVA.ResourcesPlatform.Factory.CreateInstance.SubjectDao.Count(l => l.ParentSubject == subject) > 0) { if (subject.CutoffTime > DateTime.Now) { %>

初赛阶段

<% } else { %>

决赛阶段

<% } } %>
<%= subject.BeginTime.ToShortDate()%> 至 <%= subject.EndTime.ToShortDate()%> <%= subject.CutoffTime.ToShortDate()%> <%= new HtmlAnchor("编辑") { Href = WebUrl.MyShiXunWorkEdit(subject.Guid) }%> | 删除
<%--<%= new HtmlAnchor(Define.Get("Client_专辑")) { Href = WebUrl.MySubjectAlbumList(subject.Guid) }%> <%--
<%= new HtmlAnchor("人员") { Href = WebUrl.MySubjectUserList(subject.Guid) }%> | <%= new HtmlAnchor("申请") { Href = WebUrl.MySubjectUserApplyList(subject.Guid) }%>
<%= new HtmlAnchor("附件") { Href = WebUrl.MySubjectAttachmentList(subject.Guid) }%> | <%= new HtmlAnchor("视频") { Href = WebUrl.MySubjectVideoList(subject.Guid) }%>
--%> <% if (SettingGroup.HasMeeting == true) { %> <%-- <%= new HtmlAnchor("教研") { Href = WebUrl.MySubjectMeetingList(subject.Guid) }%> | <% } %> <%= new HtmlAnchor("直播") { Href = WebUrl.MySubjectApplicationList(subject.Guid) }%>
<% if (subject.STEnable == true) { %> <%= new HtmlAnchor("奖项") { Href = WebUrl.MySTAwardList(subject.Guid) }%> | <%= new HtmlAnchor("评分项") { Href = WebUrl.MySTScoreItemList(subject.Guid) }%>
<%= new HtmlAnchor("评审") { Href = WebUrl.MySTUserList(subject.Guid) }%> | <%= new HtmlAnchor("排名") { Href = WebUrl.MySTfinallyScoreList(subject.Guid) }%>
<%= new HtmlAnchor("评分") { Href = WebUrl.MySTVideoScore(subject.Guid) }%> |--%> <% } %> <%= new HtmlText("SortNumber", subject.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};SubjectChangeSortNumberClient(this,'" + SetKey(subject.Guid, subject.Version) + "')", Lang = subject.SortNumber.ToString(), Width = 50, Title = "修改当前"+ Define.Get("Client_专辑")+"的位置" }%>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyShiXunWork(int.MaxValue, this.Name, this.BeginTime.ToString(null), this.EndTime.ToString(null)) }.ToHtml()%>