<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectSTVideo.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectSTVideo" %> <%--<%= new MySubjectUserNavTopInstance(this) { Local= MySubjectUserNavTopItem.我的评审任务 }.ToHtml()%>--%>
<%=new HtmlSpan(this.Subject.Name) { TextLength=40,Suffix="...",Title=this.Subject.Name }%>共<%= this.Query.RecordCount %>个视频需要评分
名称: <%= new HtmlText("Name", this.Name) { Width = 120 }%> 学科: <%= new HtmlSelect("ParentCategory", "Name", "Guid", "Guid") { Option = this.ListCategory }.InsertOption("::选择::", "", 0)%> <%= new HtmlHidden("Key","MySubjectSTVideo") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%>
<% //标识是否可以进行评审 bool isSTTime = false; if (this.Subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.审核通过 && this.Subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.启动 && this.Subject.CutoffTime <= DateTime.Now && this.Subject.EndTime >= DateTime.Now) { isSTTime = true; } if (this.Subject.Status != (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.启动) { %>
任务<%= Enum.GetName(typeof( AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum),this.Subject.Status) %>
<%} else {%>
评审倒计时:
<% } %> <%-- --%> <%----%> <%--这个版本解决了打开这个页面过慢的问题--%> <% for (int i = 0; i <= this.ListSTUserVideo.Count - 1; i++) { var subjectVideo = this.ListSTUserVideo[i]; var subject = this.ListSTUserVideo[i].ParentSubjectVideo.ParentSubject; var video = this.ListSTUserVideo[i].ParentSubjectVideo.ParentVideo; %> <% } %>
视频 名称 大小 时间 操作 得分
<%= new HtmlCheckBox() { Value = SetKey(subjectVideo.Guid, subjectVideo.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>

<%= video.Name %>

<%--已评人数:<%= CreateInstance.STVideoScoreDao.VideoScoreCount(subject,video) %> / <%= subject._ListSTUser.Count %>
--%> <% if (CreateInstance.STVideoScoreDao.VideoScore(subject, video,this.User) == 0) { %> 未评分 <% } else { %> 已评:<%=CreateInstance.STVideoScoreDao.VideoSTUserScore(subject, video,this.User) %>分
<%--<%= new MySubjectSTVideoTotalInstance(this) { Video = video}.ToHtml()%>--%> <% } %>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubjectSTVideo(this.Subject.Guid, int.MaxValue,this.CategoryGuid, this.Name) }.ToHtml()%>