/**
|
* Inquiry_PrintingWorks.cs
|
*
|
* 功 能: N/A
|
* 类 名: Inquiry_PrintingWorks
|
*
|
* Ver 变更日期 负责人 变更内容
|
* ───────────────────────────────────
|
* V0.01 2013-4-16 9:07:46 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_PrintingWorks : IAggregateRoot
|
{
|
public Inquiry_PrintingWorks()
|
{}
|
#region Model
|
private int _keyid;
|
private Guid _firmid;
|
//private Guid _customerid;
|
private int _machineid;
|
private int _minprintcount;
|
private int _maxprintcount;
|
private decimal _workprice;
|
private int? _addprintcount;
|
private decimal? _addprice;
|
private decimal _versioncost;
|
private decimal? _startprice;
|
private string _remark;
|
private string _operater;
|
private DateTime? _operatetime;
|
private DateTime? _lastupdatetime;
|
private string _WorkPriceUnit;
|
private string _VersionCostUnit;
|
/// <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 Guid CustomerId
|
//{
|
// set{ _customerid=value;}
|
// get{return _customerid;}
|
//}
|
/// <summary>
|
/// 机器编号
|
/// </summary>
|
public int MachineId
|
{
|
set{ _machineid=value;}
|
get{return _machineid;}
|
}
|
/// <summary>
|
/// 最小印次
|
/// </summary>
|
public int MinPrintCount
|
{
|
set{ _minprintcount=value;}
|
get{return _minprintcount;}
|
}
|
/// <summary>
|
/// 最大印次
|
/// </summary>
|
public int MaxPrintCount
|
{
|
set{ _maxprintcount=value;}
|
get{return _maxprintcount;}
|
}
|
/// <summary>
|
/// 印工价格
|
/// </summary>
|
public decimal WorkPrice
|
{
|
set{ _workprice=value;}
|
get{return _workprice;}
|
}
|
|
/// <summary>
|
/// 工价单位
|
/// </summary>
|
public string WorkPriceUnit
|
{
|
set
|
{
|
_WorkPriceUnit = value;
|
}
|
get
|
{
|
return _WorkPriceUnit;
|
}
|
}
|
/// <summary>
|
/// 增加印次
|
/// </summary>
|
public int? AddPrintCount
|
{
|
set{ _addprintcount=value;}
|
get{return _addprintcount;}
|
}
|
/// <summary>
|
/// 增加费用
|
/// </summary>
|
public decimal? AddPrice
|
{
|
set{ _addprice=value;}
|
get{return _addprice;}
|
}
|
/// <summary>
|
/// CTP版费
|
/// </summary>
|
public decimal VersionCost
|
{
|
set{ _versioncost=value;}
|
get{return _versioncost;}
|
}
|
/// <summary>
|
/// CTP版费单位
|
/// </summary>
|
public string VersionCostUnit
|
{
|
get
|
{
|
return _VersionCostUnit;
|
}
|
set
|
{
|
_VersionCostUnit = value;
|
}
|
}
|
/// <summary>
|
/// 起价
|
/// </summary>
|
public decimal? StartPrice
|
{
|
set{ _startprice=value;}
|
get{return _startprice;}
|
}
|
/// <summary>
|
/// 备注
|
/// </summary>
|
public string Remark
|
{
|
set{ _remark=value;}
|
get{return _remark;}
|
}
|
/// <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 MachineName { get; set; }
|
/// <summary>
|
/// 印次名称
|
/// </summary>
|
public string PrintCout { 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 ("CustomerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
//{
|
// this.CustomerId = isChange ? MyConvert.ConvertToGuid(value) : CustomerId;
|
// theValue = this.CustomerId;
|
//}
|
else if ("MachineId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.MachineId = isChange ? MyConvert.ConvertToInt32(value).Value : MachineId;
|
theValue = this.MachineId;
|
}
|
else if ("MinPrintCount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.MinPrintCount = isChange ? MyConvert.ConvertToInt32(value).Value : MinPrintCount;
|
theValue = this.MinPrintCount;
|
}
|
else if ("MaxPrintCount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.MaxPrintCount = isChange ? MyConvert.ConvertToInt32(value).Value : MaxPrintCount;
|
theValue = this.MaxPrintCount;
|
}
|
else if ("WorkPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.WorkPrice = isChange ? MyConvert.ConvertToDecimal(value).Value : WorkPrice;
|
theValue = this.WorkPrice;
|
}
|
else if ("WorkPriceUnit".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.WorkPriceUnit = isChange ? MyConvert.ConvertToString(value) : WorkPriceUnit;
|
theValue = this.WorkPriceUnit;
|
}
|
else if ("AddPrintCount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.AddPrintCount = isChange ? MyConvert.ConvertToInt32(value): AddPrintCount;
|
theValue = this.AddPrintCount;
|
}
|
else if ("AddPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.AddPrice = isChange ? MyConvert.ConvertToDecimal(value) : AddPrice;
|
theValue = this.AddPrice;
|
}
|
else if ("VersionCost".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.VersionCost = isChange ? MyConvert.ConvertToDecimal(value).Value : VersionCost;
|
theValue = this.VersionCost;
|
}
|
else if ("VersionCostUnit".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.VersionCostUnit = isChange ? MyConvert.ConvertToString(value) : VersionCostUnit;
|
theValue = this.VersionCostUnit;
|
}
|
else if ("StartPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.StartPrice = isChange ? MyConvert.ConvertToDecimal(value) : StartPrice;
|
theValue = this.StartPrice;
|
}
|
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 ("MachineName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.MachineName = isChange ? MyConvert.ConvertToString(value) : MachineName;
|
theValue = this.MachineName;
|
}
|
else if ("PrintCout".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.PrintCout = isChange ? MyConvert.ConvertToString(value) : PrintCout;
|
theValue = this.PrintCout;
|
}
|
return theValue;
|
}
|
#endregion
|
#endregion
|
}
|
}
|