/**
|
* 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
|
{
|
/// <summary>
|
/// 办公系统采购信息
|
/// </summary>
|
[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;
|
|
/// <summary>
|
/// 纸张吨价
|
/// </summary>
|
public decimal? TanPrice
|
{
|
get
|
{
|
return _tanPrice;
|
}
|
set
|
{
|
_tanPrice = value;
|
}
|
}
|
/// <summary>
|
/// 品牌名称
|
/// </summary>
|
public string BrandName
|
{
|
get
|
{
|
return _BrandName;
|
}
|
set
|
{
|
_BrandName = value;
|
}
|
}
|
/// <summary>
|
/// 规格名称
|
/// </summary>
|
private string _SpeceicationName;
|
public string SpeceicationName
|
{
|
get
|
{
|
return _SpeceicationName;
|
}
|
set
|
{
|
_SpeceicationName = value;
|
}
|
}
|
/// <summary>
|
/// 克重
|
/// </summary>
|
private string _PaperWeightName;
|
public string PaperWeightName
|
{
|
get
|
{
|
return _PaperWeightName;
|
}
|
set
|
{
|
_PaperWeightName = value;
|
}
|
}
|
private int? _SpecificationId;
|
/// <summary>
|
/// 规格Id
|
/// </summary>
|
public int? SpecificationId
|
{
|
get
|
{
|
return _SpecificationId;
|
}
|
set
|
{
|
_SpecificationId = value;
|
}
|
}
|
/// <summary>
|
/// 克重ID
|
/// </summary>
|
private int? _PaperWeightId;
|
public int? PaperWeightId
|
{
|
get
|
{
|
return _PaperWeightId;
|
}
|
set
|
{
|
_PaperWeightId = value;
|
}
|
}
|
/// <summary>
|
/// 品牌ID
|
/// </summary>
|
private int? _BrandId;
|
public int? BrandId
|
{
|
get
|
{
|
return _BrandId;
|
}
|
set
|
{
|
_BrandId = value;
|
}
|
}
|
/// <summary>
|
/// 货品名称
|
/// </summary>
|
public string GoodsName
|
{
|
get
|
{
|
return _GoodsName;
|
}
|
set
|
{
|
_GoodsName = value;
|
}
|
}
|
private string _ClearingStatus;
|
public string ClearingStatus
|
{
|
get
|
{
|
return _ClearingStatus;
|
}
|
set
|
{
|
_ClearingStatus = value;
|
}
|
}
|
private string _PurchaseStatus;
|
/// <summary>
|
/// 购买状态
|
/// </summary>
|
public string PurchaseStatus
|
{
|
get
|
{
|
return _PurchaseStatus;
|
}
|
set
|
{
|
_PurchaseStatus = value;
|
}
|
}
|
private string _SuppliersName;
|
/// <summary>
|
/// 供应商名称
|
/// </summary>
|
public string SuppliersName
|
{
|
get
|
{
|
return _SuppliersName;
|
}
|
set
|
{
|
_SuppliersName = 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? SuppliersId
|
{
|
set
|
{
|
_suppliersid = value;
|
}
|
get
|
{
|
return _suppliersid;
|
}
|
}
|
/// <summary>
|
/// 货品编号
|
/// </summary>
|
public int? GoodsId
|
{
|
set
|
{
|
_goodsid = value;
|
}
|
get
|
{
|
return _goodsid;
|
}
|
}
|
/// <summary>
|
/// 结算状态编号
|
/// </summary>
|
public int? ClearingStatusId
|
{
|
set
|
{
|
_clearingstatusid = value;
|
}
|
get
|
{
|
return _clearingstatusid;
|
}
|
}
|
/// <summary>
|
/// 单价
|
/// </summary>
|
public decimal? Price
|
{
|
set
|
{
|
_price = value;
|
}
|
get
|
{
|
return _price;
|
}
|
}
|
/// <summary>
|
/// 数量
|
/// </summary>
|
public int? Quantity
|
{
|
set
|
{
|
_quantity = value;
|
}
|
get
|
{
|
return _quantity;
|
}
|
}
|
/// <summary>
|
/// 金额
|
/// </summary>
|
public decimal? AllMoney
|
{
|
set
|
{
|
_allmoney = value;
|
}
|
get
|
{
|
return _allmoney;
|
}
|
}
|
/// <summary>
|
/// 已付金额
|
/// </summary>
|
public decimal? ReceiveMoney
|
{
|
set;
|
get;
|
}
|
/// <summary>
|
/// 采购时间
|
/// </summary>
|
public DateTime? PurchaseTime
|
{
|
set
|
{
|
_purchasetime = value;
|
}
|
get
|
{
|
return _purchasetime;
|
}
|
}
|
/// <summary>
|
/// 采购状态
|
/// </summary>
|
public int? PurchaseStatusId
|
{
|
set
|
{
|
_purchasestatusid = value;
|
}
|
get
|
{
|
return _purchasestatusid;
|
}
|
}
|
/// <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;
|
}
|
}
|
|
/// <summary>
|
/// 类型
|
/// </summary>
|
public int? Commodityid
|
{
|
set
|
{
|
_commodityid = value;
|
}
|
get
|
{
|
return _commodityid;
|
}
|
}
|
#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) : 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;
|
}
|
return theValue;
|
}
|
#endregion
|
}
|
}
|