%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Select.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Comment.Select1" %>
<% foreach (var field in this.Fields) { switch (field) { case "Status": //Comment_状态 %> | ',event)"> <%= Define.Get("Comment_状态").HtmlEncode() %> <%= OrderBy("Status") %> | <% break; case "CommentUserDomainName": //Comment_UserDomainName_平台名称 %>',event)"> <%= Define.Get("Comment_UserDomainName_平台名称").HtmlEncode() %> <%= OrderBy("_User._Domain.Name") %> | <% break; case "CommentUserDomainCode": //Comment_UserDomainCode_平台编码 %>',event)"> <%= Define.Get("Comment_UserDomainCode_平台编码").HtmlEncode() %> <%= OrderBy("_User._Domain.Code") %> | <% break; case "CommentUserUserTypeName": //Comment_UserUserTypeName_用户类型名称 %>',event)"> <%= Define.Get("Comment_UserUserTypeName_用户类型名称").HtmlEncode() %> <%= OrderBy("_User._UserType.Name") %> | <% break; case "CommentUserTrueName": //Comment_UserTrueName_真实名称 %>',event)"> <%= Define.Get("Comment_UserTrueName_真实名称").HtmlEncode() %> <%= OrderBy("_User.TrueName") %> | <% break; case "CommentUserUserName": //Comment_UserUserName_用户名 %>',event)"> <%= Define.Get("Comment_UserUserName_用户名").HtmlEncode() %> <%= OrderBy("_User.UserName") %> | <% break; case "TargetType": //Comment_评论类型 %>',event)"> <%= Define.Get("Comment_评论类型").HtmlEncode() %> <%= OrderBy("TargetType") %> | <%--<% break; case "TargetGuid": // Comment_评论对象 %>',event)"> <%= Define.Get("Comment_评论对象").HtmlEncode() %> <%= OrderBy("TargetGuid") %> | --%> <% break; case "Title": //Comment_标题 %>',event)"> <%= Define.Get("Comment_标题").HtmlEncode() %> <%= OrderBy("Title") %> | <% break; case "CommentText": //Comment_评论内容 %>',event)"> <%= Define.Get("Comment_评论内容").HtmlEncode() %> <%= OrderBy("CommentText") %> | <% break; case "IP": //Comment_IP %>',event)"> <%= Define.Get("Comment_IP").HtmlEncode() %> <%= OrderBy("IP") %> | <% break; case "CreateTime": //Comment_评论时间 %>',event)"> <%= Define.Get("Comment_评论时间").HtmlEncode() %> <%= OrderBy("CreateTime") %> | <% break; case "Media": //Comment_媒体文件 %>',event)"> <%= Define.Get("Comment_媒体文件").HtmlEncode() %> <%= OrderBy("Media") %> | <% break; } } %>|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<% foreach (var field in this.Fields) { switch (field) { case "Status": %> | <%= item.Status != null ? ((AVA.ResourcesPlatform.Model.Pub.CommentStatusEnum)item.Status).Define() : null %> | <% break; case "CommentUserDomainName": %>"> <%= ViewData.Val("ParentUser.ParentDomain.Name", item) %> | <% break; case "CommentUserDomainCode": %>"> <%= ViewData.Val("ParentUser.ParentDomain.Code", item) %> | <% break; case "CommentUserUserTypeName": %>"> <%= ViewData.Val("ParentUser.ParentUserType.Name", item) %> | <% break; case "CommentUserTrueName": %>"> <%= ViewData.Val("ParentUser.TrueName", item) %> | <% break; case "CommentUserUserName": %>"> <%= ViewData.Val("ParentUser.UserName", item) %> | <% break; case "TargetType": %><% 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 %><% } %> | <%--<% break; case "TargetGuid": %><%= item.TargetGuid %> | --%> <% break; case "Title": %><%= item.Title %> | <% break; case "CommentText": %><%= item.CommentText %> | <% break; case "IP": %><%= item.IP %> | <% break; case "CreateTime": %><%= item.CreateTime %> | <% break; case "Media": %><%= File(SettingGroup.CommentUploadPath, item.Media) %> <%= item.Media %> | <% break; } } %>