/**
* Inquiry_PaperPriceInfo.cs
*
* 功 能: N/A
* 类 名: Inquiry_PaperPriceInfo
*
* Ver 变更日期 负责人 变更内容
* ───────────────────────────────────
* V0.01 2013-4-16 12:50:35 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_PaperPriceInfo : IAggregateRoot
{
public Inquiry_PaperPriceInfo()
{}
#region Model
private int _keyid;
private Guid _firmid;
//private Guid _customerid;
private int _paperid;
private int _gramweight;
private int _brandid;
private decimal _paperprice;
private string _unit;
private bool _status;
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 CustomerId
//{
// set{ _customerid=value;}
// get{return _customerid;}
//}
///
/// 纸张编号
///
public int PaperId
{
set{ _paperid=value;}
get{return _paperid;}
}
///
/// 克重
///
public int GramWeight
{
set{ _gramweight=value;}
get{return _gramweight;}
}
///
/// 品牌编号
///
public int BrandId
{
set{ _brandid=value;}
get{return _brandid;}
}
///
/// 价格
///
public decimal PaperPrice
{
set{ _paperprice=value;}
get{return _paperprice;}
}
///
/// 单位
///
public string Unit
{
set{ _unit=value;}
get{return _unit;}
}
///
/// 有效状态
///
public bool Status
{
set{ _status=value;}
get{return _status;}
}
///
/// 操作人
///
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 扩展属性/方法
#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 ("CustomerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
//{
// this.CustomerId = isChange ? MyConvert.ConvertToGuid(value) : CustomerId;
// theValue = this.CustomerId;
//}
else if ("PaperId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.PaperId = isChange ? MyConvert.ConvertToInt32(value).Value : PaperId;
theValue = this.PaperId;
}
else if ("GramWeight".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.GramWeight = isChange ? MyConvert.ConvertToInt32(value).Value : GramWeight;
theValue = this.GramWeight;
}
else if ("BrandId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.BrandId = isChange ? MyConvert.ConvertToInt32(value).Value : BrandId;
theValue = this.BrandId;
}
else if ("PaperPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.PaperPrice = isChange ? MyConvert.ConvertToDecimal(value).Value : PaperPrice;
theValue = this.PaperPrice;
}
else if ("Unit".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.Unit = isChange ? MyConvert.ConvertToString(value): Unit;
theValue = this.Unit;
}
else if ("Status".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
{
this.Status = isChange ? MyConvert.ConvertToBoolean(value) : Status;
theValue = this.Status;
}
else if ("Operater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Operater = isChange ? MyConvert.ConvertToString(value) : Operater;
theValue = this.Operater;
}
else if ("OperateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
{
this.OperateTime = isChange ? MyConvert.ConvertToDateTime(value) : OperateTime;
theValue = this.OperateTime;
}
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
{
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
theValue = this.LastUpdateTime;
}
return theValue;
}
#endregion
#endregion
}
}