<%@ 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(Define.Get("Client_评课"), "Subject"); %> <%= new HtmlSelect("PVTarget", "Key", "Value", "Value") { Option=dicType,DefaultSelectValue=this.PVTarget }%> <%= 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" }%> <% } } %>
取消收藏
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyCollect(int.MaxValue, this.PVTarget) }.ToHtml()%>