%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySTVideoScore" %>
<% foreach (var itemVideo in listVideo) { %> | <%= 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.ParentUserType.ParentDomain.Code,stUser.ParentUser.UserName) }%> | <% double total = 0; foreach (var itemVideo 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; %> <%= stVideoScore.AllScore %> <% //有评的话,判断是否已经评完了 int videoCount; int scoreVideoCount; int scoreVideoPartCount; CreateInstance.STUserDao.UserScore(stUser, out videoCount, out scoreVideoCount, out scoreVideoPartCount); if (scoreVideoPartCount > 0) { %> 已评:<%= scoreVideoCount %> 未评<%= scoreVideoPartCount %> <% } } } %><%= total %> |