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