/** * OA_OutOfStorage.cs * * 功 能: N/A * 类 名: OA_OutOfStorage * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-4-2 14:27:55 N/A 初版 * * * * * * */ using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 办公系统出入库信息表 /// [Serializable] public partial class OA_OutOfStorage : IAggregateRoot { public OA_OutOfStorage() { } #region Model private int? _keyid; private Guid _firmid; private int? _warehouseid; private int? _cargospaceid; private int? _goodsid; private string _infotype; private int? _suppliersid; private decimal? _price; private int? _quantity; private decimal? _allmoney; private DateTime? _lastupdatetime; private string _operator; private string _remark; private string _BrandName; private string _GoodsName; private string _CommodityName; /// /// 货品类别 /// public string CommodityName { get { return _CommodityName; } set { _CommodityName = value; } } /// /// 货品名称 /// public string GoodsName { get { return _GoodsName; } set { _GoodsName = value; } } private decimal? _tanPrice; /// /// 纸张吨价 /// public decimal? TanPrice { get { return _tanPrice; } set { _tanPrice = value; } } /// /// 品牌名称 /// public string BrandName { get { return _BrandName; } set { _BrandName = value; } } /// /// 规格名称 /// private string _SpeceicationName; public string SpeceicationName { get { return _SpeceicationName; } set { _SpeceicationName = value; } } /// /// 克重 /// private string _PaperWeightName; public string PaperWeightName { get { return _PaperWeightName; } set { _PaperWeightName = value; } } private int? _SpecificationId; /// /// 规格Id /// public int? SpecificationId { get { return _SpecificationId; } set { _SpecificationId = value; } } /// /// 克重ID /// private int? _PaperWeightId; public int? PaperWeightId { get { return _PaperWeightId; } set { _PaperWeightId = value; } } /// /// 品牌ID /// private int? _BrandId; public int? BrandId { get { return _BrandId; } set { _BrandId = value; } } /// /// 信息编号 /// public int? Keyid { set { _keyid = value; } get { return _keyid; } } /// /// 所属厂商 /// public Guid FirmId { set { _firmid = value; } get { return _firmid; } } /// /// 仓库编号 /// public int? WarehouseId { set { _warehouseid = value; } get { return _warehouseid; } } /// /// 货位编号 /// public int? CargoSpaceId { set { _cargospaceid = value; } get { return _cargospaceid; } } /// /// 货品编号 /// public int? GoodsId { set { _goodsid = value; } get { return _goodsid; } } /// /// 信息类型 /// public string InfoType { set { _infotype = value; } get { return _infotype; } } /// /// 供应商编号 /// public int? SuppliersId { set { _suppliersid = value; } get { return _suppliersid; } } /// /// 暂定 /// public decimal? Price { set { _price = value; } get { return _price; } } /// /// 数量 /// public int? Quantity { set { _quantity = value; } get { return _quantity; } } /// /// 金额 /// public decimal? AllMoney { set { _allmoney = value; } get { return _allmoney; } } /// /// 最后修改时间 /// 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; } } /// /// 供应商的名字 /// public string SuppliersName { set; get; } /// /// 仓库名字 /// public string WarehouseName { set; get; } /// /// 货位名字 /// public string CargoSpaceName { set; get; } #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 ("WarehouseId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.WarehouseId = isChange ? MyConvert.ConvertToInt32(value) : WarehouseId; theValue = this.WarehouseId; } else if ("CargoSpaceId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.CargoSpaceId = isChange ? MyConvert.ConvertToInt32(value) : CargoSpaceId; theValue = this.CargoSpaceId; } else if ("GoodsId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.GoodsId = isChange ? MyConvert.ConvertToInt32(value) : GoodsId; theValue = this.GoodsId; } else if ("InfoType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) { this.InfoType = isChange ? MyConvert.ConvertToString(value) : InfoType; theValue = this.InfoType; } else if ("SuppliersId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) { this.SuppliersId = isChange ? MyConvert.ConvertToInt32(value) : SuppliersId; theValue = this.SuppliersId; } else if ("Price".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8) { this.Price = isChange ? MyConvert.ConvertToDecimal(value) : Price; theValue = this.Price; } else if ("Quantity".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9) { this.Quantity = isChange ? MyConvert.ConvertToInt32(value) : Quantity; theValue = this.Quantity; } else if ("AllMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.AllMoney = isChange ? MyConvert.ConvertToDecimal(value) : AllMoney; theValue = this.AllMoney; } else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11) { this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; theValue = this.LastUpdateTime; } else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12) { this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator; theValue = this.Operator; } else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13) { this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark; theValue = this.Remark; } else if ("SuppliersName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) { this.SuppliersName = isChange ? MyConvert.ConvertToString(value) : SuppliersName; theValue = this.SuppliersName; } else if ("GoodsName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) { this.GoodsName = isChange ? MyConvert.ConvertToString(value) : GoodsName; theValue = this.GoodsName; } else if ("WarehouseName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16) { this.WarehouseName = isChange ? MyConvert.ConvertToString(value) : WarehouseName; theValue = this.WarehouseName; } else if ("CargoSpaceName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17) { this.CargoSpaceName = isChange ? MyConvert.ConvertToString(value) : CargoSpaceName; theValue = this.CargoSpaceName; } else if ("SpecificationId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18) { this.SpecificationId = isChange ? MyConvert.ConvertToInt32(value) : SpecificationId; theValue = this.SpecificationId; } else if ("PaperWeightId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19) { this.PaperWeightId = isChange ? MyConvert.ConvertToInt32(value) : PaperWeightId; theValue = this.PaperWeightId; } else if ("BrandId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20) { this.BrandId = isChange ? MyConvert.ConvertToInt32(value) : BrandId; theValue = this.BrandId; } else if ("PaperWeightName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21) { this.PaperWeightName = isChange ? MyConvert.ConvertToString(value) : PaperWeightName; theValue = this.PaperWeightName; } else if ("BrandName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22) { this.BrandName = isChange ? MyConvert.ConvertToString(value) : BrandName; theValue = this.BrandName; } else if ("SpeceicationName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23) { this.SpeceicationName = isChange ? MyConvert.ConvertToString(value) : SpeceicationName; theValue = this.SpeceicationName; } else if ("TanPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24) { this.TanPrice = isChange ? MyConvert.ConvertToDecimal(value) : TanPrice; theValue = this.TanPrice; } else if ("CommodityName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25) { this.CommodityName = isChange ? MyConvert.ConvertToString(value) : CommodityName; theValue = this.CommodityName; } return theValue; } #endregion } }