<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyVideoAskReplay" %> <%= new MyVideoAskReplayNavTopInstance(this) { Local= MyVideoAskReplayNavTopItem.提问回复 }.ToHtml()%>
提问回复:
<%= new HtmlHidden("TargetGuid",this.TargetGuid) %> 关键字: <%= new HtmlText("KeyWord", this.KeyWord) { Width = 120 }%> 类型: <% var dicType = new Dictionary(); dicType.Add("::全部::", 0); dicType.Add("::已回复::", 1); dicType.Add("::未回复::", -1); %> <%= new HtmlSelect("Type", "Key", "Value", "Value") { Option=dicType,DefaultSelectValue=this.Type }%> <%= new HtmlHidden("Key","MyVideoAskReplay") %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton("删除", "VideoAskReplayBatchDelete(this);")%>
<% for (int i = 0; i <= this.ListComment.Count - 1; i++) { var comment = this.ListComment[i]; var video = CreateInstance.VideoDao.Get(comment.TargetGuid); %> <% //得出回复 var listReplay = CreateInstance.CommentDao.Replay(comment); foreach (var replay in listReplay) { %> <% } %> <% } %>
视频 提问信息 提问日期 操作
<%= new HtmlCheckBox() { Value = SetKey(comment.Guid, comment.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
  • <% if (video != null) { %> <%= new HtmlAnchor(video.Name) { Href = WebUrl.VideoPlay(video.Guid), Title=video.Name, Target = "_blank",TextLength=5, Suffix=".." }%> <% } %>

<% if (comment.Title != null) { %> <%= comment.Title.RestoreHtml() %>
<% } %> <%= comment.CommentText.RestoreHtml() %>

<%= comment.CreateTime.ToShortDate() %> <%= comment.ParentUser.TrueName %> <% var classStatus = ""; if (comment.Status == (int)AVA.ResourcesPlatform.Model.Pub.CommentStatusEnum.已审) { classStatus = "pass"; } else { classStatus = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.CommentStatusEnum)comment.Status).Define() %> | 删除 | <%= new HtmlAnchor("回复") { Href=WebUrl.MyVideoAskToReplay(comment.Guid) }%>
<%= new HtmlCheckBox() { Value = SetKey(replay.Guid, replay.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%> 回复: <% if (replay.Title != null) { %> <%= replay.Title.RestoreHtml() %>
<% } %> <%= replay.CommentText.RestoreHtml() %>
<%= replay.CreateTime.ToAutoShortDate() %>
删除
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyVideoAskReplay(int.MaxValue, this.KeyWord, this.Type,this.TargetGuid) }.ToHtml()%>