/**
* 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
{
///
/// 办公系统货品信息
///
[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;
///
/// 品牌名称
///
public string BrandName
{
get { return _brandName; }
set { _brandName = value; }
}
///
/// 规格名称
///
public string SpecificationName
{
get { return _SpecificationName; }
set { _SpecificationName = value; }
}
///
/// 货品状态
///
public string StatusName
{
get { return _StatusName; }
set { _StatusName = value; }
}
///
/// 类别名称
///
public string CommodityName
{
get { return _CommodityName; }
set { _CommodityName = value; }
}
///
/// 货品编号
///
public int? Keyid
{
set { _keyid = value; }
get { return _keyid; }
}
///
/// 所属厂商
///
public Guid FirmId
{
set { _firmid = value; }
get { return _firmid; }
}
///
/// 品牌编号
///
public int? BrandId
{
set { _brandid = value; }
get { return _brandid; }
}
///
/// 规格编号
///
public int? SpecificationId
{
set { _specificationid = value; }
get { return _specificationid; }
}
///
/// 货品名称
///
public string GoodsName
{
set { _goodsname = value; }
get { return _goodsname; }
}
///
/// 货品类型编号
///
public string GoodsTypeId
{
set { _goodstypeid = value; }
get { return _goodstypeid; }
}
///
/// 克重
///
public int? Weight
{
set { _weight = value; }
get { return _weight; }
}
///
/// 状态编号
///
public int? StatusId
{
set { _statusid = value; }
get { return _statusid; }
}
///
/// 价格
///
public decimal? Price
{
set { _price = value; }
get { return _price; }
}
///
/// 长
///
public int? GoodsLength
{
set { _goodslength = value; }
get { return _goodslength; }
}
///
/// 宽
///
public int? GoodsWidth
{
set { _goodswidth = value; }
get { return _goodswidth; }
}
///
/// 高
///
public int? GoodsHeight
{
set { _goodsheight = value; }
get { return _goodsheight; }
}
///
/// 单位
///
public string Unit
{
set { _unit = value; }
get { return _unit; }
}
///
/// 警戒库存
///
public int? WarningInventory
{
set { _warninginventory = value; }
get { return _warninginventory; }
}
///
/// 最后修改时间
///
public DateTime? LastUpdateTime
{
set { _lastupdatetime = value; }
get { return _lastupdatetime; }
}
///
/// 操作人
///
public string Operator
{
set { _operator = value; }
get { return _operator; }
}
///
/// 备注
///
public string Remark
{
set { _remark = value; }
get { return _remark; }
}
private int? _OrderNum;
///
/// 排序字段
///
public int? OrderNum
{
get { return _OrderNum; }
set { _OrderNum = value; }
}
#endregion Model
#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) : 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
}
}