<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySTVideoScore" %> <%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.作品得分, Subject = this.Subject }.ToHtml()%>
我的评课:评分
参赛作品总数:<%= 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) { var listVideo = CreateInstance.SubjectVideoDao.Where(l => l.ParentSubject == this.Subject) .ToList(); %> <% foreach (var itemVideo in listVideo) { %> <% foreach (var stUser in ListSTUser) { %> <% double total = 0; // foreach (var itemVideo2 in listVideo) // { //这里取每一个视频的总分 var stVideoScore = CreateInstance.STVideoScoreDao.Where(l => l.ParentSTUser == stUser && l.ParentVideo == itemVideo.ParentVideo) .Take(1) .ToList() .FirstResult(); if (stVideoScore == null) { //没评 %> <% } else { total += stVideoScore.AllScore; %> <% //有评的话,判断是否已经评完了 int videoCount; int scoreVideoCount; int scoreVideoPartCount; CreateInstance.STUserDao.UserScore(stUser, out videoCount, out scoreVideoCount, out scoreVideoPartCount); if (scoreVideoPartCount > 0) { %> 已评:<%= scoreVideoCount %> 未评<%= scoreVideoPartCount %> <% } // } } %> <% } %> <% } %>
参评课名称 评分人员 评分情况 分数 总分
> <%= new HtmlAnchor(itemVideo.ParentVideo.Name) { Href = WebUrl.SubjectPlay(this.Subject.Guid,itemVideo.ParentVideo.Guid),Target="_blank" }%> <%= new HtmlAnchor(stUser.ParentUser.TrueName) { Href=WebUrl.Show(stUser.ParentUser.ParentDomain.Code,stUser.ParentUser.UserName) }%> 未评 <%= stVideoScore.AllScore %> <%= total %>
<% } %>