%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Lesson.List1" %>
<%= new HtmlCheckBox() { Class = "trSelAll", Title = DefineEnum.全选_不选_本页所有记录.Define(), Lang = ".listContainer .trsel" }%> | <% foreach (var field in this.Fields) { switch (field) { case "Status": //Lesson_状态 %> | ',event)"> <%= Define.Get("Lesson_状态").HtmlEncode() %> <%= OrderBy("Status") %> | <% break; case "LessonTextbookPressName": //Lesson_TextbookPressName_出版社出版社名称 %>',event)"> <%= Define.Get("Lesson_TextbookPressName_出版社名称").HtmlEncode() %> <%= OrderBy("_Textbook._Press.Name") %> | <% break; case "LessonTextbookGradeName": //Lesson_TextbookGradeName_年级年级名称 %>',event)"> <%= Define.Get("Lesson_TextbookGradeName_年级名称").HtmlEncode() %> <%= OrderBy("_Textbook._Grade.Name") %> | <% break; case "LessonTextbookCategoryName": //Lesson_TextbookCategoryName_学科学科名称 %>',event)"> <%= Define.Get("Lesson_TextbookCategoryName_学科学科名称").HtmlEncode() %> <%= OrderBy("_Textbook._Category.Name") %> | <% break; case "LessonTextbookName": //Lesson_TextbookName_课本名称 %>',event)"> <%= Define.Get("Lesson_TextbookName_课本名称").HtmlEncode() %> <%= OrderBy("_Textbook.Name") %> | <% break; case "Section": //Lesson_单元课章节 %>',event)"> <%= Define.Get("Lesson_单元课章节").HtmlEncode() %> <%= OrderBy("Section") %> | <% break; case "Name": //Lesson_单元课名称 %>',event)"> <%= Define.Get("Lesson_单元课名称").HtmlEncode() %> <%= OrderBy("Name") %> | <% break; case "Description": //Lesson_描述 %>',event)"> <%= Define.Get("Lesson_描述").HtmlEncode() %> <%= OrderBy("Description") %> | <% break; case "SortNumber": //Lesson_排序号 %>',event)"> <%= Define.Get("Lesson_排序号").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.LessonStatusEnum)item.Status).Define() : null %> | <% break; case "LessonTextbookPressName": %>"> <%= ViewData.Val("ParentTextbook.ParentPress.Name", item) %> "> | <% break; case "LessonTextbookGradeName": %>"> <%= ViewData.Val("ParentTextbook.ParentGrade.Name", item) %> "> | <% break; case "LessonTextbookCategoryName": %>"> <%= ViewData.Val("ParentTextbook.ParentCategory.Name", item) %> "> | <% break; case "LessonTextbookName": %>"> <%= ViewData.Val("ParentTextbook.Name", item) %> "> | <% break; case "Section": %><%= item.Section %> | <% break; case "Name": %><%= item.Name %> | <% break; case "Description": %><%= new HtmlSpan(item.Description) { FilterHtml = true, TextLength = 30, Suffix = "...", WideWord = true } %> | <% break; case "SortNumber": %><%= item.SortNumber %> | <% break; } } %>