/** 版本信息模板在安装目录下,可自行修改。
|
* 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
|
{
|
/// <summary>
|
/// 跟单记录表
|
/// </summary>
|
[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;
|
/// <summary>
|
/// 编号
|
/// </summary>
|
public int KeyId
|
{
|
set{ _keyid=value;}
|
get{return _keyid;}
|
}
|
/// <summary>
|
/// 跟单人
|
/// </summary>
|
public string FollowPerson
|
{
|
set{ _followperson=value;}
|
get{return _followperson;}
|
}
|
/// <summary>
|
/// 跟单方式编号
|
/// </summary>
|
public int FollowTypeId
|
{
|
set{ _followtypeid=value;}
|
get{return _followtypeid;}
|
}
|
/// <summary>
|
/// 成交意向编号
|
/// </summary>
|
public int IntentTypeId
|
{
|
set{ _intenttypeid=value;}
|
get{return _intenttypeid;}
|
}
|
/// <summary>
|
/// 客户换价
|
/// </summary>
|
public decimal? CustomerPrice
|
{
|
set{ _customerprice=value;}
|
get{return _customerprice;}
|
}
|
/// <summary>
|
/// 跟单记录
|
/// </summary>
|
public string FollowRecord
|
{
|
set{ _followrecord=value;}
|
get{return _followrecord;}
|
}
|
/// <summary>
|
/// 跟单时间
|
/// </summary>
|
public DateTime FollowTime
|
{
|
set{ _followtime=value;}
|
get{return _followtime;}
|
}
|
/// <summary>
|
/// 询价记录ID
|
/// </summary>
|
public int RecordId { get; set; }
|
|
|
/// <summary>
|
/// 成交状态
|
/// </summary>
|
public int? ResultStatus
|
{
|
set { _resultstatus = value; }
|
get { return _resultstatus; }
|
}
|
|
#endregion Model
|
#region 扩展属性/方法
|
/// <summary>
|
/// 跟单方式
|
/// </summary>
|
public string FollowTypeName { get; set; }
|
|
/// <summary>
|
/// 成交意向
|
/// </summary>
|
public string IntentTypeName { get; set; }
|
|
/// <summary>
|
/// 成交状态名称
|
/// </summary>
|
public string ResultStatusStr { get; set; }
|
|
#region Visiter
|
/// <summary>
|
/// 属性访问器
|
/// </summary>
|
/// <param name="name">属性名</param>
|
/// <param name="index">索引</param>
|
/// <param name="isChange">是否将指定属性设置为传入值</param>
|
/// <param name="value">需要赋予的值</param>
|
/// <returns>与名称对应的属性值</returns>
|
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
|
}
|
}
|