<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyStudentAsk" %> <%= new MyStudentAskNavTopInstance(this) { Local = MyStudentAskNavTopItem.我的提问 }.ToHtml() %>
我的提问:
关键字: <%= 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","MyStudentAsk") %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton("删除", "StudentAskBatchDelete(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.Where(l => l.TargetType == "VideoAskReplay" && l.TargetGuid == comment.Guid) .OrderBy(l => l.CreateTime) .ToList(); 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" }%> <% } %>

<% if (comment.Title != null) { %> <%= comment.Title %>
<% } %> <%= new HtmlAnchor(comment.CommentText) { Href=WebUrl.MyStudentAskDetail(comment.Guid) }%>

<%= comment.CreateTime.ToShortDate() %> <% var classStatus = ""; if (comment.Status == (int)AVA.ResourcesPlatform.Model.Pub.CommentStatusEnum.已审) { classStatus = "pass"; } else { classStatus = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.CommentStatusEnum)comment.Status).Define() %> 删除

<%= replay.ParentUser.UserName %>回复:
<% if (replay.Title != null) { %> <%= replay.Title %>
<% } %> <%= replay.CommentText %>

全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyStudentAsk(int.MaxValue, this.KeyWord, this.Type) }.ToHtml()%>