/**
|
* Inquiry_MultipleAfterCost.cs
|
*
|
* 功 能: N/A
|
* 类 名: Inquiry_MultipleAfterCost
|
*
|
* Ver 变更日期 负责人 变更内容
|
* ───────────────────────────────────
|
* V0.01 2013-4-16 9:07:41 N/A 初版
|
*
|
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
|
*┌──────────────────────────────────┐
|
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
|
*│ 版权所有:四川川印 │
|
*└──────────────────────────────────┘
|
*/
|
using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
namespace CY.Model
|
{
|
/// <summary>
|
/// 综合后道表
|
/// </summary>
|
[Serializable]
|
public partial class Inquiry_MultipleAfterCost : IAggregateRoot
|
{
|
public Inquiry_MultipleAfterCost()
|
{}
|
#region Model
|
private int _keyid;
|
private Guid _firmid;
|
private int _printingtypeid;
|
private int _afterparameterid;
|
private decimal _price;
|
private decimal? _startpricebysingle;
|
private decimal _totalstartprice;
|
private string _unit;
|
private decimal? _platemakprice;
|
private decimal? _startplatemakprice;
|
private string _platemakunit;
|
private string _operater;
|
private DateTime? _operatetime;
|
private DateTime? _lastupdatetime;
|
/// <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 PrintingTypeId
|
{
|
set { _printingtypeid = value; }
|
get { return _printingtypeid; }
|
}
|
/// <summary>
|
/// 后道参数编号
|
/// </summary>
|
public int AfterParameterId
|
{
|
set { _afterparameterid = value; }
|
get { return _afterparameterid; }
|
}
|
/// <summary>
|
/// 单价
|
/// </summary>
|
public decimal Price
|
{
|
set { _price = value; }
|
get { return _price; }
|
}
|
/// <summary>
|
/// 单价起价
|
/// </summary>
|
public decimal? StartPriceBySingle
|
{
|
set { _startpricebysingle = value; }
|
get { return _startpricebysingle; }
|
}
|
/// <summary>
|
/// 总起价
|
/// </summary>
|
public decimal TotalStartPrice
|
{
|
set { _totalstartprice = value; }
|
get { return _totalstartprice; }
|
}
|
/// <summary>
|
/// 单位
|
/// </summary>
|
public string Unit
|
{
|
set { _unit = value; }
|
get { return _unit; }
|
}
|
/// <summary>
|
/// 制版费
|
/// </summary>
|
public decimal? PlatemakPrice
|
{
|
set { _platemakprice = value; }
|
get { return _platemakprice; }
|
}
|
/// <summary>
|
/// 制版费起价
|
/// </summary>
|
public decimal? StartPlatemakPrice
|
{
|
set { _startplatemakprice = value; }
|
get { return _startplatemakprice; }
|
}
|
/// <summary>
|
/// 制版费单位
|
/// </summary>
|
public string PlatemakUnit
|
{
|
set { _platemakunit = value; }
|
get { return _platemakunit; }
|
}
|
/// <summary>
|
/// 操作人
|
/// </summary>
|
public string Operater
|
{
|
set { _operater = value; }
|
get { return _operater; }
|
}
|
/// <summary>
|
/// 操作时间
|
/// </summary>
|
public DateTime? OperateTime
|
{
|
set { _operatetime = value; }
|
get { return _operatetime; }
|
}
|
/// <summary>
|
/// 最后修改时间
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
set { _lastupdatetime = value; }
|
get { return _lastupdatetime; }
|
}
|
#endregion Model
|
#region 扩展属性/方法
|
/// <summary>
|
/// 后道参数名称
|
/// </summary>
|
public string ParameterName { get; set; }
|
#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).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 ("AfterParameterId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.AfterParameterId = isChange ? MyConvert.ConvertToInt32(value).Value : AfterParameterId;
|
theValue = this.AfterParameterId;
|
}
|
else if ("Price".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.Price = isChange ? MyConvert.ConvertToDecimal(value).Value : Price;
|
theValue = this.Price;
|
}
|
else if ("StartPriceBySingle".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.StartPriceBySingle = isChange ? MyConvert.ConvertToDecimal(value) : StartPriceBySingle;
|
theValue = this.StartPriceBySingle;
|
}
|
else if ("TotalStartPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.TotalStartPrice = isChange ? MyConvert.ConvertToDecimal(value).Value : TotalStartPrice;
|
theValue = this.TotalStartPrice;
|
}
|
else if ("StartPlatemakPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.StartPlatemakPrice = isChange ? MyConvert.ConvertToDecimal(value) : StartPlatemakPrice;
|
theValue = this.StartPlatemakPrice;
|
}
|
else if ("PlatemakPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.PlatemakPrice = isChange ? MyConvert.ConvertToDecimal(value).Value : PlatemakPrice;
|
theValue = this.PlatemakPrice;
|
}
|
else if ("Unit".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.Unit = isChange ? MyConvert.ConvertToString(value) : Unit;
|
theValue = this.Unit;
|
}
|
else if ("PlatemakUnit".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.PlatemakUnit = isChange ? MyConvert.ConvertToString(value) : PlatemakUnit;
|
theValue = this.PlatemakUnit;
|
}
|
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 ("ParameterName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.ParameterName = isChange ? MyConvert.ConvertToString(value) : ParameterName;
|
theValue = this.ParameterName;
|
}
|
return theValue;
|
}
|
#endregion
|
#endregion
|
}
|
}
|