/**
|
* Inquiry_GraphicDesignerFastCost.cs
|
*
|
* 功 能: N/A
|
* 类 名: Inquiry_GraphicDesignerFastCost
|
*
|
* Ver 变更日期 负责人 变更内容
|
* ───────────────────────────────────
|
* V0.01 2013-4-16 9:07:40 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_GraphicDesignerFastCost : IAggregateRoot
|
{
|
public Inquiry_GraphicDesignerFastCost()
|
{}
|
#region Model
|
private int _keyid;
|
private Guid _firmid;
|
//private Guid _costomerid;
|
//private int _designertypeid;
|
private int _sjTypeId;
|
private decimal _price;
|
private decimal _startprice;
|
private string _unit;
|
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 DesignerTypeId
|
//{
|
// set{ _designertypeid=value;}
|
// get{return _designertypeid;}
|
//}
|
/// <summary>
|
/// 印刷类别
|
/// </summary>
|
public int SJTypeId
|
{
|
set { _sjTypeId = value; }
|
get { return _sjTypeId; }
|
}
|
/// <summary>
|
/// 价格
|
/// </summary>
|
public decimal Price
|
{
|
set{ _price=value;}
|
get{return _price;}
|
}
|
/// <summary>
|
/// 数码出样价格
|
/// </summary>
|
public decimal StartPrice
|
{
|
set{ _startprice=value;}
|
get{return _startprice;}
|
}
|
/// <summary>
|
/// 单位
|
/// </summary>
|
public string Unit
|
{
|
set{ _unit=value;}
|
get{return _unit;}
|
}
|
/// <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 decimal Price53 { get; set; }
|
/// <summary>
|
/// 图文书版
|
/// </summary>
|
public decimal Price54 { get; set; }
|
|
/// <summary>
|
/// 画册
|
/// </summary>
|
public decimal Price55 { get; set; }
|
|
/// <summary>
|
/// DM单
|
/// </summary>
|
public decimal Price56 { get; set; }
|
|
/// <summary>
|
/// 海报
|
/// </summary>
|
public decimal Price57 { get; set; }
|
|
/// <summary>
|
/// LOGO
|
/// </summary>
|
public decimal Price58 { get; set; }
|
|
/// <summary>
|
/// Vi识别手册
|
/// </summary>
|
public decimal Price59 { get; set; }
|
|
/// <summary>
|
/// 价格类型
|
/// </summary>
|
public string PriceType { get; set; }
|
|
|
|
/// <summary>
|
/// 设计种类
|
/// </summary>
|
public string SJTypeName { 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 ("DesignerTypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
//{
|
// this.DesignerTypeId = isChange ? MyConvert.ConvertToInt32(value).Value : DesignerTypeId;
|
// theValue = this.DesignerTypeId;
|
//}
|
else if ("SJTypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.SJTypeId = isChange ? MyConvert.ConvertToInt32(value).Value : SJTypeId;
|
theValue = this.SJTypeId;
|
}
|
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 == 7)
|
{
|
this.Operater = isChange ? MyConvert.ConvertToString(value) : Operater;
|
theValue = this.Operater;
|
}
|
else if ("OperateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.OperateTime = isChange ? MyConvert.ConvertToDateTime(value) : OperateTime;
|
theValue = this.OperateTime;
|
}
|
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
|
theValue = this.LastUpdateTime;
|
}
|
else if ("Price53".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.Price53 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price53;
|
theValue = this.Price53;
|
}
|
else if ("Price54".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.Price54 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price54;
|
theValue = this.Price54;
|
}
|
else if ("Price55".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.Price55 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price55;
|
theValue = this.Price55;
|
}
|
else if ("Price56".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.Price56 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price56;
|
theValue = this.Price56;
|
}
|
else if ("Price57".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.Price57 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price57;
|
theValue = this.Price57;
|
}
|
else if ("Price58".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
|
{
|
this.Price58 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price58;
|
theValue = this.Price58;
|
}
|
else if ("Price59".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
|
{
|
this.Price59 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price59;
|
theValue = this.Price59;
|
}
|
else if ("PriceType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
|
{
|
this.PriceType = isChange ? MyConvert.ConvertToString(value) : PriceType;
|
theValue = this.PriceType;
|
}
|
else if ("SJTypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
|
{
|
this.SJTypeName = isChange ? MyConvert.ConvertToString(value) : SJTypeName;
|
theValue = this.SJTypeName;
|
}
|
return theValue;
|
}
|
#endregion
|
#endregion
|
|
}
|
}
|