标签:
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,
/// <summary>
/// 10、待审核
/// </summary>
[Description("待审核")]
ToAudit = 10,
/// <summary>
/// 12、审核不通过
/// </summary>
[Description("审核不通过")]
AuditFalse = 12,
/// <summary>
/// 20、待交办
/// </summary>
[Description("待交办")]
ToAssign = 20,
/// <summary>
/// 30、部门待接收
/// </summary>
[Description("部门待接收")]
DeptToReceive = 30,
/// <summary>
/// 32、部门重办
/// </summary>
[Description("部门重办")]
DeptReProcess = 32,
/// <summary>
/// 35、部门处理中
/// </summary>
[Description("部门处理中")]
DeptProcessing = 35,
/// <summary>
/// 40、部门处理完毕
/// </summary>
[Description("部门处理完毕")]
DeptProcessed = 40,
/// <summary>
/// 45、代表委员已反馈
/// </summary>
[Description("已反馈")]
FeedBacked = 45,
/// <summary>
/// 50、已办结
/// </summary>
[Description("已办结")]
Complete = 50,
}
/// <summary>
/// 人大建议部门办理状态
/// </summary>
public enum DoSuggestionStatus
{
/// <summary>
/// 0、待接收
/// </summary>
[Description("待接收")]
ToReceive = 0,
/// <summary>
/// 10、办理中
/// </summary>
[Description("办理中")]
Doing = 10,
/// <summary>
/// 20、已办理
/// </summary>
[Description("已办理")]
Completed = 20,
}
/// <summary>
/// 承办方式
/// </summary>
public enum DoWayType
{
/// <summary>
/// 10、主办
/// </summary>
[Description("主办")]
Host = 10,
/// <summary>
/// 20、会办
/// </summary>
[Description("会办")]
CoHost = 20,
/// <summary>
/// 30、分办
/// </summary>
[Description("分办")]
SeparateHost = 30,
}
/// <summary>
/// 部门办理结果
/// </summary>
public enum DoResult
{
/// <summary>
/// A.解决
/// </summary>
[Description("A.解决")]
A = 10,
/// <summary>
/// B.采纳
/// </summary>
[Description("B.采纳")]
B = 20,
/// <summary>
/// C.解释
/// </summary>
[Description("C.解释")]
C = 30,
/// <summary>
/// D.参考
/// </summary>
[Description("D.参考")]
D = 40,
}
/// <summary>
/// 部门B类建议提案跟踪结果
/// </summary>
public enum TrackResult
{
/// <summary>
/// A.解决
/// </summary>
[Description("解决")]
A = 10,
/// <summary>
/// C.解释
/// </summary>
[Description("解释")]
C = 30,
/// <summary>
/// D.参考
/// </summary>
[Description("参考")]
D = 40,
/// <summary>
/// B.正在跟踪
/// </summary>
[Description("正在跟踪")]
B = 20,
}
}
2..aspx界面使用枚举
<%@ Import Namespace="KDSoft.KDMAPS.Domain.Enum" %>//引入命名空间
//交办类型枚举
var DoWayEnum = {
Host: ‘<%=DoWayType.Host.ToEnumDescriptionString()%>‘,
CoHost: ‘<%=DoWayType.CoHost.ToEnumDescriptionString()%>‘,
SeparateHost: ‘<%=DoWayType.SeparateHost.ToEnumDescriptionString()%>‘,
};
标签:
原文地址:http://www.cnblogs.com/sunzgod/p/4323566.html