/**
* OA_Procurement.cs
*
* 功 能: N/A
* 类 名: OA_Procurement
*
* Ver 变更日期 负责人 变更内容
* ───────────────────────────────────
* V0.01 2013-4-2 14:27:56 N/A 初版
*
*
*
*
*
*
*/
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// 办公系统采购信息
///
[Serializable]
public partial class OA_Procurement : IAggregateRoot
{
public OA_Procurement()
{
}
#region Model
private int? _keyid;
private Guid _firmid;
private int? _commodityid;
private int? _suppliersid;
private int? _goodsid;
private int? _clearingstatusid;
private decimal? _price;
private int? _quantity;
private decimal? _allmoney;
private DateTime? _purchasetime;
private int? _purchasestatusid;
private DateTime? _lastupdatetime;
private string _operator;
private string _remark;
private string _GoodsName;
private string _BrandName;
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 string GoodsName
{
get
{
return _GoodsName;
}
set
{
_GoodsName = value;
}
}
private string _ClearingStatus;
public string ClearingStatus
{
get
{
return _ClearingStatus;
}
set
{
_ClearingStatus = value;
}
}
private string _PurchaseStatus;
///
/// 购买状态
///
public string PurchaseStatus
{
get
{
return _PurchaseStatus;
}
set
{
_PurchaseStatus = value;
}
}
private string _SuppliersName;
///
/// 供应商名称
///
public string SuppliersName
{
get
{
return _SuppliersName;
}
set
{
_SuppliersName = value;
}
}
///
/// 信息编号
///
public int? Keyid
{
set
{
_keyid = value;
}
get
{
return _keyid;
}
}
///
/// 所属厂商
///
public Guid FirmId
{
set
{
_firmid = value;
}
get
{
return _firmid;
}
}
///
/// 关联供应商编号
///
public int? SuppliersId
{
set
{
_suppliersid = value;
}
get
{
return _suppliersid;
}
}
///
/// 货品编号
///
public int? GoodsId
{
set
{
_goodsid = value;
}
get
{
return _goodsid;
}
}
///
/// 结算状态编号
///
public int? ClearingStatusId
{
set
{
_clearingstatusid = value;
}
get
{
return _clearingstatusid;
}
}
///
/// 单价
///
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 decimal? ReceiveMoney
{
set;
get;
}
///
/// 采购时间
///
public DateTime? PurchaseTime
{
set
{
_purchasetime = value;
}
get
{
return _purchasetime;
}
}
///
/// 采购状态
///
public int? PurchaseStatusId
{
set
{
_purchasestatusid = value;
}
get
{
return _purchasestatusid;
}
}
///
/// 最后修改时间
///
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 int? Commodityid
{
set
{
_commodityid = value;
}
get
{
return _commodityid;
}
}
///
/// 订单id
///
public int? orderId
{
get;set;
}
///
/// 印件名称
///
public string DocumentName
{
get; set;
}
#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) : FirmId;
theValue = this.FirmId;
}
else if ("SuppliersId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.SuppliersId = isChange ? MyConvert.ConvertToInt32(value) : SuppliersId;
theValue = this.SuppliersId;
}
else if ("GoodsId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.GoodsId = isChange ? MyConvert.ConvertToInt32(value) : GoodsId;
theValue = this.GoodsId;
}
else if ("ClearingStatusId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.ClearingStatusId = isChange ? MyConvert.ConvertToInt32(value) : ClearingStatusId;
theValue = this.ClearingStatusId;
}
else if ("Price".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.Price = isChange ? MyConvert.ConvertToDecimal(value) : Price;
theValue = this.Price;
}
else if ("Quantity".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.Quantity = isChange ? MyConvert.ConvertToInt32(value) : Quantity;
theValue = this.Quantity;
}
else if ("AllMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.AllMoney = isChange ? MyConvert.ConvertToDecimal(value) : AllMoney;
theValue = this.AllMoney;
}
else if ("PurchaseTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
{
this.PurchaseTime = isChange ? MyConvert.ConvertToDateTime(value) : PurchaseTime;
theValue = this.PurchaseTime;
}
else if ("PurchaseStatusId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.PurchaseStatusId = isChange ? MyConvert.ConvertToInt32(value) : PurchaseStatusId;
theValue = this.PurchaseStatusId;
}
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 ("GoodsName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
{
this.GoodsName = isChange ? MyConvert.ConvertToString(value) : GoodsName;
theValue = this.GoodsName;
}
else if ("ClearingStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
{
this.ClearingStatus = isChange ? MyConvert.ConvertToString(value) : ClearingStatus;
theValue = this.ClearingStatus;
}
else if ("PurchaseStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
{
this.PurchaseStatus = isChange ? MyConvert.ConvertToString(value) : PurchaseStatus;
theValue = this.PurchaseStatus;
}
else if ("SuppliersName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
{
this.SuppliersName = isChange ? MyConvert.ConvertToString(value) : SuppliersName;
theValue = this.SuppliersName;
}
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 ("ReceiveMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25)
{
this.ReceiveMoney = isChange ? MyConvert.ConvertToDecimal(value) : ReceiveMoney;
theValue = this.ReceiveMoney;
}
else if ("Commodityid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26)
{
this.Commodityid = isChange ? MyConvert.ConvertToInt32(value) : Commodityid;
theValue = this.Commodityid;
}
else if ("orderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26)
{
this.orderId = isChange ? MyConvert.ConvertToInt32(value) : orderId;
theValue = this.orderId;
}
else if ("DocumentName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26)
{
this.DocumentName = isChange ? MyConvert.ConvertToString(value) : DocumentName;
theValue = this.DocumentName;
}
return theValue;
}
#endregion
}
}