using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
namespace CY.Model
|
{
|
/// <summary>
|
///车辆违章记录
|
/// </summary>
|
[Serializable]
|
public partial class OA_CarViolation : IAggregateRoot
|
{
|
public OA_CarViolation()
|
{
|
}
|
|
#region Model
|
private int? _keyid;
|
private int? _carid;
|
private string _violationpeople;
|
private DateTime? _violationtime;
|
private string _violationreason;
|
private decimal? _violationtrafficpolicemoney;
|
private int? _violationtrafficpolicescore;
|
private decimal? _violationfinedthecompany;
|
private DateTime? _violationcompanyfinedtime;
|
private string _violationremark;
|
private DateTime? _lastupdatetime;
|
private string _operator;
|
|
/// <summary>
|
/// Keyid
|
/// </summary>
|
public int? Keyid
|
{
|
get
|
{
|
return _keyid;
|
}
|
set
|
{
|
_keyid = value;
|
}
|
}
|
/// <summary>
|
/// 车辆ID
|
/// </summary>
|
public int? CarId
|
{
|
get
|
{
|
return _carid;
|
}
|
set
|
{
|
_carid = value;
|
}
|
}
|
/// <summary>
|
/// 违章人
|
/// </summary>
|
public string ViolationPeople
|
{
|
get
|
{
|
return _violationpeople;
|
}
|
set
|
{
|
_violationpeople = value;
|
}
|
}
|
/// <summary>
|
/// 违章(违纪)时间
|
/// </summary>
|
public DateTime? ViolationTime
|
{
|
get
|
{
|
return _violationtime;
|
}
|
set
|
{
|
_violationtime = value;
|
}
|
}
|
/// <summary>
|
/// 违章(违纪)原因
|
/// </summary>
|
public string ViolationReason
|
{
|
get
|
{
|
return _violationreason;
|
}
|
set
|
{
|
_violationreason = value;
|
}
|
}
|
/// <summary>
|
/// 交警罚款
|
/// </summary>
|
public decimal? ViolationTrafficPoliceMoney
|
{
|
get
|
{
|
return _violationtrafficpolicemoney;
|
}
|
set
|
{
|
_violationtrafficpolicemoney = value;
|
}
|
}
|
/// <summary>
|
/// 交警扣分
|
/// </summary>
|
public int? ViolationTrafficPoliceScore
|
{
|
get
|
{
|
return _violationtrafficpolicescore;
|
}
|
set
|
{
|
_violationtrafficpolicescore = value;
|
}
|
}
|
/// <summary>
|
/// 公司罚款
|
/// </summary>
|
public decimal? ViolationFinedTheCompany
|
{
|
get
|
{
|
return _violationfinedthecompany;
|
}
|
set
|
{
|
_violationfinedthecompany = value;
|
}
|
}
|
/// <summary>
|
/// 公司罚款时间
|
/// </summary>
|
public DateTime? ViolationCompanyFinedTime
|
{
|
get
|
{
|
return _violationcompanyfinedtime;
|
}
|
set
|
{
|
_violationcompanyfinedtime = value;
|
}
|
}
|
/// <summary>
|
/// 备注
|
/// </summary>
|
public string ViolationRemark
|
{
|
get
|
{
|
return _violationremark;
|
}
|
set
|
{
|
_violationremark = value;
|
}
|
}
|
/// <summary>
|
/// 操作时间
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
get
|
{
|
return _lastupdatetime;
|
}
|
set
|
{
|
_lastupdatetime = value;
|
}
|
}
|
/// <summary>
|
/// 更新人
|
/// </summary>
|
public string Operator
|
{
|
get
|
{
|
return _operator;
|
}
|
set
|
{
|
_operator = value;
|
}
|
}
|
|
/// <summary>
|
/// 车牌号
|
/// </summary>
|
public string CarNumber
|
{
|
get;
|
set;
|
}
|
#endregion Model
|
|
#region Visiter
|
/// <summary>
|
/// 属性访问器
|
/// </summary>
|
/// <param name="name">属性名</param>
|
/// <param name="index">索引</param>
|
/// <param name="isChange">是否将指定属性设置为传入值</param>
|
/// <param name="value">需要赋予的值</param>
|
/// <returns>与名称对应的属性值</returns>
|
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 ("ViolationPeople".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
|
this.ViolationPeople = isChange ? MyConvert.ConvertToString(value) : ViolationPeople;
|
theValue = this.ViolationPeople;
|
}
|
else if ("ViolationTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
|
this.ViolationTime = isChange ? MyConvert.ConvertToDateTime(value) : ViolationTime;
|
theValue = this.ViolationTime;
|
}
|
else if ("ViolationReason".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
|
this.ViolationReason = isChange ? MyConvert.ConvertToString(value) : ViolationReason;
|
theValue = this.ViolationReason;
|
}
|
else if ("ViolationTrafficPoliceMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
|
this.ViolationTrafficPoliceMoney = isChange ? MyConvert.ConvertToDecimal(value) : ViolationTrafficPoliceMoney;
|
theValue = this.ViolationTrafficPoliceMoney;
|
}
|
else if ("ViolationTrafficPoliceScore".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
|
this.ViolationTrafficPoliceScore = isChange ? MyConvert.ConvertToInt(value) : ViolationTrafficPoliceScore;
|
theValue = this.ViolationTrafficPoliceScore;
|
}
|
else if ("ViolationFinedTheCompany".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
|
this.ViolationFinedTheCompany = isChange ? MyConvert.ConvertToDecimal(value) : ViolationFinedTheCompany;
|
theValue = this.ViolationFinedTheCompany;
|
}
|
else if ("ViolationCompanyFinedTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
|
this.ViolationCompanyFinedTime = isChange ? MyConvert.ConvertToDateTime(value) : ViolationCompanyFinedTime;
|
theValue = this.ViolationCompanyFinedTime;
|
}
|
else if ("ViolationRemark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
|
this.ViolationRemark = isChange ? MyConvert.ConvertToString(value) : ViolationRemark;
|
theValue = this.ViolationRemark;
|
}
|
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
|
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
|
theValue = this.LastUpdateTime;
|
}
|
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
|
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
|
}
|
}
|