using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// ÁªÃË»ù´¡ÐÅÏ¢
///
[Serializable]
public partial class Info_AllianceBasic : IAggregateRoot
{
public Info_AllianceBasic()
{}
#region Model
private int? _keyid;
private string _b_allianceadvantage;
private string _b_conditionscooperation;
private string _b_alliancefoot;
private string _b_contactpeople;
private string _b_contactphone;
private string _b_contactemail;
private string _b_contactqq;
private DateTime? _lastupdatetime;
private string _operator;
///
/// 񅧏
///
public int? Keyid
{
set{ _keyid=value;}
get{return _keyid;}
}
///
/// ÁªÃËÓÅÊÆ
///
public string B_AllianceAdvantage
{
set{ _b_allianceadvantage=value;}
get{return _b_allianceadvantage;}
}
///
/// ºÏ×÷Ìõ¼þ
///
public string B_ConditionsCooperation
{
set{ _b_conditionscooperation=value;}
get{return _b_conditionscooperation;}
}
///
/// µ×²¿ÐÅÏ¢
///
public string B_AllianceFoot
{
set{ _b_alliancefoot=value;}
get{return _b_alliancefoot;}
}
///
/// ÁªÏµÈË
///
public string B_ContactPeople
{
set{ _b_contactpeople=value;}
get{return _b_contactpeople;}
}
///
/// ÁªÏµµç»°
///
public string B_ContactPhone
{
set{ _b_contactphone=value;}
get{return _b_contactphone;}
}
///
/// µç×ÓÓÊÏä
///
public string B_ContactEmail
{
set{ _b_contactemail=value;}
get{return _b_contactemail;}
}
///
/// ÁªÏµQQ
///
public string B_ContactQQ
{
set{ _b_contactqq=value;}
get{return _b_contactqq;}
}
///
/// ×îºóÐÞ¸Äʱ¼ä
///
public DateTime? LastUpdateTime
{
set{ _lastupdatetime=value;}
get{return _lastupdatetime;}
}
///
/// ²Ù×÷ÈË
///
public string Operator
{
set{ _operator=value;}
get{return _operator;}
}
///
/// ¼ÓÃËÁ÷³Ì
///
public string Process
{
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 ("B_AllianceAdvantage".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.B_AllianceAdvantage = isChange ? MyConvert.ConvertToString(value) : B_AllianceAdvantage;
theValue = this.B_AllianceAdvantage;
}
else if ("B_ConditionsCooperation".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.B_ConditionsCooperation = isChange ? MyConvert.ConvertToString(value) : B_ConditionsCooperation;
theValue = this.B_ConditionsCooperation;
}
else if ("B_AllianceFoot".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.B_AllianceFoot = isChange ? MyConvert.ConvertToString(value) : B_AllianceFoot;
theValue = this.B_AllianceFoot;
}
else if ("B_ContactPeople".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.B_ContactPeople = isChange ? MyConvert.ConvertToString(value) : B_ContactPeople;
theValue = this.B_ContactPeople;
}
else if ("B_ContactPhone".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.B_ContactPhone = isChange ? MyConvert.ConvertToString(value) : B_ContactPhone;
theValue = this.B_ContactPhone;
}
else if ("B_ContactEmail".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.B_ContactEmail = isChange ? MyConvert.ConvertToString(value) : B_ContactEmail;
theValue = this.B_ContactEmail;
}
else if ("B_ContactQQ".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.B_ContactQQ = isChange ? MyConvert.ConvertToString(value) : B_ContactQQ;
theValue = this.B_ContactQQ;
}
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 ("Process".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
{
this.Process = isChange ? MyConvert.ConvertToString(value) : Process;
theValue = this.Process;
}
return theValue;
}
#endregion
}
}