<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Comment.List1" %> <% foreach (var field in this.Fields) { switch (field) { case "Status": //Comment_状态 %> <% break; case "CommentUserDomainName": //Comment_UserDomainName_平台名称 %> <% break; case "CommentUserDomainCode": //Comment_UserDomainCode_平台编码 %> <% break; case "CommentUserUserTypeName": //Comment_UserUserTypeName_用户类型名称 %> <% break; case "CommentUserTrueName": //Comment_UserTrueName_真实名称 %> <% break; case "CommentUserUserName": //Comment_UserUserName_用户名 %> <% break; case "TargetType": //Comment_评论类型 %> <%--<% break; case "TargetGuid": // Comment_评论对象 %> --%> <% break; case "Title": //Comment_标题 %> <% break; case "CommentText": //Comment_评论内容 %> <% break; case "IP": //Comment_IP %> <% break; case "CreateTime": //Comment_评论时间 %> <% break; case "Media": //Comment_媒体文件 %> <% break; } } %> <% foreach (var item in this.ListData) { %> <% foreach (var field in this.Fields) { switch (field) { case "Status": %> <% break; case "CommentUserDomainName": %> <% break; case "CommentUserDomainCode": %> <% break; case "CommentUserUserTypeName": %> <% break; case "CommentUserTrueName": %> <% break; case "CommentUserUserName": %> <% break; case "TargetType": %> <%-- <% break; case "TargetGuid": %> --%> <% break; case "Title": %> <% break; case "CommentText": %> <% break; case "IP": %> <% break; case "CreateTime": %> <% break; case "Media": %> <% break; } } %> <% } %>
<%= new HtmlCheckBox() { Class = "trSelAll", Title = DefineEnum.全选_不选_本页所有记录.Define(), Lang = ".listContainer .trsel" }%> ',event)"> <%= Define.Get("Comment_状态").HtmlEncode() %> <%= OrderBy("Status") %> ',event)"> <%= Define.Get("Comment_UserDomainName_平台名称").HtmlEncode() %> <%= OrderBy("_User._Domain.Name") %> ',event)"> <%= Define.Get("Comment_UserDomainCode_平台编码").HtmlEncode() %> <%= OrderBy("_User._Domain.Code") %> ',event)"> <%= Define.Get("Comment_UserUserTypeName_用户类型名称").HtmlEncode() %> <%= OrderBy("_User._UserType.Name") %> ',event)"> <%= Define.Get("Comment_UserTrueName_真实名称").HtmlEncode() %> <%= OrderBy("_User.TrueName") %> ',event)"> <%= Define.Get("Comment_UserUserName_用户名").HtmlEncode() %> <%= OrderBy("_User.UserName") %> ',event)"> <%= Define.Get("Comment_评论类型").HtmlEncode() %> <%= OrderBy("TargetType") %> ',event)"> <%= Define.Get("Comment_评论对象").HtmlEncode() %> <%= OrderBy("TargetGuid") %> ',event)"> <%= Define.Get("Comment_标题").HtmlEncode() %> <%= OrderBy("Title") %> ',event)"> <%= Define.Get("Comment_评论内容").HtmlEncode() %> <%= OrderBy("CommentText") %> ',event)"> <%= Define.Get("Comment_IP").HtmlEncode() %> <%= OrderBy("IP") %> ',event)"> <%= Define.Get("Comment_评论时间").HtmlEncode() %> <%= OrderBy("CreateTime") %> ',event)"> <%= Define.Get("Comment_媒体文件").HtmlEncode() %> <%= OrderBy("Media") %>
<%= new HtmlCheckBox() { Value= SetKey(item.Guid, item.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%> <%= DefineEnum.修改.Define() %> <%= item.Status != null ? ((AVA.ResourcesPlatform.Model.Pub.CommentStatusEnum)item.Status).Define() : null %> "> <%= ViewData.Val("ParentUser.ParentDomain.Name", item) %> "> <%= ViewData.Val("ParentUser.ParentDomain.Code", item) %> "> <%= ViewData.Val("ParentUser.ParentUserType.Name", item) %> "> <%= ViewData.Val("ParentUser.TrueName", item) %> "> <%= ViewData.Val("ParentUser.UserName", item) %> <% if (item.TargetType == "Video") { %>视频<% } else if (item.TargetType == "Application") { %>直播<% } else if (item.TargetType == "Meeting") { %>互动<% } else if (item.TargetType == "Subject") { %>评课<% } else if (item.TargetType == "VideoAskReplay") { %>提问回复<% } else if (item.TargetType == "Album") { %>专辑<% } else if (item.TargetType == "VideoAsk") { %>提问<% } else if (item.TargetType == "PublicClass") { %>公开课<% } else { %><%= item.TargetType %><% } %> <%= item.TargetGuid %> <%= item.Title %> <%= item.CommentText %> <%= item.IP %> <%= item.CreateTime %> <%= File(SettingGroup.CommentUploadPath, item.Media) %> <%= item.Media %>