Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.AdminUI\Pub\SubjectAttachment\Select.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Select.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.SubjectAttachment.Select1" %> <table class="g-table-comm" cellpadding="2px" cellspacing="0px"> <tr class="thead"> <th class="wd0"> </th> <th class="wd1"> </th> <% foreach (var field in this.Fields) { switch (field) { case "SubjectAttachmentSubjectUserDomainName": //SubjectAttachment_SubjectUserDomainName_?????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"_Subject._Subject._User._Domain.Name").ToScriptTag() %>',event)"> <%= Define.Get("SubjectAttachment_SubjectUserDomainName_??????").HtmlEncode() %> <%= OrderBy("_Subject._User._Domain.Name") %> </span> </th> <% break; case "SubjectAttachmentSubjectUserDomainCode": //SubjectAttachment_SubjectUserDomainCode_?????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"_Subject._Subject._User._Domain.Code").ToScriptTag() %>',event)"> <%= Define.Get("SubjectAttachment_SubjectUserDomainCode_??????").HtmlEncode() %> <%= OrderBy("_Subject._User._Domain.Code") %> </span> </th> <% break; case "SubjectAttachmentSubjectUserUserTypeName": //SubjectAttachment_SubjectUserUserTypeName_????????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"_Subject._Subject._User._UserType.Name").ToScriptTag() %>',event)"> <%= Define.Get("SubjectAttachment_SubjectUserUserTypeName_?????????").HtmlEncode() %> <%= OrderBy("_Subject._User._UserType.Name") %> </span> </th> <% break; case "SubjectAttachmentSubjectUserUserName": //SubjectAttachment_SubjectUserUserName_???????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"_Subject._Subject._User.UserName").ToScriptTag() %>',event)"> <%= Define.Get("SubjectAttachment_SubjectUserUserName_????????").HtmlEncode() %> <%= OrderBy("_Subject._User.UserName") %> </span> </th> <% break; case "SubjectAttachmentSubjectUserTrueName": //SubjectAttachment_SubjectUserTrueName_????????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"_Subject._Subject._User.TrueName").ToScriptTag() %>',event)"> <%= Define.Get("SubjectAttachment_SubjectUserTrueName_?????????").HtmlEncode() %> <%= OrderBy("_Subject._User.TrueName") %> </span> </th> <% break; case "SubjectAttachmentSubjectName": //SubjectAttachment_SubjectName_????????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"_Subject._Subject.Name").ToScriptTag() %>',event)"> <%= Define.Get("SubjectAttachment_SubjectName_?????????").HtmlEncode() %> <%= OrderBy("_Subject.Name") %> </span> </th> <% break; case "FileName": //SubjectAttachment_????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"FileName").ToScriptTag() %>',event)"> <%= Define.Get("SubjectAttachment_?????").HtmlEncode() %> <%= OrderBy("FileName") %> </span> </th> <% break; case "FileType": //SubjectAttachment_?????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"FileType").ToScriptTag() %>',event)"> <%= Define.Get("SubjectAttachment_??????").HtmlEncode() %> <%= OrderBy("FileType") %> </span> </th> <% break; case "FileSize": //SubjectAttachment_?????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"FileSize").ToScriptTag() %>',event)"> <%= Define.Get("SubjectAttachment_??????").HtmlEncode() %> <%= OrderBy("FileSize") %> </span> </th> <% break; case "Description": //SubjectAttachment_?????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"Description").ToScriptTag() %>',event)"> <%= Define.Get("SubjectAttachment_??????").HtmlEncode() %> <%= OrderBy("Description") %> </span> </th> <% break; case "SortNumber": //SubjectAttachment_????? %> <th> <span onclick="Sort('<%= UserControlDefine.GetOrder(Query,"SortNumber").ToScriptTag() %>',event)"> <%= Define.Get("SubjectAttachment_?????").HtmlEncode() %> <%= OrderBy("SortNumber") %> </span> </th> <% break; } } %> </tr> <% foreach (var item in this.ListData) { %> <tr class="trout"> <td class="wd0 summary" title="<%= DefineEnum.??????????.Define() %>" onclick="GetSummary(this,'/Pub/SubjectAttachment/summary','guid=<%= item.Guid %>')"> </td> <td class="wd1 select" onclick="Select("<%= item.Guid.ToString(null).ToScriptTag()%>","<%= item.FileName.ToString(null).ToScriptTag() %>");"><input type="checkbox" /></td> <% foreach (var field in this.Fields) { switch (field) { case "SubjectAttachmentSubjectUserDomainName": %> <td> <span title="<%= ViewData.Val("ParentSubject.ParentUser.ParentDomain.Name", item).ToString(string.Empty).ToScriptTag() %>"> <%= ViewData.Val("ParentSubject.ParentUser.ParentDomain.Name", item) %> </span> </td> <% break; case "SubjectAttachmentSubjectUserDomainCode": %> <td> <span title="<%= ViewData.Val("ParentSubject.ParentUser.ParentDomain.Code", item).ToString(string.Empty).ToScriptTag() %>"> <%= ViewData.Val("ParentSubject.ParentUser.ParentDomain.Code", item) %> </span> </td> <% break; case "SubjectAttachmentSubjectUserUserTypeName": %> <td> <span title="<%= ViewData.Val("ParentSubject.ParentUser.ParentUserType.Name", item).ToString(string.Empty).ToScriptTag() %>"> <%= ViewData.Val("ParentSubject.ParentUser.ParentUserType.Name", item) %> </span> </td> <% break; case "SubjectAttachmentSubjectUserUserName": %> <td> <span title="<%= ViewData.Val("ParentSubject.ParentUser.UserName", item).ToString(string.Empty).ToScriptTag() %>"> <%= ViewData.Val("ParentSubject.ParentUser.UserName", item) %> </span> </td> <% break; case "SubjectAttachmentSubjectUserTrueName": %> <td> <span title="<%= ViewData.Val("ParentSubject.ParentUser.TrueName", item).ToString(string.Empty).ToScriptTag() %>"> <%= ViewData.Val("ParentSubject.ParentUser.TrueName", item) %> </span> </td> <% break; case "SubjectAttachmentSubjectName": %> <td> <span title="<%= ViewData.Val("ParentSubject.Name", item).ToString(string.Empty).ToScriptTag() %>"> <%= ViewData.Val("ParentSubject.Name", item) %> </span> </td> <% break; case "FileName": %> <td> <%= File(SettingGroup.SubjectAttachmentUploadPath, item.FileName) %> <%= item.FileName %> </td> <% break; case "FileType": %> <td> <span title="<%= (item.FileType != null ? ((AVA.ResourcesPlatform.Model.Pub.SubjectAttachmentFileTypeEnum)item.FileType).Define() : null).ToString(string.Empty).ToScriptTag() %>"> <%= item.FileType != null ? ((AVA.ResourcesPlatform.Model.Pub.SubjectAttachmentFileTypeEnum)item.FileType).Define() : null %> </span> </td> <% break; case "FileSize": %> <td> <span title="<%= item.FileSize.ToString(string.Empty).ToScriptTag() %>"> <%= AVA.ResourcesPlatform.Config.Helper.FormatSize(item.FileSize) %> </span> </td> <% break; case "Description": %> <td> <%= new HtmlSpan(item.Description) { FilterHtml = true, TextLength = 30, Suffix = "...", WideWord = true } %> </td> <% break; case "SortNumber": %> <td> <span title="<%= item.SortNumber.ToString(string.Empty).ToScriptTag() %>"> <%= item.SortNumber %> </span> </td> <% break; } } %> </tr> <% } %> </table>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de