/**
* OA_CommoditySpeciAssociate.cs
*
* 功 能: N/A
* 类 名: OA_CommoditySpeciAssociate
*
* Ver 变更日期 负责人 变更内容
* ───────────────────────────────────
* V0.01 2013-4-2 14:27:42 N/A 初版
*
*
*
*
*
*
*/
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// 办公系统货品类别规格对应表
///
[Serializable]
public partial class OA_CommoditySpeciAssociate : IAggregateRoot
{
public OA_CommoditySpeciAssociate()
{ }
#region Model
private int? _commodityid;
private int? _specificationid;
///
/// 货品类别编号
///
public int? CommodityId
{
set { _commodityid = value; }
get { return _commodityid; }
}
///
/// 规格编号
///
public int? SpecificationId
{
set { _specificationid = value; }
get { return _specificationid; }
}
///
/// 规格编号
///
public string OA_SpecificationName
{
set;
get;
}
#endregion Model
#region Visiter
///
/// 属性访问器
///
/// 属性名
/// 索引
/// 是否将指定属性设置为传入值
/// 需要赋予的值
/// 与名称对应的属性值
public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
{
object theValue = null;
if ("CommodityId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 1)
{
this.CommodityId = isChange ? MyConvert.ConvertToInt32(value) : CommodityId;
theValue = this.CommodityId;
}
else if ("SpecificationId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.SpecificationId = isChange ? MyConvert.ConvertToInt32(value) : SpecificationId;
theValue = this.SpecificationId;
}
else if ("OA_SpecificationName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.OA_SpecificationName = isChange ? MyConvert.ConvertToString(value) : OA_SpecificationName;
theValue = this.OA_SpecificationName;
}
return theValue;
}
#endregion
}
}