1-枚举页面:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace KDSoft.KDMAPS.Domain.Enum
{
/// <summary>
/// 人大建议状态
/// </summary>
public enum SuggestionStatus
{
/// <summary>
/// 0、暂存
/// </summary>
[Description("暂存")]
TmpSave = 0,
/// <summary>
/// 5、退回
/// </summary>
[Description("退回")]
BackToInputer = 5,
}
}
2..aspx界面使用枚举
<%@ Import Namespace="KDSoft.KDMAPS.Domain.Enum" %>//引入命名空间
//交办类型枚举
var DoWayEnum = {
Host: '<%=DoWayType.Host.ToEnumDescriptionString()%>',
CoHost: '<%=DoWayType.CoHost.ToEnumDescriptionString()%>',
SeparateHost: '<%=DoWayType.SeparateHost.ToEnumDescriptionString()%>',
};