/** 版本信息模板在安装目录下,可自行修改。
* Inquiry_FollowRecordInfo.cs
*
* 功 能: N/A
* 类 名: Inquiry_FollowRecordInfo
*
* Ver 变更日期 负责人 变更内容
* ───────────────────────────────────
* V0.01 2013-5-28 13:26:59 N/A 初版
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*┌──────────────────────────────────┐
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
*│ 版权所有:四川川印印刷包装股份有限公司 │
*└──────────────────────────────────┘
*/
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// 跟单记录表
///
[Serializable]
public partial class Inquiry_FollowRecordInfo : IAggregateRoot
{
public Inquiry_FollowRecordInfo()
{}
#region Model
private int _keyid;
private string _followperson;
private int _followtypeid;
private int _intenttypeid;
private decimal? _customerprice;
private string _followrecord;
private DateTime _followtime;
private int? _resultstatus;
///
/// 编号
///
public int KeyId
{
set{ _keyid=value;}
get{return _keyid;}
}
///
/// 跟单人
///
public string FollowPerson
{
set{ _followperson=value;}
get{return _followperson;}
}
///
/// 跟单方式编号
///
public int FollowTypeId
{
set{ _followtypeid=value;}
get{return _followtypeid;}
}
///
/// 成交意向编号
///
public int IntentTypeId
{
set{ _intenttypeid=value;}
get{return _intenttypeid;}
}
///
/// 客户换价
///
public decimal? CustomerPrice
{
set{ _customerprice=value;}
get{return _customerprice;}
}
///
/// 跟单记录
///
public string FollowRecord
{
set{ _followrecord=value;}
get{return _followrecord;}
}
///
/// 跟单时间
///
public DateTime FollowTime
{
set{ _followtime=value;}
get{return _followtime;}
}
///
/// 询价记录ID
///
public int RecordId { get; set; }
///
/// 成交状态
///
public int? ResultStatus
{
set { _resultstatus = value; }
get { return _resultstatus; }
}
#endregion Model
#region 扩展属性/方法
///
/// 跟单方式
///
public string FollowTypeName { get; set; }
///
/// 成交意向
///
public string IntentTypeName { get; set; }
///
/// 成交状态名称
///
public string ResultStatusStr { get; set; }
#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).Value : KeyId;
theValue = this.KeyId;
}
else if ("FollowPerson".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.FollowPerson = isChange ? MyConvert.ConvertToString(value) : FollowPerson;
theValue = this.FollowPerson;
}
else if ("FollowTypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.FollowTypeId = isChange ? MyConvert.ConvertToInt32(value).Value : FollowTypeId;
theValue = this.FollowTypeId;
}
else if ("IntentTypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.IntentTypeId = isChange ? MyConvert.ConvertToInt32(value).Value : IntentTypeId;
theValue = this.IntentTypeId;
}
else if ("CustomerPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.CustomerPrice = isChange ? MyConvert.ConvertToDecimal(value) : CustomerPrice;
theValue = this.CustomerPrice;
}
else if ("FollowRecord".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.FollowRecord = isChange ? MyConvert.ConvertToString(value) : FollowRecord;
theValue = this.FollowRecord;
}
else if ("FollowTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.FollowTime = isChange ? MyConvert.ConvertToDateTime(value).Value : FollowTime;
theValue = this.FollowTime;
}
else if ("RecordId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.RecordId = isChange ? MyConvert.ConvertToInt32(value).Value : RecordId;
theValue = this.RecordId;
}
else if ("FollowTypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.FollowTypeName = isChange ? MyConvert.ConvertToString(value) : FollowTypeName;
theValue = this.FollowTypeName;
}
else if ("IntentTypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.IntentTypeName = isChange ? MyConvert.ConvertToString(value) : IntentTypeName;
theValue = this.IntentTypeName;
}
else if ("ResultStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.ResultStatus = isChange ? MyConvert.ConvertToInt32(value) : ResultStatus;
theValue = this.ResultStatus;
}
else if ("ResultStatusStr".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
{
this.ResultStatusStr = isChange ? MyConvert.ConvertToString(value) : ResultStatusStr;
theValue = this.ResultStatusStr;
}
return theValue;
}
#endregion
#endregion
}
}