Get enumeration values

Source: Internet
Author: User

1-Enumeration page:

Using System;
Using System.Collections.Generic;
Using System.ComponentModel;
Using System.Linq;
Using System.Text;

Namespace KDSoft.KDMAPS.Domain.Enum
{
<summary>
Recommended State of NPC
</summary>
public enum Suggestionstatus
{
<summary>
0. Temporary storage
</summary>
[Description ("staging")]
Tmpsave = 0,
<summary>
5. Return
</summary>
[Description ("return")]
Backtoinputer = 5,

<summary>
10. Pending review
</summary>
[Description ("Pending review")]
Toaudit = 10,

<summary>
12, audit does not pass
</summary>
[Description ("Audit does not pass")]
Auditfalse = 12,

<summary>
20, to be assigned
</summary>
[Description ("to be assigned")]
Toassign = 20,

<summary>
30, the department to receive
</summary>
[Description ("Department pending Reception")]
Depttoreceive = 30,
<summary>
32, department punished severely
</summary>
[Description ("Department punished severely")]
Deptreprocess = 32,
<summary>
35, the Department of Processing
</summary>
[Description ("Department processing")]
Deptprocessing = 35,
<summary>
40, the department has finished processing
</summary>
[Description ("the department has finished processing")]
deptprocessed = 40,

<summary>
45, the representative committee has feedback
</summary>
[Description ("Feedback")]
feedbacked = 45,

<summary>
50, has settles
</summary>
[Description ("settles")]
Complete = 50,

}

<summary>
The NPC advises the department to handle the status
</summary>
public enum Dosuggestionstatus
{
<summary>
0. Pending reception
</summary>
[Description ("Pending reception")]
toreceive = 0,

<summary>
10. In-process
</summary>
[Description ("In Process")]
Doing = 10,

<summary>
20, has been processed
</summary>
[Description ("processed")]
Completed = 20,
}

<summary>
Manner of undertaking
</summary>
public enum Dowaytype
{
<summary>
10. Host
</summary>
[Description ("host")]
Host = 10,

<summary>
20, will run
</summary>
[Description ("will do")]
Cohost = 20,

<summary>
30. Sub-Office
</summary>
[Description ("Branch Office")]
Separatehost = 30,
}

<summary>
Results of department processing
</summary>
public enum Doresult
{
<summary>
A. Addressing
</summary>
[Description ("A. Fix")]
A = 10,

<summary>
B. Adoption
</summary>
[Description ("B. Adoption")]
B = 20,

<summary>
C. Explanation
</summary>
[Description ("C. Explanation")]
C = 30,

<summary>
D. Reference
</summary>
[Description ("D. Reference")]
D = 40,
}

<summary>
Department B recommended proposal tracking results
</summary>
public enum Trackresult
{
<summary>
A. Addressing
</summary>
[Description ("Resolution")]
A = 10,

<summary>
C. Explanation
</summary>
[Description ("explanation")]
C = 30,

<summary>
D. Reference
</summary>
[Description ("Reference")]
D = 40,

<summary>
B. Being tracked
</summary>
[Description ("Tracking")]
B = 20,
}
}

2..aspx Interface Usage Enumeration

<%@ import namespace= "KDSoft.KDMAPS.Domain.Enum"%>//introducing namespaces

Action Type Enumeration
var dowayenum = {
Host: ' <%=dowaytype.host.toenumdescriptionstring ()%> ',
Cohost: ' <%=dowaytype.cohost.toenumdescriptionstring ()%> ',
Separatehost: ' <%=dowaytype.separatehost.toenumdescriptionstring ()%> ',
};

Get enumeration values

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.