<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Unit.List1" %> <% foreach (var field in this.Fields) { switch (field) { case "Status": //Unit_状态 %> <% break; case "UnitUnitMasterName": //Unit_UnitMasterName_管理部门名称 %> <% break; case "Name": //Unit_单位名称 %> <% break; case "Address": //Unit_单位地址 %> <% break; case "Phone": //Unit_单位电话 %> <% break; case "SortNumber": //Unit_排序号 %> <% break; } } %> <% foreach (var item in this.ListData) { %> <% foreach (var field in this.Fields) { switch (field) { case "Status": %> <% break; case "UnitUnitMasterName": %> <% break; case "Name": %> <% break; case "Address": %> <% break; case "Phone": %> <% break; case "SortNumber": %> <% break; } } %> <% } %>
<%= new HtmlCheckBox() { Class = "trSelAll", Title = DefineEnum.全选_不选_本页所有记录.Define(), Lang = ".listContainer .trsel" }%> ',event)"> <%= Define.Get("Unit_状态").HtmlEncode() %> <%= OrderBy("Status") %> ',event)"> <%= Define.Get("Unit_UnitMasterName_管理部门名称").HtmlEncode() %> <%= OrderBy("_UnitMaster.Name") %> ',event)"> <%= Define.Get("Unit_单位名称").HtmlEncode() %> <%= OrderBy("Name") %> ',event)"> <%= Define.Get("Unit_单位地址").HtmlEncode() %> <%= OrderBy("Address") %> ',event)"> <%= Define.Get("Unit_单位电话").HtmlEncode() %> <%= OrderBy("Phone") %> ',event)"> <%= Define.Get("Unit_排序号").HtmlEncode() %> <%= OrderBy("SortNumber") %>
<%= new HtmlCheckBox() { Value= SetKey(item.Guid, item.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%> <%= DefineEnum.修改.Define() %> <%= item.Status != null ? ((AVA.ResourcesPlatform.Model.Pub.UnitStatusEnum)item.Status).Define() : null %> "> <%= ViewData.Val("ParentUnitMaster.Name", item) %> <%= item.Name %> <%= item.Address %> <%= item.Phone %> <%= item.SortNumber %>