?? linkmanentity.cs
字號:
?using System;
//該源碼下載自www.51aspx.com(51aspx.com)
/// <summary>
/// 聯(lián)系人資料實體
/// </summary>
public class LinkmanEntity
{
//定義私有變量
private string _name = "";
private string _sex = "";
private string _phone = "";
private string _mail = "";
private string _qq = "";
private DateTime _birthday;
private string _like = "";
private string _note = "";
private string _companyname = "";
//無參數(shù)的構(gòu)造函數(shù)
public LinkmanEntity()
{
}
/// <summary>
/// 有參數(shù)的構(gòu)造函數(shù),初始化聯(lián)系資料
/// </summary>
/// <param name="name">聯(lián)系人姓名</param>
/// <param name="sex">性別</param>
/// <param name="phone">電話</param>
/// <param name="birthday">生日</param>
/// <param name="mail">郵箱</param>
/// <param name="qq">QQ號</param>
/// <param name="like">個人愛好</param>
/// <param name="note">備注</param>
public LinkmanEntity(string name, string sex,string phone,DateTime birthday,string mail,string qq,string like,string note,string companyname)
{
//為私有變量賦值
this._companyname = companyname;
this._name = name;
this._sex = sex;
this._phone = phone;
this._birthday = birthday;
this._mail = mail;
this._qq = qq;
this._like = like;
this._note = note;
}
//聯(lián)系人名稱屬性
public string Name
{
get { return _name; }
set { _name = value; }
}
//性別
public string Sex
{
get { return _sex; }
set { _sex = value; }
}
//電話屬性
public string Phone
{
get { return _phone; }
set { _phone = value; }
}
//生日
public DateTime Birthday
{
get { return _birthday; }
set { _birthday = value; }
}
//客戶Mail屬性
public string Mail
{
get { return _mail; }
set { _mail = value; }
}
//客戶QQ屬性
public string QQ
{
get { return _qq; }
set { _qq = value; }
}
//聯(lián)系人的個人愛好屬性
public string Like
{
get { return _like; }
set { _like = value; }
}
//聯(lián)系人的備注屬性
public string Note
{
get { return _note; }
set { _note = value; }
}
//聯(lián)系人所在單位的名稱
public string CompanyName
{
get { return _companyname; }
set { _companyname = value; }
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -