%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Select.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Category.Select1" %>
<% foreach (var field in this.Fields) { switch (field) { case "Status": //Category_状态 %> | ',event)"> <%= Define.Get("Category_状态").HtmlEncode() %> <%= OrderBy("Status") %> | <% break; case "CategoryCategoryName": //Category_CategoryName_学科名称 %>',event)"> <%= Define.Get("Category_CategoryName_学科名称").HtmlEncode() %> <%= OrderBy("_Category.Name") %> | <% break; case "Name": //Category_学科名称 %>',event)"> <%= Define.Get("Category_学科名称").HtmlEncode() %> <%= OrderBy("Name") %> | <% break; case "Depth": //Category_深度 %>',event)"> <%= Define.Get("Category_深度").HtmlEncode() %> <%= OrderBy("Depth") %> | <% break; case "CategoryImage": //Category_学科默认图片 %>',event)"> <%= Define.Get("Category_学科默认图片").HtmlEncode() %> <%= OrderBy("CategoryImage") %> | <% break; case "Description": //Category_描述 %>',event)"> <%= Define.Get("Category_描述").HtmlEncode() %> <%= OrderBy("Description") %> | <% break; case "ShortName": //Category_学科名称缩写 %>',event)"> <%= Define.Get("Category_学科名称缩写").HtmlEncode() %> <%= OrderBy("ShortName") %> | <% break; case "SortNumber": //Category_排序号 %>',event)"> <%= Define.Get("Category_排序号").HtmlEncode() %> <%= OrderBy("SortNumber") %> | <% break; } } %>|
---|---|---|---|---|---|---|---|---|---|
<% foreach (var field in this.Fields) { switch (field) { case "Status": %> | <%= item.Status != null ? ((AVA.ResourcesPlatform.Model.Pub.CategoryStatusEnum)item.Status).Define() : null %> | <% break; case "CategoryCategoryName": %>"> <%= ViewData.Val("ParentCategory.Name", item) %> | <% break; case "Name": %><%= item.Name %> | <% break; case "Depth": %><%= item.Depth %> | <% break; case "CategoryImage": %><%= IMG(SettingGroup.CategoryUploadPath, item.CategoryImage) %> <%= item.CategoryImage %> | <% break; case "Description": %><%= new HtmlSpan(item.Description) { FilterHtml = true, TextLength = 30, Suffix = "...", WideWord = true } %> | <% break; case "ShortName": %><%= item.ShortName %> | <% break; case "SortNumber": %><%= item.SortNumber %> | <% break; } } %>