using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// 胶头费
///
[Serializable]
public partial class Inquiry_RubberheadCost : IAggregateRoot
{
public Inquiry_RubberheadCost()
{ }
#region Model
private int _keyid;
private Guid _firmid;
//private Guid _costomerid;
private int _printingtypeid;
private int _papersizevalue;
private decimal _price;
private decimal _startprice;
private string _unit;
private string _operater;
private DateTime? _operatetime;
private DateTime? _lastupdatetime;
///
/// 编号
///
public int KeyId
{
set { _keyid = value; }
get { return _keyid; }
}
///
/// 厂商编号
///
public Guid FirmId
{
set { _firmid = value; }
get { return _firmid; }
}
/////
///// 客户编号
/////
//public Guid CostomerId
//{
// set{ _costomerid=value;}
// get{return _costomerid;}
//}
///
/// 印刷类型
///
public int PrintingTypeId
{
set { _printingtypeid = value; }
get { return _printingtypeid; }
}
///
/// 纸张尺寸值
///
public int PaperSizeValue
{
set { _papersizevalue = value; }
get { return _papersizevalue; }
}
///
/// 单价
///
public decimal Price
{
set { _price = value; }
get { return _price; }
}
///
/// 起价
///
public decimal StartPrice
{
set { _startprice = value; }
get { return _startprice; }
}
///
/// 单位
///
public string Unit
{
set { _unit = value; }
get { return _unit; }
}
///
/// 操作人
///
public string Operater
{
set { _operater = value; }
get { return _operater; }
}
///
/// 操作时间
///
public DateTime? OperateTime
{
set { _operatetime = value; }
get { return _operatetime; }
}
///
/// 最后修改时间
///
public DateTime? LastUpdateTime
{
set { _lastupdatetime = value; }
get { return _lastupdatetime; }
}
#endregion Model
#region 扩展属性/方法
///
/// 纸张尺寸名称
///
public string PageSizeName { get; set; }
#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).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 ("PrintingTypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.PrintingTypeId = isChange ? MyConvert.ConvertToInt32(value).Value : PrintingTypeId;
theValue = this.PrintingTypeId;
}
else if ("PaperSizeValue".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.PaperSizeValue = isChange ? MyConvert.ConvertToInt32(value).Value : PaperSizeValue;
theValue = this.PaperSizeValue;
}
else if ("Price".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.Price = isChange ? MyConvert.ConvertToDecimal(value).Value : Price;
theValue = this.Price;
}
else if ("StartPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.StartPrice = isChange ? MyConvert.ConvertToDecimal(value).Value : StartPrice;
theValue = this.StartPrice;
}
else if ("Unit".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.Unit = isChange ? MyConvert.ConvertToString(value) : Unit;
theValue = this.Unit;
}
else if ("Operater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.Operater = isChange ? MyConvert.ConvertToString(value) : Operater;
theValue = this.Operater;
}
else if ("OperaterTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
{
this.OperateTime = isChange ? MyConvert.ConvertToDateTime(value) : OperateTime;
theValue = this.OperateTime;
}
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
theValue = this.LastUpdateTime;
}
else if ("PageSizeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.PageSizeName = isChange ? MyConvert.ConvertToString(value) : PageSizeName;
theValue = this.PageSizeName;
}
return theValue;
}
#endregion
#endregion
}
}