using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// ×ÊѶ·ÖÀà
///
[Serializable]
public partial class Info_Sort:IAggregateRoot
{
public Info_Sort()
{}
#region Model
private int? _keyid;
private int? _catetypeid;
private int? _parentid;
private string _title;
private string _icon;
private int? _leavel;
private string _status;
private bool _ishomeshow;
private bool _isotherpage;
private string _herf;
private string _remarks;
private int? _ordernum;
private DateTime? _lastupdatetime;
private string _operator;
private Guid _adminid;
///
/// Ö÷¼üID
///
public int? Keyid
{
set{ _keyid=value;}
get{return _keyid;}
}
///
/// ·ÖÀàÀàÐͱàºÅ
///
public int? CateTypeId
{
set{ _catetypeid=value;}
get{return _catetypeid;}
}
///
/// ¸¸¼¶ID
///
public int? ParentId
{
set{ _parentid=value;}
get{return _parentid;}
}
///
/// ±êÌâ
///
public string Title
{
set{ _title=value;}
get{return _title;}
}
///
/// ͼ±ê
///
public string Icon
{
set{ _icon=value;}
get{return _icon;}
}
///
/// µÈ¼¶
///
public int? Leavel
{
set{ _leavel=value;}
get{return _leavel;}
}
///
/// ״̬
///
public string Status
{
set{ _status=value;}
get{return _status;}
}
///
/// ÊÇ·ñÊ×Ò³ÏÔʾ
///
public bool IsHomeShow
{
set{ _ishomeshow=value;}
get{return _ishomeshow;}
}
///
/// ÊÇ·ñÍⲿÁ´½Ó
///
public bool IsOtherPage
{
set{ _isotherpage=value;}
get{return _isotherpage;}
}
///
/// Á´½ÓµØÖ·
///
public string Herf
{
set{ _herf=value;}
get{return _herf;}
}
///
/// ±¸×¢
///
public string Remarks
{
set{ _remarks=value;}
get{return _remarks;}
}
///
/// ÅÅÐò
///
public int? OrderNum
{
set{ _ordernum=value;}
get{return _ordernum;}
}
///
/// ʱ¼ä
///
public DateTime? LastUpdateTime
{
set{ _lastupdatetime=value;}
get{return _lastupdatetime;}
}
///
/// ²Ù×÷ÈË
///
public string Operator
{
set{ _operator=value;}
get{return _operator;}
}
///
/// ËùÊô¹ÜÀíÔ±
///
public Guid AdminId
{
set{ _adminid=value;}
get{return _adminid;}
}
#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 ("CateTypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.CateTypeId = isChange ? MyConvert.ConvertToInt32(value) : CateTypeId;
theValue = this.CateTypeId;
}
else if ("ParentId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.ParentId = isChange ? MyConvert.ConvertToInt32(value) : ParentId;
theValue = this.ParentId;
}
else if ("Title".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.Title = isChange ? MyConvert.ConvertToString(value) : Title;
theValue = this.Title;
}
else if ("Icon".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.Icon = isChange ? MyConvert.ConvertToString(value) : Icon;
theValue = this.Icon;
}
else if ("Leavel".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.Leavel = isChange ? MyConvert.ConvertToInt32(value) : Leavel;
theValue = this.Leavel;
}
else if ("Status".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.Status = isChange ? MyConvert.ConvertToString(value) : Status;
theValue = this.Status;
}
else if ("IsHomeShow".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.IsHomeShow = isChange ? MyConvert.ConvertToBoolean(value) : IsHomeShow;
theValue = this.IsHomeShow;
}
else if ("IsOtherPage".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
{
this.IsOtherPage = isChange ? MyConvert.ConvertToBoolean(value) : IsOtherPage;
theValue = this.IsOtherPage;
}
else if ("Herf".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Herf = isChange ? MyConvert.ConvertToString(value) : Herf;
theValue = this.Herf;
}
else if ("Remarks".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
{
this.Remarks = isChange ? MyConvert.ConvertToString(value) : Remarks;
theValue = this.Remarks;
}
else if ("OrderNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
{
this.OrderNum = isChange ? MyConvert.ConvertToInt32(value) : OrderNum;
theValue = this.OrderNum;
}
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
{
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
theValue = this.LastUpdateTime;
}
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
{
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
theValue = this.Operator;
}
else if ("AdminId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
{
this.AdminId = isChange ? MyConvert.ConvertToGuid(value) : AdminId;
theValue = this.AdminId;
}
return theValue;
}
#endregion
}
}