/** * EC_OrderOperateExtend.cs * * 功 能: N/A * 类 名: EC_OrderOperate * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-5-21 9:34:00 吴崎均 初版 * V0.02 2013-5-21 9:36 吴崎均 迁移Visiter到此类 * * * * * * * */ using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 订单操作扩展类 /// public partial class EC_OrderOperate { #region ExtendProperties private Sys_Dictionary _operatetypeobj = null; /// /// 订单类型对象 /// public Sys_Dictionary OperateTypeObj { get { _operatetypeobj = null == _operatetypeobj ? new Sys_Dictionary() : _operatetypeobj; return _operatetypeobj; } set { _operatetypeobj = value; } } #endregion #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) : Keyid; theValue = this.Keyid; } else if ("OrderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.OrderId = isChange ? MyConvert.ConvertToInt32(value) : OrderId; theValue = this.OrderId; } else if ("OperateType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.OperateType = isChange ? MyConvert.ConvertToInt32(value) : OperateType; theValue = this.OperateType; } else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; theValue = this.LastUpdateTime; } else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator; theValue = this.Operator; } else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) { this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark; theValue = this.Remark; } #region Extend else if ("OperateTypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.OperateTypeObj.Name = isChange ? MyConvert.ConvertToString(value) : this.OperateTypeObj.Name; theValue = this.OperateTypeObj.Name; } #endregion return theValue; } #endregion } }