/** 版本信息模板在安装目录下,可自行修改。
* Inquiry_StrangeCustomerInfo.cs
*
* 功 能: N/A
* 类 名: Inquiry_StrangeCustomerInfo
*
* Ver 变更日期 负责人 变更内容
* ───────────────────────────────────
* V0.01 2013-6-24 15:27:28 N/A 初版
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*┌──────────────────────────────────┐
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
*│ 版权所有:四川川印印刷包装股份有限公司 │
*└──────────────────────────────────┘
*/
using System;
using CY.Infrastructure.Common;
using CY.Infrastructure.Domain;
namespace CY.Model
{
///
/// 陌生客户资料
///
[Serializable]
public partial class Inquiry_StrangeCustomerInfo : IAggregateRoot
{
public Inquiry_StrangeCustomerInfo()
{}
#region Model
private Guid _keyid;
private string _customername;
private string _contractperaon;
private string _contractcall;
private string _contractphone;
private string _qq;
private string _address;
private string _remark;
private int _recordid;
private DateTime? _lastupdatetime;
///
/// 编号
///
public Guid KeyId
{
set{ _keyid=value;}
get{return _keyid;}
}
///
/// 客户名称
///
public string CustomerName
{
set{ _customername=value;}
get{return _customername;}
}
///
/// 联系人
///
public string ContractPeraon
{
set{ _contractperaon=value;}
get{return _contractperaon;}
}
///
/// 联系电话
///
public string ContractCall
{
set{ _contractcall=value;}
get{return _contractcall;}
}
///
/// 联系手机
///
public string ContractPhone
{
set{ _contractphone=value;}
get{return _contractphone;}
}
///
/// QQ
///
public string QQ
{
set{ _qq=value;}
get{return _qq;}
}
///
/// 地址
///
public string Address
{
set{ _address=value;}
get{return _address;}
}
///
/// 备注
///
public string Remark
{
set{ _remark=value;}
get{return _remark;}
}
///
/// 询价记录编号
///
public int RecordId
{
set{ _recordid=value;}
get{return _recordid;}
}
///
/// 最后修改时间
///
public DateTime? LastUpdateTime
{
set{ _lastupdatetime=value;}
get{return _lastupdatetime;}
}
#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.ConvertToGuid(value) : KeyId;
theValue = this.KeyId;
}
else if ("CustomerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.CustomerName = isChange ? MyConvert.ConvertToString(value) : CustomerName;
theValue = this.CustomerName;
}
else if ("ContractPeraon".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.ContractPeraon = isChange ? MyConvert.ConvertToString(value) : ContractPeraon;
theValue = this.ContractPeraon;
}
else if ("ContractCall".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.ContractCall = isChange ? MyConvert.ConvertToString(value) : ContractCall;
theValue = this.ContractCall;
}
else if ("ContractPhone".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.ContractPhone = isChange ? MyConvert.ConvertToString(value) : ContractPhone;
theValue = this.ContractPhone;
}
else if ("QQ".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.QQ = isChange ? MyConvert.ConvertToString(value) : QQ;
theValue = this.QQ;
}
else if ("Address".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.Address = isChange ? MyConvert.ConvertToString(value) : Address;
theValue = this.Address;
}
else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark;
theValue = this.Remark;
}
else if ("RecordId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.RecordId = isChange ? MyConvert.ConvertToInt32(value).Value : RecordId;
theValue = this.RecordId;
}
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
theValue = this.LastUpdateTime;
}
return theValue;
}
#endregion
}
}