?? customerinfo.cs
字號:
using System;
namespace CallCenter.Modules
{
/// <summary>
/// 客戶信息
/// </summary>
public class CustomerInfo
{
public CustomerInfo()
{
//
// TODO: 在此處添加構造函數邏輯
//
}
private int _id;
private string _cname;
private string _csex;
private string _caddress;
private string _ccontact;
private string _cemail;
private string _cfax;
private int _ctype;
private string _ctname;
private string _ctelnumber;
private string _ccomment;
private int _position;
public int id{
get{return _id;}
set{_id = value;}
}
public string cname{
get{return _cname==null?"":_cname;}
set{_cname = value;}
}
public string csex
{
get{return _csex==null?"":_csex;}
set{_csex = value;}
}
public string caddress{
get{return _caddress==null?"":_caddress;}
set{_caddress = value;}
}
public string ccontact{
get{return _ccontact==null?"":_ccontact;}
set{_ccontact = value;}
}
public string cemail{
get{return _cemail==null?"":_cemail;}
set{_cemail = value;}
}
public string cfax{
get{return _cfax==null?"":_cfax;}
set{_cfax = value;}
}
public int ctype{
get{return _ctype;}
set{_ctype = value;}
}
public string ctname{
get{return _ctname==null?"":_ctname;}
set{_ctname = value;}
}
public string ctelnumber
{
get{return _ctelnumber==null?"":_ctelnumber;}
set{_ctelnumber = value;}
}
public string ccomment
{
get{return _ccomment==null?"":_ccomment;}
set{_ccomment = value;}
}
public int position
{
get
{
return _position;
}
set
{
if (_position == value)
return;
_position = value;
}
}
public override string ToString()
{
// TODO: 添加 CustomerInfo.ToString 實現
return "id = "+this.id+" ; cname = "+this.cname+" ; csex = "+this.csex+" ; caddress = "+this.caddress+" ; ccontact = "+this.ccontact
+" ; cemail = "+this.cemail+" ; cfax = "+this.cfax+" ; ctype = "+this.ctype+" ; ctname ="+this.ctname+" ; ctelnumber = "+this.ctelnumber+
" ; ccomment="+this.ccomment;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -