?? taskentity.cs
字號:
?using System;
/// <summary>
/// TaskEntity 的摘要說明
/// </summary>
public class TaskEntity
{
//定義私有變量
private string _name = "";
private string _username = "";
private string _title = "";
private string _note = "";
private DateTime _begindate ;
private DateTime _enddate ;
//無參數的構造函數
public TaskEntity()
{
}
/// <summary>
/// 有參數的構造函數,初始化日志內容
/// </summary>
/// <param name="name">員工姓名</param>
/// <param name="username">客戶名稱</param>
/// <param name="title">主題</param>
/// <param name="note">備注</param>
/// <param name="begindate">開始日期</param>
/// <param name="enddate">開始日期</param>
public TaskEntity(string name, string username,string title, string note, DateTime begindate, DateTime enddate)
{
//為私有變量賦值
this._name = name;
this._username = username;
this._title = title;
this._note = note;
this._begindate = begindate;
this._enddate = enddate;
}
//員工姓名
public string Name
{
get { return _name; }
set { _name = value; }
}
//客戶名稱
public string UserName
{
get { return _username; }
set { _username = value; }
}
//任務主題
public string Title
{
get { return _title; }
set { _title = value; }
}
//聯系備注
public string Note
{
get { return _note; }
set { _note = value; }
}
//開始日期
public DateTime BeginDate
{
get { return _begindate; }
set { _begindate = value; }
}
//結束日期
public DateTime EndDate
{
get { return _enddate; }
set { _enddate = value; }
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -