using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
///车辆年审记录
///
[Serializable]
public partial class OA_CarExamined : IAggregateRoot
{
public OA_CarExamined()
{
}
#region Model
private int? _keyid;
private int? _carid;
private string _examinedpeople;
private DateTime? _examinedtime;
private DateTime? _examinednexttime;
private decimal? _examinedmoney;
private string _examinedrecore;
private int? _examinedstatus;
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 ExaminedPeople
{
get
{
return _examinedpeople;
}
set
{
_examinedpeople = value;
}
}
///
/// 年审时间
///
public DateTime? ExaminedTime
{
get
{
return _examinedtime;
}
set
{
_examinedtime = value;
}
}
///
/// 下次年审时间
///
public DateTime? ExaminedNextTime
{
get
{
return _examinednexttime;
}
set
{
_examinednexttime = value;
}
}
///
/// 年审费用
///
public decimal? ExaminedMoney
{
get
{
return _examinedmoney;
}
set
{
_examinedmoney = value;
}
}
///
/// 年审记录
///
public string ExaminedRecore
{
get
{
return _examinedrecore;
}
set
{
_examinedrecore = value;
}
}
///
/// 年审状态
///
public int? ExaminedStatus
{
get
{
return _examinedstatus;
}
set
{
_examinedstatus = 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 ("ExaminedPeople".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.ExaminedPeople = isChange ? MyConvert.ConvertToString(value) : ExaminedPeople;
theValue = this.ExaminedPeople;
}
else if ("ExaminedTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.ExaminedTime = isChange ? MyConvert.ConvertToDateTime(value) : ExaminedTime;
theValue = this.ExaminedTime;
}
else if ("ExaminedNextTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.ExaminedNextTime = isChange ? MyConvert.ConvertToDateTime(value) : ExaminedNextTime;
theValue = this.ExaminedNextTime;
}
else if ("ExaminedMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.ExaminedMoney = isChange ? MyConvert.ConvertToDecimal(value) : ExaminedMoney;
theValue = this.ExaminedMoney;
}
else if ("ExaminedRecore".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.ExaminedRecore = isChange ? MyConvert.ConvertToString(value) : ExaminedRecore;
theValue = this.ExaminedRecore;
}
else if ("ExaminedStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.ExaminedStatus = isChange ? MyConvert.ConvertToInt(value) : ExaminedStatus;
theValue = this.ExaminedStatus;
}
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
{
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
theValue = this.LastUpdateTime;
}
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
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
}
}