using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
|
namespace CY.Model
|
{
|
[Serializable]
|
/// <summary>
|
/// ¹ã¸æÎ»ÖÃ
|
/// </summary>
|
public partial class Info_AdLoction : IAggregateRoot
|
{
|
/// <summary>
|
/// ¹ã¸æÎ»ÖÃ
|
/// </summary>
|
public Info_AdLoction()
|
{}
|
|
#region Model
|
private int? _keyid;
|
private string _ap_title;
|
private int? _ap_widepixels;
|
private int? _ap_highpixels;
|
private string _ap_defaultimg;
|
private DateTime? _lastupdatetime;
|
private string _operator;
|
private int? _remark;
|
/// <summary>
|
/// Ö÷¼ü--±êʶID
|
/// </summary>
|
public int? Keyid
|
{
|
set{ _keyid=value;}
|
get{return _keyid;}
|
}
|
/// <summary>
|
/// ±êÌâ
|
/// </summary>
|
public string AP_Title
|
{
|
set{ _ap_title=value;}
|
get{return _ap_title;}
|
}
|
/// <summary>
|
/// ÏñËØ¿í
|
/// </summary>
|
public int? AP_WidePixels
|
{
|
set{ _ap_widepixels=value;}
|
get{return _ap_widepixels;}
|
}
|
/// <summary>
|
/// ÏñËØ¸ß
|
/// </summary>
|
public int? AP_HighPixels
|
{
|
set{ _ap_highpixels=value;}
|
get{return _ap_highpixels;}
|
}
|
/// <summary>
|
/// ±¸×¢
|
/// </summary>
|
public string AP_DefaultImg
|
{
|
set{ _ap_defaultimg=value;}
|
get{return _ap_defaultimg;}
|
}
|
/// <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 int? Remark
|
{
|
set{ _remark=value;}
|
get{return _remark;}
|
}
|
/// <summary>
|
/// ¼Û¸ñÒ»¸öÔÂ
|
/// </summary>
|
public decimal? Price_Month
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// ¼Û¸ñÒ»¼¾¶È
|
/// </summary>
|
public decimal? Price_Season
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// ¼Û¸ñ°ëÄê
|
/// </summary>
|
public decimal? Price_Half
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// ¼Û¸ñÒ»Äê
|
/// </summary>
|
public decimal? Price_Year
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// ÅÅÐò
|
/// </summary>
|
public int? OrderNum
|
{
|
get;
|
set;
|
}
|
|
/// <summary>
|
/// ËùÔÚ°æ¿éÃû³Æ
|
/// </summary>
|
public string RemarkName
|
{
|
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 ("AP_Title".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.AP_Title = isChange ? MyConvert.ConvertToString(value) : AP_Title;
|
theValue = this.AP_Title;
|
}
|
else if ("AP_WidePixels".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.AP_WidePixels = isChange ? MyConvert.ConvertToInt32(value) : AP_WidePixels;
|
theValue = this.AP_WidePixels;
|
}
|
else if ("AP_HighPixels".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.AP_HighPixels = isChange ? MyConvert.ConvertToInt32(value) : AP_HighPixels;
|
theValue = this.AP_HighPixels;
|
}
|
else if ("AP_DefaultImg".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.AP_DefaultImg = isChange ? MyConvert.ConvertToString(value) : AP_DefaultImg;
|
theValue = this.AP_DefaultImg;
|
}
|
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
|
theValue = this.LastUpdateTime;
|
}
|
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
|
theValue = this.Operator;
|
}
|
else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.Remark = isChange ? MyConvert.ConvertToInt32(value) : Remark;
|
theValue = this.Remark;
|
}
|
else if ("RemarkName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.RemarkName = isChange ? MyConvert.ConvertToString(value) : RemarkName;
|
theValue = this.RemarkName;
|
}
|
else if ("Price_Month".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.Price_Month = isChange ? MyConvert.ConvertToDecimal(value) : Price_Month;
|
theValue = this.Price_Month;
|
}
|
else if ("Price_Season".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.Price_Season = isChange ? MyConvert.ConvertToDecimal(value) : Price_Season;
|
theValue = this.Price_Season;
|
}
|
else if ("Price_Half".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.Price_Half = isChange ? MyConvert.ConvertToDecimal(value) : Price_Half;
|
theValue = this.Price_Half;
|
}
|
else if ("Price_Year".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.Price_Year = isChange ? MyConvert.ConvertToDecimal(value) : Price_Year;
|
theValue = this.Price_Year;
|
}
|
else if ("OrderNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.OrderNum = isChange ? MyConvert.ConvertToInt32(value) : OrderNum;
|
theValue = this.OrderNum;
|
}
|
return theValue;
|
}
|
#endregion
|
}
|
}
|