<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySTVideoScore" %> <%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.作品得分, Subject = this.Subject }.ToHtml()%>
<%= Define.Get("Client_优课评比")%>评分
<%= new HtmlHidden("ExprotExcelXMLParameter", this.Subject.Guid)%> <%= new HtmlHidden("ExprotKey","STVideoScore") %>
<%--
参赛作品总数:<%= CreateInstance.SubjectVideoDao.Count(l => l.ParentSubject == this.Subject) %>个 剩余未评数:<% =((CreateInstance.SubjectVideoDao.Count(l => l.ParentSubject == this.Subject))-(CreateInstance.VideoDao.Count(l => l._ListSTVideoScore.Any(li=>li.ParentSTUser.ParentSubject == this.Subject))))%>个 已评数:<%= CreateInstance.VideoDao.Count(l => l._ListSTVideoScore.Any(li=>li.ParentSTUser.ParentSubject == this.Subject)) %>个
--%>
<% if (this.ListSTUser != null && this.ListSTUser.Count > 0) { %> <%foreach(var item in this.ListSTUser) { int videoCount; int scoreVideoCount; int scoreVideoPartCount; CreateInstance.STUserDao.UserScore(item, out videoCount, out scoreVideoCount, out scoreVideoPartCount); %> <% } %> <% } %>
<% if (this.ListSTUser != null && this.ListSTUser.Count > 0) { //var listVideo = CreateInstance.SubjectVideoDao.Where(l => l.ParentSubject == this.Subject) // .ToList(); var listVideo = this.ListSubjectVideo; %>
评分人员 应评视频数 已评视频数
<%= item.ParentUser.TrueName %> <%= CreateInstance.STUserVideoDao.Count(l=>l.ParentSTUser.ParentUser == item.ParentUser && l.ParentSubjectVideo.ParentSubject == this.Subject)%> <%= scoreVideoCount %>
<%----%> <%----%> <% var i = 0; foreach (var subjectVideo in listVideo) { var itemVideo = CreateInstance.SubjectVideoDao.Get(subjectVideo.Guid); %> "> <%--" id="<%=itemVideo.ParentVideo.Guid %>">--%> <% i++; } %>
参赛视频名称 评分情况评分明细分数 操作总分
<%= new HtmlAnchor(itemVideo.ParentVideo.Name) { Href = WebUrl.SubjectPlay(this.Subject.Guid,itemVideo.ParentVideo.Guid),Target="_blank" }%> <% var stUserVideoList = CreateInstance.STUserVideoDao.Where(l => l.ParentSubjectVideo == itemVideo).ToList(); if (stUserVideoList.Count == 0) { %> 该视频未分配 <% } else { %> <%--应评人数:<%= stUserVideoList.Count %>
--%> 应评人数:<%= subjectVideo.STUserCount %>
<%--已评人数:<%= CreateInstance.STVideoScoreDao.VideoScoreCount(this.Subject,itemVideo.ParentVideo) %>--%> 已评人数:<%= subjectVideo.HasSTUserCount %> <% } %>
<%----%> <%= subjectVideo.AllScore == null ? 0 : Math.Round(subjectVideo.AllScore.ToDecimal(),1,MidpointRounding.AwayFromZero) %> <%if(stUserVideoList.Count > 0) { %> 查看评分详情 <%} %>
<% } %>
<%= new PagerAjaxInstance(this) { RecordCount = this.RecordCount, PageSize = this.PageRecordSize, PageRecordSize = this.PageRecordSize, PageIndex = this.PageIndex, PageJsFn = WebUrl.MySTVideoScore(this.Subject.Guid,int.MaxValue) }.ToHtml()%>