using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 印刷参数 /// [Serializable] public partial class OA_Yujihuikuan : IAggregateRoot { public OA_Yujihuikuan() { } #region Model /// /// id /// public Guid Keyid { get; set; } /// /// 客户id /// public Guid BuyerId { get; set; } /// /// 客户id /// public string BuyerName { get; set; } public string shoukuanshijian { get; set; } public DateTime? YujihuikuanTime { get; set; } /// /// 创建人 /// public Guid? Creater { get; set; } /// /// 创建时间 /// public DateTime? CreateTime { get; set; } /// /// 修改人 /// public Guid? Updater { get; set; } /// /// 修改时间 /// public DateTime? LastUpdateTime { get; set; } #endregion Model #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.ConvertToGuid(value) : Keyid; theValue = this.Keyid; } else if ("shoukuanshijian".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.shoukuanshijian = isChange ? MyConvert.ConvertToString(value) : shoukuanshijian; theValue = this.shoukuanshijian; } else if ("BuyerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.BuyerId = isChange ? MyConvert.ConvertToGuid(value) : BuyerId; theValue = this.BuyerId; } else if ("BuyerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.BuyerName = isChange ? MyConvert.ConvertToString(value) : BuyerName; theValue = this.BuyerName; } else if ("YujihuikuanTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.YujihuikuanTime = isChange ? MyConvert.ConvertToDateTime(value) : YujihuikuanTime; theValue = this.YujihuikuanTime; } else if ("Creater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) { this.Creater = isChange ? MyConvert.ConvertToGuid(value) : Creater; theValue = this.Creater; } else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) { this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime; theValue = this.CreateTime; } else if ("Updater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16) { this.Updater = isChange ? MyConvert.ConvertToGuid(value) : Updater; theValue = this.Updater; } else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17) { this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; theValue = this.LastUpdateTime; } return theValue; } #endregion } }