<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Notice.List1" %> <% foreach (var field in this.Fields) { switch (field) { case "Status": //Notice_状态 %> <% break; case "NoticeDomainName": //Notice_DomainName_平台名称 %> <% break; case "NoticeDomainCode": //Notice_DomainCode_平台编码 %> <% break; case "Title": //Notice_标题 %> <% break; case "AddTime": //Notice_添加时间 %> <% break; case "ActiveBeginDate": //Notice_开始日期 %> <% break; case "ActiveEndDate": //Notice_结束日期 %> <% break; case "Type": //Notice_公告类型 %> <% break; case "SortNumber": //Notice_排序号 %> <% break; } } %> <% foreach (var item in this.ListData) { %> <% foreach (var field in this.Fields) { switch (field) { case "Status": %> <% break; case "NoticeDomainName": %> <% break; case "NoticeDomainCode": %> <% break; case "Title": %> <% break; case "AddTime": %> <% break; case "ActiveBeginDate": %> <% break; case "ActiveEndDate": %> <% break; case "Type": %> <% break; case "SortNumber": %> <% break; } } %> <% } %>
<%= new HtmlCheckBox() { Class = "trSelAll", Title = DefineEnum.全选_不选_本页所有记录.Define(), Lang = ".listContainer .trsel" }%> ',event)"> <%= Define.Get("Notice_状态").HtmlEncode() %> <%= OrderBy("Status") %> ',event)"> <%= Define.Get("Notice_DomainName_平台名称").HtmlEncode() %> <%= OrderBy("_Domain.Name") %> ',event)"> <%= Define.Get("Notice_DomainCode_平台编码").HtmlEncode() %> <%= OrderBy("_Domain.Code") %> ',event)"> <%= Define.Get("Notice_标题").HtmlEncode() %> <%= OrderBy("Title") %> ',event)"> <%= Define.Get("Notice_添加时间").HtmlEncode() %> <%= OrderBy("AddTime") %> ',event)"> <%= Define.Get("Notice_开始日期").HtmlEncode() %> <%= OrderBy("ActiveBeginDate") %> ',event)"> <%= Define.Get("Notice_结束日期").HtmlEncode() %> <%= OrderBy("ActiveEndDate") %> ',event)"> <%= Define.Get("Notice_公告类型").HtmlEncode() %> <%= OrderBy("Type") %> ',event)"> <%= Define.Get("Notice_排序号").HtmlEncode() %> <%= OrderBy("SortNumber") %>
<%= new HtmlCheckBox() { Value= SetKey(item.Guid, item.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%> /edit.aspx?guid=<%= item.Guid %>"><%= DefineEnum.修改.Define() %> <%= item.Status != null ? ((AVA.ResourcesPlatform.Model.Pub.NoticeStatusEnum)item.Status).Define() : null %> "> <%= ViewData.Val("ParentDomain.Name", item) %> "> <%= ViewData.Val("ParentDomain.Code", item) %> <%= item.Title %> <%= item.AddTime.ToDateTimeN().ToAutoShortDate() %> <%= item.ActiveBeginDate.ToDateTimeN().ToAutoShortDate() %> <%= item.ActiveEndDate.ToDateTimeN().ToAutoShortDate() %> <%= item.Type != null ? ((AVA.ResourcesPlatform.Model.Pub.NoticeTypeEnum)item.Type).Define() : null %> <%= item.SortNumber %>