<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Category.List1" %> <% foreach (var field in this.Fields) { switch (field) { case "Status": //Category_状态 %> <% break; case "CategoryCategoryName": //Category_CategoryName_学科名称 %> <% break; case "Name": //Category_学科名称 %> <% break; case "Depth": //Category_深度 %> <% break; case "CategoryImage": //Category_学科默认图片 %> <% break; case "Description": //Category_描述 %> <% break; case "ShortName": //Category_学科名称缩写 %> <% break; case "SortNumber": //Category_排序号 %> <% break; } } %> <% foreach (var item in this.ListData) { %> <% foreach (var field in this.Fields) { switch (field) { case "Status": %> <% break; case "CategoryCategoryName": %> <% break; case "Name": %> <% break; case "Depth": %> <% break; case "CategoryImage": %> <% break; case "Description": %> <% break; case "ShortName": %> <% break; case "SortNumber": %> <% break; } } %> <% } %>
<%= new HtmlCheckBox() { Class = "trSelAll", Title = DefineEnum.全选_不选_本页所有记录.Define(), Lang = ".listContainer .trsel" }%> ',event)"> <%= Define.Get("Category_状态").HtmlEncode() %> <%= OrderBy("Status") %> ',event)"> <%= Define.Get("Category_CategoryName_学科名称").HtmlEncode() %> <%= OrderBy("_Category.Name") %> ',event)"> <%= Define.Get("Category_学科名称").HtmlEncode() %> <%= OrderBy("Name") %> ',event)"> <%= Define.Get("Category_深度").HtmlEncode() %> <%= OrderBy("Depth") %> ',event)"> <%= Define.Get("Category_学科默认图片").HtmlEncode() %> <%= OrderBy("CategoryImage") %> ',event)"> <%= Define.Get("Category_描述").HtmlEncode() %> <%= OrderBy("Description") %> ',event)"> <%= Define.Get("Category_学科名称缩写").HtmlEncode() %> <%= OrderBy("ShortName") %> ',event)"> <%= Define.Get("Category_排序号").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.CategoryStatusEnum)item.Status).Define() : null %> "> <%= ViewData.Val("ParentCategory.Name", item) %> <%= item.Name %> <%= item.Depth %> <%= IMG(SettingGroup.CategoryUploadPath, item.CategoryImage) %> <%= item.CategoryImage %> <%= new HtmlSpan(item.Description) { FilterHtml = true, TextLength = 30, Suffix = "...", WideWord = true } %> <%= item.ShortName %> <%= item.SortNumber %>