/**
|
* OA_GoodsInfo.cs
|
*
|
* 功 能: N/A
|
* 类 名: OA_GoodsInfo
|
*
|
* Ver 变更日期 负责人 变更内容
|
* ───────────────────────────────────
|
* V0.01 2013-4-2 14:27:50 N/A 初版
|
*
|
*
|
*
|
*
|
*
|
*
|
*/
|
using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
namespace CY.Model
|
{
|
/// <summary>
|
/// 办公系统货品信息
|
/// </summary>
|
[Serializable]
|
public partial class OA_GoodsInfo : IAggregateRoot
|
{
|
public OA_GoodsInfo()
|
{ }
|
#region Model
|
private int? _keyid;
|
private Guid _firmid;
|
private int? _brandid;
|
private int? _specificationid;
|
private string _goodsname;
|
private string _goodstypeid;
|
private int? _weight;
|
private int? _statusid;
|
private decimal? _price;
|
private int? _goodslength;
|
private int? _goodswidth;
|
private int? _goodsheight;
|
private string _unit;
|
private int? _warninginventory;
|
private DateTime? _lastupdatetime;
|
private string _operator;
|
private string _remark;
|
private string _brandName;
|
private string _SpecificationName;
|
private string _StatusName;
|
private string _CommodityName;
|
|
/// <summary>
|
/// 品牌名称
|
/// </summary>
|
public string BrandName
|
{
|
get { return _brandName; }
|
set { _brandName = value; }
|
}
|
|
/// <summary>
|
/// 规格名称
|
/// </summary>
|
public string SpecificationName
|
{
|
get { return _SpecificationName; }
|
set { _SpecificationName = value; }
|
}
|
|
/// <summary>
|
/// 货品状态
|
/// </summary>
|
public string StatusName
|
{
|
get { return _StatusName; }
|
set { _StatusName = value; }
|
}
|
|
/// <summary>
|
/// 类别名称
|
/// </summary>
|
public string CommodityName
|
{
|
get { return _CommodityName; }
|
set { _CommodityName = value; }
|
}
|
|
|
|
|
/// <summary>
|
/// 货品编号
|
/// </summary>
|
public int? Keyid
|
{
|
set { _keyid = value; }
|
get { return _keyid; }
|
}
|
/// <summary>
|
/// 所属厂商
|
/// </summary>
|
public Guid FirmId
|
{
|
set { _firmid = value; }
|
get { return _firmid; }
|
}
|
/// <summary>
|
/// 品牌编号
|
/// </summary>
|
public int? BrandId
|
{
|
set { _brandid = value; }
|
get { return _brandid; }
|
}
|
/// <summary>
|
/// 规格编号
|
/// </summary>
|
public int? SpecificationId
|
{
|
set { _specificationid = value; }
|
get { return _specificationid; }
|
}
|
/// <summary>
|
/// 货品名称
|
/// </summary>
|
public string GoodsName
|
{
|
set { _goodsname = value; }
|
get { return _goodsname; }
|
}
|
/// <summary>
|
/// 货品类型编号
|
/// </summary>
|
public string GoodsTypeId
|
{
|
set { _goodstypeid = value; }
|
get { return _goodstypeid; }
|
}
|
/// <summary>
|
/// 克重
|
/// </summary>
|
public int? Weight
|
{
|
set { _weight = value; }
|
get { return _weight; }
|
}
|
/// <summary>
|
/// 状态编号
|
/// </summary>
|
public int? StatusId
|
{
|
set { _statusid = value; }
|
get { return _statusid; }
|
}
|
/// <summary>
|
/// 价格
|
/// </summary>
|
public decimal? Price
|
{
|
set { _price = value; }
|
get { return _price; }
|
}
|
/// <summary>
|
/// 长
|
/// </summary>
|
public int? GoodsLength
|
{
|
set { _goodslength = value; }
|
get { return _goodslength; }
|
}
|
/// <summary>
|
/// 宽
|
/// </summary>
|
public int? GoodsWidth
|
{
|
set { _goodswidth = value; }
|
get { return _goodswidth; }
|
}
|
/// <summary>
|
/// 高
|
/// </summary>
|
public int? GoodsHeight
|
{
|
set { _goodsheight = value; }
|
get { return _goodsheight; }
|
}
|
/// <summary>
|
/// 单位
|
/// </summary>
|
public string Unit
|
{
|
set { _unit = value; }
|
get { return _unit; }
|
}
|
/// <summary>
|
/// 警戒库存
|
/// </summary>
|
public int? WarningInventory
|
{
|
set { _warninginventory = value; }
|
get { return _warninginventory; }
|
}
|
/// <summary>
|
/// 最后修改时间
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
set { _lastupdatetime = value; }
|
get { return _lastupdatetime; }
|
}
|
/// <summary>
|
/// 操作人
|
/// </summary>
|
public string Operator
|
{
|
set { _operator = value; }
|
get { return _operator; }
|
}
|
/// <summary>
|
/// 备注
|
/// </summary>
|
public string Remark
|
{
|
set { _remark = value; }
|
get { return _remark; }
|
}
|
private int? _OrderNum;
|
/// <summary>
|
/// 排序字段
|
/// </summary>
|
public int? OrderNum
|
{
|
get { return _OrderNum; }
|
set { _OrderNum = value; }
|
}
|
#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 ("FirmId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.FirmId = isChange ? MyConvert.ConvertToGuid(value) : this.FirmId;
|
theValue = this.FirmId;
|
}
|
else if ("BrandId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.BrandId = isChange ? MyConvert.ConvertToInt32(value) : BrandId;
|
theValue = this.BrandId;
|
}
|
else if ("SpecificationId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.SpecificationId = isChange ? MyConvert.ConvertToInt32(value) : SpecificationId;
|
theValue = this.SpecificationId;
|
}
|
else if ("GoodsName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.GoodsName = isChange ? MyConvert.ConvertToString(value) : GoodsName;
|
theValue = this.GoodsName;
|
}
|
else if ("GoodsTypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.GoodsTypeId = isChange ? MyConvert.ConvertToString(value) : GoodsTypeId;
|
theValue = this.GoodsTypeId;
|
}
|
else if ("Weight".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.Weight = isChange ? MyConvert.ConvertToInt32(value) : Weight;
|
theValue = this.Weight;
|
}
|
else if ("StatusId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.StatusId = isChange ? MyConvert.ConvertToInt32(value) : StatusId;
|
theValue = this.StatusId;
|
}
|
else if ("Price".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.Price = isChange ? MyConvert.ConvertToDecimal(value) : Price;
|
theValue = this.Price;
|
}
|
else if ("GoodsLength".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.GoodsLength = isChange ? MyConvert.ConvertToInt32(value) : GoodsLength;
|
theValue = this.GoodsLength;
|
}
|
else if ("GoodsWidth".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.GoodsWidth = isChange ? MyConvert.ConvertToInt32(value) : GoodsWidth;
|
theValue = this.GoodsWidth;
|
}
|
else if ("GoodsHeight".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.GoodsHeight = isChange ? MyConvert.ConvertToInt32(value) : GoodsHeight;
|
theValue = this.GoodsHeight;
|
}
|
else if ("Unit".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.Unit = isChange ? MyConvert.ConvertToString(value) : Unit;
|
theValue = this.Unit;
|
}
|
else if ("WarningInventory".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.WarningInventory = isChange ? MyConvert.ConvertToInt32(value) : WarningInventory;
|
theValue = this.WarningInventory;
|
}
|
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
|
{
|
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
|
theValue = this.LastUpdateTime;
|
}
|
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
|
{
|
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
|
theValue = this.Operator;
|
}
|
else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
|
{
|
this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark;
|
theValue = this.Remark;
|
}
|
else if ("BrandName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
|
{
|
this.BrandName = isChange ? MyConvert.ConvertToString(value) : BrandName;
|
theValue = this.BrandName;
|
}
|
else if ("SpecificationName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
|
{
|
this.SpecificationName = isChange ? MyConvert.ConvertToString(value) : SpecificationName;
|
theValue = this.SpecificationName;
|
}
|
else if ("StatusName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
|
{
|
this.StatusName = isChange ? MyConvert.ConvertToString(value) : StatusName;
|
theValue = this.StatusName;
|
}
|
else if ("CommodityName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
|
{
|
this.CommodityName = isChange ? MyConvert.ConvertToString(value) : CommodityName;
|
theValue = this.CommodityName;
|
}
|
|
else if ("OrderNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
|
{
|
this.OrderNum = isChange ? MyConvert.ConvertToInt32(value) : OrderNum;
|
theValue = this.OrderNum;
|
}
|
return theValue;
|
}
|
#endregion
|
}
|
}
|