<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyDomainVideoManager.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyDomainVideoManager" %> <%--<%= new MyExamineNavTopInstance(this) { Local= MyExamineNavTopItem.平台视频管理 }.ToHtml()%>--%>
本平台共有<%= this.Query.RecordCount %>个视频
名称: <%= new HtmlText("Name", this.Name) { Width = 120 }%> 日期从 <%= new HtmlText("CreateTimeBegin", this.CreateTimeBegin.ToShortDate()) { Width = 80 }%> 至 <%= new HtmlText("CreateTimeEnd", this.CreateTimeEnd.ToShortDate()) { Width = 80 }%> <% var config = SettingGroup.Setting(); if(config.VideoRangeControl ==true) { if (this.User.ParentDomain.DomainType == (int)AVA.ResourcesPlatform.Model.Pub.DomainDomainTypeEnum.虚拟子平台) { %> 学校平台浏览状态: <%= new HtmlSelect("SchoolPageView", "Value", "Key") { OnChange = "",Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoViewRangeSchoolPageViewEnum) }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0)%> <% } else if (this.User.ParentDomain.DomainType == (int)AVA.ResourcesPlatform.Model.Pub.DomainDomainTypeEnum.当前平台) { %> 区平台浏览状态: <%= new HtmlSelect("AreaPageView", "Value", "Key") { OnChange = "",Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoViewRangeAreaPageViewEnum) }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0)%> <% } } %> <%= new HtmlHidden("Key","MyDomainVideoManager") %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%if(config.VideoRangeControl == true) { %>
<%= new HtmlButton("允许", "VideoViewBatchExamine(this);"){ Class="btn btn-success pull-right" }.Style(new { Margin_Left="10px;"})%> <%= new HtmlButton("拒绝", "VideoViewBatchUnExamine(this);"){ Class="btn btn-warning pull-right" }%>
<% } %>
<%= new HtmlButton("删除", "VideoBatchDelete(this);"){ Class="btn-danger pull-right" }%>
<% if (config.VideoRangeControl == true) { %> <%} %> <%----%> <% for (int i = 0; i <= this.ListVideo.Count - 1; i++) { var video = this.ListVideo[i]; var videoViewRange = CreateInstance.VideoViewRangeDao.Where(l => l.ParentVideo == video).FirstResult(); %> <%--如果开启了开关--%> <%if (config.VideoRangeControl == true) { %> <%} %> <% } %>
封面 名称 状态 日期浏览范围学科 操作序号
<%= new HtmlCheckBox() { Value = SetKey(video.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" }%> " href="<%= WebUrl.VideoPlay(video.Guid) %>" target="_blank">

<%= new HtmlAnchor(video.Name) { Href = WebUrl.VideoPlay(video.Guid), Target = "_blank" ,Suffix="...",TextLength=20 }%>

<% 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.CreateTime.ToShortDate() %> <%if(this.User.ParentDomain.DomainType == (int)AVA.ResourcesPlatform.Model.Pub.DomainDomainTypeEnum.虚拟子平台) { %>

学校平台浏览:<%= new HtmlSelect("SchoolPageView", "Value", "Key") { OnChange = "VideoViewChangeStatusClient(this,'" + SetKey(video.Guid, video.Version) + "');",Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoViewRangeSchoolPageViewEnum), Lang = videoViewRange == null ? ((int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeSchoolPageViewEnum.允许).ToString() : videoViewRange.SchoolPageView.ToString(), SelectedValue=videoViewRange == null ? (int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeSchoolPageViewEnum.允许 : videoViewRange.SchoolPageView }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0)%>

<% } else if(this.User.ParentDomain.DomainType == (int)AVA.ResourcesPlatform.Model.Pub.DomainDomainTypeEnum.当前平台) { %>

区平台浏览:<%= new HtmlSelect("AreaPageView", "Value", "Key") { OnChange = "VideoViewChangeStatusClient(this,'" + SetKey(video.Guid, video.Version) + "');",Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoViewRangeAreaPageViewEnum), Lang = videoViewRange == null ? ((int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeAreaPageViewEnum.允许).ToString() : videoViewRange.AreaPageView.ToString(), SelectedValue=videoViewRange == null ? (int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeAreaPageViewEnum.允许 : videoViewRange.AreaPageView }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0)%>

<% } %>

<%= video.ParentCategory.Name %>

<% var list = new List(); list.Add(new HtmlAnchor("删除") { Href = "#delete", OnClick = "VideoDelete(this,'" + SetKey(video.Guid, video.Version) + "'); return false;" }); //list.Add(new HtmlAnchor("下载") { Href = SettingGroup.VideoFileDownload(video) }); for (int x = 0; x <= list.Count - 1; x++) { var anchor = list[x]; %> <%= anchor %> <% if ((x+1) % 2 == 0 && x != 0 && x != list.Count - 1) { %>
<% } else if (x != list.Count - 1) { %>
<% } } %>

全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyDomainVideoManager(int.MaxValue, this.Name, this.CreateTimeBegin.ToString(null), this.CreateTimeEnd.ToString(null),this.SchoolPageView,this.AreaPageView) }.ToHtml()%>