%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Select.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.SubjectAttachment.Select1" %>
<% foreach (var field in this.Fields) { switch (field) { case "SubjectAttachmentSubjectUserDomainName": //SubjectAttachment_SubjectUserDomainName_平台名称 %> | ',event)"> <%= Define.Get("SubjectAttachment_SubjectUserDomainName_平台名称").HtmlEncode() %> <%= OrderBy("_Subject._User._Domain.Name") %> | <% break; case "SubjectAttachmentSubjectUserDomainCode": //SubjectAttachment_SubjectUserDomainCode_平台编码 %>',event)"> <%= Define.Get("SubjectAttachment_SubjectUserDomainCode_平台编码").HtmlEncode() %> <%= OrderBy("_Subject._User._Domain.Code") %> | <% break; case "SubjectAttachmentSubjectUserUserTypeName": //SubjectAttachment_SubjectUserUserTypeName_用户类型名称 %>',event)"> <%= Define.Get("SubjectAttachment_SubjectUserUserTypeName_用户类型名称").HtmlEncode() %> <%= OrderBy("_Subject._User._UserType.Name") %> | <% break; case "SubjectAttachmentSubjectUserUserName": //SubjectAttachment_SubjectUserUserName_用户用户名 %>',event)"> <%= Define.Get("SubjectAttachment_SubjectUserUserName_用户用户名").HtmlEncode() %> <%= OrderBy("_Subject._User.UserName") %> | <% break; case "SubjectAttachmentSubjectUserTrueName": //SubjectAttachment_SubjectUserTrueName_用户真实名称 %>',event)"> <%= Define.Get("SubjectAttachment_SubjectUserTrueName_用户真实名称").HtmlEncode() %> <%= OrderBy("_Subject._User.TrueName") %> | <% break; case "SubjectAttachmentSubjectName": //SubjectAttachment_SubjectName_优课评比名称 %>',event)"> <%= Define.Get("SubjectAttachment_SubjectName_优课评比名称").HtmlEncode() %> <%= OrderBy("_Subject.Name") %> | <% break; case "FileName": //SubjectAttachment_附件名 %>',event)"> <%= Define.Get("SubjectAttachment_附件名").HtmlEncode() %> <%= OrderBy("FileName") %> | <% break; case "FileType": //SubjectAttachment_文件类型 %>',event)"> <%= Define.Get("SubjectAttachment_文件类型").HtmlEncode() %> <%= OrderBy("FileType") %> | <% break; case "FileSize": //SubjectAttachment_文件大小 %>',event)"> <%= Define.Get("SubjectAttachment_文件大小").HtmlEncode() %> <%= OrderBy("FileSize") %> | <% break; case "Description": //SubjectAttachment_附件说明 %>',event)"> <%= Define.Get("SubjectAttachment_附件说明").HtmlEncode() %> <%= OrderBy("Description") %> | <% break; case "SortNumber": //SubjectAttachment_排序号 %>',event)"> <%= Define.Get("SubjectAttachment_排序号").HtmlEncode() %> <%= OrderBy("SortNumber") %> | <% break; } } %>|
---|---|---|---|---|---|---|---|---|---|---|---|---|
<% foreach (var field in this.Fields) { switch (field) { case "SubjectAttachmentSubjectUserDomainName": %> | "> <%= ViewData.Val("ParentSubject.ParentUser.ParentDomain.Name", item) %> | <% break; case "SubjectAttachmentSubjectUserDomainCode": %>"> <%= ViewData.Val("ParentSubject.ParentUser.ParentDomain.Code", item) %> | <% break; case "SubjectAttachmentSubjectUserUserTypeName": %>"> <%= ViewData.Val("ParentSubject.ParentUser.ParentUserType.Name", item) %> | <% break; case "SubjectAttachmentSubjectUserUserName": %>"> <%= ViewData.Val("ParentSubject.ParentUser.UserName", item) %> | <% break; case "SubjectAttachmentSubjectUserTrueName": %>"> <%= ViewData.Val("ParentSubject.ParentUser.TrueName", item) %> | <% break; case "SubjectAttachmentSubjectName": %>"> <%= ViewData.Val("ParentSubject.Name", item) %> | <% break; case "FileName": %><%= File(SettingGroup.SubjectAttachmentUploadPath, item.FileName) %> <%= item.FileName %> | <% break; case "FileType": %><%= item.FileType != null ? ((AVA.ResourcesPlatform.Model.Pub.SubjectAttachmentFileTypeEnum)item.FileType).Define() : null %> | <% break; case "FileSize": %><%= AVA.ResourcesPlatform.Config.Helper.FormatSize(item.FileSize) %> | <% break; case "Description": %><%= new HtmlSpan(item.Description) { FilterHtml = true, TextLength = 30, Suffix = "...", WideWord = true } %> | <% break; case "SortNumber": %><%= item.SortNumber %> | <% break; } } %>