Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MySTVideoScore.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySTVideoScore" %> <%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.??????, Subject = this.Subject }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title"><%= Define.Get("Client_??????")%>???</span> <input type="button" value="?????????" onclick="ExprotExcelXML(this);" class="btn btn-warning" style="margin-bottom:10px;" id="exportVideoScore"/> </div> <form id="frmExprotExcelXML" method="post" action="<%= WebUrl.Exprot() %>"> <%= new HtmlHidden("ExprotExcelXMLParameter", this.Subject.Guid)%> <%= new HtmlHidden("ExprotKey","STVideoScore") %> </form> <script type="text/javascript"> //????????? function ExprotExcelXML() { if (confirm("???????????????") == false) { return false; } //alert("?????????"); $("#exportVideoScore").val("??????"); document.getElementById('frmExprotExcelXML').submit(); $("#exportVideoScore").val("?????????"); } </script> <%-- <div class="head"> <span class="title">???????????<%= CreateInstance.SubjectVideoDao.Count(l => l.ParentSubject == this.Subject) %>??</span> <span class="title">?????????<% =((CreateInstance.SubjectVideoDao.Count(l => l.ParentSubject == this.Subject))-(CreateInstance.VideoDao.Count(l => l._ListSTVideoScore.Any(li=>li.ParentSTUser.ParentSubject == this.Subject))))%>??</span> <span class="title">??????<%= CreateInstance.VideoDao.Count(l => l._ListSTVideoScore.Any(li=>li.ParentSTUser.ParentSubject == this.Subject)) %>??</span> </div>--%> <div id="MySTUserVideoData" class="data"> <% if (this.ListSTUser != null && this.ListSTUser.Count > 0) { %> <table cellspacing="0" cellpadding="0" width="100%"> <tr id="dataHead" class="dataHead"> <td> ?????? </td> <td>????????</td> <td>????????</td> </tr> <%foreach(var item in this.ListSTUser) { int videoCount; int scoreVideoCount; int scoreVideoPartCount; CreateInstance.STUserDao.UserScore(item, out videoCount, out scoreVideoCount, out scoreVideoPartCount); %> <tr> <td><%= item.ParentUser.TrueName %></td> <td><%= CreateInstance.STUserVideoDao.Count(l=>l.ParentSTUser.ParentUser == item.ParentUser && l.ParentSubjectVideo.ParentSubject == this.Subject)%></td> <td><%= scoreVideoCount %></td> </tr> <% } %> <% } %> </div> <div id="MySTUserData" class="data"> <% if (this.ListSTUser != null && this.ListSTUser.Count > 0) { //var listVideo = CreateInstance.SubjectVideoDao.Where(l => l.ParentSubject == this.Subject) // .ToList(); var listVideo = this.ListSubjectVideo; %> <table cellspacing="0" cellpadding="0" width="100%"> <tr id="dataHead" class="dataHead"> <td> ?????????</td> <td>??????</td> <%--<td>??????</td>--%> <td style="width:200px;">???</td> <td style="width:200px;">???</td> <%--<td>???</td>--%> </tr> <% var i = 0; foreach (var subjectVideo in listVideo) { var itemVideo = CreateInstance.SubjectVideoDao.Get(subjectVideo.Guid); %> <tr class="<%= i%2==0 ? "" : "gray" %>"> <%--<tr class="<%= i%2==0 ? "" : "gray" %>" id="<%=itemVideo.ParentVideo.Guid %>">--%> <td> <%= new HtmlAnchor(itemVideo.ParentVideo.Name) { Href = WebUrl.SubjectPlay(this.Subject.Guid,itemVideo.ParentVideo.Guid),Target="_blank" }%> </td> <td> <% var stUserVideoList = CreateInstance.STUserVideoDao.Where(l => l.ParentSubjectVideo == itemVideo).ToList(); if (stUserVideoList.Count == 0) { %> ????????? <% } else { %> <%--????????<%= stUserVideoList.Count %><br />--%> ????????<%= subjectVideo.STUserCount %><br /> <%--????????<%= CreateInstance.STVideoScoreDao.VideoScoreCount(this.Subject,itemVideo.ParentVideo) %>--%> ????????<%= subjectVideo.HasSTUserCount %> <% } %> </td> <td> <%--<td id="STVideoAvgScoreData<%=itemVideo.ParentVideo.Guid %>">--%> <%= subjectVideo.AllScore == null ? 0 : Math.Round(subjectVideo.AllScore.ToDecimal(),1,MidpointRounding.AwayFromZero) %> </td> <td> <%if(stUserVideoList.Count > 0) { %> <a onclick="ShowScoreDetails('<%=subjectVideo.Guid %>')" style="cursor:pointer">?????????</a> <%} %> </td> </tr> <tr id="ShowScoreDetails<%=subjectVideo.Guid %>" style="display: none;"> <td colspan="4"> <table cellspacing="0" cellpadding="0" width="100%"> <%foreach (var item in stUserVideoList) { var stUser = item.ParentSTUser; %> <tr> <td> <%= stUser.ParentUser.TrueName %> </td> <% 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 || stVideoScore.AllScore ==0) { //?¤? %> <td>??? </td> <% } else { total += stVideoScore.AllScore; %> <td>???</td> <%--<td> <%= stVideoScore.AllScore %></td>--%> <% //????????????????????? int videoCount; int scoreVideoCount; int scoreVideoPartCount; CreateInstance.STUserDao.UserScore(stUser, out videoCount, out scoreVideoCount, out scoreVideoPartCount); if (scoreVideoPartCount > 0) { %> <%-- <td>???:<%= scoreVideoCount %> ???<%= scoreVideoPartCount %></td>--%> <% } // } } %> <td> <%= total %> </td> </tr> <% } %> </table> </td> </tr> <script type="text/javascript"> function ShowScoreDetails(videoGuid) { $("#ShowScoreDetails" + videoGuid).toggle(500); } //function GetSTVideoAvgScoreData() { // var params = "SubjectGuid=<%= this.Subject.Guid %>&VideoGuid=<%= itemVideo.ParentVideo.Guid %>"; // Global.HtmlControl('<%= ControlPath("/My/MySTVideoAvgScore")%>', params, null, function (json) { // if (json != null) { // $("#STVideoAvgScoreData<%=itemVideo.ParentVideo.Guid %>").html(json.Html); // } // }); //} //GetSTVideoAvgScoreData(); </script> <% i++; } %> </table> <% } %> </div> <div style="position: relative;"> <%= new PagerAjaxInstance(this) { RecordCount = this.RecordCount, PageSize = this.PageRecordSize, PageRecordSize = this.PageRecordSize, PageIndex = this.PageIndex, PageJsFn = WebUrl.MySTVideoScore(this.Subject.Guid,int.MaxValue) }.ToHtml()%> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de