温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:客户关系管理系统源码
当前文件:
myCRM/App_Code/EntityClass/EmployeeEntity.cs[2K,2009-6-12 11:48:08],打开代码结构图
myCRM/App_Code/EntityClass/EmployeeEntity.cs[2K,2009-6-12 11:48:08],打开代码结构图1using System; 2
3
/// <summary> 4
/// 员工资料实体 5
/// </summary> 6
public class EmployeeEntity 7
{ 8
//定义私有变量 9
private string _name = ""; 10
private string _sex = ""; 11
private string _phone = ""; 12
private string _mail = ""; 13
private DateTime _birthday; 14
private string _note = ""; 15
private string _depart = ""; 16
17
//无参数的构造函数 18
public EmployeeEntity() 19
{ 20
} 21
22
/// <summary> 23
/// 有参数的构造函数,初始化联系资料 24
/// </summary> 25
/// <param name="name">姓名</param> 26
/// <param name="sex">性别</param> 27
/// <param name="phone">电话</param> 28
/// <param name="birthday">生日</param> 29
/// <param name="mail">邮箱</param> 30
/// <param name="note">备注</param> 31
/// <param name="depart">部门</param> 32
public EmployeeEntity(string name, string sex, string phone, DateTime birthday, string mail, string note, string depart) 33
{ 34
//为私有变量赋值 35
this._depart = depart; 36
this._name = name; 37
this._sex = sex; 38
this._phone = phone; 39
this._birthday = birthday; 40
this._mail = mail; 41
this._note = note; 42
} 43
44
//员工姓名属性 45
public string Name 46
{ 47
get { return _name; } 48
set { _name = value; } 49
} 50
//性别 51
public string Sex 52
{ 53
get { return _sex; } 54
set { _sex = value; } 55
} 56
//电话属性 57
public string Phone 58
{ 59
get { return _phone; } 60
set { _phone = value; } 61
} 62
//生日 63
public DateTime Birthday 64
{ 65
get { return _birthday; } 66
set { _birthday = value; } 67
} 68
//Mail属性 69
public string Mail 70
{ 71
get { return _mail; } 72
set { _mail = value; } 73
} 74
//备注属性 75
public string Note 76
{ 77
get { return _note; } 78
set { _note = value; } 79
} 80
//员工所在部门 81
public string Depart 82
{ 83
get { return _depart; } 84
set { _depart = value; } 85
} 86
}








}