%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.ClassInfo.List1" %>
<%= new HtmlCheckBox() { Class = "trSelAll", Title = DefineEnum.全选_不选_本页所有记录.Define(), Lang = ".listContainer .trsel" }%> | <% foreach (var field in this.Fields) { switch (field) { case "Status": //ClassInfo_状态 %> | ',event)"> <%= Define.Get("ClassInfo_状态").HtmlEncode() %> <%= OrderBy("Status") %> | <% break; case "ClassInfoUserTrueName": //ClassInfo_UserTrueName_真实名称 %>',event)"> <%= Define.Get("ClassInfo_UserTrueName_真实名称").HtmlEncode() %> <%= OrderBy("_User.TrueName") %> | <% break; case "ClassInfoUserUserName": //ClassInfo_UserUserName_用户名 %>',event)"> <%= Define.Get("ClassInfo_UserUserName_用户名").HtmlEncode() %> <%= OrderBy("_User.UserName") %> | <% break; case "ClassInfoGradeName": //ClassInfo_GradeName_年级名称 %>',event)"> <%= Define.Get("ClassInfo_GradeName_年级名称").HtmlEncode() %> <%= OrderBy("_Grade.Name") %> | <% break; case "ClassInfoCategoryName": //ClassInfo_CategoryName_类型名称 %>',event)"> <%= Define.Get("ClassInfo_CategoryName_类型名称").HtmlEncode() %> <%= OrderBy("_Category.Name") %> | <% break; case "ClassInfoDomainName": //ClassInfo_DomainName_平台名称 %>',event)"> <%= Define.Get("ClassInfo_DomainName_平台名称").HtmlEncode() %> <%= OrderBy("_Domain.Name") %> | <% break; case "ClassInfoDomainCode": //ClassInfo_DomainCode_平台编码 %>',event)"> <%= Define.Get("ClassInfo_DomainCode_平台编码").HtmlEncode() %> <%= OrderBy("_Domain.Code") %> | <% break; case "Name": //ClassInfo_班级名称 %>',event)"> <%= Define.Get("ClassInfo_班级名称").HtmlEncode() %> <%= OrderBy("Name") %> | <% break; case "CreateTime": //ClassInfo_创建时间 %>',event)"> <%= Define.Get("ClassInfo_创建时间").HtmlEncode() %> <%= OrderBy("CreateTime") %> | <% break; case "Description": //ClassInfo_描述 %>',event)"> <%= Define.Get("ClassInfo_描述").HtmlEncode() %> <%= OrderBy("Description") %> | <% break; case "SortNumber": //ClassInfo_排序号 %>',event)"> <%= Define.Get("ClassInfo_排序号").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.ClassInfoStatusEnum)item.Status).Define() : null %> | <% break; case "ClassInfoUserTrueName": %>"> <%= ViewData.Val("ParentUser.TrueName", item) %> | <% break; case "ClassInfoUserUserName": %>"> <%= ViewData.Val("ParentUser.UserName", item) %> | <% break; case "ClassInfoGradeName": %>"> <%= ViewData.Val("ParentGrade.Name", item) %> | <% break; case "ClassInfoCategoryName": %>"> <%= ViewData.Val("ParentCategory.Name", item) %> | <% break; case "ClassInfoDomainName": %>"> <%= ViewData.Val("ParentDomain.Name", item) %> | <% break; case "ClassInfoDomainCode": %>"> <%= ViewData.Val("ParentDomain.Code", item) %> | <% break; case "Name": %><%= item.Name %> | <% break; case "CreateTime": %><%= item.CreateTime.ToDateTimeN().ToAutoShortDate() %> | <% break; case "Description": %><%= new HtmlSpan(item.Description) { FilterHtml = true, TextLength = 30, Suffix = "...", WideWord = true } %> | <% break; case "SortNumber": %><%= item.SortNumber %> | <% break; } } %>