using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { [Serializable] /// /// ¹ã¸æÎ»Öà /// public partial class Info_AdLoction : IAggregateRoot { /// /// ¹ã¸æÎ»Öà /// 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; /// /// Ö÷¼ü--±êʶID /// public int? Keyid { set{ _keyid=value;} get{return _keyid;} } /// /// ±êÌâ /// public string AP_Title { set{ _ap_title=value;} get{return _ap_title;} } /// /// ÏñËØ¿í /// public int? AP_WidePixels { set{ _ap_widepixels=value;} get{return _ap_widepixels;} } /// /// ÏñËØ¸ß /// public int? AP_HighPixels { set{ _ap_highpixels=value;} get{return _ap_highpixels;} } /// /// ±¸×¢ /// public string AP_DefaultImg { set{ _ap_defaultimg=value;} get{return _ap_defaultimg;} } /// /// ¸üÐÂʼþ /// public DateTime? LastUpdateTime { set{ _lastupdatetime=value;} get{return _lastupdatetime;} } /// /// ²Ù×÷ÈË /// public string Operator { set{ _operator=value;} get{return _operator;} } /// /// ËùÔÚ°æ¿é /// public int? Remark { set{ _remark=value;} get{return _remark;} } /// /// ¼Û¸ñÒ»¸öÔ /// public decimal? Price_Month { get; set; } /// /// ¼Û¸ñÒ»¼¾¶È /// public decimal? Price_Season { get; set; } /// /// ¼Û¸ñ°ëÄê /// public decimal? Price_Half { get; set; } /// /// ¼Û¸ñÒ»Äê /// public decimal? Price_Year { get; set; } /// /// ÅÅÐò /// public int? OrderNum { get; set; } /// /// ËùÔÚ°æ¿éÃû³Æ /// public string RemarkName { 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.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 } }