using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
///软件代理
///
[Serializable]
public partial class Soft_Proxy : IAggregateRoot
{
public Soft_Proxy()
{ }
#region Model
private int? _keyid;
private string _proxyname;
private int? _proxystatus;
private string _proxyphone;
private string _proxyqq;
private string _proxymobile;
private string _proxycardnum;
private string _proxycardimg;
private string _proxyprovince;
private string _proxycity;
private string _proxycountry;
private int? _proxytype;
private int? _proxymoneyway;
private int? _proxymoneynum;
private DateTime? _proxycreattime;
private DateTime? _proxyendtime;
private DateTime? _lastupdatetime;
private string _operator;
///
/// 编号
///
public int? Keyid
{
get{ return _keyid; }
set{ _keyid = value; }
}
///
/// 代理人名称
///
public string ProxyName
{
get{ return _proxyname; }
set{ _proxyname = value; }
}
///
/// 状态,1代理中/2已禁止
///
public int? ProxyStatus
{
get{ return _proxystatus; }
set{ _proxystatus = value; }
}
///
/// 联系电话
///
public string ProxyPhone
{
get{ return _proxyphone; }
set{ _proxyphone = value; }
}
///
/// 联系QQ
///
public string ProxyQQ
{
get{ return _proxyqq; }
set{ _proxyqq = value; }
}
///
/// 联系手机
///
public string ProxyMobile
{
get{ return _proxymobile; }
set{ _proxymobile = value; }
}
///
/// 身份证号码
///
public string ProxyCardNum
{
get{ return _proxycardnum; }
set{ _proxycardnum = value; }
}
///
/// 证件图片
///
public string ProxyCardImg
{
get{ return _proxycardimg; }
set{ _proxycardimg = value; }
}
///
/// 代理省
///
public string ProxyProvince
{
get{ return _proxyprovince; }
set{ _proxyprovince = value; }
}
///
/// 代理市
///
public string ProxyCity
{
get{ return _proxycity; }
set{ _proxycity = value; }
}
///
/// 代理区
///
public string ProxyCountry
{
get{ return _proxycountry; }
set{ _proxycountry = value; }
}
///
/// 代理类型
///
public int? ProxyType
{
get{ return _proxytype; }
set{ _proxytype = value; }
}
///
/// 代理费类型
///
public int? ProxyMoneyWay
{
get{ return _proxymoneyway; }
set{ _proxymoneyway = value; }
}
///
/// 代理费金额
///
public int? ProxyMoneyNum
{
get{ return _proxymoneynum; }
set{ _proxymoneynum = value; }
}
///
/// 代理时间
///
public DateTime? ProxyCreatTime
{
get{ return _proxycreattime; }
set{ _proxycreattime = value; }
}
///
/// 禁止时间
///
public DateTime? ProxyEndTime
{
get{ return _proxyendtime; }
set{ _proxyendtime = value; }
}
///
/// 最后修改时间
///
public DateTime? LastUpdateTime
{
get{ return _lastupdatetime; }
set{ _lastupdatetime = value; }
}
///
/// 操作人
///
public string Operator
{
get{ return _operator; }
set{ _operator = value; }
}
#endregion Model
#region Visiter
///
/// 属性访问器
///
/// 属性名
/// 索引
/// 是否将指定属性设置为传入值
/// 需要赋予的值
/// 与名称对应的属性值
public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
{
object theValue = null;
if ("Keyid".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 1)
{
this.Keyid = isChange ? MyConvert.ConvertToInt(value) : Keyid;
theValue = this.Keyid;
}
else if ("ProxyName".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.ProxyName = isChange ? MyConvert.ConvertToString(value) : ProxyName;
theValue = this.ProxyName;
}
else if ("ProxyStatus".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.ProxyStatus = isChange ? MyConvert.ConvertToInt(value) : ProxyStatus;
theValue = this.ProxyStatus;
}
else if ("ProxyPhone".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.ProxyPhone = isChange ? MyConvert.ConvertToString(value) : ProxyPhone;
theValue = this.ProxyPhone;
}
else if ("ProxyQQ".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.ProxyQQ = isChange ? MyConvert.ConvertToString(value) : ProxyQQ;
theValue = this.ProxyQQ;
}
else if ("ProxyMobile".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.ProxyMobile = isChange ? MyConvert.ConvertToString(value) : ProxyMobile;
theValue = this.ProxyMobile;
}
else if ("ProxyCardNum".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.ProxyCardNum = isChange ? MyConvert.ConvertToString(value) : ProxyCardNum;
theValue = this.ProxyCardNum;
}
else if ("ProxyCardImg".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.ProxyCardImg = isChange ? MyConvert.ConvertToString(value) : ProxyCardImg;
theValue = this.ProxyCardImg;
}
else if ("ProxyProvince".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 9)
{
this.ProxyProvince = isChange ? MyConvert.ConvertToString(value) : ProxyProvince;
theValue = this.ProxyProvince;
}
else if ("ProxyCity".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.ProxyCity = isChange ? MyConvert.ConvertToString(value) : ProxyCity;
theValue = this.ProxyCity;
}
else if ("ProxyCountry".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 11)
{
this.ProxyCountry = isChange ? MyConvert.ConvertToString(value) : ProxyCountry;
theValue = this.ProxyCountry;
}
else if ("ProxyType".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 12)
{
this.ProxyType = isChange ? MyConvert.ConvertToInt(value) : ProxyType;
theValue = this.ProxyType;
}
else if ("ProxyMoneyWay".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 13)
{
this.ProxyMoneyWay = isChange ? MyConvert.ConvertToInt(value) : ProxyMoneyWay;
theValue = this.ProxyMoneyWay;
}
else if ("ProxyMoneyNum".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 14)
{
this.ProxyMoneyNum = isChange ? MyConvert.ConvertToInt(value) : ProxyMoneyNum;
theValue = this.ProxyMoneyNum;
}
else if ("ProxyCreatTime".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 15)
{
this.ProxyCreatTime = isChange ? MyConvert.ConvertToDateTime(value) : ProxyCreatTime;
theValue = this.ProxyCreatTime;
}
else if ("ProxyEndTime".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 16)
{
this.ProxyEndTime = isChange ? MyConvert.ConvertToDateTime(value) : ProxyEndTime;
theValue = this.ProxyEndTime;
}
else if ("LastUpdateTime".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 17)
{
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
theValue = this.LastUpdateTime;
}
else if ("Operator".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 18)
{
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
theValue = this.Operator;
}
return theValue;
}
#endregion Visiter
}
}