/** 版本信息模板在安装目录下,可自行修改。
* Inquiry_ColorCost.cs
*
* 功 能: N/A
* 类 名: Inquiry_ColorCost
*
* Ver 变更日期 负责人 变更内容
* ───────────────────────────────────
* V0.01 2013-6-19 13:57:40 N/A 初版
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*┌──────────────────────────────────┐
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
*│ 版权所有:四川川印印刷包装股份有限公司 │
*└──────────────────────────────────┘
*/
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// 色数费设置
///
[Serializable]
public partial class Inquiry_ColorCost : IAggregateRoot
{
public Inquiry_ColorCost()
{}
#region Model
private int _keyid;
private Guid _firmid;
private string _colorname;
private int _sizevalue;
private decimal _price;
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 string ColorName
{
set{ _colorname=value;}
get{return _colorname;}
}
///
/// 开数
///
public int SizeValue
{
set{ _sizevalue=value;}
get{return _sizevalue;}
}
///
/// 单价
///
public decimal Price
{
set{ _price=value;}
get{return _price;}
}
///
/// 操作人
///
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;}
}
///
/// 印刷类型ID
///
public int PrintTypeId { get; set; }
#endregion Model
#region 扩展属性/方法
public decimal Price64 { get; set; }
public decimal Price48 { get; set; }
public decimal Price32 { get; set; }
public decimal Price16 { get; set; }
public decimal Price8 { get; set; }
public decimal Price9 { get; set; }
public decimal Price10 { get; set; }
public decimal Price11 { get; set; }
public decimal Price12 { get; set; }
public decimal Price13 { get; set; }
public decimal Price14 { get; set; }
public decimal Price15 { 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 ("ColorName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.ColorName = isChange ? MyConvert.ConvertToString(value) : ColorName;
theValue = this.ColorName;
}
else if ("SizeValue".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.SizeValue = isChange ? MyConvert.ConvertToInt32(value).Value : SizeValue;
theValue = this.SizeValue;
}
else if ("Operater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.Operater = isChange ? MyConvert.ConvertToString(value) : Operater;
theValue = this.Operater;
}
else if ("OperateTime".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 ("Price".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price = isChange ? MyConvert.ConvertToDecimal(value).Value : Price;
theValue = this.Price;
}
else if ("PrintTypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.PrintTypeId = isChange ? MyConvert.ConvertToInt32(value).Value : PrintTypeId;
theValue = this.PrintTypeId;
}
else if ("Price64".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price64 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price64;
theValue = this.Price64;
}
else if ("Price48".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price48 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price48;
theValue = this.Price48;
}
else if ("Price32".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price32 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price32;
theValue = this.Price32;
}
else if ("Price16".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price16 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price16;
theValue = this.Price16;
}
else if ("Price8".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price8 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price8;
theValue = this.Price8;
}
else if ("Price9".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price9 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price9;
theValue = this.Price9;
}
else if ("Price10".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price10 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price10;
theValue = this.Price10;
}
else if ("Price11".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price11 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price11;
theValue = this.Price11;
}
else if ("Price12".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price12 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price12;
theValue = this.Price12;
}
else if ("Price13".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price13 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price13;
theValue = this.Price13;
}
else if ("Price14".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price14 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price14;
theValue = this.Price14;
}
else if ("Price15".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Price15 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price15;
theValue = this.Price15;
}
return theValue;
}
#endregion
#endregion
}
}