Blame view

src/com/synjones/sdt/IDCard.java 3.19 KB
3c2353cd   杜方   1、畅游通核销app源码提交;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
  package com.synjones.sdt;
  
  public class IDCard {
  	private String name;
  	private String sex;
  	private String nation;
  	private String birthday;
  	private String address;
  	private String idcardno;
  	private String grantdept;
  	private String userlifebegin;
  	private String userlifeend;
  	private byte[] wlt;
  	static public byte SW1, SW2, SW3;
  	final private String[] nations = {
  			"解码错",			// 00
  			"汉",			// 01
  			"蒙古",			// 02
  			"回",			// 03
  			"藏",			// 04
  			"维吾尔",			// 05
  			"苗",			// 06
  			"彝",			// 07
  			"壮",			// 08
  			"布依",			// 09
  			"朝鲜",			// 10
  			"满",			// 11
  			"侗",			// 12
  			"瑶",			// 13
  			"白",			// 14
  			"土家",			// 15
  			"哈尼",			// 16
  			"哈萨克",			// 17
  			"傣",			// 18
  			"黎",			// 19
  			"傈僳",			// 20
  			"佤",			// 21
  			"畲",			// 22
  			"高山",			// 23
  			"拉祜",			// 24
  			"水",			// 25
  			"东乡",			// 26
  			"纳西",			// 27
  			"景颇",			// 28
  			"柯尔克孜",		// 29
  			"土",			// 30
  			"达斡尔",			// 31
  			"仫佬",			// 32
  			"羌",			// 33
  			"布朗",			// 34
  			"撒拉",			// 35
  			"毛南",			// 36
  			"仡佬",			// 37
  			"锡伯",			// 38
  			"阿昌",			// 39
  			"普米",			// 40
  			"塔吉克",			// 41
  			"怒",			// 42
  			"乌孜别克",		// 43
  			"俄罗斯",			// 44
  			"鄂温克",			// 45
  			"德昴",			// 46
  			"保安",			// 47
  			"裕固",			// 48
  			"京",			// 49
  			"塔塔尔",			// 50
  			"独龙",			// 51
  			"鄂伦春",			// 52
  			"赫哲",			// 53
  			"门巴",			// 54
  			"珞巴",			// 55
  			"基诺",			// 56
  			"编码错",			// 57
  			"其他",			// 97
  			"外国血统"			// 98
  	};
  
  	public IDCard() {
  	}
  
  	public String getName() {
  		return name;
  	}
  	public void setName(String name) {
  		this.name = name;
  	}
  	public String getSex() {
  		return sex;
  	}
  	public void setSex(String sex) {
  		this.sex = sex;
  	}
  	public String getNation() {
  		return nation;
  	}
  	public String getNationName(String nation) {
  		int nationcode = Integer.parseInt(nation);
  		if (nationcode>=1 && nationcode<=56) {
  			this.nation = nations[nationcode];
  		} else if (nationcode == 97) {
  			this.nation = "其他";
  		} else if (nationcode == 98) {
  			this.nation = "外国血统";
  		} else {
  			this.nation = "编码错";
  		}
  
  		return this.nation;
  	}
  	public void setNation(String nation) {
  		this.nation = nation;
  	}
  	public String getBirthday() {
  		return birthday;
  	}
  	public void setBirthday(String birthday) {
  		this.birthday = birthday;
  	}
  	public String getAddress() {
  		return address;
  	}
  	public void setAddress(String address) {
  		this.address = address;
  	}
  	public String getIDCardNo() {
  		return idcardno;
  	}
  	public void setIDCardNo(String idcardno) {
  		this.idcardno = idcardno;
  	}
  	public String getGrantDept() {
  		return grantdept;
  	}
  	public void setGrantDept(String grantdept) {
  		this.grantdept = grantdept;
  	}
  	public String getUserLifeBegin() {
  		return this.userlifebegin;
  	}
  	public void setUserLifeBegin(String userlifebegin) {
  		this.userlifebegin = userlifebegin;
  	}
  	public String getUserLifeEnd() {
  		return this.userlifeend;
  	}
  	public void setUserLifeEnd(String userlifeend) {
  		this.userlifeend = userlifeend;
  	}
  	public byte[] getWlt() {
  		return this.wlt;
  	}
  	public void setWlt(byte[] wlt) {
  		this.wlt = wlt;
  	}
  }