using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
///车辆保险记录
///
[Serializable]
public partial class OA_CarInsurance : IAggregateRoot
{
public OA_CarInsurance()
{
}
#region Model
private int? _keyid;
private int? _carid;
private string _insurancepeople;
private DateTime? _insurancetime;
private DateTime? _insuranceendtime;
private decimal? _insurancemoney;
private string _insurancecompany;
private string _insurancecontent;
private int? _insurancestatus;
private DateTime? _lastupdatetime;
private string _operator;
///
/// Keyid
///
public int? Keyid
{
get
{
return _keyid;
}
set
{
_keyid = value;
}
}
///
/// 车辆ID
///
public int? CarId
{
get
{
return _carid;
}
set
{
_carid = value;
}
}
///
/// 经办人(保险)
///
public string InsurancePeople
{
get
{
return _insurancepeople;
}
set
{
_insurancepeople = value;
}
}
///
/// 购买时间(保险)
///
public DateTime? InsuranceTime
{
get
{
return _insurancetime;
}
set
{
_insurancetime = value;
}
}
///
/// 到期时间(保险)
///
public DateTime? InsuranceEndTime
{
get
{
return _insuranceendtime;
}
set
{
_insuranceendtime = value;
}
}
///
/// 保险费
///
public decimal? InsuranceMoney
{
get
{
return _insurancemoney;
}
set
{
_insurancemoney = value;
}
}
///
/// 保险公司
///
public string InsuranceCompany
{
get
{
return _insurancecompany;
}
set
{
_insurancecompany = value;
}
}
///
/// 保险险种
///
public string InsuranceContent
{
get
{
return _insurancecontent;
}
set
{
_insurancecontent = value;
}
}
///
/// 保险状态
///
public int? InsuranceStatus
{
get
{
return _insurancestatus;
}
set
{
_insurancestatus = value;
}
}
///
/// 操作时间
///
public DateTime? LastUpdateTime
{
get
{
return _lastupdatetime;
}
set
{
_lastupdatetime = value;
}
}
///
/// 更新人
///
public string Operator
{
get
{
return _operator;
}
set
{
_operator = value;
}
}
///
/// 车牌号
///
public string CarNumber
{
get;
set;
}
#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 ("CarId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.CarId = isChange ? MyConvert.ConvertToInt(value) : CarId;
theValue = this.CarId;
}
else if ("InsurancePeople".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.InsurancePeople = isChange ? MyConvert.ConvertToString(value) : InsurancePeople;
theValue = this.InsurancePeople;
}
else if ("InsuranceTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.InsuranceTime = isChange ? MyConvert.ConvertToDateTime(value) : InsuranceTime;
theValue = this.InsuranceTime;
}
else if ("InsuranceEndTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.InsuranceEndTime = isChange ? MyConvert.ConvertToDateTime(value) : InsuranceEndTime;
theValue = this.InsuranceEndTime;
}
else if ("InsuranceMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.InsuranceMoney = isChange ? MyConvert.ConvertToDecimal(value) : InsuranceMoney;
theValue = this.InsuranceMoney;
}
else if ("InsuranceCompany".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.InsuranceCompany = isChange ? MyConvert.ConvertToString(value) : InsuranceCompany;
theValue = this.InsuranceCompany;
}
else if ("InsuranceContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.InsuranceContent = isChange ? MyConvert.ConvertToString(value) : InsuranceContent;
theValue = this.InsuranceContent;
}
else if ("InsuranceStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
{
this.InsuranceStatus = isChange ? MyConvert.ConvertToInt(value) : InsuranceStatus;
theValue = this.InsuranceStatus;
}
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
theValue = this.LastUpdateTime;
}
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
{
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
theValue = this.Operator;
}
else if ("CarNumber".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
{
this.CarNumber = isChange ? MyConvert.ConvertToString(value) : CarNumber;
theValue = this.CarNumber;
}
return theValue;
}
#endregion Visiter
}
}