<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectVideoAdd.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectVideoAdd" %> <%--<%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.参赛作品, Subject = this.Subject }.ToHtml()%>--%>
<%--
添加视频到<%= Define.Get("Client_优课评比")%>"<%= this.Subject.Name %>"
--%>
名称: <%= new HtmlText("Name", this.Name) { Width = 80 }%> <%-- 日期从 <%= new HtmlText("CreateTimeBegin", this.CreateTimeBegin.ToShortDate()) { Width = 80 }%> 至 <%= new HtmlText("CreateTimeEnd", this.CreateTimeEnd.ToShortDate()) { Width = 80 }%>--%> <%if(this.ListUnitMaster.Count>0) { %> 所属单位管理部门: <%= new HtmlSelect("UnitMasterGuid", "Name", "Guid", "Guid") { OnChange="ChangeUnit(this);", Width=120, Option = this.ListUnitMaster, DefaultSelectValue = "" }.InsertOption("::请选择::", "", 0)%> 所属单位: <%= new HtmlText("Msg", "请先选择管理部门") { ReadOnly = true,Width=115 }%> <% } %> 学科: <%= new HtmlSelect("ParentCategory", "Name", "Guid", "Guid") { Option = this.ListCategory }.InsertOption("::选择::", "", 0)%> <%= new HtmlHidden("Key","MySubjectVideoAdd") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton("添加到"+Define.Get("Client_优课评比"), "SubjectVideoBatchAdd(this);")%>
<% for (int i = 0; i <= this.ListVideo.Count - 1; i++) { var video = this.ListVideo[i]; %> <% } %>
视频 发布时间 操作
<%= new HtmlCheckBox() { Value = SetKey(video.Guid + "," + this.Subject.Guid, video.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
<%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) { OnErrorImg=SettingGroup.DefaultImg } ) { Href = WebUrl.VideoPlay(video.Guid), Title= video.Name, Target = "_blank" }%>

<%= new HtmlAnchor(video.Name) { Href = WebUrl.VideoPlay(video.Guid), Target = "_blank" }%>
<% var classStatus = ""; if (video.Status == (int)AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum.有效) { classStatus = "pass"; } else { classStatus = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum)video.Status).Define() %> <% 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 videoConvertStatus = ""; if (video.VideoConvertStatus == (int)AVA.ResourcesPlatform.Model.Pub.VideoVideoConvertStatusEnum.已转换) { videoConvertStatus = "pass"; } else { videoConvertStatus = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoVideoConvertStatusEnum)video.VideoConvertStatus).Define() %> <% if (video.LockVideo == (int)AVA.ResourcesPlatform.Model.Pub.VideoLockVideoEnum.锁定) { %> <%= new HtmlSpan("锁定") { Title = video.ParentLockUser.UserName + " " + video.LockDateTime + " " + video.LockDescription }.Style(new { Color = "Red" })%> <% } %>
播放:<%= video.VideoView %> 评论:<%= video.CommentCount %>

<%= video.CreateTime.ToShortDate() %> 大小:<%= AVA.ResourcesPlatform.Config.Helper.FormatSize(video.FileSize.ToDouble()) %>
时长:<%= video.Period %>秒
权限:<%= ((AVA.ResourcesPlatform.Model.Pub.VideoShareEnum)video.Share).Define() %>
<%= video.ParentCategory.Name %>
<% if (video.ParentLesson != null) { %> <%= video.ParentLesson.Section %> 《 <%= video.ParentLesson.Name %> 》 <% } %>
<%= new HtmlAnchor("预览") { Href = WebUrl.VideoPlay(video.Guid) }%> | '); return false;">添加
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubjectVideoAdd(this.Subject.Guid, int.MaxValue, this.CategoryGuid, this.Name, this.CreateTimeBegin.ToString(null), this.CreateTimeEnd.ToString(null),this.ParentUnitGuid) }.ToHtml()%>