<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyRecordVideo.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyRecordVideo" %> <%= new MyApplicationNavTopInstance(this) { Local= MyApplicationNavTopItem.录制视频 }.ToHtml()%>
我的录制视频:我的<%= this.Query.RecordCount%>个录制视频
名称: <%= new HtmlText("Name", this.Name) { Width = 110 }%> 时间从 <%= new HtmlText("StartTime", this.StartTime.ToLongDate()) { Width = 110 }%> 至 <%= new HtmlText("EndTime", this.EndTime.ToLongDate()) { Width = 110 }%> <%= new HtmlHidden("Key","MyRecordVideo") %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton("获取视频文件", "RecordVideoDownload(this);")%> <%= new HtmlButton("删除", "RecordVideoBatchDelete(this);")%>
<% if (1 == 0) { %> <% } else if (1 == 1) { %> <% } else { throw new Z.Core.Tools.ExceptionMessage("未知下载方式"); } %>
<% for (int i = 0; i <= this.ListRecordVideo.Count - 1; i++) { var recordVideo = this.ListRecordVideo[i]; %> <% } %>
文件名 授课地点 授课时间 状态 操作
<%= new HtmlCheckBox() { Lang = recordVideo.Guid, Value = SetKey(recordVideo.Guid, recordVideo.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
  • <% if ((recordVideo.DownloadStatus==(int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.已发布 ||recordVideo.DownloadStatus==(int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.已归档 ||recordVideo.DownloadStatus==(int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.发布失败) && FileExists(SettingGroup.RecordVideoUploadPath + recordVideo.ParentUser.Guid + "/", recordVideo.FileName)) { %> <%= new HtmlAnchor(recordVideo.FileName) { Href = WebUrl.Uri(SettingGroup.RecordVideoUploadPath + recordVideo.ParentUser.Guid + "/" + recordVideo.FileName) }%> <% } else { %> <%= recordVideo.FileName%> <% } %>

    <% if (recordVideo.ToVideo > 0) { %> 已发布<%= recordVideo.ToVideo %>次 <% } %>
<%= ViewData.Val("ParentRecordEquipment.Name", recordVideo)%> <%= recordVideo.StartTime.ToLongDate() %>

<%= recordVideo.EndTime.ToLongDate() %>
<%= (recordVideo.DownloadStatus != null ? ((AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum)recordVideo.DownloadStatus).Define() : null).Replace("视频","")%>
<%= new HtmlAnchor("查看详细") { ID="downloadDetail" + recordVideo.Guid, Href = WebUrl.MyRecordVideoDownloadDetail(recordVideo.Guid) }.Style(new { Display = "None" })%> <% if (recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.视频队列中 || recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.视频正在等待续传 || recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.视频正在归档 || recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.已归档 || recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.已发布 || recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.发布失败) { %> <% } %> <%-- <%= AVA.ResourcesPlatform.Config.Helper.FormatSize(recordVideo.FileSize.ToDouble())%>--%>
<% if ((recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.已归档 ||recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.已发布 || recordVideo.DownloadStatus == (int)AVA.ResourcesPlatform.Model.Pub.RecordVideoDownloadStatusEnum.发布失败) && FileExists(SettingGroup.RecordVideoUploadPath + recordVideo.ParentUser.Guid + "/", recordVideo.FileName)) { %> <%= new HtmlAnchor("发布课例") { Href = WebUrl.MyVideoUpload(recordVideo.Guid) }%> <% } else { %> <%--<%= System.Web.HttpContext.Current.Server.MapPath("~" + SettingGroup.RecordVideoUploadPath + recordVideo.ParentUser.Guid + "/" + recordVideo.FileName) %> <%= System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("~" + SettingGroup.RecordVideoUploadPath + recordVideo.ParentUser.Guid + "/" + recordVideo.FileName)) %>--%> <%= new HtmlAnchor("发布课例") { ID = "aCovert" + recordVideo.Guid, Href = WebUrl.MyVideoUpload(recordVideo.Guid) }.Style(new { Display = "none" })%> <% } %>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyRecordVideo(int.MaxValue, this.Name, this.StartTime.ToString(null), this.EndTime.ToString(null)) }.ToHtml()%>