/**
|
* EC_AskPriceNote.cs
|
*
|
* 功 能: N/A
|
* 类 名: EC_AskPriceNote
|
*
|
* Ver 变更日期 负责人 变更内容
|
* ───────────────────────────────────
|
* V0.01 2013-4-2 14:27:19 N/A 初版
|
*
|
*
|
*
|
*
|
*
|
*
|
*/
|
using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
namespace CY.Model
|
{
|
/// <summary>
|
/// 询价时的选择项纪录主表
|
/// </summary>
|
[Serializable]
|
public partial class EC_AskPriceNote : IAggregateRoot
|
{
|
public EC_AskPriceNote()
|
{ }
|
#region Model
|
private int? _keyid;
|
private int? _asppriceprojectid;
|
private DateTime? _createtime;
|
/// <summary>
|
/// 记录编号
|
/// </summary>
|
public int? Keyid
|
{
|
set { _keyid = value; }
|
get { return _keyid; }
|
}
|
/// <summary>
|
/// 询价记录编号
|
/// </summary>
|
public int? AspPriceProjectId
|
{
|
set { _asppriceprojectid = value; }
|
get { return _asppriceprojectid; }
|
}
|
/// <summary>
|
/// 产生时间
|
/// </summary>
|
public DateTime? CreateTime
|
{
|
set { _createtime = value; }
|
get { return _createtime; }
|
}
|
#endregion Model
|
|
#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) : Keyid;
|
theValue = this.Keyid;
|
}
|
else if ("AspPriceProjectId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.AspPriceProjectId = isChange ? MyConvert.ConvertToInt32(value) : AspPriceProjectId;
|
theValue = this.AspPriceProjectId;
|
}
|
else if ("CreateTime".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime;
|
theValue = this.CreateTime;
|
}
|
|
return theValue;
|
}
|
#endregion
|
}
|
}
|