using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
|
namespace CY.Model
|
{
|
/// <summary>
|
/// ¹ã¸æÐÅÏ¢
|
/// </summary>
|
[Serializable]
|
public partial class Info_Ad : IAggregateRoot
|
{
|
public Info_Ad()
|
{
|
}
|
|
#region Model
|
private int? _keyid;
|
private int? _adlocationid;
|
private string _a_title;
|
private string _a_pic;
|
private string _a_url;
|
private string _a_remarks;
|
private bool _a_istarget;
|
private DateTime? _lastupdatetime;
|
private string _operator;
|
private string _remark;
|
/// <summary>
|
/// Ö÷¼ü--±êʶID
|
/// </summary>
|
public int? Keyid
|
{
|
set
|
{
|
_keyid = value;
|
}
|
get
|
{
|
return _keyid;
|
}
|
}
|
/// <summary>
|
/// ¹ã¸æÎ»ÖÃ
|
/// </summary>
|
public int? AdLocationId
|
{
|
set
|
{
|
_adlocationid = value;
|
}
|
get
|
{
|
return _adlocationid;
|
}
|
}
|
/// <summary>
|
/// ¹ã¸æÓï
|
/// </summary>
|
public string A_Title
|
{
|
set
|
{
|
_a_title = value;
|
}
|
get
|
{
|
return _a_title;
|
}
|
}
|
/// <summary>
|
/// ¹ã¸æÍ¼Æ¬
|
/// </summary>
|
public string A_Pic
|
{
|
set
|
{
|
_a_pic = value;
|
}
|
get
|
{
|
return _a_pic;
|
}
|
}
|
/// <summary>
|
/// Á´½ÓµØÖ·
|
/// </summary>
|
public string A_Url
|
{
|
set
|
{
|
_a_url = value;
|
}
|
get
|
{
|
return _a_url;
|
}
|
}
|
/// <summary>
|
/// ¹ã¸æ±¸×¢
|
/// </summary>
|
public string A_Remarks
|
{
|
set
|
{
|
_a_remarks = value;
|
}
|
get
|
{
|
return _a_remarks;
|
}
|
}
|
/// <summary>
|
/// ÊÇ·ñд°¿Ú´ò¿ª
|
/// </summary>
|
public bool A_IsTarget
|
{
|
set
|
{
|
_a_istarget = value;
|
}
|
get
|
{
|
return _a_istarget;
|
}
|
}
|
/// <summary>
|
/// ¸üÐÂʱ¼ä
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
set
|
{
|
_lastupdatetime = value;
|
}
|
get
|
{
|
return _lastupdatetime;
|
}
|
}
|
/// <summary>
|
/// ²Ù×÷ÈË
|
/// </summary>
|
public string Operator
|
{
|
set
|
{
|
_operator = value;
|
}
|
get
|
{
|
return _operator;
|
}
|
}
|
/// <summary>
|
/// ±¸×¢
|
/// </summary>
|
public string Remark
|
{
|
set
|
{
|
_remark = value;
|
}
|
get
|
{
|
return _remark;
|
}
|
}
|
/// <summary>
|
/// »áÔ±±àºÅ
|
/// </summary>
|
public Guid A_MemberId
|
{
|
set;
|
get;
|
}
|
/// <summary>
|
/// ¿ªÊ¼Ê±¼ä
|
/// </summary>
|
public DateTime? A_StartTime
|
{
|
set;
|
get;
|
}
|
/// <summary>
|
/// ½áÊøÊ±¼ä
|
/// </summary>
|
public DateTime? A_EndTime
|
{
|
set;
|
get;
|
}
|
|
|
/// <summary>
|
/// °æ¿éÃû³Æ
|
/// </summary>
|
public string LocationRemark
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// λÖÃÃû³Æ
|
/// </summary>
|
public string LocationName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// ¹æ¸ñ¿í
|
/// </summary>
|
public string AP_WidePixels
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// ¹æ¸ñ¸ß
|
/// </summary>
|
public string AP_HighPixels
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// »áÔ±Ãû³Æ
|
/// </summary>
|
public string UserName
|
{
|
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.ConvertToInt32(value) : Keyid;
|
theValue = this.Keyid;
|
}
|
else if ("AdLocationId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.AdLocationId = isChange ? MyConvert.ConvertToInt32(value) : AdLocationId;
|
theValue = this.AdLocationId;
|
}
|
else if ("A_Title".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.A_Title = isChange ? MyConvert.ConvertToString(value) : A_Title;
|
theValue = this.A_Title;
|
}
|
else if ("A_Pic".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.A_Pic = isChange ? MyConvert.ConvertToString(value) : A_Pic;
|
theValue = this.A_Pic;
|
}
|
else if ("A_Url".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.A_Url = isChange ? MyConvert.ConvertToString(value) : A_Url;
|
theValue = this.A_Url;
|
}
|
else if ("A_Remarks".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.A_Remarks = isChange ? MyConvert.ConvertToString(value) : A_Remarks;
|
theValue = this.A_Remarks;
|
}
|
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
|
theValue = this.Operator;
|
}
|
else if ("A_IsTarget".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.A_IsTarget = isChange ? MyConvert.ConvertToBoolean(value) : A_IsTarget;
|
theValue = this.A_IsTarget;
|
}
|
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 ("A_MemberId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.A_MemberId = isChange ? MyConvert.ConvertToGuid(value) : A_MemberId;
|
theValue = this.A_MemberId;
|
}
|
else if ("A_StartTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.A_StartTime = isChange ? MyConvert.ConvertToDateTime(value) : A_StartTime;
|
theValue = this.A_StartTime;
|
}
|
else if ("A_EndTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.A_EndTime = isChange ? MyConvert.ConvertToDateTime(value) : A_EndTime;
|
theValue = this.A_EndTime;
|
}
|
else if ("LocationRemark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.LocationRemark = isChange ? MyConvert.ConvertToString(value) : LocationRemark;
|
theValue = this.LocationRemark;
|
}
|
else if ("LocationName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
|
{
|
this.LocationName = isChange ? MyConvert.ConvertToString(value) : LocationName;
|
theValue = this.LocationName;
|
}
|
else if ("AP_WidePixels".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
|
{
|
this.AP_WidePixels = isChange ? MyConvert.ConvertToString(value) : AP_WidePixels;
|
theValue = this.AP_WidePixels;
|
}
|
else if ("AP_HighPixels".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
|
{
|
this.AP_HighPixels = isChange ? MyConvert.ConvertToString(value) : AP_HighPixels;
|
theValue = this.AP_HighPixels;
|
}
|
else if ("UserName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
|
{
|
this.UserName = isChange ? MyConvert.ConvertToString(value) : UserName;
|
theValue = this.UserName;
|
}
|
|
return theValue;
|
}
|
#endregion
|
}
|
}
|