dangsn
2024-06-11 dba1e53cd7652f1b973ffec118e5b3312278c814
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
package com.vci.server.framework.systemConfig.stafforgmanage.user;
 
import java.io.Serializable;
import java.sql.Timestamp;
 
import com.vci.common.annotaion.CustomAnnotaion;
import com.vci.common.objects.AbstractEntity;
 
/**
 * <p>Title: Person 成员类</p>
 * <p>Description:包含了成员基本信息</p>
 * <p>Copyright: Copyright (C) 2011 </p>
 * <p>Company: VCI </p>
 *  
 *  @author wangxl
 *  @time 2011-6-1
 *  @version 1.0
 */
@CustomAnnotaion(CustomDescription = "用户")
public class User extends AbstractEntity implements Serializable{
 
    private static final long serialVersionUID = -2803126612504981325L;
 
    public static long getSerialversionuid() {
        return serialVersionUID;
    }
    @CustomAnnotaion(CustomDescription = "用户ID",InToString = false)
    private String id;
    @CustomAnnotaion(CustomDescription = "用户名")
    private String userName; //用户名
    @CustomAnnotaion(CustomDescription = "密码", InToString = false)
    private String password; // 密码 
    @CustomAnnotaion(CustomDescription = "真实姓名")
    private String trueName;
    @CustomAnnotaion(CustomDescription = "专业")
    private String specialties;
    @CustomAnnotaion(CustomDescription = "电子邮件")
    private String email; // 电子邮件
    @CustomAnnotaion(CustomDescription = "描述")
    private String desc; // 描述
    @CustomAnnotaion(CustomDescription = "",InToString = false)
    private short userType;
    @CustomAnnotaion(CustomDescription = "状态")
    private short status;
    @CustomAnnotaion(CustomDescription = "",InToString = false)
    private Timestamp createTime;
    @CustomAnnotaion(CustomDescription = "",InToString = false)
    private String createUser;
    @CustomAnnotaion(CustomDescription = "",InToString = false)
    private Timestamp updateTime;
    @CustomAnnotaion(CustomDescription = "",InToString = false)
    private String updateUser;
    @CustomAnnotaion(CustomDescription = "",InToString = false)
    private Timestamp pwdUpdateTime;
    @CustomAnnotaion(CustomDescription = "授权者",InToString = false)
    private String grantor;
    @CustomAnnotaion(CustomDescription = "密级")
    private String secretGrade = "";
    @CustomAnnotaion(CustomDescription = "是否是部门领导标识 1:是 0:不是",InToString = false)
    private String isDeptLeader = "0";
    public User() {
        
    }
    public Timestamp getCreateTime() {
        return createTime;
    }
    public String getCreateUser() {
        return createUser;
    }
 
    public String getDesc() {
        return desc;
    }
    
    public String getEmail() {
        return email;
    }
    
    public String getSpecialties() {
        return specialties;
    }
    
    public String getGrantor() {
        return grantor;
    }
    public String getId() {
        return id;
    }
 
    public String getPassword() {
        return password;
    }
 
    public Timestamp getPwdUpdateTime() {
        return pwdUpdateTime;
    }
 
    public String getSecretGrade() {
        return secretGrade;
    }
 
    public short getStatus() {
        return status;
    }
 
    public String getTrueName() {
        return trueName;
    }
 
    public Timestamp getUpdateTime() {
        return updateTime;
    }
 
    public String getUpdateUser() {
        return updateUser;
    }
    
    public String getUserName() {
        return userName;
    }
 
    public short getUserType() {
        return userType;
    }
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }
    
    public void setSpecialties(String specialties) {
        this.specialties = specialties;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    public void setGrantor(String grantor) {
        this.grantor = grantor;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public void setPwdUpdateTime(Timestamp pwdUpdateTime) {
        this.pwdUpdateTime = pwdUpdateTime;
    }
    public void setSecretGrade(String secretGrade) {
        this.secretGrade = secretGrade;
    }
    public void setStatus(short status) {
        this.status = status;
    }
    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }
    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }
    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public void setUserType(short userType) {
        this.userType = userType;
    }
    public String getIsDeptLeader() {
        return isDeptLeader;
    }
    public void setIsDeptLeader(String isDeptLeader) {
        this.isDeptLeader = isDeptLeader;
    }
    
//    @Override
//    public String toString() {
//        String userNameStr = userName == null ? "" : userName;
//        String dutyStr = duty == null ? "" : duty;
//        String firstNameStr = firstName == null ? "" : firstName;
//        String lastNameStr = lastName == null ? "" : lastName;
//        String emailStr = email == null ? "" : email;
//        String businessTelStr = businessTel == null ? "" : businessTel;
//        String homephoneStr = homephone == null ? "" : homephone;
//        String mobelphoneStr = mobelphone == null ? "" : mobelphone;
//        String businessfaxStr = businessfax == null ? "" : businessfax;
//        String descStr = desc == null ? "" : desc;
//        String departId = departmentId == null ? "" : departmentId;
//        
//        String ret = "User--userName:" + userNameStr + ";duty:"+dutyStr
//            + ";firstName:" + firstNameStr + ";lastName:" + lastNameStr + ";email:" + emailStr
//            + ";businessTel:" + businessTelStr + ";homephone:" + homephoneStr +";mobelphone:" +mobelphoneStr 
//            + ";businessfax:"+ businessfaxStr + ";departmentId:" + departId + ";desc:" + descStr; 
//        return ret;
//    }
}