/** * LF_SellerFileSpaceExtend.cs * * 功 能: 卖家文件空间扩展类 * 类 名: LF_SellerFileSpace * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-6-17 15:20 吴崎均 初版 * V0.02 2013-6-17 16:47 吴崎均 修改Visiter增加创建时间、最后修改时间、操作人 * * * * * */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using CY.Infrastructure.Domain; using CY.Model; using CY.Infrastructure.Common; namespace CY.Model { /// /// 扩展部分 /// public partial class LF_SellerFileSpace { #region ExtendProperties private EC_MemberBasic _seller = null; /// /// 卖家 /// public EC_MemberBasic Seller { get { _seller = null == _seller ? new EC_MemberBasic() : _seller; return _seller; } set { _seller = value; } } private Sys_Dictionary _leveltype = null; /// /// 状态类型 /// public Sys_Dictionary LevelType { get { _leveltype = null == _leveltype ? new Sys_Dictionary() : _leveltype; return _leveltype; } set { _leveltype = value; } } #endregion #region Visiter /// /// 属性访问器 /// /// 属性名 /// 索引 /// 是否将指定属性设置为传入值 /// 需要赋予的值 /// 与名称对应的属性值 public object Visiter(string name, int? index = -1, bool isChange = false, object value = null) { object theValue = null; if ("SpaceLevel".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1) { this.SpaceLevel = isChange ? MyConvert.ConvertToInt32(value) : SpaceLevel; theValue = this.SpaceLevel; } else if ("SellerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.SellerId = isChange ? MyConvert.ConvertToGuid(value) : this.SellerId; theValue = this.SellerId; } else if ("AllotSize".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.AllotSize = isChange ? MyConvert.ConvertToDecimal(value) : AllotSize; theValue = this.AllotSize; } else if ("UsedSize".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.UsedSize = isChange ? MyConvert.ConvertToInt32(value) : UsedSize; theValue = this.UsedSize; } else if ("SpaceName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.SpaceName = isChange ? MyConvert.ConvertToString(value) : SpaceName; theValue = this.SpaceName; } else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) { this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator; theValue = this.Operator; } else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) { this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime; theValue = this.CreateTime; } else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8) { this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; theValue = this.LastUpdateTime; } #region 扩展属性处理 else if ("LevelTypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 30) { this.LevelType.Name = isChange ? MyConvert.ConvertToString(value) : this.LevelType.Name; theValue = this.LevelType.Name; } else if ("SellerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 31) { this.Seller.Name = isChange ? MyConvert.ConvertToString(value) : this.Seller.Name; theValue = this.Seller.Name; } #endregion return theValue; } #endregion } }