%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.ListenLesson.List1" %>
<%= new HtmlCheckBox() { Class = "trSelAll", Title = DefineEnum.全选_不选_本页所有记录.Define(), Lang = ".listContainer .trsel" }%> | <% foreach (var field in this.Fields) { switch (field) { case "Status": //ListenLesson_状态 %> | ',event)"> <%= Define.Get("ListenLesson_状态").HtmlEncode() %> <%= OrderBy("Status") %> | <% break; case "ListenLessonUserDomainName": //ListenLesson_UserDomainName_平台名称 %>',event)"> <%= Define.Get("ListenLesson_UserDomainName_平台名称").HtmlEncode() %> <%= OrderBy("_User._Domain.Name") %> | <% break; case "ListenLessonUserDomainCode": //ListenLesson_UserDomainCode_平台编码 %>',event)"> <%= Define.Get("ListenLesson_UserDomainCode_平台编码").HtmlEncode() %> <%= OrderBy("_User._Domain.Code") %> | <% break; case "ListenLessonUserUserTypeName": //ListenLesson_UserUserTypeName_用户类型名称 %>',event)"> <%= Define.Get("ListenLesson_UserUserTypeName_用户类型名称").HtmlEncode() %> <%= OrderBy("_User._UserType.Name") %> | <% break; case "ListenLessonUserTrueName": //ListenLesson_UserTrueName_真实名称 %>',event)"> <%= Define.Get("ListenLesson_UserTrueName_真实名称").HtmlEncode() %> <%= OrderBy("_User.TrueName") %> | <% break; case "ListenLessonUserUserName": //ListenLesson_UserUserName_用户名 %>',event)"> <%= Define.Get("ListenLesson_UserUserName_用户名").HtmlEncode() %> <%= OrderBy("_User.UserName") %> | <% break; case "ListenLessonCategoryName": //ListenLesson_CategoryName_类型名称 %>',event)"> <%= Define.Get("ListenLesson_CategoryName_类型名称").HtmlEncode() %> <%= OrderBy("_Category.Name") %> | <% break; case "Name": //ListenLesson_听课名称 %>',event)"> <%= Define.Get("ListenLesson_听课名称").HtmlEncode() %> <%= OrderBy("Name") %> | <% break; case "CreateTime": //ListenLesson_创建时间 %>',event)"> <%= Define.Get("ListenLesson_创建时间").HtmlEncode() %> <%= OrderBy("CreateTime") %> | <% break; case "BeginTime": //ListenLesson_开始时间 %>',event)"> <%= Define.Get("ListenLesson_开始时间").HtmlEncode() %> <%= OrderBy("BeginTime") %> | <% break; case "EndTime": //ListenLesson_结束时间 %>',event)"> <%= Define.Get("ListenLesson_结束时间").HtmlEncode() %> <%= OrderBy("EndTime") %> | <% break; case "Speaker": //ListenLesson_主讲人 %>',event)"> <%= Define.Get("ListenLesson_主讲人").HtmlEncode() %> <%= OrderBy("Speaker") %> | <% break; case "Description": //ListenLesson_描述 %>',event)"> <%= Define.Get("ListenLesson_描述").HtmlEncode() %> <%= OrderBy("Description") %> | <% break; case "AllScore": //ListenLesson_得分 %>',event)"> <%= Define.Get("ListenLesson_得分").HtmlEncode() %> <%= OrderBy("AllScore") %> | <% break; case "SortNumber": //ListenLesson_排序号 %>',event)"> <%= Define.Get("ListenLesson_排序号").HtmlEncode() %> <%= OrderBy("SortNumber") %> | <% break; } } %>|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<%= new HtmlCheckBox() { Value= SetKey(item.Guid, item.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%> |
|
<%
foreach (var field in this.Fields)
{
switch (field)
{
case "Status":
%>
<%= item.Status != null ? ((AVA.ResourcesPlatform.Model.Pub.ListenLessonStatusEnum)item.Status).Define() : null %> | <% break; case "ListenLessonUserDomainName": %>"> <%= ViewData.Val("ParentUser.ParentDomain.Name", item) %> | <% break; case "ListenLessonUserDomainCode": %>"> <%= ViewData.Val("ParentUser.ParentDomain.Code", item) %> | <% break; case "ListenLessonUserUserTypeName": %>"> <%= ViewData.Val("ParentUser.ParentUserType.Name", item) %> | <% break; case "ListenLessonUserTrueName": %>"> <%= ViewData.Val("ParentUser.TrueName", item) %> | <% break; case "ListenLessonUserUserName": %>"> <%= ViewData.Val("ParentUser.UserName", item) %> | <% break; case "ListenLessonCategoryName": %>"> <%= ViewData.Val("ParentCategory.Name", item) %> | <% break; case "Name": %><%= item.Name %> | <% break; case "CreateTime": %><%= item.CreateTime.ToDateTimeN().ToAutoShortDate() %> | <% break; case "BeginTime": %><%= item.BeginTime.ToDateTimeN().ToAutoShortDate() %> | <% break; case "EndTime": %><%= item.EndTime.ToDateTimeN().ToAutoShortDate() %> | <% break; case "Speaker": %><%= item.Speaker %> | <% break; case "Description": %><%= new HtmlSpan(item.Description) { FilterHtml = true, TextLength = 30, Suffix = "...", WideWord = true } %> | <% break; case "AllScore": %><%= item.AllScore %> | <% break; case "SortNumber": %><%= item.SortNumber %> | <% break; } } %>