<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectUserVideo.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectUserVideo" %> <%--<%= new MySubjectUserNavInstance(this) { Local= MySubjectUserNavItem.我的视频, Subject = this.Subject}.ToHtml()%>--%>
<%= this.Subject.Name %>作品列表 共<%= this.Query.RecordCount %>个视频
名称: <%= new HtmlText("Name", this.Name) { Width = 120 }%> <%= new HtmlHidden("Key","MySubjectUserVideo") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%-- <%= new HtmlButton("添加视频", "window.location.href='" + WebUrl.MySubjectUserVideoAdd(this.Subject.Guid) + "';"){ Class="btn btn-warning " }%>--%> <%= new HtmlButton("删除", "SubjectVideoBatchDelete(this);"){ Class="btn btn-danger pull-right" }%>
<% for (int i = 0; i <= this.ListSubjectVideo.Count - 1; i++) { var subjectVideo = this.ListSubjectVideo[i]; var subject = this.ListSubjectVideo[i].ParentSubject; var video = this.ListSubjectVideo[i].ParentVideo; %> <% } %>
视频 名称 大小 时间 操作 得分
<%= new HtmlCheckBox() { Value = SetKey(subjectVideo.Guid, subjectVideo.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
  • <%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.SubjectPlay(subject.Guid, video.Guid,subject.Theme), Title = video.Name, Target = "_blank" }%>

<%= new HtmlAnchor(video.Name) { Href = WebUrl.SubjectPlay(subject.Guid, video.Guid,subject.Theme), Target = "_blank" }%>
<% var classExamine = ""; if (video.Examine == (int)AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum.审核通过) { classExamine = "pass"; } else if (video.Examine == (int)AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum.审核不通过) { } else { classExamine = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum)video.Examine).Define() %>
<% var classStatus = ""; if (video.Status == (int)AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum.有效) { classStatus = "pass"; } else { classStatus = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum)video.Status).Define() %> <% var videoConvertStatus = ""; if (video.VideoConvertStatus == (int)AVA.ResourcesPlatform.Model.Pub.VideoVideoConvertStatusEnum.已转换) { videoConvertStatus = "pass"; } else { videoConvertStatus = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoVideoConvertStatusEnum)video.VideoConvertStatus).Define() %>
播放:<%= video.VideoView %> 评论:<%= video.CommentCount %>

大小:<%= AVA.ResourcesPlatform.Config.Helper.FormatSize(video.FileSize.ToDouble()) %>
时长:<%= video.Period %>秒
权限:<%= ((AVA.ResourcesPlatform.Model.Pub.VideoShareEnum)video.Share).Define() %>
申请: <%= new HtmlSpan(subjectVideo.SubmissionTime.ToShortDate()) { Title = subjectVideo.SubmissionRemark }%>
<% if (subjectVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectVideoConfirmStatusEnum.通过) { %> 确认: <% } else if (subjectVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectVideoConfirmStatusEnum.拒绝) { %> 拒绝: <% } else if (subjectVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectVideoConfirmStatusEnum.未审核) { %> 未审核: <% } %> <%= new HtmlSpan(subjectVideo.ConfirmTime.ToShortDate()) { Title = subjectVideo.ConfirmRemark }%>
删除
<%= new HtmlAnchor("预览") { Href = WebUrl.SubjectPlay(subject.Guid, video.Guid,subject.Theme), Target = "_blank" }%>
已评人数:<%= CreateInstance.STVideoScoreDao.VideoScoreCount(subject,video) %> / <%= subject._ListSTUser.Count %>
分数: <% var videoFinallyScore = CreateInstance.STfinallyScoreDao.Where(l => l.ParentVideo == video && l.ParentSubject == this.Subject).FirstResult(); if (videoFinallyScore == null) { %> 暂无得分 <% } else { %> <%= videoFinallyScore.AllScore %>分 <% } %>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubjectUserVideo(this.Subject.Guid, int.MaxValue, this.Name) }.ToHtml()%>