<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyCollect" %>
我的收藏:
类型: <% var dicType = new Dictionary(); dicType.Add("::全部::", ""); dicType.Add("视频", "Video"); dicType.Add(Define.Get("Client_专辑"), "Album"); dicType.Add("互动", "Meeting"); dicType.Add(Define.Get("Client_评课"), "Subject"); dicType.Add("直播", "Application"); dicType.Add(Define.Get("Client_公开课"), "PublicClass"); %> <%= new HtmlSelect("PVTarget", "Key", "Value", "Value") { Option=dicType,DefaultSelectValue=this.PVTarget, OnChange="ExcuteQuery();" }%> <%= new HtmlHidden("Key","MyCollect") %> <%--<%= new HtmlSubmit("查询") %>--%> <%= new HtmlButton("删除", "CollectBatchDelete(this);"){ Class="btn btn-danger pull-right" }%>
<% for (int i = 0; i <= this.ListPVHistory.Count - 1; i++) { var pvHistory = this.ListPVHistory[i]; %> <% } %>
收藏 类型 收藏日期 操作
<%= new HtmlCheckBox() { Value = SetKey(pvHistory.Guid, pvHistory.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
  • <% if (pvHistory.PVTarget == "Video") { var video = CreateInstance.VideoDao.Get(pvHistory.PVGuid); if (video != null) { %> <%= new HtmlAnchor(video.Name) { Href = WebUrl.VideoPlay(video.Guid), Title=video.Name, Target = "_blank" }%> <% } } else if (pvHistory.PVTarget == "Album") { var album = CreateInstance.AlbumDao.Get(pvHistory.PVGuid); if (album != null) { %> <%= new HtmlAnchor(album.Name) { Href = WebUrl.AlbumView(album.Guid), Title=album.Name, Target = "_blank" }%> <% } } else if (pvHistory.PVTarget == "Meeting") { var meeting = CreateInstance.MeetingDao.Get(pvHistory.PVGuid); if (meeting != null) { %> <%= new HtmlAnchor(meeting.Name) { Href = WebUrl.MeetingView(meeting.Guid), Title=meeting.Name, Target = "_blank" }%> <% } } else if (pvHistory.PVTarget == "Subject") { var subject = CreateInstance.SubjectDao.Get(pvHistory.PVGuid); if (subject != null) { %> <%= new HtmlAnchor(subject.Name) { Href = WebUrl.SubjectView(subject.Guid), Title=subject.Name, Target = "_blank" }%> <% } } else if (pvHistory.PVTarget == "Application") { var application = CreateInstance.ApplicationDao.Get(pvHistory.PVGuid); if (application != null) { %> <%= new HtmlAnchor(application.Title) { Href = WebUrl.LivePlay(application.Guid), Title=application.Title, Target = "_blank" }%> <% } } else if (pvHistory.PVTarget == "PublicClass") { var publicClass = CreateInstance.PublicClassDao.Get(pvHistory.PVGuid); if (publicClass != null) { %> <%= new HtmlAnchor(publicClass.Name) { Href = WebUrl.LivePlay(publicClass.Guid), Title=publicClass.Name, Target = "_blank" }%> <% } } else { %><%= pvHistory.PVTarget %>:<%= pvHistory.PVGuid %><% } %>
<% if (pvHistory.PVTarget == "Video") { %> 视频<%} else if (pvHistory.PVTarget == "Meeting") { %> 互动 <% } else if (pvHistory.PVTarget == "Album") { %><%= Define.Get("Client_专辑")%> <% } else if (pvHistory.PVTarget == "Application") {%>直播<% } else if (pvHistory.PVTarget == "Subject") { %>评课 <% } else if (pvHistory.PVTarget == "PublicClass") { %><%=Define.Get("Client_公开课")%><%} %> <%= pvHistory.CreateTime.ToShortDate() %> 删除
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyCollect(int.MaxValue, this.PVTarget) }.ToHtml()%>