/** * Inquiry_PictureAlbumFastCost.cs * * 功 能: N/A * 类 名: Inquiry_PictureAlbumFastCost * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-4-16 9:07:44 N/A 初版 * * Copyright (c) 2012 Maticsoft Corporation. All rights reserved. *┌──────────────────────────────────┐ *│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │ *│ 版权所有:四川川印              │ *└──────────────────────────────────┘ */ using System; using CY.Infrastructure.Common; using CY.Infrastructure.Domain; namespace CY.Model { /// /// 画册快速询价表 /// [Serializable] public partial class Inquiry_PictureAlbumFastCost : IAggregateRoot { public Inquiry_PictureAlbumFastCost() {} #region Model private int _keyid; private Guid _firmid; //private Guid _costomerid; private int _covergramweight; private int _insidegramweight; private int _copiescount; private int _paginalcount; private decimal _price; private string _unit; 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 int CoverGramWeight { set{ _covergramweight=value;} get{return _covergramweight;} } /// /// 内页克重 /// public int InsideGramWeight { set{ _insidegramweight=value;} get{return _insidegramweight;} } /// /// 册数 /// public int CopiesCount { set{ _copiescount=value;} get{return _copiescount;} } /// /// 页数 /// public int PaginalCount { set{ _paginalcount=value;} get{return _paginalcount;} } /// /// 价格 /// public decimal Price { set{ _price=value;} get{return _price;} } /// /// 单位 /// public string Unit { set{ _unit=value;} get{return _unit;} } /// /// 操作人 /// 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 扩展属性/方法 /// /// 8页价格 /// public decimal Price8 { get; set; } /// /// 12页价格 /// public decimal Price12 { get; set; } /// /// 16页价格 /// public decimal Price16 { get; set; } /// /// 20页价格 /// public decimal Price20 { get; set; } /// /// 24页价格 /// public decimal Price24 { get; set; } /// /// 28页价格 /// public decimal Price28 { get; set; } /// /// 32页价格 /// public decimal Price32 { get; set; } /// /// 36页价格 /// public decimal Price36 { 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 ("CoverGramWeight".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.CoverGramWeight = isChange ? MyConvert.ConvertToInt32(value).Value : CoverGramWeight; theValue = this.CoverGramWeight; } else if ("InsideGramWeight".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.InsideGramWeight = isChange ? MyConvert.ConvertToInt32(value).Value : InsideGramWeight; theValue = this.InsideGramWeight; } else if ("CopiesCount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.CopiesCount = isChange ? MyConvert.ConvertToInt32(value).Value : CopiesCount; theValue = this.CopiesCount; } else if ("PaginalCount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.PaginalCount = isChange ? MyConvert.ConvertToInt32(value).Value : PaginalCount; theValue = this.PaginalCount; } else if ("Price".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.Price = isChange ? MyConvert.ConvertToDecimal(value).Value : Price; theValue = this.Price; } 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 == 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 ("Price8".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.Price8 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price8; theValue = this.Price8; } else if ("Price12".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.Price12 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price12; theValue = this.Price12; } else if ("Price16".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.Price16 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price16; theValue = this.Price16; } else if ("Price20".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.Price20 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price20; theValue = this.Price20; } else if ("Price24".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.Price24 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price24; theValue = this.Price24; } else if ("Price28".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.Price28 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price28; theValue = this.Price28; } else if ("Price32".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.Price32 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price32; theValue = this.Price32; } else if ("Price36".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.Price36 = isChange ? MyConvert.ConvertToDecimal(value).Value : Price36; theValue = this.Price36; } return theValue; } #endregion #endregion } }