%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Select.ascx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Unit.Select1" %>
<% foreach (var field in this.Fields) { switch (field) { case "Status": //Unit_状态 %> | ',event)"> <%= Define.Get("Unit_状态").HtmlEncode() %> <%= OrderBy("Status") %> | <% break; case "UnitUnitMasterName": //Unit_UnitMasterName_管理部门名称 %>',event)"> <%= Define.Get("Unit_UnitMasterName_管理部门名称").HtmlEncode() %> <%= OrderBy("_UnitMaster.Name") %> | <% break; case "Name": //Unit_单位名称 %>',event)"> <%= Define.Get("Unit_单位名称").HtmlEncode() %> <%= OrderBy("Name") %> | <% break; case "Address": //Unit_单位地址 %>',event)"> <%= Define.Get("Unit_单位地址").HtmlEncode() %> <%= OrderBy("Address") %> | <% break; case "Phone": //Unit_单位电话 %>',event)"> <%= Define.Get("Unit_单位电话").HtmlEncode() %> <%= OrderBy("Phone") %> | <% break; case "SortNumber": //Unit_排序号 %>',event)"> <%= Define.Get("Unit_排序号").HtmlEncode() %> <%= OrderBy("SortNumber") %> | <% break; } } %>|
---|---|---|---|---|---|---|---|
<% foreach (var field in this.Fields) { switch (field) { case "Status": %> | <%= item.Status != null ? ((AVA.ResourcesPlatform.Model.Pub.UnitStatusEnum)item.Status).Define() : null %> | <% break; case "UnitUnitMasterName": %>"> <%= ViewData.Val("ParentUnitMaster.Name", item) %> | <% break; case "Name": %><%= item.Name %> | <% break; case "Address": %><%= item.Address %> | <% break; case "Phone": %><%= item.Phone %> | <% break; case "SortNumber": %><%= item.SortNumber %> | <% break; } } %>